LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 10-17-2007, 08:43 PM   #1
rickymaloy
LQ Newbie
 
Registered: May 2007
Posts: 16

Rep: Reputation: 0
PHP: No Input File Specified


First, i ran a php script on commandline on linux OS. There was an error appeared says:- "No Input File Specified" is there anything problem with my script, if there how can i supposed to do this. Please guide me for my problem. Thanks.. your help will be greatly appreciated.. thanks again.


Please make some suggestion, this is an emergency. thanks...

Last edited by rickymaloy; 10-17-2007 at 08:45 PM.
 
Old 10-17-2007, 08:49 PM   #2
zaichik
Member
 
Registered: May 2004
Location: Iowa USA
Distribution: CentOS
Posts: 419

Rep: Reputation: 30
Did you check the man pages?

Some general info: http://us3.php.net/features.commandline

If you need more help, you will need to supply more information. What was the command you tried?
 
Old 10-17-2007, 11:14 PM   #3
rickymaloy
LQ Newbie
 
Registered: May 2007
Posts: 16

Original Poster
Rep: Reputation: 0
thanks Zaichik, this is history i tried to run my script on command line. this is my example "on ther root" #: php -q test.php then i enter it and it will displays "No Input File Specified" it is possible that my problem here is my PHP code? THanks again Zaichik..
 
Old 10-22-2007, 11:23 AM   #4
shafty023
Member
 
Registered: Oct 2007
Distribution: OSX
Posts: 248

Rep: Reputation: 31
First off, I don't believe this is the proper forum for php questions. This is for Fedora questions and this doesn't seem operating system specific.

Well without knowing exactly what your php script does it's hard to say if possibly you tried opening a file descriptor to a file inside the code or if the error stems from the argument you're trying to pass in.

Do this for me. Run this command from a terminal window where you were running your previous command. Run this "ls -l" without quotes. Do you see the file that you were trying to execute the php command on? From your post, did you find "test.php" in the output? If not then you need to first navigate to the directory where "test.php" is located before you can run "php -q test.php"
 
Old 10-22-2007, 11:29 AM   #5
Osiris990
Member
 
Registered: Oct 2005
Location: Dallas, TX
Distribution: Slackware 12
Posts: 49

Rep: Reputation: 15
I think your problem is that "-q" isn't a valid argument to php. (at least not according to the man pages)

Try 'php -f test.php' and see if that works.
 
Old 10-22-2007, 12:09 PM   #6
shafty023
Member
 
Registered: Oct 2007
Distribution: OSX
Posts: 248

Rep: Reputation: 31
hell you can just run "php test.php" without needing any argument and it will run the CLI.
 
Old 02-05-2008, 08:28 PM   #7
rickymaloy
LQ Newbie
 
Registered: May 2007
Posts: 16

Original Poster
Rep: Reputation: 0
thanks guyz, i got your ideas and its working. thnkz
 
  


Reply



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
help with matching input with 2 different files in php ice99 Programming 1 12-09-2006 08:55 PM
php: character \ in an input eantoranz Programming 3 09-27-2006 11:03 PM
PHP: No input file specified pembo13 Linux - General 0 10-03-2004 09:49 PM
Current PHP, mySQL project, need some input spectrumver1 Linux - General 0 11-17-2003 10:38 AM
(PHP) Stopping Malicious Form Input Obi Perrin Programming 0 04-27-2003 07:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 05:06 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration