Since 4/5/2012 5:55:28 AM, juglesh689 has written 8 articles and participated in 8 conversations. juglesh689 signature: juglesh689
juglesh689's articles:
Items(8) /1
How expensive is glob'ing a dir and including all the files?2634 (9/14/2012 7:35:24 PM) comp.lang.php I have my 'funcs' dir, full of about 120 files, totaling ~800KB. A bunch of little utility functions. Here is basically how i include them:
");
}
foreach ($incs as $i) {
require $i;
}
?>
So, my qu... J
pass arbitrary vars into a func from another func?319 (4/4/2012 5:52:17 PM) comp.lang.php In wordpress and probly other software, there are functions you can use to echo stuff into your page. just call comments_number('0','1','%'); and it echo the number of comments for the post. The problem is, y... J
make echo $anArray throw an error031 (4/2/2012 4:21:16 PM) comp.lang.php somewhere in my code (its a lot of code, wordpress) I have echo'd an array, probly trying to troubleshoot something. Pretty sure its not in my theme, as its happening before any of the theme loads, ie, before ... J
make echo $anArray151 (4/2/2012 4:04:34 PM) comp.lang.php somewhere in my code (its a lot of code, wordpress) I have echo'd an array, probly trying to troubleshoot something. Pretty sure its not in my theme, as its happening before any of the theme loads, ie, before ... J
Parsing .css files with php: Cons?1218 (1/16/2012 9:36:11 PM) comp.lang.php given: I know about @import and cascading styles, etc etc. Is is cool to parse .css files with php? Like I may want to include() sections into an overall .css. Or i may want to do like color:#. That kind of... J
unusual OR syntax62159 (11/24/2009 10:58:05 PM) comp.lang.php Hi,
i came accross something like this:
is_dir($dir) OR mkdir($dir);
so, obviously, it is the same as this:
if (!is_dir($dir)) { mkdir($dir); }
What are some other examples of this kind of shortcut? l... J
how to make a filter function-filter out items in array?329 (11/4/2009 11:02:51 PM) comp.lang.php tried this, but didnt work for more than one $delete. I understand why, but not how to fix. function arrayfilterout ($input, $delete) { foreach($input as $i){ foreach($delete as $d){ if(strpos($i, $d)===f... J
juglesh689's replies:
Items(5) /1
how to make a filter function-filter out items in array?329 (11/4/2009 11:02:51 PM) comp.lang.php tried this, but didnt work for more than one $delete. I understand why, but not how to fix. function arrayfilterout ($input, $delete) { foreach($input as $i){ foreach($delete as $d){ if(strpos($i, $d)===f... juglesh689(16)
Parsing .css files with php: Cons?1218 (1/16/2012 9:36:11 PM) comp.lang.php given: I know about @import and cascading styles, etc etc. Is is cool to parse .css files with php? Like I may want to include() sections into an overall .css. Or i may want to do like color:#. That kind of... juglesh689(16)
pass arbitrary vars into a func from another func?319 (4/4/2012 5:52:17 PM) comp.lang.php In wordpress and probly other software, there are functions you can use to echo stuff into your page. just call comments_number('0','1','%'); and it echo the number of comments for the post. The problem is, y... juglesh689(16)