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

2008-01-24 Thread Wolf
Jochem Maas wrote: Posting Summary for PHP-General List Week Ending: Friday, 25 January, 2008 Messages| Bytes | Sender +-+-- 697 (100%) 975244 (100%) EVERYONE 690 (98.9%) 974000 (99.8%)

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 +-+-- 697

[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

Re: [PHP] DOM API Namespaces - help?

2008-01-24 Thread Per Jessen
Nathan Rixham wrote: but assuming the above file is: ?xml version=1.0 ? chapter xmlns:xi=http://www.w3.org/2001/XInclude; a / /chapter 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

[PHP] are email address could be spammed

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

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=259845sid=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 it

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 ...

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=259845sid=4b4f436983abded92e9a090cdea0c688 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[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

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 Jessen

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 prepared

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

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

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

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] 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 without a

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 numbers use the

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] 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

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..

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] 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

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

[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.

[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

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 open source

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:

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 | Sender

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 are

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 stating that

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 man; its a

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] 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] 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 enter key

[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] 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 hand side

[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 was it?

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 the

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] 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 sounds

[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`) )

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 simple

[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

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 you won't

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

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 buy a

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 it

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 assumes you will use

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;

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 going

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 which

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 will

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 somewhere;

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. -- /Dan Daniel P. Brown Senior Unix Geek and #1 Rated Year's Coolest Guy By Self Since Nineteen-Seventy-[mumble]. -- PHP General

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 will ask

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:s for our

[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: A

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

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

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 call

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 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.

[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:

[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.

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

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 all

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 :) ?php $srcDir = $argv[1]; $destDir = $argv[2]; if(is_dir($srcDir) is_dir($destDir)) { $dirHandle = opendir($srcDir); while($curFile = readdir($dirHandle)) {

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 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. --

[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

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?

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 done

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 looking for A

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 well.

[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] 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; But you are

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] 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] 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:

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

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 single

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?

[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

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 one use

[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,

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 proper

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

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] 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 this on your

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 type, it

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

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

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

[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 proper

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

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 proper

[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] 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

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? sorry if

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. --

  1   2   >