An Example rtsp://myusername:[email protected]:554/axis-media/media.amp?resolution=1280×720
All posts by
Text
Text Align Line Height Set the height of each line (within a paragraph) Set the gap after a paragraph of text
Text Effects
Outlined Text color: white; text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
echo a File
Echo'ing the contents of a file //Get the url of a file and echo that file – this can be a remote web site file or a local one if (isset($_POST['url'])) { $url_string = $_POST['url']; $url_string = stripslashes(htmlentities(strip_tags($url_string))); echo file_get_contents("http://$url_string"); }
Converting Arrays
Converting an array to individual variables Argument lists may include the … token to denote that the function accepts a variable number of arguments. The arguments will be passed into the given variable as an array; for example: You can use “…” with an array when calling functions to unpack the array or Traversable variable […]
Draw Box
<div style="width:20px; height:6px; background: #FF0000;"></div>
Checkbox
Checkbox Example Handling in PHP Checkboxes with an array of values Get the submitted as an array Get the values as a comma separated string Styling Checkboxes https://www.w3schools.com/howto/howto_css_custom_checkbox.asp Greyed out, non-editable Just non-editable
Multiple Column Lists
Display List In Four Columns .my_list li { display: block; width: 25%; float: left; }
Lists General
Lists <ul> <li>Coffee</li> <li>Milk</li> </ul>
Admin Users
Simple Admin User Session Approach The log in / log out page <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Admin Log In</title> <?php if ( !isset($_SESSION)) session_start(); //LOG IN URL: // www.my_domain.com/admin_login.php?adminid=somerandomgibberish //LOG OUT URL: // www.my_domain.com/admin_login.php?adminid=0 if ( isset($_GET[‘adminid’]) && ($_GET[‘adminid’] == "somerandomgibberish") ) { […]
