Make your website faster with Google tips

22nd November

Inside the Let’s make the web faster website, Google is sharing the tips & tutorials for better performing web pages like: HTTP Caching, PHP performance, Javascript optimization and more.

Besides the articles, It is possible to reach videos of speeches by several organizations on website performance.
Also, links to various tools for the issue provided & a large community discusses the subject continiously.


Easy Gallery 2

Uncategorized. 1 Comment

20th October

I recently have released a new version of Easy Gallery plugin.
In this version, I have added a continuous sliding animation regarding to many requests to add it.

My first version of this plugin located here: http://www.freelancer-id.com/easy-gallery/

$(document).ready(function (){
$(“#gallery”).egallery({
width:500,
height:230,
speed: 1000,
delay:4000,
easing:’easeInQuart’,
thumbs:’numbers’,
thumbClass:’tclass’,
aClass:’ac’
});
});

The new version has new option named as “animation”
animation: “” // takes 2 values => “scroll” (default) or “slide”

And now its published and working fine.

Enjoy it.


New and Easy Gallery for jQuery

Uncategorized. 1 Comment

1st August

In Thursday, July 29, I have published a new jQuery gallery plug-in named as Easy Gallery.
This gallery is easy to be used and has a simple code.

Not talking too much about it, i will provide you with all links available.
But let me tell you how does this gallery work:

The HTML code used for Easy Gallery as follow:

<div id=”gallery”>
<ul>
<li><img src=”image1.jpg” border=”0″ alt=”” /></li>
<li><img src=”image2.jpg” border=”0″ alt=”” /></li>
<li><img src=”image3.jpg” border=”0″ alt=”” /></li>
<li><img src=”image4.jpg” border=”0″ alt=”” /></li>
<li><img src=”image5.jpg” border=”0″ alt=”” /></li>
</ul>
</div>
<div id=”ssgThumbs”></div>


Apply a custom font to your website, Works on all Browsers

2nd June

For web developers and web designers who want to add their FONT to websites without using Standard Web Fonts and without making text as images.

Google has create a Google Font API for public use to give web developers and web designers the ability to use extra fonts on the web, not only the standard web fonts.


PHP image class (upload, resize, crop)

Uncategorized. 7 comments

21st March

 There is a lot of PHP classes for upload, resize and crop images. But I created this one for many reasons as mentioned below:

Ease of use.
Flexibility.
PHP version: 5 or later.
Can upload, resize and crop image.. All in one.

After knowing the reasons for making this class, let’s know how it works.


Must know to secure your web host

Uncategorized. No Comments

23rd December

I would like to talk about hacks and how to secure your code in 2 levels. The 2 levels are:

Code level.
Server (host) level.

The rist for not securing these two levels are:

Losing important data.
Losing your database.
New files and folders created on your server (hack).
updating your current files by adding maleware script to the end of files.

 

PHP level security:

The PHP level will prevent injections to SQL datbase.

So, it will secure you from losing data having problem with your database.The most thing you should know is: Don’t trust any data sent from client.So,for numeric posts (POST or GET) use: "(int)" before the variable. This will change the type of it to integer (if you need it like that). See this code:$id = (int)$_GET[‘id’];// OR$id = (int)$_POST[‘id’];

Also see the list of types below:

(int) cast to integer.
(bool) cast to boolean.
(float) cast to float.
(string) cast to string.
(array) cast to array.
(unset) cast … Read More »