The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
modifying files content via php
I am trying to build something for which i would need to modify a files content via another file.
eg i have say 2 files file1.php and file2.php i want to modify the content of file2.php(in that just one line i have to modify. supposing it reads PHP Code:
what i want to do is to execute file1.php and from a variable thats generated there (i get value of {some name} from file 1, i update the file2.php. possible? i read that creating a new file2.php might do this also. PHP Code:
|
#2
|
|||
|
|||
An idea via pseudocode...
Code:
if some condition from file one read file two into string do regexp string replace write file two to a file end if |
#3
|
||||
|
||||
hi calorie.. thanks.. i had completely forgotten about this thread
yep i had gt it working with str_replace that day only thanks btw |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|