All topics
 
member picmember pic
 
Snippets by author: A
 
Overall visits to all the topics: 4,962,539
Daily average (Calculated from the website subscription day): 2,060.000
Optional sorting commands:
Order by amount of visits: click here
Order by vote (attention: this may exclude from the returned results all the entries that have no votes): click here
Normal order: click here
Current order: by category: Programming Php
Other categories available for this author (Limited data report: 100):
Advice: Martial Arts and Self Defense(4), Books(236), Critical Reviews and Essays(4), Dictionaries(1), Emergency Care(4), Epistles Letters and Advice(5), Fantasy Epics and Fables(1), History and Documents(5), Humor and Jokes(2), Methematics(2), Music and Lyrics(6), News Digests and Press Reviews(1), Novels Poetry and Stories(3), Philosophy Reviews(7), Poetry(1), Programming(4), Programming Ajax(2), Programming Javascript(82), Programming Php(52), Psychology(1), Quotes(1), Religion Esoterica and Spirituality(12), Scientifical Reviews(4), Self Improvement(1), Sport Activities and Apparels(2), Tarots(1)
Showing topics: 1, 10
Available total: 448
This subscriber has a blog too: Read the blog. Shoutbox: 103 reviews: 153
 
Php Date: Full Disaggregated Date Difference Accounting Timezones And Daylight Identification Number: 453 http://en.wikipedia.org/wiki/File:Miniaturk_009.jpg Preview: OBJECTIVE: given two dates either in Sql format or as Unix timestamps, make their difference and return the time difference as a disaggregated representation (that is: how many years months days hours minutes and seconds elapsed between two given dates, without any representation, for instance, only in hours or only in seconds). Note: this function is an improved version of PHP Date: Disaggregated Date Difference As Interlapsed Days Hours Minutes Seconds inasmuch as it relies on features that are available only from Php 5.3.0 versions onward.     However, as said this function will not provide aggregated data (such as a date difference expressed only in days or hours or minutes or seconds), so for such data you may still use the just mentioned and linked version.   Yet, this function returns timestamps too, which may be suitable to be exploited for the just above mentioned purpose. function disaggregatedTime($small='', $big='', $timeZ... read more: click here Visitors: 8,699 Tagged by its author as: Programming Php This author also has a Blog PHP Date: Disaggregated Date Difference As Interlapsed Days Hours Minutes Second Identification Number: 452 http://en.wikipedia.org/wiki/File:Miniaturk_009.jpg Preview: OBJECTIVE: given two dates either in Sql format or as Unix timestamps, make their difference and return the time difference both as an aggregated representation (difference expressed only in seconds, only in minutes, only in hours, only in days) and as a disaggregated representation (difference expressed as how many days hours minutes and seconds have elapsed overall).function disaggregatedTime($small='', $big='')   /*validate:*/for($v=0, $a=func_get_args(); $v... read more: click here Visitors: 8,838 Tagged by its author as: Programming Php This author also has a Blog PHP Pass To Javascript Php Array Associative Array Or Matrix Identification Number: 419 http://en.wikipedia.org/wiki/File:Miniaturk_009.jpg Preview: OBJECTIVE : given a php array, either numerically indexed or associative, or a matrix combining both (therefore we have three distinct procedures), get its values and rebuild it as a symmetrical javascript valid array or matrix.... read more: click here Visitors: 10,810 Tagged by its author as: Programming Php This author also has a Blog PHP: Retrounpad A Matrix Array Table: Remove Shared Empty Columns Identification Number: 412 http://en.wikipedia.org/wiki/File:Miniaturk_009.jpg Preview: OBJECTIVE : given a matrix (that is: an array whose each entry is another array) performing as a table with rows and columns, detect from the ending edges of the held arrays whether there are empty items; find whether there are whole columns of such empty items and remove such columns only until the first column where at least one populated entry is to be found.     This task works on an array since it is the best abstraction to represent a look up html table supplied with rows and columns, but presumes such tabular data has no cells spanning through multiple columns or rows.   Consequently, in the matrix abstraction representing such table this requirement is translated into the necessity of having all the arrays held by the backbone array as sharing the ... read more: click here Visitors: 9,255 Tagged by its author as: Programming Php This author also has a Blog PHP: Strip Tags But Register Offsets. Replace Text Without Affecting Html Tags. Identification Number: 407 http://en.wikipedia.org/wiki/File:Miniaturk_009.jpg Preview: OBJECTIVE : the purpose of this function is not that of stripping tags (as strip_tags does) but of returning the offset positions where the text wrapped within tags is located.   Such data is useful for the following process at least: manipulating (for instance: searching and replacing) an input text without affecting its html tags (assumed as present in such input text - though the function would return the expected outcome also if tags are absent).     That is, manipulating text only within the portions that do not represent html tags, and then rebuild the original text inclusive of the html tags (which therefore are not stripped, thence the difference with strip_tags) retaining the manipulations.   function stripTagsOff... read more: click here Visitors: 9,339 Tagged by its author as: Programming Php This author also has a Blog Php Check Whether A Web Site Or A Web Resource Exists/Responds Identification Number: 391 http://en.wikipedia.org/wiki/File:Miniaturk_009.jpg Preview: OBJECTIVE : given a web site url, regardless of whether it is of a single file (html, image, whatever) or of the main website url address, determine whether that resource is currently available, or whether that resource or website actually responds (ie: "exists").   It is not a difficult goal at all, though it may seem so to some new to the task.   function webExists($url='') /*validation of the allowed url formats, like leading http, must be done prior to call*/   return (   ($output=@get_headers($url)) && isset($output 0 ) && strpos(strtolower($output 0 ), ' 200 ok')!==false   )?   $output:false;   /*keep this comment to reuse freely   http://www.fullposter.com/?1*/     INPUTS : a string representing an address pointing to a web resource.     RETURNS : boolean false for a web resource that does not yield any response upon call, or an array listing the returned headers (handy for further inspection, if needed).     CAVEATS : validation of the allowed u... read more: click here Visitors: 12,376 Tagged by its author as: Programming Php This author also has a Blog Php: Get Value Of Specific Html Meta Tag Identification Number: 389 http://en.wikipedia.org/wiki/File:Miniaturk_009.jpg Preview: OBJECTIVE : given an html source, get the content (value) of any specified meta tag (if present in the html source).   function getMeta($t='', $which='description')   preg_match_all('/+>/i', $t, $m);   if(is_array($m) && isset($m 0 ))   $L=sizeof($m 0 );   for($i=0; $i... read more: click here Visitors: 17,766 Tagged by its author as: Programming Php This author also has a Blog Php Given Url Fetch Youtube Video Codes Embed/Include Video In Other Webpage Identification Number: 388 http://en.wikipedia.org/wiki/File:Miniaturk_009.jpg Preview: OBJECTIVE : given a youtube web address to a video, grab the code for embedding the video in another/your webpage. This goal might be achieved by just populating a youtube video object set of tags with the given address: hovewer, this function stands as a way to grab similar data directly from the online original resource.   function youtubevideo($url='', $resizeByPercent=100)   $urlelements=parse_url($url);   if(!isset($urlelements 'scheme' ) $urlelements 'scheme' !=='http')return ''; ;   if( !isset($urlelements 'host' ) strpos($urlelements 'host' , 'www.youtube.'!==0) ) return ''; ;   $url=trim(@file_get_contents($url, 0, null, 0, 50000));   preg_match_all('/+>/', $url, $match);   if(!is_array($match) !isset($match 0 0 )) return ''; ;   preg_match_all('/value="( ^" +)"/', $match 0 0 , $value);   if(is_array($value) && isset($value 1 0 ))   $value 1 0 =html_entity&... read more: click here Visitors: 18,197 Tagged by its author as: Programming Php This author also has a Blog Php Find Length Of Texts Or Longest Within Instances Of A Given Html Tag Type Identification Number: 387 http://en.wikipedia.org/wiki/File:Miniaturk_009.jpg Preview: OBJECTIVE : given an input text with html mark-up (tags), find for a given tag type how much text (excluded nested html tags) each tag pair of that type encapsulates.   Useful to extract from a page only the portion(s) that are longer, thus increasing the chances of ignoring the insignificant or more decorative parts.   function paragraphsLengths(&$text, $tag='div')   if(!$text !$tag)return false; ; $matches=array();   preg_match_all("/*>/i", $text, $open, PREG_OFFSET_CAPTURE);   if(!isset($open 0 )) return false; ;   $L=sizeof($open 0 ); $openoffsets=array(); $closedoffsets=array();   for($i=0; $i... read more: click here Visitors: 14,654 Tagged by its author as: Programming Php This author also has a Blog PHP: Match Each Array Item Once With All The Other Array Items Identification Number: 370 http://en.wikipedia.org/wiki/File:Miniaturk_009.jpg Preview: OBJECTIVE : given an array, return all the combinations of each item once with each other, without duplicates.   function arrayCombinator(&$array)   if(!is_array($array))return $array;/*or php sizeof() matches Strings too!*/ ;   $output=array(); $L=sizeof($array); $i1=-1;   while(++$i1... read more: click here Visitors: 14,240 Tagged by its author as: Programming Php This author also has a Blog