I think that the problem is not the socket number...

I wrote a script which tries the socket numbers and I tried the first 11000 numbers!

So it's not good..

A question: Is this url correct??? http://free.x3.hu/bighed/valami.zip:2654

So the socket number comes behind the file name?

Anything else?

    Yes the socket number comes after. yes the url is correct. No, I don't have any more ideas. 🙂 sorry about that.

      OK, no problem! 🙂

      But I discowared why I get always green picture!!!
      If the file doesn't exists, I get the 404 error which is always exist, so I always get the green pic.

        Yes, forgot about that. 🙂 I used to have a way around this, but forgot how. LOL If I remember, I'll tell you.

          Hi!

          Thanx for the script, but the problem is the same:
          I always get the "File found" message, because of the 404 error.

            yeah, I thought I had it working then, now it's not, strange but true 🙁

              ok, try this, from my system this is working;

              hope it works for you 😉

              <?php

              $file = "http://free.x3.hu/bighed/index.html";

              $fp = fopen($file,"r");

              $getid = substr($fp,strlen($fp)-1);

              if( (integer)$getid==2 )
              {
              print "Could not open file or file does not exist";
              }
              else {
              print "File Found $file";
              }

              fclose($fp);

              ?>

                btw - make sure that allow_url_fopen is set to [On] on the server that your using, it probably won't work for all servers dependant upon the setting but On is the default setting.

                but again, hope it helps!

                  It's much better and it's working!

                  Thank you Xoid!

                    My homepage is on a free server, and fopen disabled 🙁

                    But the script is good...

                      hmm... are you sure that file_exists() doesn't work? I've tried fsockopen but it doesn't work either.

                      apart from the solution I posted I don't really know what else to try, sorry 🙁

                        Write a Reply...