Jump to content

[Solved] Dedicated IP


kapu

Recommended Posts

Due to heliohost being charged for dedicated ips, we are now having to charge $12 dollars a year for them. Do you still wish to have a dedicated ip?

 

Ok. I have to think about that. Is there a possibility to connect a php script via shared ip (like 216.218.192.170/some/path/myscript.php)?

Link to comment
Share on other sites

Guest Geoff
Is there a possibility to connect a php script via shared ip (like 216.218.192.170/some/path/myscript.php)?

 

If you use the domain name, yes.

Link to comment
Share on other sites

Just a note on file_get_contents(): If your using it to read a page on your site, the full path will only return the html contents:

file_get_contents('http://yourdomain.com/yourscript.php');

 

To grab the entire contents, including server side scripting, use the relative path:

file_get_contents('yourscript.php');

 

 

Link to comment
Share on other sites

Right, that's how HTTP works. However, HTTP 1.1 allows for a Host header to enable IP sharing. If, in addition to giving your Arduino the IP address of your website, you also get it to pass in a specific Host header on its HTTP packets, you should be good.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...