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
regards,
Scott Taylor
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
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
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
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
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
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
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
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
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
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(
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?
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
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
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
<>
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
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
* 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
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
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
/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
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
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,
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
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
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
gards,
Scott Taylor
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
".
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
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
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
31 matches
Mail list logo