[PHP] 404 Header Problems

2005-07-13 Thread Scott Taylor
e 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 General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.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: " . filesize(

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

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

[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 numb

[PHP] Re: opening Adobe pdf's

2004-06-22 Thread Scott Taylor
rs header("Content-Type: image/png"); header("Content-Length: " . filesize($name)); // dump the picture and stop the script fpassthru($fp); exit;| basically 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
eone know what's going on here? 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 include("subscriber_functions.php&q

[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 Rega

[PHP] virtual() include path problems

2004-03-15 Thread Scott Taylor
s virtual not supposed to use absolute paths? The documentation on php.net 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
". I was able to add this header line: header("Content-Disposition: attachment; filename=".basename($file).";"); which forced the user to be prompted if he wanted acrobat to be loaded or to save the file. Both options worked flawlessly. So why did 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
gards, 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
e broken text lines). My guess 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

[PHP] Re: extra breaks in sent out emails

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

[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 th

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,

Re: [PHP] path problems

2004-01-28 Thread Scott Taylor
was problem with loading a file from the local file system instead 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 rea

Re: [PHP] path problems

2004-01-27 Thread Scott Taylor
/archive/newsletters/Dec03.pdf'; 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

[PHP] path problems

2004-01-27 Thread Scott Taylor
ers/Dec03.pdf'); For some 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? Th

Re: [PHP] authentication problems!

2004-01-21 Thread Scott Taylor
ote in message news:[EMAIL PROTECTED] On Wednesday 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.co

Re: [PHP] authentication problems!

2004-01-20 Thread Scott Taylor
d (making it pointless to even protect the files in the first place). Best 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 encod

[PHP] authentication problems!

2004-01-20 Thread Scott Taylor
d be VERY simple, and it means that I 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] 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 o

[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] 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

[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

[PHP] alternative to protecting files through http auth.

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

[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: | Fatal error: Call to undefined function: headers_list() in /usr/local/psa/home/vhosts/a.com/httpdocs/my/page.php on line 7

[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
ag (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/) To unsubscribe, visit: http://www.php.net/unsub.php