Home
My Faqts
Contributors
About
Help
News: Faqts.com
search
is now functional again. Thank you for your patience.
faqts
:
Computers
:
Programming
:
Languages
:
PHP
:
Common Problems
: Files
+ Search
Enter your search terms
Submit search form
Web
faqts.com
Folders
Tips and Tricks
(23)
Share Your Knowledge
Ask a Question
Questions
Recently Asked Questions
I get 'Permission Denied' when I fopen a new file for writing, despite 777 access! Apache settings?
How can I list the files in a directory & order them by date uploaded in PHP?(with the newest first)
How do i specify the encoding type of a file i create. ie. how to i save a utf-8 or utf-16 file from
How can I dir a folder and return the files in it as an array?
I have a text db file using pipe delimiters- what php can be used to extract the email field
Random Questions
I wish to capture colon-delimited data from a txt file and to break it into lines and from there columns to format into an HTML table. How?
How can I check that the Python version is recent enough to run my program?
How can I parse a directory and delete files based upon the time they were created?
Why don't the size of gif and jpg show up when using filesize()?
How do i specify the encoding type of a file i create. ie. how to i save a utf-8 or utf-16 file from
How can I create DOS style new lines in PHP?
Why are all my new lines messed up when I create a file for DOS / Windows?
How can I add/write to an existing file?
How can I convert the last modified time for a file to a MySQL datetime?
Why don't the size of gif and jpg show up when using filesize()?
How can I split text files if the are very long?
How can I copy a remote binary file?
How can I send files to the client?
How do I remove a single line from a multi-line text file?
using fread, is there a way to ensure only one line is read and or that once the single line from a file is read, a carriage return is not inserted?
How can I parse a directory and delete files based upon the time they were created?
i am trying to read the content of a text file right after creating it. the file exists, but to php, it's empty.
Echoing current directory
I wish to capture colon-delimited data from a txt file and to break it into lines and from there columns to format into an HTML table. How?
How do I fread only the lines of a file that exist between two markers (like %%data_start%% - %%data_end%%) in a file?
I want to restrict file sizes of the text files that I am using to store data. How do I write every 100th entry to a new file?
How do I get php to create the new file $variable.inc ?
Why can i access a local file but not a remote file with fopen()?
How do I stop readfile() or fpassthru() from including the no. of bytes when outputting a file?
How do I check the filesize of a file on another server?
I'd like to move files into other directory...do you know some scripts who can help me..
How do you check if a directory exists? if(opendir("./xxxx")) just returns an error.
I am reading the contents of a directory into an array. How can I read them into the array in alphabetical order?
Is there a PHP way of allowing users to download zip files from my web server?
I get 'permission denied' on trying to create or append to a file under NT, why?
How can I access a file on a remote machine in a WinNT network? "\\machine\file" won't work...
How do I control the number of bytes sent to an output file in PHP?
How can I sort a file so that rows would be in alphabetical order?
Why does diskfreespace() fail on OS X?
How do I read out data from a text file line by line, and compare each line with a certain variable?
Can I read the number of lines in a file without looping?
How set the user agent used by PHP when getting a page via file() ?
Permission Denied! Anything can be done to avoid without giving 777 permission?
I want to download and save the file to client without getting save as dialog box.
How can I write something at the beginning of a file without overwriting the rest of it?
How can I insert content in the middle of a file without overwriting the rest of it?
Is it possible to write a file to the users local C: drive?
I want to call a Perl script from within a PHP file. How?
Does PHP have an equivalent to ASP's Server.MapPath() function, which retrieves absolute file paths?
How can I verify the existence of a file on a remote server?
How do I create a file using php?
I have problem with the following syntax: "include 'http://10.10.10.10/MyWeb/english.lang';"
Is there a PHP way of allowing users to download zip files from my web server?
I have problem with the following syntax: "include 'http://10.10.10.10/MyWeb/english.lang';"
Is there any way to take the value of a variable name writen in a flat text file?
How can I dir a folder and return the files in it as an array?
I get 'Permission Denied' when I fopen a new file for writing, despite 777 access! Apache settings?
Unanswered Questions
How can I get the UNIX group of a file ? (Not the group of the owner of the file as in stat() or filegroup())
How can I strip binary data out of a converted text file using PHP or PERL code?
How do I store files to a directory and have a reference to that file in my mysql database using php?
Is there a function to copy directories, rather than opening, reading and copying files in a loop?
invalid argument in renaming file like "abc ?.lis" in NT4 using PHP4
How can I limit what files can be included by PHP? (Ex: <? include ("/etc/mtab"); ?> displays system file.)
When I open a remote file using fopen(), how can I stop loading when it takes too long (e.g. 10 sec)?
How do you download a file to the user's workstation from the server? I would like the user to be able to browse the workstation for a directory
I can't unlink() a file with filename spaces in unix even with ""
How to append a file, at the beginning of file, without discarding the previous content?
Have an Excel file with all variables in one columnin form VAR_NAME=VAR_VALUE. Possible to convert column to rows and strip VAR_NAME= to leave value?
how do you check what permissions php/apache are running in AIX... i am unable to open some files/do some operations...
When I use filesize() in fgets() to read a line from a text file, the end of the text file is cutoff
How can i determine the size of a REMOTE image file
How does one sort a tab-delimited file when using ?mod=ctf&mapname=test
I can write a file from a php script but I can't seem to read it from the same location. Help!?
My ISP records statistics as HTML files. I'd like php code to list the filenames.
How can I force the download of a distant file without the download stops after 1,5 Mo ?
How can I set a timeout for a fopen function?
im looking to write files to multiple domains/paths...is file permissions going to be a problem?
How to embed an HTML document containing images with relative paths into another one using 'virtual'
Can I find a physical location of any file on web under IIS 5.0 by a function (no $PATH_TRANSLATED)
How do I check the username and passowrd exists in a text file?????Say if I am in a login page
PHP scripts create dirs & files with HTTPD as owner. How can you make script owner=site admin owner?
Why does open_basedir not allow opening files with the document tree?
When I try to append to files using ANY mode selector, the file only contains the appended text?
I open a file in any mode, even "r" and it erases the previous file?
fopen on a URL returns stat failed?
How do I read out data from an HTML file , and compare each line with a certain variable?
What file path do I use to update ("a") a file on the sameWin server as my web server(/files/*.txt)?
How can I retrieve the data between title tags in different HTML docs to write to another HTML file
How do i get a list of filenames from a directory?
Only reading the 10 newest entries.
How to make a $str1$str2.htm on the fly and open a window for $details of $str1$str2?
How can I 'tail -f' a log file, similar to Perl's File::Tail module?
storing database register fields in a HTML file
Is there a way to read EXE or DLL Version / File Information From PHP?
How can I open an excel file using PHP and to be (read only)
I would like to delete the last line in a document but I don't see how, could somebody help me?
How can I read 8 bytes from a binary file and cast it as a double?
What should httpd.conf say for file creation to be permitted?
How to use PHP to distribute software package to workstations?
how do you download a file (word, etc) saved as a "blob" in mysql to the client computer?
Passwd.php (PHP/file/Passw.php) How can I use this from inside my scripts?
How do I get document info from a page (similar to SSI) ... like "filename", etc?
How do I get document info from a page (similar to SSI) ... like "filename", etc?
How do I get document info from a page (similar to SSI) ... like "filename", etc?
How can I populate a drop down menu with the names of files in a directory?
How can I populate a drop down menu with the names of files in a directory?
How can I populate a drop down menu with the names of files in a directory?
I could not modify .htm file
Why is there an extra space after fgets? /r/n for end of line
Why do I get a "Javascript-Error" when directing to a download-file with headers?Dialog-Box appears!
how can i initialise an array from file but only once, not each time the page is accessed
how can i initialise an array from file but only once, not each time the page is accessed
how can I search a file ( that is all one line and very long!) for 6 $key=$value situations?
How can I create a directory that is owned by me, mkdir() creates apache owned directories.
Why does fputs only work the last time in a while-loop?
Sending file to client using readfile. How do I redirect client after download complete?
How to read the contents of .htaccess and .htpasswd file, using fopen or FILE function in php ?
How cna I get the file path and name of the file opened with fopen if use_inlude_path=TRUE?
How do I specify ^ as the enclosure and , as the delimiter in fgetscv?
I have not write permission in a directory , even the directory set to 777
What is the easiest way to modify one line of text on a text file without changing the other lines?
stream_write and stream_set_write_buffer
stream_write and stream_set_write_buffer
How do I read just a part of a file?
How do I read just a part of a file?
file_get_contents()
how can i copy files on one location of server to another location using PHP script?
Cannot write to dynamically generated folders on Linux web server even though chmod=0777
How do you Replace a string in a PDF file with a Variable from a form?
How do you Replace a string in a PDF file with a Variable from a form?
How download a directory (folder) and its files - instead of one file at a time?
How can I get PHP to display MS Word documents?
I need to create a file on a remote computer, that is not accessible through http or ftp,
How can I have users choose a filename (using a save-as dialog) and write to that file?
Is there anyway to show how many files are in a directory?
How can I include/require from an Apache Alias virtual dir (ex, "Alias /inc /var/lib/myapp")?
PHP convert to MS office?
How do I convert PHP to Microsoft Office? is there a programme that will do this for me? Thanks
I have error of failed to create stream when using fopen() with 'a' mode? With 'r' mode is fine.
Can my host disable the fopen command? Can I check? I keep getting permission denied errors...
How to delete all content or all lines in file?
I can't use remote files!
What should I do, when I can't use remote files? Either Apache2 or PHP dies when I want to.
Whenever i try to use the readfile function allow users to download a music file it displays ID3.
how to create a parse tree
File() cannot read lines added to a file by fputs(). Fopen() can. I need the file in an array.
How can i convert a file to present rich text format file to the user
I get File type uknown when browsing to phpinfo.php. How do I resolve this please?
How can I retrieve the contents of a php/html file after the PHP processor has rendered it?
When I open a file in "r" mode and later close it, I can't reopen it again
Can file_get_contents be risk to download a virus from a remote website?