DragonPrime - LoGD Resource Community
Welcome Guest
  • Good afternoon, Guest.
    Please log in, or register.
  • October 22, 2017, 03:50:14 PM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1]   Go Down
  Print  
Author Topic: PHP Functions  (Read 2754 times)
0 Members and 1 Guest are viewing this topic.
Jim
Guest
« on: October 25, 2004, 12:11:32 PM »

I found a list of php functions here:
http://www.php.net/quickref.php
but none of them are what I see in the scripts here. I'm doing my best to learn how to do this but it is a little confusing. None of the links in the links area are really helping either.  Huh
Logged
Tholgare
Guest
« Reply #1 on: October 25, 2004, 02:38:37 PM »

logd uses a lot of custom functions, so you'll see a lot of stuff in this code that isn't documented on php.net.  For standard php coding, php.net is the source for info, but for logd, I've found the best way to figure stuff out is to go through other people's modules and change things to see what happens, or to look at the function definitions in the core to see what all something can do.  you'll also occaisionally run across bugs and typos in the core when doing the second method, which then helps everyone out  Smiley
Logged
Sichae
iMod God
SVN Users
Mod God
*
Offline Offline

Posts: 3458


If ya didn't get it by now... you're hopeless...


View Profile WWW
« Reply #2 on: October 25, 2004, 10:58:42 PM »

Yeah, a little while back, I was looking into converting an HTML site to PHP. And yes, LOTGD does have custom tags.

For example, in normal PHP, there is the print("Blah!");

But, in LOTGD PHP, it is output("Blah!");

Logged

If you didn't understand anything in the above post, don't try to attempt anything suggested.

XChrisX
Global Moderator
Mod God
*****
Offline Offline

Posts: 4647

Be aware of the squirrel!


View Profile WWW
« Reply #3 on: October 25, 2004, 11:10:12 PM »

Yes that's mainly because the print()-function simply prints whatever you say it should print, while the output()-function first of all converts all "`6" or "`n" to their corresponding HTML-Tags... and then prints or echos the given text...
Logged

Running for more than three years now:
Sichae
iMod God
SVN Users
Mod God
*
Offline Offline

Posts: 3458


If ya didn't get it by now... you're hopeless...


View Profile WWW
« Reply #4 on: October 25, 2004, 11:12:54 PM »

Yes, and to assign the corresponding HTML tags, the lib/commentary.php comes in Cheesy That is what is holding all the codes for colors.

I don't believe `n is an HTML tag...the corresponding one would be <br>

Whoops, my mistake...lib/commentary.php
« Last Edit: October 25, 2004, 11:18:16 PM by Sichae » Logged

If you didn't understand anything in the above post, don't try to attempt anything suggested.

Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Version 1.1.2 is the current supported version and is available for download.

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Recent Topics
DragonPrime LoGD
Who's Online
15 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search