setting to see .htaccess file in cuteFTP if you not able to see .htaccess file in cuteFTP

how to show .htaccess file in cuteFTP or any other FTP software, most of the PHP Programmer use CuteFTP or FileZilla. some times we are not able to see the .htaccess file. recently i face this issue and then i think that .htaccess file not uploaded on the server. so i try to upload .htaccess file again but its asking me to overwrite the existing file. so i knew that there is already .htaccess file on the server but we are not able to see it on the FTP software. After some research i knew the setting of the cuteFTP. there is one setting we have to do on the CuteFTP software and its really easy. you have to go in action tab were you find the Filter Button, when you click on that its open one popup window where you can see the ‘Enable Server Side Filtering(Server Applied Filters)’ checkbox, you have to tick that and write -a in the text box which will appear when you checked the check box.

Thats it, now you can see the .htaccess file in your FTP server.

database optimization and repair database if your database is corrupted database

How to optimize database?
Database Optimization
Repair Database if your database is corrupted

Database optimization is required to increase the speed of our application, however database optimization is not easy and we have to careful when we optimize any database.

if you are using the wordpress for your web-site then its really easy to optimize your wordpress database. as you know that wordpress is open source and there is lots of plugin which we need to install to get the functionality. same way there is one plugin named ‘Automatic Database Optimizing’ which you need to install and your database optimization will be done very quick and with accuracy.

Automatic Database Optimizing plugins also repair your database periodically, you just need to insert one line code in your wp-config.php which is located where you install wordpress blog. please insert below code at the end of the wp-config.php file.

if you forgot this and your database is corrupted then you can run the code manually as the file is located at /wp-admin/maint/repair.php. so if your site name is then you need to run the code like

I Hope this will helpful to you.

remove first li element or append li element in ul li

How to remove first element from ul li options

When we are working with the <ul> and <li> then some time we need to remove the first element or we need to insert the <li> element in the current <ul> <li> list. some time you think that its a big job but actually its really very easy using jQuery. below is the option where you can insert the new <li> element and when you insert new <li> element then its remove the first <li> element, this way its maintain the current number of <li> elements.

Code 1
<div id="part2" class="content_flash_area" style="width:580px; height:518px; overflow-y: scroll;overflow-x:hidden;">
  <li><a href="">PHP Freelancer</a></li>
  <li><a href="">PHP Freelancer India</a></li>
  <li><a href="">Freelance PHP Developer</a></li>
  <li><a href="">PHP Freelance Programmer</a></li>
  <li><a href="">PHP Freelance Developer</a></li>
  <li><a href="">PHP Freelancer USA</a></li>
  <li><a href="">PHP Freelancer UK</a></li>
  <li><a href="">PHP Freelancer Australia</a></li>
  <li><a href="">Wordpress Freelancer</a></li>
  <li><a href="">Freelance PHP Developer</a></li>
Code 2
<script type="text/javascript">
function ChangeData()
    $("#part2 ul").append("<li><a href="">Wordpress Freelancer India</a></li>");			
    var counter = $("#part2 ul li").size();
  	 $('#part2 ul li:first').remove();

Here, Code 1 is your div where you set up the <ul> and <li> elements. while in code 2 its show you how to insert new <li> elements, if you see then <li><a href=””>Wordpress Freelancer India</a></li> is added in the append function which will insert new <li> after last <li> element.

if you need to count the <li> elements then its also simple, you can see that i count the elements and if its more then 10 elements then remove the first elements. some time work is very simple but we make it complicated.

how to insert facebook comments in our webpage

Place comments section in your web-page same like facebook comments section
facebook comments plugins for our site

Recently i am working on the custom php projects for my client and he need to place facebook comment section in all web page. social networking site facebook provide the plugin through which we can place the same comments section in our own site, its looks and work same as we see on the facebook wall, for each URL we can place the comments section in our site. its also provide the width and height option which is valuable for custom programming. you can set facebook comments section width and facebook comment section height as per your requirement. Let me clear you guys that the height will not come in the pixel but its come in the number of comments we want to show. Below is the code which you need to set in your web-page.

Code 1
<div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); = id;
  js.src = "//";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
Code 2
<div data-href="" data-num-posts="10" data-width="640"></div>

Here, Code 1 is common for all the pages which include the java script code and no need see anything just place it below thetag

In Code 2, data-href is the Page Link of your web-page where you want to place comment section and you need to set number in data-num-posts which will shows number of comments. I Hope this post make your work simpler. if you have any issue then you can contact php freelancer