Super Quick PHP Task (preg_replace and file_put_contents to edit a JSON file) ASAP
Budget $10-30 USD
Job Description:
Hi. I'm trying to make 2 quick edit files that edit values in a small JSON manifest file. Basically, I want to edit the Name and the URL. But, I can't get either one working correctly. See below. (Note: once I get these working, I can just put them into certain pages in my framework that'll clean the inputs, etc. and only let an Admin submit them).
1. Simple replace using preg_replace. So, we replace the Name and the URL with POST values from this form: [login to view URL]
$content = preg_replace('/YourBrand/', $name, $content);
$content = preg_replace('[login to view URL]', $url, $content);
2. Create a string or array with the POST variables for Name and URL
$lang = "en-US";
$display = "standalone";
$src = "./static/images/[login to view URL]";
$newdata[] = array(
'name' => $name,
'short_name' => $name,
'lang' => $lang,
'start_url' => $url,
'display' => $display,
'icons' => array([
'src' => $src
])
);
I'll give you my 3 files (2 edit files and the [login to view URL] file)
Awarded to:
Hello! As a senior developer, I have been working for over 5+ years. I've developed dozens of Web Sites and Web Services for over 5 years successfully. I have perfect knowledge of web site Development methods and other More
19 freelancers are bidding on average $24 for this job
To get the best results, hire me and save both time and money. Dear Sir, how are you. The requirements you provided are clear to me. As a software developer with five years of experience, I have a deep understanding of More
Hi! How is your day going! I have just read your description carefully. Please give me 3 files. I can fix it within few hours. It's my major. I am senior php and javascript developer. Please give me an offer and let's More
Hello, I can start immediately and quickly edit files that edit values in a small JSON manifest file. If you share with me your files I can start now and finish it quickly. Regards, Nemanja!
Hello Sir.( ͡❛ ᴗ ͡❛ ) This is Yaroslav and thank you for posting the project, I have verified your data and before providing the estimated time of completion of the project. I wanna ask you some questions about the pr More
*** I can finish in a few hours max *** I can fix your php issue right now! Start immediately !!! Best Regards,
I can do this for you. Please view my past submitted work in my portfolio's Portfolio Items section.
Hi, I have read your post that you are looking for a php Developer to quickly edit values in a small JSON manifest file. I have reviewed all of your above shared details and I'm confident to serve you with my best qual More
Dear client. I can fix this bug in 10~20 minutes. I am familiar with preg_replace function for PHP language. I can start working once you hire me. thank you.
Hello how are you ? I'm a php developer for just over 5 years, and I'm available right now to perform this service for you! Call me to talk more about the project, thank you!
I read job description and I can do your project. I can even work on urgent basis and complete your project soon.. contact me for more information
Hello, I have ever solved many problems like this, So I can resolve this issue for a short time and you will be satisfied. please contact with me.