PDA

View Full Version : command line php only works from a certain directory



lethal0r
08-06-2008, 04:25 AM
/usr/local/bin/php /home/admin/domains/<domain>/public_html/beta/scripts/import.php

it only works when i run it from the beta directory or above (ie scripts) - why? surely the command is always saying to run from the root folder?

floyd
08-06-2008, 05:38 AM
Surely you get an error if it doesn't work. What is it? We cannot help without that.

lethal0r
08-06-2008, 06:30 AM
ahhhhhh I am a noob :[

sorted, nothing to do with what directory its in!

thanks for the reply anyhow!