Enabling Url File Access In Php? |
||
Welcome to the Zymic webmaster forums. Our forums are here to provide people the free ability to discuss a range of websites related topics such as design, development coding and marketing.
In order to post you will need to register for a zymic account or if you already have one simply login by using the form on the left.
Zymic Webmaster Forums Web Design & Development Server Side Scripting PHP |
||
![]() |
Enabling Url File Access In Php? |
||
May 23 2009, 11:13 PM
Post
#1
|
|
|
Newbie ![]() Group: Members Posts: 3 Joined: 23-May 09 Member No.: 96,319 |
Hello,
In my web application, a user has an option to select a local file or URL to upload. I'm using the PHP function fopen to open the file. That works perfectly for uploaded files but it does not work for URLs. I get following error <br /> <b>Warning</b>: fopen() [<a href='function.fopen'>function.fopen</a>]: URL file-access is disabled in the server configuration in <b>...</b> on line <b>...</b><br /> <br /> <b>Warning</b>: fopen(http://...) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: no suitable wrapper could be found in <b>/www/uuuq.com/....php</b> on line <b>296</b><br /> Is there any way to enable URL file access in php? I tried to set the PHP flag allow_url_fopen in the .htaccess file but your server rejected it. Thanks in advance |
|
|
May 24 2009, 11:34 AM
Post
#2
|
|
|
Outrageously Uber Ninja ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Moderators Posts: 1,805 Joined: 10-July 08 From: UK Member No.: 44,994 |
We don't allow outside connections to discourage spammers.
swordz |
|
|
May 24 2009, 03:17 PM
Post
#3
|
|
|
Newbie ![]() Group: Members Posts: 3 Joined: 23-May 09 Member No.: 96,319 |
|
|
|
May 24 2009, 05:00 PM
Post
#4
|
|
![]() Outrageously Uber Ninja ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Moderators Posts: 1,562 Joined: 19-September 07 From: Rochester, NY Member No.: 86 |
Zymic discourages all outside connection as Swordz has stated. Sorry.
|
|
|
May 24 2009, 06:32 PM
Post
#5
|
|
|
Newbie ![]() Group: Members Posts: 3 Joined: 23-May 09 Member No.: 96,319 |
|
|
|
May 24 2009, 08:28 PM
Post
#6
|
|
|
Outrageously Uber Ninja ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Moderators Posts: 1,805 Joined: 10-July 08 From: UK Member No.: 44,994 |
Lunarpages is completely separate- so it's not us you really have to ask. However, several of the staff do have Lunarpages as their paid hosts, and URL access is allowed.
Visit here for more detail on the paid hosting we recommend. swordz |
|
|
![]() |
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users) |
||
| 0 Members: | ||
Forum Jump |
||
| Lo-Fi Version | Time is now: 23rd May 2013 - 12:26 AM |