Re: How can I securely send a url with GET info from a crontab php script to another server?

From: Date: Mon, 05 May 2003 13:44:28 +0000
Subject: Re: How can I securely send a url with GET info from a crontab php script to another server?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-146431@lists.php.net to get a copy of this message
Hi, Marek, Just take phpsecureurl class from www.phpclasses.org
Daevid Vincent wrote:
I have a client PHP script I'm writing that will execute via crontab. I need it to collect some info about the system (cpu, ram, hd, uptime, etc) and then send it to another server on the internet where I can log the info into a mysql database. I was thinking a url like so: http://checkin.mycompany.com/checkin.php?cpu=1000&ram=256&uptime=1.0,2.0,3.0 &.... My first question is, how do I actually do that the best way? Shall I use the header() or fopen() or fsockopen()?
Simple fopen('http://checkin.mycompany.com/.....'); is good if allow_url_fopen is on
I was thinking I could also encrypt the whole string somehow so it would be like http://checkin.mycompany.com/checkin.php?info=ap34um5sfo85s5o8sop58sp84a84y5 8ay4nay984nyf0a9ny40 (Then just split it back out on the server end again based upon my algorithm.)
********************************************* * Best Regards --- Andrei Verovski * * Personal Home Page * http://snow.prohosting.com/guru4mac * Mac, Linux, DTP, Development, IT WEB Site *********************************************

« previous php.general (#146431) next »