![]() |
Small PHP custom script
I have one file called list.txt with X names one on each line
john max mike ... and a file called text.txt with a php text code inside. <? random codes CUSTOMWORD random codes CUSTOMWORD random codes .... I need a php script which will do the following: 1-open list.txt, take the first name and create in the same folder a file called name.php EX: john.php in first case 2-paste there the text from text.txt 3-search for CUSTOMWORD inside the text and replace it with name (in first case john) result will be: <? random codes john random codes john random codes .... 4-close and save the file 5-do the same for all words listed in list.txt Can anyone help me with the code? |
I could do that for you.
Email me your budget as well as answers to these questions: - Do you want this script to be started manually from a page online where you would set the parameters? - Do you need a cron job for it to be executed? - Are all files in the same directory and will created files also be in that directory? - Are your script requirements final? - When do you want it ideally? I accept PayPal and I would have to be paid before starting it to be sure I get the job. Send an email to myleene[at]reallyhotstuff.com. I'm also emailing you. |
this is a very simple script , it would be a good example to learn php with
|
mrgqw i did it myself after I learned php the whole night :)) and it was a piece of cake, php have plenty of resources.
myleene thank you for your kindly email, i already answered you Best regards to both of you |
All times are GMT -7. The time now is 02:28 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123