-
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
-
What Web server software are you using?
-
i will be using apache, but i didnt think i needed that installed yet. am i wrong?
-
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.
-
ok, ill do that. sorry, i didnt quite get that i needed that as i was reading the article...
-
That's okay — that's what we have these forums for! :)