Hi ppl im looking for a bit of php experience ive read all the tutorials and made some simple scripts, plz reccomend some simplish scripts i should try and create!
There's the ever-popular login script. Also, I started out by connecting to a database and maintaining user-state (login session). Stuff like this never gets old. Also, you can look into the different methods of reading XML files.
I haven't had time to mess with it (plus i've moved into a .NET/Java approach) so I haven't spent much time with PHP in a while, but you can look into phpBB. It reeks of PHP.
Thanks ivan a little to advanced atm, im just looking for simple scripts that may or may not be used, but have some use and functionality and simpleish to script as a newbie php coder
function rand(1,3);// rand(1,2,3); would cause an error, too many arguments, heres the proper way to use it: rand($min_number, $max_number);
{
if (rand == 1){ // the comparison has to be in brackets and then you have to open the curly brackets {
print "<img src=\"1.gif\">"; // the " you were using closed the opening "... use a \ before to stop the php functions
}// close curly crackets
}
?>
What I would do is go through this forum, find a problem then try to fix it, then after look at the solution
i was thinking of that but then there are some very advanced scripts needing fixes on this site and i am not at that level of php coding yet!
although anything i feel i could try and fix whilst browsing this site i will give it ago, atm i'd rather say ... here is a scripts thats easy to write and a lot of people would be able to help you with...
thanks for idea though
Rafiki
I'll throw in my solution to a question, and then get "spanked" by the seasoned
programmers. But I don't mind. I learn something new each time.
My coding is getting better and better. Some of the problems listed are
sort of beyond my abilities though. But that's what makes this forum so good.
The important thing is to check your ego at the door and accept criticism like
water on a duck's back. Expert programmers like to point out mistakes, but
that will be to your advantage ... take whatever information they give out.
The other things I did when I was at your level of PHP is think of something that I know is possible in PHP and looked up the functions... Though if you look at the harder subjects on the forums some of them aren't actually that hard, and you kind of get used to them...
P.S What can you do with PHP at the moment? It will help with the suggestions.