Hi all i've installed apache2 an php4.3.1 a few times on win 2k and xp with no problems. but am having problems with nt4.

I just cant get it to open the phpinfo.php file , page not found,

however if i save it as phpinfo.html or enbed the script in a html page it responds.

i'm using the sapi module and have configured the AddType
application/x-httpd-php .php .phtml .html

Any ideas is it a file association problem?

TIA

    Hi,

    just one idea ... what's the editor you are using ? Notepad ? Notepad and some other editors sometimes automatically add .txt extension to files if the format isn't recognized. It will then show phpinfo.php if you browse the directory with the windows explorer with "hide extensions for known file types" enabled. Those editors will not add .txt when you save files with a known extension like e.g. .html. So this could be a reason. If you disable "hide extensions for known file types" you would see filenames like phpinfo.php.txt.

    Does that problem appear with every php script or only when you name it phpinfo.php ?

    Regards,
    Thomas

      Hi Thomas, you're the man, yes i'm using notepad but i never thought to check that because as i mentioned 2k and xp are fine.

      as the saying goes, you learn something new every day.

      once again many thanks.

        Write a Reply...