Re: [PHP] Redirect problem.... UGH!!

2002-02-04 Thread Analysis and Solutions

Hi Robert:

 Perhaps you can help, since my posts don't seem to be making it to the
 newsgroup.

 I have been trying to use readfile() or header() to load another PHP...

Check the archives: http://groups.google.com/groups?hl=engroup=php.general

Good luck,

--Dan

-- 
PHP scripts that make your job easier
  http://www.analysisandsolutions.com/code/
 SQL Solution  |  Layout Solution  |  Form Solution
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
 4015 7 Ave, Brooklyn NY 11232v: 718-854-0335f: 718-854-0409

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




[PHP] Redirect problem.... UGH!!

2002-01-30 Thread Ben Turner

I am trying to put together a very simple redirect from php.  all it is
supposed to do is pull down the $p var and ship the user off to the
destination.

Ready for some code?

?
 #Header(Location: index.html);
?

When I try this on a Linux server using PHP... everything works fine.  The
minute I put it on IIS5 (the clients server) I receive The specified CGI
application misbehaved by not returning a complete set of HTTP headers. 

I am guessing this is a bu with PHP and IIS but does anyone know how to
circumvent it?

Thanks!
Ben

-- 
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] Redirect problem.... UGH!!

2002-01-30 Thread Bryan Gintz

Try it with JavaScript (a very nice supplement to PHP sometimes )
?
print SCRIPT\n;
print document.location=\index.html\;\n;
print /SCRIPT\n;
?


Ben Turner wrote:

I am trying to put together a very simple redirect from php.  all it is
supposed to do is pull down the $p var and ship the user off to the
destination.

Ready for some code?

?
 #Header(Location: index.html);
?

When I try this on a Linux server using PHP... everything works fine.  The
minute I put it on IIS5 (the clients server) I receive The specified CGI
application misbehaved by not returning a complete set of HTTP headers. 

I am guessing this is a bu with PHP and IIS but does anyone know how to
circumvent it?

Thanks!
Ben




-- 
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] Redirect problem.... UGH!!

2002-01-30 Thread Jason Wong

On Thursday 31 January 2002 02:47, Ben Turner wrote:
 I am trying to put together a very simple redirect from php.  all it is
 supposed to do is pull down the $p var and ship the user off to the
 destination.

 Ready for some code?

 ?
  #Header(Location: index.html);
 ?

 When I try this on a Linux server using PHP... everything works fine.  The
 minute I put it on IIS5 (the clients server) I receive The specified CGI
 application misbehaved by not returning a complete set of HTTP headers. 

 I am guessing this is a bu with PHP and IIS but does anyone know how to
 circumvent it?

You have a # before Header, is that a typo or is it actually in your code?

-- 
Jason Wong - Gremlins Associates - www.gremlins.com.hk

/*
Some people around here wouldn't recognize subtlety if it hit them on the 
head.
*/

-- 
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] Redirect problem.... UGH!!

2002-01-30 Thread Analysis and Solutions

Ben:

 ?
  #Header(Location: index.html);
 ?

You need to put the complete URL, not just the file name.

By the way, folks, DON'T use JavaScript for redirection (or other
essential navigational stuff).  Plenty of people out there keep Java'Scrap
turned off for security and privacy reasons.

Enjoy,

--Dan

--
PHP scripts that make your job easier
  http://www.analysisandsolutions.com/code/
 SQL Solution  |  Layout Solution  |  Form Solution
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
 4015 7 Ave, Brooklyn NY 11232v: 718-854-0335f: 718-854-0409

-- 
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] Redirect problem.... UGH!!

2002-01-30 Thread Jim Lucas [php]

try puting an exit(); after the header().


?
header(location: someplace.html);
exit();
?

Jim Lucas
- Original Message -
From: Ben Turner [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, January 30, 2002 10:47 AM
Subject: [PHP] Redirect problem UGH!!


 I am trying to put together a very simple redirect from php.  all it is
 supposed to do is pull down the $p var and ship the user off to the
 destination.

 Ready for some code?

 ?
  #Header(Location: index.html);
 ?

 When I try this on a Linux server using PHP... everything works fine.  The
 minute I put it on IIS5 (the clients server) I receive The specified CGI
 application misbehaved by not returning a complete set of HTTP headers. 

 I am guessing this is a bu with PHP and IIS but does anyone know how to
 circumvent it?

 Thanks!
 Ben

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