Results 1 to 3 of 3
-
05-16-2004, 07:59 PM #1Junior Guru
- Join Date
- Jul 2003
- Posts
- 236
Signup from one server, upload to another.
Hello fellow programmers,
I've struck a deal with a great image host to host my photos, while my current host, hosts the pages. But what I need to figure out is, how do I let the user signup from my site, but their image is uploaded to my partner's site?
Can this be done with php?
One option is to have the signup scripts on the image host server, but I can't access my databases remotely, so that wouldn't work.
What do other types of sites do?
Thanks!
Jon Marus
-
05-16-2004, 08:20 PM #2Web Hosting Master
- Join Date
- Dec 2002
- Location
- NY, NY
- Posts
- 3,974
Of course you can access your DB's remotely.
Just change the location from localhost to the location.
You can have a page like upload.php on the image server.
After you process the form, and append to DB, then u forward the user to upload.php and it uploads the image.
You can also do it using sockets, but that is more complicated.webmaster A T 420th.com
What is my Itunes playing? Visit 420th.com/nowplaying.jsp to find out.
Ask the monkey: http://www.monkeyfaq.com
-
05-16-2004, 08:21 PM #3Junior Guru
- Join Date
- Jul 2003
- Posts
- 236
So you think I should insert data into my database from my site, then when it's time to upload, forward to the image host?