Jump to content

getting url


dsjoes

Recommended Posts

how do i get the url using the below? I have set up my error pages so that there is an iframe with a form on so the error can be reported but because i have the below on the iframe it gets the iframe url and not the url that produced the error.

 

it is displaying this

example.com/error/report.php

 

but it should be this

example.com/fake.php

 

$requri = getenv ("REQUEST_URI");
$servname = getenv ("SERVER_NAME");

Link to comment
https://forums.phpfreaks.com/topic/231591-getting-url/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.