kapu Posted April 7, 2011 Share Posted April 7, 2011 Link to comment Share on other sites More sharing options...
Byron Posted April 7, 2011 Share 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? Link to comment Share on other sites More sharing options...
kapu Posted April 8, 2011 Author Share 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)? Link to comment Share on other sites More sharing options...
jje Posted April 8, 2011 Share Posted April 8, 2011 This support request is being escalated to our root admin. Link to comment Share on other sites More sharing options...
Guest Geoff Posted April 8, 2011 Share 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. Link to comment Share on other sites More sharing options...
Ashoat Posted April 9, 2011 Share Posted April 9, 2011 kapu: No. Why would you need that functionality, anyways? Link to comment Share on other sites More sharing options...
Guest Geoff Posted April 10, 2011 Share Posted April 10, 2011 Why not just use the domain name: file_get_contents('http://yourdomain.com/yourscript.php'); ? Link to comment Share on other sites More sharing options...
Byron Posted April 10, 2011 Share 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'); Link to comment Share on other sites More sharing options...
kapu Posted April 10, 2011 Author Share 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. Link to comment Share on other sites More sharing options...
Ashoat Posted April 10, 2011 Share 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. Link to comment Share on other sites More sharing options...
Recommended Posts