Connecting Tech Pros Worldwide Forums | Help | Site Map

Warning: fopen(): URL file-access is disabled in the server

ARGENTINA
Guest
 
Posts: n/a
#1: Jul 17 '05
I ve been trying php script sent by rchaplin and all goes ok
automatically appears a new file copied after script execution but it
appears a messaje like next one:

Warning: fopen(): URL file-access is disabled in the server
configuration in /home/freehost/t35.com/n/a/nacion/p/new.php on line
10

and then the new file is empty.
How can I solve that?
Marcos

Manuel Lemos
Guest
 
Posts: n/a
#2: Jul 17 '05

re: Warning: fopen(): URL file-access is disabled in the server


Hello,

on 12/29/2004 02:08 AM ARGENTINA said the following:[color=blue]
> I ve been trying php script sent by rchaplin and all goes ok
> automatically appears a new file copied after script execution but it
> appears a messaje like next one:
>
> Warning: fopen(): URL file-access is disabled in the server
> configuration in /home/freehost/t35.com/n/a/nacion/p/new.php on line
> 10
>
> and then the new file is empty.
> How can I solve that?[/color]

It seems your host disallowed getting remote pages with fopen. You may
want to try this HTTP client class but I suspect that fsockopen calls
may be disallowed too. In any case, you can always try it to see if you
have any luck.

http://www.phpclasses.org/httpclient

--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html
jblanch
Guest
 
Posts: n/a
#3: Jul 17 '05

re: Warning: fopen(): URL file-access is disabled in the server


Errr dude, i suggest just chmod 'ing the file.. you can do this a few
ways, the chmod() function.. ( chmod(file,number) ) , read up on
php.net about that one if you really want to use it.. because some
servers may or may not let you do that. Otherwise, log onto either
your webservers filemanager, or use IE (eh i know, but i'm not quite
sure how to get firefox to do this) to FTP to the page, right click,
and change the file permissions to allow users to write/access/execute
the file as nessicary.

CJ Llewellyn
Guest
 
Posts: n/a
#4: Jul 17 '05

re: Warning: fopen(): URL file-access is disabled in the server


"jblanch" <jblanch@gmail.com> wrote in message
news:1104300089.590757.127370@f14g2000cwb.googlegr oups.com...[color=blue]
> Errr dude, i suggest just chmod 'ing the file..[/color]

Errr dude, I suggest reading the OP's question carefully first:

Warning: fopen(): URL file-access is disabled in the server
^^^^^^^^^^^^^^^
configuration in /home/freehost/t35.com/n/a/nacion/p/new.php on line
10



jblanch
Guest
 
Posts: n/a
#5: Jul 17 '05

re: Warning: fopen(): URL file-access is disabled in the server


Do we need to be a dick? i'm trying to help.

jblanch
Guest
 
Posts: n/a
#6: Jul 17 '05

re: Warning: fopen(): URL file-access is disabled in the server


Do we need to be a dick? i'm trying to help.

jblanch
Guest
 
Posts: n/a
#7: Jul 17 '05

re: Warning: fopen(): URL file-access is disabled in the server


Do we need to be a dick? i'm trying to help.

CJ Llewellyn
Guest
 
Posts: n/a
#8: Jul 17 '05

re: Warning: fopen(): URL file-access is disabled in the server


"jblanch" <jblanch@gmail.com> wrote in message
news:1104385817.458326.253720@c13g2000cwb.googlegr oups.com...[color=blue]
> Do we need to be a dick? i'm trying to help.
>[/color]

You might try looking in a mirror before casting aspersions.


Chung Leong
Guest
 
Posts: n/a
#9: Jul 17 '05

re: Warning: fopen(): URL file-access is disabled in the server


"Manuel Lemos" <mlemos@acm.org> wrote in message
news:33epfnF3vo161U1@individual.net...[color=blue]
> Hello,
>
> on 12/29/2004 02:08 AM ARGENTINA said the following:[color=green]
> > I ve been trying php script sent by rchaplin and all goes ok
> > automatically appears a new file copied after script execution but it
> > appears a messaje like next one:
> >
> > Warning: fopen(): URL file-access is disabled in the server
> > configuration in /home/freehost/t35.com/n/a/nacion/p/new.php on line
> > 10
> >
> > and then the new file is empty.
> > How can I solve that?[/color]
>
> It seems your host disallowed getting remote pages with fopen. You may
> want to try this HTTP client class but I suspect that fsockopen calls
> may be disallowed too. In any case, you can always try it to see if you
> have any luck.
>
> http://www.phpclasses.org/httpclient[/color]

allow_url_fopen only controls stream wrappers. The ISP might have disabled
it just to prevent PHP injection exploits. fsockopen should still work
unless it's explicitly forbidden.


Closed Thread


Similar PHP bytes