[PHP] Re: function within a class function

2010-06-21 Thread Pete Ford
On 21/06/10 00:45, Rick Pasotto wrote: Within a class function I have defined another function for use with the usort() function. How do I reference it? When it's not part of a class usort($arr,"cmp") works fine but when it's within a class function I get this error: PHP Parse error: syntax er

Re: [PHP] function within a class function

2010-06-21 Thread Richard Quadling
On 21 June 2010 00:45, Rick Pasotto wrote: > Within a class function I have defined another function for use with the > usort() function. How do I reference it? > > When it's not part of a class usort($arr,"cmp") works fine but when it's > within a class function I get this error: > > PHP Parse er

[PHP] Website content question

2010-06-21 Thread Ernie Kemp
This is not a direct PHP question but I will be using PHP in the website. I go to the php list because the wordpress forum does not respond to my questions and I know some of you have a lot of expertise in other areas than PHP. I wish to a my own pages to a theme. I created pages on my

Re: [PHP] Re: function within a class function

2010-06-21 Thread Gary .
On Mon, Jun 21, 2010 at 10:49 AM, Pete Ford wrote: > On 21/06/10 00:45, Rick Pasotto wrote: > I think that's right - doesn't the manual describe this sort of thing about > using callback functions that are class members? Yes. http://www.php.net/manual/en/language.pseudo-types.php#language.types.

Re: [PHP] Website content question

2010-06-21 Thread Shreyas Agasthya
Ernie, I am sure you know none of us could have accessed the link that you have given there. Can you let us know what code you have written so that one of us can guide you? As a broad pitch, your php code has to be either in or I would wait for your code and other to probe a little more. Rega

RE: [PHP] Website content question

2010-06-21 Thread Ernie Kemp
So sorry about the link, in too much of a hurry. My server site is http://digitalbiz4u.com/wordpress/ I used mailto:shreya...@gmail.com] Sent: June-21-10 8:59 AM To: Ernie Kemp Cc: PHP General List Subject: Re: [PHP] Website content question Ernie, I am sure you know none of us could have acce

RE: [PHP] Website content question

2010-06-21 Thread Ernie Kemp
Just as a follow up I'm including a link to a test site that I wish to have the wordpress to be able to change the content, but I'm unable to have wordpress use my includes. I must be putting them in the wrong places so need some help with this. Thanks, .../Ernie -Original Message- Fro

RE: [PHP] Website content question

2010-06-21 Thread Ashley Sheridan
On Mon, 2010-06-21 at 10:04 -0400, Ernie Kemp wrote: > Just as a follow up I'm including a link to a test site that I wish to have > the wordpress to be able to change the content, but I'm unable to have > wordpress use my includes. > I must be putting them in the wrong places so need some help wi

RE: [PHP] Website content question

2010-06-21 Thread Ernie Kemp
Need to use the template http://www.digitalbiz4u.com/site_flash/ . Thanks, /Ernie From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] Sent: June-21-10 10:09 AM To: Ernie Kemp Cc: 'Shreyas Agasthya'; 'PHP General List' Subject: RE: [PHP] Website content question On Mon, 2010-0

RE: [PHP] Website content question

2010-06-21 Thread Ashley Sheridan
On Mon, 2010-06-21 at 10:40 -0400, Ernie Kemp wrote: > Need to use the template http://www.digitalbiz4u.com/site_flash/ . > > Thanks, > > /Ernie > > > > > > From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] > Sent: June-21-10 10:09 AM > To: Ernie Kemp > Cc: 'Shreyas Agasthya';

[PHP] PHP & Active Directory?

2010-06-21 Thread David Stoltz
Folks, I'm trying to validate an email address which is entered in a form field against our Active Directory. I'm using some PHP scripting supplied by http://phpad.sunyday.net/ but it's not working, and the site doesn't seem to be supported anymore. Does anyone have any "good" method of

Re: [PHP] PHP & Active Directory?

2010-06-21 Thread Ashley Sheridan
On Mon, 2010-06-21 at 10:59 -0400, David Stoltz wrote: > Folks, > > > > I'm trying to validate an email address which is entered in a form field > against our Active Directory. > > > > I'm using some PHP scripting supplied by http://phpad.sunyday.net/ but > it's not working, and the site d

Re: [PHP] PHP & Active Directory?

2010-06-21 Thread Nathan Nobbe
On Mon, Jun 21, 2010 at 8:59 AM, David Stoltz wrote: > Folks, > > I'm trying to validate an email address which is entered in a form field > against our Active Directory. > > Does anyone have any "good" method of doing this? > try the adLDAP class - its the chronic http://adldap.sourceforge.net

RE: [PHP] Website content question

2010-06-21 Thread Ernie Kemp
Resolved. The paths are: wordpress-> flash Ø CSS Ø Js Wordpress/mytheme -> your custom template files Thanks, /Ernie From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] Sent: June-21-10 10:43 AM To: Ernie Kemp Cc: 'Shreyas Agasthya'; 'PHP General List' Subject: RE: [PHP]

RE: [PHP] PHP & Active Directory?

2010-06-21 Thread David Stoltz
Awesome – thanks – BTW, what does “it’s the chronic” mean? From: Nathan Nobbe [mailto:quickshif...@gmail.com] Sent: Monday, June 21, 2010 11:27 AM To: David Stoltz Cc: php-general@lists.php.net Subject: Re: [PHP] PHP & Active Directory? On Mon, Jun 21, 2010 at 8:59 AM, David Stoltz wro

Re: [PHP] PHP & Active Directory?

2010-06-21 Thread Nathan Nobbe
On Mon, Jun 21, 2010 at 9:42 AM, David Stoltz wrote: > Awesome – thanks – BTW, what does “it’s the chronic” mean? > listen to some dr. dre or come visit me in denver, co :) -nathan

RE: [PHP] PHP & Active Directory?

2010-06-21 Thread David Stoltz
Lol – ok…I guess it’s comparable to “it’s the bomb”…. Thanks ;-) From: Nathan Nobbe [mailto:quickshif...@gmail.com] Sent: Monday, June 21, 2010 11:46 AM To: David Stoltz Cc: php-general@lists.php.net Subject: Re: [PHP] PHP & Active Directory? On Mon, Jun 21, 2010 at 9:42 AM, David Stol

[PHP] fetching DB entries

2010-06-21 Thread Ashley Sheridan
Hi All, This is just a bit of a 'throw it out to the masses' sort of question to see what people might recommend. At the moment, if I am retrieving a single record from the DB, my code looks like this: $query = "SELECT * FROM table WHERE id=1"; $result = mysql_query($query); while($row = mysql_f

Re: [PHP] fetching DB entries

2010-06-21 Thread la...@garfieldtech.com
Performance-wise, SELECT * is slower than specifying fields (marginally). If you just want a single field then mysql_result() will be faster, but if you want multiple fields mysql_fetch_* is your best bet. As far as the PHP goes, if you know there will be only a single record I'd suggest usin

Re: [PHP] Website content question

2010-06-21 Thread Hans Åhlin
Did you include the necessary php code? ** Hans Åhlin Tel: +46761488019 icq: 275232967 http://www.kronan-net.com/ irc://irc.freenode.net:6667 - TheCoin ** 2010/6/21 Ernie Kemp > This is not a dir

RE: [PHP] Website content question

2010-06-21 Thread Ernie Kemp
I did put the PHP code. It kind of working. From: ahlin.h...@gmail.com [mailto:ahlin.h...@gmail.com] On Behalf Of Hans Åhlin Sent: June-21-10 9:43 PM To: Ernie Kemp Cc: PHP General List Subject: Re: [PHP] Website content question Did you include the necessary php code? ***