Re: [PHP] unlink()?

2010-06-06 Thread tedd
At 1:02 AM +0100 6/6/10, Ashley Sheridan wrote: On Sat, 2010-06-05 at 18:55 -0400, tedd wrote: Hi gang: Never-mind. I didn't change the parent directory permissions to unlink the file -- duh! tedd I was just about to mention this! It's one of the bizarre security loopholes in Linux. If you

Re: [PHP] unlink()?

2010-06-06 Thread Ashley Sheridan
On Sun, 2010-06-06 at 14:08 -0400, tedd wrote: > At 1:02 AM +0100 6/6/10, Ashley Sheridan wrote: > >>On Sat, 2010-06-05 at 18:55 -0400, tedd wrote: > >> > >>Hi gang: > >> > >>Never-mind. > >> > >>I didn't change the parent directory permissions to unlink the file -- duh! > >> > >>tedd > > > >I was

[PHP] DOMDocument throws Unexpected end tag error when loading valid HTML

2010-06-06 Thread Raymond Irving
Hello, Sorry to have to be writing to you directly. I've tried sending this email to the mailing list but it keeps returning with a failure message: Remote host said: 550 5.7.1 reject mailfrom [sbl] It appears that my yahoo about has been black listed? Anyway, I'm hoping you can help me with th

Re: [PHP] unlink()?

2010-06-06 Thread tedd
I think it's more likely that a security flaw might be found which allows code other than yours to run. Buffer overflows were notorious for this, as they had the side-effect of running whatever ran outside of their buffer range, so you could in effect get a system with an overflow hole to r

[PHP] image thumbnail from blob data

2010-06-06 Thread saeed ahmed
hello friends, image store into database in a blob field, But when I'm trying to retrieve it from the database then its cause problems. if I'm trying header( "Content-type: image/jpeg") (if my image type is jpeg), then its working well. but when I'm trying to mixing up this with some HTML code th

Re: [PHP] image thumbnail from blob data

2010-06-06 Thread Ashley Sheridan
On Mon, 2010-06-07 at 02:37 +0600, saeed ahmed wrote: > hello friends, > > image store into database in a blob field, But when I'm trying to retrieve > it from the database then its cause problems. > > if I'm trying header( "Content-type: image/jpeg") (if my image type is > jpeg), then its worki

Re: [PHP] image thumbnail from blob data

2010-06-06 Thread Karl DeSaulniers
Sent from losPhone On Jun 6, 2010, at 3:55 PM, Ashley Sheridan wrote: On Mon, 2010-06-07 at 02:37 +0600, saeed ahmed wrote: hello friends, image store into database in a blob field, But when I'm trying to retrieve it from the database then its cause problems. if I'm trying header(

Re: [PHP] image thumbnail from blob data

2010-06-06 Thread Paul M Foster
On Sun, Jun 06, 2010 at 09:55:20PM +0100, Ashley Sheridan wrote: > > Having said that, it's not generally a good idea to store images as > blobs in my experience. It can create slowdowns in database access, and > increases the amount of space the db requires by a lot! What most people > do I've

Re: [PHP] image thumbnail from blob data

2010-06-06 Thread Phpster
On Jun 6, 2010, at 5:51 PM, Paul M Foster wrote: On Sun, Jun 06, 2010 at 09:55:20PM +0100, Ashley Sheridan wrote: Having said that, it's not generally a good idea to store images as blobs in my experience. It can create slowdowns in database access, and increases the amount of space

[PHP] Limiting logins

2010-06-06 Thread Skip Evans
Hey all, I'm familiar with setting cookies in PHP and using REMOTE_ADDR to get a visitor's IP address (or that of their gateway), but not quite sure how to implement a robust mechanism that would limit a user to logging in from only two different machines, a requirement this client has on the pro

Re: [PHP] Limiting logins

2010-06-06 Thread Ashley Sheridan
On Sun, 2010-06-06 at 20:31 -0500, Skip Evans wrote: > Hey all, > > I'm familiar with setting cookies in PHP and using REMOTE_ADDR > to get a visitor's IP address (or that of their gateway), but > not quite sure how to implement a robust mechanism that would > limit a user to logging in from only

Re: [PHP] Limiting logins

2010-06-06 Thread Paul M Foster
On Sun, Jun 06, 2010 at 08:31:22PM -0500, Skip Evans wrote: > Hey all, > > I'm familiar with setting cookies in PHP and using REMOTE_ADDR > to get a visitor's IP address (or that of their gateway), but > not quite sure how to implement a robust mechanism that would > limit a user to logging in fro

[PHP] DOMDocument::loadXML() failed when parsing comments inside a script tag

2010-06-06 Thread Raymond Irving
Hello, I'm experiencing another issue when attempting to use DOMDocument::loadXML() to load the following HTML code: http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>