What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » PHP Question

PHP Question
Author: Message:
-dt-
Scripting Contest Winner
*****

Avatar
;o

Posts: 1819
Reputation: 74
36 / Male / Flag
Joined: Mar 2004
RE: PHP Question
well I recomend using curl to do it because its super simple.
code:
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HEADER, 0); //dont put the header recived into the data
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); //to not echo the data back
curl_setopt($ch, CURLOPT_POST, 1); // set POST method
curl_setopt($ch, CURLOPT_POSTFIELDS, 'blah=xxxx&moo=444'); //post string.
$foo = curl_exec($ch); //foo is now filled with the page it returned.
curl_close($ch);


for further reading on curl http://php.net/curl

well do you know what data you need to send?
if you dont download live http header extention
goto the site you want to view the headers for  click tools , Live Http Headers
then a window will appear and you should be able to figure out how to read the POST from there.

This post was edited on 11-05-2005 at 01:57 AM by -dt-.
[Image: dt2.0v2.png]      Happy Birthday, WDZ
11-05-2005 01:50 AM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
PHP Question - by leito on 11-05-2005 at 01:30 AM
RE: PHP Question - by thc2010 on 11-05-2005 at 01:32 AM
RE: PHP Question - by -dt- on 11-05-2005 at 01:50 AM
RE: PHP Question - by leito on 11-08-2005 at 04:17 AM
RE: PHP Question - by -dt- on 11-08-2005 at 08:17 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On