Topic: php syntax question

I am new to PHP so please be patient. 

My hosting service does not allow me to run PHP or Perl scripts.  However, I have installed the PHP buildgallery script on a remote server and have been able to create a small photo gallery on that server, but due to file size limitations I cannot host my photo gallery there. 

Ideally, I would like to ftp my original images into a directory on another server (in this case they are located in http://home.comcast.net/~myusername/images  )

and then run the buildgallery script and a have the thumbs created on the server where the images reside.

Im not sure exactly how to point the script to the remote image location and don't know if it is possible to create the thumbs where I would like them. 

Any help you can provide would be very much appreciated.

thank you,
kimr

p.s.  I forgot to mention that I've tried to the following imagepPath combinations:
imagePath="ftp://myusername:mypassword@upload.comcast.net:21/images/"
imagePath="ftp://myusername:mypassword@upload.comcast.net:21/images"
imagePath="ftp://myusername:mypassword@upload.comcast.net:21/"
imagePath="ftp://myusername:mypassword@upload.comcast.net:21"

imagePath="http://home.comcast.net/~myusername/images/"
imagePath="http://home.comcast.net/~myusername/images"
imagePath="http://home.comcast.net/~myusername/"
imagePath="http://home.comcast.net/~myusername"

Re: php syntax question

Hmm...

since your hosting company (i assume you are using comcast) does not allow you to run perl. They should have php available at the very least.

You should double check with them in terms of allowing PHP and PERL. That is usually the standard for personal hosting...


In the event they do not allow you for sure...you have several options...

1) Use google's pisca or something similar to it that is supported by simpleviewer to produce the gallery.xml file for you.

- OR -

2) download http://www.portablewebap.com/ and run a local webserver from your computer. No installation required. Just unzip and execute. This will allow you to run the buildgallery.php so it will produce the gallery.xml file for you and create the thumbnails for you automatically. Afterwards, upload entire gallery directory and edit the gallery.xml and index.html to ensure it is not referencing your local server and the path is correct

[url]http://www.photographybykevin.net[/url]

Simple Viewer FAQ By Kevin
[url]http://knguyentu.com/wordpress/photography-by-kevin/simpleviewer-flash-photo-gallery/[/url]

Re: php syntax question

Thanks for your response

I checked and it is correct that I cannot run Perl, cgi, php scripts...

Since several people will be uploading the images that will be used in the photo gallery, I was trying to avoid having to download all of the photos to my computer.  (It will take too much time and is not automatic.)

Do you have any other suggestions

Re: php syntax question

Other than getting a new hosting company? That would be my suggestion (for what it's worth), but it's easy to say 'change hosts' when mine does accept php...sorry, man. I hope someone else here has a different suggestion.