Wednesday, September 20, 2017
Font Awesome in AAYUS TravelSys
Tuesday, September 12, 2017
SMTP Error connecting External Mail Server
When you are sending email connecting another/external mail server and your are using php & cpanel
You will get an error like, Can not send, smtp problem and some stupid error.
Please make sure the port is open: 587
and you have to go to you WHM
Search for "ConfigServer Security & Firewall"
Edit Fire Wall Configuration (Edit the configuration file for the csf firewall and lfd)
Scroll down till SMTP_ALLOWUSER and add username of cpanel account and press enter to save and restart
You will get an error like, Can not send, smtp problem and some stupid error.
Please make sure the port is open: 587
and you have to go to you WHM
Search for "ConfigServer Security & Firewall"
Edit Fire Wall Configuration (Edit the configuration file for the csf firewall and lfd)
Scroll down till SMTP_ALLOWUSER and add username of cpanel account and press enter to save and restart
Sunday, September 10, 2017
Problem with GET parameters when posting large data in php
Problem is suhosin (Most of the time)
change the suhosin.get.max_value_length=2000
When you are submitting a form using GET specially, you will get this
change the suhosin.get.max_value_length=2000
When you are submitting a form using GET specially, you will get this
Where is the php.ini file on a Linux/CentOS?
Login to your SSH
Simply type
php -i | grep "Loaded Configuration File"
or
php -i | grep "php.ini"
Thanks
Saf,
PLEASE: Motivate us, if this code helped for you just say a Thanks.
Simply type
php -i | grep "Loaded Configuration File"
or
php -i | grep "php.ini"
Thanks
Saf,
PLEASE: Motivate us, if this code helped for you just say a Thanks.
Tuesday, February 21, 2017
Use ffmpeg to convert your videos
ffmpeg -i products_video.mp4 -c:v h264 -an products_video_h264.mp4 # Convert to MP4
ffmpeg -i products_video.mp4 -c:v libtheora -an products_video_libtheora.ogv # Convert to OGV
ffmpeg -i products_video.mp4 -c:v libvpx -an products_video_libvpx.webm # Convert to Webm
ffmpeg -i products_video.mp4 -c:v h264 -an -filter:v scale=720:-1 products_video_h264_720.mp4 # Convert to MP4
Sunday, January 8, 2017
Add Compression (Gzip) and caching methods for htaccess
AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/css AddOutputFilterByType DEFLATE text/javascript AddOutputFilterByType DEFLATE text/xml AddOutputFilterByType DEFLATE text/plain AddOutputFilterByType DEFLATE image/x-icon AddOutputFilterByType DEFLATE image/svg+xml AddOutputFilterByType DEFLATE application/rss+xml AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/x-javascript AddOutputFilterByType DEFLATE application/xml AddOutputFilterByType DEFLATE application/xhtml+xml AddOutputFilterByType DEFLATE application/x-font AddOutputFilterByType DEFLATE application/x-font-truetype AddOutputFilterByType DEFLATE application/x-font-ttf AddOutputFilterByType DEFLATE application/x-font-otf AddOutputFilterByType DEFLATE application/x-font-opentype AddOutputFilterByType DEFLATE application/vnd.ms-fontobject AddOutputFilterByType DEFLATE font/ttf AddOutputFilterByType DEFLATE font/otf AddOutputFilterByType DEFLATE font/opentype # For Olders Browsers Which Can't Handle Compression BrowserMatch ^Mozilla/4 gzip-only-text/html BrowserMatch ^Mozilla/4\.0[678] no-gzip BrowserMatch \bMSIE !no-gzip !gzip-only-text/html ## EXPIRES CACHING ##ExpiresActive On ExpiresByType image/jpg "access 1 year" ExpiresByType image/jpeg "access 1 year" ExpiresByType image/gif "access 1 year" ExpiresByType image/png "access 1 year" ExpiresByType text/css "access 1 month" ExpiresByType text/html "access 1 month" ExpiresByType application/pdf "access 1 month" ExpiresByType text/x-javascript "access 1 month" ExpiresByType application/x-shockwave-flash "access 1 month" ExpiresByType image/x-icon "access 1 year" ExpiresDefault "access 1 month" ## EXPIRES CACHING ##
Subscribe to:
Posts (Atom)