On Wednesday 30 April 2008 07:49:14 am Ruslan Sivak wrote:
<? include($_GET['page'].".php") ?>
This is a gross simplification, but it's my understanding that if the file was named 'foo.php' and someone typed in
http://www.domain.com/index.php?action=Foo
It would still work on windows, but not on linux because of case sensitivity.
there is always strtolower and strtoupper, since you are using PHP.
I'm not using PHP, this was just an example. I am considering using something like strtolower, but then I would have to have all the included files in lowercase, and I believe they are in camelcase now.
Hm... This little shell scriptlet might help (change the *.php to whatever extension you are using)
for i in `ls *.php`; do orig=$i; new=`echo $i | tr [A-Z] [a-z]`; mv $orig $new; done