Archive of articles classified as' "Programming"

Back home

45 Must Read PHP Articles and Resources

8/01/2010

PHP_MySQL

Written By, Grace Smith is owner of the small but perfectly formed web design studio Postscript5, in Northern Ireland.

PHP is a scripting language that enables people to create dynamic web pages and applications. It is a server side language that is one of the most popular used by developers today. Like any language there is always something new to learn and master.

With a large number of web developers on Twitter, it’s with no surprise that PHP was chosen as this week’s Theme Thursday theme.

Whether it be a new tip to better organize your code or a way to speed up your scripts, this list hopes to be essential reading for both the PHP newbie and the the experienced developer.

For Beginners

  1. 25 Resources to Get You Started with PHP from Scratch
  2. PHP for Beginners: Building Your First Simple CMS
  3. Beginners PHP Tutorial – Using Cookies
  4. PHP for Beginners: Simple Login, Logout, and Session Handling
  5. Tutorial: Writing your first PHP script
  6. Video Tutorials To Start Learning PHP

Code Organisation

  1. 40 Tips for optimizing your PHP code
  2. 12 PHP optimization tips
  3. 5 Tips for Coding Cleaner PHP
  4. 50+ PHP optimisation tips revisited
  5. 63+ best practice to optimize PHP code performances
  6. Writing clean, secure and easy to maintain PHP code

Advanced

  1. 10 Advanced PHP Tips To Improve Your Programming
  2. 10 Advanced PHP Tips Revisited

Applications

  1. 10 Principles of the PHP Masters
  2. 5 Helpful Tips for Creating Secure PHP Applications
  3. Custom PHP.ini tips and tricks
  4. 5 tips and tools to develop php applications fast
  5. Add Power to Your PHP With Multi-Tiered Applications
  6. Open-source PHP applications that changed the world
  7. Blueprint for PHP Applications: Cornerstone

Tips and Best Practices

  1. 15 Top PHP Coding Tutorials, Tips and Tricks
  2. Ten PHP Best Practices Tips that will get you a job
  3. Three Important Tips to Write PHP Code Defensively
  4. Five good programming habits in PHP
  5. Speeding up your PHP scripts
  6. 4 Fantastic PHP Output Buffering Tricks for Web Developers
  7. 16 great .htaccess Tricks and Hacks

Tutorials

  1. User Membership With PHP
  2. Screencast: Write a PHP script to query MySQL
  3. How To Write Your Own MySQL Class In PHP
  4. Creating a PHP5 Framework – Part 1
  5. Creating a PHP5 Framework – Part 2
  6. Reading RSS with PHP
  7. PHP For Designers

Security

  1. Top 7 PHP Security Blunders
  2. Seven habits for writing secure PHP applications

Frameworks

  1. 16 PHP Frameworks To Consider For Your Next Project
  2. 20 Great PHP frameworks for developers

PHP Toolbox

  1. 20 Useful PHP Components & Tutorials for Everyday Project
  2. The PHP Toolbox: 20+ PHP Resources
  3. 50 Extremely Useful PHP Tools
  4. Best PHP Books for Learning PHP Development (with MySQL)

Were there any of your favourite PHP related resources that didn’t make the list? Then leave a comment with a link so we can check them out.

via 43 Must Read PHP Articles and Resources

22 Comments

PHP For Newbie

14/11/2008

In before to share my today’s learning, I would like to say thanks you emran bro (who gave me this awesome link) and big-big hug to vikram vaswani who wrote and excellent tutorials in a good sequence and adding delicious items on his first part “down the rabbit hole” tutorials. Shortly, I’ll move forwards.

I learned the basic actions of variable, how actually variable works, boolean, string, integer, floating-point and example of market value. I also read the briefly types on php language types (main page only and I have some problem on that example -i’ll digg more). Thing is that you can’t stop to reading the PHP manual and it’s so helpful in different times. Don’t follow me – i would like to follow you.

Today bit tired to pressing “shift+$“. See ya soon.

No Comments

Date & Browser Version Execution In PHP

12/11/2008

In before I wrote about the php date execution errors at the first test. Now, what to do? I asked about this matter to Emran bhai and got a simple solution. Just use this codes <?php echo date(“m-d-Y”, time()); ?>. Both are showing same results. Enjoy

No Comments

From PHP Manual

9/11/2008

At beginning, one of my friend said to me, ” I should read the PHP Manual“. But, I found on Chapter 2: A Simple Tutorial they said, “…We have an if statement. If you are familiar with the basic syntax used by the C language, this should look logical to you. Otherwise, you should probably pick up an introductory PHP book and read the first couple of chapters, or read the Language Reference part of the manual.”. Hope you got my points.

However, on chapter they introducing with variables.
<?php echo $_SERVER['HTTP_USER_AGENT']; ?>

On that codes you will see $_SERVER is a variable and that will handle PHP automatically.
After the execution you will see Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3

Note that the result will be vary and based on your system and browser versions.

1 Comment

Simple Date PHP Code Explanation

8/11/2008

I have been trying to find out this error In my first PHP code execution. Don’t get any solutions but got some theoretical idea how actually everything working to execute the dates.

If the syntax is perfect and the parsing that means the processing engine can read the codes that should be execute instantly to web server.

echo function which is not a function but it sending string data to browser to show the today’s date and the code is echo $todaysdate;

The date function is already built-in and that will do the rest of works automatically and on Dave’s book I read, ”

The date() function is built in to PHP, meaning that you don’t have to write or copy the function into your PHP5 program; it’s simply there for you to use at any time. It’s written in the same way as functions in most languages. It starts with the name of the function followed by parentheses, and inside the parentheses are arguments—the values, expressions, or more functions that resolve to a value which is then used by the date() function to produce the final answer. Take a look at this line from the example program:

$todaysdate = date("m",time()) . "-" . date("d",time()) ."-".
date("Y",time());

The first argument is “m”, signifying to the date() function that you want to know the month. The second argument uses the time() function, which gets the current time. The date() function processes the current time and extracts the month as a two-character value. You can use the date() function again to get the day and year from the time() function.

Thanks to great writter Dave for the great sample plus explation and you can get this book at amazon.com

No Comments