php
PHP: Hypertext Preprocessor is a widely used, general-purpose scripting language
PHP: Hypertext Preprocessor is a widely used, general-purpose scripting language
<?php
$urls = array(
'http://www.google.com',
'http://www.yahoo.com',
'http://www.stackoverflow.com'
);
$pool = new HttpRequestPool;
foreach ($urls as $url) {
$req = new HttpRequest($url, HTTP_METH_GET);
$pool->attach($req);
}
$pool->send();
foreach ($pool as $request) {
echo $request->getResponseCode(), ' ', $request->getUrl(), PHP_EOL;
}
?>
Manage view assets with masher. Placement and type support.
gist:3107007 #bonfire #cibonfire #codeigniter #php
Fork Fork Fork Fork korF korF koRF koRF kOrF KOrf KoRf ForK
gist:3321694 that wasn't public yet... place holder for a few mins #bonfire #cibonfire #codeigniter #php #pagdabox
Since Bonfire creates a cache for assets and other stuff, I normally add a clear_cache or debug flag that clears the cache on top of other stuff depending on the module.
gist:3311713 #PHP #Wordpress #PDF #Embed #HTML
This is a very primative shortcode that does what the title says it does. Embed's a PDF into your Page or Post while using Wordpress.
// Usage:
// id="embed-name"
// url="http://yourlocation.com/tothe/biggestandbaddest.pdf"
// width="990px"
// height="660px"
And that is that.
This is just something I added to one of my sites really quick no time to write a how to so use it or move on