Hi Bill,
0777 is for all users who have access to the computer including guests.
This includes e.g. people who log in over FTP or SSH. However, without
logging in first, you can't have access to a computer.
Some server accept the put command over http, but many don't. Servers
that accept it, will still need some credentials, even if it is only
guest:guest.
More common are FTP commands or POST and GET commands using the http
protocol. For a file, you may want to use a multipart POST command, but
you will need to handle the POST in a PHP or OnRev script.
FTP is really simple:
put "ftp://user:[email protected]/www/path/file.xyz" into myURL
Because it is very simple, it is also slightly insecure.
If you let me know how you want to proceed, I can help.
--
Best regards,
Mark Schonewille
Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553
Installer Maker for LiveCode:
http://qery.us/468
Buy my new book "Programming LiveCode for the Real Beginner"
http://qery.us/3fi
LiveCode on Facebook:
https://www.facebook.com/groups/runrev/
On 5/9/2015 21:50, William Prothero wrote:
Folks:
I can read a simple text file from my server, but can’t write to the server. My
code is:
on getTestData
put "http://waterdetective.earthednet.org/rawmeterdata/testdata" into xURL
put URL xURL into myTestData --This works.
put “http://waterdetective.earthednet.org/rawmeterdata/mycrap" into xURL
put "mycrapstuff" into URL( xURL)
end getTestData
I get the testdata file ok. I wrote it using another program. But, I can’t get
it to write to the file “mycrap”
The directory has permission 0777, so everybody should be able to write to it.
Or, is there some kind of permission and login thing I need to do first.
Aren’t there any error messages returned if the write fails?
Bill
William A. Prothero
http://es.earthednet.org/
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode