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)
-   -   Cross Server PHP Include? (https://gfy.com/showthread.php?t=444799)

European Lee 03-16-2005 11:49 AM

Cross Server PHP Include?
 
Is it possible, by putting an include files FULL url in to the php include tag?

PHP Code:

<? include("http://www.domain.com/includethisfile.php"); ?>

Like that?

So server1domain.com can pull an include from server2domain.com

Regards,

Lee

Doc911 03-16-2005 12:09 PM

yes Its very possible

StuartD 03-16-2005 12:11 PM

Yup. You could have just tried it.. then you wouldn't have had to ask :winkwink:

mortenb 03-16-2005 12:22 PM

Yes. But you will not get the code, only the output of the php document

psili 03-16-2005 12:26 PM

Quote:

Originally Posted by mortenb
Yes. But you will not get the code, only the output of the php document

Yea. That would be brutal if someone could just include your "pass_config.php" file and get access to all your databases and shit.

JasonB 03-16-2005 01:04 PM

ya, it'll work, but you may need to include a base url first for the links to work

European Lee 03-16-2005 01:40 PM

Thanks guys.

I could have just tried it but being a non-techy type i didnt want to risk fucking anything up on this new script im playing with.

Thanks again for the help :thumbsup

Regards,

Lee


All times are GMT -7. The time now is 06:33 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123