Jump to content


Photo

*SOLVED* 404 page referer?


  • Please log in to reply
3 replies to this topic

#1 Gonwee

Gonwee
  • New Members
  • Pip
  • Newbie
  • 4 posts

Posted 31 March 2006 - 01:40 PM

Is there a way with PHP to get the link that results in a 404, that way my custom 404 page can pass the info to me threw the mail function?

And will,
function ($_POST[]);
Do the same as
function ($_POST['a']);
function ($_POST['b']);
function ($_POST['c']):
and so on...


#2 ober

ober
  • Staff Alumni
  • Advanced Member
  • 5,337 posts
  • LocationEast Coast, USA

Posted 31 March 2006 - 02:10 PM

$_SERVER['HTTP_REFERER'] will get you the page it came from.

And yes, you can pass arrays to functions, but leave off the brackets.

Info: PHP Manual


#3 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 31 March 2006 - 02:12 PM

Do you mean is there a way for PHP to find the links that result in a 404 error message. As far as I know there isn't anyway to do that. However you can use $_SERVER['HTTP_REFERER'] this will return the page that the user last came from, so I guess this can help you alittile but there isn't away with PHP to find dead links.

#4 Gonwee

Gonwee
  • New Members
  • Pip
  • Newbie
  • 4 posts

Posted 01 April 2006 - 09:08 AM

I have another question. I have a form that will be for updating rows of the table, the stuff is going to go in a textarea and has html tags. Right now it just shows the last bit of it, but in the source it has all the other stuff.

nevermind, i got it(i'm an idiot)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users