Jump to content

Header may not contain more than a... ??


Krazy-j

Recommended Posts

just ran into a bit of an issue wondering if someone could help out.. ?

 

header("Location: www.urlexample.com/secure/messe...SuccessPage=$url");

 

Now the only problem with this is it returns the following error message "Warning: Header may not contain more than a single header, new line detected. in C:\wamp\www\login\smsprocess.php on line 25"

 

I have noticed this is due to the fact that $what has new lines? It contains alot of %20's ????

 

Is there any way to fix this issue?

 

Link to comment
https://forums.phpfreaks.com/topic/103350-header-may-not-contain-more-than-a/
Share on other sites

The only way is to get rid of all the line breaks apparently.

 

you could probably use explode to get rid of them.

 

Like this:

<?php


$temp_explode = explode('
', $url);

$url = $temp_explode[0];
$temp_explode = NULL;



?>

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.