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
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;



?>

Link to comment
Share on other sites

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

 

%20 is the encoded "space". Post the value of the $what or $url variables. Probably ull need to run a str_replace() to remove "\n".

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.