ckrudelux Posted March 17, 2010 Share Posted March 17, 2010 I'm making a function which should include a file to the document.EXAMPLE:This: function addingfiles($dir){if(4+10 == 14){ include $dir."/file.php";}} instead of this: if(4+10 == 14){ include "folder1/file.php";} Will this work or will this just add some code to the function? Link to comment Share on other sites More sharing options...
ShadowMage Posted March 17, 2010 Share Posted March 17, 2010 Try it? Link to comment Share on other sites More sharing options...
justsomeguy Posted March 17, 2010 Share Posted March 17, 2010 Will this work or will this just add some code to the function?Yes.If you want to find out where your code is executing, use this:http://www.php.net/manual/en/function.debu...t-backtrace.phpCheck the examples on that page. Link to comment Share on other sites More sharing options...
ckrudelux Posted March 17, 2010 Author Share Posted March 17, 2010 Yes.If you want to find out where your code is executing, use this:http://www.php.net/manual/en/function.debu...t-backtrace.phpCheck the examples on that page.Okay that can be useful function thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.