Mr saggu, Mr jatt , Jatt.fm ,dj punjab ,songs pk, pagal world , wap ,djjohal, vipkhan, mp3mad,Latest Punjabi , Bollywood , Hollywood , English Singletracks , Albums , films , Movies mp3 songs in 128 bitrate , 320 bitrate and very good quality music. We Also provide Punjabi Hindi English videos Mp4 HD 3gp Flv Avi and have Top 20 punjabi hindi engish mp3 songs free download.
Monday, 30 June 2014
Saturday, 28 June 2014
Sunday, 15 June 2014
Add Security to your PHP projects using .htaccess file
Making .htaccess file Very simple open any editor like notepad just file save as into .htaccess with in double quotations(".htacess"). You have to upload this file in to hosting root folder, my experience .htaccess file supports only Unix based servers. Download Sample .htaccess File Hide .php extension with URL Rewriting For example if we want to project like Twitter API URLs (Note: Twitter API Developed in Ruby on Rails) Add this following code in your .htaccess file
RewriteEngine on
RewriteRule ^(.*)\$ $1.php We can Rewrite index.php into index.html,index.asp,index.sri also Below code for index.php to index.html
RewriteEngine on
If you want .asp extension just replace html to aspRewriteRule ^(.*)\.html$ $1.php Redirecting www URL to non www URL If you type www.twitter.com in browser it will be redirected to twitter.com. Add this Following Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.srinivas.com RewriteRule (.*) http://srinivas.com/$1 [R=301,L] Rewriting 'site.com/profile.php?username=foxscan' to 'site.com/foxscan' My twitter profile http://twitter.com/foxscan its original link passing GET values (http://twitter.com/profile.php?username=foxscan) but this URL is ugly in browser address bar, For user friendly we can change like this. |
MAKE WINDOWS GENUINE
JUST OPEAN START THEN CLICK RUN.Type "regedit"(without quotes) and press enter.
follow this path:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WPAEvents
u'll find "OOBETimer" in the right side..
double click it..
and in value data
change the last part of first line.....
i dun care just change it.....
save it & close it.....
now opean RUN and type this widout quotes
"C:\WINDOWS\system32\oobe\msoobe.exe /a"
select the option telephone customer service now click next.. now u have a button at the bottom of ur screen "CHANGE PRODUCT KEY" click this... now u see the screen where u have to enter the key...
there u enter one of these:-
(1)T6T38-WJTK6-YVJQ7-YC6CQ-FW386
(2)V2C47-MK7JD-3R89F-D2KXW-VPK3J
(3)JG28K-H9Q7X-BH6W4-3PDCQ-6XBFJ
Open C:\Windows\System32\
Search for WgaTray.exe and Delete it.
C:\Windows\System32\dllcache\ and delete WgaTray.exe here also.
Next you have to modify your registry.
Press the Start Button > Run and type regedit and then press enter.
Go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Notify and delete the WGALOGON folder.
That's all you have to do, now you are WGA free. Just make sure you don't automatically install the WGA update again. Restart your computer to see if you did it correctly. The WGA logo should not appear on your login screen.
DISCLAIMER: We do not condone having pirated copies of Windows on your computer. You should have one CAL per computer. This is for educational purposes only.
follow this path:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WPAEvents
u'll find "OOBETimer" in the right side..
double click it..
and in value data
change the last part of first line.....
i dun care just change it.....
save it & close it.....
now opean RUN and type this widout quotes
"C:\WINDOWS\system32\oobe\msoobe.exe /a"
select the option telephone customer service now click next.. now u have a button at the bottom of ur screen "CHANGE PRODUCT KEY" click this... now u see the screen where u have to enter the key...
there u enter one of these:-
(1)T6T38-WJTK6-YVJQ7-YC6CQ-FW386
(2)V2C47-MK7JD-3R89F-D2KXW-VPK3J
(3)JG28K-H9Q7X-BH6W4-3PDCQ-6XBFJ
Open C:\Windows\System32\
Search for WgaTray.exe and Delete it.
C:\Windows\System32\dllcache\ and delete WgaTray.exe here also.
Next you have to modify your registry.
Press the Start Button > Run and type regedit and then press enter.
Go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Notify and delete the WGALOGON folder.
That's all you have to do, now you are WGA free. Just make sure you don't automatically install the WGA update again. Restart your computer to see if you did it correctly. The WGA logo should not appear on your login screen.
DISCLAIMER: We do not condone having pirated copies of Windows on your computer. You should have one CAL per computer. This is for educational purposes only.
Pagination with jQuery, MySQL and PHP
The tutorial contains three PHP files and two js files includes jQuery plugin.
-config.php (Database Configuration)
-pagination.php
-pagination_data.php
-jquery.js
-jquery_pagination.js
Download Script Live Preview
Database Table
CREATE TABLE messages
(
msg_id INT PRIMARY KEY AUTO_INCREMENT,
message TEXT
);
(
msg_id INT PRIMARY KEY AUTO_INCREMENT,
message TEXT
);
jquery_pagination.js
Contains javascript this script works like a data controller.
$(document).ready(function()
{
{
$("#loading").fadeIn(900,0);
$("#loading").html("<img src="bigLoader.gif" />");
}
{
$("#loading").fadeOut('slow');
};
.css({'color' : '#FF0084'}).css({'border' : 'none'});
Display_Load();
$("#content").load("pagination_data.php?page=1", Hide_Load());
Display_Load();
.css({'border' : 'solid #dddddd 1px'})
.css({'color' : '#0063DC'});
$(this)
.css({'color' : '#FF0084'})
.css({'border' : 'none'});
$("#content").load("pagination_data.php?page=" + pageNum, Hide_Load());
});
});
{
//Display Loading Image
function Display_Load(){
$("#loading").fadeIn(900,0);
$("#loading").html("<img src="bigLoader.gif" />");
}
//Hide Loading Image
function Hide_Load(){
$("#loading").fadeOut('slow');
};
//Default Starting Page Results
$("#pagination li:first").css({'color' : '#FF0084'}).css({'border' : 'none'});
Display_Load();
$("#content").load("pagination_data.php?page=1", Hide_Load());
//Pagination Click
$("#pagination li").click(function(){Display_Load();
//CSS Styles
$("#pagination li").css({'border' : 'solid #dddddd 1px'})
.css({'color' : '#0063DC'});
$(this)
.css({'color' : '#FF0084'})
.css({'border' : 'none'});
//Loading Data
var pageNum = this.id;$("#content").load("pagination_data.php?page=" + pageNum, Hide_Load());
});
});
config.php
You have to change hostname, username, password and databasename.
<?php
$mysql_hostname = "localhost";$mysql_user = "username";
$mysql_password = "password";
$mysql_database = "database";
$bd = mysql_connect($mysql_hostname, $mysql_user, $mysql_password)
or die("Opps some thing went wrong");
mysql_select_db($mysql_database, $bd)
or die("Opps some thing went wrong");
?>
pagination.php
User interface page.
<?php
include('config.php');$per_page = 9;
//Calculating no of pages
$sql = "select * from messages";
$result = mysql_query($sql);
$count = mysql_num_rows($result);
$pages = ceil($count/$per_page)
?>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/
libs/jquery/1.3.0/jquery.min.js"></script>
<script type="text/javascript" src="jquery_pagination.js"></script>
<div id="loading" ></div>
<div id="content" ></div>
<ul id="pagination">
<?php
//Pagination Numbers
for($i=1; $i<=$pages; $i++){
echo '<li id="'.$i.'">'.$i.'</li>';
}
?>
</ul>
pagination_data.php
Simple php script display data from the messages table.
<?php
include('config.php');$per_page = 9;
if($_GET)
{
$page=$_GET['page'];
}
$start = ($page-1)*$per_page;
$sql = "select * from messages order by msg_id limit $start,$per_page";
$result = mysql_query($sql);
?>
<table width="800px">
<?php
while($row = mysql_fetch_array($result)){
$msg_id=$row['msg_id'];
$message=$row['message'];
?>
<tr><td><?php echo $msg_id; ?></td>
<td><?php echo $message; ?></td>
</tr>
<?php
}
?>
</table>CSS Code
CSS code for page numbers.
#loading
{width: 100%;
position: absolute;
}
li
{list-style: none;
float: left;
margin-right: 16px;
padding:5px;
border:solid 1px #dddddd;
color:#0063DC;
}
li:hover
{color:#FF0084;
cursor: pointer;
}
Subscribe to:
Posts (Atom)