cancel
Showing results for 
Search instead for 
Did you mean: 

Linking from xxxx.Plus.net Host area to cgi area

MoreQThanA
Newbie
Posts: 7
Registered: ‎19-01-2013

Linking from xxxx.Plus.net Host area to cgi area

I have just atarted developing a website so I can try out various website programming methods.
So I have a plusnet hosting area.
To upload my HTML, CSS and images I have the xxxxx.plus.net area uploaded.
But to use PHP and MySQL I have a separate CGI area.
If I want to use the HTML,CSS or images from the first area in the second, I've had to make a separate copy for use by the PHP code.
So my question is ...
  How do I link to the 'normal' hosting area from PHP to pick up these files?
4 REPLIES 4
spraxyt
Resting Legend
Posts: 10,063
Thanks: 674
Fixes: 75
Registered: ‎06-04-2007

Re: Linking from xxxx.Plus.net Host area to cgi area

Webspace on Homepages (www.username.plus.com) is on a different file system from CCGI (ccgi.username.plus.com) so the only way to access Homepages files from CCGI is via HTTP calls such as those used by a browser. The PHP function file_get_contents can be used to get a file from a different server. However that wouldn't be appropriate for the type of usage you mentioned.
If the functionality of your website needs PHP then it should all be on CCGI.
David
MoreQThanA
Newbie
Posts: 7
Registered: ‎19-01-2013

Re: Linking from xxxx.Plus.net Host area to cgi area

Yes thanks Spraxyt,
I sort of thought that might be the issue.
I'll just have the login  page on the www.username.plus.com, then link to the ccgi one from there, that seems to work.
Shame as it's not ideal, I'd like to be able to get at both area's seamlessly.
Thanks again
MQA
spraxyt
Resting Legend
Posts: 10,063
Thanks: 674
Fixes: 75
Registered: ‎06-04-2007

Re: Linking from xxxx.Plus.net Host area to cgi area

Plusnet will point www.username.plus.com to your ccgi space if you want them to. You would need to raise a ticket to request this.
David
MoreQThanA
Newbie
Posts: 7
Registered: ‎19-01-2013

Re: Linking from xxxx.Plus.net Host area to cgi area

Quote from: spraxyt
Plusnet will point www.username.plus.com to your ccgi space if you want them to. You would need to raise a ticket to request this.

I think I'll stick with things as they are. but it's a thought .. thanks