Go to list of URL's

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • GhOsTTeCh
    New Member
    • Dec 2008
    • 22

    Go to list of URL's

    Hi i want to make a php script to open certain URL's then close it and open another URL.
    i think it can be done with an iframe (to my understanding) but i might be wrong.

    Basicly i want it to do this:
    Code:
    while ($u < 100){
    go to a url
    
    w8 till url has loaded close the url
    $u++;
    } // do the next url
    if any1 could shed some light itl be nice

    Tnx and Take Care
    GhOsT
  • dlite922
    Recognized Expert Top Contributor
    • Dec 2007
    • 1586

    #2
    Originally posted by GhOsTTeCh
    Hi i want to make a php script to open certain URL's then close it and open another URL.
    i think it can be done with an iframe (to my understanding) but i might be wrong.

    Basicly i want it to do this:
    Code:
    while ($u < 100){
    go to a url
    
    w8 till url has loaded close the url
    $u++;
    } // do the next url
    if any1 could shed some light itl be nice

    Tnx and Take Care
    GhOsT
    I don't see what you're trying to do. Do you know PHP is a /server side/ processing language and don't work "in" the browser. HTML (which is what the <ifram> tag is) is given to the browser.

    So if you want to display these pages, you can just use Iframe and direct the URL there. multiple iframes for multiple URLS.

    If you want PHP to grab the content while still server side and put it into a variable, see cURL() functions, that's the only way PHP can grab multiple URLs.

    Cheers,





    Dan

    Comment

    • GhOsTTeCh
      New Member
      • Dec 2008
      • 22

      #3
      my bad

      Originally posted by dlite922
      I don't see what you're trying to do. Do you know PHP is a /server side/ processing language and don't work "in" the browser. HTML (which is what the <ifram> tag is) is given to the browser.

      So if you want to display these pages, you can just use Iframe and direct the URL there. multiple iframes for multiple URLS.

      If you want PHP to grab the content while still server side and put it into a variable, see cURL() functions, that's the only way PHP can grab multiple URLs.

      Cheers,
      Dan
      so i shuld post dis in da javascript forums?

      Comment

      • dlite922
        Recognized Expert Top Contributor
        • Dec 2007
        • 1586

        #4
        Originally posted by GhOsTTeCh
        so i shuld post dis in da javascript forums?
        First of all I'd appreciate it if you used correct English grammer.

        I was asking about your intentions so I can better assist you or point you in a better direction.

        What does your web page attempt to accomplish?





        Dan

        Comment

        • GhOsTTeCh
          New Member
          • Dec 2008
          • 22

          #5
          lol sorry about my English.

          basicly i have a Cpanel Hosting with hostmonster , and i need a whole bunch of emails created (they dnt hav option 2) so the email can be created by going to a page and adding the varibles in the url
          eg. domain.com/manager/doaddpop.html?u ser=test&domain =domain.com&pas sword=trial....

          Comment

          • Atli
            Recognized Expert Expert
            • Nov 2006
            • 5062

            #6
            Originally posted by dlite922
            If you want PHP to grab the content while still server side and put it into a variable, see cURL() functions, that's the only way PHP can grab multiple URLs.
            Not necessarily the only way.
            Assuming the "allow_url_fope n" directive is enabled (which it is by default), you can use the Filesystem functions functions to open URLs as well.

            So, doing:
            [code=php]
            <?php
            for($i = 0; $i < 10; $i++) {
            file_get_conten ts("http://www.example.com/?id=$i");
            }
            ?>[/code]
            Would call example.com 10 times, each time passing a different "id" GET value.

            Comment

            Working...