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.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 12-01-2004, 09:26 AM   #1
brizzad
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?
brizzad is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-01-2004, 09:28 AM   #2
Fake Nick
So Fucking Banned
 
Join Date: Jul 2004
Location: go troll goo!
Posts: 7,708
duh
Fake Nick is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-01-2004, 09:29 AM   #3
psili
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.
psili is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-01-2004, 09:31 AM   #4
brizzad
holla
 
Join Date: Jul 2003
Location: KFC
Posts: 11,769
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
brizzad is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-01-2004, 09:49 AM   #5
iBOUNCER
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
iBOUNCER is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-01-2004, 09:49 AM   #6
FiReC
Confirmed User
 
Industry Role:
Join Date: Jan 2002
Location: Land o Nubiles
Posts: 2,350
include("http://mydomain.com/hey.php");
FiReC is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-01-2004, 09:55 AM   #7
iBOUNCER
Confirmed User
 
Join Date: Nov 2004
Location: Monster Rain
Posts: 214
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.
__________________
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
iBOUNCER is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-01-2004, 10:02 AM   #8
brizzad
holla
 
Join Date: Jul 2003
Location: KFC
Posts: 11,769
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
brizzad is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.