Page 1 of 1

how to call a .php page from my subdomain

Posted: Thu Nov 13, 2008 3:10 pm
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.

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

Posted: Thu Nov 13, 2008 3:13 pm
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>

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

Posted: Thu Nov 13, 2008 3:13 pm
by s.dot
Use the full URL to src=""

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

Posted: Thu Nov 13, 2008 3:27 pm
by warrenlennox
duuhhh! Sorry guys, didnt expect it to be that easy.