Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Feb 2005
    Posts
    525
    Thanks
    0
    Thanked 0 Times in 0 Posts

    I am brand new to PHP but know some codes. But I need help with the page reading it.

    Ok, I was learning php from a book called "PHP5 in easy steps" by Mike Mcgrath, and so I know some coding and stuff, but whenever I save a file as a php file, it just comes up as whatever I typed, such as I'll save a file as phpinfo.php and the code will be:

    <?php phpinfo(); ?>

    And when I open the browzer, it will come up exactly as I wrote it. Why won't the browzer process it?
    Single Paradox
    My Site (Under construction)

    Not too bad for a 15 year old

  • #2
    Regular Coder
    Join Date
    Feb 2005
    Posts
    525
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I have tried all that setup jazz with apache, php, and mysql. I made the file php.ini, I added all this stuff. It didn't work so I deleted it and did it three more times with no luck. I have a feeling it is in the programming of getting files to read .php and .phtml but I do not know much about that. I just copyed the book in that part.

    In a minute I will rewrite all the stuff I did that the book told me to. In case it helps.
    Single Paradox
    My Site (Under construction)

    Not too bad for a 15 year old

  • #3
    Regular Coder
    Join Date
    Sep 2004
    Location
    USA
    Posts
    314
    Thanks
    7
    Thanked 0 Times in 0 Posts
    Your trying to do it on your computer? Why not just upload it?

  • #4
    Senior Coder JamieR's Avatar
    Join Date
    Oct 2004
    Location
    United Kingdom
    Posts
    3,161
    Thanks
    0
    Thanked 5 Times in 5 Posts
    Your browser isn't parsing it because it can't understand the language - I have XAMPP installed - an Apache distro with Apache 2, PHP4, PHP5 (with switcher), mySQL, Webalizer, phpmyadmin...the works - it's great..

    You can't, IME, execute your PHP from anywhere on your computer, it has to be, by default, under localhost - i.e. c:\apachefriends\xampp\htdocs on windows..however I'm just giving you that as an example although you don't have xampp installed.

    I found a manual install of everything was a bit tricky so I decided to use a distro.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •