¡@

Home 

php Programming Glossary: class.php

PHP Fatal error: Using $this when not in object context

http://stackoverflow.com/questions/2350937/php-fatal-error-using-this-when-not-in-object-context

'load.php' and in load.php I'm using require_once 'class.php' to load my class.php . In my class.php I've got this error.. in load.php I'm using require_once 'class.php' to load my class.php . In my class.php I've got this error Fatal error Using this.. require_once 'class.php' to load my class.php . In my class.php I've got this error Fatal error Using this when not in object..

include file from different directory

http://stackoverflow.com/questions/8041330/include-file-from-different-directory

use __DIR__ instead so if you have this structure includes class.php admin admin.php config config.php So you can use admin.php include.. config.php include dirname __FILE__ . .. includes class.php it always aims to the same directory share improve this answer..

Resizing the image in php for viewing purposes only

http://stackoverflow.com/questions/9581592/resizing-the-image-in-php-for-viewing-purposes-only

Here is usage example Include the class include resize class.php 1 Initialise load image resizeObj new resize 'sample.jpg' 2..