PHP script modification for cms on zend framework

Closed - This job posting has been filled and work has been completed.
Web, Mobile & Software Dev Scripts & Utilities Posted 3 years ago

Fixed Price

Budget: $20
Delivery by April 13, 2013

Start Date

April 10, 2013


Custom made CMS running on PHP and Zend framework. The script is taking a tag from the database and converting it into php code. It currently works but is taking too much time and slowing the system down.


The tags are:


Where X is the number of a unique INCLUDEFILE, there are multiple include files in the code.

The code is:

for($i=1; $i <= 9; $i++){
$ipos1 = strpos($html, 'INCLUDEFILE'.$i.'-');
$ipos2 = strpos($html, '>', $ipos1 + 13);
$includefile = substr($html, $ipos1 + 13, ($ipos2 - $ipos1 - 13));

if (is_file($includefile)) {
include $includefile;
$icontents = ob_get_contents();
$icontents = '';
$html = str_replace('<INCLUDEFILE'.$i.'-'.$includefile.'>', $icontents, $html);


Need to change the code to a more efficient and faster method as this code is causing pages to be rendered very slowly.

About the Client

(5.00) 12 reviews

United Kingdom
London 08:42 AM

23 Jobs Posted
74% Hire Rate, 1 Open Job

$2,697 Total Spent
19 Hires, 1 Active

$13.26/hr Avg Hourly Rate Paid
178 Hours

Member Since Apr 7, 2010