Ask a Question related to PHP Notes, Design and Development.
-
David@rack1.php.net #1
note 33766 added to function.mysql-connect
>A better way to protect your password/data with PHP and
Only do this if you don't have confidential data in the database. Any user with access to the db server will have access to your data, i'd still use a password just as another level of protection anyway.>MySQL, if you don't need write access, is to have a new
>user, such as "nobody" (which is often the default Apache
>user processing your PHP anyway) who has read-only access
>to your database tables--and connect using nobody and no
>password.
If im thinking correctly, this is good as long as someone on the server doesn't write a php script running it on the same webserver to read the files you've just 'protected'.>Another note: Say you want your script to write some files
>to one of your directories, but you don't want the directory
>world-writable. Simply make the directory's group "nobody"
>and chmod it 775. This way, "nobody" will have rw access,
>but nobody else.
----
Manual Page -- [url]http://www.php.net/manual/en/function.mysql-connect.php[/url]
Edit Note -- [url]http://master.php.net/manage/user-notes.php?action=edit+33766[/url]
Delete Note -- [url]http://master.php.net/manage/user-notes.php?action=delete+33766&report=yes[/url]
Reject Note -- [url]http://master.php.net/manage/user-notes.php?action=reject+33766&report=yes[/url]
David@rack1.php.net Guest
-
note 33988 added to function.mssql-connect
Using MSSQL 2000 and Windows Server 2003 Enterprise running on a separate machine from the web server, I was unable to get PHP to connect to MSSQL... -
note 33795 added to function.mssql-connect
Fatal error: Call to undefined function: mssql_connect() in /var/www/html/global/sp/classes/database.php on line 15 how i can fix this please!! ... -
note 33759 added to function.mysql-connect
CORRECTION: As of Apache 2.0.46 - The following directive will not work properly and will hault Apache from starting. In the example below that was... -
note 33678 added to function.mysql-connect
Çäåñü âû íàéäåòå êó÷ó ïîëåçíîãî ìàòåðèàëà , ïîñåòèòå ãàëåðåþ 3D ðàáîò äðóãèõ äèçàéíåðîâ, ÑÊÀ×ÀÒÜ ÃÎÒÎÂÓÞ ÐÀÁÎÒÓ èëè çàäàòü ñâîé âîïðîñ íà... -
note 33624 added to function.mssql-connect
Just a little comment that I would like to add: If you intend to access MS SQL server remotely, you need to install SQL Server Client Tools on the...



Reply With Quote

