Click to See Complete Forum and Search --> : connection between two sites


devppl
02-21-2006, 11:40 PM
hello everybody,

i have a query

i have a site "www.abc.com" from this site i want to access another site "www.xyz.com" i want to access html file ,update it and save it at"www.xyz.com"

Can Anyone please help me .

Thanks

Devppl

Sheldon
02-21-2006, 11:45 PM
Do you own both sites?

Fals3illusion
02-21-2006, 11:46 PM
nenevermind lol i was confused by the ?

Huevoos
02-21-2006, 11:51 PM
you can't save anything to xyz.com if it is not on the same server as abc.com
for acces to the fils try file_get_contents() or the curl library

devppl
02-22-2006, 12:03 AM
Do you own both sites?
yes that both sites are mine .
i know all details of both sites ,

Huevoos
02-22-2006, 12:10 AM
are both on the same server???

if not you could use some of the ftp functions of php

Sheldon
02-22-2006, 12:12 AM
What would you be writing to the file? Would using a databse on both be better?

Other wise look on http://php.net/ for fopen, fwrite, fread and fclose

devppl
02-22-2006, 12:47 AM
thanks
i have made the connection through ftp function

devppl
02-22-2006, 03:42 AM
i get connected to another site i have used
ftp_nlist($ftpStream."/public_html", "/");
it will display all directories in root
but i want to see the files under public _html folder
but it is gingin error

ftp_nlist() expects parameter 1 to be resource, string given