Re: Displaying files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 15 Aug 2008, at 14:07, Dan Shirah wrote:
Okay, I'm perplexed!

If I put the exact same value into a javascript function and open a window
the document comes up perfectly fine.

But, when trying to readfile() copy() or fopen() in PHP I get the "failed to
open stream:" error.

Any idea why the exact same link would open fine using a HTML link or a
javascript function, but will not work using PHP?

Because as I mentioned before PHP runs as a different user to your browser.

-Stut

--
http://stut.net/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux