cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing images in webspace from PHP

zouga
Newbie
Posts: 3
Registered: ‎11-04-2010

Accessing images in webspace from PHP

Hi
I'm trying to retain images in my webspace so I can continue to use relative references from HTML. Is it possible to reference the images from PHP and if so what path do I use to get at my webspace ?
Thanks
5 REPLIES 5
spraxyt
Resting Legend
Posts: 10,063
Thanks: 674
Fixes: 75
Registered: ‎06-04-2007

Re: Accessing images in webspace from PHP

You PHP files must be on CGI, but HTML files could be on CGI or Homepages. Which applies in your case?
David
zouga
Newbie
Posts: 3
Registered: ‎11-04-2010

Re: Accessing images in webspace from PHP

HTML is in HTDOCS
jelv
Seasoned Hero
Posts: 26,785
Thanks: 971
Fixes: 10
Registered: ‎10-04-2007

Re: Accessing images in webspace from PHP

Are you using the same FTP login to upload the HTML and PHP files?
jelv (a.k.a Spoon Whittler)
   Why I have left Plusnet (warning: long post!)   
Broadband: Andrews & Arnold Home::1 (FTTC 80/20)
Line rental: Pulse 8 Home Line Rental (£14.40/month)
Mobile: iD mobile (£4/month)
zouga
Newbie
Posts: 3
Registered: ‎11-04-2010

Re: Accessing images in webspace from PHP

I'm loading the php files to cshell.force9.net and the html/jpg files to  ftp.plus.net
jelv
Seasoned Hero
Posts: 26,785
Thanks: 971
Fixes: 10
Registered: ‎10-04-2007

Re: Accessing images in webspace from PHP

They are different servers, there is no file path to reference homepages (ftp.plus.net) from ccgi. You can only use http://username.plus.com/...
jelv (a.k.a Spoon Whittler)
   Why I have left Plusnet (warning: long post!)   
Broadband: Andrews & Arnold Home::1 (FTTC 80/20)
Line rental: Pulse 8 Home Line Rental (£14.40/month)
Mobile: iD mobile (£4/month)