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)
-   -   Php experts or anybody :) (https://gfy.com/showthread.php?t=67024)

Pipecrew 07-06-2002 06:44 PM

Php experts or anybody :)
 
Here is the setup of my directory structure



site1.com
site2.com
site3.com


I have a file that is generated in site1 and I want to display it using an include file statement in site 2


Any Ideas?

I figured it would be

include file "../site1.com/index2.html"

just doesnt work




(edited to fix a typo)

chodadog 07-06-2002 06:55 PM

Not sure if that was a typo or not, but shouldn't that be ../site1.com/index2.html ?

kmanrox 07-06-2002 06:58 PM

i need a php guy to install autogallery sql, pls icq me 1337988

Sly_RJ 07-06-2002 06:59 PM

You're going to need to call the include file by using the absolute path, not the relative path. I'm also assuming that these are on the same server.

Pipecrew 07-06-2002 07:10 PM

Quote:

Originally posted by Sly_RJ
You're going to need to call the include file by using the absolute path, not the relative path. I'm also assuming that these are on the same server.
yes they are, hmm guess i can give it a try! its just they are both at the same position, it would be easier if site2 was included in site1, but i am just not sure how to call backwards, if that makes anysense?

Pipecrew 07-06-2002 07:11 PM

Quote:

Originally posted by kmanrox
i need a php guy to install autogallery sql, pls icq me 1337988
Hey Mike503 can install it for you, he has personally edited my version and a few other people to suit our needs for us

Sly_RJ 07-06-2002 07:14 PM

Quote:

Originally posted by Pipecrew


yes they are, hmm guess i can give it a try! its just they are both at the same position, it would be easier if site2 was included in site1, but i am just not sure how to call backwards, if that makes anysense?

147479144
Hit me up.

RK 07-06-2002 07:32 PM

Quote:

Originally posted by Sly_RJ
You're going to need to call the include file by using the absolute path
and make sure the permissions and http server settings will allow it.

if it does not work, msg me and I'll take a look should take no more than a minute

foe 07-06-2002 07:35 PM

Quote:

Originally posted by Sly_RJ
You're going to need to call the include file by using the absolute path, not the relative path. I'm also assuming that these are on the same server.
You can call an include by relative path should not make any diffrence

foe 07-06-2002 07:36 PM

put a ; at the end of the line

foe 07-06-2002 07:37 PM

Quote:

Originally posted by kmanrox
i need a php guy to install autogallery sql, pls icq me 1337988
I can install it for you no prob, takes a second

Sly_RJ 07-06-2002 07:38 PM

Quote:

Originally posted by foe


You can call an include by relative path should not make any diffrence

Hmm, well it's working since he changed it.

foe 07-06-2002 07:44 PM

Quote:

Originally posted by Sly_RJ
You're going to need to call the include file by using the absolute path, not the relative path. I'm also assuming that these are on the same server.
This is not necessary but if you want it to be the absolute path the easy way to find it out is goto the directory of site two and type pwd in shell or telnet


All times are GMT -7. The time now is 02:56 AM.

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