Re: [PHP] php mail() function and ezmlm

2010-01-13 Thread vikash . iitb
Can you send it to other email addresses? -- Vikash Kumar http://vika.sh On Thu, Jan 14, 2010 at 12:16 PM, Bob Strasser wrote: > I'm having trouble sending info from a form to the list-subscr...@domain > Does anyone know why ezmlm doesn't recognize the mail() function? > >

[PHP] php mail() function and ezmlm

2010-01-13 Thread Bob Strasser
I'm having trouble sending info from a form to the list-subscr...@domain Does anyone know why ezmlm doesn't recognize the mail() function?

Re: [PHP] header("Location:...") fails

2010-01-13 Thread Shawn McKenzie
Robert Cummings wrote: > Just make your life easy and create a redirect() function that generates > the header instruction, makes a relative URL into an absolute URL and > does the exit call. Then you just need to do: > > redirect( 'target.php' ); > > So much simpler :) > > Cheers, > Rob

Re: [PHP] Read directory; store filenames found in mySQL table?

2010-01-13 Thread Shawn McKenzie
Kenneth Sande wrote: > I use the glob function in my little homemade "web cam" page, which can > really swell up in memory when used against a large amount of files (in > my case around 30k files). +1 for glob() -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.

Re: [PHP] php and XML BibTeX

2010-01-13 Thread Paul M Foster
On Wed, Jan 13, 2010 at 12:45:53PM -0800, Michael A. Peters wrote: > Hi - > > Currently on my web site, book and article references are just stored in > the database. While it works, I actually would like to move that out of > the database and to an XML file, the reason being is that if/when I nee

Re: [PHP] Read directory; store filenames found in mySQL table?

2010-01-13 Thread Bastien Koert
On Wed, Jan 13, 2010 at 10:50 AM, Rahul S. Johari wrote: > > On Jan 13, 2010, at 10:40 AM, Rahul S. Johari wrote: > >> >> On Jan 13, 2010, at 9:50 AM, Warren Windvogel wrote: >> >>> On 2010/01/13 04:25 PM, Rahul S. Johari wrote: Ave, This is what I'm trying to do; I want to rea

Re: [PHP] header("Location:...") fails

2010-01-13 Thread Robert Cummings
Paul M Foster wrote: On Wed, Jan 13, 2010 at 11:39:18AM -0800, Richard S. Crawford wrote: Here is a snippet of code that is going to be the death of me: // Create a new project $projectcode = strtoupper(addslashes($_POST['projectcod

RE: [PHP] What server am I authenticating to?

2010-01-13 Thread Hansen, Mike
Yep. I found the issue in the apache config. Thanks, Mike > -Original Message- > From: Nathan Rixham [mailto:nrix...@gmail.com] > Sent: Wednesday, January 13, 2010 1:12 PM > To: Hansen, Mike > Cc: php-general@lists.php.net > Subject: Re: [PHP] What server am I authenticating to? > > H

[PHP] php and XML BibTeX

2010-01-13 Thread Michael A. Peters
Hi - Currently on my web site, book and article references are just stored in the database. While it works, I actually would like to move that out of the database and to an XML file, the reason being is that if/when I need to add fields etc. to the referenced sources, it's a lot easier to just

[PHP] Re: POLL: To add the final ?> or not...

2010-01-13 Thread Nathan Rixham
Daevid Vincent wrote: > I'm having a debate with a co-worker about adding the final ?> on a PHP > page... > > To be honest, I am the lead, and I could pull rank and be done with the > discussion, however I don't like to be that way. I would rather do the > right thing. If my way of thinking is old

Re: [PHP] header("Location:...") fails

2010-01-13 Thread Paul M Foster
On Wed, Jan 13, 2010 at 11:39:18AM -0800, Richard S. Crawford wrote: > Here is a snippet of code that is going to be the death of me: > > > // Create a new project > $projectcode = strtoupper(addslashes($_POST['projectcode'])); // p

Re: [PHP] What server am I authenticating to?

2010-01-13 Thread Nathan Rixham
Hansen, Mike wrote: > > >> -Original Message- >> From: daniel.egeb...@gmail.com >> [mailto:daniel.egeb...@gmail.com] On Behalf Of Daniel Egeberg >> Sent: Wednesday, January 13, 2010 11:39 AM >> To: Hansen, Mike >> Cc: php-general@lists.php.net >> Subject: Re: [PHP] What server am I auth

Re: [PHP] header("Location:...") fails

2010-01-13 Thread Andrew Ballard
On Wed, Jan 13, 2010 at 2:39 PM, Richard S. Crawford wrote: > Now, even if $numprojects is 1, 2, 3, etc., the header() command is not > executed. Strangely, a header("Location") command later on in the script > *is* executed. I've output the value of $numprojects, so I know that it's > greater tha

Re: [PHP] header("Location:...") fails

2010-01-13 Thread Bruno Fajardo
2010/1/13 Richard S. Crawford > > Here is a snippet of code that is going to be the death of me: > > > //  Create a new project > $projectcode = strtoupper(addslashes($_POST['projectcode']));   //  project > code > > //  Make sure the pr

[PHP] header("Location:...") fails

2010-01-13 Thread Richard S. Crawford
Here is a snippet of code that is going to be the death of me: // Create a new project $projectcode = strtoupper(addslashes($_POST['projectcode'])); // project code // Make sure the project code is unique if (!$existingproject = my

RE: [PHP] What server am I authenticating to?

2010-01-13 Thread Hansen, Mike
> -Original Message- > From: daniel.egeb...@gmail.com > [mailto:daniel.egeb...@gmail.com] On Behalf Of Daniel Egeberg > Sent: Wednesday, January 13, 2010 11:39 AM > To: Hansen, Mike > Cc: php-general@lists.php.net > Subject: Re: [PHP] What server am I authenticating to? > > On Wed, Jan

Re: [PHP] Detecting a BOM

2010-01-13 Thread Daniel Egeberg
On Wed, Jan 13, 2010 at 11:42, Leszek Stachowski wrote: > Hi, > > is there any way to detect BOM in a file? I'm writing a parser which outputs > a number line if there's an error in it and its content. Every time it > parser a file saved in UTF-8 with BOM it outputs those three magic letters. > Ca

Re: [PHP] What server am I authenticating to?

2010-01-13 Thread Daniel Egeberg
On Wed, Jan 13, 2010 at 19:04, Hansen, Mike wrote: > I took over maint of an app, and the former maintainer is no longer available. > > I was under the assumption that authentication was done through an LDAP. How > do I find out which LDAP server is PHP/Apache using? It might be right in > front

[PHP] What server am I authenticating to?

2010-01-13 Thread Hansen, Mike
I took over maint of an app, and the former maintainer is no longer available. I was under the assumption that authentication was done through an LDAP. How do I find out which LDAP server is PHP/Apache using? It might be right in front of my face in the apache config or php.ini, but I can't se

Re: [PHP] POLL: To add the final ?> or not...

2010-01-13 Thread Bipper Goes!
You could also sit on the egg. On Tue, Jan 12, 2010 at 3:41 PM, tedd wrote: > At 3:49 PM -0500 1/12/10, Robert Cummings wrote: > >> tedd wrote: >> >>> At 5:24 PM + 1/12/10, Ashley Sheridan wrote: >>> On Tue, 2010-01-12 at 12:22 -0500, Robert Cummings wrote: >>> >>> -- egg snip-its

Re: [PHP] Read directory; store filenames found in mySQL table? :: SOLVED!!

2010-01-13 Thread Rahul S. Johari
Thanks All (Especially Warren); Final Code: function dirList ($directory) { $results = array(); $handler = opendir($directory); while ($file = readdir($handler)) { if ($file != '.' && $file != '..') $results[] = $file; } closedir($handler); return $results; }

Re: [PHP] Read directory; store filenames found in mySQL table?

2010-01-13 Thread Rahul S. Johari
On Jan 13, 2010, at 10:40 AM, Rahul S. Johari wrote: On Jan 13, 2010, at 9:50 AM, Warren Windvogel wrote: On 2010/01/13 04:25 PM, Rahul S. Johari wrote: Ave, This is what I'm trying to do; I want to read a directory (eg: W: \Test\) and take all the filenames found in the directory (eg:

Re: [PHP] Read directory; store filenames found in mySQL table?

2010-01-13 Thread Rahul S. Johari
On Jan 13, 2010, at 9:50 AM, Warren Windvogel wrote: On 2010/01/13 04:25 PM, Rahul S. Johari wrote: Ave, This is what I'm trying to do; I want to read a directory (eg: W: \Test\) and take all the filenames found in the directory (eg: 1.vox, 2.wav, 3.txt) and store them in a simple mySQL t

RE: [PHP] RE: Clean PHP 5.2.12 Build Core Dumping / Can't Build Port - FreeBSD 6.1

2010-01-13 Thread Don O'Neil
> === > I try a 'make all-depend-list' > the error shows up > = > which error show ? # make X11BASE is now deprecated. Unset X11BASE in make.conf and try again. *** Error code 1 Stop. That's the error... happens every time, no matter what I try to

Re: [PHP] Read directory; store filenames found in mySQL table?

2010-01-13 Thread Rahul S. Johari
On Jan 13, 2010, at 10:07 AM, Kenneth Sande wrote: Ashley Sheridan wrote: On Wed, 2010-01-13 at 09:25 -0500, Rahul S. Johari wrote: Ave, This is what I'm trying to do; I want to read a directory (eg: W: \Test \) and take all the filenames found in the directory (eg: 1.vox, 2.wav, 3.tx

Re: [PHP] Read directory; store filenames found in mySQL table?

2010-01-13 Thread Rahul S. Johari
On Jan 13, 2010, at 9:56 AM, Warren Windvogel wrote: On 2010/01/13 04:25 PM, Rahul S. Johari wrote: Ave, This is what I'm trying to do; I want to read a directory (eg: W: \Test\) and take all the filenames found in the directory (eg: 1.vox, 2.wav, 3.txt) and store them in a simple mySQL t

Re: [PHP] Read directory; store filenames found in mySQL table?

2010-01-13 Thread Kenneth Sande
Ashley Sheridan wrote: On Wed, 2010-01-13 at 09:25 -0500, Rahul S. Johari wrote: Ave, This is what I'm trying to do; I want to read a directory (eg: W:\Test \) and take all the filenames found in the directory (eg: 1.vox, 2.wav, 3.txt) and store them in a simple mySQL table. Can I do

Re: [PHP] Read directory; store filenames found in mySQL table?

2010-01-13 Thread Ashley Sheridan
On Wed, 2010-01-13 at 09:25 -0500, Rahul S. Johari wrote: > Ave, > > This is what I'm trying to do; I want to read a directory (eg: W:\Test > \) and take all the filenames found in the directory (eg: 1.vox, > 2.wav, 3.txt) and store them in a simple mySQL table. > > Can I do this? > > --- >

[PHP] Read directory; store filenames found in mySQL table?

2010-01-13 Thread Rahul S. Johari
Ave, This is what I'm trying to do; I want to read a directory (eg: W:\Test \) and take all the filenames found in the directory (eg: 1.vox, 2.wav, 3.txt) and store them in a simple mySQL table. Can I do this? --- Rahul Sitaram Johari Founder, Internet Architects Group, Inc. [Email] sleep

Re: [PHP] Need Idea to make Backup

2010-01-13 Thread Ashley Sheridan
On Wed, 2010-01-13 at 14:57 +0100, Jens Geier wrote: > Hello Ashley, > > yes rsync is a good idea, but does this also work if there is only a > internet conection to may SERVER ? > > Kind Regards > Jens Geier > > "Ashley Sheridan" schrieb im Newsbeitrag > news:1263377397.5952.60.ca...@localh

Re: [PHP] Need Idea to make Backup

2010-01-13 Thread Jens Geier
Hello Ashley, yes rsync is a good idea, but does this also work if there is only a internet conection to may SERVER ? Kind Regards Jens Geier "Ashley Sheridan" schrieb im Newsbeitrag news:1263377397.5952.60.ca...@localhost... > On Wed, 2010-01-13 at 10:53 +0100, Jens Geier wrote: > >> Hello,

Re: [PHP] RE: Clean PHP 5.2.12 Build Core Dumping / Can't Build Port - FreeBSD 6.1

2010-01-13 Thread hack988 hack988
=== I try a 'make all-depend-list' the error shows up = which error show ? 2010/1/13 Don O'Neil : > This is _exactly_ what I did, and as soon as I try a 'make all-depend-list' > the error shows up. I don't even have the X11 system installed (it's a >

[PHP] Re: [PHP-DEV] any solution about array_walk with pass-by-reference UseData?

2010-01-13 Thread hack988 hack988
Online document say's Note: Please note that this function only checks one dimension of a n-dimensional array. Of course you can check deeper dimensions by using, for example, array_udiff_uassoc($array1[0], $array2[0], "data_compare_func", "key_compare_func");. It's not my needed My need is $disa

[PHP] Detecting a BOM

2010-01-13 Thread Leszek Stachowski
Hi, is there any way to detect BOM in a file? I'm writing a parser which outputs a number line if there's an error in it and its content. Every time it parser a file saved in UTF-8 with BOM it outputs those three magic letters. Can I pre-check for it and skip it? Or convert somehow? Greetings, Le

Re: [PHP] Need Idea to make Backup

2010-01-13 Thread Ashley Sheridan
On Wed, 2010-01-13 at 10:53 +0100, Jens Geier wrote: > Hello, > > my idea is to make a backup of some paths of my laptop via PHP. > > I like to use a MySQL Datebase to trace which file was uploaded from which > path and so on. > > Also it should be uses to look up it is nessasery to backup this

[PHP] Need Idea to make Backup

2010-01-13 Thread Jens Geier
Hello, my idea is to make a backup of some paths of my laptop via PHP. I like to use a MySQL Datebase to trace which file was uploaded from which path and so on. Also it should be uses to look up it is nessasery to backup this file because it was changed since last time or not. All this files s