By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,051 Members | 1,198 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,051 IT Pros & Developers. It's quick & easy.

fsockopen - dsiabled for security reasons

P: n/a
Hello!
The free serwer I use tells some functions are disabled for security
reasons. How can I retrieve contents of another website, without using
fsockopen and fpsockopen?
Jul 17 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Tomasz Nowak wrote:
Hello!
The free serwer I use tells some functions are disabled for security
reasons. How can I retrieve contents of another website, without using
fsockopen and fpsockopen?

most general file commands will accept a URL as a file, opening that URL

for example

$bla=file("http://www.php.net");

Jul 17 '05 #2

P: n/a
Martin Meredith <ma****@sourceguru.net> writes:
Tomasz Nowak wrote:
The free serwer I use tells some functions are disabled for security
reasons. How can I retrieve contents of another website, without using
fsockopen and fpsockopen?

most general file commands will accept a URL as a file, opening that URL

for example

$bla=file("http://www.php.net");


If this doesn't work then the server's admins have probably turned
off allow_url_fopen. Since they're concerned enough about security
to disable certain functions, they might also have disabled the use
of remote files.

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/
Jul 17 '05 #3

P: n/a
Uzytkownik "Martin Meredith" <ma****@sourceguru.net> napisal w wiadomosci
news:bo**********@wotsit.aston.ac.uk...
Tomasz Nowak wrote:
most general file commands will accept a URL as a file, opening that URL
[...]
$bla=file("http://www.php.net");


Great! Thanks! It does work!
Jul 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.