Jump to content

Recommended Posts

Posted

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?

Posted
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)?

Guest Geoff
Posted
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.

Guest Geoff
Posted

Why not just use the domain name: file_get_contents('http://yourdomain.com/yourscript.php'); ?

Posted

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');

 

 

Posted

I have an arduino and ethernet shield to connect it to Internet. Arduino needs ip address to the server where my php script is.

Posted

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.

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