php ijit needs help. REAL basic.

Okay, so I’m trying to learn php. I use the example given, plonk <?php print(Date(“l F d,Y”)); ?> into a text file, save as test.php, open with firefox.
Nothing.
What’s wrong here? :confused:

PHP is a server-side scripting language. You would need to have a web-server with PHP installed return your “test.php” for this to work.

So, if your web server is running on your local computer, PHP is configured correctly, and your “test.php” file is located in the base web directory, you can access your file with firefox by going to: http://localhost/test.php

Another good test script to use with PHP is


<?php phpinfo (); ?> 

You can’t just “open” the file in FireFox is what SiouxChief is saying, i.e., you can’t use a file:// URL. You must use an http:// URL.