Help with curl (change header and footer)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Help with curl (change header and footer)

    Can someone please help me?
    I figured how you open pages with curl, but now, i want to be able to strip the top head, and </body></html> peace, and want to be able to change links within the page etc.
    Code:
    <?php
     if(isset($_REQUEST['name'])) $num= $_REQUEST['name'];
     if(isset($_REQUEST['surname'])) $msg= $_REQUEST["surname"];
     $Curl_Session = curl_init('http://example.com');
     curl_setopt ($Curl_Session, CURLOPT_POSTFIELDS, "name=$name&surname=$surname");
     curl_exec ($Curl_Session);
     curl_close ($Curl_Session);
    ?>

    #2
    U want to make a grabber..use Preg and str replace functions.u need to learn regular expression.just googling regular expression will help u much.
    Last edited by ranzit2; 25.11.09, 15:21.
    she is beautifull than php.and i love her more than php.
    sigpic

    Comment


      #3
      try w3schools.com and learn more basics like ranzit2 has said earlier

      Comment


        #4
        that wasn't my question was it?
        I know php but just like everyone else i can also strugle sometimes.

        Comment

        Working...
        X