how do i include a file using its url i tried include("http://myserver/myfile.htm")nothing happened but when i tried include("c:\inetpub\wwwroot\myfile.htm") it worked Please tell me how to make it work with a url
As the documentation says:
Note: You can't use remote files in include() and require() statements on Windows.
If you don't need to execute any PHP code in the include file, you can just pass it through as a string with the fopen() and fpassthru() functions.
-Keegan
Also note that normally you would never ever want to execute code that is generated elsewhere, expecially not through such a powerfull took like PHP.
Thanx for the replies guys Actually i did not want to include remote files but wanted to include files stored on my own server. The problem is that i want to put up the includes in different files storred at different directory levels.If you could just tell me how to include files stored at the root of my website then that will be enough for me I use a shared webserver that is many websites are hosted on it I test code on the windows platform on my pc & then trasfer it to my linux server