Jump to content


*SOLVED* include?


  • Please log in to reply
6 replies to this topic

#1 Guest_askjames01_*

Guest_askjames01_*
  • Guests

Posted 29 April 2006 - 03:14 AM

along the way i notice this include

include("skins/$mg2->activeskin/settings.php");

I know this --> "$mg2->activeskin/settings.php"
is the execution of class object, but to tell you guys this is my first time to
see an include like this.

So can you guess this and elaborate the execution in details?
what this include really do?

#2 craigbabe

craigbabe
  • Members
  • Pip
  • Newbie
  • 9 posts

Posted 29 April 2006 - 03:25 AM


include("skins/'.$mg2.'->activeskin/settings.php");

Does the one you showed actually work? I would change the file name because its abit of a pain in the bum!

#3 KrisNz

KrisNz
  • Members
  • PipPipPip
  • Advanced Member
  • 271 posts
  • LocationAuckland, New Zealand

Posted 29 April 2006 - 03:33 AM

its just getting the name of the active skin which corresponds with the name of a directory, nothing special.

#4 Guest_askjames01_*

Guest_askjames01_*
  • Guests

Posted 29 April 2006 - 05:26 AM

I just want to be sure.
I knew it.

I must carefully review it again...
and that thing really works...

thanks



#5 Guest_askjames01_*

Guest_askjames01_*
  • Guests

Posted 29 April 2006 - 06:14 AM

"$mg2->activeskin/settings.php"

so $mg2 is a Class Object.
and activeskin is a function? am i right?
and settings.php is a file where the right configuration of the skin is stored?

are all my thoughts are correct?

any opinion please?



#6 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 29 April 2006 - 02:22 PM

[!--quoteo(post=369819:date=Apr 29 2006, 07:14 AM:name=askjames01)--][div class=\'quotetop\']QUOTE(askjames01 @ Apr 29 2006, 07:14 AM) View Post[/div][div class=\'quotemain\'][!--quotec--]
"$mg2->activeskin/settings.php"

so $mg2 is a Class Object.
and activeskin is a function? am i right?
and settings.php is a file where the right configuration of the skin is stored?

are all my thoughts are correct?

any opinion please?
[/quote]
Yes your thoughts are right but:
[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]and activeskin is a function? am i right?[/quote]
is a little wrong as its a variable not a function

#7 Guest_askjames01_*

Guest_askjames01_*
  • Guests

Posted 29 April 2006 - 05:57 PM

i'll verify that again...
thank you wildteen.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users