[HELP] Replace a line from .ini
Is there any method to replace a whole line from a .ini file?
I want to search for a string in that line, and replace it. |
Re: [HELP] Replace a line from .ini
Quote:
|
Re: [HELP] Replace a line from .ini
Yes, create a new file copy all the data from the old file to the new file, except that line you want to replace, remove the oldfile rename the new file name to the oldfile name or simply just use write_file( const file[], const data[], line=the line position you want to replace )
1st method is the solution for Cant write file access problem for some hosts. |
Re: [HELP] Replace a line from .ini
Quote:
|
Re: [HELP] Replace a line from .ini
Quote:
|
Re: [HELP] Replace a line from .ini
This has been asked many times, I'm sure you can find the code to do this on the forum. I think I've written this myself multiple times
|
Re: [HELP] Replace a line from .ini
Quote:
|
Re: [HELP] Replace a line from .ini
Quote:
|
Re: [HELP] Replace a line from .ini
Quote:
|
Re: [HELP] Replace a line from .ini
Quote:
PHP Code:
|
| All times are GMT -4. The time now is 04:34. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.