I want to that install.php to show the website: http://www.domain.com <- without any end slashes or anything crap! The domain.com is a address that change often so I cannot just type my address, I need the php file to check it itself.

I can not solve this myself wiht $_SERVER["SERVER_ADDR"], is there any else?

It seems to not understand what is str_ireplace, but it worked well with str_replace

Did you type ireplace correct or why it doesn't work for me? The str_replace worked but not the ireplace one...

Bill Posters

06-15-2006, 05:31 PM

It seems to not understand what is str_ireplace, but it worked well with str_replace

Did you type ireplace correct or why it doesn't work for me? The str_replace worked but not the ireplace one...
Your hosting is probably running PHP4, rather than PHP5.
str_ireplace (a case insensitive version of str_replace) came in with PHP5, but str_replace will do you fine so long as you stick to using the same casing in your directory and file name and the str_replace function.

i.e.
str_replace('/install/install.php',… will work with www.domain.com/route/to/install/install.php, but it won't work with www.domain.com/route/to/Install/Install.php

kaisellgren

06-15-2006, 05:35 PM

Ah okay. That's good. I'm only using lower case letters in all files and folder names.