![]() |
can i host a php file on my domain that other domains can include on their site?
say i want to host mydomain.com/hey.php
and i want other sites to be able to include that php file even though its hosted on my domain is that possible? |
duh
|
I'm not 100%, but I'd say no as that would be a huge security risk. That, and to my knowledge when another client requests a PHP file it's sent as a parsed file and not PHP code.
|
Quote:
|
Yeah, you can easily make a php script that other sites can 'include' in their pages - they need to include it as javascript and your output needs to be in javascript.
Same way that things like adwords work. You could also do an iframe, but Javascript is probably more widely supported these days. Contact me on ICQ if you are concerned about the security. |
include("http://mydomain.com/hey.php");
|
Quote:
Besides, the original poster didn't say if they wanted the other webmasters to be able to include his php script into another script or directly into their page. |
Quote:
|
All times are GMT -7. The time now is 01:39 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123