[Mozile] save problem
Max d'Ayala
max at dayala.co.uk
Wed Oct 18 05:43:41 PDT 2006
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
>
>
More information about the Mozile
mailing list