Zymic Forums

Webmaster resources

Zymic IRC Server

Chat in real time at irc.zymic.com - Learn More

Welcome

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.

left Zymic Webmaster ForumsWeb Design & DevelopmentServer Side ScriptingPHP right
  Closed Topic Start new topic
left right
cyberleopard
post 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
Go to the top of the page 
 
  + Quote Post
swordz
post 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
Go to the top of the page 
 
  + Quote Post
cyberleopard
post May 24 2009, 03:17 PM
Post #3


Newbie
*

Group: Members
Posts: 3
Joined: 23-May 09
Member No.: 96,319



Hi

Thank you for the prompt answer. I'd like to provide an option for uploading data from a URL anyway. Is there another PHP solution beside using fopen?

QUOTE(swordz @ May 24 2009, 11:34 AM) *
We don't allow outside connections to discourage spammers.

swordz


cyberleopard

Go to the top of the page 
 
  + Quote Post
IamShipon1988
post 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.
Go to the top of the page 
 
  + Quote Post
cyberleopard
post May 24 2009, 06:32 PM
Post #5


Newbie
*

Group: Members
Posts: 3
Joined: 23-May 09
Member No.: 96,319



QUOTE(IamShipon1988 @ May 24 2009, 05:00 PM) *
Zymic discourages all outside connection as Swordz has stated. Sorry.


I see... The last question - if I go with a paid hosting, do you allow the URL access?

Thanks
cyberleopard
Go to the top of the page 
 
  + Quote Post
swordz
post 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
Go to the top of the page 
 
  + Quote Post
 Closed Topic Start new topic
left right
0 Members:
left right
 


Lo-Fi Version Time is now: 23rd May 2013 - 12:26 AM