Help with a php class

Discussion in 'PHP' started by phantom, May 15, 2008.

  1. #1
    When i use curl it doesnt show up in mystats...

    I use statcounter.com to track calls to a certain page....Is there any reason why using curl would not track in statcounter?

    thanks!
     
    phantom, May 15, 2008 IP
  2. NatalicWolf

    NatalicWolf Peon

    Messages:
    262
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Explain? I don't fully understand. ohhhh I get it, because CURL doesn't load the Javascript or any images, so if your tracker is using JS to load, well you cant because CURL doesn't actually do that stuff...I think thats what you mean...If not, hit me up on aim.
     
    NatalicWolf, May 15, 2008 IP
  3. phantom

    phantom Well-Known Member

    Messages:
    1,509
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    140
    #3
    I noticed that if I echo the output to a page it will track (probably because then the javascript loads like you said)

    So is there anyway not to echo the page and still trigger the javascript?......I guess that would be like emulating a browser. I don't know....
     
    phantom, May 15, 2008 IP
  4. NatalicWolf

    NatalicWolf Peon

    Messages:
    262
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #4
    no, not really to be honest. Because of the way CURL works, you are better off using a hidden frame then. Seriously just use a hidden frame, set its src path then use Javascript to read the required data. I could code this for you if you really need it
     
    NatalicWolf, May 15, 2008 IP
  5. phantom

    phantom Well-Known Member

    Messages:
    1,509
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    140
    #5
    ok I can do it using frames.......thanks for your help!
     
    phantom, May 19, 2008 IP
  6. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #6
    or not really even a frame, you could just use a div with style=display:none in the attributes there ... I'd avoid using frames if you can, they are messy and might complicate another part of the site later on ...
     
    krakjoe, May 20, 2008 IP
  7. phantom

    phantom Well-Known Member

    Messages:
    1,509
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    140
    #7
    ok great...I will try that thanks for your help!
     
    phantom, May 20, 2008 IP
  8. phantom

    phantom Well-Known Member

    Messages:
    1,509
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    140
    #8
    hhmm still having problems..using display:none works sort of however..........my other page I am grabbing still changes things because of the css and when I view source the other page source is still there.......is there a way I can not output the other page but still read it first so that it actually interprets the javascript of my stats?


    Thanks!
     
    phantom, May 20, 2008 IP
  9. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #9
    if it's a last resort then a frame maybe ??
     
    krakjoe, May 20, 2008 IP