PDA

View Full Version : import.php errors


netnuta
11-19-2006, 07:46 PM
Hi there,

I just installed your script but get this error when running import.php


Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /home/.gray/layouts/myfriendslayouts.com/media/admin/import.php on line 23

Warning: file_get_contents(http://www.fastfreemedia.com/export_full.php) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /home/.gray/layouts/myfriendslayouts.com/media/admin/import.php on line 23

Warning: Invalid argument supplied for foreach() in /home/.gray/layouts/myfriendslayouts.com/media/admin/import.php on line 30


Here is my link to vars.php:
http://www.myfriendslayouts.com/media/vars.php

Any idea for a fix?

Hosting is with Dreamhost

Regards netnuta

blank
11-19-2006, 08:53 PM
Somebody suggested using curl for us to grab the files with but I haven't gotten around to trying that yet. Dreamhost allows you to compile your own version of PHP and even has something in their tech docs for it I believe. Get with their support and ask them.

netnuta
11-19-2006, 10:04 PM
Somebody suggested using curl for us to grab the files with but I haven't gotten around to trying that yet. Dreamhost allows you to compile your own version of PHP and even has something in their tech docs for it I believe. Get with their support and ask them.

Dreamhost support says,

"it's a bad/lazy programming problem. 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.

Thanks!
Glen"

So do you plan having a curl option?

blank
11-20-2006, 08:03 AM
It's not bad/lazy programming, its them having POS servers and it IS a security issue in some circumstances. CURL is supported by FEWER servers than remote url opening.

There is a way to enable remote URL's though on their servers since they allow you to have custom PHP compilations, ask them for THAT support page, I remember somebody referring a person to that over on gamescript.

This is a FREE script so just find a decent host. Dreamhost SUCKS. I'm not spending my time rewriting something that works great on MOST servers just because somebody wants to use a cheap POS host.

This is the FIRST time anybodies had this problem and EVERY time I've ever seen it it was because of somebody trying to use dreamhost.