Showing posts with label Database setup. Show all posts
Showing posts with label Database setup. Show all posts

Saturday, 3 April 2010

What is PHPinfo() ?

When you are working with PHP, this is the all important question!

Basically, this is a function, a built-in function I might add is having all the info about your web server.

It lets you know where you configuration file is stored (i.e. the php.ini file) and the version of PHP you are using.

Not only that, the information about the session variable the cookies and much more. Not to mention it also lets you know what extensions are loaded in the server. What extensions are in PHP, I will let you know in my next post.

Keep reading and keep tuned in!

Thanks!

Wednesday, 11 April 2007

Setting up Database in Dreamweaver 8 without writing any codes

It is again quite easy to setup your database using your favourite Dreamweaver 8 without writing any codes . If you are working with PHP4 or PHP5 you can always set it up smoothly as possible.
I would assume that you have already opened up your favourite Dreamweaver 8. Get ready for easy step-by-step learning!
If you are working with PHP then the way to select it is by going to the File-> New and then selecting PHP the way it is shown below in the picture



Now to setup, yes to setup the database (Here we are using MySql as a database for PHP) we simply go to the applicatin panel and click the + sign as shown in the picture below

And then MySql Connection window opens up. Follow these easy steps now:



Connection name = conPHP (or whanever you like)
MySql Server = localhost (if you are using it on a local computer i.e your own computer)Username = root (Thi is the default user name. You can even enter the one you've defined)password = (I've not specified any password so I'm gonna leave it blank)
Database = DbName (You can either type it or select one by clicking on the select button)
After entering all the details hit the Test button. If everything goes fine you'll see this dialog show below:

Congrats! you've just setup the the database connection without writing any codes yourself. Now just switch over to the code window and see that code Dreamweaver 8 has generator for you. Ewww lots of code isn't.
Isn't Dreamweaver 8 Great?!!
Thanks for viewing!
Let me now if you it was helpful to you
Thanks agian !!