Re: [PHP] php function on php.net

2003-07-24 Thread Merlin
this is a reply on:

 I am wondering how on php.net the search for functions is done.
You
 can add
 any function just behind the php.net
 like php.net/phpinfo and it will point you right through it. I
know  how to
 redirect this as a 404 error in apache to another file, but then
the
 url is
 changing. In the php.net case the url stayes the same.
 Does anybody know how this is done?

reply:

Use a path relative to your httpdocs for your error document, e.g.
ErrorDocument 404 /myerrorpage.php
instead of
ErrorDocument 404 http://mysite/myerrorpage.php
David.

Unfortunatelly this is not what I mean.

Have a look on this:
http://www.globosapiens.net/hially
A php page is redirecting this 404 error to another page, but I would like
to have
the URL stay the same like it is done on php.net

Can anybody help?

Thanx,

Merlin

--
Worldwide Travel Community
http://www.globosapiens.net


--
lt;IFRAME
SRC=http://saratoga.globosapiens/associates/report_member.php?u=3color=EEE
EEE scrolling=no frameborder=0 TITLE=My travel articles width=330
height=155  ALLOWTRANSPARENCY=truea href=http://www.globosapiens.net;
title=Worldwide Travel CommunityaTravel Communitya/ /IFRAME

David Nicholson [EMAIL PROTECTED] schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
Hello,

This is a reply to an e-mail that you wrote on Tue, 22 Jul 2003 at
21:15, lines prefixed by '' were originally written by you.
 Hi there,
 I am wondering how on php.net the search for functions is done.
You
 can add
 any function just behind the php.net
 like php.net/phpinfo and it will point you right through it. I
know
 how to
 redirect this as a 404 error in apache to another file, but then
the
 url is
 changing. In the php.net case the url stayes the same.
 Does anybody know how this is done?
 Thanx, Merlin

Use a path relative to your httpdocs for your error document, e.g.

ErrorDocument 404 /myerrorpage.php

instead of

ErrorDocument 404 http://mysite/myerrorpage.php

David.

--
phpmachine :: The quick and easy to use service providing you with
professionally developed PHP scripts :: http://www.phpmachine.com/

  Professional Web Development by David Nicholson
http://www.djnicholson.com/

QuizSender.com - How well do your friends actually know you?
 http://www.quizsender.com/
(developed entirely in PHP)



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



Re: [PHP] php function on php.net

2003-07-24 Thread Ivo Fokkema
  Use a path relative to your httpdocs for your error document, e.g.
  ErrorDocument 404 /myerrorpage.php
  instead of
  ErrorDocument 404 http://mysite/myerrorpage.php
 Unfortunatelly this is not what I mean.
I think it is. When you use a relative path in the .htaccess, the URL will
not change, but you will be redirected. Therefor you can use
$_SERVER['REQUEST_URI'] in your 404-page to check what the visitor was
looking for.

HTH,

--
Ivo Fokkema
PHP  MySQL programmer
Leiden University Medical Centre
Netherlands



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



Re: [PHP] php function on php.net

2003-07-24 Thread Curt Zirzow
* Thus wrote Merlin ([EMAIL PROTECTED]):
 this is a reply on:
 
  I am wondering how on php.net the search for functions is done.
 You
  can add
  any function just behind the php.net
  like php.net/phpinfo and it will point you right through it. I
 know  how to
  redirect this as a 404 error in apache to another file, but then
 the
  url is
  changing. In the php.net case the url stayes the same.
  Does anybody know how this is done?
 
 reply:
 
 Use a path relative to your httpdocs for your error document, e.g.
 ErrorDocument 404 /myerrorpage.php
 instead of
 ErrorDocument 404 http://mysite/myerrorpage.php
 David.
 
 Unfortunatelly this is not what I mean.
 
 Have a look on this:
 http://www.globosapiens.net/hially
 A php page is redirecting this 404 error to another page, but I would like
 to have
 the URL stay the same like it is done on php.net

mod_rewrite can do that.

Or:

header('HTTP/1.0 307 Temporary Redirect');
header('Location: /uri/to/file');
?
a href=/url/to/filemoved here/a
---

rfc2616 section=10.3.8
307 Temporary Redirect

The requested resource resides temporarily under a different URI.
Since the redirection MAY be altered on occasion, the client
SHOULD continue to use the Request-URI for future requests.
/rfc2616
  
I havn't tested it but the behaviour for the client is specified.

 
 Can anybody help?
 

HTH,


Curt
-- 
I used to think I was indecisive, but now I'm not so sure.

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



Re: [PHP] php function on php.net

2003-07-24 Thread Curt Zirzow
* Thus wrote Ivo Fokkema ([EMAIL PROTECTED]):
   Use a path relative to your httpdocs for your error document, e.g.
   ErrorDocument 404 /myerrorpage.php
   instead of
   ErrorDocument 404 http://mysite/myerrorpage.php
  Unfortunatelly this is not what I mean.
 I think it is. When you use a relative path in the .htaccess, the URL will
 not change, but you will be redirected. Therefor you can use
 $_SERVER['REQUEST_URI'] in your 404-page to check what the visitor was
 looking for.

with ErrorDocument 404 /myerropage.php

The url wont change if the 404 doesn't do any redirection. I've
never tried a 404 to an external page, I don't think its possible
(too lazy to look at apache's docs atm).

cheers

Curt
-- 
I used to think I was indecisive, but now I'm not so sure.

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



Re: [PHP] php function on php.net

2003-07-24 Thread Chris Shiflett
--- Merlin [EMAIL PROTECTED] wrote:
 Unfortunatelly this is not what I mean.
 
 Have a look on this:
 http://www.globosapiens.net/hially
 A php page is redirecting this 404 error to another page, but I
 would like to have the URL stay the same like it is done on php.net

Then don't redirect to another URL but rather display whatever it is you want
to display. If nothing else, you can simply fetch the alternate URL for the
user like this:

readfile('http://www.google.com/');

Hope that helps.

Chris

=
Become a better Web developer with the HTTP Developer's Handbook
http://httphandbook.org/

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



Re: [PHP] php function on php.net

2003-07-22 Thread David Nicholson
Hello,

This is a reply to an e-mail that you wrote on Tue, 22 Jul 2003 at
21:15, lines prefixed by '' were originally written by you.
 Hi there,
 I am wondering how on php.net the search for functions is done.
You
 can add
 any function just behind the php.net
 like php.net/phpinfo and it will point you right through it. I
know
 how to
 redirect this as a 404 error in apache to another file, but then
the
 url is
 changing. In the php.net case the url stayes the same.
 Does anybody know how this is done?
 Thanx, Merlin

Use a path relative to your httpdocs for your error document, e.g.

ErrorDocument 404 /myerrorpage.php

instead of

ErrorDocument 404 http://mysite/myerrorpage.php

David.

--
phpmachine :: The quick and easy to use service providing you with
professionally developed PHP scripts :: http://www.phpmachine.com/

  Professional Web Development by David Nicholson
http://www.djnicholson.com/

QuizSender.com - How well do your friends actually know you?
 http://www.quizsender.com/
(developed entirely in PHP)

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