jorgeng Posted August 18, 2009 Posted August 18, 2009 (edited) Hi. I want to execute php-script from autoit. What is the fastest way to execute php-script? I tried _IENavigate, but the start of internet explorer takes time, is there an easier way to start from dos-prompt or any other way? >_< Edited August 18, 2009 by jorgeng
BrettF Posted August 18, 2009 Posted August 18, 2009 Hi there,You might find it best to have a look at the HTTP UDFs an the like- I assume you want to open the remote PHP script. Otherwise you will need to maybe check out this.Cheers,Brett Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version!
jorgeng Posted August 18, 2009 Author Posted August 18, 2009 Hi there,You might find it best to have a look at the HTTP UDFs an the like- I assume you want to open the remote PHP script. Otherwise you will need to maybe check out this.Cheers,BrettI have xampp installed with php, apache, so the php-file is on my own pc.I want to execute the php-file from autoit-script.I tried the example:php my_script.phpfrom dos-prompt but it wouldn't execute. >_<
BrettF Posted August 18, 2009 Posted August 18, 2009 Is the server running? Can you access it from localhost in your browser? Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version!
jorgeng Posted August 18, 2009 Author Posted August 18, 2009 Is the server running?Can you access it from localhost in your browser?yes, it's so i run my php-script, writing localhost in ie8, then my php-script name + enter. >_<
weaponx Posted August 18, 2009 Posted August 18, 2009 Executing a php script and displaying the results of the script in a browser are two different things. Executing the script with no output would be as simple as InetGet("http://localhost/script.php"), otherwise you can use the IE functions.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now