how to call a .php page from my subdomain

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
warrenlennox
Forum Newbie
Posts: 2
Joined: Thu Nov 13, 2008 3:03 pm

how to call a .php page from my subdomain

Post by warrenlennox »

I have a domain called http://www.xxx.com and a subdomain called http://www.yy.xxx.com

I have a calendar application installed on the subdomain and I would like to call the upcomings.php from my main website and embed it into a web page. using <iframe height="250" width="300" scrolling="yes" src="upcoming.php"></iframe>

Obviously this code is looking for the php file in my subdomain, how can I display this code from my subdomain in my my domain page. eg: http://www.xxx.com

Hope that makes sense.
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: how to call a .php page from my subdomain

Post by requinix »

Maybe it was a bit too obvious for you to notice.

Code: Select all

<iframe height="250" width="300" scrolling="yes" src="http://www.xxx.com/upcoming.php"></iframe>
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Re: how to call a .php page from my subdomain

Post by s.dot »

Use the full URL to src=""
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
warrenlennox
Forum Newbie
Posts: 2
Joined: Thu Nov 13, 2008 3:03 pm

Re: how to call a .php page from my subdomain

Post by warrenlennox »

duuhhh! Sorry guys, didnt expect it to be that easy.
Post Reply