473,662 Members | 2,631 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 1741
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?u ser=test&domain =domain.com&pas sword=trial....
Feb 1 '09 #5
Atli
5,058 Recognized Expert Expert
@dlite922
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:
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
3147
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 ensure that only one copy resides on a given news server. This notice was last updated on September 7th, 2000, and is available (with a complete revision history) on the World Wide Web at http://www.stack.nl/~boris/HTML/ciwahfaq.html. Most of it...
0
8768
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8547
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8633
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6186
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5655
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4348
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2763
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 we have to send another system
2
1999
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1754
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.