Guest askjames01 Posted April 29, 2006 Share Posted April 29, 2006 along the way i notice this include[code]include("skins/$mg2->activeskin/settings.php");[/code]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? Link to comment https://forums.phpfreaks.com/topic/8686-solved-include/ Share on other sites More sharing options...
craigbabe Posted April 29, 2006 Share Posted April 29, 2006 [code]include("skins/'.$mg2.'->activeskin/settings.php");[/code]Does the one you showed actually work? I would change the file name because its abit of a pain in the bum! Link to comment https://forums.phpfreaks.com/topic/8686-solved-include/#findComment-31871 Share on other sites More sharing options...
KrisNz Posted April 29, 2006 Share Posted April 29, 2006 its just getting the name of the active skin which corresponds with the name of a directory, nothing special. Link to comment https://forums.phpfreaks.com/topic/8686-solved-include/#findComment-31873 Share on other sites More sharing options...
Guest askjames01 Posted April 29, 2006 Share Posted April 29, 2006 I just want to be sure.I knew it.I must carefully review it again...and that thing really works...thanks Link to comment https://forums.phpfreaks.com/topic/8686-solved-include/#findComment-31889 Share on other sites More sharing options...
Guest askjames01 Posted April 29, 2006 Share Posted April 29, 2006 "$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? Link to comment https://forums.phpfreaks.com/topic/8686-solved-include/#findComment-31900 Share on other sites More sharing options...
wildteen88 Posted April 29, 2006 Share Posted April 29, 2006 [!--quoteo(post=369819:date=Apr 29 2006, 07:14 AM:name=askjames01)--][div class=\'quotetop\']QUOTE(askjames01 @ Apr 29 2006, 07:14 AM) [snapback]369819[/snapback][/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 Link to comment https://forums.phpfreaks.com/topic/8686-solved-include/#findComment-31952 Share on other sites More sharing options...
Guest askjames01 Posted April 29, 2006 Share Posted April 29, 2006 i'll verify that again... thank you wildteen. Link to comment https://forums.phpfreaks.com/topic/8686-solved-include/#findComment-31993 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.