View Single Post
Sure – that's the expected behaviour: If you open the file on the disk with OW, OW won't run PHP and show what the script prints out, but show the file itself, just as it should, IMHO.

OTOH, if use your localhost URL, the web server on your computer feeds the script to PHP and presents the result to OW, just as any web server out there on the web would.

The point is: If you install a PHP script somewhere on your web server, you do this because it is a script that prints out HTML to be viewed by some browser. If you have a PHP script lying around just anywhere in your folders, it might also be a script that you (or someone else) has set up to delete all files in the current directory and print out nothing, or to scan your home directory folders and print out a CSV style "database" file that holds the amount of space each directory uses, or to convert all PDFs in a certain directory to TIFFs and print out a summary of its work in MS Word format – or just about anything else. In either mentioned case, the printed result is nothing OW could show you properly, and it's even potentially dangerous.

That's why I don't like the Opera way you mentioned. ;-)

Best regards,

Christian