Re: [PHP] Posting Summary for Week Ending 25 January, 2008: php-general@lists.php.net

2008-01-24 Thread Robert Cummings
On Thu, 2008-01-24 at 23:11 -0500, Wolf wrote: > Jay Blanchard wrote: > > [snip] > >> Dude, I laughed so loud that it echoed in the halls of the > >> Engineering Wing over here. What makes it so funny? That it's not > >> much of an exaggeration! ;-D > >> > > > > very glad to raise a laugh :

Re: [PHP] Rename

2008-01-24 Thread Robert Cummings
On Thu, 2008-01-24 at 18:05 -0500, Al wrote: > You obviously missed my last sentence. "Once you get this working, you can > put > the rename() in the first foreach() loop. Don't forget to take care of > exceptions. " Yep, sorry :) Cheers, Rob. -- ...

Re: [PHP] pack it in

2008-01-24 Thread Nathan Nobbe
On Jan 24, 2008 7:13 PM, Jochem Maas <[EMAIL PROTECTED]> wrote: > ok. that's where my brain goes to mush - all strings in php (for now) > are binary ... what's the difference between the binary strings > in php and such found in these 'binary files' that they need to be > packed/unpacked? > > sorr

Re: [PHP] Posting Summary for Week Ending 25 January, 2008: php-general@lists.php.net

2008-01-24 Thread Wolf
Jay Blanchard wrote: [snip] Dude, I laughed so loud that it echoed in the halls of the Engineering Wing over here. What makes it so funny? That it's not much of an exaggeration! ;-D very glad to raise a laugh :-) those without a sense of humour should leave the php highway at the next

[PHP] [EMAIL PROTECTED]

2008-01-24 Thread Marek Zdybel
-- Fotograf Ślubny http://mzdybel.pl tel. 607 825 735 gg:4203195 skype: marek.zdybel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Looking for easier way to build email message

2008-01-24 Thread Eric Butera
On Jan 24, 2008 6:20 PM, Rene Brehmer <[EMAIL PROTECTED]> wrote: > Drew a blank off the archive, so here goes... > > I'm working on some forms for our company website, all of which simply have > to be mailed to us by email. > > After verifying that the content of all the fields is valid and the pro

[PHP] Re: Looking for easier way to build email message

2008-01-24 Thread Manuel Lemos
Hello, on 01/24/2008 09:20 PM Rene Brehmer said the following: > Drew a blank off the archive, so here goes... > > I'm working on some forms for our company website, all of which simply have > to be mailed to us by email. > > After verifying that the content of all the fields is valid and the pr

Re: SV: SV: [PHP] Sql support

2008-01-24 Thread Chris
mattias wrote: yes but if you check my phpinfo.php http://mjw.se/phpinfo.php i can't reed out if sql support are enabled If it was there would be a big section called 'mssql' - like there is for odbc. If that's not there, then no you don't have mssql support enabled. -- Postgresql & php tut

SV: SV: [PHP] Sql support

2008-01-24 Thread mattias
yes but if you check my phpinfo.php http://mjw.se/phpinfo.php i can't reed out if sql support are enabled -Ursprungligt meddelande- Från: Chris [mailto:[EMAIL PROTECTED] Skickat: den 25 januari 2008 01:18 Till: mattias Kopia: php-general@lists.php.net Ämne: Re: SV: [PHP] Sql support matt

Re: SV: [PHP] Sql support

2008-01-24 Thread Chris
mattias wrote: oops sorry i meen sql You could probably access it through odbc but I can't see any other method available. If you want to use the mssql_* functions the php site has info about how to get it going: http://php.net/mssql Read the comments too - it looks like there are a few

Re: [PHP] Looking for easier way to build email message

2008-01-24 Thread Jochem Maas
a well known easy to use wrapper is phpmailer (STW), alternatively check out Manuel Lemos' mail related offerings at phpclasses.org (his code is, afaict, better but also a little more involved. Rene Brehmer schreef: Drew a blank off the archive, so here goes... I'm working on some forms for our

Re: [PHP] Sql support

2008-01-24 Thread Richard Lynch
On Thu, January 24, 2008 5:05 pm, Chris wrote: > mattias wrote: >> I try to add php-support to my php installation on windows 2000 >> server > > Eh? > > What sort of support are you trying to add? The subject said "Sql support" so I'd guess MS SQL. The answer being: #1 Look at a page like thi

Re: [PHP] pack it in

2008-01-24 Thread Jochem Maas
Richard Lynch schreef: On Thu, January 24, 2008 5:20 pm, Jochem Maas wrote: someone asked about checksum values in another thread, I believe he got his answer no thanks to me. but whilst I was trying to help I got stuck playing with pack/unpack. so now I have the broadbrush question of what wou

Re: [PHP] Looking for easier way to build email message

2008-01-24 Thread Richard Lynch
On Thu, January 24, 2008 5:20 pm, Rene Brehmer wrote: > Drew a blank off the archive, so here goes... > > I'm working on some forms for our company website, all of which simply > have > to be mailed to us by email. > > After verifying that the content of all the fields is valid and the > proper > t

Re: [PHP] pack it in

2008-01-24 Thread Richard Lynch
On Thu, January 24, 2008 5:20 pm, Jochem Maas wrote: > someone asked about checksum values in another thread, I believe > he got his answer no thanks to me. but whilst I was trying to help > I got stuck playing with pack/unpack. > > so now I have the broadbrush question of what would one use > pack

Re: [PHP] Looking for easier way to build email message

2008-01-24 Thread Nathan Nobbe
On Jan 24, 2008 6:20 PM, Rene Brehmer <[EMAIL PROTECTED]> wrote: > Drew a blank off the archive, so here goes... > > I'm working on some forms for our company website, all of which simply > have > to be mailed to us by email. > > After verifying that the content of all the fields is valid and the

[PHP] Looking for easier way to build email message

2008-01-24 Thread Rene Brehmer
Drew a blank off the archive, so here goes... I'm working on some forms for our company website, all of which simply have to be mailed to us by email. After verifying that the content of all the fields is valid and the proper type, it builds the email message as following. This all works great, b

Re: [PHP] pack it in

2008-01-24 Thread Nathan Nobbe
On Jan 24, 2008 6:20 PM, Jochem Maas <[EMAIL PROTECTED]> wrote: > someone asked about checksum values in another thread, I believe > he got his answer no thanks to me. but whilst I was trying to help > I got stuck playing with pack/unpack. > > so now I have the broadbrush question of what would on

SV: [PHP] Sql support

2008-01-24 Thread mattias
oops sorry i meen sql -Ursprungligt meddelande- Från: Chris [mailto:[EMAIL PROTECTED] Skickat: den 25 januari 2008 00:06 Till: mattias Kopia: php-general@lists.php.net Ämne: Re: [PHP] Sql support mattias wrote: > I try to add php-support to my php installation on windows 2000 server Eh?

Re: [PHP] Using mysql_real_escape_string without connecting to mysql

2008-01-24 Thread Dotan Cohen
On 25/01/2008, Jim Lucas <[EMAIL PROTECTED]> wrote: > That should be considered part of the DRY method. But spanning page > requests. > > I cannot see any reason why you shouldn't be doing this before you > insert this information into your DB. Doing it once on your insert, > instead of every sin

[PHP] pack it in

2008-01-24 Thread Jochem Maas
someone asked about checksum values in another thread, I believe he got his answer no thanks to me. but whilst I was trying to help I got stuck playing with pack/unpack. so now I have the broadbrush question of what would one use pack/unpack for? can anyone point at some realworld examples/code t

Re: [PHP] Using mysql_real_escape_string without connecting to mysql

2008-01-24 Thread Jim Lucas
Richard Lynch wrote: On Thu, January 24, 2008 12:03 pm, Dotan Cohen wrote: On 24/01/2008, Richard Lynch <[EMAIL PROTECTED]> wrote: It is NOT safe from, say, XSS attack if $evilString contains an XSS snippet and you re-display it on your site. In other words, you should still filter the INPUT s

Re: [PHP] Sql support

2008-01-24 Thread Chris
mattias wrote: I try to add php-support to my php installation on windows 2000 server Eh? What sort of support are you trying to add? -- Postgresql & php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.p

Re: [PHP] Rename

2008-01-24 Thread Al
You obviously missed my last sentence. "Once you get this working, you can put the rename() in the first foreach() loop. Don't forget to take care of exceptions. " Robert Cummings wrote: On Thu, 2008-01-24 at 16:18 -0500, Al wrote: First get an array of all the files, e.g., That's useful

Re: [PHP] Assistance needed with mysql query to achieve this php5

2008-01-24 Thread Richard Lynch
Just take out member_id = '%s' and use friendWIthId = '%s' instead. Actually, I think you may need to swap member/friendwith as well... But why you are storing everybody's NAME twice is beyond me... Or maybe I'm guessing wrongly what the fields are... On Thu, January 24, 2008 10:49 am, Don Don

Re: [PHP] Using mysql_real_escape_string without connecting to mysql

2008-01-24 Thread Richard Lynch
On Thu, January 24, 2008 12:03 pm, Dotan Cohen wrote: > On 24/01/2008, Richard Lynch <[EMAIL PROTECTED]> wrote: >> It is NOT safe from, say, XSS attack if $evilString contains an XSS >> snippet and you re-display it on your site. >> >> In other words, you should still filter the INPUT somewhere; Bu

[PHP] Sql support

2008-01-24 Thread mattias
I try to add php-support to my php installation on windows 2000 server Can someone check my phpinfo.php? http://mjw.se/phpinfo.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Rename

2008-01-24 Thread Nathan Nobbe
On Jan 24, 2008 4:42 PM, Bastien Koert <[EMAIL PROTECTED]> wrote: > http://ca3.php.net/manual/en/function.copy.php > > make the manual your friend rename() is much more efficient; since the original files will have to be deleted as well, with a copy approach. and i suspect rename() atomic as wel

RE: [PHP] PHP and LDAP Authentication

2008-01-24 Thread Bastien Koert
htmlentities? urlencode? bastien> Date: Thu, 24 Jan 2008 15:20:44 -0600> From: [EMAIL PROTECTED]> To: php-general@lists.php.net> Subject: [PHP] PHP and LDAP Authentication> > Hello,> > I have encountered a situation where a user password> Contains a space in it (in the middle). I am looki

Re: [PHP] Using mysql_real_escape_string without connecting to mysql

2008-01-24 Thread Dotan Cohen
On 24/01/2008, Eric Butera <[EMAIL PROTECTED]> wrote: > That won't save you if you're echoing into a single quote attribute. > (ie: src='') Even after I've stripped away the tags with strip_tags()? > Like htmlspecialchars(), the optional second quote_style parameter > lets you define what will be

RE: [PHP] Rename

2008-01-24 Thread Bastien Koert
http://ca3.php.net/manual/en/function.copy.php make the manual your friend bastien> Date: Thu, 24 Jan 2008 14:36:55 -0600> From: [EMAIL PROTECTED]> To: php-general@lists.php.net> Subject: [PHP] Rename> > Does anyone know if there is a way to move all the files in one directory> into another?

[PHP] PHP and LDAP Authentication

2008-01-24 Thread Sutton, John
Hello, I have encountered a situation where a user password Contains a space in it (in the middle). I am looking for A way to send that password through ldap_bind() Correctly. So far no luck. Can you give me any suggestions? John J. Sutton Sr. Programmer/Analyst 371-4872 (office) 773-4550 (cell)

Re: [PHP] Rename

2008-01-24 Thread Robert Cummings
On Thu, 2008-01-24 at 16:18 -0500, Al wrote: > First get an array of all the files, e.g., That's useful for debugging, but once you know what you're doing, it's a waste of resources to accumulate the array unless you have a good reason for doing so :) Cheers, Rob. -- ...

Re: [PHP] Rename

2008-01-24 Thread Al
First get an array of all the files, e.g., $fpDir is the full path to yiour dir. foreach(glob("$fpDir*.*") as $file) { $filesArray[] = $file; } print_r($filesArray); //so you can see what's happening Then do a: foreach($filesArray as $file){ rename($sourceDir.$file,

Re: [PHP] Rename

2008-01-24 Thread Nathan Nobbe
here a simple little cli script that has the guts of what youre trying to accomplish. NOTE: this is not a comprehensive solution :) -nathan

Re: [PHP] Rename

2008-01-24 Thread Nathan Nobbe
On Jan 24, 2008 3:51 PM, Pastor Steve <[EMAIL PROTECTED]> wrote: > I have been looking, but the problem is that I don¹t know what questions > to > ask or what to look for. I think it is a rename function. That works, but > it > only does one file at a time. I was looking for something that will do

Re: [PHP] Rename

2008-01-24 Thread Pastor Steve
I have been looking, but the problem is that I don¹t know what questions to ask or what to look for. I think it is a rename function. That works, but it only does one file at a time. I was looking for something that will do all the files in the directory without needing to know the name of each fil

[PHP] Rename

2008-01-24 Thread Pastor Steve
Does anyone know if there is a way to move all the files in one directory into another? Thanks, -- Steve M.

[PHP] Re: Question about functions

2008-01-24 Thread Nathan Rixham
Jason Pruim wrote: Hi everyone! So, I'm trying to learn about functions, and I think I understand what to use them for... And one of the ideas I had was to write a function to logout of an application. The question I have though, is how do I call it? Right now I just have a link like this: C

Re: [PHP] Question about functions

2008-01-24 Thread Dave Goodchild
Said it was a crude example and I was pushed for time On Jan 24, 2008 8:13 PM, Eric Butera <[EMAIL PROTECTED]> wrote: > On Jan 24, 2008 3:08 PM, Dave Goodchild <[EMAIL PROTECTED]> wrote: > > header("Location: index.php"); > > Redirect uri's should be absolute. >

Re: [PHP] Question about functions

2008-01-24 Thread Eric Butera
On Jan 24, 2008 3:08 PM, Dave Goodchild <[EMAIL PROTECTED]> wrote: > header("Location: index.php"); Redirect uri's should be absolute. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Question about functions

2008-01-24 Thread Eric Butera
On Jan 24, 2008 3:00 PM, Jason Pruim <[EMAIL PROTECTED]> wrote: > Hi everyone! > > So, I'm trying to learn about functions, and I think I understand what > to use them for... And one of the ideas I had was to write a function > to logout of an application. The question I have though, is how do I >

Re: [PHP] Question about functions

2008-01-24 Thread Dave Goodchild
Methink you're a little confused. A function is a piece of code that performs a specific job that can be called. You may send it data, you may not. It may return data, it may not. If your link goes to logout.php, that script may use functions to do it's job. You can't call a function in a link as p

Re: [PHP] Question about functions

2008-01-24 Thread Stut
On 24 Jan 2008, at 20:00, Jason Pruim wrote: So, I'm trying to learn about functions, and I think I understand what to use them for... And one of the ideas I had was to write a function to logout of an application. The question I have though, is how do I call it? Right now I just have a li

[PHP] Question about functions

2008-01-24 Thread Jason Pruim
Hi everyone! So, I'm trying to learn about functions, and I think I understand what to use them for... And one of the ideas I had was to write a function to logout of an application. The question I have though, is how do I call it? Right now I just have a link like this: Click here to l

RE: [PHP] Verification number

2008-01-24 Thread Bastien Koert
google mod10 checksum bastien > Date: Thu, 24 Jan 2008 12:37:20 +0100> From: [EMAIL PROTECTED]> To: > php-general@lists.php.net> Subject: [PHP] Verification number> > Hi> > Sorry > if this is considered off topic. Please ignore the post in that case.> > My > site uses ten digit numbers as ID:

Re: [PHP] Posting Summary for Week Ending 25 January, 2008: php-general@lists.php.net

2008-01-24 Thread Andrew Ballard
On Jan 24, 2008 1:11 PM, Daniel Brown <[EMAIL PROTECTED]> wrote: > On Jan 24, 2008 8:13 AM, Jay Blanchard <[EMAIL PROTECTED]> wrote: > > The first time we ever see all of us face to face there will have to be > > a lot of beer bought. The conversation will be interesting though. > > Several folks w

Re: [PHP] including files outside of document root

2008-01-24 Thread Daniel Brown
On Jan 24, 2008 1:05 PM, Jason Pruim <[EMAIL PROTECTED]> wrote: > > You just made my life so much earlier! Thank you! Yes, you guessed it. I am your father. -- Daniel P. Brown Senior Unix Geek and #1 Rated "Year's Coolest Guy" By Self Since Nineteen-Seventy-[mumble]. -- PHP General Mail

Re: [PHP] Using mysql_real_escape_string without connecting to mysql

2008-01-24 Thread Eric Butera
On Jan 24, 2008 1:03 PM, Dotan Cohen <[EMAIL PROTECTED]> wrote: > On 24/01/2008, Richard Lynch <[EMAIL PROTECTED]> wrote: > > It is NOT safe from, say, XSS attack if $evilString contains an XSS > > snippet and you re-display it on your site. > > > > In other words, you should still filter the INPUT

Re: [PHP] Posting Summary for Week Ending 25 January, 2008: php-general@lists.php.net

2008-01-24 Thread Daniel Brown
On Jan 24, 2008 8:13 AM, Jay Blanchard <[EMAIL PROTECTED]> wrote: > The first time we ever see all of us face to face there will have to be > a lot of beer bought. The conversation will be interesting though. > Several folks will ask and answer questions. I will say RTFM so many > times that folks

Re: [PHP] including files outside of document root

2008-01-24 Thread Jason Pruim
On Jan 23, 2008, at 4:43 PM, Daniel Brown wrote: On Jan 23, 2008 4:19 PM, Jason Pruim <[EMAIL PROTECTED]> wrote: Okay, so I have this mostly working now! if I put my ini_set("include_path", "blah/to/balh"); on each and every page. I know I could include a file that is in the document root whic

Re: [PHP] Using mysql_real_escape_string without connecting to mysql

2008-01-24 Thread Dotan Cohen
On 24/01/2008, Richard Lynch <[EMAIL PROTECTED]> wrote: > It is NOT safe from, say, XSS attack if $evilString contains an XSS > snippet and you re-display it on your site. > > In other words, you should still filter the INPUT somewhere; But you > are escaping the output to MySQL so that it is not g

RE: [PHP] are email address could be spammed

2008-01-24 Thread bruce
also... for gmail, as far as i can tell.. you can't do a resend on a sent email... ie, get the email you sent, reedit it, and resend it.. peace.. -Original Message- From: Daniel Brown [mailto:[EMAIL PROTECTED] Sent: Thursday, January 24, 2008 9:51 AM To: Eric Butera Cc: Nathan Nobbe; Jo

Re: [PHP] Using mysql_real_escape_string without connecting to mysql

2008-01-24 Thread Richard Lynch
On Thu, January 24, 2008 10:01 am, Dotan Cohen wrote: > On 24/01/2008, Jochem Maas <[EMAIL PROTECTED]> wrote: >> > Which basically is the same as a simple mysql_real_escape_string? >> In >> > other words, mysql_real_escape_string itself is safe from SQL >> > injection? >> >> not exactly - it assume

Re: [PHP] are email address could be spammed

2008-01-24 Thread Daniel Brown
On Jan 24, 2008 10:42 AM, Eric Butera <[EMAIL PROTECTED]> wrote: > I used to be hardcore pop only but now that I use gmail I don't care > about any other mail client. It beats Thunderbird and Mail.app hands > down. If you don't look at the right hand side you won't see the ads. > :) I even have

Re: [PHP] Using mysql_real_escape_string without connecting to mysql

2008-01-24 Thread Richard Lynch
On Wed, January 23, 2008 11:28 pm, Dotan Cohen wrote: > In > other words, mysql_real_escape_string itself is safe from SQL > injection? Yes. That is the entire purpose of the existence of that function in the first place. -- Some people have a "gift" link here. Know what I want? I want you to b

Re: [PHP] forms and php

2008-01-24 Thread Richard Lynch
Some older browsers didn't send along the button name/value when you hit enter, for a one-button form... But I've never heard of one that failed to send anything at all... It's almost for sure a browser issue though -- PHP doesn't really *do* anything with the data it gets. It just stuffs it int

Re: [PHP] (Slightly OT) are email address could be spammed

2008-01-24 Thread Tom Chubb
On 24/01/2008, Stut <[EMAIL PROTECTED]> wrote: > > > On 24 Jan 2008, at 15:42, Eric Butera wrote: > > I used to be hardcore pop only but now that I use gmail I don't care > > about any other mail client. It beats Thunderbird and Mail.app hands > > down. If you don't look at the right hand side yo

[PHP] Re: 128M need in PHP5.2.5 instead of 8M in PHP5.1.4!

2008-01-24 Thread Nathan Rixham
RE: the second apache issue, you only did a restart; you need to do a force-reload to properly unload and reload apache2; as such you didn't actually restart until the stop/start. On a side note, can I suggest you uninstall all versions of php5 then re-install again and see if the issues resol

Re: [PHP] Verification number

2008-01-24 Thread Richard Lynch
On Thu, January 24, 2008 5:37 am, Emil Edeholt wrote: > Sorry if this is considered off topic. Please ignore the post in that > case. > > My site uses ten digit numbers as ID:s for our products. I would like > the last digit to be a verification/check digit. I was just about to > just make some sim

[PHP] Assistance needed with mysql query to achieve this php5

2008-01-24 Thread Don Don
Hi all I have a table below CREATE TABLE `friends` ( `id` int(11) NOT NULL auto_increment, `member_id` int(11) NOT NULL, `member` varchar(32) NOT NULL, `friendwith` varchar(32) NOT NULL, `friendWithId` int(11) NOT NULL, `status` varchar(32) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyIS

Re: [PHP] if

2008-01-24 Thread Richard Lynch
On Thu, January 24, 2008 9:39 am, Pastor Steve wrote: > Greetings, > > Can anyone point me in the right direction on this? > > I want a link to an image that appears below the link after it is > clicked. I > think it would be an ³if² statement, but I am not sure where to start. What you describe

Re: [PHP] RE : [PHP] 128M need in PHP5.2.5 instead of 8M in PHP5.1.4!

2008-01-24 Thread Richard Lynch
On Thu, January 24, 2008 10:14 am, Luc Maltier wrote: > Thanks for this clue (ini_set). But I normally don't need this amount > of > memory anywhere, as 8M were OK in PHP5.1.4... I just want to > understand what > happens. PHP RAM needs shouldn't jump from 8M to 128M in a minor version change...

Re: [PHP] 128M need in PHP5.2.5 instead of 8M in PHP5.1.4!

2008-01-24 Thread Sancar Saran
On Thursday 24 January 2008 17:44:03 Luc Maltier wrote: > Hello! > > My first message: > > I've just updated PHP from 5.1.4 to 5.2.5 (to solve an Apache problem when > double-clicking on links). This was successful, as the problem is now > solved, but I now, sometimes, get a message stating that th

[PHP] Re: RE : [PHP] 128M need in PHP5.2.5 instead of 8M in PHP5.1.4!

2008-01-24 Thread Eric Butera
On Jan 24, 2008 11:14 AM, Luc Maltier <[EMAIL PROTECTED]> wrote: > > Thanks for this clue (ini_set). But I normally don't need this amount of > memory anywhere, as 8M were OK in PHP5.1.4... I just want to understand what > happens. > > Memory limit wasn't force enabled before 5.2.1. Maybe that wa

Re: [PHP] are email address could be spammed

2008-01-24 Thread Eric Butera
On Jan 24, 2008 10:56 AM, Stut <[EMAIL PROTECTED]> wrote: > > On 24 Jan 2008, at 15:42, Eric Butera wrote: > > I used to be hardcore pop only but now that I use gmail I don't care > > about any other mail client. It beats Thunderbird and Mail.app hands > > down. If you don't look at the right han

[PHP] RE : [PHP] 128M need in PHP5.2.5 instead of 8M in PHP5.1.4!

2008-01-24 Thread Luc Maltier
Thanks for this clue (ini_set). But I normally don't need this amount of memory anywhere, as 8M were OK in PHP5.1.4... I just want to understand what happens. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] forms and php

2008-01-24 Thread Nathan Nobbe
On Jan 24, 2008 3:34 AM, Mark Pashia <[EMAIL PROTECTED]> wrote: > If I fill in the fields of a form and hit the "enter" key to submit the > form, no variables seem to be passed along. If I use the submit button, > everything works perfectly. It seems that other forms on the web work with > the ent

Re: [PHP] Using mysql_real_escape_string without connecting to mysql

2008-01-24 Thread Dotan Cohen
On 24/01/2008, Jochem Maas <[EMAIL PROTECTED]> wrote: > > Which basically is the same as a simple mysql_real_escape_string? In > > other words, mysql_real_escape_string itself is safe from SQL > > injection? > > not exactly - it assumes you will use the value as a quoted string in a query. > > $s =

Re: [PHP] are email address could be spammed

2008-01-24 Thread Stut
On 24 Jan 2008, at 15:42, Eric Butera wrote: I used to be hardcore pop only but now that I use gmail I don't care about any other mail client. It beats Thunderbird and Mail.app hands down. If you don't look at the right hand side you won't see the ads. :) I even have it set up now to pull my

Re: [PHP] are email address could be spammed

2008-01-24 Thread Robert Cummings
On Thu, 2008-01-24 at 10:42 -0500, Eric Butera wrote: > On Jan 24, 2008 10:36 AM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > > On Jan 24, 2008 10:26 AM, Jochem Maas <[EMAIL PROTECTED]> wrote: > > > > > like a charm for the marketing, ad-shovelling sales whores at google you. > > > > > > i dont know

Re: [PHP] 128M need in PHP5.2.5 instead of 8M in PHP5.1.4!

2008-01-24 Thread Eric Butera
On Jan 24, 2008 10:44 AM, Luc Maltier <[EMAIL PROTECTED]> wrote: > Hello! > > My first message: > > I've just updated PHP from 5.1.4 to 5.2.5 (to solve an Apache problem when > double-clicking on links). This was successful, as the problem is now > solved, but I now, sometimes, get a message statin

Re: [PHP] if

2008-01-24 Thread Nathan Nobbe
On Jan 24, 2008 10:39 AM, Pastor Steve <[EMAIL PROTECTED]> wrote: > Greetings, > > Can anyone point me in the right direction on this? > > I want a link to an image that appears below the link after it is clicked. > I > think it would be an ³if² statement, but I am not sure where to start. there

Re: [PHP] Posting Summary for Week Ending 25 January, 2008: php-general@lists.php.net

2008-01-24 Thread Robert Cummings
On Thu, 2008-01-24 at 09:10 +0100, Zoltán Németh wrote: > 2008. 01. 24, csütörtök keltezéssel 02.45-kor Wolf ezt írta: > > Jochem Maas wrote: > > > > > > Posting Summary for PHP-General List > > > Week Ending: Friday, 25 January, 2008 > > > > > > Messages| Bytes | S

Re: [PHP] DOM API Namespaces - help?

2008-01-24 Thread Nathan Rixham
Cheers indeed Rob! That DOMXPath solution is exactly what I was looking for; Many, Many Thanks, Nathan Rob wrote: Hi Nathan, Nathan Rixham wrote: Cheers Rob, But this is the problem, I don't know what the namespace/prefix is! ie "xi" and the following doesn't work: $root->getAttributeNS(

Re: [PHP] are email address could be spammed

2008-01-24 Thread Eric Butera
On Jan 24, 2008 10:36 AM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > On Jan 24, 2008 10:26 AM, Jochem Maas <[EMAIL PROTECTED]> wrote: > > > like a charm for the marketing, ad-shovelling sales whores at google you. > > > i dont know man; its a pretty nice user interface. i might try to setup an > op

[PHP] 128M need in PHP5.2.5 instead of 8M in PHP5.1.4!

2008-01-24 Thread Luc Maltier
Hello! My first message: I've just updated PHP from 5.1.4 to 5.2.5 (to solve an Apache problem when double-clicking on links). This was successful, as the problem is now solved, but I now, sometimes, get a message stating that the memory is exhausted. I modififed php.ini and set memory_limit to

[PHP] if

2008-01-24 Thread Pastor Steve
Greetings, Can anyone point me in the right direction on this? I want a link to an image that appears below the link after it is clicked. I think it would be an ³if² statement, but I am not sure where to start. Thanks, -- Steve M.

Re: [PHP] are email address could be spammed

2008-01-24 Thread Nathan Nobbe
On Jan 24, 2008 10:26 AM, Jochem Maas <[EMAIL PROTECTED]> wrote: > like a charm for the marketing, ad-shovelling sales whores at google you. i dont know man; its a pretty nice user interface. i might try to setup an open source web interface for my server when i get the time, but for now i can

Re: [PHP] are email address could be spammed

2008-01-24 Thread Jochem Maas
Nathan Nobbe schreef: On Jan 24, 2008 4:57 AM, Jochem Maas <[EMAIL PROTECTED]> wrote: it's 'our email' not 'are email' ;-) and yes we know about this problem. nothing much we can do about it get gmail; it works like a charm :) like a charm for the marketing, ad-shovelling sales whores at g

Re: [PHP] are email address could be spammed

2008-01-24 Thread Nathan Nobbe
On Jan 24, 2008 4:57 AM, Jochem Maas <[EMAIL PROTECTED]> wrote: > it's 'our email' not 'are email' ;-) and yes we know about this problem. > nothing much we can do about it get gmail; it works like a charm :) -nathan

Re: [PHP] DOM API Namespaces - help?

2008-01-24 Thread Rob
Hi Nathan, Nathan Rixham wrote: Cheers Rob, But this is the problem, I don't know what the namespace/prefix is! ie "xi" and the following doesn't work: $root->getAttributeNS('http://www.w3.org/2000/xmlns/', '*'); further xmlns is ?not? a prefix so this won't work either.. $root->lookupPrefi

Re: [PHP] forms and php

2008-01-24 Thread Jochem Maas
Mark Pashia schreef: I am fairly new to the php/mySQL combo and just noticed an unusual behavior and don't know where to find the answer to fix this. It is probably common knowledge, but not to a newbie. If I fill in the fields of a form and hit the "enter" key to submit the form, no variabl

Re: [PHP] DOM API Namespaces - help?

2008-01-24 Thread Nathan Rixham
Cheers Rob, But this is the problem, I don't know what the namespace/prefix is! ie "xi" and the following doesn't work: $root->getAttributeNS('http://www.w3.org/2000/xmlns/', '*'); further xmlns is ?not? a prefix so this won't work either.. $root->lookupPrefix('http://www.w3.org/2000/xmlns/')

Re: [PHP] Verification number

2008-01-24 Thread Per Jessen
Emil Edeholt wrote: > George Pitcher wrote: >> Emil, >> >> have you looked at the 10-digit ISBN verification, which has just >> been replaced by the 13-digit EAN system? >> >> It may be of use, but it needs the field to be varchar as the >> checkdigit may be a 'X'. AFAIK, the 10-digit ISBN number

RE: [PHP] Posting Summary for Week Ending 25 January, 2008: php-general@lists.php.net

2008-01-24 Thread Zoltán Németh
2008. 01. 24, csütörtök keltezéssel 07.13-kor Jay Blanchard ezt írta: > [snip] > > Dude, I laughed so loud that it echoed in the halls of the > > Engineering Wing over here. What makes it so funny? That it's not > > much of an exaggeration! ;-D > > > > very glad to raise a laugh :-) those

RE: [PHP] Posting Summary for Week Ending 25 January, 2008: php-general@lists.php.net

2008-01-24 Thread Jay Blanchard
[snip] > Dude, I laughed so loud that it echoed in the halls of the > Engineering Wing over here. What makes it so funny? That it's not > much of an exaggeration! ;-D > very glad to raise a laugh :-) those without a sense of humour should leave the php highway at the next exit. ;-) oh and

Re: [PHP] Verification number

2008-01-24 Thread Emil Edeholt
Hi, Thanks for your sugestions. I ended up using the Luhn algorithm. Simple but I think it will work for me. http://en.wikipedia.org/wiki/Luhn_algorithm Emil George Pitcher wrote: Emil, have you looked at the 10-digit ISBN verification, which has just been replaced by the 13-digit EAN syst

Re: [PHP] DOM API Namespaces - help?

2008-01-24 Thread Rob
Hi Nathan, You need to retrieve the attribute based on the xmlns namespace. Nathan Rixham wrote: Thanks Jessen, I'm using the DOM API (domdocument) in PHP 5 - and yes pull xmlns:xi="http://www.w3.org/2001/XInclude"; from the chapter or indeed any namespaces defined in the root node and store t

Re: [PHP] Verification number

2008-01-24 Thread Jochem Maas
Emil Edeholt schreef: Hi Sorry if this is considered off topic. Please ignore the post in that case. My site uses ten digit numbers as ID:s for our products. I would like the last digit to be a verification/check digit. I was just about to just make some simple function that would add the oth

Re: [PHP] Using mysql_real_escape_string without connecting to mysql

2008-01-24 Thread Jochem Maas
Dotan Cohen schreef: On 24/01/2008, Richard Lynch <[EMAIL PROTECTED]> wrote: On Wed, January 23, 2008 4:04 pm, Dotan Cohen wrote: Is the "--" here not treated as the beginning of an SQL comment? No, because it is inside the apostrophes. The purpose of mysql_real_escape_string (or using prepar

Re: [PHP] DOM API Namespaces - help?

2008-01-24 Thread Nathan Rixham
Thanks Jessen, I'm using the DOM API (domdocument) in PHP 5 - and yes pull xmlns:xi="http://www.w3.org/2001/XInclude"; from the chapter or indeed any namespaces defined in the root node and store them in a variable. If anybody could shed any light it'd be greatly appreciated. Nathan Per Jesse

[PHP] Verification number

2008-01-24 Thread Emil Edeholt
Hi Sorry if this is considered off topic. Please ignore the post in that case. My site uses ten digit numbers as ID:s for our products. I would like the last digit to be a verification/check digit. I was just about to just make some simple function that would add the other values together int

Re: [PHP] are email address could be spammed

2008-01-24 Thread Jochem Maas
hi clive, it's 'our email' not 'are email' ;-) and yes we know about this problem. nothing much we can do about it clive schreef: http://www.mail4liste.de/viewtopic.php?p=259845&sid=4b4f436983abded92e9a090cdea0c688 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Posting Summary for Week Ending 25 January, 2008: php-general@lists.php.net

2008-01-24 Thread Jochem Maas
Paul Scott schreef: On Thu, 2008-01-24 at 01:13 +0100, Jochem Maas wrote: stats while I'm at it ... I've been busy wracking my brain trying to figure out the setup for a load-balanced configuration for one of my major clients ... at least a system capable of migrating to loadbalancing ... global

Re: [PHP] are email address could be spammed

2008-01-24 Thread Zoltán Németh
2008. 01. 24, csütörtök keltezéssel 11.40-kor clive ezt írta: > http://www.mail4liste.de/viewtopic.php?p=259845&sid=4b4f436983abded92e9a090cdea0c688 > > read back the archives, this has been discussed already. our addresses are already public, as we use them to answer mails on this list. so i

[PHP] are email address could be spammed

2008-01-24 Thread clive
http://www.mail4liste.de/viewtopic.php?p=259845&sid=4b4f436983abded92e9a090cdea0c688 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] DOM API Namespaces - help?

2008-01-24 Thread Per Jessen
Nathan Rixham wrote: > but assuming the above file is: > > http://www.w3.org/2001/XInclude";> > > > > how would one retrieve xmlns:xi="http://www.w3.org/2001/XInclude"; When you say 'retrieve', what do you really mean? You need to get the namespace value into a PHP variable? I would probab

[PHP] forms and php

2008-01-24 Thread Mark Pashia
I am fairly new to the php/mySQL combo and just noticed an unusual behavior and don't know where to find the answer to fix this. It is probably common knowledge, but not to a newbie. If I fill in the fields of a form and hit the "enter" key to submit the form, no variables seem to be passed alo

Re: [PHP] Posting Summary for Week Ending 25 January, 2008: php-general@lists.php.net

2008-01-24 Thread Zoltán Németh
2008. 01. 24, csütörtök keltezéssel 02.45-kor Wolf ezt írta: > Jochem Maas wrote: > > > > Posting Summary for PHP-General List > > Week Ending: Friday, 25 January, 2008 > > > > Messages| Bytes | Sender > > +-+-- > >

  1   2   >