Questions tagged [fopen]

9 questions
2
votes
1 answer

file_get_contents url wrappers work on cli but not cgi

I have a big problem. I have just upgraded to a new dedicated server running Plesk 10, and Ubuntu 11.04 and my scripts can't run file_get_contents or curl to external urls in cgi mode. allow_url_fopen is set to On in the correct php.ini file but…
Liam Bailey
  • 183
  • 8
1
vote
1 answer

Fixing fail2ban regex rule for php-url-fopen filter

I'm fixing default php-url-fopen filter to allow some GET query parameters which I'm using in my system (it's not publicly available, but I would still like to block unnecessary requests). The problem is that I got working regex for one name of…
1
vote
5 answers

fopen() failing to open a file on /tmp share

I have a C application that occasionally fails to open a file which is stored on a /tmp share. Here is the relevant chunk of code: // open file and start parsing notStdin = strcmp(inFile, "-"); if (notStdin) { coordsIn = fopen(inFile,…
Alex Reynolds
  • 453
  • 2
  • 9
  • 22
1
vote
1 answer

Apache/PHP unable to connect to external data after reboot, but works after service restart

I'm running CentOS 6, and lately I'm having trouble with the server not being able to load external data after it's rebooted. In the PHP configuration, I have fopen URI enabled, and it works, but as soon as I reboot the machine, the page that uses…
Brandon
  • 111
  • 4
1
vote
1 answer

CentOS php fopen permission denied error

I am not very familiar with CentOS and its specific permissions issues with httpd+php environment so that I got stuck with "failed to open stream: Permission denied" after installing website on production server. I have directory layout like…
duganets
  • 125
  • 1
  • 6
1
vote
1 answer

Why can't PHP script write a file on server 2008 via command line or task scheduler?

I have a PHP script. It runs well when I use a browser. It writes an XML file in the same directory. The script takes ~60 seconds to run, and the resulting XML file is ~16 MB. I am running PHP 5.2.13 via FastCGI on Server 2008 64 bit. I created a…
rg89
  • 143
  • 1
  • 7
0
votes
1 answer

PHP 5.3.8 fopen on Windows Server 2003

I'm working with a project where the client is running WordPress on Windows 2003. They upgraded to PHP 5.3.8 and most things are working well. They aren't able to connect to outside services, though, such as the WordPress Plugin API. They've setup…
0
votes
1 answer

mysql UDF : fopen = permission denied

this is question I already asked on SO but I wonder if this could be a SysAdmin problem. I'm trying to create a mysql UDF function , this function calls "fopen/fclose" to read a flat file stored in /data. But using errno (yes, I know it is bad in a…
Pierre
  • 429
  • 1
  • 5
  • 14
-2
votes
1 answer

Apache2+PHP fopen() permisson

Intro: I am sorry to be asking for help when there's loads of that on the internet, however I'm not Linux savvy. Problem: I've installed apache2 and PHP5 under debian, and uses of PHP fopen() function produce typical: Warning:…
Bob
  • 81
  • 1
  • 6