SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Feb 2013
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    problems in working with two scripts

    Friends i create two scripts of a site

    In first script i used curl to post username and password ...then after filling username and password the captche page occurs

    i print captche on screen and then send captche value to second script... but when i send captche value the data of first script gone... so scripts are not working for me

  2. #2
    SitePoint Evangelist captainccs's Avatar
    Join Date
    Mar 2004
    Location
    Caracas, Venezuela
    Posts
    516
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    You need a master or controlling script that calls the two scripts via includes or as functions. For example as functions:

    PHP Code:
    function curl() {
        
    // do curl stuff;
    }

    function 
    captcha() {
        
    // do captcha stuff;
    }

    // main script

    if(not curl() stuff) {
        die() or 
    something;
    )

    if(
    not captcha() stuff) {
        die() or 
    something;
    )

    // do page stuff 
    Denny Schlesinger
    web services


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •