[PHP] Problem with Header!
I want to sent a script-result as a renamed html-document to the client. I tried: - header(Content-Disposition: inside; filename=name.html); - header(Content-Disposition: inside; filename=\name.html\); - header(Content-Disposition: inside;); header(Content-filename=name.html); even with a content-type: text/html... but it doesn't work. inside replaced by something other like attachement or inline does not work, either! someone an idea? thx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] echo $PHP_SELF doesn't work in an include
I include another script-file with include_once. Now the output of my PHP-Vars ($PHP_SELF, $REQUEST_URI, $DOCUMENT_ROOT) is empty. In my parent-scripts the output works fine, but in the include is neither outputs the parent-data nor the include-data. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] echo $PHP_SELF doesn't work in an include
Hi, I include another script-file with include_once. Now the output of my PHP-Vars ($PHP_SELF, $REQUEST_URI, $DOCUMENT_ROOT) is empty. In my parent-scripts the output works fine, but in the include it neither outputs the parent-data nor the include-data. try echo $GLOBALS[PHP_SELF]. if that works, then you must have a scope problem. no, it doesnt. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Re: How to disable access to the site
if (!isset($HTTP_COOKIE_VARS[$cookiename])) exit(); -Original Message- From: Yasuo Ohgaki [mailto:[EMAIL PROTECTED]] Sent: Monday, August 27, 2001 9:49 AM To: [EMAIL PROTECTED]; Sunil Jagarlamudi Subject: [PHP] Re: How to disable access to the site Sunil Jagarlamudi wrote: How to disable access to the entire site if the cookie is not set ? Can we disable access entirely with some kind of a script which checks before it allows access ? Take a look at http://www.zend.com/codex.php?id=458single=1 There are many ways to do that. This is one of them. -- Yasuo Ohgaki -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]