PHP dump a variable to a file
$var_str = var_export($data, true); $var = “$var_str”; file_put_contents(‘/var/some/location/on/server/value.txt’, $var);
$var_str = var_export($data, true); $var = “$var_str”; file_put_contents(‘/var/some/location/on/server/value.txt’, $var);
Learn the ZendX jQuery Date Picker: If you are of medium intelligence and are not well inclined to convoluted and […]
After enabling the layout with: zf enable layout If you are getting this Error, most likely you are using the […]
Access Level Module and Controller Registration Zend_Acl and navigation Role Design for a CMS Access Roles for menu Zend Pro […]
Info from Stackoverflow if (isset($_POST[“mail”]) && !empty($_POST[“mail”])) { echo “Yes, mail is set”; }else{ echo “N0, mail is not set”; […]
More info can be found at davidwalsh $message = ‘Hello ‘.($user->is_logged_in() ? $user->get(‘first_name’) : ‘Guest’);
$sql = “SELECT * FROM tbl”; $result = mysql_query($sql); if (mysql_num_rows($result)==0) { //do this } else { //do that }