Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Bomy Island Main Forum (https://forums.graalonline.com/forums/forumdisplay.php?f=80)
-   -   Php (https://forums.graalonline.com/forums/showthread.php?t=2917)

omni-m00gle 05-15-2001 10:01 AM

Php
 
What does the PHP thing actually do on the board?
PHP Code:

????? 


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.

PHP Code:

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?
PHP Code:

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
 
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

Quote:

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

Quote:

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

Quote:

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

Quote:

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 have more information on this.

05-15-2001 12:22 PM

the PHP thing, it adds
PHP Code:

<PRE></PRE

tags so all the text in between shows, but doesnt affect it, let me try a test



<?php

$wing = "cool"

?>

PHP Code:

<?php $wing "cool" ?>

I just tried the following code above...


All times are GMT +2. The time now is 08:27 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.