Latest news

How to Give All File Permission / folder permission recursively in ubuntu(chmod command)

Ubuntu ooperating system(os) gives more importance to security. So all types operations need root permissions. Two ways give permissions in Ubuntu. one ways is to right click on on file/folder and edit permissions. You should be admin to do this. The second way is through terminal. command: sudo chmod 777 pathtofile/folder Eg :sudo chmod -R 777 /var/www/smarttips/ sudo chmod -R ...

Read More »

How to get root access in ubuntu

Linux is a opensource platform. Most popular linux based operating system is ubuntu. The latest version of ubuntu is choose Ubuntu 12.10. The ubuntu 12.10 version contains latest features but it has long term support. The stable and LTS one is Ubuntu 12.O4 LTS.Ubuntu giving more preference to its secuirity so all root access is password protected. The command for ...

Read More »

IP Ban using htaccess

Use the following code in .htacces file. Then all the request from that ip will be denied. This will helps to protect the website from particular ip attack. ## USER IP BANNING <Limit GET POST> order allow,deny deny from 192.168.1.0 allow from all </Limit>

Read More »

Password protection with htaccess

On developing stage of website developers can protect their website access with .htaccess password. Steps: First create a .htaccess file then at the end of file add the following lines AuthName “Restricted Area” AuthType Basic AuthUserFile /home/smartips/.htpasswd AuthGroupFile /dev/null require valid-user 2. create a .htpasswd file and give username and password smarttips:XsP89zmAUibSw Now user Website can only access the authorized ...

Read More »

limit the number of characters in a string php

String functions are have good role in php programming. Some times the php developer wants to limit the number of characters. In certain situations have one function. It is very useful and easy to apply PHP Function is Syntax: substr(string, <start position>,<end position>) Eg: $string=’I am a web developer”; substr($string,0,6); output: I am a

Read More »

extract date from datetime in php

PHP is a object oriented programming language for website building. PHP has number of in-built of functions to do different tasks .one important function is date.We can use date php function in different ways. Sometimes date from the back-end as timestamps. It means contains both date and time. some situations only need date part so use the following code. $timewithdate ...

Read More »

How to get form values by serializeArray() jQuery function

The following jquery script can use for get form input values <script type=”text/javascript”>// <![CDATA[ //function to get form values function getformValues() { var fields = $(“:input”).serializeArray(); $(“#smarttips-div”).empty(); jQuery.each(fields, function(i, field){ $(“#smarttips-div”).append(field.value + ” “); }); } //call function to get form values getformValues(); </script>

Read More »

Check PAGE RANK (google page rank) of Websites or website pages

The developers and users are interested to know the page rank of their websites or web pages . Online tools are available to check the ranking of webpages.Can’t easily ranked in Google by hosting the website. After hosting requires continuous works for better results because Google keeps standards for ranking a website. This page ranking approach helps to maintain the standards regarding website development. One of ...

Read More »