Top Rated Scripts | PHP | Tutorials & Tips
Variables in PHP
posted byanitainIntroduction to PHP
Variables are nothing but identifiers to the memory location to store data. We can create any number of varibles. In PHP all the variables begin with a dollar sign "$" and the value can be assignes using the "=" operator as shown below: Another important thing in PHP is that all the statements must end with a semicolon ";". In PHP we needn't have to specify the variable type, as it takes the data type of the assigned value. From the above example we understand that '$Name' is of Data type String and '$Age' is of type Numeric.
Reviews0
PriceFree
Views2277
Dynamic Descriptions for Search Results
How to serve up dynamic descriptions for your search results, display the text in front of and after the user's search query and even highlight the words they are searching for.
This makes sure your visitors see the word(s) they are searching for and can see the context in which their search term is being used on a given page. Now they can properly determine whether any of your search results are relevant to what they are looking for and you are not sending them on a wild goose chase through your website, or even worse, scaring them off completely.
Reviews0
PriceFree
Views832
Using cURL Within PHP
posted byStevoTVRinWeb Fetching
PHP includes an easy to use interface for the cURL library. This means you can easily communicate with other servers using a variety of protocols. It is commonly used to access web service APIs such as Twitter. This tutorial will explain the basics and show some usage examples.
Reviews0
PriceFree
Views1041
Parse html with preg_match_all
posted byolaf2inWeb Fetching
For the most of the PHP scripter which are using preg_match or preg_replace frequently is the function preg_match_all a smaller advantage, but for all others it�s maybe hard to understand. The biggest difference between preg_match_all and the regular preg_match is that all matched values are stored inside a multi-dimensional array to store an unlimited number of matches.
Reviews0
PriceFree
Views3314
SmartWebby's Introduction to PHP
posted byanitainIntroduction to PHP
PHP has become a more popular technology for web programming in the recent years due to its open source technology. This means that it is free to use and is compatible with almost any server, say Windows, Linux/Unix and Apache servers. Though it is an open source technology, it has many advanced features included in it and is now capable of handling almost any issue related to the internet. PHP stands for "PHP Hypertext Preprocessor". PHP is a server-side scripting language. This means that a PHP page is processed on a Web server by a PHP script engine. When the client makes a request for any page, the request is sent to the server, the server locates the requested page and executes the PHP code if any and the result is sent to the browser (client) in the form of HTML. The browser then compiles the HTML to display the output.
Reviews1
PriceFree
Views1805
PHP Thumbnail Generation Tutorial
posted bystef686inImage Manipulation
This tutorial focuses on a thumbnail generation script. Rather than generating a smaller representation of the image, it cuts out a section of the photograph to create an obscure snapshot of the photo itself. The thumbnail's size is variable also, so the script be used across different sites to create different sized thumbnails where needed.
Reviews1
PriceFree
Views2375
Fetch and Display Tweets in a Web Page
posted byJamieHurstinWeb Fetching
This tutorial introduces some OOP concepts in PHP, and explains how to access and download tweets from a protected or public Twitter account, and how to create a quick-n-dirty cache for holding these tweets and protecting against the Twitter API limit. Includes sample code and an example implementation.
Reviews0
PriceFree
Views942
PHP file read howto
posted byphpf1inFile Manipulation
Reading from file is a general task in PHP. This article tries to summarize how to use PHP file read possibilities.
Reviews0
PriceFree
Views765
Image Creation with PHP
posted bybradinImage Manipulation
With PHP you can create images from pure code. Throughout five sections, this tutorial shows how it's done. Topics include: Create the Ellipse, Modify an Existing Image, and more.
Reviews0
PriceFree
Views4528
Creating Your Own Log Files
posted bymattiasinWeb Traffic Analysis
Don't have access to your server logfile? Here, you will find how to create your own logfile using PHP. It is basically a small PHP script that extracted all the appropriate environment variables, put them together as a Common Logfile Format entry and write it to a file.
Reviews0
PriceFree
Views4877
Logging With PHP3
posted bytiminWeb Traffic Analysis
This one page tutorial show you how to use PHP to display your site traffic statistics on the fly at any time. Along with its supplied PHP script, you will learn how to get access to your statistics that are continually updated, and that simultaneously support multiple sites, and multiple actions (page view, ad click, click-in, click-out, etc).
Reviews0
PriceFree
Views4889
Templates - why and how to use them in PHP3
posted byschumanninContent Management
This tutorial shows you how to create a template-based Web site using FastTemplate class by <a href=http://www.thewebmasters.net/php/>CDI</a>. By using FastTemplate you can change the look of your entire web site in seconds, use abstract programming without HTML, and your Webpage designer does not need to take care of all that "fuzzy" code.
Reviews0
PriceFree
Views4680
Slapping together a search engine
ht://dig will take care of indexing and searching your html pages, but if you have very few html pages, and must of your "content" resides in BLOBs in your database. You can't do anything useful using a like searchword query, it just isn't coming back relevant. Here, you will find a way to get around this problem.
Reviews0
PriceFree
Views3936
Mathematical Averages In PHP
posted bywebmasterinMiscellaneous
Shows how to calculate an average of ratings example, given the accumulated total of all ratings and the total number of votes.
Reviews0
PriceFree
Views2474
Using Forms With PHP
posted bywebmasterinForm Processing
This tutotial introduces how to use forms with PHP. Demonstrates how PHP passes information from a form. Also explains security checking using environment variables.
Reviews0
PriceFree
Views8862
Changing Background Colors Based On Day Of Week
posted bywebmasterinContent Management
Explains how to change your Web page background based on date in two ways: using if elseif and else statement, and using array.
Reviews0
PriceFree
Views3070
Inserting Dates
posted bywebmasterinDate & Time
This basic tutorial shows four different ways of displaying date and time using PHP functions on your Web page.
Reviews0
PriceFree
Views8411
Configuring Windows 98 for Local PHP Development
posted byhboutwelinInstalling PHP
This is documentation for installing Apache 1.3.9, PHP 3.011, Perl 5.00502 and MySQL 3.21.29, but should work with ANY recent (or more recent) versions of this software. It also includes links for all the required modules and programs.
Reviews0
PriceFree
Views4864
PHP-browserdetecting script
posted bydan.segolsoninContent Management
This tutorial explains how to identify IE4+ or NS4+ on a windows 32 bit platform (all else is "OtherBrowser") and include different html Web pages for different browser types using PHP.
Reviews0
PriceFree
Views3154
PHP Debugging with Class
posted byphilinDevelopment
This article talks about a technique for debugging CGI programs written with the PHP scripting language. Topics include: Creating the Debug Class, Testing the Debug Class, Using the Debug Class, Production Debugging, and more.
Reviews0
PriceFree
Views1967
