PDA

View Full Version : Changing location of images and thumbnails directories


PaulArmitage
06-26-2006, 10:29 AM
Dear all

Is there any way that you can change the location of the images and thumbnails directories to a different server from that running the PHP scripts?

I've just set up PixelPost 1.5 on the webspace with my ISP (PlusNet, in the UK). It's installed as per the instructions with images and thumbnails as subdirectories of the PixelPost directory (which is in the cgi-bin directory, as required by my ISP). It works fine for uploading images.

But, PlusNet have a separate servers for cgi and for the normal webspace, with different URLs. (So for example: ccgi.username.plus.com and www.username.plus.com.) It appears the anything on the cgi server is treated as an executable (even jpegs) so when I try and view the uploaded image I either one of those little red x's when I visit my PixelPost site, or I get an execution error if I type the URL directly into my browser.

PHP files won't run in my normal webspace - they have to be on the cgi server.

Is it possible to configure PixelPost to write images and thumbnails to a different server (i.e. my normal webspace) where they would be viewable?

Many thanks for your help

Paul Armitage

PaulArmitage
06-26-2006, 01:10 PM
Sorry - I should have given details of my site. PixelPost is at:

http://ccgi.paulandhilary.plus.com/cgi-bin/pixelpost/

and the image I've uploaded is at:

http://ccgi.paulandhilary.plus.com/cgi-bin/pixelpost//images/20060625152333_p1080531x_2x1.jpg

There are some images on my normal webspace is at:

http://www.paulandhilary.plus.com/photos/newyork/

Any ideas how to proceed?

PaulArmitage
06-26-2006, 04:01 PM
I've managed to fix the problem by moving PixelPost to a directory alongside (rather than in) the cgi-bin directory. I can see my images and the PP pages are now formatted correctly (they were looking pretty dreadful before).