FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » file_get_contents() on Windows 7
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: file_get_contents() on Windows 7 [message #175443 is a reply to message #175439] Sun, 25 September 2011 18:32 Go to previous message
Doug Miller is currently offline  Doug Miller
Messages: 171
Registered: August 2011
Karma:
Senior Member
On 9/25/2011 1:22 PM, Luuk wrote:
> I am getting an error when using get_file_contents,
> i simplified my problem as below:
>
> C:\TEMP>dir >test
>
> C:\TEMP>php -e "echo get_file_contents('test', true); "
> Could not open input file: echo get_file_contents(test, true);
>
[...]
> The question is, why?

Because that's not how you run PHP code from the command line.

Try using the -r flag instead.

Then you will discover that you have also misspelled the name of the
function. You have it spelled correctly in the title of your post, but
not in the PHP code shown above.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Stats comp.lang.php (last 7 days)
Next Topic: [IJRRSIC] CALL FOR PAPERS Vol. 1 No. 4
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 18:27:31 GMT 2024

Total time taken to generate the page: 0.04337 seconds