MoFish Posted June 13, 2007 Share Posted June 13, 2007 Hello Everyone! I've recent been using Zigmoyd [http://zigmoyd.net] for my web development, but have a small query regarding the include files and paths. when i include the following, it works fine, even although the zend folder is back one directory in my folder. include_once('zigmoyd/config.php'); include_once('template/template.php'); include_once('db/sql.php'); include_once('ums/customize.php'); include_once('done.php'); i then try'd the following to go back one directory using ./ and it still worked? include_once('./zigmoyd/config.php'); include_once('./template/template.php'); include_once('./db/sql.php'); include_once('./ums/customize.php'); include_once('./done.php'); i then try'd to go back using ../ and a load of error appeared complaining at the files location. include_once('../zigmoyd/config.php'); include_once('../template/template.php'); include_once('../db/sql.php'); include_once('../ums/customize.php'); include_once('../done.php'); which one is correct, and why does both normall dir and ./dir work? i'm rather confused. also does anyone know if you can use PHP code in-with the template class? any help would be much appreciated. Mo Quote Link to comment https://forums.phpfreaks.com/topic/55410-solved-zigmoyd-problem-anyhelp/ Share on other sites More sharing options...
gtk Posted June 13, 2007 Share Posted June 13, 2007 RU SURE ???? that it works in both way ?? Quote Link to comment https://forums.phpfreaks.com/topic/55410-solved-zigmoyd-problem-anyhelp/#findComment-273839 Share on other sites More sharing options...
MoFish Posted June 13, 2007 Author Share Posted June 13, 2007 yeah i'm sure lol. i don't understand why either :S Quote Link to comment https://forums.phpfreaks.com/topic/55410-solved-zigmoyd-problem-anyhelp/#findComment-273841 Share on other sites More sharing options...
Yesideez Posted June 13, 2007 Share Posted June 13, 2007 "." just means "current directory" so you're going into the same directory. ".." means go back a directory. Quote Link to comment https://forums.phpfreaks.com/topic/55410-solved-zigmoyd-problem-anyhelp/#findComment-273842 Share on other sites More sharing options...
Yesideez Posted June 13, 2007 Share Posted June 13, 2007 Imagine this structure: ROOT/ tree/ branch1/ branch2/ If you're in "branch2" and wanted to go to "branch1" you'd use "../branch1" If you're in "branch2" and wanted to go to the root you could use "../.." or "/" (/ means root directory) Quote Link to comment https://forums.phpfreaks.com/topic/55410-solved-zigmoyd-problem-anyhelp/#findComment-273844 Share on other sites More sharing options...
MoFish Posted June 13, 2007 Author Share Posted June 13, 2007 ahhhhh! "./" i thought went back one directory and "../" went back two. obviously not a zigmoyd problem at all then. just a silly mistake from me. thank you. Quote Link to comment https://forums.phpfreaks.com/topic/55410-solved-zigmoyd-problem-anyhelp/#findComment-273845 Share on other sites More sharing options...
gtk Posted June 13, 2007 Share Posted June 13, 2007 Ya you were right it worked. Thanks for this Information Yesideez "." just means "current directory" so you're going into the same directory. ".." means go back a directory. Quote Link to comment https://forums.phpfreaks.com/topic/55410-solved-zigmoyd-problem-anyhelp/#findComment-273849 Share on other sites More sharing options...
Yesideez Posted June 13, 2007 Share Posted June 13, 2007 You're both most welcome Quote Link to comment https://forums.phpfreaks.com/topic/55410-solved-zigmoyd-problem-anyhelp/#findComment-273851 Share on other sites More sharing options...
MoFish Posted June 13, 2007 Author Share Posted June 13, 2007 thanks alot. have you ever tested including php code in the template class? any luck with doing that? Quote Link to comment https://forums.phpfreaks.com/topic/55410-solved-zigmoyd-problem-anyhelp/#findComment-273854 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.