1
iver2435
Constant initializations, where are they?
  • 2006/1/20 5:52

  • iver2435

  • Just popping in

  • Posts: 10

  • Since: 2006/1/19


I will admit, I am a noob when it comes to PHP, but I'm picking up speed very quickly.

I just have one question....I've been looking at some of the XOOPS source code just trying to get a feel for the syntax of PHP and I have noticed that there are alot of constants defined "somewhere".

As an example, I was poking around in the "common.php" file and saw this:

if (!defined("XOOPS_MAINFILE_INCLUDED")) {
exit();
} else {
// rest of code goes here
}

Mainly what I want to know is, where is XOOPS_MAINFILE_INCLUDED defined?

Also, as an alternate question....Is there any source of info out there about the XOOPS API and how all the files are related?

Thanks for the help fellas!

2
iver2435
Re: Constant initializations, where are they?
  • 2006/1/20 6:12

  • iver2435

  • Just popping in

  • Posts: 10

  • Since: 2006/1/19


After poking around further, I found that constant initialization in mainfile.php!

I would still like to know if there is any place to get a general feel for the "flow" of a XOOPS page loading up...

Like right now I have the impression from following all the
require "mainfile.php"'s and require_once's that mainfile.php gets loaded first, which then includes common.php, which then pulls in basically everything else that is needed by xoops...

If I'm right or horribly wrong, I'd like to know either way

Login

Who's Online

431 user(s) are online (342 user(s) are browsing Support Forums)


Members: 0


Guests: 431


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits