sleepyfrog Wrote:
-------------------------------------------------------
> I am a web designer and have been viewing local
> php files offline for the 2 years since I've had
> this pc.
You need a PHP interpreter to view ths files in your browser. You had one, when it worked before, but it is not installed when u buy a new PC. I view PHP-Files only in editors locally and send them to the Webpage to view/test them. With EasyPHP (just another WAMP) you can do this without an internet connection on your PC.
> I also think I changed something so that the php
> extension was opened by apache/php - in the same
> way that you can specify .jpg or .doc files to
> open in a particular prpogramme.
That is not neccesary. If the browser calles an local file from the local web folder the Apache server takes care to use PHP. U can still link the extension *.php to a browser or, that's what I do, to my preffered editor (it is PSPad).
> I know it can be done, because I've been doing it!
> I have had to install the latest browsers for
> Opera, Safari and Chrome for testing purposes and
> I have a feeling one of these has reset the
> extension handling properties.
Oh, same answere as before =)
Amour has the correct solution. When you access the files in your browser via the full directory, like c:\program\mywebfiles\index.php, it won't work. Use instead [
127.0.0.1]
Hope it helps you
Cya,
Softi