Re: [PHP] readfile()

2007-01-11 Thread Jochem Maas
Steven Macintyre wrote: > HI all > > I'm currently using this function to read a remove address to create a > mailbox ... > > However - It ALWAYS displays the output of that file to the user screen ... > all I wish to do is something like ... use a different file function. e.g. file_get_conten

RE: [PHP] readfile() problem

2006-10-13 Thread Richard Lynch
On Fri, October 13, 2006 1:28 am, Peter Lauri wrote: > Hi, I am trying to do this, but now I cannot set values with ini_set. > I do > the following and it outputs "could not set". I have also tried 0, > "0", but > that doesn't help. > > if(ini_set("output_buffering", "off")) echo "could set"; > els

RE: [PHP] readfile() problem

2006-10-13 Thread Peter Lauri
You are correct. I might love you :) -Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTED] Sent: Friday, October 13, 2006 2:27 PM To: Peter Lauri Cc: [EMAIL PROTECTED]; php-general@lists.php.net Subject: RE: [PHP] readfile() problem On Fri, 2006-10-13 at 13:28 +0700, Peter

RE: [PHP] readfile() problem

2006-10-13 Thread Robert Cummings
On Fri, 2006-10-13 at 13:28 +0700, Peter Lauri wrote: > Hi, I am trying to do this, but now I cannot set values with ini_set. I do > the following and it outputs "could not set". I have also tried 0, "0", but > that doesn't help. > > if(ini_set("output_buffering", "off")) echo "could set"; > else

RE: [PHP] readfile() problem

2006-10-12 Thread Peter Lauri
ot;could NOT set"; /Peter -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Friday, October 13, 2006 4:59 AM To: Peter Lauri Cc: php-general@lists.php.net Subject: RE: [PHP] readfile() problem On Thu, October 12, 2006 3:26 pm, Peter Lauri wrote: > It di

RE: [PHP] readfile() problem

2006-10-12 Thread Richard Lynch
On Thu, October 12, 2006 3:26 pm, Peter Lauri wrote: > It did help, but not perfectly. Sometimes I have to refresh a few > times > before it will be pushed. Is output_buffering defaulted to "on"?... Cuz then you're putting a whole SECOND copy of the output into PHP's output buffer. That's bad. :

RE: [PHP] readfile() problem

2006-10-12 Thread Peter Lauri
: [PHP] readfile() problem On Thu, October 12, 2006 11:43 am, Peter Lauri wrote: > I have a problem. I am using readfile() to send files to the browser. > I have three different files that I am sending. They are 3MB, 15MB and > 59MB > Is there any limitations or settings of how large t

Re: [PHP] readfile() problem

2006-10-12 Thread Richard Lynch
On Thu, October 12, 2006 11:43 am, Peter Lauri wrote: > I have a problem. I am using readfile() to send files to the browser. > I have three different files that I am sending. They are 3MB, 15MB and > 59MB > Is there any limitations or settings of how large the files can be > when > using readfil

Re: [PHP] readfile and get_file_contents don't work

2005-11-24 Thread David Grant
Hi Richard, Please ensure that the "allow_url_fopen" directive is set to "On" in your php.ini file. Cheers, David Grant Richard K. Miller wrote: > I compiled PHP from source on Fedora Core 4, but I must have left > something out because readfile and get_file_contents aren't working. If > I try

Re: [PHP] readfile()

2004-08-23 Thread Aaron Todd
Not too familure with a chroot'd web setup and I dont know if my ISP has some security that I dont know about. I tried some tests with file_exists() and it doesnt seemt to be able to get to the files either. I've put in an info request to my ISP but they are usually not much help with somethin

Re: [PHP] readfile()

2004-08-23 Thread Greg Donald
On Mon, 2004-08-23 at 15:35, Aaron Todd wrote: > Not too familure with a chroot'd web setup and I dont know if my ISP has > some security that I dont know about. I tried some tests with file_exists() > and it doesnt seemt to be able to get to the files either. I've put in an > info request to

Re: [PHP] readfile()

2004-08-23 Thread Greg Donald
On Mon, 2004-08-23 at 13:02, Aaron Todd wrote: > I'm trying to use readfile() to allow a user to download a file that is > outside of my webroot. > > webroot = /var/www/html > downloads dir = /var/www/downloads > > Here is the code that I have been using: > $file = "/var/www/downloads/test.t

Re: [PHP] readfile error

2004-03-02 Thread Ashley
Line 6 is: readfile($dataURL); $dataURL is a link to an xml file. It is a valid file because if I visit the link, I do get the file I am looking for, but reading it into PHP gives the described error message. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.

Re: [PHP] readfile error

2004-03-02 Thread Richard Davey
Hello Ashley, Tuesday, March 2, 2004, 3:26:54 PM, you wrote: A> Warning: php_network_getaddresses: gethostbyname failed in 'insert path A> here' on line 6 A> Warning: A> readfile("http://jurist.law.pitt.edu/paperchase/blogger_rss.xml";) - A> Bad file number in 'insert path here' on line 6 A> Do

Re: [PHP] Readfile, DAP and 3 questions

2004-01-06 Thread Adam i Agnieszka Gasiorowski FNORD
Ryan A wrote: > Opera version 6.5 and 7... > I already had that set. Try asking again on news:opera.general (if your server does not carry this newsgroup, try news.opera.com). There are more Opera - knowleable people there :8]. I recall that there is a solution, I just cannot fin

Re: [PHP] Readfile, DAP and 3 questions

2004-01-05 Thread Adam i Agnieszka Gasiorowski FNORD
Ryan A wrote: > I am using the example from the online manual: > http://de3.php.net/manual/en/function.readfile.php > > to read a file that is in a .htaccess protected folder and pop a download > box to the client. > > Surprisingly, after screwing around with the example code for 2 mins I got >

Re: [PHP] readfile without stating filelength

2002-09-30 Thread Justin French
1. I can't see a file length statement in the docs for readfile. 2. Can't you just use include('somefile.html'); or require('somefile.html'); Just make sure any PHP code in the include file is wrapped in tags. HTH Justin French on 01/10/02 1:12 PM, Daniel Jung ([EMAIL PROTECTED]) wrote: > H

RE: [PHP] readfile without stating filelength

2002-09-30 Thread John W. Holmes
> I want to read a pure html file into a php-generated html file. > print(readfile("somefile.html")); > How do I get rid of the filelength statement? > Messes up the page. Your error is using the print(). You just want readfile("file") without the print. Readfile() returns the number of bytes rea

Re: [PHP] readfile() question

2001-06-25 Thread Richard Lynch
> I was wondering what happens if you call the readfile function to output a > large binary file to a client with a slow connection. > Does the script run until the whole file is sent to the client (leading to > timeout errors on servers with a low max execution time) or does it fill > some sort o

Re: [PHP] readfile + proxy

2001-06-24 Thread Anon Y Mous
Instead of using readfile(), try using the file() function. // Get php.net and store it in an array. $theFile = file("http://www.php.net";); // Convert the array to one long string. $theFile = implode("",$theFile); // And output the file. echo $theFile; If you're trying to do this with an image,