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

PHP Question
Author: Message:
leito
Senior Member
****

Avatar
Chameleon by KeyStorm

Posts: 720
Reputation: 5
38 / Male / –
Joined: Apr 2003
O.P. PHP Question
Hey guys, its me again asking a PHP question. This time I need help in what to search. All mobile phone companies in Guatemala have html forms to send SMS to their phones.

What I want is to send the same data to their site(using a form on my site), capture the confirmation screen and print a result based on the confirmation. All this without the user knowing I used the companies site. In this way I could send message to all 4 companies from just one form.

Hope you understand it, I guess I need to speak english more often. Hahaha, Bye! Thank you in advance for your answer.
[Image: leonelgalan.png]
11-05-2005 01:30 AM
Profile E-Mail PM Find Quote Report
thc2010
Full Member
***

Avatar
Revenge is a meal best served cold

Posts: 233
Reputation: 2
37 / Male / –
Joined: Oct 2004
RE: PHP Question
I also want to know how this is done
[Image: glennlopez.png]
Click the image above to send me a message on MSN messenger via web browser.
11-05-2005 01:32 AM
Profile E-Mail PM Web Find Quote Report
-dt-
Scripting Contest Winner
*****

Avatar
;o

Posts: 1819
Reputation: 74
35 / 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
leito
Senior Member
****

Avatar
Chameleon by KeyStorm

Posts: 720
Reputation: 5
38 / Male / –
Joined: Apr 2003
O.P. RE: PHP Question
Thanks -dt- I guess this is just what I was looking. It seems very complete! Thank you very much!

-dt-, I want to put your name in the "thanks to" part of the site. Maybe you could send me a PM or answer here.

This is the final product, http://sms.leonelgalan.com/ it's for Guatemala only, sorry.

If you live in Central America, I'll be glad to talk to you about implementing the site for your country. Thanks all for your help
[Image: leonelgalan.png]
11-08-2005 04:17 AM
Profile E-Mail PM Find Quote Report
-dt-
Scripting Contest Winner
*****

Avatar
;o

Posts: 1819
Reputation: 74
35 / Male / Flag
Joined: Mar 2004
RE: PHP Question
quote:
Originally posted by leito
-dt-, I want to put your name in the "thanks to" part of the site. Maybe you could send me a PM or answer here.
thanks...
Matt Labrum . :P
[Image: dt2.0v2.png]      Happy Birthday, WDZ
11-08-2005 08:17 AM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »


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