-
as seen on Stack Overflow
- Search for 'Stack Overflow'
i have tried this:
<?php
$fileip = fopen("test.txt","r");
?>
this should have opened the file in read only mood but it doesn't
the test.txt file is in same folder as that of index.php (main project folder)
the file doesn't open
and when i put echo like :
echo $fileip;
it returned…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hey there,
I'm writing a program that passes data from a file into an array, but I'm having trouble with fopen (). It seems to work fine when I hardcode the file path into the parameters (eg fopen ("data/1.dat", "r");) but when I pass it as a pointer, it returns NULL.
Note that line 142 will print…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi,
I have XAMPP installed on a windows 2000 server. everything is working great except the PHP fopen function. I can neither create nor open files with it. the strange thing is that i can include/require/file_get_contents/other file related functions; also fopen does not generate any errors or notices…
>>> More
-
as seen on Server Fault
- Search for 'Server Fault'
Hi All,
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 MT program...) I can see that the function…
>>> More
-
as seen on Server Fault
- Search for 'Server Fault'
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 task in task scheduler to run c:\php5\php.exe "D:\inetpub\tools\something…
>>> More