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 15 of 15
  1. #1
    New Coder
    Join Date
    Jun 2005
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    New and never PHP'd

    hey guys, never even thought about doing PHP before today. So what I'm after is a basic over view on PHP.

    • How does it work?
    • How do you make it?
    • what does it do?
    • how do u merge it with a html site?
    • how do you write it??


    etc

  • #2
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,266
    Thanks
    6
    Thanked 48 Times in 48 Posts

  • #3
    New Coder
    Join Date
    Jun 2005
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hey guys, just a quick question, can you write php in notepad and test 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
    Yeah you can, but you would have to upload it to a webserver which has PHP and Apache installed on it so you could run it, but if you install Apache and PHP on your home computer you can do everything through localhost in your browser

  • #5
    New Coder
    Join Date
    Jun 2005
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ummm i am a newb and have no idea wat u mean

  • #6
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,266
    Thanks
    6
    Thanked 48 Times in 48 Posts
    PHP is a serverside language, it's not like html which is a clientside language.

    For php to work, it has to be executed, or parsed by a server such as apache. You can't just double click on the file and it work.

    You can download firepages phpdev which is linked in one of the stickies in this forum, which includes php, mysql (the database) and apache already set up for you.

    You can use any text editor to write php

  • #7
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,978
    Thanks
    4
    Thanked 2,659 Times in 2,628 Posts
    php can be configured to run on apache, or you can configure it to work with IIS or PWS for windows. Personally, I'd install the apache.
    You can download apache from www.apache.org, seek the HTTP section for details.
    You can download php from www.php.net, seek the downloads section, go with either 4.3.10+ or 5.x, depending on what you need to do. 5.x is newest, and isn't widely supported as of yet.
    You can download mysql from www.mysql.org. Seek the download section and install its basic mysql. I'd recommend also securing phpMyAdmin as this will make mysql a cinch.

    Installing is a piece of cake, even for the beginner. Grab the binary section for php, and the installer for the mysql and apache. Make sure its the windows binary. Run apache to install it and select its base directory. I chose C:\Server for my location, which is also where php and mysql are located: C:\Server\Apache, C:\Server\PHP, C:\Server\MySQL. Configuring your apache is another treat, firepages should be able to help you with a tutorial on his site... his address is in his profile here.
    Then you can create webpages from notepad, save as a .php extension, and test it out. Good to go!

  • #8
    Senior Coder
    Join Date
    Feb 2003
    Location
    Ontario, Canada
    Posts
    1,223
    Thanks
    0
    Thanked 0 Times in 0 Posts

  • #9
    Senior Coder Len Whistler's Avatar
    Join Date
    Jul 2002
    Location
    Vancouver, BC Canada
    Posts
    1,323
    Thanks
    26
    Thanked 100 Times in 100 Posts
    Quote Originally Posted by nathan99
    hey guys, never even thought about doing PHP before today. So what I'm after is a basic over view on PHP.

    • How does it work?
    • How do you make it?
    • what does it do?
    • how do u merge it with a html site?
    • how do you write it??


    etc
    Nathan99....Go to the second thread at the top of the PHP section titled "PHPDEV - Download Development Package for PHP, Perl and MySQL" and download the package. It has everything you need to set up a PHP/MySQL enviroment on your computer without going online.

    All you need to write PHP and MySQL code is Notepad once you have installed this package.
    Leonard Whistler

  • #10
    Senior Coder
    Join Date
    Aug 2003
    Location
    One step ahead of you.
    Posts
    2,815
    Thanks
    0
    Thanked 3 Times in 3 Posts
    Quote Originally Posted by Nightfire
    For php to work, it has to be executed, or parsed by a server such as apache. You can't just double click on the file and it work.
    You can... but it is almost totally useless if you want to use it for webpages.
    I'm not sure if this was any help, but I hope it didn't make you stupider.

    Experience is something you get just after you really need it.
    PHP Installation Guide Feedback welcome.

  • #11
    New Coder
    Join Date
    Jun 2005
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks for all your help guys, ill look into all this, and post back when i need more help

  • #12
    New Coder
    Join Date
    Jun 2005
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts
    how do i use PHPDev?

  • #13
    Senior Coder Len Whistler's Avatar
    Join Date
    Jul 2002
    Location
    Vancouver, BC Canada
    Posts
    1,323
    Thanks
    26
    Thanked 100 Times in 100 Posts
    Quote Originally Posted by nathan99
    how do i use PHPDev?
    It installs onto your computer like any other program. If everything works fine you then go to "Start/Programs/phpdev98_ME" to launch it. Once running you will have lots of links to choose such as "phpmyadmin", "start_here.htm".

    To see your php pages put your files into a folder into "C:/phpdev/www" and the folder will show up in the above list.
    Last edited by Len Whistler; 06-22-2005 at 05:28 PM.
    Leonard Whistler

  • #14
    Senior Coder JamieR's Avatar
    Join Date
    Oct 2004
    Location
    United Kingdom
    Posts
    3,161
    Thanks
    0
    Thanked 5 Times in 5 Posts
    ...or use XAMPP, which is really easy to install, config and use

  • #15
    New Coder
    Join Date
    Jun 2005
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Len Whistler
    It installs onto your computer like any other program. If everything works fine you then go to "Start/Programs/phpdev98_ME" to launch it. Once running you will have lots of links to choose such as "phpmyadmin", "start_here.htm".

    To see your php pages put your files into a folder into "C:/phpdev/www" and the folder will show up in the above list.

    Mmmmm no such thing?? im a fair noob


  •  

    Posting Permissions

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