Jump to content

Editing a config file for PHP script


bryzo

Recommended Posts

So my application currently has a PHP config file, named config.php, which looks like this:

 

$username = "user";

$password = "password";

 

If i want to change the user's password, how can I enter into the file and change the password section without modifying anything else?

 

Thanks!

Link to comment
https://forums.phpfreaks.com/topic/208847-editing-a-config-file-for-php-script/
Share on other sites

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.