For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > July 2004 > Re: Re: Re: Frustrated with PHP?s "include"









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Re: Re: Frustrated with PHP?s "include"
Paul C-T

2004-07-27, 3:58 pm

Xref: 127.0.0.1 alt.comp.lang.php:6585 alt.php:11423 comp.lang.php:24500

I manage several sites that each have many contributors.

I simply laid down the rules for everyone to follow ... for example ...

"All links, images, flash objects, form actions etc... are to be referred to
by their full UNC path name ...

therefore http://www.mydomain.com/style.css is acceptable where as
../style.css or style.css are not.

A number of internet and intranet addresses are defined in the
definitions.php file which will assist you ... such as

$mydomain = http://www.mydomain.com/;

This way all they have to do to include a file is include($mydomain .
"myfile.php");

Paul.


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com