DarkAngelBGE Posted January 4, 2004 Report Share Posted January 4, 2004 Just checking how many scripters here are that would participate in a contest. Quote Link to comment Share on other sites More sharing options...
The Prophet Posted January 4, 2004 Report Share Posted January 4, 2004 What is PHP? Quote Link to comment Share on other sites More sharing options...
DarkAngelBGE Posted January 4, 2004 Author Report Share Posted January 4, 2004 PHP, Hypertext PreProcessor (or originally "Personal Homepage") is a server-side scripting language to write dynamic webpages. Our forum engine is written in php, our websites will be, too.Basically you program your site with arrays, classes, functions, methods, variables and everything a real programming language has to offer (PHP5 will offer some more OOP stuff, so that it will be a full OOP-capable language like JAVA very soon) and send the code to your server.Then the server generates the html and sends it back to the browser, which displays it.An example:<?phpecho "<table><tr><td>Hallo Leute</td></tr></table>";?>will put a simple table with "Hallo Leute in it" to the screen.However, there are complex functions with classes etc.Here is one from the Task System I made for WFG (and which i am still developing):<?php/*+--------------------------------------------------------------------------| Wildfire Games Intranet| ========================================| by Tim [DarkAngelBGE] Koschuetzki| ========================================| Email: DarkAngelBGE@aol.com+---------------------------------------------------------------------------|| > Index module -- Manages the entire Task System| > Module written by Tim Koschuetzki| > Date started: 11th November 2003|| > Module Version Number: 1.0.5+--------------------------------------------------------------------------*/class cl_task_system{ var $task_html; //------------------------------------------- // CONSTRUCTOR FUNCTION // // Decides what to do based on the url vars // act and code, calls the Email Reminder // func and puts up the page's title as well // as the navbar stuff //------------------------------------------- function cl_task_system() { global $site, $std_func, $DB, $display, $INFO; //------------------------------------------- // Parse the header, left nav and right nav // to the Skinning System //------------------------------------------- $std_func->std_navbar( &$l_nav_cats, &$l_nav_items, &$r_nav_array ); $display->add_output( $site->html->header( $INFO['site_name'].' -- Task System' ) ); $display->add_output( $site->html->left_nav( $l_nav_cats, $l_nav_items ) ); $display->add_output( $site->html->right_nav( $r_nav_array ) ); //------------------------------------------- // Load the Skin Stuff //------------------------------------------- $this->task_html = $std_func->load_template( 'task' ); //------------------------------------------- // Decide what to do //------------------------------------------- switch ( $site->vars['input']['code'] ) { case 01: $this->new_task(); break; case 02: $this->view_task(); break; case 03: $this->edit_task(); break; default: $this->view_task(); } // Remind people of their tasks $this->email_reminder(); }...} //classIt is the master class for the Task System Module and its contruct function works out, which function to start upon some values of variables.Got a first insight ? Quote Link to comment Share on other sites More sharing options...
The Prophet Posted January 4, 2004 Report Share Posted January 4, 2004 Yes, I have always worked with HTML... Quote Link to comment Share on other sites More sharing options...
MarkT Posted January 4, 2004 Report Share Posted January 4, 2004 I'll have a go, as long as it doesn't take too much time (or Stuart will have my head).I'm curious, though, why was the task code all wrapped up in a class? Personal style considerations, or is it actually easier that way? Quote Link to comment Share on other sites More sharing options...
DarkAngelBGE Posted January 4, 2004 Author Report Share Posted January 4, 2004 It is actually easier, because that way I can just have another class if I make a new module (like the memberlist or so) and use functions...well for each function so to speak. Also, it looks more easier (the code) and more l337. You have PHP experience, mrk ? For how long ? Quote Link to comment Share on other sites More sharing options...
King Tutankhamun Posted January 5, 2004 Report Share Posted January 5, 2004 I don't know PHP, but my dad programs in it and ASP.NET also.For me I know HTML, but it has helped me a lot. Quote Link to comment Share on other sites More sharing options...
EKen132 Posted January 5, 2004 Report Share Posted January 5, 2004 Yeah the only thing I have a clue with is HTML. BTW, what is l337? I've seen that all over these boards? is it leet? Quote Link to comment Share on other sites More sharing options...
MarkT Posted January 5, 2004 Report Share Posted January 5, 2004 Erik: Yes. Tim: Well. I've been playing with PHP a while, but haven't really had much need to use it very often, seeing as I don't really have a web presence. About a year, perhaps. Used ASP for a couple of years, too. Quote Link to comment Share on other sites More sharing options...
Khazun Posted January 5, 2004 Report Share Posted January 5, 2004 Dipense, I may, im weighed down with my company a bit though at the oment. Quote Link to comment Share on other sites More sharing options...
CodeOptimist Posted January 5, 2004 Report Share Posted January 5, 2004 Anyone want an ASP contest? (yet another way to say sadly, "I don't know PHP".. *sigh*) Quote Link to comment Share on other sites More sharing options...
DarkAngelBGE Posted January 6, 2004 Author Report Share Posted January 6, 2004 Well I am thinking about allowing every possible language... Quote Link to comment Share on other sites More sharing options...
Khazun Posted January 6, 2004 Report Share Posted January 6, 2004 and what would we be coding/making? Quote Link to comment Share on other sites More sharing options...
SoggyFrog Posted January 7, 2004 Report Share Posted January 7, 2004 I have a book which I could put to good use. I doubt I'd do very well, but seems like a good chance to develop some skills. Quote Link to comment Share on other sites More sharing options...
Khazun Posted January 7, 2004 Report Share Posted January 7, 2004 yes, but it will probably be like a complex thing-lol Quote Link to comment Share on other sites More sharing options...
DarkAngelBGE Posted January 7, 2004 Author Report Share Posted January 7, 2004 Well programming is actually more mathematics so maybe we want to allow all languages, dunno. Quote Link to comment Share on other sites More sharing options...
CodeOptimist Posted January 7, 2004 Report Share Posted January 7, 2004 I voted yes, in case you decide to allow all languages Quote Link to comment Share on other sites More sharing options...
DarkAngelBGE Posted January 8, 2004 Author Report Share Posted January 8, 2004 Cool, Nathan.Well what languages would come to mind ?PHP, ASP, C, C++, VBA perhaps, Cobol, PascalHmm Quote Link to comment Share on other sites More sharing options...
Khazun Posted January 8, 2004 Report Share Posted January 8, 2004 It depends. Maybye have different catagories, eg PHP cat, ASP cat, masters cat (any language) Quote Link to comment Share on other sites More sharing options...
Zeusthor Posted January 10, 2004 Report Share Posted January 10, 2004 sample contest: create a password list generator that takes the input of minimum chr and maximum chr, whether it should also generate uppercase, etc...good? Quote Link to comment Share on other sites More sharing options...
Khazun Posted January 10, 2004 Report Share Posted January 10, 2004 yes, its nb Quote Link to comment Share on other sites More sharing options...
DarkAngelBGE Posted January 10, 2004 Author Report Share Posted January 10, 2004 What do you mean by nb ? Quote Link to comment Share on other sites More sharing options...
Licensed Devil Posted January 10, 2004 Report Share Posted January 10, 2004 If only Mark Stoker was here, that would make the competition a competition and not a forgone conclusion Quote Link to comment Share on other sites More sharing options...
Khazun Posted January 10, 2004 Report Share Posted January 10, 2004 nb=not bad Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.