Resizing images in PHP is easier with Image-Resize class. You can use it to create thumbnail images or resizing big images to desired size.
To use, just include image.class.php to your PHP file or where you are using resizing function. Then create new variable with an iresize() class object then use functions which comes with Image-resize class.
Example usage;<?php
require "image.class.php";
$resize = new iresize();
$resize->img("test.jpg")->size("500x500")->render("test-resized.jpg");
?>
Explaination;
iresize->img($source_filename) is where we are loading image to resize
->size("500x500") is for entering desired image size
->render("test-resized.jpg") is for final result. emptry/filename with extension
Download / Source
PHP comments
Propel NestedSet inheritance problem
Error message
Fatal error: Uncaught exception 'PropelException' with message 'Call to undefined method: makeRoot' in /usr/share/php/propel/om/BaseObject.php:325
You need to replace inheritance classes for nested set. In your model class, find and replace.
class Contents extends BaseContents
with this
class Contents extends BaseContentsNestedSet
also find and replace
class ContentsPeer extends BaseContentsPeer
with this
class ContentsPeer extends BaseContentsNestedSetPeer
You are now good to go.
crack facebook password facebook
Whoo Weee! Hack Facebook Password http://www.hacked-facebook.net are fast! Easy and straight up business to hack facebook password instantly. The information obtained may have helped change/save a life. Thank you so much Hack Facebook Password! I'll contact again for sure! Cheers! hacking facebook free
BTW, I found another website which is providing for free a free facebook hacking software and other one specialized in hack into someone's facebook password, hack facebook account id number.
Jordan N. Wilson, New York
US
Related articles:
crack facebook password facebook
Contact Us
We read and reply to all your mails and comments. We are looking to build links ,If you are interested in trading links or just want to contact me feel free to throw me a line:
Removing Cache from the page
1. Using the PHP Header. Use the following code before rendering any output to the browser.
<?php
header('Cache-Control: no-store, no-cache, must-revalidate, max-age=0');
header("Cache-Control: post-check=0, pre-check=0", false);
header('Pragma: no-cache');
header('Expires: Mon,26 Jul 1980 05:00:00 GMT');
header("Last-Modified: Tue,01 Jan 2000 00:00:00 GMT");
?>
2. Using the HTML Meta tag.
<meta http-equiv="cache-control" content="max-age=0" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
<meta http-equiv="pragma" content="no-cache" />
Java Script Page Loading....
This is a small script I have found from a website, it will display a loading message before your page is loading,I don't know if you just copy and past it will work, please read the code and understand and then use it. [ Full Article]