473,233 Members | 1,543 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,233 software developers and data experts.

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

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
Jul 17 '05 #1
8 7600
Hello,

on 12/29/2004 02:08 AM ARGENTINA said the following:
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?


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
Jul 17 '05 #2
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.

Jul 17 '05 #3
"jblanch" <jb*****@gmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
Errr dude, i suggest just chmod 'ing the file..


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

Jul 17 '05 #4
Do we need to be a dick? i'm trying to help.

Jul 17 '05 #5
Do we need to be a dick? i'm trying to help.

Jul 17 '05 #6
Do we need to be a dick? i'm trying to help.

Jul 17 '05 #7
"jblanch" <jb*****@gmail.com> wrote in message
news:11**********************@c13g2000cwb.googlegr oups.com...
Do we need to be a dick? i'm trying to help.


You might try looking in a mirror before casting aspersions.
Jul 17 '05 #8
"Manuel Lemos" <ml****@acm.org> wrote in message
news:33*************@individual.net...
Hello,

on 12/29/2004 02:08 AM ARGENTINA said the following:
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?


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


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.
Jul 17 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Krishna Srinivasan | last post by:
I have a form with check boxes. When accessing a check box element that is not checked, I get a notice (Notice: Undefined variable..). Is there a way to hide these notices and warning in PHP code...
7
by: git_cs | last post by:
Hey, guys and gals Somedays ago, I had asked for the DES algorithm in C language. Although I have written the algorthim in C myself, I am facing a peculiar problem, which I hope some of u guys and...
10
by: pjlsr | last post by:
It's close to twenty years since I used the C language and at that time I was doing only floating point computational work, nothing with strings or reading files. I tried to use fopen in the...
29
by: Daniel Rudy | last post by:
Hello, Consider the following code fragment: fileptr = fopen(param->filename, "r"); if (fileptr == NULL) { error("digest.c: digest_file: Open File ", errno); return(-2); }
3
by: mrmattborja | last post by:
Hello, Here is a program I'm playing around with for fun in the process of learning C. The objective is to create a function filesize() and call it from within the main() section to retrieve the...
6
by: dimitris.papastamos | last post by:
Hello everyone, I've been working on a simple editor myself and I seem to be having some problems with ncurses or so. I have been debugging this program quite a lot trying to detect where the bug...
2
by: curious2007 | last post by:
I do not know how to handle this message: c:\users\admin\documents\visual studio 2005\projects\vec\vec\fileclass.cpp(40) : warning C4996: 'fopen' was declared deprecated c:\program...
2
by: yogitha | last post by:
For the below code i am getting an error like : --------------------------------------------------------------- Warning: fread(): supplied argument is not a valid stream resource in...
3
by: pochipp | last post by:
Hi.. All I got a problem in writing this program becoz I successfullly compiled the file but I cannot run the program since there will be an error when I run it. So I checked again... And there...
7
by: macdalor | last post by:
could someone please explain to me why I get the above error msg? I took this script from the net, it apparently works correctly for others but not for me and I'd like to understand why. thx ...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.