image
image

Go Back   macosx.com > Mac Help Forums > Unix & X11

Reply
 
Thread Tools
  #1  
Old August 13th, 2004, 01:06 AM
MAbans's Avatar
Registered User
 
Join Date: Sep 2002
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
MAbans is on a distinguished road
Executing a php script..

Ok, I'm planning running a php script using the crontab daemon. So to experiement, I tried to executing through the command-line but I get an error.

This is my error.
PHP Code:
command not found 
So obviously I'm doing something wrong. Will i get this same error if I put this to be automated? What is the proper way to execute a php script using the command-line? What is the proper way to execute a php script using the Crontab? Thanks in advance.
__________________
----------------------------------------------
[ G4 450 | 640 Megs Ram | 88 gigs HD \ Aki is her name]
Reply With Quote
  #2  
Old August 13th, 2004, 05:44 AM
ksv's Avatar
ksv ksv is offline
liberal socialist
 
Join Date: Nov 2000
Location: Trondheim, Norway
Posts: 3,000
Thanks: 0
Thanked 0 Times in 0 Posts
ksv is on a distinguished road
Which command is 'not found'.

If you didn't, try the php command:

Code:
php script.php
If that doesn't work, find where the php binary is installed:

Code:
whereis php
Also see

Code:
man php
__________________
leo at code.coop

Co-operatives are private corporations based on the values of self-help, self-responsibility, democracy, equality, equity and solidarity.
Reply With Quote
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -5. The time now is 11:15 PM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.