HI all
I have a little problem that I require a little help with and it’s to do with the following php // set up filtering.
I kind of grasp the concept of magic quotes but I am wondering how best I can include for example the term St Ann’s . I think it’s the single quote in Ann’s that is causing the page errors.
Just one other thing, I am just starting out using php so treat me like a 6 yr old when replying.
Thanks in anticipation to overcoming this problem for me at least.
PHP Code:
<?php require_once 'C:\Downloads\xampp\htdocs\***\***\***\carp.php'; /*** Setup Code ***/ CarpConf('cache-method','mysql'); CarpConf('mysql-connect',1); CarpConf('mysql-database','******'); CarpConf('mysql-username','*****'); CarpConf('mysql-password','*****'); /*** End Setup Code ***/ // Add any desired configuration settings before CarpCacheShow // using "CarpConf" and other functions
/*CarpConf('cborder','link');*/ CarpConf('biurl','<h3><a rel="nofollow" href="'); CarpConf('aiurl','">'); CarpConf('ailink','</a></h4>'); /*CarpConf('bidesc','<i>');*/ CarpConf('bidesc','<p class="CarpConf">'); CarpConf('aidesc','</p><p class="CarpConf">'); CarpConf('maxidesc',447); /*CarpConf('atruncidesc','...');*/
// set up filtering CarpConf('filterin','google|yahoo|rankings|St Ann’s');
CarpConf('bi','</p><p>'); CarpConf('ai','</p><p>'); CarpConf('cborder','title'); CarpConf('linktarget',1);
CarpConf('bcb','</p><p class="CarpTitle">'); CarpConf('clinkstyle','font-weight: bold; text-decoration: none; color: #C33; font-size: 16px;'); /*CarpConf('poweredby','');*/ CarpConf('cacheinterval',120); // refresh the cache every 2 hours CarpConf('cacheinterval',15); // wait 15 minutes after an error before trying again CarpConf('bilink','</p><h4>'); /*CarpConf('ailink','</h4>');*/ CarpConf('maxitems',5); CarpCacheShow('http://www.*******/***); ?>
|