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

GFED 06-22-2003 08:15 AM

PHP Include?
 
I want to include a page on a bunch of sites so I don't have to edit 100 sites to change the one page. SSI only works on the sites domain... I don't want to use I Frame...

I know there is a way to fetch pages with PHP with only a few lines of code... can someone please pass the code...


Thanks!

crescentx 06-22-2003 08:28 AM

PHP Code:

<? include "/file/that/you/want/to/include"; ?>

or
PHP Code:

<? include "http://www.thesite.com/file"; ?>

should do it. The first one is the
Quote:

absolute path
to your file, so if the file is index.html in the directory /home/web/site.com/webdocs/index.html you would need all of that in there. Some configurations make it so you have to do
PHP Code:

<?php

not just
PHP Code:

<?

-doug

GFED 06-22-2003 08:32 AM

Thanks! :thumbsup


All times are GMT -7. The time now is 05:34 PM.

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