revlet saves txt file
Brian Yennie
briany at qldlearning.com
Sat Aug 8 04:11:27 EDT 2009
Hi Yves,
You can POST the data *to* a PHP script. PUT command is designed for
uploading a file (and many hosts do not support it). POST command as
far as I know is supported by every host -- but you must have a script
to receive the data. You cannot POST to just any URL.
So for example you would do something like:
post myData to "http://myserver.com/myscript.php"
And then you would have a PHP script which receives the data and
writes it to the appropriate file:
(note: brackets used here so email doesn't turn this snippet into an
HTML tag)
[?php
$pref1 = $_POST["pref1"];
$pref2 = $_POST["pref2"];
...
// write the prefs data to a file
?]
Hope that gets you a bit closer.
>
> Le 08-août-09 à 09:48, Brian Yennie a écrit :
>
>> Yves,
>>
>> I assume you mean "PUT" command (not POST).
>>
>> Does your host give you FTP access?
>>
>> As for PHP, yes, you could probably write a simple PHP script --
>> not sure what you mean by "within rev". You would write the PHP
>> script in any text editor, and save it to your server.
>>
>
>
> Re Brian,
>
> thanks for your quick answer
> My previous mail was not so clear
> I will try to make it more comprehensive
>
>
> I've tried to save my text with "PUT" and "POST" command
> None work
> So I try another solution
>
> My question is
> If I have a PHP script on my server which does the work, how can I
> "wakeup" this script from rev : a btn which saves the text of a fld
> and send it to a php script
>
>
> Greetings.
>
> Yves COPPE
> yvescoppe at skynet.be
More information about the use-livecode
mailing list