PDA

View Full Version : Php


omni-m00gle
05-15-2001, 10:01 AM
What does the PHP thing actually do on the board?
?????

vergil
05-15-2001, 10:05 AM
PHP syntax.
It color codes certain parts of the script just like any PHP-Supported server would do to a .phps file (Personal Home Page Source/Script).

Ever used a syntax editor.. it just reads the format of the script then colors it for easy editing like variables might be blue or some color etc.

print("Hello, Graal Communication Center!");

omni-m00gle
05-15-2001, 10:10 AM
Oh, ok. So it's kinda like the code command in other boards?
if (playerenters) { shootmyself;}

vergil
05-15-2001, 10:11 AM
..er.. sort of.. i dont think the old UBB did syntax coloring, it was just a general coding format to keep the spaces and such in line

KJS
05-15-2001, 10:12 AM
php also allows to read and write from different files. That is how the messages are loaded from the board and your pm's
if your wondering more about php and how to use it goto

www.php.net

vergil
05-15-2001, 10:13 AM
yes, and it's what I'll be writing the Graal Card trading system with :D
actually it reads the PMs, messages, forums, and everything else out of a mySQL database

omni-m00gle
05-15-2001, 10:13 AM
I guess Ill learn some PHP. Sounds like an advanced javascript and fun :D

05-15-2001, 10:13 AM
Well, wow. I am certainly confused.

vergil
05-15-2001, 10:14 AM
PHP is a cross-platform serverside HTML generator

The disadvantage is that it's not dynamic in that you can't do something like write an efficient chat..

omni-m00gle
05-15-2001, 10:19 AM
Originally posted by vergil
yes, and it's what I'll be writing the Graal Card trading system with :D
actually it reads the PMs, messages, forums, and everything else out of a mySQL database \
Too much free time :P

EThor
05-15-2001, 10:34 AM
Originally posted by Garnet_Mithica
Well, wow. I am certainly confused.

Yes...me too :(

IceHawk
05-15-2001, 10:51 AM
If I was not so lazy, I would learn it.

Hawk
05-15-2001, 10:53 AM
Originally posted by Garnet_Mithica
Well, wow. I am certainly confused.
Sounds confusing, but I am sure it will be easy to learn :D

WhoopA
05-15-2001, 11:29 AM
PHP stands for "PHP: Hypertext Preprocessor." (Yeah, I know it's cyclic - just like "GNU - Gnu's Not Unix") It's a server-side parsing language that allows for dynamic HTML content. Kind of like Perl, but a [heck] of a lot easier to understand, write and debug. Sites like php.net and PHPBuilder (phpbuilder.com) have more information on this.

05-15-2001, 12:22 PM
the PHP thing, it adds <PRE></PRE> tags so all the text in between shows, but doesnt affect it, let me try a test



<?php

$wing = "cool"

?>

<?php $wing = "cool" ?>

I just tried the following code above...

05-15-2001, 12:23 PM
Hmm, it doesnt seem to work,

$wing