, a 500 Internal Server Error error was encountered while
trying to use an ErrorDocument to handle the request.
Sowhat's going on here? Am I to conclude that the 404 header does
not work, and that I should just use a Redirect: header() to my 404 page?
Best Regards,
Scott Taylor
--
PHP
Larry E. Ullman wrote:
I've seen cases where extra buffer content gets added to the
downloaded file. The problem was fixed by deleting any existing
buffer before sending the file to the client. Not sure that will
solve the problem but it's worth a shot.
How does one delete an existing buffer?
I'm using this code to stream a PDF file:
$file = $_SERVER['DOCUMENT_ROOT'] . /file.pdf;
simple_streamfile($file);
function simple_streamfile($file)
{
$fp = fopen($file, 'rb');
// send the right headers
header(Content-Type: application/pdf);
header(Content-Length: .
with this one? Should
I also base64_encode() this data when passing it?
Scott Taylor
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
* Thus wrote Scott Taylor:
Some people are complaining that when the visit one of my pages that the
pages refeshes over and over again. One person said that it was only
when he typed something in on one of the forms. How could an error like
this be caused? Could this be a bug in a browser
Some people are complaining that when the visit one of my pages that the
pages refeshes over and over again. One person said that it was only
when he typed something in on one of the forms. How could an error like
this be caused? Could this be a bug in a browser?
Scott
--
PHP General
I've gotten this one report of having a problem downloading a PDF:
I have tried twice, both times its starts to download but stops about
half way or three-quarters the way complete. I get a error message that
the download was not completed. When I go to look at the message there
is just
the same code, but without an fclose(); could this be doing it?
Best Regards, and thank you so much for the help,
Scott Taylor
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
? Since I am not experincing this problem first
handed, I really have no clue. Also, shouldn't this person get prompted if he wants
to save it or open it with Adobe Acrobat?
Best Regards,
Scott Taylor
?php
include(subscriber_functions.php);
session_name(miningstocks_subscribers
How exactly do sessions work? I've heard that if cookies are disabled
that a session will then pass it's variables in the url (through GET).
Yet when I manually disable cookies none of my pages work (because the
$_SESSION variables do not seem to be working).
Any ideas?
Best Regards,
Scott
doesn't say either way, but for the include() fuction it says that it
should work...
Best Regards,
Scott Taylor
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
it not work before I added this header line? Is it a flaw in
Adobe Acrobat?
Best Regards,
Scott Taylor
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
,
Scott Taylor
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
is that the server converts all \r's into \n's, and
for this reason when a piece of mail goes out it has two breaks instead
of one.
Best Regards, and thank you for the help,
Scott Taylor
Ben Ramsey wrote:
Scott Taylor wrote:
What I really don't understand is why there are any line breaks at
all, because
I am entering some text into a webpage, then using $_POST on the next
page to recieve it. It then should email the $_POST to an email
address. The problem that I am encountering is that I am getting an
extra line break on every line.
If I enter
a
b
into the textarea (which is the variable
);
What I really don't understand is why there are any line breaks at all,
because the trim is supposed to take out all \r \n 's. Is there
another type of line break?
Best Regards,
Scott Taylor
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
of the file itself
being corrupt, etc.
Thanks for the help,
Scott Taylor
- Edwin - wrote:
On Tue, 27 Jan 2004 20:22:46 -0500
Scott Taylor [EMAIL PROTECTED] wrote:
I understand all of the file size ones. What I really don't
understand is why neither of the following examples work:
/* example 1
Stuart wrote:
Scott Taylor wrote:
$file_two = 'archive/newsletters/Dec03PostPress.pdf';
Try replacing this line with...
$file_two =
$_SERVER['DOCUMENT_ROOT'].'/archive/newsletters/Dec03PostPress.pdf';
As my first posts states, I've tried that. And no, that doesn't work
either
reason this works:
readfile('http://domain.com/archive/newsletters/Dec03.pdf');
but this does not: readfile('/archive/newsletters/Dec03.pdf');
nor does this: readfile('archive/newsletters/Dec03.pdf');
Can someone explain this to me?
Thanks for all the help,
Scott Taylor
--
PHP General Mailing
';
readfile($file);
/* example 2 */
$file = 'archive/newsletters/Dec03.pdf';
readfile($file);
Thanks for the help so far,
Best Regards,
Scott
-Original Message-
From: Scott Taylor [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 27, 2004 12:34 PM
To: [EMAIL PROTECTED]
Subject: [PHP
21 January 2004 05:49, Scott Taylor wrote:
Please trim your posts!
Of course there is not problem if the user is entering the information
him or her self. But just using this code:
$file = 'http://miningstocks.com/protected/Dec03PostPress.pdf';
//now view the PDF file
will have to go through the documentation to use this.
If anyone has any ideas it will be much appreciated.
Scott Taylor
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Regards,
Scott Taylor
[EMAIL PROTECTED] wrote:
there are a couple of different ways to do this.
the http basic approach will work just fine. with http basic the
id/pw are passed in the headers in an encoded string, so i'm not
certain about your:
if using HTML, the username password is easily
Subject:
Re: [PHP] Re: alternative to protecting files through http auth.
From:
Jason Wong [EMAIL PROTECTED]
Date:
Sat, 17 Jan 2004 05:08:29 +0800
To:
[EMAIL PROTECTED]
On Saturday 17 January 2004 04:03, Scott Taylor wrote:
Alternately, if you aren't able to create directories or access files
Paul Chvostek wrote:
On Wed, Jan 14, 2004 at 04:17:06PM -0500, Scott Taylor wrote:
Is there no other way to protect your (non PHP) files than through
authentication? I've been trying to set up a system that will protect
files. Those trying to access the files would only be able to do so
What is the simplist way to do change
http://username:[EMAIL PROTECTED]/protected/archive/$file to
http://miningstocks.com/protected/archive/$file where $file is a
variable (indicating any file in that directory or any subdirectory)?
Best Regards and thank you for all the help,
Scott
is there an alternative to using http basic
authentication to protect files? Or is there a simple way to
authenticate the pages themselves without using something like Manuel
Lemos' PHP HTTP class?
Best Regards,
Scott Taylor
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
Paul Chvostek wrote:
On Wed, Jan 14, 2004 at 04:17:06PM -0500, Scott Taylor wrote:
Is there no other way to protect your (non PHP) files than through
authentication? I've been trying to set up a system that will protect
files. Those trying to access the files would only be able to do so
What is the easiest way to view the headers that a PHP page has put
out? I've seen the |var_dump(headers_list()); on php.net but this
always gives me an error (such as: |
bFatal error/b: Call to undefined function: headers_list() in /usr/local/psa/home/vhosts/a.com/httpdocs/my/page.php/b on
regards,
Scott Taylor
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
the workaround with the meta tag (meta http-equiv=REFRESH
content=0; URL=http://www.slashdot.org/;, but I just don't understand
what I am doing wrong here. I'm sure someone here knows
Thank you in advance,
Scott Taylor
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net
31 matches
Mail list logo