fractalbit
8p5 comments posted · 0 followers · following 0
14 years ago @ Online Aspect - 5 things I wish someon... · 1 reply · +1 points
14 years ago @ Online Aspect - 5 things I wish someon... · 3 replies · +1 points
/home/account_name/public_html/forum/folder1/folder2/file.php
Is it possible to specify without the '/home/account_name/public_html' part? Is there a configuration i can do so that the root is consider the public_html? .htaccess probably?
14 years ago @ Online Aspect - Auto detect a time zon... · 1 reply · +1 points
14 years ago @ Online Aspect - How to use variable va... · 1 reply · +1 points
P.S. You added the ability to edit comments? :) (Or is it because i am now registered to intenseDebate?)
14 years ago @ Online Aspect - How to use variable va... · 2 replies · +1 points
function debug($variables){
/*
Enter the variable names you wish to debug as a string separated by commas
It will print the variable name and their respective values like: $varname = value
The variable values can be strings, integers, floats, arrays and possibly objects? (didn't test it)
For example ....
$thanks = 'to Josh Fraser';
$fruits = array("apple", "orange", "cherry");
debug("thanks, fruits");
will print...
------------------------------------------------------------------------
Debug info
------------------------------------------------------------------------
$thanks = to Josh Fraser
$fruits = Array ( [0] => apple [1] => orange [2] => cherry )
------------------------------------------------------------------------
*/
echo '<hr />Debug info';
$var_array = explode(",", $variables);
foreach($var_array as $var){
$var = trim($var);
global $$var;
$results[] = '$' . $var . ' = ' . print_r($$var, TRUE) . '
';
}
echo '<hr />' . implode("", $results) . '<hr />';
}