Sunday, July 26, 2020
Sunday, October 6, 2019
jquery filter element by menu
October 06, 2019
No comments
Filter elements by jquery, here i used data attribute for filter elements and used bootstrap4 for grid.
menu items like this :
menu items like this :
<a class="nav-link" data-filter="Events">Events</a>
<div class="col-12 col-sm-6 col-md-4 filtr-item" data-category="Media,News">
<img src="https://via.placeholder.com/150?text=1" class="img-fluid" alt="sample">
</div>
and the thumnail item data like this:
Saturday, October 5, 2019
Saturday, July 20, 2019
Saturday, February 2, 2019
You don't have permission to access, Server unable to read htaccess file, denying access to be safe - Fix Godaddy
February 02, 2019
No comments
Error : You don't have permission to access, Server unable to read htaccess file, denying access to be safe.
Solution: chmod -R 755 <site_top_folder>
Solution: chmod -R 755 <site_top_folder>
Tuesday, July 17, 2018
Friday, July 6, 2018
Wednesday, June 27, 2018
Saturday, March 24, 2018
Thursday, March 15, 2018
Friday, April 21, 2017
Php add days to current date excluding weekends and excluding holidays
April 21, 2017
No comments
<?php
$holidayDates = array(
'2016-03-26',
'2016-03-27',
'2016-03-28',
'2016-03-29',
'2017-04-25',
);
$count5WD = 0;
$temp = strtotime("2017-04-21");
while($count5WD<2){
$next1WD = strtotime('+1 weekday', $temp);
$next1WDDate = date('Y-m-d', $next1WD);
if(!in_array($next1WDDate, $holidayDates)){
$count5WD++;
}
$temp = $next1WD;
}
$next5WD = date("Y-m-d", $temp);
echo $next5WD;
?>
$holidayDates = array(
'2016-03-26',
'2016-03-27',
'2016-03-28',
'2016-03-29',
'2017-04-25',
);
$count5WD = 0;
$temp = strtotime("2017-04-21");
while($count5WD<2){
$next1WD = strtotime('+1 weekday', $temp);
$next1WDDate = date('Y-m-d', $next1WD);
if(!in_array($next1WDDate, $holidayDates)){
$count5WD++;
}
$temp = $next1WD;
}
$next5WD = date("Y-m-d", $temp);
echo $next5WD;
?>
Thursday, December 22, 2016
WAMP server installation errors and solutions
December 22, 2016
No comments
1. How to solve WAMP - local server - 1 of 2 services running or WAMP icon is orange error
If you have this error? vcruntime140.dll missing error in wamp on windows First solve the problem. Need Help? Click Here or Download and install the file.
!Important - Then click wamp icon->Apache -> Service administration -> install service
2. *** ERROR *** The PHP configuration loaded file is: - should be: C:/wamp64/bin/apache/apache2.4.17/bin/php.ini or c:/wamp64/bin/php/php5.6.16/phpforapache.ini
- copy php.ini file from - C:\wamp64\bin\php\php7.0.4
- past to - C:\wamp64\bin\apache\apache2.4.18\bin
Wednesday, December 14, 2016
How to allow remote access to WAMP server
December 14, 2016
No comments
When i try to access WAMP from my mobile i got this error:
<VirtualHost *:80>
ServerName localhost
DocumentRoot c:/wamp64/www
<Directory "c:/wamp64/www/">
Options +Indexes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
3. Allow ports
Controlpanel -- windows firewall -- advanced setting -- inbound rules -- ports -- all local or port 80
Forbidden You don't have permission to access / on this server
then i insert Require all granted into 2 files :
1. C:\wamp64\bin\apache\apache2.4.18\conf\httpd
DocumentRoot "C:/wamp/www"
<Directory />
Options None
AllowOverride None
Require all granted
</Directory>
<Directory C:/wamp/www>
Options None
AllowOverride All
Require all granted
</Directory>
2. C:\wamp64\bin\apache\apache2.4.18\conf\extra\httpd-vhosts
ServerName localhost
DocumentRoot c:/wamp64/www
<Directory "c:/wamp64/www/">
Options +Indexes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
3. Allow ports
Controlpanel -- windows firewall -- advanced setting -- inbound rules -- ports -- all local or port 80