Raised This Month: $ Target: $400
 0% 

sending data to php script


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
hackziner
Senior Member
Join Date: Sep 2006
Location: France
Old 07-18-2007 , 13:24   Re: sending data to php script
Reply With Quote #6

Lol, I'll sum up my previous post

GET request is easier than POST

You have to open a TCP connection to the host

new socket = socket_open( "http://www.amxmodx.org"", 80, SOCKET_TCP, error );

You have to format a GET request

formatex( buff, 1023, "get http://forums.alliedmods.net/showthread.php?t=58038^r^n" );

t is a variable and 58038 the value of t

send the request

socket_send( socket, buff, 1024);

define a task to get the page

if (socket_change( socket) //check if there is something waiting in the socket
socket_recv( socket, buff, 1023) //put the socket in buff


If you wanna try if you php page works, just open telnet, type the request and see the result ...
__________________

Last edited by hackziner; 07-18-2007 at 13:28.
hackziner is offline
Send a message via ICQ to hackziner Send a message via AIM to hackziner Send a message via MSN to hackziner Send a message via Yahoo to hackziner Send a message via Skype™ to hackziner
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:26.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode