Chinaunix首页 | 论坛 | 博客
  • 博客访问: 592632
  • 博文数量: 207
  • 博客积分: 10128
  • 博客等级: 上将
  • 技术积分: 2440
  • 用 户 组: 普通用户
  • 注册时间: 2004-10-10 21:40
文章分类

全部博文(207)

文章存档

2009年(200)

2008年(7)

我的朋友

分类: 系统运维

2009-04-16 22:25:49

If your are an web designer or developer pretty sure you know or heard about PHP. Just as a refresher, is a server-side HTML embedded scripting language, which designed for producing dynamic web pages. It generally runs on a web server, taking PHP code as its input and creating web pages as output . Some PHP script requires general knowledge or Math and and logic. In this post, you will find 30 PHP tutorial and techniques that are not too complex and different. You can easily learn this techniques and implement them for your next project.

1. Random Header Image

random_headers

Using this simple PHP code you can have Random headers for you HTML website and Wordpress site too. If you are using wordpress just paste the code inside your header.php file. This is the easiest way there is . You can also check out this alternate method

1.<img src="http://path_to_images/header_<;?php echo(rand(1,5)); ?>.jpg"

twitter1

Showing your latest tweet is the new Web Trend. If you want show your latest post use this the following  code to show your most recent latest tweet.

You can this to acquire the same functionality

quote

If your some one enjoys nice quotes you use these code display  your favorite quotes on your site

If you are giving away prizes on your site, need a random generator for to pick a winner you can  use this technique to create your own script. . Here is of the script working.

php_colors

This article describes how to separate presentation and content by referring to colors using abstract names such as base and highlight,automatically generate a color gradient from a single base color, automatically adjust the contrast of foreground colors so they can viewed on top of your background colors.

subscribe

Would you like to show how many Subscribers you have like does?This tutorial will show you how to display your Feedburner feed count as a plain text.

php-ajax

php_short_url

If you thought you need be a genius to create a URL Shortener Service think again. This tutorial will show you how create your own URL Shorten site.

dynamic-_thumbnamils

In this screencast you will learn how to upload files and then have PHP dynamically create a thumbnail.

Php Message Board

Follow this tutorial and you’ll learn how to create a mini message board in PHP and MySQL.

password

Some website offers  random password generation when you register. This tutorial will walk you through a script that generates a random password to a given length and you can create your own too.

contact-form

When you need user send feedback to your email you can usecontact form. In this tutorial you’ll learn how to create contact form with php script. If you are looking for something already made you can use this .

check_user_name

In this post, you can learn how to make a fancy username availability checking in ajax and php using jquery

google_here

15. PHP components: Autosuggest

suggest

A ready to use, to implement a search form with an autosuggest feature using PHP and MySQL.

16. Easy PDF Generation in PHP

pdf

Ever wanted to generate PDF files in your web application? You could let your users download pages in PDF format, generate PDF reports to be distributed in your organisation, or just get better control over how your pages look when printed. In this tutorial, we’ll work through building a simple page and saving it as a PDF file.

backup

Backing up your database is really important . I have not use get started with the help of this tutorial.

rss_php

If your site is not run by CMS and you don’t want to ,  Create your own feed without hassle. This tutorial explains is detail on how to create your own feed.

visitor

This tutorial simply explanis how to simply show how many users are online on your site.

redirect

Lets say you moved your site to a new domain and you don’t want to lose your readers. Simple redirect the the visitors using the following code.

1.
2.Header( "HTTP/1.1 301 Moved Permanently" );
3.Header( "Location: " );
4.?>

css_variable

This technique allows you to use css variables just like other variables in many other languages.

22. Create a Countdown Using PHP

countdown

Are you lunching a new a site or have an event ? Create a simple  Coundown clock using PHP Technique.

pagination

What if you have a table with a thousand rows, and you want to allow the user to browse through the entire table.

hex_rgb

This post explains how to create a HEX to RGB and vice versa script.

guestbook

tag-cloud

This tutorial will show you how to create your own tag cloud for your website.

27. Creating an Image Gallery with PHP

hover_box

This tutorial focus on the PHP sccript that enhances features the  original CSS Hoverbox. This PHP script  fills the Hoverbox by reading the Image filenames from the Image folder and inserting them into the HTML.

If you are looking for even simpler PHP image gallery  this tutorial show how to create a really simple gallery Using PHP

poll

Forgot about installing a script, just get simple feedback from your readers, roll out your own Poll using this tutorial. You can also look at

29. Create a Calendar Using PHP

calendar

Do you need show a calendar on your site? This tutorial will show you how to render a calendar for the current month using PHP and HTML.

php_cheat

This is not a tutorial,but It is something necessary for every web designer and developer. Download this PHP Cheat sheet you will saving yourself a lot time when working on project.

If you are interested in more..

阅读(1031) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~