News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Concise PHP manual

Started by Burpee, October 01, 2004, 12:09:38 PM

Previous topic - Next topic

Burpee

My brother's helping me with some PHP stuff, but he needs a "concise PHP manual".
Something with the main syntax, flow-control, variable assignments and class stuff and a short explanation for only the main functions (such as string and array manipulation etc.).
Basically just the PHP essentials for programmers switching to PHP.

All we can find on the internet are either 20-page tutorials or the 100+ page manuals and neither are really printable.
I hope one of you guys can help us with this :D

roboter88

checkout
IRC:Quakenet channel php

[Unknown]

Just read the one on php.net... it is the best, no matter how long or short it is.

-[Unknown]

Parham

php.net would be my answer... their documentation is more like a tutorial if you ask me.

Tomer

Quote from: Burpee on October 01, 2004, 12:09:38 PM
All we can find on the internet are either 20-page tutorials or the 100+ page manuals and neither are really printable.
I hope one of you guys can help us with this :D

You can view the PHP manual in a printable format...

Example: http://php.net/manual/en/print/function.echo.php

Saleh


We don't need a reason to help people

roboter88

#6
Well i done this tutorial once http://tut.php-q.net/ its very good cause it builds a cms and you get a overview about the importend stuff and the bascis and this is syndicating with my first post irc link.

But its german only :-) mybe u understand it?
And it has some inbuild bugs so its funny to find and make it run :)

Overall i guess the php.net tuts should be the 1st choice for starting php-

cheers

Burpee

This is the brother himself. So not Burpee.

All I'm looking for is a basic language reference that's short and clear. I've programmed in Perl for years so PHP should be a piece of cake, but I need to help my brother with it and let him sit behind the computer, so I can't skip back and forth across windows. I really need to have a printout with the basic info.

I'm just looking for what I said, basic syntax, OOP syntax, mysql commands and the syntax and argument definition of the main functions, all in a single printable document.
For me, that would be the difference between reading at least 20+ pages and adjusting for 5 minutes.

So I know that the php.net info is great as long as you don't have to print it, but I was wondering if there is anything more concise out there. I know some webdev sites have stuff like that, but they usually make sure you can't properly print it.

It would really help me out if somebody knew where to find it :)

[Unknown]

Quote from: Burpee on October 01, 2004, 04:30:07 PM
This is the brother himself. So not Burpee.

All I'm looking for is a basic language reference that's short and clear. I've programmed in Perl for years so PHP should be a piece of cake, but I need to help my brother with it and let him sit behind the computer, so I can't skip back and forth across windows. I really need to have a printout with the basic info.

I know there was a page linked to somewhere here (Parham?) about the differences between Perl and PHP.  Let's see...

Aha!

http://www.cs.wcupa.edu/~rkline/perl2php/

Not a perfect guide, but...

QuoteI'm just looking for what I said, basic syntax, OOP syntax, mysql commands and the syntax and argument definition of the main functions, all in a single printable document.
For me, that would be the difference between reading at least 20+ pages and adjusting for 5 minutes.

It's all very much C-like.  More so even than Perl.  There are differences, though... like there's no x.y, but instead always x->y.

http://www.digilife.be/quickreferences/QRC/MySQL-4.02a.pdf
http://www.digilife.be/quickreferences/QRC/PHP%204%20Reference%20Card.pdf

I just found those with Google.  Note that PHP 5 has more OOP type stuff, notably throw/catch.

QuoteSo I know that the php.net info is great as long as you don't have to print it, but I was wondering if there is anything more concise out there. I know some webdev sites have stuff like that, but they usually make sure you can't properly print it.

It would really help me out if somebody knew where to find it :)

Well, I still say if ever there's a question, look at php.net ;).

-[Unknown]

Burpee

The quick reference site is really great ... gonna print a lot of them soon.

I really appreciate the help and I can probably find the rest myself now. I'll just study the OOP from php.net :)

By the way, yes you are right. Perl isn't exactly object-oriented, but at least it's fun to see how they still got it to work. It's kinda neat to 'bless' your own classes.

[Unknown]

Quote from: Burpee on October 01, 2004, 07:38:54 PM
By the way, yes you are right. Perl isn't exactly object-oriented, but at least it's fun to see how they still got it to work. It's kinda neat to 'bless' your own classes.

Well, personally I've never much liked the extent to which some people go with OOP :P.

But, I do remember bless (I used to write in Perl)..

-[Unknown]

Saleh

QuoteI'll just study the OOP from php.net
http://www.php.net/manual/en/language.oop5.php
a good start for the basics of the new OOP model in PHP5 ..
however if you want more advanced examples look at:
http://www.phpvolcano.com/articles/php5/index.php

don't bother looking at the poor old model in PHP4, because it lacks the very basic aspects of real OOP :)

I was once like [Unknown], didn't like to program in OOP and I thought it was redundant! :P
but now, medium to large projects are done in OOP without hesitating :)
it help alot in re-usability and  maintenance..
anyway, it seems [Unknown] is changing his mind about it, because he is using it now in the installer of SMF and in the Package manager ..

We don't need a reason to help people

[Unknown]

I never said that using OOP for objects (after all, that's what it's intended for) is wrong, but I've always said and always will say that using it for everything is rediculous.

-[Unknown]

Saleh

#13
Quote from: [Unknown] on October 02, 2004, 02:59:04 PM
I never said that using OOP for objects (after all, that's what it's intended for) is wrong, but I've always said and always will say that using it for everything is rediculous.

-[Unknown]
I didn't say that you said it's wrong!
but you don't like it, that's what I understood from previous discussion, no ?

and hey, I do agree with you that using it in everything is an overdo ..
note that I said: "medium to large projects are done in OOP without hesitating" meaning in small projects procedual will do ;)

just thinking that SMF was made in OOP, makes me feel happy ;D :P

We don't need a reason to help people

Parham

hey i do remember posting a perl to php example... i have no idea where that went.  OOP is nice when you have major projects which need to be coordinated in independent parts.  one group may yell to another group that they need a function that does x, y, and z, and the other group can make it without asking a ton of questions.

OOP can look VERY nice.  I only realized this after being forced to program in OOP languages - Java and C#.  I've also realized how much better it is than something along the lines of scheme/lisp *barf*.  I have to program in scheme right now, and I've learned that I a) hate recursion and b) hate brackets :P.

[Unknown]

Quote from: Parham on October 03, 2004, 11:33:33 AM
b) hate brackets :P.

Well I hate you too!!!!!!

* [Unknown] runs off crying.

-[Unknown]

Anguz

Cristián Lávaque http://cristianlavaque.com

Parham

Quote from: [Unknown] on October 03, 2004, 04:16:56 PM
Quote from: Parham on October 03, 2004, 11:33:33 AM
b) hate brackets :P.

Well I hate you too!!!!!!

* [Unknown] runs off crying.

-[Unknown]

LOL... awww Unknown, I meant round brackets.. not your very sexy square brackets.... LOL

[Unknown]

Well, OOP can look nice but so can functional.  I think, personally, that PHP (functional) looks much better than C# and ESPECIALLY ASP.NET (both OOP.)

You silly British/Canadian English speaker.  It's:

() = parenthesis.
[] = brackets.
{} = curly braces.
<> = angle brackets.

And, if I built a house with "round" or "curly" brackets, would you want to live in it :P?

http://m-w.com/cgi-bin/dictionary?bracket

-[Unknown]

Advertisement: