83 PHP Scripts
1) PHP Link Listing Script
2) PHP MySQL Yahoo Style Link Directory/Search Engine:
3) PHP MySQL Website Stats Business:
4) Automated Form Submission Prevention Script
5) A Sophisticated PHP Ecommerce Site
6) The Well Known osCommerce PHP Shopping Cart!
7) Your Own FTP Program Written In PHP:
8) A FAQ Generator PHP Script:
9) Two Very Nice PHP Toplists Scripts!
10) The Second Is A VERY Nicely Designed PHP Topsite Script:
11) Two Auction Scripts 1 PHP, And 1 Perl/CGI!
12) The Second Is Another Popular CGI Auction Script!
13) Two Affiliate Scripts Both Written In PHP!
14) The Second Affiliate Script Is A More Sophisticated Script:
15) POP-UP Creator:
16) PHP Authentication Script NICE!:
17) The Perpetual Traffic Generator:
18) A PHP Links Exchange Website Script:
19) Two ClickBank Scripts
20) The Second ClickBank Script Is The Instant Site Maker:
21) A "Suggest My Site" Script
22) A PHP Script For Building A Web Ring:
23) A PayPal Store Shopping Cart:
24) PHP Form To Email Script SECURE!:
25) A Online MultiPlayer Chess Script
26) A Super Easy Administration Program
27) A Sharable Web-Based Address Book Script
28) A News Publishing Script
29) A "Users Online" Script
30) Awesome File Transfer Script
31) Affiliate Banner Rotation Script
32) Simply AWESOME Dating Website Script
33) Simple yet Powerful Download Counter Script!
34) Another "Users Online" Script!
35) Text based counter written in PHP
36) A FAQ manager written in PHP and MySQL
37) A Sports League, Fixture and Prediction Management Script written in PHP and MySQL!
38) A PHP Whois Lookup Script!
39) HOT PHP Visitor Logging Script!
40) Awesome LiveHelp Script!
41) PHP & MySQL Content Management System
42) An Electronic Reminder Script
43) Hot Mailing List Script!
44) Web-based Image Management System!
45) Web-based POP Email Client!
46) Hot Fully Featured Web Portal System
47) Nice FFA Link's Page Script
48) Highly Advanced Guestbook Script
49) Powerful Portal with Content Management
50) PHP Online Classifieds Script
51) Fully Featured Web Event Calendar
52) A PHP Bookmarks/Favorites Script
53) Client Invoicing Script (HOT)
54) ICQ Pager Script
55) Frequently Asked Questions Management Script
56) ClickBank "Thank You" Page Protector Script
57) MySQL Database Backup Perl Script
58) CGI-Based Autoresponder Script
59) Fully Featured PHP Message Boards Script
60 PHP "Submit-A-Link" Style Script
61) USENET News Client
62) PHP Image to ASCII Generator
63) MySQL-Based Office Intranet Suite
64) Another PHP Web FTP Program
65) PHP Based Image Watermarking Script
66) Nice Looking PHP-based eCard Script/Website
67) A Simple Document Management System
68) PHP-based Instant Photo Gallery Script
69) Anchor Tag Creator Script
70) CGI Customer Tracking System Script
71) Advanced Photo/Image Gallery Script
72) Awesome PHP-Based Chatroom Script
73) PHP Counter Hosting Script/Website
74) Perl Visitor Welcome Script [NEWer]
75) Website Indexing and Searching Script [NEWer]
76) PHP-Based Help Desk Script [NEWer]
77) Complete PHP Bug Tracking Script
78) Document Management System
79) Banner Management and Tracking System
80) Web Form Generator Script
81) Directory Indexer Written in PHP
82) Web-based Reservation System
83) PHP Online Project Management Script
Download Link: http://rapidshare.com/files/149466029/etps.rar
For checking all checkboxes in a form using jquery
$('.check-all').click(
function(){
$(this).parent().parent().parent().parent().find("input[type='checkbox']").attr('checked', $(this).is(':checked'));
}
)
create table in php with mysql
<?php
$host='localhost';
$user_name='root';
$password='';
@$con = mysql_connect("$host","$user_name","$password");
if ($con)
{echo '<br>host coonected<br>';}
else
{
die('Could not connect ');
}
?>
creation_table.php :
<?php
require 'connection.inc.php';
if (mysql_select_db('test'))
echo '<br>database selected<br>';
if(mysql_query("create table test(sno varchar(3),name varchar(15))",$con))
{
echo "<br>table created<br>";
}
else
{
echo '<br><br>table not created :'.mysql_error();
}
mysql_close($con);
?>
run " creation_table.php"
output :
host coonected
database selected
table created
Upload the image to server
class UPLOAD
{
var $directory_name;
var $max_filesize;
var $error;
var $file_name;
var $full_name;
var $file_size;
var $file_type;
var $check_file_type;
var $thumb_name;
var $tmp_name;
function set_directory($dir_name = ".")
{
$this->directory_name = $dir_name;
}
function set_max_size($max_file = 3000000)
{
$this->max_filesize = $max_file;
}
function check_for_directory()
{
if (!file_exists($this->directory_name))
{
mkdir($this->directory_name,0777);
}
@chmod($this->directory_name,0777);
}
function error()
{
return $this->error;
}
function set_file_size($file_size)
{
$this->file_size = $file_size;
}
function set_file_type($file_type)
{
$this->file_type = $file_type;
}
function get_file_type()
{
return $this->file_type;
}
function set_temp_name($temp_name)
{
$this->tmp_name = $temp_name;
}
function set_file_name($file)
{
$this->file_name = $file;
$this->full_name = $this->directory_name."/".$file;
}
/*
* @PARAMS :
* $uploaddir : Directory Name in which uploaded file is placed
* $name : file input type field name
* $rename : you may pass string or boolean
* true : rename the file if it already exists and returns the renamed file name.
* String : rename the file to given string.
* $replace =true : replace the file if it is already existing
* $file_max_size : file size in bytes. 0 for default
* $check_type : checks file type exp ."(jpg|gif|jpeg)"
*
* Example UPLOAD::upload_file("temp","file",true,true,0,"jpg|jpeg|bmp|gif")
*
* return : On success it will return file name else return (boolean)false
*/
function upload_file($uploaddir,$name,$rename=true,$replace=false,$file_max_size=0,$check_type="")
{
$this->set_file_type($_FILES[$name]['type']);
$this->set_file_size($_FILES[$name]['size']);
$this->error=$_FILES[$name]['error'];
$this->set_temp_name($_FILES[$name]['tmp_name']);
$this->set_max_size($file_max_size);
$this->set_directory($uploaddir);
$this->check_for_directory();
$this->set_file_name(str_replace(' ','_',$_FILES[$name]['name']));
if(!is_uploaded_file($this->tmp_name))
$this->error = "File ".$this->tmp_name." is not uploaded correctly.";
if(empty($this->file_name))
$this->error = "File is not uploaded correctly.";
if($this->error!="")
return false;
if(!empty($check_type))
{
if(!eregi("\.($check_type)$",$this->file_name))
{
$this->error="File type error : Not a valid file";
return false;
}
}
if(!is_bool($rename)&&!empty($rename))
{
if(preg_match("/\..*+$/",$this->file_name,$matches))
$this->set_file_name($rename.$matches[0]);
}
elseif($rename && file_exists($this->full_name))
{
if(preg_match("/\..*+$/",$this->file_name,$matches))
$this->set_file_name(substr_replace($this->file_name,"_".rand(0, rand(0,99)),-strlen($matches[0]),0));
}
if(file_exists($this->full_name))
{
if($replace)
@unlink($this->full_name);
else
{
$this->error="File error : File already exists";
return false;
}
}
$this->start_upload();
if($this->error!="")
return false;
else
return $this->file_name;
}
function start_upload()
{
if(!isset($this->file_name))
$this->error = "You must define filename!";
if ($this->file_size <= 0)
$this->error = "File size error (0): $this->file_size Bytes
";
if ($this->file_size > $this->max_filesize && $this->max_filesize!=0)
$this->error = "File size error (1): $this->file_size Bytes
";
if ($this->error=="")
{
$destination=$this->full_name;
if (!@move_uploaded_file ($this->tmp_name,$destination))
$this->error = "Impossible to copy ".$this->file_name." from $userfile to destination directory.";
}
}
}
For getting the files and folders in a directory
$site_files = directoryToArray("path to directory",TRUE);
function directoryToArray($directory, $recursive) {
$array_items = array();
if ($handle = opendir($directory)) {
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != "..") {
if (is_dir($directory. "/" . $file)) {
if($recursive) {
$array_items = array_merge($array_items,directoryToArray($directory. "/" . $file, $recursive));
}
$file = $directory . "/" . $file;
$array_items[] = preg_replace("/\/\//si", "/", $file);
} else {
$file = $directory . "/" . $file;
$array_items[] = preg_replace("/\/\//si", "/", $file);
}
}
}
closedir($handle);
}
return $array_items;
}