PHP allow_url_fopen

PHP allow_url_fopen

Posted by: Alpha044
Posted on: 2005-10-03 15:27:00

Hey,
I just recently moved to DreamHost, and I'm having a problem. You can probably figure it out from the above title: allow_url_fopen is off. This poses a great problem for not only me but also many many other students at my school. Last year I wrote a script that used file() on my shcool website to grab assignemtns from different teachers websites and put them on one page specific for every student that signed up. Now that I've moved, I can't file(), and I'm having great difficulties. Does anybody know a way that I can redo my script to work again, or is my script useless now?

Thanks!

Re: PHP allow_url_fopen

Posted by: rlparker
Posted on: 2005-10-03 16:03:00

While I have not seen your code, I believe you should be able to modify your script to use the cURL library provided by Dreamhost to provide the same functionality, and be much more secure. CHeck out:

http://wiki.dreamhost.com/index.php/CURL

Good Luck

Re: PHP allow_url_fopen

Posted by: Alpha044
Posted on: 2005-10-03 16:22:00

That seems to be something I can try out. Thanks!

Edit: Works wonderfully! Thanks!Edited by Alpha044 on 10/03/05 05:07 PM (server time).

Tags: fopenurldreamhostredograbheyphp