Possum Posted March 22, 2011 Share Posted March 22, 2011 Hi I want to reduce the size of an image. Using Pascal this takes one line of code. However in php so far my research shows me that I need to use a library. (JQuery with a plug-in) Is this normal. To get the real power out of php will I need to use libraries.. I am happy with php. I just need to know how best to use this language.. Thank you.. Quote Link to comment https://forums.phpfreaks.com/topic/231443-comming-to-terms-with-how-php-does-things/ Share on other sites More sharing options...
trq Posted March 22, 2011 Share Posted March 22, 2011 jQuery is a client side (Javascript) library, nothing at all to do with PHP. The GD extension is generally available for manipulating images in PHP. Quote Link to comment https://forums.phpfreaks.com/topic/231443-comming-to-terms-with-how-php-does-things/#findComment-1191086 Share on other sites More sharing options...
ignace Posted March 23, 2011 Share Posted March 23, 2011 If it only takes one line of code in Pascal, then use Pascal. And let PHP communicate with your Pascal program as if it were a service. It's been a few years since I programmed Pascal, but it should be possible to call it through something like: exec('pascalexe parameter1', $output, $return_var); Quote Link to comment https://forums.phpfreaks.com/topic/231443-comming-to-terms-with-how-php-does-things/#findComment-1191244 Share on other sites More sharing options...
Possum Posted March 23, 2011 Author Share Posted March 23, 2011 Thats actually an interesting idea. But I think I need more control over the computer that serves my web page... Quote Link to comment https://forums.phpfreaks.com/topic/231443-comming-to-terms-with-how-php-does-things/#findComment-1191245 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.