Some problems with php

Some problems with php

Posted by: andrucha
Posted on: 2006-07-17 08:52:00

i think php file_get_contents doesn't work correctly.
can you correct it?
and some problem with FTP
i tap in chmod for root folder 777
but some scrips tell me that there is no chmod 777
what happens?

Re: Some problems with php

Posted by: scjessey
Posted on: 2006-07-17 10:55:00

In reply to:

i think php file_get_contents doesn't work correctly.


file_get_contents will only work with local files. If you are trying to access a remote URL (any URL that starts with the protocol, such as "http://"), it will not work. This is because DreamHost has disabled the "allow_url_fopen" directive. Please consult this section of the cURL wiki article for an alternative solution.

Tags: chmod 777php fileroot foldertapftp