Hi!
I have page containing a page frame in it. The problem is that the page frame URL address is different each time the main page loads. I can manually check the frame URL address, once the page is completely loaded.
I want such the frame URL address each time to be stored in a php variable.
For Example :
http://blinkideas.freehostia.com/deel/ is the main page.
You can see the pink color box of ads by google. When you right click inside that pink box , a new page source appears bcz its a frame. it has a URL something like this :
googleads.g.doubleclick.net/pagead/ads?client=ca-pub-3439470883941931&output=html&h=600&slotname=7573001513&w=160&lmt=1266764369&host=pub-1556223355139109&h_ch=00000&flash=10.0.45&url=http%3A%2F%2Fblinkideas.freehostia.com%2Fdeel%2F&dt=1266775005815&correlator=1266775005818&frm=0&ga_vid=712750107.1266775006&ga_sid=1266775006&ga_hid=1947648676&ga_fc=0&u_tz=300&u_his=4&u_java=0&u_h=768&u_w=1024&u_ah=738&u_aw=1024&u_cd=32&u_nplug=9&u_nmime=24&dff=serif&dfs=16&biw=1024&bih=576&fu=0&ifi=1&dtd=48&xpc=lqLZfNUOOr&p=http%3A//blinkideas.freehostia.com
It changes on each page load. Can anyone help me storing this each time in a php variable ?
Regards,
Ahmed Taufiq
Need help on php and html project - urgent
Moderator: General Moderators
-
ahmedtaufiq
- Forum Newbie
- Posts: 4
- Joined: Wed Dec 23, 2009 4:30 am
Re: Need help on php and html project - urgent
If you want to use a variable:
If you want to use an array:
You can also use a database to track frames
Code: Select all
<?php
$frame = 'http://www.google.com';
echo $frame;
?>Code: Select all
<?php
$frame[] = 'http://www.google.com';
$frame[] = 'http://www.yahoo.com';
print_r($frame);
?>