(Link to AcmlmWiki) Offline: thank ||bass
Register | Login
Views: 13,040,846
Main | Memberlist | Active users | Calendar | Chat | Online users
Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album
05-31-24 08:45 AM
0 users currently in Programming.
Acmlm's Board - I3 Archive - Programming - n00b PHP projects / exercises New poll | |
Add to favorites | Next newer thread | Next older thread
User Post
Tarale

2710
Affected by 'Princess Bitch-Face Syndrome' ++++!!
Persona non grata


 





Since: 11-17-05
From: Adelaide, Australia

Last post: 6311 days
Last view: 6311 days
Posted on 08-25-06 11:47 PM Link | Quote
Hello!

I'm re-learning PHP. I used to use it a little years ago, but it seems that I've forgotten (and given that period of my life, I sometimes wonder if I've deliberately repressed...) pretty much everything I knew...

I'm re-learning it, but I'm just wondering, what would be some good real beginner projects to try when I'm a little more familiar with it?

Are there any "exercises" or something you can think of that will help me learn? At the moment my learning is a little un-structured and goal-less (I have an eventual goal in mind but I think I should learn some basics first). I'm sure if I were enrolled in a course of study, I'd be taught something and then have to perform a little exercise based on it, but that doesn't so much happen when you try to teach yourself.

Any clues?
neotransotaku

Sledge Brother
Liberated from school...until MLK day








Since: 11-17-05
From: In Hearst Field Annex...

Last post: 6314 days
Last view: 6311 days
Posted on 08-26-06 01:54 AM Link | Quote
PHP Tutorial by tizag.com

This is the best tutorial for any language/scripting language I've ever seen. Quite comprehensive and begins in a logical order starting with stuff you most likely need first.

As for projects, if you have an idea of what you want PHP to use, then perhaps you can code a small part of the functionality.
Boom.dk









Since: 11-18-05
From: Denmark

Last post: 6329 days
Last view: 6311 days
Skype
Posted on 08-26-06 11:48 AM Link | Quote
I've never learned much from tutorials, to be honest. Back when it was a mystery to me how webpages could change all the time, I remember downloading a mailer script. At first I just used it, but then I got curious about how it worked, and I opened it up in notepad and began to fiddle with variables and stuff. Then I got really interested in PHP. I got myself a sample guestbook script that used MySQL. At the time, I had no idea what it was. Then using the query strings in that script, I created a login system and many other things. One of the reasons it was possible for me, is that PHP has an excellent online documentation.

I was really interested in making webpages and that was what made me keep going. I remember sitting up many hours past my bed time trying to get stuff to work. That may also be the reason why I haven't learned C++ yet. I've never had anything I really wanted to do.

Anyway, my point is that, to me, at least, it's a lot easier to learn a language when you have something you want to accomplish. Also, should you ever have any questions about PHP, you are more than welcome to ask me, and I'll do my best to help.

If you need a project idea, you could try to do something like a blog or guestbook. Whether you want to use MySQL or not is up to you, but I really recommend it. You'll probably need it later anyway.
Tarale

2710
Affected by 'Princess Bitch-Face Syndrome' ++++!!
Persona non grata


 





Since: 11-17-05
From: Adelaide, Australia

Last post: 6311 days
Last view: 6311 days
Posted on 08-26-06 12:59 PM Link | Quote
Well, the primary reason I am learning PHP is that I wish to redo chibitaryn.net, which I've been lazy with for far too long now.

I've been using Movable Type (perl based) at the moment, but want to move to something that's a little bit of a combination between a "blog" style and a "gallery" style...

I also want to make it look pretty.

So far I've learned a few bits and pieces, but nothing in the ballpark of being able to do what I'd like to...
Deleted User
Banned


 





Since: 05-08-06

Last post: None
Last view: 6312 days
Posted on 08-26-06 01:03 PM Link | Quote
The way I used to learn php is through the acmlm boards,I just open the files see whats written and know what does what,now I know how to do mysql queries and how to change stuff without destroing a php file.So practicaly acmlm with his boards teached me php

Also "www.php.net" has a few sample codes you can read and learn what they do.

Hope that helps


(edited by the_man on 08-26-06 12:03 PM)
Cellar Dweller +

Red Koopa









Since: 11-18-05
From: Arkansas

Last post: 6320 days
Last view: 6311 days
Posted on 08-27-06 12:39 AM Link | Quote
If AcmlmBoard is used for learning PHP, it should be done with a great deal caution. AcmlmBoard uses a lot depreciated PHP features(eg. unquoted string subscripts), lacks through error checking, lacks through input valadation, generates poor HTML(eg missing closing tags), and has just plain bad style.
MisterJones

Tooky








Since: 12-08-05
From: Mexico

Last post: 6401 days
Last view: 6337 days
Posted on 08-27-06 02:09 AM Link | Quote
Try to generate a database through sql (yeah, I meant the language, in case mysql is not the db in use), and then display its contents within a generated html table.

Try to learn a little of regular expressions if you want to make templates that will be read from external files and be parsed to its proper data (ie, {title} gets replaced by the actual website's title), and stuff like somewhat complex bbcode parsing.

Get used to work with associative arrays.

Think yourself what needs to be done for your blog.
Tarale

2710
Affected by 'Princess Bitch-Face Syndrome' ++++!!
Persona non grata


 





Since: 11-17-05
From: Adelaide, Australia

Last post: 6311 days
Last view: 6311 days
Posted on 08-27-06 02:31 AM Link | Quote
Well, guys, I'm not asking for help with the site

I was wondering about some smaller "mini" projects that I could try to do to challenge myself / learn. The site's a bigger project.

I'm thinking that one "mini" project I might set myself is to work out how to have layout, css and content all seperate, but easily managable... after all, this is what you're apparently supposed to strive for nowadays with web design.
neotransotaku

Sledge Brother
Liberated from school...until MLK day








Since: 11-17-05
From: In Hearst Field Annex...

Last post: 6314 days
Last view: 6311 days
Posted on 08-27-06 03:20 AM Link | Quote
why don't you try to build a mini-google homepage? like, have a few modules that takes care of a task list, contact list, calendar? this is assuming you already have a database foundation for chibitaryn.net.

It might help to tell us what you have to work with. I have a few ideas that use MySQL. The biggest problem is a means of maintaining state to do something complicated. A simple rudimentary project is to build a page that does a function, like calculate the fibonnaci (sp?) sequence to a certain place or draw pascal's triangle to a certain depth?
Tarale

2710
Affected by 'Princess Bitch-Face Syndrome' ++++!!
Persona non grata


 





Since: 11-17-05
From: Adelaide, Australia

Last post: 6311 days
Last view: 6311 days
Posted on 08-28-06 02:17 AM Link | Quote
Blah. Posts gone!

But yes, I have mySQL and PHP. I have unlimted mySQL which is good

The things I've made so far are here and are a reflection of how little I know thus far.

I would like to add things to the calendar (ie events) and Xkeeper has suggested I look into arrays, which I've read up on but not played with yet (reading made sense, will play with arrays and put them up in my folder full 'o crap too).

While the reading makes sense, I don't know how to actually apply it to the calendar as yet. I'd be interested in seeing the post that is now gone that was after this one that I'm now re-doing cause I think it gave me a clue...
neotransotaku

Sledge Brother
Liberated from school...until MLK day








Since: 11-17-05
From: In Hearst Field Annex...

Last post: 6314 days
Last view: 6311 days
Posted on 08-28-06 03:05 PM Link | Quote
let see if I can remember what I posted...

I believe you can use this site as an idea of what you can do with PHP. It was my software engineering project I did about two years ago.

As for doing events or highlighting dates on calendar and getting array practice in PHP, you can make a table that holds events in the MySQL database (perhaps columns could be date and event for simplicity). Then, use PHP to query the MySQL for that information. Then, as you generate the HTML code to draw the calendar, you can do a check if the current date has an event, then display event. Similarly, if the current date is today's date, then generate the highlight code.
Ogre

Paragoomba








Since: 07-12-06

Last post: 6402 days
Last view: 6402 days
Posted on 08-29-06 10:32 AM Link | Quote
Well, the best way to learn is different for everyone. I can't even properly explain how I learn things they way I do, I basically come up with an idea I want to accomplish and already have a vague idea of how it needs to be done, then I go find the exact command.

Try and think of what kind of requirements you're going to set for yourself for the site, and build from there. If you want gallery setups you'll need to be using for( ) loops with your arrays.

If you just want ideas for commonly used scripts to test your skill, try making any of the following:
Random password generator (Not a cheap MD5 style)
Text to Image display
Email verification script
Cookied login w/ password checks
SQL refunctioning for query counting*

* As in how numerous websites run SQL counts for when a page if finally loaded and displays it. Requires a new function to be made.
Tarale

2710
Affected by 'Princess Bitch-Face Syndrome' ++++!!
Persona non grata


 





Since: 11-17-05
From: Adelaide, Australia

Last post: 6311 days
Last view: 6311 days
Posted on 09-02-06 10:25 AM Link | Quote
Well, I think I'm learning... sort of.. but failing to actually *comprehend* anything that has to do with maths. I'm not sure if there's any advice that anyone can offer me with that one. I can do the maths stuff by rote; but I don't "get" it as such.

But I'm still going with it all. I don't get to do much or think about it even much during the week, which might be part of the comprehension issue.
FreeDOS +

Giant Red Koopa
Legion: freedos = fritos








Since: 11-17-05
From: Seattle

Last post: 6311 days
Last view: 6311 days
Posted on 09-02-06 08:59 PM Link | Quote
I always found making simple message boards in a single day was a good passtime I haven't dealt with PHP for a couple years now either, i've been considering getting back into it.
Tarale

2710
Affected by 'Princess Bitch-Face Syndrome' ++++!!
Persona non grata


 





Since: 11-17-05
From: Adelaide, Australia

Last post: 6311 days
Last view: 6311 days
Posted on 09-04-06 09:11 AM Link | Quote
I made some basic functional things. Some calculators and converters. Nothing tricky so far, but I wanted a slacker way to calculate my average speed when I go for a walk -- the idea came to me, curiously enough -- when I was on my walk!

I need more mini-projects like that. That made me think for a second..... it also made me realise that the only thing I remember about learning Physics is that I sat in the back of the classroom and was a general nuisance to the teacher. I remember that I was taught how to calculate speed/velocity.... I remember that I learned it. And now it seems I had completely forgotten!

EDIT: Oooh I'm clever. I combined stuff I learned. Now my converter from kg to pounds goes back from pounds to kg too. Hehehe...


(edited by Tarale on 09-04-06 10:00 AM)
candrodor

Red Goomba


 





Since: 12-31-05

Last post: 6398 days
Last view: 6398 days
Posted on 09-05-06 01:29 PM Link | Quote
I'm not here with a tip for exercises or anything... sowwy.

But I don't come emptyhanded ;D

In calendar, I noticed this:
//TABLE (EWWWWWWWWWWW ICKY ICKY ICKY BAD)

I know tables can look horrific, but one nice thing about PHP is that you nip out of PHP mode for a bit, do some HTML, and then go back to PHP when you need it.

so

<?php
LALALACODE HERE
?>
<horribleickytablebadnesshere>
~~~
</horribleickytablebadnesshere>

<?php
Some more php
?>

Then you're not echoing out whole tables through PHP. Just extra typing.

Also, you can do things like
<TD ALIGN=CENTER WIDTH=20<B><FONT COLOR=WHITE><?php echo ($day)?></FONT></B></TD>
or whatever, to put php stuff in the middle of HTML, and then come back out again.

I know you can do everything through php, it's just easier this way. It all shows up as HTML on the user's browser anyway. ^^
HyperHacker

Star Mario
Finally being paid to code in VB! If only I still enjoyed that. <_<
Wii #7182 6487 4198 1828


 





Since: 11-18-05
From: Canada, w00t!
My computer's specs, if anyone gives a damn.
STOP TRUNCATING THIS >8^(

Last post: 6312 days
Last view: 6312 days
Posted on 09-05-06 06:54 PM Link | Quote
Yeah, you can even do something crazy like this:
<?php
doSomethingCool();
?>
<form method="POST" action="<?php echo $PHP_SELF; ?>">
[...]
</form>
Tarale

2710
Affected by 'Princess Bitch-Face Syndrome' ++++!!
Persona non grata


 





Since: 11-17-05
From: Adelaide, Australia

Last post: 6311 days
Last view: 6311 days
Posted on 09-06-06 10:08 AM Link | Quote
Meh, I know I should go in and out of PHP more, but I dunno, I guess I'm partially doing it to force myself to be mindful of syntax.... syntax that I repeatedly break anyway. I need to stop doing that.

On the bright side, I only broke syntax once last night, when I made my Temperature Converter

I'm enjoying making converters -- it's forcing me to use the knowledge I've learned independent from the base learning exercises and actually ensuring the data is sinking in better. Which is why I guess I know the importance of exercises to my learning process -- simple challenges to ensure stuff actually "sticks" in my head
Add to favorites | Next newer thread | Next older thread
Acmlm's Board - I3 Archive - Programming - n00b PHP projects / exercises |


ABII

Acmlmboard 1.92.999, 9/17/2006
©2000-2006 Acmlm, Emuz, Blades, Xkeeper

Page rendered in 0.090 seconds; used 450.18 kB (max 579.54 kB)