Re: [PHP] Broadcasting

2002-03-10 Thread Samuel Ottenhoff
This is sort of a weird question as it seemingly involves both physical theft and virtual theft. But here goes: 1) How do script kiddies find you? If you have a public IP address, and you are not protected behind a firewall, you will be probed by scripts. How do they find you? By port

Re: [PHP] PHP based search engine

2002-03-10 Thread Samuel Ottenhoff
Check out phpdig: http://phpdig.toiletoine.net/ My guess is that one of these packages on the web can serve as a foundation for you... You might just need to build a custom layer on top of it. Check out the site freshmeat.net. It tracks software packages and new updates and is quite focused on

Re: [PHP] attachment through mail

2002-03-11 Thread Samuel Ottenhoff
There is a very good article (with some well written OO classes) available at PHPBuilder. http://www.phpbuilder.com/columns/kartic2807.php3 I think the classes are at: http://www.phpbuilder.com/columns/kartic2807.zip This will make file attachments very easy. BTW, the PHPBuilder

Re: [PHP] connection speed?

2002-03-11 Thread Samuel Ottenhoff
There aren't too many elegant ways to do this, that I know of. You can create a flash movie with a big chunk of nothing in it... With a couple of calls, you can find how long it took to load So if it took 4 secs to load 200k You can sort of figure out their connection speed. But

Re: [PHP] Update database via email

2002-03-11 Thread Samuel Ottenhoff
If I were you, I would start looking into procmail. http://www.procmail.org You would set up an alias on your server... Something like [EMAIL PROTECTED] Procmail would filter the email for the important stuff and pass that on to a PHP script. The php script would then update your database.

Re: [PHP] index.php question

2002-03-11 Thread Samuel Ottenhoff
# # DirectoryIndex: Name of the file or files to use as a pre-written HTML # directory index. Separate multiple entries with spaces. # IfModule mod_dir.c DirectoryIndex index.php index.php3 index.html /IfModule Sam On 3/11/02 1:36 PM, Omland Christopher m [EMAIL PROTECTED] wrote: Hi

Re: [PHP] Image upload and scaling

2002-03-11 Thread Samuel Ottenhoff
Someone just mentioned ImageMagick... Check it out: http://www.imagemagick.org/ ImageMagickTM is a robust collection of tools and libraries to read, write, and manipulate an image in many image formats (over 68 major formats) including popular formats like TIFF, JPEG, PNG, PDF, PhotoCD, and

Re: [PHP] limiting the livetime of a session possible?

2002-03-11 Thread Samuel Ottenhoff
The last person gave you a way to do it without using php.ini Re-read the reply. 1) you can create a timestamp column last_access in your USERS table 2) every time that user hits a page, you need to update that column 3) every time the user asks for a new page, see if the last access is less

Re: [PHP] accessing data from classes

2002-03-12 Thread Samuel Ottenhoff
It is good that you are looking into classes and functions. The concept you are missing is that of returning a result. At the end of your function mysql_query, add a line: return $result; Then, when you call that function, make it like this: $resultArray =