Byron Posted April 7, 2011 Posted April 7, 2011 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?
kapu Posted April 8, 2011 Author Posted April 8, 2011 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)?
jje Posted April 8, 2011 Posted April 8, 2011 This support request is being escalated to our root admin.
Guest Geoff Posted April 8, 2011 Posted April 8, 2011 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.
Ashoat Posted April 9, 2011 Posted April 9, 2011 kapu: No. Why would you need that functionality, anyways?
Guest Geoff Posted April 10, 2011 Posted April 10, 2011 Why not just use the domain name: file_get_contents('http://yourdomain.com/yourscript.php'); ?
Byron Posted April 10, 2011 Posted April 10, 2011 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');
kapu Posted April 10, 2011 Author Posted April 10, 2011 I have an arduino and ethernet shield to connect it to Internet. Arduino needs ip address to the server where my php script is.
Ashoat Posted April 10, 2011 Posted April 10, 2011 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.
Recommended Posts