[PHP] QUARANTINED: Mail System Error - Returned Mail

2006-08-28 Thread WorkgroupMail Content Filter
The message "Mail System Error - Returned Mail" from , sent on 8/29/2006 06:01 was quarantined because it contained either an executable file, a batch file or a screen saver file. All of these types of attachments are considered security risks. Please consult your mail administrator who can rele

Re: [PHP] Comparing strings... need advice. :)

2006-08-28 Thread Micky Hulse
Robert Cummings wrote: Readfile works great, it's the same as file_get_contents() and then Ah, good to hear. :D issuing an echo. You may want to also stored content generated by web users outside of the web tree. There may not be any issue with how you [...] with PHP tags and accesses it dir

RE: [PHP] Problems with UTF

2006-08-28 Thread Peter Lauri
Hi, Have you set header('Content-Type: text/html; charset=utf-8'); in your php script that you call via AJAX? Best regards, Peter PS! I assumed you were not sending any variables with the AJAX request? If so, you would need to do an utf-8 encoding of the variables and then a base64 encoding

Re: [PHP] Comparing strings... need advice. :)

2006-08-28 Thread Robert Cummings
On Mon, 2006-08-28 at 17:07 -0700, Micky Hulse wrote: > Hi Robert, > > Robert Cummings wrote: > > How are these saved files then imported into the content? Are they > > included or do you retrieve the contents using something like file(), > > file_get_contents(), or fread() and then echo it? If yo

Re: [PHP] Comparing strings... need advice. :)

2006-08-28 Thread Micky Hulse
Hi Robert, Robert Cummings wrote: How are these saved files then imported into the content? Are they included or do you retrieve the contents using something like file(), file_get_contents(), or fread() and then echo it? If you are using Currently I am using readfile() (plus some other securit

Re: [PHP] Comparing strings... need advice. :)

2006-08-28 Thread Robert Cummings
On Mon, 2006-08-28 at 16:28 -0700, Micky Hulse wrote: > Wow, thanks for all the great information folks (Stut, Ivo, Rob, and David.) > > I really appreciate all of the top-notch advice and expert information. :D > > Looks like I have a lot to think about... > > Currently, I hard-code the paths t

Re: [PHP] Comparing strings... need advice. :)

2006-08-28 Thread Robert Cummings
On Mon, 2006-08-28 at 16:50 +0200, Ivo F.A.C. Fokkema wrote: > On Mon, 28 Aug 2006 09:47:02 +0100, Stut wrote: > > > Micky Hulse wrote: > >> I am looking for the most secure/efficient way to compare these two > >> strings: > >> > >> /folder1/folder2/folder3/folder4/ > >> /folder1/folder2/folder3/

Re: [PHP] Comparing strings... need advice. :)

2006-08-28 Thread Micky Hulse
Wow, thanks for all the great information folks (Stut, Ivo, Rob, and David.) I really appreciate all of the top-notch advice and expert information. :D Looks like I have a lot to think about... Currently, I hard-code the paths to the folders that house the files I want my CMS to edit (via a co

Re: [PHP] display a single thumb per gallery

2006-08-28 Thread Frank Arensmeier
http://dev.mysql.com/doc/refman/5.0/en/join.html you could use something like this: SELECT DISTINCT thumbnails.gallery, thumbnails.id, thumbnails.binary_data FROM thumbnails you can insert everything you want from your table after the DISTINCT by writing: table.colName /frank 27 aug 200

Re: [PHP] Problems with UTF

2006-08-28 Thread Michael B Allen
On Mon, 28 Aug 2006 15:57:17 -0400 mbneto <[EMAIL PROTECTED]> wrote: > Hi, > > I have a php based script that is called from a html page via ajax. > Everything runs fine except when I use characters such as á that ends up > like A! A browser will display text according the the charset specified

[PHP] Problems with UTF

2006-08-28 Thread mbneto
Hi, I have a php based script that is called from a html page via ajax. Everything runs fine except when I use characters such as á that ends up like A! After searching and testing I found that if I remove the encodeURIComponentfrom the javascript and replace with escape everything works fine.

Re: [PHP] Comparing strings... need advice. :)

2006-08-28 Thread Robert Cummings
On Mon, 2006-08-28 at 09:47 +0100, Stut wrote: > Micky Hulse wrote: > > I am looking for the most secure/efficient way to compare these two > > strings: > > > > /folder1/folder2/folder3/folder4/ > > /folder1/folder2/folder3/folder4/file.php > > > > Basically I am trying to setup as many security

[PHP] Re: getting there- just need to output the data

2006-08-28 Thread Jo�o C�ndido de Souza Neto
echo ""; But you must change one of the row variable, there are two while one inside the other using the same var name. ""Ross"" <[EMAIL PROTECTED]> escreveu na mensagem news:[EMAIL PROTECTED] >I have retireved the unique gallery and all the data from the row. I now >need to output the data (

[PHP] getting there- just need to output the data

2006-08-28 Thread Ross
I have retireved the unique gallery and all the data from the row. I now need to output the data ($row['bin_data']) as a jpg. http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Comparing strings... need advice. :)

2006-08-28 Thread Ivo F.A.C. Fokkema
On Mon, 28 Aug 2006 09:47:02 +0100, Stut wrote: > Micky Hulse wrote: >> I am looking for the most secure/efficient way to compare these two >> strings: >> >> /folder1/folder2/folder3/folder4/ >> /folder1/folder2/folder3/folder4/file.php >> >> Basically I am trying to setup as many security featu

Re: [PHP] Comparing strings... need advice. :)

2006-08-28 Thread David Tulloh
Micky Hulse wrote: > Hi, > > I am looking for the most secure/efficient way to compare these two > strings: > > /folder1/folder2/folder3/folder4/ > /folder1/folder2/folder3/folder4/file.php > > Basically I am trying to setup as many security features as possible for > a simplistic (home-grown/ha

Re: [PHP] Comparing strings... need advice. :)

2006-08-28 Thread Micky Hulse
Stut wrote: First of all make sure you are sending both strings through realpath (http://php.net/realpath) to remove any symbolic links and relative references. Then you can compare the two strings. The way you're doing it will work but it's probably not very efficient. This is what I use... $va

Re: [PHP] S: function to remove & break URLs

2006-08-28 Thread RalfGesellensetter
Dear Jon, cheers for your lines ... Am Montag 28 August 2006 02:31 schrieb Jon Anderson: > Guestbook spam (and comment spam) is something I'd like to try to > eliminate altogether myself. I don't think there are any > one-size-fits all solutions out there yet for detection/elimination. > I'd pers

Re: [PHP] Comparing strings... need advice. :)

2006-08-28 Thread Stut
Micky Hulse wrote: > I am looking for the most secure/efficient way to compare these two > strings: > > /folder1/folder2/folder3/folder4/ > /folder1/folder2/folder3/folder4/file.php > > Basically I am trying to setup as many security features as possible for > a simplistic (home-grown/hand-coded)