Jump to content

Not able to find connection details in PHP Code


tripleM

Recommended Posts

Hi,

 

I got PHP Code which is working somewhere. My job is to change DataBase name(SQLServer) hosted internally and need to run it internally. But I am unable to find , where the connection to SQLServer details have been provided. Even i searched for mssql_xx() function in the entire folder. But no luck.

Could any one please tell me where could be the connection details?

And also i found some where like include($Dir."Plugs/.LibStd/newfile.php").

What is .LibStd here. Because i am unable to find that.LibStd inside Plugs folder?

I guess, if i find .LibStd folder and newfile.php, there could be the connection details.

 

 

Thanks,

tripleM

Link to comment
Share on other sites

So that ".LibStd" is a hidden folder...

Most software automatically hides any files or folders on a server that start with a period.

 

You'll have to manually type the directory name into your FTP client or filemanager.

Most software that hides these folders and files have a setting to show such files if you turn it on.

 

Usually, connection details are kept in the root under a file called config.php or something similar but since this script has a directory that has been purposefully hidden, it is probably in there.

 

Good Luck,

Handy PHP

Link to comment
Share on other sites

No Luck .

Actually i am getting the following error

Warning: include(C:/Apache/localfolder/Plugins/.LibStd/sample.php) [function.include]: failed to open stream: No such file or directory in C:\Program Files\Apache Group\Apache2\htdocs\Apache\localfolder\Plugins\Users\login.php on line 8

 

 

Warning: include() [function.include]: Failed opening 'C:/Apache/localfolder/Plugins/.LibStd/sample.php' for inclusion (include_path='.;C:\php5\pear') in C:\Program Files\Apache Group\Apache2\htdocs\Apache\localfolder\Plugins\Users\login.php on line 8.

 

Thanks,

tripleM

 

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.