INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

PHP standards / Guidelines

PHP standards / Guidelines

(OP)
Hello,


I'm not a full time programmer , I can read codes , manipulate and know some basics. Now I want to it seriously. YES I'm READY
Anyone can give some guidelines? Source online? Step by step.

Yes I learn programming on through searching, But I don't know where to start.

I'm using PHP, MYSQL, Javascript,


Thanks

RE: PHP standards / Guidelines

1. Look in the Php online manual: http;//php.net. It’s an invaluable resource.
2. Keep your code organized, if you need to add comments.

Beyond that, start programming. Start writing code from scratch. Think about what you want to accomplish what code you need, to get that done and write it.

Best way to learn is by actually doing.


----------------------------------
Phil AKA Vacunita
----------------------------------
OS-ception: Running Linux on a Virtual Machine in Windows which itself is running in a Virtual Machine on Mac OSx.

Web & Tech

RE: PHP standards / Guidelines

One Warning

PHP is a quite messy language because of the way it has evolved, there are usual multiple ways of achieving the same ends, many of them now considered to be a poor choice or positivity harmful.
(take a look a Mysql & escaping strings for an example)
This does not mean that Good programs cannot be written in PHP, just that it is very to right bad ones.

If you use up-to-date docs, Modules & follow best practices everything should be good.


Do things on the cheap & it will cost you dear

RE: PHP standards / Guidelines

(OP)
Thank you for this @IPGuru :).Do you have any programming language to suggest to learn for web development? I hear about ASP.NET this is good?

RE: PHP standards / Guidelines

I personally disagree with PHP being messy.

PHP like many languages which have been around, have evolved and as such things become deprecated or obsolete and new methods introduced. I doubt this is exclusive to PHP.

ASP is known for its obfuscation of standard development techniques in favor of its own nomenclature which makes going from ASP to anything else quite difficult.

Personally, I find PHP invaluable in learning how development for Web works, since everything can be done from scratch in whichever way you see fit, and gives you a better of understanding of how they should work, than the encapsulation and obfuscation of other languages.

Also PHP offers flexibility which other languages may not.

Many of the largest websites today use PHP. Facebook, Amazon, CNN etc... PHP is only as messy as you let it be with your coding.



----------------------------------
Phil AKA Vacunita
----------------------------------
OS-ception: Running Linux on a Virtual Machine in Windows which itself is running in a Virtual Machine on Mac OSx.

Web & Tech

RE: PHP standards / Guidelines

PHP can be messy in the same way that our common language can be messy. That doesn't mean that either PHP or English should be avoided. It just means we should choose to speak or write goodly-like.

You should select the language that will meet your goal. I prefer PHP because it is freely licensed and can run on any server (easily deployed). ASP requires a paid license and only runs well on Microsoft servers.

While there is merit in learning how to develop from the ground up, you might also benefit from building on to an existing framework or system. For example, instead of creating a CMS from scratch, consider learning to write a PHP plugin/module for WordPress or Drupal. Building on to a framework will more often keep you on the right path (avoiding messy code) as they endeavor to follow best practices.



RE: PHP standards / Guidelines

indeed do not misconstrue my comments, there are many programmers who will belittle PHP but I am not one of them

I was simply highlighting that care needs to be taken as here are may parts of the language that have been depreciated & it is vert easy to write code that works but would be considered poorly constructed.

as I said it is possible to write good php code, it is just also very easy to write extremely poor code (lookig at my early code compared to more recent code makes this very clear to me).

Almost any language can be used for web development but PHP is one of the simplest to get started


Do things on the cheap & it will cost you dear

RE: PHP standards / Guidelines

Quote:

PHP can be messy in the same way that our common language can be messy.

Yeah, but PHP is messy in a way like no other language is, There is/was not even a consistent function naming convention, so names could be and are ThisFunction() or this_function, This-Function and/or ANY combination of the three.

Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.

Never mind this jesus character, stars had to die for me to live.

RE: PHP standards / Guidelines

(OP)
Thankyou for the sharing guys :)

Happy Coding :)

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close