[PHP] 404 Header Problems

2005-07-13 Thread Scott Taylor
, 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

Re: [PHP] Extra byte added to PDF streaming file

2004-07-27 Thread Scott Taylor
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?

[PHP] Extra byte added to PDF streaming file

2004-07-26 Thread Scott Taylor
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: .

[PHP] Encrypting passwords from page to page -mcrypt question

2004-07-15 Thread Scott Taylor
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

[PHP] Re: Odd Refresh Error

2004-07-12 Thread Scott Taylor
* 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

[PHP] odd refresh error

2004-07-10 Thread 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? Scott -- PHP General

[PHP] problem with downloading some pdf's

2004-07-09 Thread Scott Taylor
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

[PHP] Re: opening Adobe pdf's

2004-06-22 Thread Scott Taylor
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

[PHP] opening Adobe pdf's

2004-06-21 Thread Scott Taylor
? 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

[PHP] sessions cookies

2004-06-19 Thread Scott Taylor
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

[PHP] virtual() include path problems

2004-03-15 Thread Scott Taylor
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

[PHP] odd acrobat reaction to streaming files

2004-03-10 Thread Scott Taylor
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

[PHP] time delay function?

2004-03-09 Thread Scott Taylor
, Scott Taylor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: extra breaks in sent out emails

2004-03-07 Thread Scott Taylor
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

[PHP] extra breaks in sent out emails

2004-03-06 Thread Scott Taylor
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

[PHP] Re: extra breaks in sent out emails

2004-03-06 Thread Scott Taylor
); 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

Re: [PHP] path problems

2004-01-28 Thread Scott Taylor
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

Re: [PHP] path problems

2004-01-28 Thread Scott Taylor
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

[PHP] path problems

2004-01-27 Thread Scott Taylor
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

Re: [PHP] path problems

2004-01-27 Thread Scott Taylor
'; 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

Re: [PHP] authentication problems!

2004-01-21 Thread Scott Taylor
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

[PHP] authentication problems!

2004-01-20 Thread Scott Taylor
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

Re: [PHP] authentication problems!

2004-01-20 Thread Scott Taylor
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

Re: [PHP] Re: alternative to protecting files through http auth.

2004-01-17 Thread Scott Taylor
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

[PHP] Re: alternative to protecting files through http auth.

2004-01-16 Thread Scott Taylor
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

[PHP] simple mod_rewrite question

2004-01-16 Thread Scott Taylor
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

[PHP] alternative to protecting files through http auth.

2004-01-14 Thread Scott Taylor
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

[PHP] Re: alternative to protecting files through http auth.

2004-01-14 Thread Scott Taylor
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

[PHP] view outputed headers?

2004-01-11 Thread Scott Taylor
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

[PHP] http authentication through PHP

2004-01-10 Thread Scott Taylor
regards, Scott Taylor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] newbie question about header()

2003-12-21 Thread Scott Taylor
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