Page 1 of 1

Executing PHP from command line?

Posted: Sun Sep 15, 2002 12:35 am
by L3go1as
Okay, Im under the impression that when you type "php file.php" that it executes the script...Now this works but when I stick a mysql query in there, it works when I visit the page via a browser, but when I execute it via prompt, it won't do it?

Any ideas?

Posted: Sun Sep 15, 2002 3:15 am
by Takuma
Is the MySQL server running when you try to execute the PHP file?

Posted: Sun Sep 15, 2002 6:10 am
by L3go1as
Well obviously because it works when I use my browser.