Forum Moderators: coopster

Message Too Old, No Replies

When does the fog start to clear

         

Kysmiley

11:57 pm on Dec 8, 2004 (gmt 0)

10+ Year Member



Im still new to PHP and am reading all i can and playing as much as I have time to. The more I read though, itg seems the more confused I get. Just when I think I understand somthing, i find some other way that is totally different and, BANG i feel like I am further behind in my understanding than I used to be.
Anyone have any offers suggestions to wshen the clouds clear up some.
Pat

ergophobe

2:14 am on Dec 9, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



One of the best thread titles ever.

I can't say when the fog clears. When you start in on PHP, you have such a small "vocabulary" and such poor command of the syntax that when you start in on a script, you do things in the most roundabout ways with tons of errors. Bit by bit, it will be less roundabout and have fewer errors. Eventually, two things will happen

- you'll know the basics so you won't fight with that and only hte new parts will seem foggy. That's manageable.

- you'll develop better means of approaching problems, so you'll cut through the fog much more quickly.

One "problem" with PHP is that it is a highly featured language. Often you can spend hours doing something only to find that there's a built-in function that does the same thing.

Anyway, I know it's dreadfully dry, but the first commandement is

1. THOU SHALT DOWNLOAD THE MANUAL AND READ IT

Not read it top to bottom, but hunt around and peruse it when you have the chance. If you're working on code in the meantime, you'll have a lot of "So that's the way to do it" moments.

If you spend a few hours a day on PHP for a couple of months, you should have a pretty good handle on the basics. Less if you know other programming languages, possibly more if you really aren't a programmer by nature.

Like anything, though, you're always learning (should be anyway). You only have the fog clear entirely when you quit pushing yourself to learn more. It's managing the fog that's the key!

jatar_k

4:39 am on Dec 9, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



I can't really add much, that's a great answer but one point

>> THOU SHALT DOWNLOAD THE MANUAL AND READ IT

AND OFTEN!

I run through there anytime I have the chance, new functions, changes to old functions, you never know what you will find.

Also read the Changelog for all the releases. It is a quick shortcut to knowing what was added and changed, you still need to peruse the manual often though.

I guess I have actually broken that rule, I have never downloaded the manual and I have never bought a php book, go figure. ;)

ergophobe

6:10 pm on Dec 9, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Actually, I hesitated when I wrote that - I got in the habit of downloading the manuals when I had a dialup connection.

When I got a high speed connection, I found a site search of php.net was pretty good.

Still, one of the things about the .chm help file is that you can include things like punctuation marks in your search and the layout is just better.

Patrick Taylor

6:43 pm on Dec 9, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



... am reading all i can and playing as much as I have time to

Speaking as a distinctly untalented scripter (for whom the fog will never clear) I'm pretty sure you have a sound strategy there. One suggestion I would add is to remain doggedly persistent when the going gets tough, and never be afraid of making a fool of yourself in great forums like this one.

mifi601

6:50 pm on Dec 9, 2004 (gmt 0)

10+ Year Member



I agree with the 'great title' :)

For me downloading the DW extension has been a great help. it's always a little outdated, but since it's right there I always use it over and over and over again.

the fog slowly clears - and above? clouds :(

jatar_k

7:01 pm on Dec 9, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



>> never be afraid of making a fool of yourself in great forums like this one

there are never any fools here. Don't let asming questions be daunting in any way. Forums are about community and community members are dedicated to helping each other.

There are also no stupid questions.

For every person who asks a question there are 10 others who are too embarassed to ask the same one. By helping yourself you are often silently helping countless others.

You only look like a fool when you don't ask. ;)

Patrick Taylor

8:15 pm on Dec 9, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



For every person who asks a question there are 10 others who are too embarassed to ask the same one. By helping yourself you are often silently helping countless others.

Well said. That's exactly what I meant.

Kysmiley

12:58 pm on Dec 12, 2004 (gmt 0)

10+ Year Member



Thanks everyone for the words of encouragement. i just wish there was a php manual i could download like in PDF format or an e-book that i could update every week or month. Somthing that when i find a link to what i am loomking for it would take me to it in the book not try looking on-line for it. I am an over the road truck driver so much of my spare time sitting at shippers or recievers is used reading and playing. May-be one of these days i will figure out how to download and setup PHP on y windows xp laptop so I can test and debug without having to be on line. At times go 3 or 4 days with out being able to find a truckstop with wifi. Anyway thanks again for the input.
Pat

baze22

3:12 pm on Dec 12, 2004 (gmt 0)

10+ Year Member



There are some packages out there that will install it for you. I tried apache2triad and although it didn't set things up the way I was used to, it did work "out of the box". There's another thread here [webmasterworld.com...] where I saw mention of another package that might work too. As for the docs, I've downloaded acopy of PHP and MySQL docs, they are probably the most used links on my tool bar. (still can't rememeber which comes first needle or haystack (for which function) ;))

baze

mincklerstraat

3:27 pm on Dec 12, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Oh yeah baze22, that's my biggest gripe with PHP: needle / haystack order not terribly consistent. Every day I'm going to the php manual at least once to see what is what. Maybe enough of a reason to use a more 'active' IDE that gives you this information in a hover or a panel.

I just use the thing that used to be called 'mycroft' in Firefox for looking stuff up in the manual. Check out that box just left of the address bar - if it doesn't have a drop-down option 'add engines', then you can install Mycroft. This allows you to do various searches. PHP has two options - one for looking up functions, another for the php.net site in English - I have both. Very, very handy - add an icon to your toolbar for opening a new tab, click on that, type in the function you need, and it's there in its current form with all user-contrib notes. Also be sure to get the Webster Thesaurus option - this will help you improve your writing in English, and learning to write better will help you learn to think better - good thinking and good writing are quite interrelated. Good for finding the 'right' word (which usually isn't a 'big' word).

If you're not consistently broadband connected and have Windows, be sure to get the 'extended' chm since it has the handy user notes (xchm doesn't deal well with this unfortunately - the devs say they're coming up with a php-based solution).

Adrian2k4

3:50 pm on Dec 12, 2004 (gmt 0)

10+ Year Member



Here a few things i would recomend from my PHP-startup:

1. Get PHP to work on your PC/Notebook/Homeserver:
I use XAMPP from [apachefriends.org...] - just unzip it and it works on Windows.

2. Get yourself a good development environment for PHP. (i.e. an editor specially designed for php) I would recomend the Zend Development Environment (ZDE) - [zend.com...] - its not exactly free, but i think its worth the money. (they do spetial prices for students...)

3. If your not familiar with a new topic of PHP google the web for a tutorial. But be careful using them - if you want to learn something dont just copy the code out of the tutorial!

4. Try out everything! if you've never used a function, write a simple script that tests it - its easier to understand suff if you see it in action. at the moment im trying to grasp the GD-lib image functions in php. what i do to teach myself this is i'm writing a script that creates picture galleries automaticly, even if i know there are meny of these scripts out there waiting to be downloaded. but if i download a ready-made-script i wouldn't learn how it works.

5. dont rush yourself! do some simple scripts at first just to get the hang of scripting php.

hope i could help & regards
adrian

PeteM

11:12 pm on Dec 12, 2004 (gmt 0)

10+ Year Member



I've been PHP coding for about 3 months now (part time) and most of the fog has cleared (still can't work out the XML handling).

I don't find the php.net that easy to understand and prefer to rely on my Visual Quickstart Guide - PHP for reference.

Another tip is to look at scripts that others have written. Look at each line of code and try and understand how it works.

As others have said "the only stupid question is the one you don't ask".

Good luck, Pete

Patrick Taylor

11:53 pm on Dec 12, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Actually, I think the fog is good for the brain, especially as you get older. Learning PHP, as well as contributing in a practical way to one's web development projects, is an excellent mental discipline, especially if one is not too gifted at it - rather like latin. Some times I wish I could see the answers in a flick (like so many youngsters seem to be able to do) and other times I comfort myself with the idea that the enjoyment and challenge of learning PHP will help to stave off mental decline (to add to the experience, also throw in table-less W3C validating page design - with CSS - and search engine optimisation. For the full effect, why not create a truly dense fog?).

grandpa

3:09 am on Dec 13, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Kysmiley -

i just wish there was a php manual i could download like in PDF format or an e-book

You might take a look in the direction of O'Rielly (sp). I found a complete chapter on-line from a php book that really helped me understand the basics of sessions. It was frustrating not to be able to read the other chapters with regards to implementation, but hey, no credit card will do that for ya. Still, I was armed with enough info to be dangerous - and to go looking in other places for what I wanted to know.

Fog? It's been there as long as I can remember.

I'm not plugging any services, and hope I didn't step on the TOS too badly

ergophobe

3:52 am on Dec 13, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Ky

In your situation, definitely definitely definitely set up a server with Apache/PHP/Mysql on your machine as suggested.

Also definitely definitely definitely download a manual. I recommend the windows help or the extended windows help (includes user comments)

[php.net...]

If you want to print the whole manual (not recommended), there is a printer-friendly version at

[us3.php.net...]

There's so much in there you'll never use (like the function definition for many different database systems). A waste of paper most likely.

Kysmiley

11:42 am on Dec 13, 2004 (gmt 0)

10+ Year Member



Thanks everyone, yep i had downloaded the manual sometime ago and do go to it often looking for information. But im lazy, LOL i was hoping for an ebook or somthing that i could do a search on like on-line and find information I need faster. Mind you having the go thru the manual like i do looking for information helps me learn things and see things i would not have noticed by doing a search for a specif item, (function). As for setting up PHP in my windows i will do that so i can play more on the road and debug without having to connect on line
Pat

baze22

12:37 pm on Dec 13, 2004 (gmt 0)

10+ Year Member



You can download the docs in help file format with the link ergophobe gave above, more specifically:

[php.net...]

It will let you search.

baze

Kysmiley

2:39 pm on Dec 13, 2004 (gmt 0)

10+ Year Member



Thank-you once again, you guys and gals are the best. I found and downloaded the manual again that allows me to search and use the hyper links to. Now to read on how to setup the php on my winxp laptop for the road
Pat