Why doesn't my header() function redirect?

GermanPlaya

New Member
I have the following script that recieves an xml file and reads it with \[code\]file_get_contents()\[/code\]. I want to redirect this xml to a file called "register" but it doesn't work and I have no idea why.\[code\] <?php $xml_post=file_get_contents('php://input'); $xml=simplexml_load_string($xml_post); if($xml->action=='register') { header('Location: http://proiectis.host22.com/register.php'); exit; } ?>\[/code\]I would appreciate your help.This is my xml: \[code\] <xml version="1.0"> <action>register</action> <parameters> <name>Ionel Popescu</name> <username>Ionel P</username> <email>[email protected]</email> <password>abdef01</password> </parameters> </xml>\[/code\]
 
Back
Top