RSS
Subscribe
http://bit.ly/503I63

Will PHP die out or Shine?

I’ve been using PHP for a few years. I love it and I think it’s a great language. Of course it has it’s soft spots, like naming convention for functions(like n2br(), strtr(), str_replace, etc.).

Though with the growing popularity of Python and Ruby, what’s going to happen to PHP? Ruby, a language built for convenience and Python, a powerful language built for speed both run over PHP in those two aspects. Is there a reason to stick with PHP? And why not switch to something more efficient? PHP scripts sometimes take longer to write and are also harder to debug. Ruby ranks as one of the highest in terms of maintenance and ease of speed. Python is portable, powerful and fast!

PHP’s strong points are it’s documentation, afford-ability, support and popularity

witches the movie download

. A person with a business plan can rustle up PHP free-lancers pretty fast. PHP is that language that has almost always had support from hosting companies, and that being said, has always been more available to beginners. PHP also gets a rap for allowing inexperienced developers to create unmaintainable, messy code. Not as a Stranger video

The Caretaker hd

Anastasia the movie

This happens too many times, where code gets passed on and all you can do shake your head… At the same time experienced coders have developed some of the net’s most popular web applications.

The real test for PHP will come when they finally release PHP6, which has been anticipated for four or more years. By eliminating tons of crap, adding name spaces, better speed performance and more efficiency PHP6 will show what PHP is actually capable of. This will truly be PHP’s time to shine.

Please pass this on to your fellow developers.:)

Share/Bookmark


http://bit.ly/4mYTfg

Using Data Objects(MySQL, PostgreSQL, Oracle, DB2 etc.) In PHP

I decided to switch from using arrays and use data objects for my web apps instead. One of the reason I did this is because fetching data from the database and dumping it into a object gives you much more flexibility than using regular arrays.

I remembered using data objects on a project I was working on a few months ago. The idea was a little to confusing for me at the time. Now I see that there’s more of an advantage to it than arrays could ever offer. If you run large object orientated web apps you might want to look into it…

How you do it—same as fetching a row into an array, just a different function:


<?php

// Here is an example in PostgreSQL(Can also be used in MySQL, Oracle, DB2 or what have you)
$resource = pg_query("SELECT id, name, active FROM users WHERE id = {$id} LIMIT 1");
// pg_fetch_object(sql_resource, [int row, str Class Name]);
$user = pg_fetch_object($resource, NULL, "MyClass");
// Echo some stuff
echo "Id Number: {$user->id}, User Name: {$this->username}";
?>

Pretty simple.

Extraordinary Rendition movie full

buy La planète sauvage

What I like best is that it just creates an object on the fly using the stdClass(Default Standard PHP Class) and adds the database values to it. If you want to add more functionality to it you can create your own classes(it’s very straight forward).

By using this we accomplish two things:

  1. We have more control over our data when it’s pulled from the database.
  2. We’ve become more Object Orientated, therefor adding more flexibility. We also have the option to use any of PHP’s OO features such as class inheritance

    , the ability to use control patterns etc.

Anastasia rip
You can learn more about Postgres and PHP data objects pg_fetch_object() HERE!

The Forgotten video

or MySQL’s mysql_fetch_object() HERE!

Killing Zoe Canes hd

Born trailer

I know most developers have heard about this before, but hell—I thought it would be something cool to bring up and share with everyone. Hot Shots!

White Christmas move
Share/Bookmark


http://bit.ly/7Szs3X

Good Practices&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;#8212;Writing Large Projects In PHP

Over the past few months I’ve been involved in large PHP projects. I’ve made lots of mistakes–and I’ve learned a lot from each one! I’ve gotten rid of old practices and adopted new and better ones.

There are a few things you should make sure of before you start large projects in PHP. Here’s my little list:)

    Easy Rider psp

  • It’s best to start off with a stable framework that does almost everything you need right a way. — I learned this the hard way, trying to build a site engine and a social network at the same time:D It’s not a whole lot of fun(unless you have LOTS of time on your hands). You can make your own framework or you can download lots of excellent ones for free!
  • Plan Plan Plan and Set Goals! Make sure you plan ahead so you have an idea of what needs to be done and how much work it’s going to take. It’s not enough to have it swimming around in your head. A wise man once said, “Those who fail to plan, plan to fail.”-It’s a good thing to keep in the back of your mind.
  • Use the latest versions of stable software.

    I Want Someone to Eat Cheese With ipod

    Original Sin trailer

    Groundhog Day divx

    Using PHP 4 is just going to limit your project. It’s unacceptable to use anything other than the latest version .

  • Do It Right The First Time! Doing it right the first time will decrease the chance of stupid bugs later on in the project when you need to focus on other things.
  • Decide on the final design/layout after the code is stable. No need fooling around with that stuff while coding. Design after functionality. But of course there needs to be some design, but don’t fully complete the layout until the application is running really well.
  • Test Your Code! This can be WAY underdone, and very seldom is it ever overdone! Unless you test every aspect of your code, your application is an accident waiting to happen . So be happy when you find a bug in your code, you saved users from hating you.:) Keep coding an art!
  • Choose the Right Database — Finding the right database for your project is important. Is your database widely supported? Can you export from your database? How easy is it to use with your project? The most popular databases are MySQL

    and PostgreSQL, there are other ones that you can look into–I like to stick to PostgreSQL(A.K.A Postgres, pgsql or psql)

  • Get Beta Testers, Get Feedback! People’s opinions are important. Make sure you listen to the majority! Just don’t go and change a whole tone of code because of one comment one person makes.
  • The Right Tools…Try to find the right tools for your project. It’s best to have a local server and an advanced text editor. Ohh, and your command line saves your life:D
  • Last but not least: Stay Focused, Have Fun, Learn from Your mistakes.

    Long, hard projects can be disheartening at times. Staying focused and not giving up is always somewhat of a challenge. The key is to stay organized and have fun. Focus on what you want to accomplish

    instead of how much time or work it’s going to take. In the end you’ll be “Better, faster, stronger” – Kanye West

Hope this helps!Full Frontal movie download

Share/Bookmark


http://bit.ly/60xlvF

The Importance of Buiding Your Own PHP Framework!

Theres a ton of PHP frameworks out there that will do what you want and will get the job done. But do you really need all of these features? So is there a reason why you should build your own framework?

First of all

Hell Comes to Frogtown trailer

, how big is your project? How many projects do you work on? How much functionally are you looking for?

Second of all Boundin’ movie , do you have enough time and knowledge to build your own framework?

The first step is listing a few features that you need:

  • Basic XHTML document generation with the ability to add HTML titles, CSS, JavaScript, Icons etc.
  • A global template(or multiple templates) that can changed from page to page or stay static throughout the whole site.
  • Simple content placement, pages(determined by the URI)-would be loaded into the template.
  • Quick database access.
  • Data Sensitization.

…and go from there.

I like using OOP(Object Orientated Programming) for my framework because it makes things so much easier.

It’s only as complicated as you make it. Just integrate the features that you need, keep it secure and keep tweaking it until it meets up to your personal standards.

The things that you should look for in any framework before it’s used in public:

The ultimate goal for your framework should be to save time as well as to give yourself a little extra freedom. All you need to do is write up a plan and start coding:)

Oh, and you might find this site helpful from time to time: PHP.NET

Have Fun!

Share/Bookmark


View in iTunes

We share life experiences and discuss development of leadership skills, discovering better methods of growth in business, the innovation of modern technology, social media and the web.