I am currently running WAMP server. Before it wouldn't go online but I have fixed that by reinstalling it and uninstalling all other servers I had. I am running into a problem though. The php will not work. It did not work when I used another server package either. I put in the right code, save it as a php extension and put it in the right root file in the WAMP server file. Nothing happens. Php will just not work. Before this I had Xamp and it did not work with that one either, I have completely uninstalled that but I had a problem uninstalling plain Php. It said it was missing a file, it was partially uninstalled so i just deleted all the files I could that were from that PHP. I think the computer still recognizes the old Php on it though. Could this be a problem?

My Php Code wrote:

<html>
<head></head>
<body>

Agent: So who do you think you are, anyhow?
<br />

<?php
// print output
echo 'Neo: I am Neo, but my people call me The One.';
?>

</body>
</html>

    i see your using a tutorial!!!

    Try looking at the php error log.
    Or you might not entering .php as an extision, windows actomatically hides file extension so like when you create a new text file
    i wont show the .txt part. this is easy to fix.

    in vista go into a folder and click organize then click folder and search options, when the box pops up select the view tab at top and then look for "Hide extionsion for know file types" uncheck the mark beside that then click on ok now it should show extions of the files,

    To do that in windows XP click on tools then folder options then click the views and uncheck the mark beside "Hide extensions for know file types" then Click Ok.

    Then make sure you file name ends with .php. also make sure in wamp you save you files in the www folder and
    type in your web browser 127.0.0.1/whatever.php to view the files instead of clicking on them.

      Are you launching the file from the browser as a URL, e.g. "http://localhost/filename.php"? (If you are just double-clicking a file icon or using the File->Open menu option on your browser, then the file is not being processed by the web server.)

        its proboly not a wamp problem the problem is proboly her files are named something.php.txt and he/she only sees .php

          djheru wrote:

          If you are more concerned with just getting it working rather than figuring out why it's not working, I would suggest using XAMPP. It is super easy to set up.
          http://www.apachefriends.org/en/xampp.html

          I use this too and it works really good, have never had a problem with it

            Lillith, could you please confirm the questions posted in this thread, in order to figure out what is happening.

            They basically are:
            - Do you use the .php extention for your files
            - Are you opening it as a webpage, rather than as a file on your computer

            If so:L When you open the file, what does it look like? What is the output it does produce?

              I was using Xxamp before and it was good but i needed something just to test my files and not run a website and i found wamserver which is tiny and there are u3 versions avaliable and also usb versions (O_0) which is exactly what i needed.

                Write a Reply...