RE: [PHP] Getting PHP to submit a form to google

2002-08-15 Thread David Piasecki
Use the google API... http://www.google.com/apis/ - David -Original Message- From: Henry [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 12:11 PM To: [EMAIL PROTECTED] Subject: [PHP] Getting PHP to submit a form to google Hi all I would like to be able to get the result o

RE: [PHP] Sessions and Load Balancing

2002-04-25 Thread David Piasecki
We use sessions on one of our extremely large (read: may load balanced servers). Our solution is to store session data in the database. See the following: http://www.php.net/session-set-save-handler David Piasecki -Original Message- From: Uijlenbroek, Maurice [mailto:[EMAIL PROTECTED

RE: [PHP] Searching a string or similar

2001-12-28 Thread David Piasecki
This should be a better alternative: http://www.php.net/manual/en/function.strip-tags.php -Original Message- From: Bogdan Stancescu [mailto:[EMAIL PROTECTED]] Sent: Friday, December 28, 2001 11:14 AM To: Ash Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Searching a string or similar if (s

RE: [PHP] crack lib

2001-12-27 Thread David Piasecki
This could easily and quickly lead to a philosophical argument about the merits of such software/libraries/etc. Is the best way to secure software and hardware to take away the resources to try to break them? This only leads to more and more poor programming. As long as these tools are out there,

RE: [PHP] Re: Remote image

2001-12-19 Thread David Piasecki
Is anyone familiar with the overhead that this type of system might create, as compared to a standard request/response to apache? That is, to have PHP intercept the request for an image, check HTTP_REFERER - if it is null or from the local server, open the file, redirect to browser, close file, if

RE: [PHP] Help creating an image repository/library.

2001-12-12 Thread David Piasecki
You don't want to store the files in the root public directory. Create a subdirectory for uploads, 'public-html/uploads' for example. Make sure it's permissions are 755. From the command line, 'chown nobody,nobody uploads' would do it. The syntax for chown is '

RE: [PHP] sorting for thinkers:)

2001-12-11 Thread David Piasecki
Put the email addresses in an array: $email[] = "[EMAIL PROTECTED]"; $email[] = "[EMAIL PROTECTED]"; $email[] = "[EMAIL PROTECTED]"; Then sort like so: function cmp ($a, $b) { return strcmp(stristr ($a, "@"), stristr ($b, "@")); } usort($email, "cmp"); You now have a properly sorted $em

RE: [PHP] Help creating an image repository/library.

2001-12-11 Thread David Piasecki
Can you chown the directory to the same user as the web server runs as (ie. nobody)? At that point, you will be able to upload into that directory while retaining the directory permission of 755. -Original Message- From: Kevin Stone [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 11