For Programmers: Free Programming Magazines  


Home > Archive > PHP Programming > 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"
Ian.H

2004-07-28, 8:57 pm

On Tue, 27 Jul 2004 17:09:10 +0100, Paul C-T wrote:

> 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.



What about '/styles.css'? Would perform the exact same task without
limiting the coder to a specific domain name.


>
> 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.



Sounds overly complicated and a PITA to me.. as it means I'd have to
change at least one value between my dev server and my live server.





Regards,

Ian

--
Ian.H
digiServ Network
London, UK
http://digiserv.net/

Sponsored Links







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

Copyright 2010 codecomments.com