How to shutdown a Mac
There are a couple of ways to Shutdown your Mac Press the Apple Key and then Shutdown Press Control+Eject together then choose Shutdown
There are a couple of ways to Shutdown your Mac Press the Apple Key and then Shutdown Press Control+Eject together then choose Shutdown
DOMDocument = Represents an entire HTML or XML document; serves as the root of the document tree. (PHP 5) DOMDocument::createElement() = Create new element node. (PHP 5) Now to the solution! Solution: Use the htmlentitites function to convert all applicable characters to HTML entities. $dom->createElement(‘value’, htmlentities($text_value)); htmlentitites = Convert all applicable characters to HTML entities (PHP 4, PHP 5) Problem should be solved!
$var = ‘2007-08-15’; $var_subtracted_date = date(‘Y-m-d’, strtotime(’-2 days’, strtotime($var))); Explanation of PHP functions: 1) FUNCTION date DESCRIPTION string date ( string $format [, int $timestamp ] ) PARAMETERS USED IN THIS EXAMPLE Y = A full numeric representation of a year, 4 digits (Examples: 1999 or 2003) m = Numeric representation of a month, with leading zeros (01 through 12) d = Day of the month, 2 digits with leading zeros (01 to 31) ...
At this piece of code to the top of your PHP script error_reporting(0); It’s always better to try and fix the errors than to hide them!!
$month = 1; $month_name = date("F", mktime(0,0,0,$month,1,2011)); echo $month_name; //Will output January
This can be obtained by combining the date function with the mktime function For example if I want to get Jan from the number 1 which represents the first monthin the year I would use something similar to the below $i = 1; //The number 1 represents January echo date("M",mktime(0,0,0,$i,1,2010)); //This will output Jan So if you want to output Feb the value of $i would be 2 etc USAGE: date = string date ( string $format [, int $timestamp ] ) (PHP 4 & 5) ...
Add the following code between the tags in your HTML page <meta http-equiv="Expires" content="0" /> <meta http-equiv="Pragma" content="no-cache" /> <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" /> The above should turn off webpage caching
This could be accomplished by using the built in Font Awesome CSS classes Add the fa-ul class to the ul html tag Between the li tags add replacing the fa-stopCSS class with the icon class you would like to show as the bullet Example: <ul class="fa-ul"> <li><i class="fa-li fa fa-stop"></i>Bullet 1</il> <li><i class="fa-li fa fa-stop"></i>Bullet 2</il> <li><i class="fa-li fa fa-stop"></i>Bullet 3</il> <li><i class="fa-li fa fa-stop"></i>Bullet 4</il> <li><i class="fa-li fa fa-stop"></i>Bullet 5</il> </ul>
To check whether the date entered is in the correct format NOTE: We will use the following date format within this example YYYY-MM-DD Answer: Use the preg_match ‘Perform a regular expression match’ PHP function available for PHP 4 & 5 Find the correct expression And use the following code to check for the date format if(preg_match('/[12]\d{3}-[01]\d-[0123]\d/',$date)){ $msg = "Valid date"; }else{ $msg = "Invalid date"; }
This I’ve noticed happened to my IPhone just after coming back from Holiday in another country. What I did while I was away is, I switched the Date and Time on the phone to set the Time Zone automatically. Soon after that I’ve noticed that the battery life drains quickly from 90% to 10% in just a couple of hours. A couple of Days ago I’ve updated to iOS 5.1 so I’m sure it’s a bug in iOS 5 ...