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)
19 freelancers are bidding on average $24 for this job
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!
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!