Search results

  1. J

    Problems with fsockopen

    Thanks for the info I tried using pipe but I get a Forbidden (403) error. My website passes $_session vars to the server, I'm using fsockopen because it uses less ressources and is faster than cURL (I have developped a cURL version of the site too for tests). Part of why I made this website...
  2. J

    Problems with fsockopen

    It's a little project I did a while ago and released for my close friends, then the word of mouth did it's work. I didn't know at first the website would be such a success. So, I looked at their TOS maybe a year ago (it didn't change since), and saw nothing that forbid me from doing it. As long...
  3. J

    Problems with fsockopen

    This works like a charm : $rn="\r\n"; $req= 'Host: www.mobitag.nc'.$rn. 'User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20100101 Firefox/14.0.1'.$rn. 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'.$rn. 'Accept-Language...
  4. J

    Problems with fsockopen

    Hi, 50% of the time, when I try to load a webpage using fsockopen (didn't try with curl but must be the same), I get this error HTTP/1.1 301 Moved Permanently Server: nginx/0.7.67 Date: Mon, 12 Nov 2012 06:07:50 GMT Content-Type: text/html Content-Length: 185 Connection: close Location...
  5. J

    CPU usage peaks

    Thanks for your answer, if you want I can send you the script by PM or just post it here but, since I rewrote it from scratch, I didn't add any comments (I know the mechanics of the script by heart) and it is insanely bad coded, but it is the fastest I came up with. Actually I can't do...
  6. J

    CPU usage peaks

    Hi everyone, it's been a long time since I started using x10hosting and my website now as an average of 200 visitors a day. This is great, however, I must now watch my CPU usage wich grew exponentially. My script must do 5 requests (PHP : fsockopen) per visitor to a website and fetch the...
Top