LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Executing PHP script- error message (https://www.linuxquestions.org/questions/linux-newbie-8/executing-php-script-error-message-204710/)

vfulco 07-13-2004 08:50 PM

Executing PHP script- error message
 
I am not complete newbie to Mandrake Linux but am to PHP...Trying to execute a php script called excel.php...verified php is in /usr/bin/php & when I am at command prompt ,I can call PHP to run a test line but when i go thru the process of 1) chmod +x /home/myname/.../phpscripts/excel.php, the step is accepted then entering 2) either ./excel.php or php excel.php, I get the error "could not open input file: excel.php..."

I think I have all the dependencies installed correctly. The PHP howtos and tutorials don't really mention when scripts won't execute and I've looked all over...

Thanks for your time...

Vince Fulco

btmiller 07-13-2004 10:32 PM

Are you in the same directory as the script? Try specifying the full path to the script, because it sounds like the interpreter is having trouble finding it. Also make sure that you have read permissions +r set as well as the exec permissions.

vfulco 07-13-2004 10:52 PM

Running as root (even though I know I'm not supposed to)...does this matter? I should mention using PHP 4.3.4 (cli)ent version...is it true that mysql.so not necessary above version 4.0? I am not finding the file that is why I mention it. Did some searching on net about problems and a few folks posted about altering PHP.ini file. I am not finding "extension=mysql.so" in php.ini file. Does this matter too?

Thanks again.

vfulco 07-13-2004 10:55 PM

After getting into exact directory, it runs...Now I just have to figure out how to build the path to it from any other directory. Thanks all...


All times are GMT -5. The time now is 01:55 AM.