Welcome Guest ( Log In | Register)



2 Pages V  < 1 2  
Reply to this topicStart new topic
> Php Configuration File, "config.php"
galexcd
post 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



QUOTE(alex1985 @ May 20 2008, 10:00 AM) *
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.
Go to the top of the page
 
+Quote Post
alex1985
post 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.
Go to the top of the page
 
+Quote Post
tracdoor
post 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.
Go to the top of the page
 
+Quote Post
alex1985
post May 24 2008, 10:13 AM
Post #14


Super Member
*********

Group: [HOSTED]
Posts: 411
Joined: 9-February 08
Member No.: 57,615



Thanks enough!!!
Go to the top of the page
 
+Quote Post
Erdemir
post 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



QUOTE(alex1985 @ Apr 25 2008, 12:27 AM) *
SO, you mean it's better to use like db.inc.php instead of confg.php?

QUOTE(jlhaslip @ Apr 25 2008, 02:49 AM) *
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.
Go to the top of the page
 
+Quote Post
kudmus
post 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!
Go to the top of the page
 
+Quote Post
alex1985
post 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!!!
Go to the top of the page
 
+Quote Post

2 Pages V  < 1 2
Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Getting List Of Directories And Files Using Php(6)
  2. Script: Php Jukebox(4)
  3. Secure Page Includes Non-secure File(1)
  4. File Uploading Issues(2)
  5. Alternative To File()?(4)
  6. I Need Help With File Edit In Php(6)
  7. Image Upload And File Size(2)
  8. Reading 16 Bit Wav File(0)
  9. Include File.php?id=something(13)
  10. Php File Problem(5)
  11. Logging Dowload Files From Your Server Onto A Html File(1)
  12. File String Delete?(2)
  13. Php Writes Into Txt File(8)
  14. File In Database(1)
  15. File Format Unknown! (wap)(6)
  1. Display Random File In A Directory(9)
  2. Help Needed With Directory/file Listing Code Infinite Loop(5)
  3. Help Php: How To Load String From Text File (solved)(9)
  4. Php Help Needed Including File In A Page.(2)
  5. Edit .txt File In Ftp Via Webpage(2)
  6. [php]simple Flat File Text Manipulator(3)
  7. <?php ?> Unique Visitors Script(2)
  8. File Upload(1)
  9. No File Extension(3)
  10. Php And Flash Image Gallery(5)
  11. File Checker-how To Check File Whith Html Through Html?(2)
  12. Updating Php File Through A Web Form(5)
  13. Need Some Help In File Browser(8)


 



-