top-image

LATEST ARTICLES

Click Here  To Learn Php In Less Than 30 Days

Learning to write PHP simple code should be fun and simple. PHP is one of the easiest and powerful language in the internet. It stands for PHP  Hypertext Preprocessor and is a server-side language. This means that the script is run on your web server, not on the user’s browser, so you do not need to worry about compatibility issues. PHP is relatively new (compared to other languages such as C, Perl (CGI) and Java) but has quickly become one of the most popular scripting languages on the internet. Another good thing about it is it’s an open-source language.

As mentioned earlier, PHP is a server-side scripting language. It means that, although your users will not need to install new software, you will need to have PHP installed on your web host server. It should be included as part of your package but if you don’t know if it is installed you can check and find it out using the sample code below. If you server does not support PHP you can ask them to install it for you since it is free to download and install. Along with the PHP you would need a server such as APACHE. Also take note that PHP could run in any platform such as windows or linux. MYSQL is optional though. But most PHP uses MYSQL as its database. It most cases if you would need PHP there are some packages that has all the components needed like linux, apache, mysql and php which stands for LAMP.

Writing PHP code is actually very simple. No need for any special software, except for a text editor (like Notepad in Windows) as simple as that or you can also download other php editor with some extra added features to it which is very helpful as a tool. Save and run the file on your browser and you have now your php code.

Let’s examine the sample code below.

<?
$var = “hi”;
echo “hello world”;
echo $var;

phpinfo();
?>

A PHP code is always enclosed with open and close tags ‘<?’ and ‘?>’. The next line we have a variable initialization of $var with ‘hi’ as a value. Unlike on other languages which you would need to declare the variable first before you can use it. In PHP you can use the variable right away without declaring it. And as you notice at the end of the 1st line we have ‘;’ semi-colon that indicates the end of the statement like on C Language.

Now let’s go to the next line. Here we have simply echo the string ‘hello world’ which will print it out or display on the browser. And after that line we have the variable $var initialize earlier which contains the value string ‘hi’ as being printed out the same as the previous line.

On the last line, we have the function phpinfo() which will print out the server information of php, apache, and mysql as mentioned earlier. So there you go as simple as the codes above you now have your php simple code. You just need to practice and try other codes with some use of functions and later you’ll find yourself creating more complex code useful for any purpose you may need.

Click Here  To Learn Php In Less Than 30 Days

Want to make some money online? Use PHP directory listing

Nowadays setting up a website is not enough, it needs to have visitors and to let people know that it exist in the internet world else it would be a useless site. In other words, it needs to be promoted to other people and one way of doing it is by submitting to directory listing sites. There are still lots of ways like using the social related sites such as facebook, twitter  or forum and techniques with regards to SEO.

So as you can see marketing a site is very important for its online existence.  A directory listing site is helpful and valuable especially if the service is offered for free and of course premium features comes with a special cost too.

There are actually lots of software available online for PHP directory listing. You just need to know which one to pick. Some are listed below:

  1. http://www.phplinkdirectory.com – It’s the most widely used directory script on the internet. It’s easy to install and rich in feature. It’s customizable, support for free and premium templates, uses latest technology and a dozen of widgets to choose from. It’s also seo friendly and can support payment gateway integration like paypal.
  1. http://www.hubdir – It is the most user-friendly link directory script on the web. It’s easy to install and with user-friendly interface it will get you up and running with few simple steps. It’s built in PHP and MYSQL, stable and fast.  Some of its powerful features are support for google analytics and adsense, HTML and XML sitemaps, control panel with CMS.
    1. http://www.esyndicat.com/ – It is a powerful web directory software with a large and highly customizable set of key features with standard compliant interface. It’s a full feature software that can be used as an addition to your existing site or a stand-alone platform.
  1. http://www.evoluted.net/ – It’s a directory listing script that uses php. It has highly configurable script which generates a well formed table, listing the contents for both main and sub-directories. It also has image tag associated with certain file types and the ability to preview images by generating thumbnails.  There are some limitations though:  It requires javascript and GD2 for thumbnail generation.
  1. http://www.easysearchdirectory.com – It’s an ecommerce directory software which is SEO friendly that helps enhance search engine rankings on major search engines.  It has built-in database for country, US zip code and currency. It uses the smarty template technology. Integrated with google map features. Easy online editing, admin features and a whole lot more. Visit their site for the complete list of the features.
  1. http://www.phpmydirectory.com – It is a leading  website portal solution. Not only applicable for directory listing but can also be used to create websites focused on classified, link indexing and more. It’s built using PHP and MYSQL. It’s packed with administrator, listing, user features. It has add-ons like reciprocal link checker, faq, discount and promotion codes. It is capable of third party integration such as maps, facebook, wordpress, joomla and most of all it can support payment gateways like paypal, 2checkout, clickbank, eway and many more. Just checkout their website for the complete list of their features.

Click Here  To Learn Php In Less Than 30 Days

The 5 different easy ways of creating PHP forum code

Simple and easy ways in creating your site using php forum code

Everyone is craving for information, lots and lots of information. With our generation today you can now readily access information by just browsing the internet. Lots of website offer free information for certain topic you’re looking for and some requires registration to share and post your own contribution to the community. Take for instance of Movie reviews forum site, it’s an online community for movie lovers which you can find lots of information regarding movie reviews, movie rating, coming soon, box office hit movies and a lot more.

Forum site is very helpful in building any kind of online community. Back in the day it would take you so long to create or be able to find one  that you can use right away, but as the technology progresses lots of PHP forum code are now available for download with easy steps installation and full of interesting features. Just a few clicks away and you’re up and running with your own forum community site.

Listed below are some of the popular PHP forum code you can find on the internet and feel free to browse their site for more information regarding their features. Some are for free and mostly are for sale but packed with lots of features efficient for big and professional sites.

  1. http://www.vbulletin.com – so far the most powerful community software available online. It has content publishing, security, search and more. With the years of experience on the field and great support they made to be the best forum software. There are lots of third party template you can download and use. Some of its features are it’s scalable, it can run on any machine that support PHP and MYSQL whether windows, mac, solaris or linux. It also have built-in applications like photo albums, calendar, event management, polls, blog.
  1. http://www.invisionpower.com – another great php forum code software. It provides seamless experience for users, the flexibility to pick and choose which application you need. The key features are unified searching, central user profiles, central administration, social  network integration and intrinsic SEO capabilities. It can be self-hosted or managed by them for you.
  1. http://www.phpbb.com – one good thing about this php forum code software is it’s for free. It’s one of the popular free forum code available. It has huge support group that provides help, resources, templates, mod. With its extensive database of user-created modifications and database styles, image packages for customization you can create a unique forum in minutes. It’s full of features while maintaining  efficiency and ease of use.
  1. http://www.simplemachines.org – another free php forum code. It’s also popular and easy to use. It’s elegant,  effective, powerful – simple as that. It is designed to provide all the features you need for a bulletin board while having absolute minimal impact on the resources of the server.
  1. http://bbpress.org – it’s a forum software with a twist from the creators of wordpress. It is focused on web standards, ease of integration, speed and ease of use. It’s as easy as download and install. The famouse 5 minute installation from wordpress

Click Here  To Learn Php In Less Than 30 Days

The static and dynamic method of creating PHP MENU

Menu is used as navigation for websites and it could be created into many different ways. It could be a static which is hard-coded in the html file or dynamically generated on the fly using PHP or css and javascript. It could also be displayed into different layouts just as a main menu wherein it doesn’t have any submenus or as a tree-type menu where the main menu contains children or submenus and the submenus can also contain another submenu and so on.

Menu can be written into different structure too. By placing it inside a table which was commonly done on earlier days or by using <ul><li> for unordered list. Using the latter will sometimes require css and javascript to display the desired output layout for the submenus and its corresponding functionality.

Below is an example on how the structures could be written. For the <ul> it could have the corresponding css and javascript for it to work perfectly. Aside from PHP this could also be done using flash but it won’t be that efficient as using PHP, css and javascript.

Ex:

<table>
<tr>
<td>Menu 1</td>
<td>Menu2</td>
<td>Menu3</td>
</tr>
</table>

<ul>
<li>Menu1</li>
<li>Menu2</li>
<li>Menu3</li>
</ul>

There are lots of codes available online that can create php menu. Either a PHP static menu or on the fly generated menu. Let’s take a look at some of them.

First let’s have the PHP static menu

  1. phpNav – created by  Paul Gareau. It generates a variety of static HTML navigation bars, menus and lists. It reads the menu definition from a text file, or it can be passed as a PHP array. The class structure of it consists of one class to contain the menu tree structure, and a set of separate classes that allow one to realize a variety of different HTML menu structures.
  2. phpTierMenu – made by Justin Koivisto is from PHPClasses and is one of the most popular. It presents an “expanded tree” hierarchical menu that has no collapse or expand functions.

Now, let’s take a look at PHP dynamic menu

  1. HTML_TreeMenu / HTML_TreeMenuXL – (a.k.a. TreeMenu and TreeMenuXL), created by Richard Heyes (Harald Radi is also credited in the source code). It uses PHP to generate the appropriate combination of JavaScript and HTML. It produces a collapsible vertical tree listing that resembles the Windows Explorer folder view. Expandable elements can be used as links, or they can be expanded. It is simple and elegant, and the code is highly readable.
  2. cjgMenu – created by Carlos Guerlloy of Argentina. Unfortunately it only works with IE! It includes an elegant demo and one of the few packages to actually provide some documentation. The basic model is like HTML_TreeMenu. It includes Javascript control and seems very fast over basic functions like expanding and collapsing branches.
  3. phpLayersMenu – created by Marco Pratesi. So far the most flexible among the menu codes. It supports menus that are either static or dynamic on the client (i.e. with or without JavaScript), and could be potentially an excellent feature. The major supported forms are static tree menus, vertical menus with DHTML slideouts, and horizontal menus with DHTML slideouts. It also has a documentation but largely describes the theory of operation and not how to use the code.

Click Here  To Learn Php In Less Than 30 Days

The efficient way of having PHP search script on your website to boost traffic

Today, having a search feature in your website is vital and handy for your users for it will add user experience for them. It would be easier for them to know more about the contents of your site, whether it is product related or just merely information.  It will help and guide them for things they wanted to know about your site by just typing the keywords in the search fields and result will be displayed accordingly. It could be just a simple PHP search script or as huge and complex as any other search engines like google.

Search method can be achieved either by using the MYSQL or PHP functions. You can create your own simple query for search feature by using MYSQL and mysql functions as well as using the PHP functions. There are also some PHP search scripts available for download online that can be installed in your website and ready to use. Some are offered for free and others for sale with a premium feature.

Let’s take a look at some of them:

  1. Google Internal Site Search script it’s for free and uses javascript. If you need a powerful internal search engine script that allows your users to search the content of your site then this is the one you need. This script uses google to enable comprehensive search on your site.
  1. Zoom Search Engine – Add search to your site! – It uses PHP. It enables web developers to easily add an industrial-strength custom search to their website. It’s easy to use that doesn’t require a complicated a server side setup procedures. It can also create search engines for intranet, CDS and DVDS. Another good thing feature is its multi-platform. It can run on PHP, ASP, Javascript or CGI and able to index and search variety of files types. The bad thing is it’s not for free.
  1. Sphider – It is written in PHP as well as it’s for free. It’s a lightweight web spider that uses MYSQL as its backend database.  It is fit for adding search functionality to small or medium sites. It also works great as a tool for site analysis – finding broken links, gathering statistics about the site etc.

4.     Anahoret PPC Search Engine – It is a PPC search engine which is powerful, easy-to-use search engine script. It is flexible, robust and very fast. It was designed and optimized to attain optimal performance using PHP, MySQL, XML. Some of its features are: It uses advanced template engine, easy language support, external XML and HTML listing sources, adult content filter, also support different payment system, keyword-based banner rotation system, affiliate and referral program, and country and IP filtration. Free installation and future updates.

5.     LightRod – is an open source improved reality server. In its simplest form, it takes a database of points with latitude/longitude, and a look for a request at a given latitude/longitude, and returns the points sorted by distance. It can easily create layers for Layer, use arbitrary database fields, and scale to any number of records.

6.     dSearchr – another code written in PHP. It is simple one file directory file searcher. It is highly customizable and very easy to incorporate in your website.

Click Here  To Learn Php In Less Than 30 Days

Understanding the different PHP search string functionality easily

As internet boomed in this generation, along with the search engine websites with its capability of searching website contents in an easy and fast manner. Not only search engine websites adopted the search functionality but even almost all websites wanted to have the ease of searching their own site contents whether a static or database driven contents for it adds a good factor for their own users.

With regards to PHP search string there are lots of functions available in the PHP library. You just need to check which one is appropriate for your own need. There are also some custom made codes made by other programmers which are also accessible in the internet.

Let’s examine some of the php search functions.

strpos – Use to find position of first occurrence of a string. It returns the numeric position of the first occurrence of needle in the haystack string as an integer. If needle is not found, it will return Boolean FALSE.

Syntax:

int strpos ( string $haystackmixed $needle [, int $offset = 0 ] )

Example: In the sample code below we have the $mystring as the variable which contains the string abc and $findme variable for the string or character we are looking for. These variables are being passed on the strpos function and the position of it as the result as an integer type is stored in $pos variable.

On the second part of the code we have the checking if we are able to find the position of the string we’re looking for. This function actually in some way is also helpful not only searching for the position of the string but also to identify if that string exist hence boolean false will be returned by the function if we’re not able to find the position of it.

<?php
$mystring = ’abc’;
$findme   = ’a';
$pos = strpos($mystring, $findme);

// Note our use of ===.  Simply == would not work as expected
// because the position of ’a' was the 0th (first) character.
if ($pos === false) {
echo ”The string ’$findme’ was not found in the string ’$mystring’”;
} else {
echo ”The string ’$findme’ was found in the string ’$mystring’”;
echo ” and exists at position $pos”;
}
?>

There are still lots of PHP string function like the strpos for different usage. This time let’s take a look at regular expression. Regular expression on the other hand is very efficient for search string problems because it provides a concise and flexible means for matching strings of text, such as particular characters, words, or patterns of characters. One of the functions that use regular expression is preg_match.

preg_ match — It performs a regular expression match. Searches subject for a match to the regular expression given in pattern. It returns the number of times pattern matches. That will be either 0 times (no match) or 1 time because preg_match() will stop searching after the first match. It returns FALSE if an error occurred.

Syntax: int preg_match ( string $pattern , string $subject [, array &$matches [, int $flags [, int $offset ]]] )

Example: On the sample code below the 1st argument is /php/i which means we would be searching for the word php and ‘i’ stands for case-insensitive in the 2nd argument which contains the whole string where we’re going to find the word ‘php’.

<?php
// The ”i” after the pattern delimiter indicates a case-insensitive search
if (preg_match(“/php/i”, ”PHP is the web scripting language of choice.”)) {
echo ”A match was found.”;
} else {
echo ”A match was not found.”;
}
?>

These are just actually some sample php string functions already available in the PHP library but there are still more depending on your need.

Click Here  To Learn Php In Less Than 30 Days

THE BENEFITS OF PHP TEMPLATING

Using php templating is like boning a fish. Making it neat, clean and easy to eat and digest.

Templating could have different meanings depending on the usage or field of expertise. Whatever it could be applied with, it makes work a lot easier and efficient. Let us take for instance having a template for your Monthly Reports. The format is already ready and just need to fill up the necessary details needed to it. In this way it makes work a lot faster and organized.

It could also be like skinning your cell phones to whatever design you want to. Nowadays this is so common in any other stuff especially on gadgets. And how about skinning a house or a car in a faster way just like clicking a mouse? Maybe that would be too cool if one day they’ll be able to create a way on how to do it too. J

Now let’s take another example in the field of web designing. Today, it’s so common for websites to have or to change different designs or layouts anytime they want to with just a few clicks of the mouse. It’s like dressing up your website to a theme suitable for the season. Most frameworks or CMS provides this capability and even just the simple sites as long as it’s being programmed or configured that way. Like for example worpdress, you can find a lot of templates available online that could be for free or for sale with added premium features with it that you can use in your site right away. You just need to download, install and activate it as the current theme and there you go, you have now a new design. That’s how easy, accessible and efficient it is. That is also called templating.

So how do they actually do it in terms of web development? There are actually two departments involving a web development aside from the marketing, content management, server administration and so on. But the web programmer and the web designer are actually the main key players of the game on the web development process.  On the earlier stage of the internet world, sometimes these two always collide. They find it hard for the two of them to work together in a website involving the design and the code itself since all of these things can be found on just one page or file. Moreover, one department would be waiting for the other department to finish their task on it before they could proceed.

And now that’s where templating comes in. And it plays a vital role on both sides. Since templating emerged on the web, it’s now easier for them to manage it. It’s now divided into two. Basing on the design and functionality, the design codes are now on a separate file where designer can work on it while the functionality codes are on the another file where programmers can do their thing. With some specific function calls these two will be merged or combined together to form the completed page. And that’s where the templating comes handy for both parties.

Click Here  To Learn Php In Less Than 30 Days

What are the advantages of PHPLIST?

phplist is the world’s most popular open source email campaign manager. There are actually lots of software for email campaign manager but phplist is for free, easy to install, easy to use and integrate with any website. They also have the hosted beta version wherein you don’t need to download and install anymore. They will do the configuration and everything for you and all you have to do is sit back and relax. It is sponsored by tincan.

Some of its interesting features are:

  1. It can be easily installed via fantastico or ftp upload or ssh.
  2. Its web interface lets you send and write messages, and manage phplist over the internet.
  3. It has the capability of persistent sending out messages from your webserver, even after you shut down your computer.
  4. It is a one-way email announcement delivery system. It is great for notifications, newsletters, and many other uses.
  5. No more duplicate messages. No ‘forgotten’ messages. It manages message delivery with the use of a message queue, to make sure that every subscriber receives the email message, and that no subscribers receive two copies at a time, even if they’re subscribed to more than one list!
  6. It has a Multiple Subscribe Pages that allow you to select a lot of different combinations of templates, languages, user attributes and lists.
  7. It has a Open/View/Click Tracking which notifies how many users received and opened your mail message. But this feature provides a minimum statistic as many email clients with privacy or security policies block images such gmail, thunderbird, and others. And it can track links and urls which the statistic is viewable by message, URL or subscriber.
  8. Another good feature is the completely customizable template and make site integration a breeze.
  9. You can now personalized every email message with the subscribers name, country and other attributes by using the subscriber attributes in message content.

10.  Like any other email client it’s also capable of HTML email messages. Subscribers can choose either text, html or both. And it also have the HTML editor that allows to edit html messages using the fckeditor or the tinymce.

11.  It’s also available in many different languages such as  English, French, Spanish, german, and still on progress with other translation for other languages.

12.  It has the Multiple List Administrators which the super-admin can designate lists to List Managers, who can manage their users and lists. The super-admin user can ‘prepare’ messages that can be sent out by list managers to their lists. And it also have a great user management tools that can manage and maintain large database of subscribers.

13.  Its Advanced Bounce handling feature lets you teach phplist to identify between permanent and temporary message-delivery errors. You can define automated actions on receipt of bounce messages with regards to matches with your regular expressions.

14.  It’s also capable of rss feeds which can be automatically sent to mailing list on daily, weekly or monthly basis.

15.  PDF messages can be automatically generated and sent out as attachments to make sure that your message is viewed the way it was designed by all your subscribers, regardless of their email message reader.

There are still lots of features bundled with the phplist  you just need to check them out on their website for more detailed information.

Twitter API: Up and Running: Learn How to Build Applications with the Twitter API

41ytUvSNF7L. SL160  Twitter API: Up and Running: Learn How to Build Applications with the Twitter API

This groundbreaking book provides you with the skills and resources necessary to build web applications for Twitter. Perfect for new and casual programmers intrigued by the world of microblogging, Twitter API: Up and Running carefully explains how each part of Twitter’s API works, with detailed examples that show you how to assemble those building blocks into practical and fun web applications. You’ll also get a complete look at Twitter culture and learn how it has inspired programmers to build

buynow big Twitter API: Up and Running: Learn How to Build Applications with the Twitter API

List Price: $ 27.99

Price: $ 27.99

Drawing from some of the most pivotal points in his life, Steve Jobs, chief executive officer and co-founder of Apple Computer and of Pixar Animation Studios, urged graduates to pursue their dreams and see the opportunities in life’s setbacks — including death itself — at the university’s 114th Commencement on June 12, 2005. Transcript of Steve Jobs’ address: news-service.stanford.edu Stanford University channel on YouTube: www.youtube.com
Video Rating: 4 / 5

Related How To Php Products

Page 1 of 48:1 2 3 4 »Last »
bottom-img