Hi this is probably a completely simple solution but cant see it have used php before but was about 3 year ago and wanting to get back into it but when I try to open the phpinfo file instead of showing up the right information all it is doing is showing the code thats saved in the file. As far as I know I have added all the correct commands to all the relevant files so cant see where I am going wrong. any help would be appreciated at this point. Am using Apache 2.2 which is running fine and php 5.2.6 and mysql 5.
dose the file start with <?php ? is it named something.php ?
yeah the file has the following code in
<?php phpinfo(); ?>
and the file is called phpinfo with the .php file extension
It sounds like you're opening the file (double-clicking the file) rather than opening through the browser.
no I have been typing in the address into the browser wish it was as simple as me double clicking the file
http://localhost/file.php
i asume this is a local install, are you sure php has started?
i presumed with apache running and all the commands added into the relevent files php automatically started once that was done. Guessing I am mistaken so can u tell me what I am doing wrong
Apache needs to be started, php runs all the time. Providing the appropriate lines are added to the httpd.conf file (i assume you're using Windows) then php will be available to the web server(apache).