Log in

View Full Version : Modify definition.php file with php form



dragon_sa
04-27-2008, 08:45 AM
I have seen how to change an existing file using the text area, but how would you just extract and edit the variables of the defines tags in file of php defines statements, for use for example to modify site logos and heading texts that are defined in such files? Any help would be much apreciated thank you

Nile
04-27-2008, 01:12 PM
I don't think that you could unless you used a really advanced script that you would have to make.
Sorry,
Nile

dragon_sa
04-28-2008, 09:10 AM
someone has mentioned about using
get_defined_constants() which will list all define( 'LABEL', 'value' );

but not sure how to use it

Form page reading file and listing seleced defines values in text area box, which can be changed, on submit it updates the definition.php file with the new values for the selected LABELS.

thats about what i want to acheive