Jump to content

[SOLVED] How to give link ? header() function problem!


plodos

Recommended Posts

if i write

header("Location:".$_SERVER["PHP_SELF"]."?wrong_code17=true");

it is working.

 

is it possible to open that link with echo

$opstr="header(\"Location:".$_SERVER["PHP_SELF"]."?wrong_code17=true\");";
echo $opstr;

 

Nope, you need to use file_get_contents, file, or fopen.

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.