Web Hosting Talk







View Full Version : Your first ever PHP Application?


chillipc
07-30-2006, 04:22 PM
just wondering what was peoples first ever php application that they wrote whilest they where learning it and how long did it take you?

mine was well i am still learning but it's good to hear what people have to say lol and what problems they ran into when creating it etc..

LancerBrad
07-30-2006, 04:42 PM
<?php
// Hello World?

$var = 'Hello World!';
echo($var);

?>

Classic first.

ThatScriptGuy
07-30-2006, 06:37 PM
Mine was...Hmmm.....If I recall correctly, my first was just an image rotator. I was trying to learn about arrays, so I manually made the array with filenames and then displayed a random image from the array on page load.....

Good times...

arkin
07-30-2006, 06:43 PM
Mine was a basic user system for a gambling site run by a friends dad.

I got a 5% payout each month, was nice.

Christian
07-30-2006, 06:43 PM
Basicly, more or less like LancerBrad's example. :D j/k

I think it was a newsletter sender script. :)

EighthStudio
07-30-2006, 07:04 PM
My first was a basic News Viewing script while I was learning to work with DataBases.

MGCJerry
07-30-2006, 09:28 PM
A child roller for my RPG. Took about 3 hours.

http://www.2thextreme.org/Utilities/ChildGen

Just a note... The mortality rate on this thing is insane. ;)

horizon
07-30-2006, 10:14 PM
My first PHP programming was this:


<HTML>
<BODY>
<form method="post" action="test.php">
<input type="hidden" name="action" value="test_form">
<input type="text" name="full_name">
<input type="submit" name="submit" value="submit">
</form>
</BODY>
</HTML>

Then, from test.php file,


<?php

if (isset($_GET['action']) || isset($_POST['action'])) {
$action = (isset($_POST['action'])) ? (stripslashes(trim($_POST['action']))) : "";
} else {
$action = "";
}

if ($action == "") {
$action = "test_form";
}

if ($action == "test_form") {

$full_name = $_POST['full_name']);
$submit = $_POST['submit'];

if (empty($full_name) || empty($submit)) {
die ('Error when entering your full name.');
} else {

echo $full_name;
}
}

;)

null
07-30-2006, 11:33 PM
<?php phpinfo(); ?>

;)

chillipc
07-31-2006, 03:37 AM
some good posts there and some funny classic ones too, so roughtly how long do you think it would take me to learn php if i study it 2-4 hours a week 5 days a week? i have many books etc.. from html to php for dummies and the web wizzard guide.

ThatScriptGuy
07-31-2006, 04:02 AM
Longer than the number you've got in your head -- that's for sure...

4 hours a week....4 weeks a month...16 hours a month.......quite awhile. If you stick to your regimen, you should be able to pump out some basic code quickly after a month.....Remember not to get ahead of yourself. Don't skip strings and concatenation and go straight into Smarty multi dimensional arrays.....
Just stick with it til you've got it....

fozzy
07-31-2006, 08:59 AM
I probably did a 'hello world' script, but the first 'real' script I tried to write was a script to:
1. find all files in a directory
2. output the list of files to the screen as links (the directory help pictures)

I even asked for help with it on this forum:)

I think I also got help from a friend on the script. I was really hopeless at the start but I got better and I got my current job because I know PHP:)

mycws
07-31-2006, 11:37 AM
<?php phpinfo(); ?>

;)

Haha. That was mine too!

mkostadinovic
07-31-2006, 02:06 PM
<?php phpinfo(); ?>

B-) mine too!

carolinahosting
07-31-2006, 04:17 PM
My first was a auction written in php that uses mysql for the DB. I based my auction off everysoft's perl version that I worked on (community support) for several years. I was pretty good with perl so learning php took just a good book and a weekend to read it.

riverpast
07-31-2006, 04:33 PM
My first was my shopping cart.

tim_w
07-31-2006, 05:12 PM
<?php
// Hello World?

$var = 'Hello World!';
echo($var);

?>

Classic first.

Ditto that. Oh the good days.

icex
07-31-2006, 10:06 PM
my first was a full CMS for my counter-strike clan.. looking back, really bad coding and a lot of security flaws lol

MrMan
08-01-2006, 10:55 PM
Mine was a DVD site. Users can add to cart, delete, checkout, as well as a search function to search by title, movie star. Sessions were kept in a database. Took two weeks, but I already knew HTML and have a C++ programming background. It was also pretty easy because the database handled most of the work.

azizny
08-02-2006, 01:10 AM
My first project in PHP and its still pretty big if you look at it.

Most coding I learnt from O'relly, google search and some advanced coders:

http://www.holdshort.com

it was for a client and charged him $3000 since it was my beginning.

Peace,

Devin-VST
08-02-2006, 08:47 AM
my first was a full CMS for my counter-strike clan.. looking back, really bad coding and a lot of security flaws lol

I knew someone here had to mention counter-strike...my first was some script to show game stats on a webpage...lol

Renard Fin
08-02-2006, 11:29 AM
Hum... first ever application in PHP (serious app... not just snippets) i'd say it was a community management website. When I remember .... I wasnt even using the $HTTP_POST_VARS/$HTTP_GET_VARS arrays but plain variables .... lot of security flaws in this application and it would need a lot of tweak to check back ......... but was good old times :P

Then I moved to something more serious, to a CMS i'm writing now in object and reccursion $var->my_wrapper->my_object->my_method(); :D and thinking to update it to a MVC right now ... kinda having fun in this :)

orangecube
08-02-2006, 02:28 PM
B-) mine too!

And mine too, followed by the hello world :)

tree-host
08-02-2006, 03:04 PM
Mine was a simple script to pull data from mysql into cvs format so i could get a vb application to get the info.

ruski
08-03-2006, 12:33 AM
Best way to start learning is edit other peoples applications, mine was a control panel for stat viewing of an online game

horizon
08-03-2006, 12:48 AM
Oh ! boy it's now turning into a first-edited subject. :)

Mine was, (and still is), under a photo gallery and on an e-commerce script.

Lev
08-03-2006, 02:57 AM
Mine was this online RPG game with the source available to the public although it wasn't great coding style. I learned a ton from editting it and creating new features for it and stuff like that.

Confined
08-03-2006, 03:11 AM
Mine was a fully fledged photo gallery for a church. lol
second was a hierarchy based client/project management system using mysql for backend data.

Czaries
08-04-2006, 07:03 PM
my first was a full CMS for my counter-strike clan.. looking back, really bad coding and a lot of security flaws lol

Mine too... That's kind of funny, actually. I made a whole user system with profiles showing pictures and computer stats and everything. Knowing what I know now, the system I built way back when was _horribly_ coded, but that was back when PHP3 was new...

PyroSols
08-04-2006, 07:40 PM
I had just started out learning perl, when I someone mentioned some language called PHP. So I thought I'd check it out, the ability to freely mix code and html really simplified things a great deal.

I ported a rating script I'd written in perl to PHP. That was my first php application also the first time I used a database to store information. My perl script depended on a flatfile.

This was a while back, php 4 had just been released.

dinesh
08-05-2006, 05:04 PM
<?php phpinfo(); ?>

;)

Mine too ;)

Dan Zelniker
08-05-2006, 07:24 PM
My first code was
<?php
phpinfo();
?>
and my first php system was file upload system:)

horizon
08-05-2006, 07:37 PM
and my first php system was file upload system

How sad for me ... this was one of my last one actually. :)

firestarter
08-06-2006, 12:37 AM
phpinfo for me ;)

ochiba
08-14-2006, 09:59 AM
true first: hello world.
first without a tutorial: a file uploader.

battye
08-14-2006, 10:05 AM
My first program was a modification to a lyrics script called ContentMonster. My MOD grabbed the last few (I think 5) lyrics from the database and displayed them as links. :)