[PHP] PHP + MySQL - Load last inserts

2009-03-30 Thread Sebastian Muszytowski
Hello :) I have some troubles with php and mysql. I have a normal MySQL Query and this returns X > 3 rows. Now i want to get the last 3 inserted values. For Example i've inserted A, B, C, D, E I want to get the last inserted values, e.g. E D C (in reversed order) So how to do this? I alread

Re: [PHP] PHP + MySQL - Load last inserts

2009-03-30 Thread Sebastian Muszytowski
Thijs Lensselink schrieb: Sebastian Muszytowski wrote: Hello :) I have some troubles with php and mysql. I have a normal MySQL Query and this returns X > 3 rows. Now i want to get the last 3 inserted values. For Example i've inserted A, B, C, D, E I want to get the last inserte

Re: [PHP] PHP + MySQL - Load last inserts

2009-03-30 Thread Sebastian Muszytowski
haliphax schrieb: [..cut...] Except when your primary key value rolls over, or fills a gap between two other rows that was left when a row was deleted/moved/etc... there has got to be a better way than grabbing rows in descending order based on the auto_increment value. Are you doing the inser

[PHP] how to get the filesize of an online document?

2009-04-08 Thread Sebastian Muszytowski
Hello everyone, i have a little problem. I want to get the filesize of an online document (for example an rss or atom feed). I tried the filesize() function, but this doesn't work. I also search for options with cUrl but i didn't found any solution. Hope you can give me some hints or code sni

Re: [PHP] how to get the filesize of an online document?

2009-04-08 Thread Sebastian Muszytowski
is not set and you don't have any chance to get size. For more info see **get_headers** function description. On Wed, Apr 8, 2009 at 12:31 PM, Sebastian Muszytowski mailto:s.muszytow...@googlemail.com>> wrote: Hello everyone, i have a little problem. I want to get

[PHP] stream_set_timeout issue with ssl connection

2009-04-08 Thread Sebastian Muszytowski
Hello everyone, i have an issue with stream_set_timeout and ssl. I've written a php irc newsbot and my code looks like this: [...] while (!feof($con['socket'])) { stream_set_timeout($con['socket'], $CONFIG['qtime']); [...] I need this timeout because i