[Mozile] save problem

Michael Felden mf at f63.de
Thu Oct 19 00:37:41 PDT 2006


Hi Max and everybody else,
thanks for your help - save works now!

$f = fopen('test.htm','w');
fputs($f, file_get_contents('php://input'));
fclose($f);

But mozile still thinks something's wrong.
I get 4 red status 3 messages:

Beginning save...
Save via HTTP POST: 1. Initialising ...
Save via HTTP POST: 1. Sending ...
Save Failed! Unextpected server response ...

Maybe you can help me with that too?

Regards
Michael

Max d'Ayala schrieb:
> I'm not too sure about 0.7 but I think that the POSTed data won't appear 
> in the $_POST variable.
> 
> 
> Try either of these two methods:
> 
> =========
> 
> The POST data may be extracted from the global variable 
> $HTTP_RAW_POST_DATA, or from the global variables array 
> $GLOBALS['HTTP_RAW_POST_DATA'].
> 
> A more efficient way to access the data is directly from the input 
> stream. E.g. to read the raw data as a string you could use:
> $post_data = file_get_contents('php://input');
> 
> =========
> 
> Max
> 
> 
> 
> Michael Felden wrote:
>> Hi,
>> Mozile won't save file.
>> Installed 0.7 on my local Apache (Xampp) under XP home.
>>
>> mozile.js:
>>
>> var mozileModules=[
>> "UndoRedo",
>> "CopyCutPaste: requestPermissions=false",
>> "XHTMLBasic",
>> "LocalFile: file='G:\Webserver\xampp\htdocs\test.htm'",
>> "HTTPPost: url='http://localhost/save.php'",]
>>
>>
>> save.php:
>>
>> <?php
>> $t = print_r($_POST, true);
>> $f = fopen('test.htm','w');
>> fputs($f,$t);
>> fclose($f);
>> ?>
>>
>> On save attempt over http post I get unexpected server response 200 - 
>> page moved. The save.php saved an empty Post array.
>>
>> What can I do?
>>
>>
>> Regards
>> Michael
>> _______________________________________________
>> Mozile mailing list
>> Mozile at mozdev.org
>> http://mozdev.org/mailman/listinfo/mozile
>>
>>   
> _______________________________________________
> Mozile mailing list
> Mozile at mozdev.org
> http://mozdev.org/mailman/listinfo/mozile
> 
> 


More information about the Mozile mailing list