LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 07-13-2004, 08:50 PM   #1
vfulco
LQ Newbie
 
Registered: May 2004
Posts: 5

Rep: Reputation: 0
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
 
Old 07-13-2004, 10:32 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,060

Rep: Reputation: 295Reputation: 295Reputation: 295
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.
 
Old 07-13-2004, 10:52 PM   #3
vfulco
LQ Newbie
 
Registered: May 2004
Posts: 5

Original Poster
Rep: Reputation: 0
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.
 
Old 07-13-2004, 10:55 PM   #4
vfulco
LQ Newbie
 
Registered: May 2004
Posts: 5

Original Poster
Rep: Reputation: 0
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...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
scp does not work and gives the following error message: scp: FATAL: Executing ssh1 i akay Linux - Networking 16 09-28-2008 11:41 PM
Problem executing a linux script from php that runs ffmpeg darkisolde Linux - Software 4 10-04-2005 07:43 AM
Exiting the Shell script with Error MEssage sumitarun Programming 5 04-14-2005 01:10 AM
Change PHP error message. agallant Programming 1 03-10-2005 04:21 PM
PHP error message when uploading files obj63 Programming 4 08-26-2004 12:15 PM


All times are GMT -5. The time now is 03:20 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration