KEEP LEGAL CHARACTERS IN AN UPLOAD FILE NAME FROM BREAKING PAGE CODE - Mar 12th, 2015


I was using a background URL to show an image in a <div>

background: url(<?php echo $masterurl ?>/cmsAdmin/uploads/<?php echo $upload['thumbUrlPath2'] ?>);

and there were certain legal file name characters, like parentheses, that would break this code.

Claire Ryan, Interactive Tools programming Guru came to the rescue with this simple fix.

She said:

Try single quoting the URL in the CSS, like this:

background: url('<?php echo $masterurl ?>/cmsAdmin/uploads/<?php echo $upload['thumbUrlPath2'] ?>');









The materials on this web site have been created for use with CMS Builder content management software. CMS Builder software is published and licensed for use by InteractiveTools.com. Please contact Interactive Tools for information on the downloading of the software or the purchasing of licenses.


Terms of Service