ltering The Php.ini File Line To "allow_url_fopen"
Posted by: send2paul
Posted on: 2006-12-08 23:30:00
Greetings.
I purchased some scripting software and installed it onto my Dreamhost Account. It does not work. After dealing with the script developers and Dreamhost support, the conclusion is:
(From Dreamhost): "Regretfully url_file_access isn't part of our standard PHP installation.
Our standard installation is pretty lean n' mean for security and performance reasons since it powers over 350,000 domains. If you need customized settings that aren't part of our standard installation you will need to compile your own copy of PHP with the setting enabled. This is not something we provide support for, however our customer maintained wiki can offer a lot of assistance with this:
http://wiki.dreamhost.com/index.php/Installing_PHP5> http://wiki.dreamhost.com/index.php/Installing_PHP4"
Like most folks in this plug and play world - I haven't a clue about coding, and didn't expect to buy a product which my host makes inoperative because, as Dreamhost say:
"We've purposely disabled URL access to php system functions (such as copy() open() etc.) because of security and performance problems. We have replaced it with CURL:
http://wiki.dreamhost.com/index.php/CURL
Unfortunately, it's beyond the scope of our support as how to port your script to use CURL instead of the system calls, but we can definately say it would do the job. We do not offer access to the php.ini . However if you need to make a customized one you are welcome to compile your own copy of PHP:
http://wiki.dreamhost.com/index.php/Installing_PHP5"
Bsically I need help and advice which doe not include going down the path of creating my own php etc. Is there any kind of quick fix work around to this issue? I have tried adding:
ini_set('allow_url_fopen', 'on');
at the top of index.php in an attempt to "overide" the block, but it didn't work.
I like Dreamhost, and I love the product I've bought - and I would like to use it in my Dreamhost account, but this not allowing the ability to access the php.ini file to alter the "allow_url_fopen" command is just stopping me dead in my tracks.
Has anyone had any issues/resolutions to this problem before?
Thanks
Paul