Hello Pros,
Ok, here's my problem...
I have one UNIX server that holds my main site. This server stores all of my MySQL databases and tables.
Just as well, I have a completely different UNIX server in a different location which I am going to start using as my IMAGE server.
Basically, I have created a gallery script which searches the contents of a said directory and returns values based upon what it finds. Then it prints a nice table for me and spits out my images.
In my script I set my variable like so:
$location = "/home/mysite/public_html/images/01";
This let's the PHP know the path to the images I'm calling.
I want to create the script so that I can have something like this as well:
$location = "http://www.imageserversite.com/some/images/are/here/";
Summary:
Is there a way for my PHP to search the contents of an off-site directory?
Could I possibly create a helper script to host on the off-site server to accomplish this task?
Recap:
- All images will be stored on the off-site server
- The data stored in MySQL letting the script know where the images are located is hosted on the home server.
Any coding examples or ideas are greatly appreciated!
Thanks.