|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
PHP on the command line?
Do I need to have a local installation to make this happen? Does anyone know if "foxserver" can be used to make a PHP .exe? I'm a programmer and database developer at my company not the server admin so I have never installed PHP on anything...
I guess I'll need to figure this out before I spend time writing an entry. B |
|
#2
|
|||
|
|||
|
RE: PHP on the command line?
I don't understand your question, but a script that runs from the command line does not need a server. Just go to the DOS-prompt, go to your PHP directory and typ:
php.exe -f c:your_dircapture.php Now your script will be parsed. I hope this is an answer to your question |
|
#3
|
|||
|
|||
|
RE: PHP on the command line?
not really - do we type the collands mu md etc in the command line?
|
|
#4
|
|||
|
|||
|
RE: PHP on the command line?
Instead of type: [in PHP directory]
php.exe -f c:absolutepathCapture.php you can type one time only: PATH c:dir_were_PHP_is and then work in the Capture directory as if you were in PHP directory, so you can type: php capture.php |
|
#5
|
|||
|
|||
|
RE: PHP on the command line?
for your own testing environment u don't realy have to run scripts from the command line!
here how i think is best enviroment u can set up with ur web server... in one dir, place your judge.php script and two (or more) dirs for robot scripts.. then, when u need to start script1 from the judge.php, change dir to script1, and include('capture.php'); file... then u can draw a grid with html (from judging script) and see what is happening -> debug / inpruve ur scripts! u can also look ur judge.php script from the browser, and still start robot scripts from command line with exec('/path/to/php /path/to/robot-script.php'); but for me, first method is faster... |
|
#6
|
|||
|
|||
|
RE: PHP on the command line?
If you give a judging script I do that!!!
I think in this script that "the Simplest is the best". |
|
#7
|
|||
|
|||
|
RE: PHP on the command line?
i am not shure i understand u dr.Freud...
do u want my judging script or what? if so, sorry, but it is't finished yet... and don't know if it is legal... |
|
#8
|
||||
|
||||
|
RE: RE: PHP on the command line?
Quote:
Sorry, my english is poor! :rolleyes: Quote:
I say this only ironically! Thankx for the reply Zombie, see you in the final match! |
|
#9
|
|||
|
|||
|
RE: PHP on the command line?
A reply to Anonymous:
No you don't type the commands on the command line, you only use the command line to parse your script. So you'll have to open a stream with move.txt |
|
#10
|
|||
|
|||
|
RE: RE: RE: PHP on the command line?
Quote:
i hope so... and if we do, i wont mind if u win |
|
#11
|
|||
|
|||
|
RE: PHP on the command line?
Under Linux, a proper executable PHP script begins with the following lines (I think):
> #!/usr/local/bin/php > <?php Will it work fine under other OS's? |
|
#12
|
|||
|
|||
|
RE: PHP on the command line?
You don't need to change anything in the code under Windows
|
![]() |
| Viewing: Codewalkers Forums > PHP Contests > Older Contests > PHP on the command line? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|