Title: Save Our Tigers | Join the Roar
Link: http://gotaf.socialtwist.com/redirect?l=-635043355222325288021
Title: Save Our Tigers | Join the Roar
Link: http://gotaf.socialtwist.com/redirect?l=-635043355222325288021
$array = array(‘foo’ => ‘bar’, ‘baz’, ‘bat’ => 2);
end($array);
while (key($array) !== null) {
echo key($array) .”: ” .current($array) . PHP_EOL;
prev($array);
}
| Value | Constant | Description |
|---|---|---|
| 2 | E_WARNING | Non-fatal run-time errors. Execution of the script is not halted |
| 8 | E_NOTICE | Run-time notices. The script found something that might be an error, but could also happen when running a script normally |
| 256 | E_USER_ERROR | Fatal user-generated error. This is like an E_ERROR set by the programmer using the PHP function trigger_error() |
| 512 | E_USER_WARNING | Non-fatal user-generated warning. This is like an E_WARNING set by the programmer using the PHP function trigger_error() |
| 1024 | E_USER_NOTICE | User-generated notice. This is like an E_NOTICE set by the programmer using the PHP function trigger_error() |
| 4096 | E_RECOVERABLE_ERROR | Catchable fatal error. This is like an E_ERROR but can be caught by a user defined handle (see also set_error_handler()) |
| 8191 | E_ALL | All errors and warnings, except level E_STRICT (E_STRICT will be part of E_ALL as of PHP 6.0) |
The issue is with png type of images that are not properly displayed in ie 6 (internet explorer – Version 6). I found the solution somewhere on internet while googling.
Okay, so the solution goes as below:
1) download the files needed for the solution from http://demo.avidindiainc.com/ie6pngfix/ie6PNGFixDownload.zip
2) There are 5 files in the directory after you unzip it. They are blank.gif, iepngfix.htc, iepngfix_tilebg.js, iepngfix.php and .htaccess.
3) for solving the issue the two files blank.gif and iepngfix.htc are enough. i will explain them first and we’ll go for the rest files later.
4) Copy and paste iepngfix.htc and blank.gif into your website folder.
5) Copy and paste this into your website’s CSS or HTML:
6) now the other files work as follow. If you want support for CSS1 background-repeat and background-position, make sure you include the add-on .JS file in your <head>:
<script type=”text/javascript” src=”iepngfix_tilebg.js”></script>
7) Suppose if it works offline but not online, in this case you may have a MIME type problem. You must ensure your server is sending the correct MIME type of “text/x-component” for .HTC files. Try one of these two easy fixes:
Thats all folks. I hope this solves your issue with ie6.
The below query didn’t worked for me and gave me the error “Couldn’t get short alias for ( re” and so i did removed the spaces from between every ‘or’ and brackets ‘(‘. i have added the modified query below the original query.
$restaurant = Doctrine_Query::create()
->select(‘re.*’)
->from(‘ReservationHoursSetting re’)
//->where(“re.id <> ? AND re.reservation_setting_id = ? AND ( (re.hr_from > {$hourFrom} AND re.hr_from < {$hourTo}) OR (re.hr_to > {$hourFrom} AND re.hr_to < {$hourTo}) )”, array($HourID, $restaurantSettingID) )
//->where(“re.id <> ? AND re.reservation_setting_id = ? AND ( ( re.hr_from BETWEEN {$hourFrom} AND {$hourTo} ) OR ( re.hr_to BETWEEN {$hourFrom} AND {$hourTo} ) OR ( {$hourFrom} BETWEEN re.hr_from AND re.hr_to ) OR ( {$hourTo} BETWEEN re.hr_from AND re.hr_to ) )”, array($HourID,$restaurantSettingID) )
->where(“re.id <> ? AND re.reservation_setting_id = ? “, array($HourID,$restaurantSettingID) )
->andWhere(“((re.hr_from > {$hourFrom} AND re.hr_from< {$hourTo})
OR (re.hr_to > {$hourFrom} AND re.hr_to < {$hourTo})
OR (re.hr_to > {$hourFrom} AND re.hr_from < {$hourFrom})
OR (re.hr_to < {$hourTo} AND re.hr_from > {$hourTo})
OR (re.hr_to = {$hourTo} AND re.hr_from = {$hourFrom}))”)
->fetchArray();
====================
$restaurant = Doctrine_Query::create()
->select(‘re.*’)
->from(‘ReservationHoursSetting re’)
//->where(“re.id <> ? AND re.reservation_setting_id = ? AND ( (re.hr_from > {$hourFrom} AND re.hr_from < {$hourTo}) OR (re.hr_to > {$hourFrom} AND re.hr_to < {$hourTo}) )”, array($HourID, $restaurantSettingID) )
//->where(“re.id <> ? AND re.reservation_setting_id = ? AND ( ( re.hr_from BETWEEN {$hourFrom} AND {$hourTo} ) OR ( re.hr_to BETWEEN {$hourFrom} AND {$hourTo} ) OR ( {$hourFrom} BETWEEN re.hr_from AND re.hr_to ) OR ( {$hourTo} BETWEEN re.hr_from AND re.hr_to ) )”, array($HourID,$restaurantSettingID) )
->where(“re.id <> ? AND re.reservation_setting_id = ? “, array($HourID,$restaurantSettingID) )
->andWhere(“((re.hr_from > {$hourFrom} AND re.hr_from< {$hourTo}) OR (re.hr_to > {$hourFrom} AND re.hr_to < {$hourTo}) OR (re.hr_to > {$hourFrom} AND re.hr_from < {$hourFrom}) OR (re.hr_to < {$hourTo} AND re.hr_from > {$hourTo}) OR (re.hr_to = {$hourTo} AND re.hr_from = {$hourFrom}))”)
->fetchArray();
here is the possible solution:
function getHTTPObject() {
var httpObject = null;
// I think the issue has something to do with this area of code… (1)
if (window.ActiveXObject) { // IE
try {
httpObject = new ActiveXObject(“Microsoft.XMLHTTP”);
} catch (e) {
try {
httpObject = new ActiveXObject(“Msxml2.XMLHTTP”);
} catch (e) {}
}
}
else if (window.XMLHttpRequest) { // Mozilla, Safari,…
httpObject = new XMLHttpRequest();
if (httpObject.overrideMimeType) {
httpObject.overrideMimeType(‘text/html’);
}
}
if (httpObject == null) {
alert(‘Cannot create XMLHTTP instance’);
}
return httpObject;
}
now add the below given code:
var reqNum = rand(1,1000);
url_add = url_add + “&reqnum=” + reqNum;
httpObject.open(“GET”, “levels_dropdown.php?performance_id=” + url_add, true);
httpObject.send(null);
for the rand() function:
function rand (min, max) {
var argc = arguments.length;
if (argc === 0) {
min = 0;
max = 2147483647;
} else if (argc === 1) {
throw new Error(‘Warning: rand() expects exactly 2 parameters, 1 given’);
}
return Math.floor(Math.random() * (max – min + 1)) + min;
var argc = arguments.length;
if (argc === 0) {
min = 0;
max = 2147483647;
} else if (argc === 1) {
throw new Error(‘Warning: rand() expects exactly 2 parameters, 1 given’);
}
return Math.floor(Math.random() * (max – min + 1)) + min;
/*
// See note above for an explanation of the following alternative code
// + reimplemented by: Brett Zamir (http://brett-zamir.me)
// - depends on: srand
// % note 1: This is a very possibly imperfect adaptation from the PHP source code
var rand_seed, ctx, PHP_RAND_MAX=2147483647; // 0×7fffffff
if (!this.php_js || this.php_js.rand_seed === undefined) {
this.srand();
}
rand_seed = this.php_js.rand_seed;
var argc = arguments.length;
if (argc === 1) {
throw new Error(‘Warning: rand() expects exactly 2 parameters, 1 given’);
}
var do_rand = function (ctx) {
return ((ctx * 1103515245 + 12345) % (PHP_RAND_MAX + 1));
};
var php_rand = function (ctxArg) { // php_rand_r
this.php_js.rand_seed = do_rand(ctxArg);
return parseInt(this.php_js.rand_seed, 10);
};
var number = php_rand(rand_seed);
if (argc === 2) {
number = min + parseInt(parseFloat(parseFloat(max) – min + 1.0) * (number/(PHP_RAND_MAX + 1.0)), 10);
}
return number;
*/
}
you can use the below given redirect rule in your .htacess file.
redirect 301 “/about-us ” http://www.avidindiainc.com/about-us
the above one worked for me
to add categories along with images on homepage
just add the code given below to your homepage from admininstration cms management.
{{block type="catalog/navigation" name="catalog.category" template="catalog/category/list.phtml"}} <?php foreach ($this->getStoreCategories() as $_category): ?>
<?php $open = $this->isCategoryActive($_category); ?>
<?php
$cur_category=Mage::getModel('catalog/category')->load($_category->getId());
$layer = Mage::getSingleton('catalog/layer');
$layer->setCurrentCategory($cur_category);
if ($immagine = $this->getCurrentCategory()->getImageUrl()):
?>
<div style="float: left; padding-right: 30px; text-align: center;">
<div class="linkimage">
<p>
<a href="<?php echo $this->getCategoryUrl($_category)?>">
<img src="<?php echo $immagine ?>" alt="<?php echo $this->htmlEscape($this->getCurrentCategory()->getName()) ?>" width="135" height="135" />
<?php echo $_category->getName()?>
</a>
</p>
</div>
</div>
<?php endif; ?>
<?php endforeach; ?>you can get all the versions of wamp server from the below given link: