|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
|
|
#1
|
|||
|
|||
|
can I run a php script from the server comannd prompt?
subject line pretty much self-explanatory. A client of mine wants to know if it is possible to create batch scripts that run at the server command prompt, using PHP. (Otherwise I'll need to learn PERL, and I prefer to focus on my projects).
The scripts would intereact with the server's file system and also a MS SQL database, primarily for importing data and outputing reports. |
|
#2
|
|||
|
|||
|
RE: can I run a php script from the server comannd prompt?
Shouldn't be a problem. Just issue:
php script.php |
|
#3
|
|||
|
|||
|
RE: can I run a php script from the server comannd prompt?
Unix answer only ---
Sure, I write my backup scripts and everything in PHP. Just make the first line something like this. #!/usr/bin/php If you don't know the correct path to PHP type whereis php |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Installation > can I run a php script from the server comannd prompt? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|