|
|
|
|
![]() ![]() |
May 20 2008, 07:14 PM
Post
#11
|
|
|
Define:EVIL PROGRAMMER (ē'vəl prō'grăm'ər)- n. An organism that converts caffeine into evil software. ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 1,018 Joined: 25-September 05 From: L.A. Member No.: 12,251 |
Can you explain those two entries: 'persistent' => 0, 'driver' => 'mysql'. Why do I need them? Well they are just values in an array. There is no real reason to turn off persistent connection because PHP's mysql_connect function automatically makes a non-persistant connection. If you have any questions about persistent connections you can read about them here. As for the driver I am not sure. It almost looks like he is using a function that is designed to connect to any type of database and is a lot more open ended. However mysql_connect works fine and already defaults to all of those values so there is no real reason to set them if you plan on using that. |
|
|
|
May 21 2008, 03:38 PM
Post
#12
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 411 Joined: 9-February 08 Member No.: 57,615 |
Thanks. I got it.
|
|
|
|
May 22 2008, 08:40 PM
Post
#13
|
|
|
Member [Level 1] ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 66 Joined: 2-April 08 From: Berkshire, England Member No.: 60,270 |
It looks pritty good, same as mine basically!
I don't think there's any improvement you can do security wise, but when your doing your mysql_query's use sprintf with mysql_real_escape_string (read up on it closer to the time) I think it makes the query more secure. |
|
|
|
May 24 2008, 10:13 AM
Post
#14
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 411 Joined: 9-February 08 Member No.: 57,615 |
Thanks enough!!!
|
|
|
|
May 24 2008, 10:20 AM
Post
#15
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 220 Joined: 12-May 08 From: Istanbul, Turkey Member No.: 62,045 |
SO, you mean it's better to use like db.inc.php instead of confg.php? correct. config.php or db.inc.php whatever its name is not important. For example: If filename is config.php, type the url of the config php, and you will see a blank page. You will not see the source codes, so filename is not important, I think. |
|
|
|
May 24 2008, 03:21 PM
Post
#16
|
|
|
Advanced Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 113 Joined: 22-April 08 From: Harare, Zimbabwe Member No.: 61,160 |
Thanx guys for the info but a newbie like me would not jump into the config file. I need to start from scratch. I have google php tutorials but I keep getting the ones that are base on assumption I've already installed php or I need help with some trix on top of the basic php knowledge that I have. I need tutorials that will take me from the moment I double-click my php installer to the moment when I can say I have configured my site and php, apache and mySQL are now working in harmony. By the way my site is not on my rig. It's hosted by Trap17.
Can anyone point me to such resources? Pliz! |
|
|
|
Jun 10 2008, 05:57 PM
Post
#17
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 411 Joined: 9-February 08 Member No.: 57,615 |
Its too clear now!!!
|
|
|
|
![]() ![]() |
Similar Topics
|