PDA

View Full Version : writing a file from php to another domain


skjc
05-03-2006, 03:38 PM
i know this is possible and i have been reading larry ulmans book on it but i cant find how to do it in there and a search on here did not turn up anything.

i use sendAndLoad from flash to a php script on a php server. it works fine (thx cota) and i can save/write a file locally on the php server but i want it to write to a given path which will be in the calling servers domain. At the moment it just throws errors and as i say i know there is some php for doing it.

thx for any help

snapple
05-03-2006, 04:35 PM
Your probably much better off searhcing on a PHP forum as this is nothing to do with Actionscript.

This is what you want:

http://www.phpfreaks.com/phpmanual/page/features.remote-files.html

Regards, snapple :]

skjc
05-03-2006, 06:19 PM
thx snapple i will read it (btw i thought it was ok to post here as the board is named serverside scripting?)

thx again

snapple
05-03-2006, 09:40 PM
I'm not in any position to tell you where you can and cannot post. I only said it because i don't think you'll get much of a response (especially when compared to a PHP site like phpbuilder.com), thats all.

Regards, sanpple

skjc
05-04-2006, 10:11 AM
i think you are right, thx for the advice.

the prob with forums is sometimes you can read into a reply a suggestion that was not there - i was asking a question not being rude as you were kind enough to reply and given the amount of posts you have made i consider that you know what you are talking about (i hope you know what i mean).

thx again snapple.

snapple
05-04-2006, 10:15 AM
Thats cool.

So have you got anywhere with your problem?

Regards, snapple

skjc
05-04-2006, 02:58 PM
not really its either a path or a pasword prob dont know really and i am on the point of giving up - i am unsure whether its a big issue any more and maybe its best left alone.

its all comes down to whether the user has a seperate php server. if most ppl can run php on their domain then zero issue but for those who have their domain and php separate then its a big issue - i have no idea of the numbers so maybe i will pretend its not happening :)

it will come back to bite me i am sure.