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

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

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

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.