Teen Programmers Unite  
 

 

Return to forum top

PHP

Posted by joshez [send private reply] at July 11, 2002, 03:59:11 AM

<?
for($x=0; $x < 1000000; $x++)
{
echo "start a PHP forum";
if($forum != $php)
{ echo "this site sucks cuz PHP doesnt"; }
}
?>
// -joshez

Posted by gian [send private reply] at July 11, 2002, 04:30:39 AM

I'm not sure if you're referring to this site software, or a PHP-specific forum, but surely any PHP specific messages could go into one of the forums.
If you are talking about this site software, then you must have masochistic tendancies, as we currently have pretty java-like templates!

Just because you seem to have some intention of being nasty, I'm going to nit pick.

1) Your code is not PHP > 4.1.0 compliant
2) Your signature/comment is outside the <?php
3) You use <? instead of <?php which only works if you specifically configure PHP to do so.

Posted by unknown_lamer [send private reply] at July 11, 2002, 11:23:58 AM

Short tags are evil because they screw up my nice xhtml documents (the <?xml ... ?> at the top...). Of course, I'm about to ditch PHP and release my Guile Scheme web programming library (object serializer, #- -# large text block echoing, session support, and whatever else I need).

Posted by vladimir_l [send private reply] at July 11, 2002, 03:34:34 PM

unknown_lamer what is scheme , i could never be bothered to break from my routine of C , Fortran and Java to find out... is it something to do with XML ??

-Vlad

Posted by vladimir_l [send private reply] at July 11, 2002, 03:41:47 PM

Joshez your site does not work you really should get better at the logic behind programming as your site has bugs , holes and hell knows what errors on it.

-Vlad ( I know nothing of PHP but I know JSP hahahha )

Posted by unknown_lamer [send private reply] at July 11, 2002, 04:02:20 PM

Scheme is a dialect of Lisp. It is a nice programming language...if you'd like to learn vlad, you can go to the Scheme LG.

Posted by gian [send private reply] at July 11, 2002, 04:05:28 PM

I was really quite impressed by Scheme... I never quite got Lisp, but Scheme makes more sense to me.

Posted by vladimir_l [send private reply] at July 11, 2002, 04:08:54 PM

ok I 'll have a go!

-Vlad

Posted by metamorphic [send private reply] at July 13, 2002, 06:55:39 AM

and your code indenting is really bad, how do you expect others to easily read your code when there is bad indenting! And you also have not declared or initialised the varialbe $forum.

Posted by gian [send private reply] at July 13, 2002, 07:25:38 AM

Indeed... also for newer versions of PHP he would need to use either $_GET["forum"] or $_POST["forum"].

Posted by vladimir_l [send private reply] at July 13, 2002, 09:12:55 AM

And why should there be a PHP forum on TPU , its just one of the many languages there are to control CGI. Even thought he seems to know nothing about PHP ( I dont either as I dont really like it ,not multipurpose enough ).

-Vlad?

Posted by CodeRed [send private reply] at July 13, 2002, 01:09:44 PM

Why would we start a forum specifically for PHP? IF we were going to do something like that don't you think we would choose C++ or Java before PHP? Seriously, what were you thinking?

Posted by metamorphic [send private reply] at July 13, 2002, 02:40:06 PM

i dunno about PHP being a CGI lang, always thought CGI, PHP and ASP were different and that CGI was a name given to a bunch of langs like c,c++, perl ect that were used on the net. is PHP a CGI lang? Besides, PHP, C++, C, Java, VB, and any other programming language is guess what? A type of programing! yep thats right! and guess what we have? go on, have a guess! A programming forum! yeah!!!!!!!!! wooohooooo!

Posted by Psion [send private reply] at July 13, 2002, 04:01:44 PM

CGI is a protocol for communication between a web server and external programs. PHP has nothing to do with CGI when it runs as part of Apache.

Posted by metamorphic [send private reply] at July 13, 2002, 06:50:51 PM

ah ok :) so PHP can be a form of CGI under certain circumstances?

Posted by taubz [send private reply] at July 13, 2002, 07:48:50 PM

CGI is just the glue between the server (eg Apache) and the program. Any file that can be executed can be used with CGI.

Posted by unknown_lamer [send private reply] at July 13, 2002, 09:59:44 PM

If you install the php cgi, it can be a cgi...#!/usr/bin/php4

Posted by vladimir_l [send private reply] at July 15, 2002, 11:26:06 AM

Aghh you know me I hate any form of web programming ... I think you can have CGI with Fortran I'll have a read about that seems fun .. anyway there should be an etiquitte of what can be posted on TPu. Strange non-valid syntax ( I'll take gians word for that ) PHP programs from people who want to start a PHP forum ... seriously there has to be an end.

Pehaps a solution is the " Stupid Comments and Questions " message board ? ( I am joking )

-Vlad

You must be logged in to post messages and see which you have already read.

Log on
Username:
Password:
Save for later automatic logon

Register as a new user
 
Copyright TPU 2002. See the Credits and About TPU for more information.