Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Improve this question
i have six different tickets on my standalone application, developed in php. Corresponding to these tickets, i want to give print command to printer directly without printer dialog.
I follows the printer function from php manual
http://www.php.net/manual/en/ref.printer.php
My printer is thermal printer works on LPT port
Print command to printer without printer dialog is possible using mozila firefox
May be, it is helpful to you
Open mozila firefox
write at address bar about:config
print. save_print_settings = True - (default):
This process bypass the dialog box appearing again and again
It's not possible to print without the printer dialog unless you have specialized software for the host device (i.e. the computer sending the print job).
From what I understand it's not possible at all... See:
How to force a website to print
You it's rather easy to print with the dialog box, however...
window.print()
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 8 years ago.
Improve this question
Been messing around with Firebug on a test website. Need some help regarding it.
This page is 2.7kb but takes 11.39 seconds to load:
http://puu.sh/8V9sk.png
Would someone point me in the right direction?
Thanks
Hovering the timeline within Firebug's Net panel provides some more detailed information on the network request timings. So you can see, which part of the request is slow.
Regarding your screenshot the Waiting part (purple) takes the longest, which means that your server-side script takes some time to execute.
Though because client-side debugger tools like Firebug cannot provide information on why a script on the server-side is slow, you need to analyze the problem in your server-side script.
I ended up allowing the site to cache all the web scripts allowing the page to load quicker. This can be done in Moodle via
Site Administration > Appearance > Settings.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
In my project simply I want to run local application as netbeans or word document installed in my computer on click of a link? Is it possible ? If yes how am I to do it? If no why it's not possible.
Thanks in advance.
You can link to a PHP script and then in this script use exec() to run your application.
<?php
exec('path/to/your/app.exe -possibleparam -param2');
/* EOF */
I don't know if it is that what you are looking for:
http://www.php.net/manual/en/function.exec.php
exec will execute the app in the machine where the php is installed (so your server).
If you mean that the php should open an app on the user pc while he's surfing on your site, no.
The only way to to this is an NPAPI plugin. And use Javascript, not PHP.
PHP runs on the server. It has no control over the client. This is by design. If web pages could run programs on the client computer then it would be abused to an unlimited degree, for spam, viruses, and junk.
You can use the exec function to run a program on the server. If your server and client happen to be running on the same local computer, then this will do what you want.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I am programming an Windows Phone 8 App. The User has to validate his e-mail-address by klicking on a link provided in an email. If this link is opened on a windows phone, it should be possible to directly launch the windows phone 8 app. The part where a php-site openes and tells you "your email address is now validated", should be skiped.
How is it possible to launch the app from this link? Or do I have to open the php-site anyway? Can I maybe provide a Link in the php-site that directly opens the App?
Thanks for help
This page shows some good ways to accomplish what you're asking about:
Auto-launching apps using file and URI associations for Windows Phone 8
Edit: Adding PHP code
header('Location: contoso:NewProducts');
It could be as simple as rendering a link with the proper protocol and token.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
Is it possible to email the contents of a plist without opening up the mail app? Could this be something done with some PHP on a server? I have been researching this idea for a little bit now, and seem to keep ending up at the tutorials where the app will open up the mail program and attached the plist that way. Just wanted to see if there were other options.
Thanks!
Yes and yes. A plist is just a file. You can use the MFMailComposeViewController to display a compose email inside your app, and pre-fill out the recipient, body, subject, and the attached file.
It is NOT possible to send email without user interaction. That is Apple's design.
As the other poster said, you can send the file to a server and have a PHP script on the server send the email.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I have downloaded WAMP to try to learn PHP on, and am having trouble getting it to work as expected whenever trying to follow along in PHP tutorials.
Either what I get back in my browser is raw PHP (as shown below in "PHP Test 1"), or nothing at all (as shown below in "PHP Test 2"). I'm just trying to learn the basics of PHP, and am finding this to be very frustrating. Can anyone help? What do I need to do get PHP working, or what should I try?
Originally I was going to post screen shots to better describe the problem I'm having, as well as to better help others who are experiencing the same problem, but was not allowed to due to something about not having enough "points". Anyway, what I was originally trying to post can be found here:
https://sites.google.com/site/bluedog4678/
You need to start WAMPP then type this in the address bar: localhost/PHP_TEST_1.php.
You are currently opening a simple file without running WAMPP you need to run it through localhost.
You shouldn't access your files directly. Normally with simulated apache-servers you need to type in "localhost" to let it render correctly
EDIT
If you want to select a file it would be "localhost/"