GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   can i host a php file on my domain that other domains can include on their site? (https://gfy.com/showthread.php?t=396614)

brizzad 12-01-2004 09:26 AM

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?

Fake Nick 12-01-2004 09:28 AM

duh

psili 12-01-2004 09:29 AM

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.

brizzad 12-01-2004 09:31 AM

Quote:

Originally posted by psili
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.
well that sucks

iBOUNCER 12-01-2004 09:49 AM

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.

FiReC 12-01-2004 09:49 AM

include("http://mydomain.com/hey.php");

iBOUNCER 12-01-2004 09:55 AM

Quote:

Originally posted by FiReC
include("http://mydomain.com/hey.php");
Yeah but this wont work like a local include, as someone mentioned above. It will return the parsed output, and will not be given the chance to evaluate any code locally.

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.

brizzad 12-01-2004 10:02 AM

Quote:

Originally posted by iBOUNCER
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.

Thanks :thumbsup


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