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 5 of 5
  1. #1
    New Coder
    Join Date
    Oct 2012
    Location
    Edinburgh
    Posts
    10
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Need some help with PHP

    Hi everyone,

    I'm new to php and I have no idea about it. I'm trying to understand it by looking at the source codes of other peoples work and I got this small problem when I open a php file in my browser. This is what I see when I press an action button on my html page, which redirects to this php file:


    It might be very stupid, so please don't laugh

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,863
    Thanks
    160
    Thanked 2,224 Times in 2,211 Posts
    You can't run PHP by just opening it in a browser window. For that, you need to have an apache server running in background and a HTTP path like localhost Or 127.0.0.1

    Have a look at http://www.apachefriends.org/en/xampp.html
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • Users who have thanked abduraooft for this post:

    tarasmuz (02-08-2013)

  • #3
    New Coder
    Join Date
    Oct 2012
    Location
    Edinburgh
    Posts
    10
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Thanks. However I still can't get where I should put an SQL file?
    Last edited by tarasmuz; 02-08-2013 at 12:18 PM.

  • #4
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,512
    Thanks
    8
    Thanked 1,090 Times in 1,081 Posts
    Do you have a website hosted online by a shared webhost? Or do you have your own server loaded on your computer?

  • #5
    New Coder
    Join Date
    Oct 2012
    Location
    Edinburgh
    Posts
    10
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by mlseim View Post
    Do you have a website hosted online by a shared webhost? Or do you have your own server loaded on your computer?
    I've installed XAMP as advised and it now works perfectly fine, but I don't understand where to put my SQL files for my website


  •  

    Posting Permissions

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