Jump to content

HTTP_GET and http_post_data


3raser

Recommended Posts

Is there anywhere I can find in-depth tutorial on what these mean? The PHP Manual didn't do to good of a job in my opinion. What confuses me is the whole option part of the functions. I need to figure out what these mean.

 

I'm trying to learn about functions like the two; my first project will be an auto-voter that basically just goes to the specified website and enters in the form data. How would I go about doing this? Would I use the functions I talked about above?

Link to comment
Share on other sites

You should bookmark Tizag, I found that site to be extremely helpful when I was starting out.

 

The short & sweet I can tell you about POST & GET is that POST sends your form's information in an array $_POST[] and GET creates those url query strings you see in some sites

 

look at the uri in this page: index.php?action=post;topic=356002.0;last_msg=1682271

action, topic, and last_msg are $_GET strings and the response follows the =

Link to comment
Share on other sites

You should bookmark Tizag, I found that site to be extremely helpful when I was starting out.

 

The short & sweet I can tell you about POST & GET is that POST sends your form's information in an array $_POST[] and GET creates those url query strings you see in some sites

 

look at the uri in this page: index.php?action=post;topic=356002.0;last_msg=1682271

action, topic, and last_msg are $_GET strings and the response follows the =

 

Uh, he was talking about specific PECL functions which allow one script to dynamically send data via GET or POST to another script, then obtain the results:

 

http://www.php.net/manual/en/function.http-post-data.php

http://www.php.net/manual/en/function.http-get.php

Link to comment
Share on other sites

Any references or comments? :/

 

KevinM1 pointed you to each function that you have questions about.

Each one of these links provides examples and further comments at the bottom.

 

Read my post closer: "The PHP Manual didn't do too good of a job in my opinion."

 

I want something that better explains the functions and it's parameters.

Link to comment
Share on other sites

I haven't run into a case when I had to use either function.  Worse comes to worse, you can always create a small test script to play around with the functions before attempting to use them in 'real' code.  That's what I generally do if I want to try something I've never previously attempted.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.