[mythtv] Mythweb: init.php - problem with php split function

Dick Middleton dick at lingbrae.com
Mon Nov 22 22:52:22 UTC 2004


Chris Petersen wrote:
>> Unfortunately if image_cache starts with a '/' this doesn't work.  The
>> PHP4 split function returns null for first element if pattern match is
>> found at the beginning of the string.  Odd, but true - see test script:
> 
> 
> Why would you want it to start with a / ?? 

Well - the comment says: "Path to the image cache directory" so that's 
what I put in.

> It needs to be in your web 
> tree, so it should be a local path.  Otherwise, you wouldn't be able to 
> see the images from a web browser.

That explains that then.

:-)

Dick



More information about the mythtv-dev mailing list