Showing posts with label PHP. Show all posts
Showing posts with label PHP. Show all posts

Sunday, March 16, 2008

Simple Solution for Php Includes - IFrames

I have recently created my first Php program. I wanted to share with others some of the problems that I encountered, and how I finally overcame these obstacles.

My Reason for needing a Php Include
To start, my most recent website features a free classified advertising solution, a modified version of PhpBB stripped to function as an Article Bulletin Board (No replying), and a link directory. The business model of my Website offers free Classified Advertising, but charges a small fee for enhanced advertisements (Featured, Bolded, and Better Placement). The Classifieds were purchased from a developer, so I had little experience with the application. The link directory was a free resource of an old program that I modernized a bit. I choose the old link directory because the links are clean. They are not replaced with coding to count outbound traffic. I figured this would increase the value of links, to sites who exchanged links with me.

To increase revenue on the new site, I realized that I needed to increase the value of, “Featured Advertisements”. To do this I wanted to randomly rotate featured advertisements, from the classifieds, across my Bulletin Board and Link Directory. Bare in mind, all three are run from a unique table, and I wanted to leave it that way. In addition, I had little experience with the development for all three applications.

I started reading tutorials and utilizing Forums to create a Php program for external pages on the site. The program would pull a random featured ad from the classified table. This program only took me about 32 hours to create, while performing research. I didn't intend to get into the schematics of the program with this post, so forgive me if you are looking for a Random generator. But I would be more than happy to share my code upon request.

The code I created was simple, it worked just the way I wanted, but I ran into one cumbersome obstacle; how do I implement this easily across two unique table driven applications? The answer was to use a Php Include.

I started reading tutorials on, "Php includes and functions and classes". I realized quickly that this was a bit more confusing than creating the actual coding. In addition, I ran into parsing errors if I included the new coding in only one application.

My solution to using the, "Include ()," Php function.

I found that very few people were willing to provide any feedback for such a problem, even in the most resourceful forums for Php Coding and information resources. I fumbled with the coding for over 72 hours. I thought this was a bit ridiculous, as the code itself took less time to create.

I finally came across a helpful solution that may prove beneficial, if you are in the same situation with Php Includes. The code was uploaded onto my server as a file (something.php). I removed the standard, "Php Include ()," function from all links and the PhpBB coding. I then called the Php file (page) using an Iframe tag, on pages I wanted it to appear. This proved to be a successful replacement for the Php Include.

Search Engine Results Using Iframe for Php Include
I waited until Google came around to see how the Iframe affected my sites search rankings. Finally, the other day this happened. The conclusion, my search rankings still increased due to recent link exchanges. The code is working to my needs, and it is easily included on any page that I want, even externals outside my site can call on the code, which opens more doors for advancement.

Here is the simple Iframe code I used to replace the Php Include:

<iframe align=top valign=right width=600 height=105 marginwidth=0
marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no
src="http://your.com/file-to-include.php" width=600
height=105></iframe>
Using the Iframe tag for Php Include Conclusion
I have encountered no problems with including my PHP code on pages across external servers, using the iframe as a Php Include. As you can see, it is totally customizable. You can specify the width, height, alignment, border, scrolling, margins and more. The only obstacle that I have encountered, is the style sheet that the site, or page, with the, "Php Include," is not utilized. The page that the code is on seems to need its own unique style sheet.

I hope this proves beneficial to anyone having trouble with running a "Php Include" across various unique online applications.

About The Author
Michael J. Medeiros is the owner of http://www.mjmls.com/. He has worked as an Independent Real Estate Agent for three years, in New Jersey. He has an extensive background in Business and Marketing. Michael’s latest research and attention has been devoted to online business development and the Internet.

Tuesday, March 4, 2008

Basic PHP Includes

Lets say you have a Web site with 10 or so pages, and you want to update the navigation. You don't want the hassle of updating every single page. That's where PHP includes come in handy.

Your basic include will look like this.

<?php include ( 'includes/navigation.php' ); ?>

That's it! What I typically do is design a page as usual, then begin breaking sections up into includes. To use this effectively:

1) Find sections or tables that will repeat throughout the site.
2) Cut the section of code out and paste it into another file.
3) Save this file into an includes folder.
4) Where the original section was, insert your PHP inclue code, referencing the file name.

Let's say I want to use the highlighted code on multiple pages.

<table>
<tbody>
<tr>
<td>
This table will be on every page.
</td>
</tr>
</tbody>
</table>
<table>
<tbody>
<tr>
<td>
This is some other content.
</td>
</tr>
</tbody>
</table>
I'll include it like this.

<?php include ( 'includes/table.php' ); ?>
<table>
<tr>
<td>
This is some other content.
</td>
</tr>
</table>
Now if I change table.php later, it will change on every page automatically. It's just like using image tags, but instead of image files, you are including pieces of html. This can save you hours and hours.

About the Author
Alan Hettinger is a freelance designer available for print, web, and multimedia projects.

Saturday, March 1, 2008

HTACCESS Wrappers with PHP

HTACCESS is a remarkable tool you can use for password protection, error handling (like custom 404 pages), or HTTP redirects. It can also be used to transform whole folders in seconds: adding headers to all your HTML documents, watermarking all your images, and more.

A wrapper is like a middleman. Using htaccess you can tell your web server to "forward" certain files to PHP scripts of yours. When a visitor tries to load an image in their browser, you could activate a script that adds a watermark to the image. When an HTML page is loaded you could query an IP-to-country database and have your HTML pages translated into the native language of your visitor's country-of-origin.

Every file in a folder, or all files of a certain type in a folder, can be instructed to go through a PHP script.

TORTILLA WRAP
Pretend you host several affiliate sites, or a full-blown hosting service like Geocities. Most sites running on free hosting services have some kind of advertisement the owners use to generate revenue. These aren't applied voluntarily by the users of these services. The ads don't even show up on their source files, just when displayed on the web.

It's possible to replicate this feature using less than 10 lines of PHP and htaccess code. To start off, make a folder on your web host called "header". Create a new text file and enter the following:

AddHandler headered .htm
AddHandler headered .html
Action headered /header/header.php

This designates files with the extension ".htm" and ".html" to a type called "headered". The name "headered" can really be anything, it's just a way of labeling a group of files. The last line there tells the web server that if any of the file types in the group called "headered" are called, we should instead execute the script "/header/header.php". This is the relative path, so if your URL is http://your.host, this will run http://your.host/header/header.php.

That's all you've got to do for the htaccess file. Save that as "htaccess.txt" -- we'll get back to it later.

For the actual wrapper, create a new text file with the standard tags, then assign your header and footer file names to variables called $header and $footer.

$header = "header.html";
$footer = "footer.html";

Redirecting a user to our script doesn't pass its contents to it, just the filename. If you call phpinfo() in your script and scroll to the bottom you can see all the server variables which give us the name. The element "REQUEST_URI" in $_SERVER gives us the relative path (/header/sample.html), but we want the full system path since we're going to be reading the actual file (/home/username/wwwroot/your.host/header/sample.html), which is "PATH_TRANSLATED".

$file = $_SERVER["PATH_TRANSLATED"];

The name of the file that just tried to be shown is now stored in the variable $file. Three simple things are left: output the header, output the actual file, then output the footer.

readfile($header);
readfile($file);
readfile($footer);

That's it. Here's the entire header.php file:

<?php
$header = "header.html";
$footer = "footer.html";
$file = $_SERVER["PATH_TRANSLATED"];
readfile($header);
readfile($file);
readfile($footer);
?>

All that, in just nine lines of code. Download it here: http://www.jumpx.com/tutorials/wrapper/header.zip

That contains the htaccess file and PHP wrapper script, along with a sample header, footer, and a test page. Upload all five files to your web host, chmod htaccess.txt to 0755 then rename it to ".htaccess". It might disappear from your directory listing which is okay, it should still be there.

Load, in your browser, the copy of sample.html residing on your web server. The text "This is my header" should appear at the top while "This is my footer" should show on the bottom. If you open up the actual file called sample.html, you'll see that these actually aren't there. They've been added in by the script all HTML files in the folder "header" must now pass through.

This is how wrappers work. Certain things, like adding custom headers and footers are done "on the fly" without modifying your original file. You'll get the same effect if you create other HTML files and upload them to this folder.

Files without ".html" or ".htm" extensions, such as text files or images, won't show these headers or footers. This is a good thing because text files aren't part of the presentation on a web site and adding extra text to images will corrupt them. It affects all HTML files within your /headers folder, and none of the files outside of it.

If you wanted, you could add or remove any file extensions you want, just by adding or taking away those "AddHandler" lines.

To get everything back to normal, either delete your .htaccess file or upload a blank .htaccess file in that folder, and all will be well again.

SHRINK-WRAP
The same basic formula can be applied again for other uses -- HTTP compression, for example. This was an idea that used to be impractical because computers ran at slower speeds, and is now obsolete because of broadband technologies (DSL and cable).

It works like this: when an HTML page is loaded, the web server instead gives the visitor a zipped or compressed version of that page. The visitor downloads that file, which of course takes up less space than the real thing and downloads in less time, then unzips it and displays the original page.

In this age of lighting fast DSL lines, there's almost no noticeable difference. However, if you have a site that hosts large files whose audience is mostly dialup users, it might be something to look into.

Make a new folder called "compress". Create your htaccess file again, just as before, but set the extensions to include .htm, .html, and .txt. (The group name, folder name, and script name have nothing to do with one another, you can name any of these whatever you like -- I just like things to match.)

Our wrapper script for this should be called "compress.php". That's what I'm naming mine. This means the htaccess file you have should look as follows:
AddHandler compress .html
AddHandler compress .htm
AddHandler compress .txt
Action compress /compress/compress.php
If our wrapper were simply going to pass through the file (in other words, just read its contents into a variable and display it), our handler script would look like this:
<?php
$file = $_SERVER["PATH_TRANSLATED"];
readfile($file);
?>

"GIFT WRAPPING" YOUR OUTPUT
To make the HTTP compression work, we use two functions: ob_start() and ob_gzhandler(). Output buffering functions are strange. Any time you try to display something, you can have PHP save up everything you're trying to output. At the very end it's all dumped into a function of your choosing where the text can be changed or transformed before it's output.

There is a built-in PHP function called ob_gzhandler() which takes one parameter (a string of text), compresses the data according to the gzip standard and does all the header trickery that's needed to tell the user's browser that we are transmitting data that needs to be decompressed once it's downloaded. When this line is used:

ob_start("ob_gzhandler");
It tells PHP: everything displayed afterwards has to go through the function ob_gzhandler() first. Put that at the top of our script and here's what we've got:
<?php
ob_start("ob_gzhandler");
$file = $_SERVER["PATH_TRANSLATED"];
readfile($file);
?>
Save that as compress.php. Upload both files, chmod htaccess.txt to 0755 and rename to .htaccess and you're done. That's all you need for it to work, and you can just as easily apply HTTP compression to any script by just adding that line.

To try this puppy out, I got on a dialup connection and put a copy of "The Decline And Fall Of The Roman Empire Volume 1" on my web host, a 900 page book, about 1.6 megabytes in size. Without HTTP compression it took 5 and a half minutes to download. With the compression, only 2 minutes. Internet Explorer told me the download was going at 20 KB per second, impossible with a dialup connection... but since the file was zipped, I really was downloading 20 KB a second (once the data was decompressed on my end) over a 5 KB per second connection.

Though HTTP compression will work on sounds, video, and images, the space you save is negligible, usually only a few bytes. These sorts of media are already heavily compressed so zipping makes almost no difference. This is why we've told htaccess to only use compression on text and HTML, because it's with human languages like English where a lot of repetition occurs, which means more information can be compressed.

Not all browsers support HTTP compression, but ob_gzhandler() figures out if a browser can support HTTP compression. If the browser doesn't, the original file is displayed, no harm done.

You can get a copy of this sample script at: http://www.jumpx.com/tutorials/wrapper/compress.zip

Both of these scripts I've created for you will work only on static files, files that actually exist such as images or HTML files. If you tried to apply these wrappers as-is to PHP scripts, Perl scripts or even HTML pages that use SSI. If your whole site is run by a single script it's a better idea to hard-code these things right in, anyway.

THE BEST THING SINCE BUBBLE WRAP
This last demonstration of an htaccess wrapper is something that I think most people with content sites have a use for. On the Internet, people steal stuff. Theft of HTML source code is a nuisance, sure, but the lifting of images is more common. Someone likes a logo on your page, or an e-book cover, or a picture of a physical product you're selling, and it becomes theirs to use.
A practical way to keep this from happening is to add a watermark to all your images, which is your logo or name on a corner somewhere, forcing anyone who takes your graphic to either unwillingly give you credit, or chop off a part of that picture.

Lucky for us, PHP has a set of functions to handle images, and in version 4.3 and above, it's included by default. Wrappers come in handy here because you might have an entire site full of images and would rather not spend three weeks watermarking tons of images by hand. Maybe you just don't want to have to juggle two sets of images, one watermarked and one normal.

Download this script from: http://www.jumpx.com/tutorials/wrapper/watermark.zip

The only files you need to worry about in that zip are htaccess.txt and wrapper.php. Upload them to a folder called "watermark", chmod htaccess.txt to 0755 and rename to ".htaccess".

The file wrapper.php remain as is. I've put comments in the file regarding most of what it does, so if you're curious go ahead and take a peek.

What the script does is this: It figures out the original image that was supposed to be called. Then it loads the watermark, which I've set in wrapper.php to be "watermark.png" which is just a PNG image containing the text "THIS IS WATER MARKED". The watermark is placed on top of the original, in the lower right corner, and output in the same format (i.e., JPEG) as the original.

You can tell the difference by looking at these two images:

http://www.jumpx.com/tutorials/wrapper/thomas.jpg

http://www.jumpx.com/tutorials/wrapper/thomas-watermarked.jpg

I've included several types of images (GIFs, JPGs, and PNGs) in the zip file for you to test out. Once you've got everything setup, upload those images and see how they look with the watermark.

This script will work with GIFs, JPEGs, and PNGs. Due to a patent issue (which expires worldwide in July 2004) GIFs can only be read, and not output. To make up for this, any of your GIFs will be output as PNGs, which should still work.

THE WRAP-UP
If you think about it, a watermark script like this could also be used for a number of things. For example, if you decide to run an image hosting service like AuctionWatch does for eBay users, you could watermark your site's URL to the bottom. Your users get a free service and everyone else sees a possible place to get free image hosting, there's some nice viral promotion right there.

You could also adapt the script to check the HTTP referer (in the variable $_SERVER["HTTP_REFERER"]) to see if the image was called offsite. If it was, the script would put the watermark on there but if you called it from a page on your own site, the image would be shown without one.

Even I have put wrappers to good use. Last year I wrote a product for Teresa King called Codewarden, which uses htaccess wrappers to display all the files of a directory in an encoded JavaScript string in an effort to hide HTML source.

About The Author
Robert Plank is the creator of Lightning Track, Redirect Pro, Rotatorblaze, and other useful tools.

Want to pick up more programming skills? Then purchase the e-book "Simple PHP" at http://www.simplephp.com/

Thursday, February 28, 2008

Redirecting a Page using PHP

Redirecting a page in PHP is an easy task. You can use the PHP Header method to redirect a visitor to a new page. The header() method is used to send HTTP headers back to the browser. The headers can be sent back to the browser only if there's no content or error messages shown in the page.

Here's an example on how to redirect a visitor to http://www.newpage.com/

<?
header('Location: http://www.newpage.com/');
?>

The above example shows how to redirect the visitor to a static address. You can also dynamically create the location to which the visitor is to be redirected.
<?
$domain=http://www.google.com/search?q=;
$querystring="vinu thomas";
$redirectstr= $domain.$querystring;
header('Location:'. $redirectstr);
?>

The above code will create the URL for redirection as http://www.google.com/search?q=vinu%20thomas and then redirect them to the URL. You can also build php code which can conditionally redirect a page. See how this is done in the following example.
<?
if($user==="Admin")
{
header('Location:admin.php');
}
else
{
header('Location:login.php');
}
?>


For more information on the header() method, you can check out php.net's header manual at: http://www.php.net/manual/en/function.header.php

About the Author
Vinu Thomas is the author of vinuthomas.com. This tutorial is licensed under a Creative Commons License.

How to Create a PHP Calendar

PHP calendars can be used for everything from simply displaying the date to creating complex reservation systems. See the steps to starting your own PHP calendar.

Wednesday, February 13, 2008

Wicked Cool PHP - New from No Starch Press

PHP is an easy-to-use scripting language that is perfect for quickly creating a wide range of dynamic web features, like forms, user polls, and shopping carts. It's the go-to language for web programmers in a hurry, and for good reason.

Wicked Cool PHP (No Starch Press, February 2008, 216 pp., ISBN 9781593271732), by William Steinmetz and Brian Ward, is a different breed of PHP book. It's made specifically for the developer who wants to know how to get things done without mucking around and wasting a lot of time. This is not a weighty PHP complete reference or bible that threatens to take down your bookshelf and the rest of the bookcase. This is a book for coders to pick up and use, not wade through.

"We do the picking so that our readers won't have to," said No Starch Press Publisher Bill Pollock. "When we release a title, we make sure that we've pared it down to its essence, and at under 250 pages, Wicked Cool PHP is no exception. Just the meat, none of the starch." But don't let this book's lack of girth fool you.

Wicked Cool PHP offers readers a collection of 76 immediately useful PHP scripts, the brainchild of two veteran Web programmers. The scripts can be used to process credit cards, check the validity of email addresses, use HTML templates, and serve dynamic images and text. Most importantly, readers learn how to customize all of the scripts to fit their own needs, and how to troubleshoot their scripts when something goes wrong.

The book also teaches readers how to use PHP to:

  • Send and receive email notifications
  • Scrape other websites
  • Encrypt sensitive data and create a secure login scheme
  • Track visitors' behavior with cookies and sessions
  • Override PHP's default settings
  • Manipulate dates, images, and text on the fly
  • Harness SOAP and other web services
  • Create an online poll, e-card delivery system, and blog

Dynamic web content doesn't have to be difficult—and it doesn't have to be scripted from scratch. Wicked Cool PHP provides the building blocks for full-featured websites while teaching the techniques that will liven up any site.

Available in fine bookstores everywhere, from www.oreilly.com/nostarch, or directly from No Starch Press (http://www.nostarch.com/, orders@nostarch.com, 1-800-420-7240).

About the Authors
William Steinmetz is the author of LAN Party: Hosting the Ultimate Frag Fest (Wiley) and co-author of Paint Shop Pro for Dummies (IDG). He is the webmaster and editor of StarCityGames.com, where traffic has quadrupled as a result of the changes he designed and implemented, all using PHP.

Brian Ward is the author of How Linux Works, The Book of VMware, and The Linux Problem Solver (all from No Starch Press).

About No Starch Press
Founded in 1994, No Starch Press is one of the few remaining independent computer book publishers. We publish the finest in geek entertainment—unique books on technology, with a focus on Open Source, security, hacking, programming, alternative operating systems, and LEGO. Our titles have personality, our authors are passionate, and our books tackle topics that people care about. See http://www.nostarch.com/ for more information and our complete online catalog. (And most No Starch Press books use RepKover, a lay-flat binding that won’t snap shut.)

About O'Reilly
O'Reilly Media spreads the knowledge of innovators through its books, online services, magazines, and conferences. Since 1978, O'Reilly Media has been a chronicler and catalyst of cutting-edge development, homing in on the technology trends that really matter and spurring their adoption by amplifying "faint signals" from the alpha geeks who are creating the future. An active participant in the technology community, the company has a long history of advocacy, meme-making, and evangelism.

Sunday, February 3, 2008

PHP Redirect Tutorial

A PHP Redirect automatically transfers a web user from one URL to another. For example, typing foo.com in the browser automatically transfers the user to another URL bar.com.

The PHP Redirect command

<?php
header("location: [some-url]");
?>
Replace [some-url] with the URL where you want the redirection to take place.

For example,

header("location: ./version2/index.html"); =>redirect to "index.html" page in
subfolder called "version2"
header("location: http://www.yahoo.com"); =>redirect to a website called yahoo.com
If PHP is not available, it's also possible to use other redirects:

HTTP Redirects
<meta http-equiv="Refresh" content="[time];
URL=[some-url]">

Replace [time] with seconds. This will pause the browser for the specified number of seconds. Replace [some-url] with the target URL you want to redirect.

For example,

<meta http-equiv="Refresh" content="5;
URL=http://www.yahoo.com">

The above HTTP based redirect needs to be in the region of the HTML code.

JavaScript Redirects

<script language=javascript>
setTimeout("location.href='[some-url]'",[time]);
</script>

Replace [time] with milliseconds. This will pause the browser for the specified number of seconds. Replace [some-url] with the target URL you want to redirect.

For example,
setTimeout("location.href='http://www.yahoo.com'", 5000);
The above JavaScript based redirect can be either in the or region of the HTML code.
Usually a PHP redirect is much more reliable than other form of redirects like HTTP redirect or JavaScript based redirects. For example a JavaScript redirect may not work if a user's browser settings has JavaScript turned off.

The reason why PHP redirects will work no matter what settings users have on their browser is because PHP is server side script. It will not depend on browser settings that may affect JavaScript which is parsed on the client-side/user-side.

About the Author
Sanjib Ahmad, Freelance Writer and Product Consultant for http://www.marc8.com/.

Thursday, January 17, 2008

Create a Calculator in PHP


In this video tutorial, learn how to create a calculaor in PHP.

Monday, December 17, 2007

Using PHP With HTML

There are a couple ways to include HTML when coding PHP. Learn two options that work equally well, then decide which one makes the code more clear and concise for you.

Wednesday, December 12, 2007

Object-Oriented Programming with PHP5

Packt is pleased to announce the release of a new book titled Object-Oriented Programming with PHP5. Written by Hasin Hayder, this book will teach users to understand the core object-oriented programming concepts with PHP and to write manageable applications with ease.

Object-oriented programming (OOP) is a programming paradigm that uses "objects" and their interactions to design applications and computer programs. It was basically introduced to ease the development process as well as reduce the time of development by reducing the amount of code needed.

PHP is one of the most popular languages for web application development, and PHP5 supports OOP very well. This book will help users to master core OOP features in PHP as well as advanced Topics like Design Patterns including Model-View-Controller (MVC), and Unit Testing.

Comprehensive documentation and working examples on the Standard PHP Library (SPL), which are hard to find elsewhere, are provided in this book. Users will find this book useful to leverage PHP’s OOP features to write manageable applications with ease.

Object-Oriented Programming with PHP5 is published and is available with Packt. For more information about this book, please visit http://www.packtpub.com/oop-php-5/book

Basic PHP Syntax

PHP is a server side scripting language that, very often along with databases created with SQL, can create dynamic webpages. Learn basic PHP syntax in this demonstration.

Thursday, December 6, 2007

Rack up the Hits with PHP/PostgreSQL Bootcamp, February 25-29, 2008

Big Nerd Ranch, Inc. announces an exciting new training class for web designers and database administrators looking to expand their skills into web development, the new PHP 5/PostgreSQL Bootcamp slated for February 25-29, 2008. The class reflects Big Nerd Ranch's continuing quest to create high quality training classes that provide an in-depth understanding of the technology. PHP 5, which has rapidly become one of the most prevalent web development languages in the market, is the perfect platform for moving beyond simple web sites for clients into full-featured database-driven web applications. By combining PHP 5 with PostgreSQL, the most robust and scalable open-source database available, students will master the tools necessary to develop full-featured web solutions.

By placing more emphasis on the database component of web application development, the PHP 5/PostgreSQL Bootcamp offers a more realistic approach to how web applications actually work. Students learn how HTML, CSS, PHP and a back-end database all integrate together to provide something useful and compelling to users. Ultimately, this will improve the skills of developers seeking to rise above the competition in the web development services they can provide.

Mark Fenoglio, class instructor, commented about the new class, "Students will be surprised how much easier it is to learn database concepts when they are applied in the context of a working web site. Why columns of particular tables are needed. Why the primary key is so crucial in database design. How different pieces of information fit together to provide a useful dataset for a web page."

Upon completion of the class, students will be able to:

  • Use PHP and PostgreSQL to build a complete CRM website and application
  • Understand how to integrate PHP and PostgreSQL with complementary web technologies (e.g., CSS, XML, pdf, AJAX) to produce professional web solutions
  • Implement security measures to prevent the most common kinds of attacks in a web environment
  • Understand how to integrate third-party libraries (e.g., PEAR) into PHP applications, dramatically reducing development time

To read the complete class description, please visit http://bignerdranch.com/classes/php5_pgsql.shtml

To register for the class, please visit: http://bignerdranch.com/register.php?cid=1042

The Big Nerd Ranch incorporates intensive training classes for Unix and Mac OS X programmers and system administrators in a retreat setting outside Atlanta, GA. Class price of $3500 includes lodging, all meals, original instruction materials, 24-hour lab access, and ground transportation to and from the Atlanta airport. Students are encouraged to bring independent projects to class, allowing for input from classmates and individual instructor attention. For more information, call 678-595-6773 or visit www.bignerdranch.com.

Source: PRWeb

Sunday, November 4, 2007

Become a PHP Expert in One Week With SitePoint's Guide

Over 20 million web sites prove that PHP is the most universally adopted web programming language on the planet. However, moving from a beginner's level to more advanced PHP development is often a difficult transition … or was, until today.

Online media company SitePoint (sitepoint.com) today announced the release of a new resource for learning object oriented programming with PHP.

Its latest book, The PHP Anthology: 101 Essential Tips, Tricks & Hacks, 2nd Edition, saves time, and eliminates the frustration of completing PHP tasks, with a comprehensive collection of ready-to-use solutions.

Its question-and-answer format lets you learn by example as you work through its impressive PHP solutions, and the copy-and-paste code takes the stress out of getting your web applications off the ground.

This book makes it easy to:

  • Manage errors gracefully.
  • Build functional forms, tables, and SEO-friendly URLs.
  • Reduce load time with client- and server-side caching.
  • Produce and utilize web services with XML.
  • Secure your site using access control systems.
  • Easily work with files, emails, and images.
  • And so much more...

The PHP Anthology: 101 Essential Tips, Tricks & Hacks, 2nd Edition proves that you that you don't need a computer science degree to take advantage of the powerful features of PHP.

The PHP Anthology is available at Amazon.com.

About SitePoint

SitePoint specializes in publishing fun, practical, and easy-to-understand content for web professionals. Its popular online magazine, blogs, newsletters, and print books teach best practices to web developers and designers worldwide. http://www.sitepoint.com

SitePoint also runs the #1 Marketplace on the Web for buying and selling web sites, blogs, and forums. http://www.sitepoint.com/marketplace/

Source: PRWeb

Sunday, September 23, 2007

Free eBooks from Apress

Apress has made a number of their books available as free ebooks. Here is a current list of the free ebooks available:

  • Practical Common Lisp
  • Enterprise Java Development on a Budget: Leveraging Java Open Source Technologies
  • Beginning J2EE 1.4: From Novice to Professional
  • Google, Amazon, and Beyond: Creating and Consuming Web Services
  • Pro JSP, Third Edition
  • Writing Perl Modules for CPAN
  • XML Programming: Web Applications and Web Services With JSP and ASP
  • COM and .NET Interoperability
  • Programming VB .NET: A Guide For Experienced Programmers
  • A Programmer's Introduction to PHP 4.0

These ebooks are available to download for free in PDF format from the Apress web site.

Saturday, August 25, 2007

Learn to Build Robust, Efficient, and Secure PHP/Oracle Solutions

PHP Oracle Web Development is a new book from Packt that helps users combine the power, scalability, and reliability of the Oracle Database with the ease of use, short development time, and high performance of PHP. Written by experienced author, Yuli Vasiliev, this book is built entirely around example code, covering the most popular and up-to-date topics on using PHP in conjunction with Oracle.

When building a PHP/Oracle application, users have two general options. The first is to use an Oracle database just to store data, performing all the operations on that data on the client side; the other is to use the database not only to store data, but also to process it, thus moving data processing to the data.

While building the key business logic of a database-driven PHP application inside the database is always a good idea, users should bear in mind that not all of the databases available today allow you to do. The Oracle database, which offers record-breaking performance, scalability, and reliability, does. The partnership of Oracle and the open-source scripting language PHP is an excellent solution for building high-performance, scalable, and reliable data-driven web applications.

This 100% practical book is crammed full of easy-to-follow examples. It provides all the tools a PHP/Oracle developer needs to take advantage of the winning combination. It addresses the needs of a wide spectrum of PHP/Oracle developers, placing the emphasis on the most up-to-date topics, such as new PHP and Oracle Database features, stored procedure programming, handling transactions, security, caching, web services, and Ajax.

Through numerous examples, this book will show readers how to build simple and efficient PHP applications on top of Oracle, efficiently distributing data processing between the Web/PHP server and Oracle Database server.

Although PHP Oracle Web Development covers only the most popular and up-to-date topic areas on the use of PHP in conjunction with Oracle, the author does not make any assumption about the skill level of the reader. Packed with information in an easy-to-read format, the book is ideal for any PHP developer who deals with Oracle. For more information, please visit: www.PacktPub.com/PHP-Oracle-Web-Development-XML-Ajax-Open-Source/book

Learn to Create Professional Quality Joomla! Templates

Packt is pleased to announce a new book on designing Joomla! templates. Written by Tessa Blakeley Silver, Joomla! Template Design is a complete guide for web designers to all aspects of designing unique website templates for the free Joomla! PHP Content Management System.

The Joomla! template is a series of files within the Joomla! CMS that controls the presentation of content. A template is the basic foundation design for viewing a Joomla! website. To produce the effect of a "complete" website, the template works hand in hand with the content stored in the Joomla! databases.

The Joomla! development team recently announced that they are committing themselves to the GPL license and that all propriety extensions will need to comply to the same license. This has caused some confusion concerning the distribution of templates. This is because a template package is made up of different files; some that the GNU GPL applies to and others that it doesn’t. Joomla!’s official stance is that non-code elements of a template package are just data acted upon by the software and may be licensed in any way that the author deems fit. Therefore, the current uncertainty over third party development of templates will require more users to create their own quality, professional-level templates.

Joomla! Template Design is a well-crafted, easy-to-use book and a complete guide to creating Joomla! templates for a website. It guides users through setting up a basic workflow for Joomla! template design, debugging and validating the template code, creating drop-down menus, interactive forms, and dynamic forms for a site, and packaging up the finished template in a ZIP file for users.

The book explains how to deal with and use multiple templates in the same site. It advises users on creating beautiful Joomla! designs using CSS rather than tables in your templates. The book offers guidelines on using animations and other effects in Joomla! templates and provides tricks for tweaking existing templates.

This book is aimed at web designers who want to create their own unique templates for Joomla!. Readers should have basic knowledge of Joomla! and also some knowledge of CSS and HTML, and using Dreamweaver for coding purposes.

Joomla! Template Design is published by Packt and will be released in July 2007. For more information, please visit http://www.packtpub.com/Joomla-Template-Design-open-source-PHP-MySQL/book

About Packt
Packt is a modern, unique publishing company with a focus on producing cutting-edge books for communities of developers, administrators, and newbies alike.

Packt’s books and publications share the experiences of fellow IT professionals in adapting and customizing today's systems, applications, and frameworks. Their solutions-based books give readers the knowledge and power to customize the software and technologies they’re using to get the job done.

Packt believes in Open Source. When they sell a book written on an Open Source project, they pay a royalty directly to that project. As a result of purchasing one of their open source books, Packt will have given some of the money received to that open source project.

For more information, please visit www.PacktPub.com

Tuesday, August 21, 2007

Create Joomla! 1.5 Extensions with new Book

Technical IT publishing company Packt, has today published Learning Joomla! Extension Development, a book that helps create Joomla! 1.5 extensions with PHP. Written by professional Joomla! Extension Developer Joseph L. LeBlanc, this book gives programmers their first step in customizing and extending the features of Joomla! through custom PHP development.

While Joomla! is packed with features, its greatest quality is that it is extremely extensible, allowing any number of complex applications to be cleanly integrated. Shopping carts, forums, social networking profiles, job boards, and real estate listings are all examples of extensions developers have written for Joomla!. All of these can run off one Joomla! site, while only one database, template, and core need to be maintained. When you build an extension to Joomla!, it will inherit the look and feel of the overall site. Any type of program that can be coded in PHP is a potential component waiting to be written!

Walk through the development of complete Joomla! components and modules with this tutorial for PHP programmers. Written for Joomla! version 1.5 and tested against pre-final releases, this book will get programmers started with coding professional looking extensions as quickly as possible.

The book builds example extensions to create, find, promote, and cross-link restaurant reviews. A component will handle common data items seen across all reviews such as price range, reservations, cuisine type, and location. Visitors will be able to search and sort through the reviews; adding their own criteria to zero in on their dining options for the evening. Modules will highlight new reviews, drawing the attention of frequent visitors. Finally, plugins will pull pieces of the reviews into feature articles and others will integrate them into searches.

As an open source project, Joomla! is free to download. This means that it survives through volunteers and donations from an enthusiastic community. In a move designed to demonstrate their support and to help provide a sustainable source of revenue for the project, Packt is paying Joomla! a percentage of every book sold.

“This is something we do for all open source projects that we publish books on” explains Packt spokesman Damian Carvill. He goes on to state that Packt’s aim is to “establish publishing royalties as an essential part of the service and support business model that sustains Open Source.”

Learning Joomla! Extension Development: Creating Modules, Components, and Plugins with PHP is published by Packt and is out now. For more information, please visit www.PacktPub.com/Joomla-Extensions/book

Sunday, August 19, 2007

Improve your PHP Coding Productivity with new CodeIgniter Book

Packt is pleased to announce the release of its new book, CodeIgniter for Rapid PHP Application Development. Written by David Upton, this book will help users build a dynamic website quickly and easily using CodeIgniter's prepared code CodeIgniter (CI) is a powerful open source PHP framework with a very small footprint, built for PHP coders who need a simple and elegant toolkit to create full-featured web applications. CodeIgniter is an MVC framework, similar in some ways to the Rails framework for Ruby, and is designed to enable, not overwhelm.

This book explains how to work with CodeIgniter in a clear and logical manner. It is not a detailed guide to the syntax of CodeIgniter, but makes an ideal complement to the existing online CodeIgniter user guide, helping you grasp the bigger picture and bringing together many ideas to get your application development started as smoothly as possible.

If you're looking for a better way to develop PHP applications, or want to find out more about the CodeIgniter framework as a viable option for one of your own projects, this book will help you. It carefully explains the basic concepts of CodeIgniter and its MVC architecture by walking through the main features of CodeIgniter in a systematic way, explaining them clearly with illustrative code examples.

CodeIgniter for Rapid PHP Application Development is out now and is written for developers who are new to CodeIgniter. Basic skills in PHP and MySQL are required, but only rudimentary object-oriented knowledge is required. For more information, please visit http://www.packtpub.com/codelgniter-php-application-development-mvc/book

PHP Web 2.0 Mashup Projects

Packt is pleased to announce details of a new book designed to teach users how to create practical mashups in PHP. Written by experienced programmer Shu-Wai Chow, PHP Web 2.0 Mashup Projects teaches users how to create PHP projects that grab and mix data from the likes of Google Maps, Flickr, Amazon, YouTube, MSN Search, Yahoo!, Last.fm, the Internet UPC Database, and the California Highway Patrol Traffic service!

A mashup is a web page or application that combines data from two or more external online sources into an integrated experience. PHP Web 2.0 Mashup Projects is written as an entryway to the world of mashups and Web 2.0. Users will create PHP projects that grab data from one place on the Web, mix it up with relevant information from another place on the Web and present it in a single application.

The book is made up of five real-world PHP projects. Each project begins with an overview of the technologies and protocols needed for the project, and then dives straight into the tools used and details of creating the project:

  • Look up products on Amazon.Com from their code in the Internet UPC database
  • A fully customized search engine with MSN Search and Yahoo!
  • A personal video jukebox with YouTube and Last.FM
  • Deliver real-time traffic incident data via SMS and the California Highway Patrol!
  • Display pictures sourced from Flickr in Google maps

Users will learn the technologies, data formats, and protocols needed to use these web services and APIs, and some of the freely-available PHP tools for working with them. Readers will understand how these technologies work with each other and see how to use this information, in combination with their own imagination, to build cutting-edge websites.

PHP Web 2.0 Mashup Projects is due out in June, 2007. There are a lot of formats and protocols, web services and web APIs encountered in this book however users do not need to know anything about them; everything needed is found in the book.

For more information http://www.packtpub.com/php-web-20-mashups/book

Thursday, June 7, 2007

PHPRunner 4.0: Build Web Databases With Ease of Drag-n-Drop

XlineSoft has released PHPRunner 4.0 - an easy to use solution that web-enables most popular databases. The new version introduces charting and reporting capabilities improving data visualization as well as a WYSIWYG visual development environment.

PHPRunner builds visually appealing web interfaces for any database on the Web. Designed to suit all users from beginners to experienced developers, it creates web applications to access and modify Oracle, SQL Server, MS Access, MySQL, and Postgre databases.

With this latest release XlineSoft took the next step in improving web data management and visualization. The new version of PHPRunner 4.0 has been enhanced with an extensive list of graphical and reporting capabilities allowing companies to create a Business Intelligence (BI)-like environment to support more informed decision-making. The wide range of reports (outline, stepped, align, block, tabular layouts and others) will help companies generate aggregated views of data to keep the management informed about the state of their business.

A picture is worth a thousand words. PHPRunner's new color-rich graphic capabilities turn raw data into visually perceptive illustrations providing a synopsis of the "big picture" as well as the in-depth analysis. Dynamic, results-based charts (Line, pie, doughnut, horizontal/vertical bars, 3D and others) are now at companies' disposal and ready to be utilized.

Importantly, PHPRunner uses a wizard-like interface and a set of business templates, meaning the web developer does not have to write a single line of code. With the WYSIWYG ("What You See Is What You Get") visual editor, users can customize the appearance of web application with the ease of drag-n-drop. To implement business logic PHPRunner provides a wide-ranging set of Events. This feature will be especially handy for advanced users.

PHPRunner now includes AJAX capabilities . Website visitors will notice many helpful features - such as autosuggest, quick search lookups, detailed table previews and others - that significantly improve the user's experience.

PHPRunner saves money by considerably reducing the time for converting databases to a web application and eliminates the need to hire another employee or contractor to perform this task. The program is so easy to use that a fully-working application can be generated in just 15 minutes.

PHPRunner is distributed electronically over the Internet, and a free evaluation version is available at the manufacturer's website. The price of a single copy is US$299 Software resellers and volume buyers should inquire about special discounts. Educational discounts are also available. The evaluation version (21-day trial period) can be downloaded from http://www.xlinesoft.com/phprunner/download.htm

Source: PRWeb