PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Sun Nov 23, 2014 9:22 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Mon Oct 29, 2007 10:50 am 
Offline
Forum Commoner

Joined: Thu Jan 11, 2007 4:29 am
Posts: 55
Hi everyone,

I'm having problems running this command.

whenever I open a url using "php -f" in the command line it always shows the message "Could not open input file."

ex.
php -f "http://www.yahoo.com"

Could not open input file : http//www.yahoo.com

What could be the problem? :cry:

TIA


Last edited by php_ghost on Mon Oct 29, 2007 11:13 am, edited 2 times in total.

Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 29, 2007 11:03 am 
Offline
Neighborhood Spidermoddy
User avatar

Joined: Mon Mar 29, 2004 4:24 pm
Posts: 31559
Location: Bothell, Washington, USA
It's not a LOCAL file.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 29, 2007 11:11 am 
Offline
Forum Commoner

Joined: Thu Jan 11, 2007 4:29 am
Posts: 55
but it works fine before


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 29, 2007 11:16 am 
Offline
Forum Commoner

Joined: Thu Jan 11, 2007 4:29 am
Posts: 55
another thing is the "file" function

Syntax: [ Download ] [ Hide ]

file("url");

 


from one of my php scripts also stopped working.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 29, 2007 11:45 am 
Offline
Neighborhood Spidermoddy
User avatar

Joined: Mon Mar 29, 2004 4:24 pm
Posts: 31559
Location: Bothell, Washington, USA
You probably have allow_url_fopen off or allow_include_url off (if you're running a more recent version of PHP 5)


Top
 Profile  
 
PostPosted: Wed Oct 29, 2008 11:18 am 
Offline
Forum Newbie

Joined: Wed Oct 29, 2008 11:12 am
Posts: 1
I had the same problem.... If you do a copy and paste of the command "php –f" for some odd reason the "-" character will not be seen as a dash in the Cron Daemon, instead it is seen as "â€". I had to type it out and VIOLA... it works. At least it worked for me. :drunk:


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: qwprdo5fvu and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group