![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
holla
Join Date: Jul 2003
Location: KFC
Posts: 11,769
|
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? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
So Fucking Banned
Join Date: Jul 2004
Location: go troll goo!
Posts: 7,708
|
duh
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: Apr 2003
Location: Loveland, CO
Posts: 5,526
|
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.
__________________
Your post count means nothing. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 | |
holla
Join Date: Jul 2003
Location: KFC
Posts: 11,769
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Join Date: Nov 2004
Location: Monster Rain
Posts: 214
|
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.
__________________
Secure PHP Programming - Secure E-Commerce Design Site & Server Security Reviews - Code Reviews The new and improved iBOUNCER. Give us a try. ICQ: 201971159 or http://www.iBOUNCER.com |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
Industry Role:
Join Date: Jan 2002
Location: Land o Nubiles
Posts: 2,350
|
include("http://mydomain.com/hey.php");
__________________
www.nubilefilms.com | www.nubiles.net | www.anilos.com | tubescript.nubiles.net | icq4162727 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 | |
Confirmed User
Join Date: Nov 2004
Location: Monster Rain
Posts: 214
|
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.
__________________
Secure PHP Programming - Secure E-Commerce Design Site & Server Security Reviews - Code Reviews The new and improved iBOUNCER. Give us a try. ICQ: 201971159 or http://www.iBOUNCER.com |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 | |
holla
Join Date: Jul 2003
Location: KFC
Posts: 11,769
|
Quote:
![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |