[PHP] session.gc_probability

2001-09-08 Thread Tobias Strauß
The session handling of php seems not to work very well on my computer: if session.gc_probability is set to a value smaler 35, it never executes my gabarage_collection-function. When it is bigger than 35, it's executed every time. I'm using W2K and php 4.02? Does anybody knows the reason for this

[PHP] HTTP_X_FORWARDED_FOR

2001-09-08 Thread Tobias Strauß
On php.net I found this: When you use REMOTE_ADDR for getting the IP of the current user, sometimes you get the IP of the ISP Cache server. When this happens, the HTTP_X_FORWARDED_FOR is also set, it contains the IP of the user. [...] Note that the X-Forwarded for header might contain multiple ad

[PHP] use of mysql_free_result and unset

2001-09-07 Thread Tobias Strauß
When do I have to use mysql_free_result($res). Is it good to use it with every query or only if the result is very big (what's the size of the result I shoud use mysql_free_result?). What's about the use of unset($var). Is this good to save RAM to make my script run faster? Do I have to do this al

[PHP] Sessions with MySQL

2001-08-28 Thread Tobias Strauß
I'm using a MySQL-database to store my session variables by using the following code: session_set_save_handler "sess_open", "sess_close", "sess_read", "sess_write", "sess_destroy", "sess_gc" ); session.gc_probability in the php.ini file is set to 1. In a book I read tha

[PHP] GD - ttf without anti-aliasing

2001-08-17 Thread Tobias Strauß
What's a negative color index and how can I use it? My code so far is: header ("Content-type: image/png"); $img = imagecreate (200, 200); $fontcolor = imagecolorallocate ($img, 0, 0, 0); $text = "This is a test!"; imagegetttftext ($img, 12, 0, 0, 0, $fontcolor, $text); ImagePng ($img); ImageDestr

[PHP] GD - ttf without anti-aliasing

2001-08-17 Thread Tobias Strauß
How can I create images with gd, so that the text (true type font) written on it will not be anti-aliased? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: