Return value as 'customvariablename'
<p>I am attempting to crawl through a file and insert "../../" at the beginning of every image path.  Unfortunately though, the script is timing out, and since it only took a few seconds to run before this was added something tells me it is not doing what I think it should be.  This is how I'm doing it:</p>

<pre><code>$filedata = substr_replace(substr($filedata,$imageBeginning,1),"../../",$imageBeginning);
</code></pre>

<p>I am crawling entire HTML files to accomplish this, so I need an efficient solution.  Any help is appreciated.</p>
