Jump to content

Dll in php


rajeshkumarvm

Recommended Posts

Hi

i am new born child for php.My dbconnect.php having username and password for connect with mysql server.I want to make something but it wont preview the details to third person.Then i think to make this dll function.I am also welcome for any other methods like password encryption and decryption method with clear details.So anyone tell me how to make dll and how to connect the php pages and any other methods also.I am waiting for yor reply.

Link to comment
Share on other sites

I like making a file of well used constants that I set chmods on to execute only

such as

define("ROOT",$_SERVER['DOCUMENT_ROOT']."/redesign/");
define("BASE", "/redesign/");
define("SCRIPTS", ROOT."scripts/");
define("SUB_FOLDER", BASE."source/");
define("GRAPHICS", BASE."graphics/");
define("SOURCES", BASE."sources/");
define("IMAGES", BASE."images/");
define("CSS", BASE."css/");
define("EXT", ".php");
//SQL DB INFO HERE 
define("SQL_PORT", "localhost");
define("SQL_USER", "");
define("SQL_PASS", "");
define("SQL_DB", "");
?>

The top ones are for linking purposes the Root is for includes and the Base is for anchors/image src.  The rest are pretty much self explanatory. 

You could 2 way encrypt all this and decrypt on use,  but that requires mCrypt which is over kill in my eyes.  If the file can only be executed than it can't be viewed. 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.