473,508 Members | 2,343 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Go to list of URL's

22 New Member
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:
Expand|Select|Wrap|Line Numbers
  1. while ($u < 100){
  2. go to a url
  3.  
  4. w8 till url has loaded close the url
  5. $u++;
  6. } // do the next url
if any1 could shed some light itl be nice

Tnx and Take Care
GhOsT
Feb 1 '09 #1
5 1722
dlite922
1,584 Recognized Expert Top Contributor
@GhOsTTeCh
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
Feb 1 '09 #2
GhOsTTeCh
22 New Member
@dlite922
so i shuld post dis in da javascript forums?
Feb 1 '09 #3
dlite922
1,584 Recognized Expert Top Contributor
@GhOsTTeCh
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
Feb 1 '09 #4
GhOsTTeCh
22 New Member
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?user=test&domain=domain.com&password =trial....
Feb 1 '09 #5
Atli
5,058 Recognized Expert Expert
@dlite922
Not necessarily the only way.
Assuming the "allow_url_fopen" directive is enabled (which it is by default), you can use the Filesystem functions functions to open URLs as well.

So, doing:
Expand|Select|Wrap|Line Numbers
  1. <?php
  2. for($i = 0; $i < 10; $i++) {
  3.   file_get_contents("http://www.example.com/?id=$i");
  4. }
  5. ?>
Would call example.com 10 times, each time passing a different "id" GET value.
Feb 1 '09 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

0
3128
by: Boris Ammerlaan | last post by:
This notice is posted about every week. I'll endeavor to use the same subject line so that those of you who have seen it can kill-file the subject; additionally, Supersedes: headers are used to...
0
7123
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7324
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7382
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5627
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5052
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3193
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1556
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
766
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
418
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.