RE: [PHP] Staff log-in

2006-11-10 Thread Daevid Vincent
> -Original Message- > From: Google Kreme [mailto:[EMAIL PROTECTED] Is that *really* your name?! :) > The trouble comes when you > need to time-out a session because someone never logged out > properly. That can be hairy. Yeah, it's so hard to do that subtraction... --

Re: [PHP] Staff log-in

2006-11-10 Thread Paul Novitski
At 11/10/2006 07:09 AM, tedd wrote: Lastly, I think we all know that "non-profit" simply means that at the end of the year you get to roll your profits over to the next year without incurring taxes on the excess. Nothing more. Plus, there's no limit or requirements as to the amount/percentage

Re: [PHP] Staff log-in

2006-11-10 Thread benifactor
i actually just started my own non profit org... so now you can all give me things for free. :) p.s. i also accept donations via paypal :) - Original Message - From: "Jochem Maas" <[EMAIL PROTECTED]> To: "tedd" <[EMAIL PROTECTED]> Cc: Sent: Friday, November 10, 2006 7:46 AM Subject:

Re: [PHP] pdo and mysql 5

2006-11-10 Thread Jon Anderson
jonathan wrote: I know that PDO has drivers only for MySQL 3/4. Is anybody getting it work with MySQL 5. I'd like to try out the Zend Framework but our db uses MySQL 5. We could create a second db in 4.1 and run it with that but I'd rather not to. It's kinda surprising how long MySQL 5 has

Re: [PHP] pdo and mysql 5

2006-11-10 Thread Curt Zirzow
On 11/10/06, jonathan <[EMAIL PROTECTED]> wrote: I know that PDO has drivers only for MySQL 3/4. Is anybody getting it work with MySQL 5. I'd like to try out the Zend Framework but our db uses MySQL 5. We could create a second db in 4.1 and run it with that but I'd rather not to. It's kinda su

[PHP] pdo and mysql 5

2006-11-10 Thread jonathan
I know that PDO has drivers only for MySQL 3/4. Is anybody getting it work with MySQL 5. I'd like to try out the Zend Framework but our db uses MySQL 5. We could create a second db in 4.1 and run it with that but I'd rather not to. It's kinda surprising how long MySQL 5 has been out and t

Re: [PHP] path

2006-11-10 Thread Stut
Alain Roger wrote: How can i get the path in which a PHP file is running ? for example, user clicking on a link opened page "action.php" file. this php file is located as "C:\webserver\mywebsite\php\test\action.php" how can i get this path (C:\webserver\mywebsite\php\test\)? $dir = dirname(_

RE: [PHP] path

2006-11-10 Thread Brad Fuller
> -Original Message- > From: Alain Roger [mailto:[EMAIL PROTECTED] > Sent: Friday, November 10, 2006 1:48 PM > To: PHP General List > Subject: [PHP] path > > Hi, > > How can i get the path in which a PHP file is running ? > > for example, user clicking on a link opened page "action.php"

[PHP] path

2006-11-10 Thread Alain Roger
Hi, How can i get the path in which a PHP file is running ? for example, user clicking on a link opened page "action.php" file. this php file is located as "C:\webserver\mywebsite\php\test\action.php" how can i get this path (C:\webserver\mywebsite\php\test\)? thx. Al.

[PHP] problem with php[4,5] (horde 2/3)

2006-11-10 Thread Norbert Ehart
hello, i have some problem with horde, after my isp have upgraded php on my vps! i only get some error massages. Notice: Only variable references should be returned by reference in /usr/share/horde3/lib/Horde/Perms.php on line 343 Notice: Only variable references should be returned by refe

Re: [PHP] Staff log-in

2006-11-10 Thread Jochem Maas
tedd wrote: > At 7:16 PM + 11/9/06, Brynjar Guðnason wrote: >> Hi, >> >> I need a little php script. Staff log in by entering username and >> password >> and then the next time they enter their username and password they log >> out. >> The script has to take down the time they log in and log ou

Re: [PHP] Staff log-in

2006-11-10 Thread Dan McCullough
I do a lot of work for "non-profits" a lot of them are really good clients, pay well and on time, but I know most of them pretty well and know that they are truly "non-profits", so just because you said you were a non-profit where we supposed to assume that you wanted it for free and supported for

Re: [PHP] Staff log-in

2006-11-10 Thread tedd
At 7:16 PM + 11/9/06, Brynjar Guðnason wrote: Hi, I need a little php script. Staff log in by entering username and password and then the next time they enter their username and password they log out. The script has to take down the time they log in and log out. Then I should be able to read

Re: [PHP] PHP, MySQL- Interested?

2006-11-10 Thread Rory Browne
I fully endorse this as a project for you to learn php better. Having a project is the only way you'll learn. Keep in mind however that there are already frameworks which do the same thing. Check out cakePHP, or php on trax - the former AFAIK has better docs. On 11/10/06, John Sladek <[EMAIL P

Re: [PHP] Read Through PHP Files

2006-11-10 Thread Frank Arensmeier
There are search engins written in PHP available already. E.g. PHPdig. http://www.phpdig.net/ PHPdig for example is able to index PDF and doc files (I think - see the docs). Maybe it would also be a good idea to have a look at the source code. /frank /frank 10 nov 2006 kl. 14.50 skrev Tho

Re: [PHP] Read Through PHP Files

2006-11-10 Thread Thomas Munz
You cannnot just open those files. That things that you see are not 'rubish' or whatever. Those files are in a binary format. You need to understand the .doc format and the .pdf format. You can get this infromation by using google and search for 'Binary word format' and so on. Then you have to

Re: [PHP] gethostbyname failing?

2006-11-10 Thread Henrik Hudson
FYI: I uninstalled Apache 2.2.3 and installed Apache 1.3.x via ports and now everything works flawlessly. I made zero other changes on the system between working and not working, so there either is a bug or something "wierd". I was running dnstop and when asking the server to do "hostnamelookup

Re: [PHP] http_build_query ... argh

2006-11-10 Thread Jochem Maas
Arpad Ray wrote: > Jochem Maas wrote: >> Arpad Ray wrote: >>> return preg_replace('#%5[bd](?=[^&]*=)#ei', 'urldecode("\0")', $s); >>> >> could you explain your regexp - I'd like to replace my version with >> your (if for no other reason than that shorter code is easier to read >> than >> longe

Re: [PHP] http_build_query ... argh

2006-11-10 Thread Arpad Ray
Jochem Maas wrote: Arpad Ray wrote: return preg_replace('#%5[bd](?=[^&]*=)#ei', 'urldecode("\0")', $s); could you explain your regexp - I'd like to replace my version with your (if for no other reason than that shorter code is easier to read than longer code!) BUT until I really understand

Re: [PHP] Staff log-in

2006-11-10 Thread John Nichel
Jochem Maas wrote: John Nichel wrote: 5) $80.00 is my *reduced* rate. ah - I was worried you might have been factoring in age-related brain depreciation ;-) If I factored that in, I'd have to pay the client. -- John C. Nichel IV Programmer/System Admin (ÜberGeek) Dot Com Holdings of Bu

Re: [PHP] PHP 5.0.5 and PHP-XML problem

2006-11-10 Thread Jochem Maas
Edd Dawson wrote: > Hi > > I have a problem getting PHP-XML working with PHP 5.0.5 I had trouble getting anything to work with that version ;-) I suggest trying the version before or after it - seriously 5.0.5 has some issues (although whether your problem is anything to do with them is not known

Re: [PHP] gethostbyname failing?

2006-11-10 Thread Henrik Hudson
On Thursday 09 November 2006 21:28, Chris <[EMAIL PROTECTED]> sent a missive stating: > Henrik Hudson wrote: > > Thanks for the input everyone. It seems it Apache itself can't do lookups > > either (ie: Hostnamelookups On ..doesn't actually do anything..so, going > > to hunt down the issues insi

[PHP] PHP 5.0.5 and PHP-XML problem

2006-11-10 Thread Edd Dawson
Hi I have a problem getting PHP-XML working with PHP 5.0.5 I am trying to create an DOMDocument object with the following: $doc = new DOMDocument(); when run i get the error: *Fatal error*: Class 'DOMDocument' not found in * /var/www/cinematimes.mobi/feed.php* on line *5 *I looked up that I

Re: [PHP] http_build_query ... argh

2006-11-10 Thread Jochem Maas
Arpad Ray wrote: > Jochem Maas wrote: >> function inputPostQueryUnBorker($s) >> { >> return preg_replace('#(\?|&(?:amp;)?)([^=]*)=#eU', >> "'\\1'.str_replace(array('%5B','%5D'), >> array('[',']'), '\\2').'='", >> $s); >> } >> >> so how

Re: [PHP] http_build_query ... argh

2006-11-10 Thread Jochem Maas
Larry Garfield wrote: > On Thursday 09 November 2006 10:22, Jochem Maas wrote: > >> apparently http_build_query() has been 'fixed' so that it now >> urlencodes square brackets (and if you have never used square brackets in >> a url pointing a php script then your obviously new here ;-) >> >> this

Re: [PHP] Spam using email on website

2006-11-10 Thread Nisse Engström
On Tue, 7 Nov 2006 13:14:54 -0600 (CST), "Richard Lynch" wrote: > The Bad Guys are probably cramming your $subject and $from data with > an ENTIRE eamil, so your mail() function is, in effect, and Open > Relay. (That's very very very bad.) > > Example: > Normal Input > $subject = "Hi!"; > > Bad

Re: [PHP] Staff log-in

2006-11-10 Thread Jochem Maas
John Nichel wrote: > Brynjar Guðnason wrote: >> Why did you bother to answer me ? > > Please send all your replies to the list. > > 1) You asked if anyone could do this. > 2) I gave you my rates. > 3) Non-profit companies pay for services. > 4) If you didn't want to pay, you should have speci

[PHP] Read Through PHP Files

2006-11-10 Thread Kevin
Hi, I am using the function fopen to open a word document, loading the contents into a variable and then using a substr_count to count the number of times a certain string is found, this is allowing me to search through the file and say how many times the word appears, I can even use str_repl