[PHP] Quick Question

2002-07-24 Thread Nicholas Mercier
I'm currently developing a Remote CMS for a site. I'm working on the image upload and want to create a smaller thumbnail type image (thought >200x>180 instead of >50x>50) I know I'm going to need either imagecopyresize() or imagecopyresample(). I don't know which would be better for this purpos

[PHP] Image Resizing

2002-07-25 Thread Nicholas Mercier
Okay. Unless I failed a math course in high school (which is possible) I think my formulas are sound. However I'm having issues with this code. The Intended result: Take any image larger then 180x200 (WxH) and resize it proportionally so it fits within 200x180. What I'm getting, exactly what

[PHP] Follow Up

2002-07-25 Thread Nicholas Mercier
Okay, I somehow fixed it. But to make sure I am clear on this ImageSY Will give the vertical height of an image and ImageSX will give the width? Sorry to spam with such a stupid mistake... Me. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.

Re: [PHP] image function

2002-08-13 Thread Nicholas Mercier
At 09:50 PM 8/12/2002 +0800, you wrote: Jay, I would recommend uncommenting the php_gd2.dll extension. Gd2 contains some functions that GD lacks and is over all better in my opinion. However, they are correct that you do NOT need to recompile when running PHP on a Windows Platform. Simply chan

Re: AW: [PHP] image function

2002-08-13 Thread Nicholas Mercier
At 03:37 AM 8/13/2002 +0200, you wrote: Hey there, I created a set of scripts that did basically what you are looking to do. THINGS TO CHECK: 1. You may have a problem if you uncommented both DLL files. Apache will complain when it tries to load two libraries with the same functions in them.

Re: [PHP] security login

2002-08-13 Thread Nicholas Mercier
At 04:12 PM 8/12/2002 +0100, Pag wrote: Here is my humble, but relatively effective solution for a low security site. Create a file called security.php and require it at the head of every secure page. This is the one I use. You are not logged in. Please do so."; echo "Login Here";

Re: [PHP] Variable naming standards???

2002-08-13 Thread Nicholas Mercier
My two cents, I think if you are working on a personal product you use what works for you. If working in a group find out or decide as a group what standards to use. The hungarian standards are well designed, but I've seen others that work as well. When posting data from a from to another s

Re: AW: [PHP] image function

2002-08-13 Thread Nicholas Mercier
cause they aren't implemeted too. > >Please look at this Library. It's very nice but I don't get it working and >the guy who made it don't know either, why it's not working on my system. >Must be something about jpeg librarys and so on. > >Schura > >