background preloader

PHP

Facebook Twitter

PHP: How to get stock quote data from Yahoo! Finance? (Complete Code and Tutorial) In this tutorial, I will be showing you how you can fetch any company’s data from Yahoo!

PHP: How to get stock quote data from Yahoo! Finance? (Complete Code and Tutorial)

Finance. First of all, let us see the stock quote data of top tech companies on Yahoo! Finance. URL Rewriting for Beginners - Web Development in Brighton - Added Bytes. Introduction URL rewriting can be one of the best and quickest ways to improve the usability and search friendliness of your site. It can also be the source of near-unending misery and suffering. Definitely worth playing carefully with it - lots of testing is recommended. With great power comes great responsibility, and all that. There are several other guides on the web already, that may suit your needs better than this one. Apache URL Rewriting Guide - The best guide around Before reading on, you may find it helpful to have the mod_rewrite cheat sheet and/or the regular expressions cheat sheet handy.

What is "URL Rewriting"? Most dynamic sites include variables in their URLs that tell the site what information to show the user. The problems with this kind of URL structure are that the URL is not at all memorable. Clearly a much cleaner and shorter URL. Now we're getting somewhere. Unfortunately, the last URL cannot be easily understood by a server without some work on our part. Number}

Fatfree

Overview — Zend Framework 2 2.3.2dev documentation. Edit this document The source code of this file is hosted on GitHub.

Overview — Zend Framework 2 2.3.2dev documentation

Everyone can update and fix errors in this document with few clicks - no downloads needed. Login with your GitHub account. Go to Overview on GitHub. Edit file contents using GitHub's text editor in your web browser Fill in the Commit message text box at the end of the page telling why you did the changes. Handling Date and Time in PHP and MySQL. The DATE/TIME Tower of Babel Human beings can read dates and times in a variety of ways.

Handling Date and Time in PHP and MySQL

We readily understand such things as September 5th, 2010, and we know that it comes before November 11th, 2010,and after May 9th, 2010. We have shorthand conventions that let us write things like 9/5/2010 or the military correspondence format 5 Sep 2010. But when we try to process dates and times in a computer program, this variety of formats becomes a jumble of confusion. In response to the confusion, the International Organization for Standards was moved to publish a standard in 1988. The standard has been revised and extended somewhat since the original publication. Toward a Universal DATETIME Notation Date formats for computer processing are prescribed by the ISO-8601 standard.

The ISO-8601 standard removes the ambiguity about the time of day, as well. Reference: all basic ways to sort arrays and data in PHP.

IBM

PHP Regular Expressions. Advertisements Regular expressions are nothing more than a sequence or pattern of characters itself.

PHP Regular Expressions

They provide the foundation for pattern-matching functionality. Using regular expression you can search a particular string inside a another string, you can replace one string by another string and you can split a string into many chunks. PHP offers functions specific to two sets of regular expression functions, each corresponding to a certain type of regular expression. You can use any of them based on your comfort.

4star

Basic Object-Oriented Programming in PHP. This chapter is from the book  OOP programming begins with classes, a class being an abstract definition of a thing: what information must be stored and what functionality must be possible with that information?

Basic Object-Oriented Programming in PHP

A User class would be able to store information such as the user’s name, ID, email address, and so forth. PHP Help Tutorial: OO PHP Part 1: OOP in Full Effect. Introduction On the old site, I started a series of tutorials named "PHP Application Design".

PHP Help Tutorial: OO PHP Part 1: OOP in Full Effect

I planned for at least three parts, and while I did publish the first two and wrote at least half of part three, I found myself out of time to make it to the finish. Still dedicated to writing reusable and extensible PHP code and spreading the knowledge, this is a restart of the series, renamed as simply "OO PHP". 10 Advanced PHP Tips Revisited. Advertisement Here, on the Smashing Editorial team, we always try to meet the expectations of our readers.

10 Advanced PHP Tips Revisited

We do our best to avoid misunderstandings, and we try to spread knowedge and present only the best design practices and development techniques. However, sometimes we do make mistakes. And when we do, we apologize and do our best to correct what we’ve done. In November 2008 we published the article 10 Advanced PHP Tips To Improve Your Programming21. Arrays - PHP array_filter with arguments. Classes and Objects. Array Functions. Programming PHP: Chapter 5: Arrays. PhpDocumentor. What makes good documentation?

phpDocumentor

This is unanswerable, but there are a few things to keep in mind Writing Great Documentation Consider the audience The first question any writer must ask is "Who is my audience? " This will answer many questions. When writing documentation for an open-source project intending to be both used and extended, this challenge is magnified by the fact that many people will also intend to extend the source, or even find obscure bugs and fix them.

Learning OOP in PHP ASAP! Object-Oriented PHP for Beginners. For many PHP programmers, object-oriented programming is a frightening concept, full of complicated syntax and other roadblocks.

Object-Oriented PHP for Beginners

As detailed in my book, Pro PHP and jQuery, you'll learn the concepts behind object-oriented programming (OOP), a style of coding in which related actions are grouped into classes to aid in creating more-compact, effective code. Object-oriented programming is a style of coding that allows developers to group similar tasks into classes.

Sending Email With PHPMailer and SMTP. Many PHP websites and web applications need to send transactional emails.

Sending Email With PHPMailer and SMTP

A user may request a password reset that sends them an email, or you may need to notify a customer that their order has shipped. PHP does have a mail() function you could use to send an email from the web server itself, but there are some drawbacks to doing this. Instead, I recommend using an external mail server to handle these emails.

Delivering automated emails reliably can be very difficult. Email providers and internet service providers (ISPs) take spam very seriously.