SitePoint Sponsor

User Tag List

Results 1 to 6 of 6

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Sep 2000
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok, i just downloaded and installed (or tried to) php and mysql while reading this article http://www.webmasterbase.com/article...aid=228&pid=0. anyway, i tried out a basic php script that i know would work, and it doesnt show the php part of it. (its the example in the article). what do i need to change in my php.ini file or what do i need to do to make it work? im new to the whole database thing, but it interests me, so id appreciate any help. thanks

  2. #2
    SitePoint Author Kevin Yank's Avatar
    Join Date
    Apr 2000
    Location
    Melbourne, Australia
    Posts
    2,571
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    What Web server software are you using?
    Kevin Yank
    CTO, sitepoint.com
    I wrote: Simply JavaScript | BYO PHP/MySQL | Tech Times | Editize
    Baby’s got back—a hard back, that is: The Ultimate CSS Reference

  3. #3
    SitePoint Member
    Join Date
    Sep 2000
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i will be using apache, but i didnt think i needed that installed yet. am i wrong?

  4. #4
    SitePoint Author Kevin Yank's Avatar
    Join Date
    Apr 2000
    Location
    Melbourne, Australia
    Posts
    2,571
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Definitely. PHP is a server-side scripting language, which means the Web server from which your browser requests the file interprets the code and converts it to HTML before it is sent to the browser. The Web browser itself has no idea that the page you're viewing contains PHP code -- all it gets is a plain HTML file.

    For your PHP page to give you the expected results, you'll need to install a Web server on your computer and then install PHP onto that Web server. Then, once that's done, you should place your PHP scripts into the document directory of the Web server to view them with your browser (e.g. http://localhost/today.php).

    This was all explained in my article.
    Kevin Yank
    CTO, sitepoint.com
    I wrote: Simply JavaScript | BYO PHP/MySQL | Tech Times | Editize
    Baby’s got back—a hard back, that is: The Ultimate CSS Reference

  5. #5
    SitePoint Member
    Join Date
    Sep 2000
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok, ill do that. sorry, i didnt quite get that i needed that as i was reading the article...

  6. #6
    SitePoint Author Kevin Yank's Avatar
    Join Date
    Apr 2000
    Location
    Melbourne, Australia
    Posts
    2,571
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    That's okay — that's what we have these forums for!
    Kevin Yank
    CTO, sitepoint.com
    I wrote: Simply JavaScript | BYO PHP/MySQL | Tech Times | Editize
    Baby’s got back—a hard back, that is: The Ultimate CSS Reference


Bookmarks

Posting Permissions

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