PHP Installation
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Installation

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
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  
Old March 1st, 2003, 02:44 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
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.

Reply With Quote
  #2  
Old March 1st, 2003, 07:28 PM
NetproHosting NetproHosting is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Apex, NC, USA
Posts: 31 NetproHosting User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via AIM to NetproHosting
RE: can I run a php script from the server comannd prompt?

Shouldn't be a problem. Just issue:

php script.php


Reply With Quote
  #3  
Old March 1st, 2003, 11:20 PM
postalcow postalcow is offline
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Ford CIty, PA USA
Posts: 1,267 postalcow User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
Send a message via Yahoo to postalcow
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

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Installation > can I run a php script from the server comannd prompt?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway