- - Code, Content, and Presentation
- -- PHP Server Side Scripting
- ---- Sending information to a server
ocon - 10:32 pm on Dec 27, 2013 (gmt 0)
During a plugin's installation there is an option to announce that the website is using the plugin.
If $anncounce=true; a call is made during installation to the plugin's server that includes the website's url. If possible I'd like to improve this code.
The installation just needs to "ping" the server, it doesn't recieve or use any information from it. Is file_get_contents the best method?
I also don't want to slow down the installation or cause any errors if the server is unresponsive. I just want the script to quickly attempt to report the installation and move on.
Should I use something less strict or stricter than "if($announce)"?
Thread source: http://www.webmasterworld.com/php/4633851.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com