Re: [PHP] Opening a Window with JavaScript

2003-07-16 Thread Aaron Gould
Try this (note the "return false;" addition at the end):



--
Aaron Gould
Web Developer
Parts Canada


- Original Message - 
From: "Curt Zirzow" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 16, 2003 2:15 PM
Subject: Re: [PHP] Opening a Window with JavaScript


> Todd Cary <[EMAIL PROTECTED]> wrote:
> > [...]
> > However, if I use an anchor, the form is submitted.  Is there a way to
> > prevent this?  Here is the code I tried:
> >
> > 
>
> I believe you can put something like (not tested):
> 
>
> >
> > Todd
> > -- 
>
> Curt
> -- 
>
>
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Ticketmaster.com and Word Images

2003-07-31 Thread Aaron Gould
http://www.zend.com/zend/tut/tutorial-mehmet1.php
--
Aaron Gould
[EMAIL PROTECTED]
Web Developer
Parts Canada


- Original Message - 
From: "John Manko" <[EMAIL PROTECTED]>
To: "PHP General" <[EMAIL PROTECTED]>
Sent: Thursday, July 31, 2003 10:16 AM
Subject: [PHP] Ticketmaster.com and Word Images


> Does anyone know how sites like Ticketmaster.com creates the "Word 
> Image" used for ticket purchase verification?
> Do they generate the image on-the-fly from a dictionary, or do the 
> images pre-exist and they are pulled from a DB along with the word.
> 
> John
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] custom syntax highlighting in html-kit

2003-08-20 Thread Aaron Gould
This is not possible... yet.  I would like this feature too, but it has been
addressed a few times on the newsgroups at chami.com.

You can check the newsgroups out at
http://www.chami.com/html-kit/newsgroups/.

As far as I know, this feature is on Chami's long-term to-do list.

--
Aaron Gould
[EMAIL PROTECTED]
Web Developer
Parts Canada


- Original Message - 
From: "Chris W. Parker" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 20, 2003 2:55 PM
Subject: [PHP] custom syntax highlighting in html-kit


Hello,

I'd REALLY REALLY like to be able to modify the syntax highlighting in
html-kit. Is this possible?

Right now in PHP if you have a line like:

echo "this is the text i want to echo.";

Everything between the two "'s will be gray. I don't necessarily want to
change that color (that parts easy) want I do want to do is highlight {
} within " ". For example a line like:

echo "this is the text and this is the value: {$arra[0]}.";

I want everything starting at { and ending with } to be a different
color, maybe yellow, or orange.


Anyone have any clues? I've been googling and searching chami's site but
can't find a definitive yes or no.


Thanks!
Chris.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Humour in programming?

2003-04-01 Thread Aaron Gould
Hehe, I though something was wrong with my machine when I checked out
phpinfo() on one of my boxes today.  It didn't even occur to me that it
might be related to April Fools.

I know it's usually the PHP logo, but how is that picture generated anyway?

--
Aaron Gould
Web Developer
Parts Canada


- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, April 01, 2003 3:32 PM
Subject: RE: [PHP] Humour in programming?


> Yeah...check out the phpinfo() function on your machine
>
> 
>
> -Original Message-
> From: Liam Gibbs [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 01, 2003 3:36 PM
> To: php list
> Subject: [PHP] Humour in programming?
>
>
> Sorry if this is OT, but... heheheh... has anyone taken a look at the
> PHP site? Check out the upper-left corner. Who is that? Nice to know
> the guys at PHP can have a laugh.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Humour in programming?

2003-04-01 Thread Aaron Gould
Exactly...  it seems to be generated in code somehow?
--
Aaron Gould
[EMAIL PROTECTED]
Web Developer
Parts Canada


- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Tuesday, April 01, 2003 3:47 PM
Subject: RE: [PHP] Humour in programming?


> By PHP?  The HTML source points to
> my.server.com/script.php?=PHPE9568F36-D428-11d2-A769-00AA001ACF42
>
> -Original Message-
> From: Kevin Stone [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 01, 2003 3:43 PM
> To: Aaron Gould; [EMAIL PROTECTED]; [EMAIL PROTECTED];
> [EMAIL PROTECTED]
> Subject: Re: [PHP] Humour in programming?
>
>
> The image is grabbed from their servers.
>
> - Original Message -
> From: "Aaron Gould" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>;
> <[EMAIL PROTECTED]>
> Sent: Tuesday, April 01, 2003 1:36 PM
> Subject: Re: [PHP] Humour in programming?
>
>
> > Hehe, I though something was wrong with my machine when I checked out
> > phpinfo() on one of my boxes today.  It didn't even occur to me that
> it
> > might be related to April Fools.
> >
> > I know it's usually the PHP logo, but how is that picture generated
> anyway?
> >
> > --
> > Aaron Gould
> > Web Developer
> > Parts Canada
> >
> >
> > - Original Message -
> > From: <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> > Sent: Tuesday, April 01, 2003 3:32 PM
> > Subject: RE: [PHP] Humour in programming?
> >
> >
> > > Yeah...check out the phpinfo() function on your machine
> > >
> > > 
> > >
> > > -Original Message-
> > > From: Liam Gibbs [mailto:[EMAIL PROTECTED]
> > > Sent: Tuesday, April 01, 2003 3:36 PM
> > > To: php list
> > > Subject: [PHP] Humour in programming?
> > >
> > >
> > > Sorry if this is OT, but... heheheh... has anyone taken a look at
> the
> > > PHP site? Check out the upper-left corner. Who is that? Nice to know
> > > the guys at PHP can have a laugh.
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Can php run as a script?

2003-04-02 Thread Aaron Gould
Yes, you definitely can...

http://www.php.net/manual/en/features.commandline.php

--
Aaron Gould
Web Developer
Parts Canada


- Original Message -
From: "Poon, Kelvin (Infomart)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 02, 2003 11:43 AM
Subject: [PHP] Can php run as a script?


> Hi,
>
> This might be a newbie question but I can't find an answer anywhere I
> search.  I know php can be excuted by a web browser, but can it run as a
> script like Perl?
>
> The reason i ask is, I need to write a php script that updates a database
in
> a server.  And this script needs to be running in the background as a
> service, that's why i was wondering if I can excute it like a perl script.
>
> If it can't, do you guys know if I can use perl to call up a php script?
>
> Please advise.
>
> Thanks,
> Kelvin
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Problems with quotes in URL - SOLVED - plz FLAME me!!!

2003-06-18 Thread Aaron Gould
Oh come on now, we don't flame people, or even engage in name-calling for
that matter on this list...  :)

We all learn our lessons.

--
Aaron Gould
Web Developer
Parts Canada

 

-Original Message-
From: Petre Agenbag [mailto:[EMAIL PROTECTED] 
Sent: June 18, 2003 8:49 AM
To: Chris Hayes
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Problems with quotes in URL - SOLVED - plz FLAME me!!!


Hi lists ( and all the guys trying to help me)

Firstly

SORRY, I oversimplified my examples that I posted in the hope that I
would get to the solution faster.

What i failed to mention in my stupidity, was that I echoed the variable
as the value of a form input text field, so I actually messed up the
HTML, and I just realized it, and a simple $var = htmlspecialchars($var)
does the trick beautifully.

Again
Sorry guys, I really should have known better than to post stripped down
code as the problem is usually a simple thing like this...

Just for the by-and-by, my previous claims to having a "perfectly
working" application before upgrading to 4.3.1 was also then a load of
bull, and I only realized now that my app had this bug in it all the
time!

Just goes to show.

Anyway, I deserve a good flaming for this one! 

I'm ready;)




On Wed, 2003-06-18 at 14:39, Chris Hayes wrote:
> (cutted the part about sending a var as get)
> 
>
>page.php?my_var=whatever+whatever++%5C%22whatever+whatever%5C%22&next_var=b
labla
> ok so here the variable is still complete, including slashes and quotes.
> 
> 
> >And now, on page.php
> >
> >If I do an
> >
> >echo stripslashes($my_var);
> >
> >I get exactly this:
> >
> >whatever whatever \
> 
> i get better results with
> 
> echo stripslashes(urldecode($_GET['my_var']));
> (or in your version
> echo stripslashes(urldecode($my_var));
> )
> 
> 
> this even though Marek  said "Incomming GET values are urldecoded 
> automaticaly, no need to do this." (this=urldecode)
> 
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] mySQL: Rows and columns

2003-06-18 Thread Aaron Gould
A search on mysql.com reveals.

http://www.mysql.com/search/index.php?q=DELETE&from=%2Fdocumentation%2Findex
.html

--
Aaron Gould
Web Developer
Parts Canada

 

-Original Message-
From: zavaboy [mailto:[EMAIL PROTECTED] 
Sent: June 18, 2003 1:03 PM
To: [EMAIL PROTECTED]
Subject: [PHP] mySQL: Rows and columns


I know this is more of a mySQL question but, how do I delete and add rows
and columns?

-- 

- Zavaboy
[EMAIL PROTECTED]
www.zavaboy.com



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Speed up MySQL

2003-06-27 Thread Aaron Gould
Read these mysql.com doc pages:

http://www.mysql.com/doc/en/MySQL_indexes.html
http://www.mysql.com/doc/en/CREATE_INDEX.html

--
Aaron Gould
Web Developer
Parts Canada
[EMAIL PROTECTED]

 

-Original Message-
From: Erich Kolb [mailto:[EMAIL PROTECTED] 
Sent: June 27, 2003 3:56 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Speed up MySQL


Can anyone offer some suggestions as to how I can speed up MySQL query
results?  I have a simple database with 3 fields in 1 table.  The thing is
that there are over 11 million records.  Average query time is about 25
seconds.  The machine itself is pretty fast(P4 1.8ghz/ 1gb ram).  Any
suggestions would be great!



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Apache 2 support broken?

2002-07-23 Thread Aaron Gould

Here's how to get it to work (thanks to somebody on Google Groups)...

1.   Open up the file php_functions.c in /sapi/apache2filter/
2.   Change MODULE_MAGIC_AT_LEAST to AP_MODULE_MAGIC_AT_LEAST (Note the
addition of "AP_")
3.   Save the php_functions.c file and try running configure again

--
Aaron Gould
[EMAIL PROTECTED]
Web Developer


- Original Message -
From: "Mitch Vincent" <[EMAIL PROTECTED]>
To: "php-general" <[EMAIL PROTECTED]>
Sent: Tuesday, July 23, 2002 1:16 PM
Subject: [PHP] Apache 2 support broken?


> With php 4.2.2 I get this when trying to compile with apache 2 support:
>
> Making all in apache2filter
> /bin/sh
/usr/local/download/apache/php-4.2.2/libtool --silent --mode=compile
> gcc  -I. -I/usr/local/download/apache/php-4.2.2/sapi/apache2filter
> -I/usr/local/download/apache/php-4.2.2/main
> -I/usr/local/download/apache/php-4.2.2 -I/usr/site/include
> -I/usr/local/download/apache/php-4.2.2/Zend -I/usr/local/include
> -I/usr/local/pgsql/include
> -I/usr/local/download/apache/php-4.2.2/ext/xml/expat  -D_REENTRANT
> -D_THREAD_SAFE -I/usr/local/download/apache/php-4.2.2/TSRM
> -I/usr/local/include/pth -g -O2 -pthread -DZTS -prefer-pic  -c
> php_functions.c
> php_functions.c:93: syntax error
> *** Error code 1
>
> Stop in /usr/local/download/apache/php-4.2.2/sapi/apache2filter.
> *** Error code 1
>
> Stop in /usr/local/download/apache/php-4.2.2/sapi/apache2filter.
> *** Error code 1
>
> Stop in /usr/local/download/apache/php-4.2.2/sapi.
> *** Error code 1
>
>
> I grabbed a CVS version of PHP and during configure it lets me know that I
> need apache 2.0.40 -- since the latest release of Apache 2 is 2.0.39 I'm
not
> sure what to do there.. Does that mean the latest apache 2 devel source?
>
> Someone toss me a clue stick please!
>
> -Mitch
>
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Compiling PHP on Linux

2002-07-24 Thread Aaron Gould

Here's how to get it to work (thanks to somebody on Google Groups)...

1.   Open up the file php_functions.c in /sapi/apache2filter/
2.   Change MODULE_MAGIC_AT_LEAST to AP_MODULE_MAGIC_AT_LEAST (Note the
addition of "AP_")
3.   Save the php_functions.c file and try running configure again

Keep in mind this is experimental and thus should not be used on production
web sites (even though we've been using Apache 2.0.39+PHP 4.2.1/4.2.2 for a
few weeks without issues on two of our servers).

--
Aaron Gould
[EMAIL PROTECTED]
Web Developer



- Original Message -
From: "Osman Omar" <[EMAIL PROTECTED]>
To: "PHP" <[EMAIL PROTECTED]>
Sent: Tuesday, July 23, 2002 8:35 PM
Subject: [PHP] Compiling PHP on Linux


> Hi
>
> I try to compile php and got error message
> any idea?
>
>
> system:
>   Redhat 7.2
>   Apache 2.0.39 (for redhat 7.0 from apache website)
>   php 4.2.2
>
> error messages
> ---
> /bin/sh /usr/tmp/php-4.2.2/libtool --silent --mode=compile gcc  -I.
> -I/usr/tmp/php-4.2.2/sapi/apache2filter -I/usr/tmp/php-4.2.2/main
> -I/usr/tmp/php-4.2.2 -I/usr/local/apache2-39/include
> -I/usr/tmp/php-4.2.2/Zend -I/usr/include/freetype2/freetype
> -I/usr/tmp/gd-2.0.1/ -I/usr/tmp/php-4.2.2/ext/mysql/libmysql
> -I/usr/tmp/php-4.2.2/ext/xml/expat  -D_REENTRANT
> -I/usr/tmp/php-4.2.2/TSRM -DTHREAD=1 -g -O2 -pthread -DZTS -prefer-pic
> -c php_functions.c
> php_functions.c:93:27: missing binary operator before '!'
> make[3]: *** [php_functions.lo] Error 1
> make[3]: Leaving directory `/var/tmp/php-4.2.2/sapi/apache2filter'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/var/tmp/php-4.2.2/sapi/apache2filter'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/var/tmp/php-4.2.2/sapi'
> make: *** [all-recursive] Error 1
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] For all those trying to compile PHP 4.2.x with Apache 2.0.39 !!!!!

2002-07-25 Thread Aaron Gould

This will allow you to compile PHP 4.2.x as a shared object into Apache
2.0.39.

Credits to somebody on Google Groups (I can't recall, but I needed an answer
to this too a couple weeks back)...

1.   Open up the file php_functions.c in /sapi/apache2filter/
2.   Change MODULE_MAGIC_AT_LEAST to AP_MODULE_MAGIC_AT_LEAST (Note the
addition of "AP_")
3.   Save the php_functions.c file and try running configure again

Keep in mind this is experimental and thus should not be used on production
web sites (even though we've been using Apache 2.0.39+PHP 4.2.1/4.2.2 for a
few weeks without issues on two of our servers).

--
Aaron Gould
[EMAIL PROTECTED]
Web Developer


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Linux PHP editor

2002-08-09 Thread Aaron Gould

Something rarely mentioned in these discussions on "PHP Editors", is FTP
capabilities.  That's something that is absolutely critical for me.  I
maintain several websites on different web servers.  As such, the ability to
log in and remotely edit sites is invaluable.  And no - downloading the
entire site, editing it, and re-uploading it isn't an option.

Here's some Linux ones that satisfy this requirement:

1.  Zend IDE:  Nice, but $$$ is the big inhibiting factor.
2.  Quanta:  its implementation remains a bit buggy.  Perhaps the next
version will be better.
3.  jEdit:  the Windows version has a plugin to do FTP, so I would assume
the Linux version does too.

Can anyone else add to the list of Linux-based FTP-enabled PHP-supporting
editors?

--
Aaron Gould
[EMAIL PROTECTED]
Web Developer




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Re: Linux PHP editor

2002-08-09 Thread Aaron Gould

You might want to check the archives.  This topic has been discussed
exhaustively many times...

To name a very small few:

HTML-Kit
Zend IDE
HomeSite
Dreamweaver
jEdit
... and many, many more.

--
Aaron Gould
[EMAIL PROTECTED]
Web Developer


- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 09, 2002 12:52 PM
Subject: Re: [PHP] Re: Linux PHP editor


> Is there a php editor for Win2k ?
>
> Negrea Mihai wrote:
>
> > try nedit from nedit.org
> > you can download the patterns from the site to do php syntax highlight..
> >
> > I have combined it with cervisia from kde 3 and made it look smth like
an IDE
> > :) .. and I've been working 4-6 hours per day for about half an year
with it
> > with no problems.
> >
> > I also have tried Quanta but it is too huge for nothing... but if you
need
> > syntax completion maybe you should take a look at it.
> >
> > Good luck in your open source trip ;)
> >
> > --
> > Negrea Mihai
> > web: http://www.negrea.net
> >
> > On Friday 09 August 2002 02:11 pm, [EMAIL PROTECTED] wrote:
> > > JJ Harrison\ writes:
> > > > I just switched over to Red Hat Linux from Win2k...
> > > >
> > > > Only to find my fav editor only works on windows systems...
> > > >
> > > > could someone suggest a good replacement?
> > > >
> > > >
> > > > --
> > > > JJ Harrison
> > > > [EMAIL PROTECTED]
> > > > www.tececo.com
> > > >
> > > >
> > > >
> > > > --
> > > > PHP General Mailing List (http://www.php.net/)
> > > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> > > simply vi or vim of pico :)
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] PHP 4.2.2 and Apache 2

2002-08-13 Thread Aaron Gould

We have been using PHP 4.2.1/4.2.2 with Apache 2.0.39 for a month on a
development server with absolutely no problems at all.

The PHP group has deemed Apache 2 support in 4.2.x as "experimental", but
judging by its stability, a non-experimental release can't be more than a
couple months away.

--
Aaron Gould
[EMAIL PROTECTED]
Web Developer


- Original Message -
From: "MET" <[EMAIL PROTECTED]>
To: "PHP-GENERAL" <[EMAIL PROTECTED]>
Sent: Tuesday, August 13, 2002 9:55 AM
Subject: [PHP] PHP 4.2.2 and Apache 2


> So how stable are they?  I'm not running a production server, but a
> development server.  Everything coming off of this box goes directly to
> a production server.
>
> ~ Matthew
>
>
> /**
>
>   Matthew Metnetsky
>
>   [EMAIL PROTECTED]
>
> **/
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] PHP 4.2.2 and Apache 2

2002-08-13 Thread Aaron Gould

These are the command line parameters I used when compiling Apache on our
development server:

  --prefix=/usr/local/apache
  --with-apxs2=/usr/local/apache/bin/apxs
  --with-mysql=/usr
  --with-mcrypt=../mcrypt-2.6.2
  --with-imap
  --with-imap-ssl
  --enable-ftp
  --with-gettext
  --with-xml
  --with-kerberos

Granted, this isn't as complex as many servers out there, but for our
purposes, it works.  We are a small company, and as such, will not get
nearly the traffic that Google gets.  We've only had a peak of about 10
simultaneous users on the server, each of them manipulating data in a MySQL
database of our products.

Obviously we can't say what the result of replacing our current production
server would be.  (Our production server runs Apache 1.3.26 + PHP 4.0.6, and
gets about 250,000 hits/month.)

--
Aaron Gould
[EMAIL PROTECTED]
Web Developer


- Original Message -
From: "Rasmus Lerdorf" <[EMAIL PROTECTED]>
To: "Aaron Gould" <[EMAIL PROTECTED]>
Cc: "MET" <[EMAIL PROTECTED]>; "PHP-GENERAL" <[EMAIL PROTECTED]>
Sent: Tuesday, August 13, 2002 11:32 AM
Subject: Re: [PHP] PHP 4.2.2 and Apache 2


> Which OS, which extensions and how much load have you put it under?  There
> are known thread safety issues in various libraries that you can link PHP
> against.  And some of them are subtle.
>
> Did you know, for example, that libpq (the PostgreSQL client library) is
> threadsafe except for the case where you use CRYPT() in an SQL query.
> Good luck debugging that one.
>
> Personally I would not touch Apache 2, at least not with a threaded mpm,
> for quite a while.
>
> -Rasmus
>
> On Tue, 13 Aug 2002, Aaron Gould wrote:
>
> > We have been using PHP 4.2.1/4.2.2 with Apache 2.0.39 for a month on a
> > development server with absolutely no problems at all.
> >
> > The PHP group has deemed Apache 2 support in 4.2.x as "experimental",
but
> > judging by its stability, a non-experimental release can't be more than
a
> > couple months away.
> >
> > --
> > Aaron Gould
> > [EMAIL PROTECTED]
> > Web Developer
> >
> >
> > - Original Message -
> > From: "MET" <[EMAIL PROTECTED]>
> > To: "PHP-GENERAL" <[EMAIL PROTECTED]>
> > Sent: Tuesday, August 13, 2002 9:55 AM
> > Subject: [PHP] PHP 4.2.2 and Apache 2
> >
> >
> > > So how stable are they?  I'm not running a production server, but a
> > > development server.  Everything coming off of this box goes directly
to
> > > a production server.
> > >
> > > ~ Matthew
> > >
> > >
> > > /**
> > >
> > >   Matthew Metnetsky
> > >
> > >   [EMAIL PROTECTED]
> > >
> > > **/
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Apache 2.0 and PHP

2002-08-19 Thread Aaron Gould

Wait until PHP 4.3.0 before considering Apache 2.0.  Rasmus has indicated
they *may* play better together at that point.  Currently, PHP 4.2.x with
Apache 2 is experimental and should not be used in a production environment.

We use it on our development server without trouble, but that server is not
exposed to a lot of traffic and abuse.

--
Aaron Gould
[EMAIL PROTECTED]
Web Developer


- Original Message -
From: "John Wards" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 19, 2002 7:27 AM
Subject: [PHP] Apache 2.0 and PHP


> Guys and Girls got a question for you.
>
> Is Apache 2.0 any good and is there any advantages to installing it?
>
> Does it work fine enough with PHP and MySQL?
>
> Would I be able to install it along side 1.3 and run it on a separate
port?
>
> Cheers
> John Wards
> SportNetwork.net
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] gettext issues

2002-09-06 Thread Aaron Gould

I am implementing gettext into a website, but for some reason, the pages
keep swapping between the intended translated language (French), and the
primary language (English).

I'm using RedHat 7.3, with gettext-0.11.1-2 RPM.

At the top of every page, I have this code:

setlocale(LC_ALL, 'fr_FR');
bindtextdomain('messages', $_SERVER['DOCUMENT_ROOT'].'/locale');
textdomain('messages');

And on my testing page, I have gettext() calls surrounding any outputted
text.  Upon checking the returned result of setlocale, it is indeed 'fr_FR'.

I have created a messages.po file (via "xgettext -n *.php"), and put in the
translated text.  I then created the messages.mo file (via "msgfmt
messages.po").  These are both placed in the following directory:

/home/web/website/locale/fr_FR/LC_MESSAGES

Now, when I load up the web page, everything *should* be French.  Sometimes
it is.  But sometimes it's English instead.  It's a 50/50 thing.  I've
verified that the "setlocale" call is ALWAYS using "fr_FR".

Can anyone help me out?

(And as an aside, can the gettext parameter span multiple lines, or must it
be on one line?)

--
Aaron Gould



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] PHP or Apache problem?

2002-09-12 Thread Aaron Gould

I have recently installed Apache 2.0.40 with PHP 4.2.3 on a development
server...

When I type the IP address of the server into my browser, all I see is PHP
code.  However, when I type the IP address, with the "index.php", it works
perfectly!  Why would one work and not the other?

192.168.1.1   Doesn't work (displays the code in
"index.php")
192.168.1.1/index.php   Does work!

I have these PHP-related entries in my httpd.conf file:

LoadModule php4_modulemodules/libphp4.so
DirectoryIndex index.php index.html.var
AddType application/x-httpd-php .php

Am I missing something important here?

--
Aaron Gould



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] a href...

2002-09-13 Thread Aaron Gould

Change the second "?" with "&".  The ampersand is used to delimit multiple
URI values.  Use the ampersand to append any additional name/value pairs as
well.



--
Aaron Gould
[EMAIL PROTECTED]
Web Developer


- Original Message -
From: "Meltem Demirkus" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 13, 2002 8:57 AM
Subject: [PHP] a href...


> Hi,
> Iwant to send 2 variable by using a href like that:
>
> a href="bug_detail_user.php?id=$id?reporter_id=$reporter_id"
>
>
> isnt this possible because it is taking the data id  as
> $id?reporter_id=$reporter_id...
>
> can anyone tell me how I can manage this..
> thanks..
>
> meltem
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] How to do Date Calculation

2002-10-10 Thread Aaron Gould

This is actually in PEAR.  I use this all the time for my date calculations.

Just use this code in your script and you'll have access to all the
Date_Calc functions...

   include("Date/Calc.php")
   $dc = new Date_Calc;
   $dc->[Date_Calc_Function1];
   $dc->[Date_Calc_Function2];
   $dc->[Date_Calc_Function3];
   etc, etc

--
Aaron Gould
Web Developer
Parts Canada


- Original Message -
From: "Greg Macek" <[EMAIL PROTECTED]>
To: "Noodle Snacks" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, October 10, 2002 10:29 AM
Subject: Re: [PHP] How to do Date Calculation


> You could also check out this class someone wrote called Date_calc. It's
> a nice frontend to all sorts of date calculations you may run across.
> It's helping me quite a bit for my projects.
>
> http://www.phpinsider.com/php/code/Date_Calc/
>
> On Thu, 2002-10-10 at 06:04, Noodle Snacks wrote:
> >
> > "Jason Wong" <[EMAIL PROTECTED]> wrote in message
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > On Thursday 10 October 2002 18:37, Jack wrote:
> > > > Dear all
> > > > I'm trying to make a script which will show the month before current
> > month!
> > > > Is there anyway i can do this?
> > > >
> > > > Example :
> > > >
> > > > CurrentPervious
> > > >
> > > > OctoberSeptember
> > >
> > > date("F", strtotime("last month"));
> > To find more about PHP's date/time functions go here:
> >
> > http://www.php.net/manual/en/ref.datetime.php
> >
> > in particular look at:
> >
> > date() -- Format a local time/date
> > mktime() -- Get UNIX timestamp for a date
> > time() -- Return current UNIX timestamp
> > strtotime() --  Parse about any English textual datetime description
into a
> > UNIX timestamp
> >
> >
> > --
> > JJ Harrison
> > [EMAIL PROTECTED]
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Content-Disposition IE bug

2002-10-15 Thread Aaron Gould

I remember reading on this a long while back.  Try searching the archives of
this list.  The solution pointed to a Microsoft Knowledge Base article.

If I recall correctly, it involved simply adding "%20" to the end of your
filename string...

Something like this:

Header("Content-Disposition: attachment; filename=$filename%20");

Give it a try.  I might be way off, but you've got nothing to lose.  :)

--
Aaron Gould
Web Developer
Parts Canada


"Francis" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> ok i know this has popped up a couple of times before but i'm still having
> problems. What I need is the download popup to popup and ask the user if
> they wish to save or open the file they want to download. If you click
open
> IE saves the file in your temp cache and then opens up the associated
proggy
> and for some bizare reason adds "[1]" at the end of the filename and cant
> find the file in cache. At the moment i'm using the following:
>
> Header("Content-Type: application/octet-stream");
> Header("Content-Transfer-Encoding: binary");
> Header("File-Length: $fileSize");
> Header("Content-Disposition: attachment; filename=$filename");
> Header("Content-Description: File from DMS");
> fpassthru($fh);
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Content-Disposition IE bug (ADDENDUM)

2002-10-15 Thread Aaron Gould

I just read the part about caching...  Here's the download code that works
perfectly for me.  Note the first line that deals with caching.  The last
line also has the filename in quotes.  That might make a difference.  If you
still get [1], try the %20 trick in my last post.

header("Cache-control: private");
header("Content-type: application/octet-stream");
header("Content-length: $filesize");
header("Content-Disposition: attachment; filename=\"$filename\"");

--
Aaron Gould
[EMAIL PROTECTED]
Web Developer
Parts Canada


- Original Message -
From: "Francis" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 15, 2002 5:45 AM
Subject: [PHP] Content-Disposition IE bug


> ok i know this has popped up a couple of times before but i'm still having
> problems. What I need is the download popup to popup and ask the user if
> they wish to save or open the file they want to download. If you click
open
> IE saves the file in your temp cache and then opens up the associated
proggy
> and for some bizare reason adds "[1]" at the end of the filename and cant
> find the file in cache. At the moment i'm using the following:
>
> Header("Content-Type: application/octet-stream");
> Header("Content-Transfer-Encoding: binary");
> Header("File-Length: $fileSize");
> Header("Content-Disposition: attachment; filename=$filename");
> Header("Content-Description: File from DMS");
> fpassthru($fh);
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] PHP 4.3.0 and Zend Engine 2

2002-11-06 Thread Aaron Gould
I have read from various sources that Zend Engine 2 will make an appearance
in PHP 5.0.  It's a pretty significant update, and as such, I doubt it would
be smart to implement it in the middle of a major series (4.x).

Mind you, it's been a while since I've read anything on ZE2, so things may
have changed by now...  the PHP powers that be would only be able to give me
a definitive answer.

--
Aaron Gould
[EMAIL PROTECTED]
Web Developer
Parts Canada


- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 05, 2002 8:31 PM
Subject: [PHP] PHP 4.3.0 and Zend Engine 2


> Can anybody tell me if PHP 4.3.0 will use Zend Engine 2?
>
> Thanks,
> matt westgate
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] re: echo w/ here document

2002-11-12 Thread Aaron Gould
Looks ok to me.  Try making sure that all white space is removed from after
the "echo <<
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 12, 2002 5:32 AM
Subject: [PHP] re: echo w/ here document


> I'm still having a problem with including a here document. Trying this
> code:
>
>  echo << 
> 
> hello... hello... hello... hello...
> 
> 
> ENDOFECHO;
> ?>
>
> I get a parse error on line 7. Please help. I have a major project that
> has ground to a halt.
>
> Craig Buxton
> Gravity Pilot Productions
> [EMAIL PROTECTED]
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] longitude/latitude function

2002-11-15 Thread Aaron Gould
Try this snippet... I can't vouch for its accuracy since I am not a
mathematician:




--
Aaron Gould
[EMAIL PROTECTED]
Web Developer
Parts Canada


- Original Message -
From: "Edward Peloke" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 15, 2002 11:20 AM
Subject: [PHP] longitude/latitude function


> Has anyone ever written a php function to take the longitude and latitude
of
> two destinations and calculate the distance?
>
> I am working on one but the output is just a little off.
>
> Thanks,
> Eddie
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] longitude/latitude function

2002-11-15 Thread Aaron Gould
I got that from http://freshmeat.net/projects/zipdy/?topic_id=66.  It's a
program called Zipdy that does these calculations.  There's also a similar
function on the US government census site (can't remember where though), but
I liked Zipdy's better.

--
Aaron Gould
[EMAIL PROTECTED]
Web Developer
Parts Canada


- Original Message -
From: "Edward Peloke" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 15, 2002 11:55 AM
Subject: RE: [PHP] longitude/latitude function


> Thanks Aaron,
>
> If you don't mind me asking, where did you get it?  It seems to give a
> better answer than my function.
>
> Thanks!
> Eddie
>
> -Original Message-
> From: Aaron Gould [mailto:webdevel@;partscanada.com]
> Sent: Friday, November 15, 2002 11:04 AM
> To: Edward Peloke; [EMAIL PROTECTED]
> Subject: Re: [PHP] longitude/latitude function
>
>
> Try this snippet... I can't vouch for its accuracy since I am not a
> mathematician:
>
>  // Function takes latitude and longitude  of two places as input
> // and prints the distance in miles and kms.
> function calculateDistance($lat1, $lon1, $lat2, $lon2)
> // Convert all the degrees to radians
> $lat1 = deg2rad($lat1);
> $lon1 = deg2rad($lon1);
> $lat2 = deg2rad($lat2);
> $lon2 = deg2rad($lon2);
>
> // Find the deltas
> $delta_lat = $lat2 - $lat1;
> $delta_lon = $lon2 - $lon1;
>
> // Find the Great Circle distance
> $temp = pow(sin($delta_lat / 2.0), 2) + cos($lat1) * cos($lat2) *
> pow(sin($delta_lon / 2.0), 2);
>
>     $EARTH_RADIUS = 3956;
>
> $distance = ($EARTH_RADIUS * 2 * atan2(sqrt($temp), sqrt(1 - $temp)) *
> 1.6093);
>
> return $distance;
> }
> ?>
>
>
> --
> Aaron Gould
> [EMAIL PROTECTED]
> Web Developer
> Parts Canada
>
>
> - Original Message -
> From: "Edward Peloke" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, November 15, 2002 11:20 AM
> Subject: [PHP] longitude/latitude function
>
>
> > Has anyone ever written a php function to take the longitude and
latitude
> of
> > two destinations and calculate the distance?
> >
> > I am working on one but the output is just a little off.
> >
> > Thanks,
> > Eddie
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] longitude/latitude function

2002-11-15 Thread Aaron Gould
That will be in KM (I'm in Canada).  Just remove the "* 1.6093" to return
Miles.
--
Aaron Gould
[EMAIL PROTECTED]
Web Developer
Parts Canada


- Original Message -
From: "Edward Peloke" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 15, 2002 12:22 PM
Subject: RE: [PHP] longitude/latitude function


> Thanks, Just curious because after looking online it seems there are
several
> ways to do this...many giving a slightly different answer...for example, I
> went to mapquest and put in two cities and the mileage was 1500, the
> function returned 1700.  Also, the function says it prints in miles and
kms
> but it only seems to print one of them...do you know which one?  I guess I
> should look at the freshmeat site before I bother you with any other
> questions.
>
> Thanks again!!!
> Eddie
>
> -Original Message-
> From: Aaron Gould [mailto:webdevel@;partscanada.com]
> Sent: Friday, November 15, 2002 11:50 AM
> To: Edward Peloke; [EMAIL PROTECTED]
> Subject: Re: [PHP] longitude/latitude function
>
>
> I got that from http://freshmeat.net/projects/zipdy/?topic_id=66.  It's a
> program called Zipdy that does these calculations.  There's also a similar
> function on the US government census site (can't remember where though),
but
> I liked Zipdy's better.
>
> --
> Aaron Gould
> [EMAIL PROTECTED]
> Web Developer
> Parts Canada
>
>
> - Original Message -
> From: "Edward Peloke" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, November 15, 2002 11:55 AM
> Subject: RE: [PHP] longitude/latitude function
>
>
> > Thanks Aaron,
> >
> > If you don't mind me asking, where did you get it?  It seems to give a
> > better answer than my function.
> >
> > Thanks!
> > Eddie
> >
> > -Original Message-
> > From: Aaron Gould [mailto:webdevel@;partscanada.com]
> > Sent: Friday, November 15, 2002 11:04 AM
> > To: Edward Peloke; [EMAIL PROTECTED]
> > Subject: Re: [PHP] longitude/latitude function
> >
> >
> > Try this snippet... I can't vouch for its accuracy since I am not a
> > mathematician:
> >
> >  > // Function takes latitude and longitude  of two places as input
> > // and prints the distance in miles and kms.
> > function calculateDistance($lat1, $lon1, $lat2, $lon2)
> > // Convert all the degrees to radians
> > $lat1 = deg2rad($lat1);
> > $lon1 = deg2rad($lon1);
> > $lat2 = deg2rad($lat2);
> > $lon2 = deg2rad($lon2);
> >
> > // Find the deltas
> > $delta_lat = $lat2 - $lat1;
> >     $delta_lon = $lon2 - $lon1;
> >
> > // Find the Great Circle distance
> > $temp = pow(sin($delta_lat / 2.0), 2) + cos($lat1) * cos($lat2) *
> > pow(sin($delta_lon / 2.0), 2);
> >
> > $EARTH_RADIUS = 3956;
> >
> > $distance = ($EARTH_RADIUS * 2 * atan2(sqrt($temp), sqrt(1 - $temp))
*
> > 1.6093);
> >
> > return $distance;
> > }
> > ?>
> >
> >
> > --
> > Aaron Gould
> > [EMAIL PROTECTED]
> > Web Developer
> > Parts Canada
> >
> >
> > - Original Message -
> > From: "Edward Peloke" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Friday, November 15, 2002 11:20 AM
> > Subject: [PHP] longitude/latitude function
> >
> >
> > > Has anyone ever written a php function to take the longitude and
> latitude
> > of
> > > two destinations and calculate the distance?
> > >
> > > I am working on one but the output is just a little off.
> > >
> > > Thanks,
> > > Eddie
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Installation de PHP 4.2.1 with Apache and extension Frontpage 2002

2002-07-03 Thread Aaron Gould

If you have Apache installed as an RPM, make sure you have the
"apache-devel" RPM installed as well.  I remember I had this problem once in
RedHat...  apxs is included in the devel package if I recall correctly.

--
Aaron Gould
[EMAIL PROTECTED]
Web Developer


- Original Message -
From: "Claudio Valgoi" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 03, 2002 5:37 AM
Subject: [PHP] Installation de PHP 4.2.1 with Apache and extension Frontpage
2002


> Hello,
>
> I've recently installed Mandrake v 8.1 on my computer and then
successfully
> compiled and installed PostgreSQL and Apache 1.3.24 and PHP 4.2.1... All
> that works well...
>
> When I installed Frontpage 2002 extensions on the same computer, PhP
didn't
> work any more.
> I then tried to compile again php with "make clean"; but same result PhP
> isn't working
>
> I then tried to make a
> "/configure --with-apxs=/usr/local/apache/bin/apxs
> --with-pgsql=/usr/local/pgsql dans php" and the following error appeared :
>
> Sorry, I was not able to successfully run
> APXS
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Multi-dimensional array help

2003-10-27 Thread Aaron Gould
This array problem has been stumping my brain for a little while now...
here's a sample of my data:

 $purchases[001][200304] = array('regular'=>3, 'booked'=>4);
 $purchases[002][200303] = array('regular'=>5, 'booked'=>1);
 $purchases[002][200304] = array('regular'=>1, 'booked'=>0);
 $purchases[002][200307] = array('regular'=>0, 'booked'=>2);
 $purchases[003][200303] = array('regular'=>0, 'booked'=>4);
 $purchases[003][200301] = array('regular'=>5, 'booked'=>0);
 $purchases[004][200309] = array('regular'=>0, 'booked'=>2);

The first array element of $purchases is a Part Number (or "SKU").  The
second element of $purchases is the month/year for which the assigned data
("regular" and "booked" values) are set.

I need to take this data and place it into a table that has a row for each
part number, and 12 months worth of cells.  An example of the desired chart
(apologies to the
non-fixed font viewers!):

SKU| Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec
---+-+-+-+-+-+-+-+-+-+-+-+
001| | | | 3/4 | | | | | | | |
---+-+-+-+-+-+-+-+-+-+-+-+
002| | | 5/1 | 1/0 | | | 0/2 | | | | |
---+-+-+-+-+-+-+-+-+-+-+-+
003| 5/0 | | 0/4 | | | | | | | | |
---+-+-+-+-+-+-+-+-+-+-+-+
004| | | | | | | | | 0/2 | | |

In this case, the table layout would be 4 rows and 12 cells.

In this sample data's case, there are three rows of Part Number "002".  This
needs to be combined into one row.  There will only be a maximum of
12 elements for each SKU (there will never be duplicated Month/Year values).

Can anyone lead me in the right direction?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] shell_exec with pipes

2003-11-11 Thread Aaron Gould
Have you tried escaping the pipes and quotes?  Try this:

$var=shell_exec("/usr/local/bin/mplayer -identify -frames 0 
/tmp/pitstop.mpeg 2>/dev/null\| grep ID_LENGTH \| cut -d \"=\" -f 2");

Mario Ohnewald wrote:

$var=shell_exec("/usr/local/bin/mplayer -identify -frames 0
/tmp/pitstop.mpeg 2>/dev/null| grep ID_LENGTH | cut -d "=" -f 2");
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Javascript question

2003-11-20 Thread Aaron Gould
$strSinkTrap = fopen("/under/the/cabinet/", "w+");
while(!feof($strSinkTrap)){
unscrewFittings($pipe);
if($pipeUnscrewed == TRUE){
removeClog($hair, $grease, $grime);
}
}
fclose($strSinkTrap);
You may want to call the screwFittings function after removeClog has 
returned, or there's going to be an awful mess.

But then again, perhaps the automatic garbage collection will take care 
of that?

--
Aaron Gould
Parts Canada - Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Uploading Files via Forms

2002-02-14 Thread Aaron Gould

I have a CD with several of our company's product images on it.  They
consists of very large original TIF and EPS images directly from our
graphics department.  An image's size ranges anywhere from a a few hundred
kilobytes to 40 megabytes.

I have set up a form to upload the images.  They are later converted via
system calls with ImageMagick into JPG format.  It almost always works with
smaller size images (~6-8MB or less).  But when uploading anything really
large, it fails every time.  The files are not even getting to the server.

I've edited the php.ini with the following:

post_max_size = 50M
upload_max_filesize = 50M

Is there something else I'm missing?

--
Aaron Gould
[EMAIL PROTECTED]
Web Developer





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Uploading Files via Forms

2002-02-14 Thread Aaron Gould

Ahhh, ok!  I feel like such an idiot.  Right at the top of my script there's
a spot with the value of maximum upload size.  It was set to 10MB, so I
changed it to 50MB and it works.

I can't believe that slipped by me.  :)

Thanks very much!

--
Aaron Gould
[EMAIL PROTECTED]
Web Developer


- Original Message -
From: "Anas Mughal" <[EMAIL PROTECTED]>
To: "Aaron Gould" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, February 14, 2002 10:22 AM
Subject: Re: [PHP] Uploading Files via Forms


> I remember doing this a while ago.
> So, please excuse me if I am way off.
>
> As far as I recall, the upload form could specify
> maximum file size. Check if putting a larger value
> there helps.
>
>
>
>
> --- Aaron Gould <[EMAIL PROTECTED]> wrote:
> > I have a CD with several of our company's product
> > images on it.  They
> > consists of very large original TIF and EPS images
> > directly from our
> > graphics department.  An image's size ranges
> > anywhere from a a few hundred
> > kilobytes to 40 megabytes.
> >
> > I have set up a form to upload the images.  They are
> > later converted via
> > system calls with ImageMagick into JPG format.  It
> > almost always works with
> > smaller size images (~6-8MB or less).  But when
> > uploading anything really
> > large, it fails every time.  The files are not even
> > getting to the server.
> >
> > I've edited the php.ini with the following:
> >
> > post_max_size = 50M
> > upload_max_filesize = 50M
> >
> > Is there something else I'm missing?
> >
> > --
> > Aaron Gould
> > [EMAIL PROTECTED]
> > Web Developer
> >
> >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>
> =
> Anas Mughal
> [EMAIL PROTECTED]
> [EMAIL PROTECTED]
> Tel: 973-249-6665
>
> __
> Do You Yahoo!?
> Send FREE Valentine eCards with Yahoo! Greetings!
> http://greetings.yahoo.com
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] how a function 'return' statement works

2002-02-14 Thread Aaron Gould

$_SERVER (as well as all the $_* functions) in PHP 4.1 are automatically
global.

--
Aaron Gould
[EMAIL PROTECTED]
Web Developer


- Original Message -
From: "Alastair Battrick" <[EMAIL PROTECTED]>
To: "Erik Price" <[EMAIL PROTECTED]>; "Darren Gamble"
<[EMAIL PROTECTED]>
Cc: "PHP" <[EMAIL PROTECTED]>
Sent: Thursday, February 14, 2002 10:46 AM
Subject: RE: [PHP] how a function 'return' statement works


> Do you not have to make $_SERVER a global variable in the function ?
>
> Alastair
> Lightwood Consultancy Ltd
>
> > Hm... I tried quite a few variations on this.  I can't seem to get any
> > displayable value out of this function.
> >
> > function get_current_page_name()
> > {
> > $current_page_name = explode("/", $_SERVER['PHP_SELF']);
> > $current_page_name = $current_page_name[-1];
> > return $current_page_name ;
> > }
> >
> > $errorcode = get_current_page_name();
> > echo $errorcode;
> >
> > Nothing.
> >
> > The only thing that works is $errorcode =
> > basename($_SERVER['PHP_SELF']), but that's not the point -- I still
> > don't understand why the function above doesn't return anything.  In
> > this case, I'm positive that I've specified the last element of the
> > array.  (Haven't I?)
> >
> >
> > Erik
> >
> >
> >
> >
> > On Wednesday, February 13, 2002, at 05:03  PM, Darren Gamble wrote:
> >
> > > I think what you're trying to do is return one particular element out
> > > of the
> > > array.  If that's the case, just use something like:
> > >
> > > return $current_page_name[-1]
> > >
> > > to return the last element in the array.
> > >
> > > 
> >
> > 
> >
> > Erik Price
> > Web Developer Temp
> > Media Lab, H.H. Brown
> > [EMAIL PROTECTED]
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] character replace function

2002-02-14 Thread Aaron Gould

Try:

$outputstring = str_replace($character_to_erase, '', $inputstring);

--
Aaron Gould
[EMAIL PROTECTED]
Web Developer


- Original Message - 
From: "Phil Schwarzmann" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 14, 2002 1:38 PM
Subject: [PHP] character replace function


> I need a function that will erase a particular character in a string.
>  
> Any ideas?!?
>  
>  
> THANKS
> 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] mySQL WHERE/LIKE

2002-05-23 Thread Aaron Gould

The only way I know how to do it is by doing boolean OR's...  It's not 
as compact and efficient as you'd like, but it works.

SELECT  *
FROMgallery
LEFT JOIN   designers ON (designers.designersID=gallery.designersID)
WHERE   (gallery.column1 LIKE '%$search_string%'
OR  gallery.column2 LIKE '%$search_string%')
ORDER BYgallery.galleryID";


Wilbert Enserink wrote:
 > Hi all,
 >
 > I know this is rather OT, but I searched the mySQL manual all 
over...couldn't find it.
 > I want to perform a search in a table. More then 1 columns should be 
searched. namely column1 and column2 and so on.
 > Anybody knows what goes wrong here? --(in the WHERE clause). It seems 
that mySQL doesn't like to perform a search in more then 1 column.:-(
 >
 > $query="SELECT * FROM gallery LEFT JOIN designers ON 
(designers.designersID=gallery.designersID) WHERE (gallery.column1, 
gallery.column2) LIKE '%$search_string%' ORDER BY gallery.galleryID";
 >
 >
 >
 > thx for any advice
 >
 > -
 > Pas de Deux
 > Van Mierisstraat 25
 > 2526 NM Den Haag
 > tel 070 4450855
 > fax 070 4450852
 > http://www.pdd.nl
 > [EMAIL PROTECTED]
 > -




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] php-gtk

2002-02-21 Thread Aaron Gould

There is an IDE called PHPMole at:

http://www.akbkhome.com/Projects/Phpmole-IDE/

However, it looks to be Linux/Unix-only...

--
Aaron Gould
[EMAIL PROTECTED]
Web Developer


- Original Message - 
From: "Dasmeet Singh Arora" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 21, 2002 10:58 PM
Subject: [PHP] php-gtk


> Hello! Can anyone tell me about sites where I can find some help and 
> resources on PHP GTK. Is their any visual editor available for PHP GTK?
> Thanks in advance.
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> -- 
> 
> 
> 
> 'The rose is sweetest washed with morning dew
>   And love is loveliest when embalmed in tears'
>   - Walter Scott
>   __
> 
>   http://www.pluginJokes.com - Add Free Dynamic Jokes To Your Site.
>   http://nitro.fedoxpress.com - Earn Money While You Surf The Net.
>   http://www.fedoXpress.com - Free, Fast & Easy Email.
>   http://freeads.fedoXpress.com - Advertise Your Site For Free.
>   __
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] PHP/MySQL/Row Locking

2002-03-01 Thread Aaron Gould

I have MySQL Max 4.0.1-2 alpha installed on my server.  I am using the PHP
PEAR DB interface to access it.  The version of PHP is the latest, 4.1.2.

My question is -- how do I implement the locking of rows through PEAR?  I am
aiming to support transactions in my application.

>From what I understand, implementing requires persistent database
connections.  With my PEAR experience so far, I've only done the basic steps
of interfacing with the database.  I do this in separate functions -- one
for getting the data and displaying it in forms, and one for saving the
data.  In each function, a database connection is made and then
disconnected.  Hence the connections are not persistent.

Because this uses more than one function, does this approach make locking
impossible, and hence necessitating a rewrite of the database portion of my
app?

Perhaps someone knows of a web page that addresses PEAR/DB locking, or could
share some tips?

Thanks,
--
Aaron Gould
[EMAIL PROTECTED]
Web Developer





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] #!/usr/bin/php in output?

2002-03-05 Thread Aaron Gould

Try adding a -p argument to the end of that line:

#!/usr/bin/php -q

--
Aaron Gould
[EMAIL PROTECTED]
Web Developer


- Original Message - 
From: "Mike Eheler" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 05, 2002 3:43 PM
Subject: [PHP] #!/usr/bin/php in output?


> Having a bit of a weird problem with using PHP as CGI. The problem is
> this.. the output is returning the #!/usr/bin/php line from the file.
> 
> Example:
> 
> /cgi-bin/test:
> 
> #!/usr/bin/php
>  echo "Hello World!\n";
> ?>
> 
> Then in a web browser: http://www.example.com/cgi-bin/test:
> 
> #!/usr/bin/php
> Hello World!
> 
> Has anyone else experienced this problem or know what's causing it?
> 
> Mike
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] #!/usr/bin/php in output?

2002-03-05 Thread Aaron Gould

My apologies, that should have read "-q" and not "-p".  Sorry!  :) 

--
Aaron Gould
[EMAIL PROTECTED]
Web Developer


- Original Message - 
From: "Mike Eheler" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 05, 2002 3:43 PM
Subject: [PHP] #!/usr/bin/php in output?


> Having a bit of a weird problem with using PHP as CGI. The problem is
> this.. the output is returning the #!/usr/bin/php line from the file.
> 
> Example:
> 
> /cgi-bin/test:
> 
> #!/usr/bin/php
>  echo "Hello World!\n";
> ?>
> 
> Then in a web browser: http://www.example.com/cgi-bin/test:
> 
> #!/usr/bin/php
> Hello World!
> 
> Has anyone else experienced this problem or know what's causing it?
> 
> Mike
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] php|works in Toronto - anyone going?

2004-09-10 Thread Aaron Gould
Just curious if anyone on the list was headed to Toronto on Sep 22-24 
for php|works.  I live about two hours from Toronto, and my company is 
sending me.

I wonder what kind of reception this conference will get...
--
Aaron Gould
Parts Canada - Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] php|works in Toronto - anyone going?

2004-09-10 Thread Aaron Gould
John Holmes wrote:
From: "John Nichel" <[EMAIL PROTECTED]>
My company was going to send me, but backed out (money).  I'm in 
Buffalo, so it's right up the road...I may still go and just pay for 
it out of my own pocket.

Put an alias on your name tag otherwise people will be hunting you down! ;)
Have fun guys... wish I could go but it's not a good time. Maybe the 
next one.
Lucky for me I'm more of a lurker in this group, and as such I haven't 
made many enemies. Yet.  :)

--
Aaron Gould
Parts Canada - Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] php|works in Toronto - anyone going?

2004-09-13 Thread Aaron Gould
Chris Shiflett wrote:
I'm giving a talk on PHP session security, so I'll be there.
If anyone from the list is coming, please drop by and say hi.

I've already got your session picked for that time slot.
It'll be interesting to finally see some faces to go along with the 
names I've only seen on the net these last few years!

It's too bad I'm one of the few on the list that's able to attend...
--
Aaron Gould
Parts Canada - Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Problems with internationalization

2004-09-16 Thread Aaron Gould
I am having an issue with 'setlocale'.  I have created a proper 
messages.po (and compiled .mo) file in the following directory:

$_SERVER['DOCUMENT_ROOT']/locale/fr_FR/LC_MESSAGES
There are only two languages -- English and French.
Here's the snippit of code that handles the langage change.  It's in my 
code just before the header is sent:

$localemsg = setlocale(LC_ALL, 'fr_FR');
bindtextdomain('messages', $_SERVER['DOCUMENT_ROOT'].'/locale');
textdomain('messages');
So, I would expect this code to product French wording.  Well it does -- 
but not all the time!  When reloading the page constantly, the wording 
swaps randomly between English and French; all without changing any code!

Has anyone experienced this before?
--
Aaron Gould
Parts Canada - Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Re: OT gmail accounts

2004-09-20 Thread Aaron Gould
John Nichel wrote:
Yeah...what he said.  Don't you people dare try to be nice on this list. 
 Here we are trying to compete with the qmail list for nastiness, and 
y'all try to do something nice.  Jerks.
Ahhh, you guys have been cracking me up the past several days.  It's 
been a good week.  :)

--
Aaron Gould
Parts Canada - Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Push file to FTP Server

2004-10-06 Thread Aaron Gould
Aaron Todd wrote:
Does anyone know how I might be able to have php push a file to an FTP 
server?

If you configure PHP with --enable-ftp, you'll have a bunch of FTP 
functions at your disposal, including PUT:

http://ca.php.net/ftp
--
Aaron Gould
Parts Canada - Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] How do I force my script to exit after 5 seconds?

2007-02-22 Thread Aaron Gould
I have a script that connects to a networked device via PHP's socket 
functions.  This device accepts proprietary commands (e.g.: "KPRINT", as 
seen below), and returns data.  However, this device does not have any 
sort of "EXIT" command to end the processing of events.  So it 
essentially loops forever.


I do know that if this device does not return anything after 5 seconds, 
it will never return anything.


So, my question is:  how can I force this script to stop after 5 seconds 
has elapsed?


Here's the script:


$fp = fsockopen('192.168.3.25', 10001, $errno, $errstr, 5);

if (!$fp) {
echo 'Error...';
} else {
$command = "KPRINT\r\n";

fwrite($fp, $command);

while (!feof($fp)) {
$buffer = fgets($fp, 1024);
}

fclose($fp);
}


Thanks!

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] How do I force my script to exit after 5 seconds?

2007-02-22 Thread Aaron Gould
I tried this earlier, but it does not seem to work...  It appears to 
just hang when no data is returned from the networked device.  It seems 
as if the loop stops, and is waiting for something.



Brad Bonkoski wrote:

I think something like this will work for you..

$start_time = time();
...loop..
   if( time() - $start_time > 5 ) exit;

-B
Aaron Gould wrote:
I have a script that connects to a networked device via PHP's socket 
functions.  This device accepts proprietary commands (e.g.: "KPRINT", 
as seen below), and returns data.  However, this device does not have 
any sort of "EXIT" command to end the processing of events.  So it 
essentially loops forever.


I do know that if this device does not return anything after 5 
seconds, it will never return anything.


So, my question is:  how can I force this script to stop after 5 
seconds has elapsed?


Here's the script:


$fp = fsockopen('192.168.3.25', 10001, $errno, $errstr, 5);

if (!$fp) {
echo 'Error...';
} else {
$command = "KPRINT\r\n";

fwrite($fp, $command);

while (!feof($fp)) {
$buffer = fgets($fp, 1024);
}

fclose($fp);
}



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] How do I force my script to exit after 5 seconds?

2007-02-22 Thread Aaron Gould
Thanks very much, I've added stream_set_timeout functionality, and it 
seems to work very well!


For reference, here's the modified script:


$fp = fsockopen('192.168.3.25', 10001, $errno, $errstr, 5);
if (!$fp) {
echo 'Error...';
} else {
/** Set socket timeout period */
stream_set_timeout($fp, 5);

/** KPRINT outputs scale values */
$command = "KPRINT\r\n";

fwrite($fp, $command);

while (!feof($fp)) {
/** Check for timeout */
$info = stream_get_meta_data($fp);
if ($info['timed_out']) {
echo 'Timeout...';
break;
}

$buffer = fgets($fp, 1024);
}

fclose($fp);
}
====


Brad Bonkoski wrote:

Aaron Gould wrote:
I tried this earlier, but it does not seem to work...  It appears to 
just hang when no data is returned from the networked device.  It 
seems as if the loop stops, and is waiting for something.




probably blocking on the socket
have you tried:
www.php.net/stream_set_timeout


Brad Bonkoski wrote:

I think something like this will work for you..

$start_time = time();
...loop..
   if( time() - $start_time > 5 ) exit;

-B
Aaron Gould wrote:
I have a script that connects to a networked device via PHP's socket 
functions.  This device accepts proprietary commands (e.g.: 
"KPRINT", as seen below), and returns data.  However, this device 
does not have any sort of "EXIT" command to end the processing of 
events.  So it essentially loops forever.


I do know that if this device does not return anything after 5 
seconds, it will never return anything.


So, my question is:  how can I force this script to stop after 5 
seconds has elapsed?


Here's the script:


$fp = fsockopen('192.168.3.25', 10001, $errno, $errstr, 5);

if (!$fp) {
echo 'Error...';
} else {
$command = "KPRINT\r\n";

fwrite($fp, $command);

while (!feof($fp)) {
$buffer = fgets($fp, 1024);
}

fclose($fp);
}



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Strip alternating spaces in first word of paragraph

2005-02-23 Thread Aaron Gould
I have a series of paragraphs in which the first word contains 
alternating spaces.  How can I strip out the spaces of only this first 
word, while leaving the remainder of the paragraph untouched?

Here's an example:
T h i s is the first paragraph. Only the first word is wacky.
A n o t h e r paragraph with a wacky first word! Strange stuff...
E n d l e s s insanity here!
--
Aaron Gould
Parts Canada - Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Strip alternating spaces in first word of paragraph

2005-02-23 Thread Aaron Gould
Burhan Khalid wrote:

  $string = 'E n d l e s s insanity here!';
  $letters  = explode(" ",$string);
  foreach ($letters as $key => $letter)
  {
if (strlen($letter) == 1)
{
  //Possible letter of our first word
  $word .= $letters[$key];
} else {
  $split_point = $key;
}
  }
  echo "Original : ".$string."\n";
  echo "Word : ".$word."\n";
  echo "Modified : ".$word." ";
  echo implode(" ",array_slice($letters,$split_point-1))."\n";
?>
Thanks for the example, looks like it might just work!
--
Aaron Gould
Programmer/Systems Administrator
PARTS CANADA
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] sentence case

2005-02-23 Thread Aaron Gould
Diana Castillo wrote:
with php,
HOW CAN I CONVERT SENTENCES LIKE THIS . TO BE UPPER AND LOWER CASE
to become like this :
How can I convert sentences like this. To be upper and lower case.
Sounds like you need a combination of ucfirst() and strtolower().
$newstring = ucfirst(strtolower($oldstring));
--
Aaron Gould
Programmer/Systems Administrator
PARTS CANADA
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Zend Certification Exam

2005-04-22 Thread Aaron Gould
M Saleh EG wrote:
Hi everyone.. kind of OT
 Anyone who's passed it in the list? I'm having my exam on May 7th. Gone 
through the guide book once. Sounds easy according to the guide.
I dont think it's as easy as i'm thinking it is any experience? 
Thanx in advance.
My advice -- take the full amount of time given to you, and go back over 
your answers should you have time left over.

I took it at the "2005 PHP Quebec Conference" (it was part of the fee). 
 I finished it in an hour, but had 90 minutes alotted.  I did not pass, 
and still regret not taking the time to go back over the answers I was 
unsure of.  I think that if I had taken the full time, I would have had 
a better shot.

You'll likely have better luck, as I normally don't do well with exams 
in general.

As an aside, I think the exam needs to mature a bit more. I was confused 
a few times, and found a few questions that involved cases I had 
certainly experienced in five plus years of PHP development. I'm sure 
that'll happen in due time as the certification is only a couple years old.

--
Aaron Gould
Programmer/Systems Administrator
PARTS CANADA
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Zend Certification Exam

2005-04-25 Thread Aaron Gould
M Saleh EG wrote:
Any advice from the ones that passed? 
Thanks
What exactly are you after?  Why does it matter if a person has passed 
or not?  As long as someone has taken the exam, that should be 
sufficient enough to provide some advice.

A couple tidbits of advice have already been given to you, including by me.
--
Aaron Gould
Programmer/Systems Administrator
PARTS CANADA
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Zend Certification Exam

2005-04-26 Thread Aaron Gould
Chris Ramsay wrote:
Perhaps it came across as a bit cheeky to Aaron - I kind of got the
impression that an answer from someone who has had a go but not passed
the exam was not good enough for you...
Really, I doubt whether there is any difference in doing the exam
whatever the outcome, seeing as what you wanted to know was about
taking the exam in the first place.
That's exactly the impression I got too Chris.  Glad I'm not the only 
one to see it that way!  I felt a bit inadequate there for a moment.  :)

Regardless, my advice still stands (if it still matters coming from a 
"unsuccessful" exam taker) -- don't rush the exam and take your time. 
Some of the questions are tricky in their wording.

As an aside -- for those who are unsuccessful with the exam, don't 
worry, it doesn't mean your a bad programmer. I've been programming PHP 
for five years now, and there's very little I can't do with it.

I just stink at exams; I get antsy when sitting for 30-60 minutes with 
just a pencil and paper in a quiet room.

--
Aaron Gould
Programmer/Systems Administrator
PARTS CANADA
"Proudly underperforming in exams for years..."
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] PHP mail

2005-05-05 Thread Aaron Gould
Eustace wrote:
I am relatively new to PHP and could use some help. I have a form, which is
basically in an email format, from, subject, and message. How do I then send
this to an email? I know a bit about the mail function, somebody show me the
ropes please!
Eustace
Everything you need to know should be gleamed from the following page:
http://ca3.php.net/manual/en/function.mail.php
Check the examples, and you'll be well on your way.
--
Aaron Gould
Programmer/Systems Administrator
PARTS CANADA
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] PHP 4.3.6

2004-05-20 Thread Aaron Gould
Martin, Stanley G [Contractor for Sprint] wrote:
-Original Message-
From: John Nichel [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 20, 2004 1:21 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] PHP 4.3.6

Martin, Stanley G [Contractor for Sprint] wrote:
When I ran configure for PHP I tried to use the --with-apache and
pointed it to /usr/local/apache but it told me it couldn't find
httpd.h anywhere under there and it is there
(/usr/local/apache/include/httpd.h).  So, I ran it with
--with-apxs=/usr/local/apache/bin/apxs.  It creates the file
This is a guess... did you run a "make clean" between your first and 
second configure attempts?

--
Aaron Gould
Parts Canada - Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Compiling PHP with mnoGoSearch fails

2004-06-04 Thread Aaron Gould
Has anyone here had recent success compiling PHP with mnoGoSearch?
I'm trying to get PHP 4.3.7 and mnoGoSearch 3.1.21 to work together, but 
it's just not working.  mnoGoSearch configures and installs fine (in 
"/usr/local/mnogosearch"), and PHP configures fine.  But during PHP's 
make, I get all sorts of errors at the end of the compilation:

/usr/lib/mysql/libmysqlclient.a(libmysql.o)(.data+0x4): multiple 
definition of `mysql_port'
/usr/lib/mysql/libmysqlclient.a(libmysql.o)(.data+0x4): first defined here
/usr/lib/mysql/libmysqlclient.a(libmysql.o)(.data+0x8): multiple 
definition of `mysql_unix_port'
/usr/lib/mysql/libmysqlclient.a(libmysql.o)(.data+0x8): first defined here
/usr/lib/mysql/libmysqlclient.a(libmysql.o)(.data+0xc): multiple 
definition of `net_buffer_length'
/usr/lib/mysql/libmysqlclient.a(libmysql.o)(.data+0xc): first defined here
/usr/lib/mysql/libmysqlclient.a(libmysql.o)(.data+0x10): multiple 
definition of `max_allowed_packet'
/usr/lib/mysql/libmysqlclient.a(libmysql.o)(.data+0x10): first defined here
/usr/lib/mysql/libmysqlclient.a(libmysql.o)(.data+0x14): multiple 
definition of `net_read_timeout'
/usr/lib/mysql/libmysqlclient.a(libmysql.o)(.data+0x14): first defined here
/usr/lib/mysql/libmysqlclient.a(libmysql.o)(.data+0x18): multiple 
definition of `net_write_timeout'
/usr/lib/mysql/libmysqlclient.a(libmysql.o)(.data+0x18): first defined here
/usr/lib/mysql/libmysqlclient.a(libmysql.o)(.text+0x0): In function 
`mysql_server_init':
: multiple definition of `mysql_server_init'
/usr/lib/mysql/libmysqlclient.a(libmysql.o)(.text+0x0): first defined here
/usr/lib/mysql/libmysqlclient.a(libmysql.o)(.text+0x16c0): In function 
`mysql_once_init':
: multiple definition of `mysql_once_init'
/usr/lib/mysql/libmysqlclient.a(libmysql.o)(.text+0x16c0): first defined 
here
/usr/lib/mysql/libmysqlclient.a(libmysql.o)(.text+0x10): In function 
`mysql_server_end':
...
(and many more lines like this, substituting "mysql_server_end" with 
other mysql-related items).

It certainly seems MySQL related.  Any ideas?
Here's my PHP configure line:
./configure --prefix=/usr/local/apache
--with-apxs=/usr/local/apache/bin/apxs --enable-trans-sid
--enable-inline-optimization --with-gettext --enable-ftp --with-zlib
--with-pspell --with-curl --with-imap --with-kerberos --with-xml
    --with-mcrypt --with-mnogosearch=/usr/local/mnogosearch
--with-mysql=/usr
Thanks,
--
Aaron Gould
Parts Canada - Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Compiling PHP with mnoGoSearch fails

2004-06-04 Thread Aaron Gould
Curt Zirzow wrote:
* Thus wrote Aaron Gould ([EMAIL PROTECTED]):
"/usr/local/mnogosearch"), and PHP configures fine.  But during PHP's 
make, I get all sorts of errors at the end of the compilation:

/usr/lib/mysql/libmysqlclient.a(libmysql.o)(.data+0x4): multiple 
definition of `mysql_port'

Just a guess but mnogosearch have mysql compiled staticly in its
library?
Curt
That just occurred to me as well, although it's just a guess for me as 
well.  Upon checking mnoGoSearch's configuration help, it appears the 
default is static.  I'll see if I can get it working as shared...

--
Aaron Gould
Parts Canada - Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Compiling PHP with mnoGoSearch fails

2004-06-04 Thread Aaron Gould
Curt Zirzow wrote:
* Thus wrote Aaron Gould ([EMAIL PROTECTED]):
"/usr/local/mnogosearch"), and PHP configures fine.  But during PHP's 
make, I get all sorts of errors at the end of the compilation:

/usr/lib/mysql/libmysqlclient.a(libmysql.o)(.data+0x4): multiple 
definition of `mysql_port'

Just a guess but mnogosearch have mysql compiled staticly in its
library?
I tried configuring both mnoGoSearch and PHP with shared libs and it 
still did not work together (same errors).

I just tried mnoGoSearch withouth the MySQL support and it did work.  I 
suppose at least that will work well enough to let me know what 
mnoGoSearch is all about.

I wonder if mnoGoSearch does not truly support MySQL 4.x (I'm on 
4.0.18).  They've only tested with 3.21, 3.22 and 3.23.

--
Aaron Gould
Parts Canada - Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Compiling PHP with mnoGoSearch fails

2004-06-04 Thread Aaron Gould
John Nichel wrote:
Aaron Gould wrote:
Curt Zirzow wrote:
* Thus wrote Aaron Gould ([EMAIL PROTECTED]):
"/usr/local/mnogosearch"), and PHP configures fine.  But during 
PHP's make, I get all sorts of errors at the end of the compilation:

/usr/lib/mysql/libmysqlclient.a(libmysql.o)(.data+0x4): multiple 
definition of `mysql_port'
Just a guess but mnogosearch have mysql compiled staticly in its
library?
I tried configuring both mnoGoSearch and PHP with shared libs and it 
still did not work together (same errors).

I just tried mnoGoSearch withouth the MySQL support and it did work.  
I suppose at least that will work well enough to let me know what 
mnoGoSearch is all about.

I wonder if mnoGoSearch does not truly support MySQL 4.x (I'm on 
4.0.18).  They've only tested with 3.21, 3.22 and 3.23.

I had the same problem.  We're running mnoGoSearch just fine on our 
production box using MySQL 3.x, but on one of our development machines, 
we're running MySQL 4.x.  mnoGoSearch configured/compiled/installed fine 
on that box, but php barfed on compile.  We then reinstalled 
mnoGoSearch, configuring it with --with-built-in, and then PHP built fine.
Good to know it's not just my machine, thanks!  I've just run a few 
tests and it seems mnoGoSearch will fill our need.  Hopefully they'll 
soon have MySQL 4.x supported though!

--
Aaron Gould
Parts Canada - Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Heredocs

2007-08-29 Thread Aaron Gould

RodgerW wrote:

Are heredocs supported by PHP 5.2.3 running in WinXP/Apache2.2.4 ?
I prrint via heredocs and its not working. Print with single quotes and 
double quotes work.



string init method 3: heredocs
END;   
?>







It works here on 5.2.3.  Try removing ALL whitespace before and after 
the "END;" portion of your heredocs.  If there's whitespace, it doesn't 
work.


--
Aaron Gould

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Banned from #php

2007-12-03 Thread Aaron Gould

Brenden Wilson wrote:

I hope this is the right place to ask because I simply can't find any place
else to ask for help.

I have been banned from chatting in ##php and I really don't deserve it.

The chat log can be found here:
http://pastebin.com/f6941dae7
(I've deleted conversations from other people)


Wolfpaws banned me for calling him obnoxious.  I don't know if he does this
to everybody, but he rarely helps me but almost always calls me an idiot for
asking questions.  He has been doing this for several weeks now and I have
only once said something in return to him.  He didn't even give me a
warning


How can I get unbanned?  I'm not a problem in the least bit and when I can
legitimately answer somebody else's question, I always do.



Thanks,
Brenden Wilson




Hmm, suspicious at best.  I find it difficult to believe there are any 
obnoxious PHP people.  :)


Aaron

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] zend framework

2007-05-23 Thread Aaron Gould
I've been experimenting with it for a new site revision at the company I 
work at.  I have to agree, it's feels heavy, almost bloated.  Mind you, 
I've only used a small fraction of the framework -- namely the Zend_Db, 
Zend_Config and Zend_Controller portions.  The lack of Javascript seems 
like a curious omission, but perhaps that's not the point of ZF.


I've been using CakePHP for another site, and it feels very efficient 
and easy to use. Javascript/AJAX helpers are all integrated too. Perhaps 
this is contributing to my somewhat negative view on ZF?


I still intend to try out ZF a bit more to give it a fair shot, but 
after using CakePHP, I'm not so sure for how long...

--
Aaron Gould


Greg Donald wrote:

Has anyone looked at the Zend Framework lately?

http://framework.zend.com/manual

I've been playing with a few parts of it off and on the past couple of
days.  It seems really heavy overall and there is no Javascript
integration anywhere.  Nothing on the roadmap about Javascript either:

http://framework.zend.com/roadmap

It might be worth using if it actually did something better than my
current toolset.  Right now it really doesn't.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Stupid question

2004-03-17 Thread Aaron Gould
Jeff McKeon wrote:
$this->

What does this do?  I know it has something to do with classes but can't
quite get my head around it.
You might want to check out this:

http://ca.php.net/oop

--
Aaron Gould
Parts Canada - Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Compiling PHP with extension; CLI works, Apache doesn't

2004-10-25 Thread Aaron Gould
I just compiled PHP with an extension for testing purposes 
(mnoGoSearch).  After all was said and done, the CLI version sees the 
mnogosearch extension just fine ("php -m"), but the Apache module 
doesn't see it at all (nothing "mnogosearch" related at all in "PHPINFO()").

I've added "extension=mnogosearch.so" to php.ini.
I'm pretty sure that with other extensions I've tried in the past, there 
was nothing special necessary to make an extension work among the 
different PHP APIs.

My PHP compile line:
./configure --prefix=/usr/local/php \
  --with-apxs=/usr/local/apache/bin/apxs --with-mysql=/usr \
  --with-gettext --enable-ftp --with-zlib --with-pspell --with-curl \
  --with-mcrypt --with-mnogosearch=shared,/usr/local/mnogosearch \
  --with-gd --with-jpeg-dir=/usr --with-png-dir=/usr --disable-cgi
The vital server software:
  PHP 5.0.2
  Apache 1.3.31
  RH Enterprise Linux 3 (Update 3)
Am I missing something?
--
Aaron Gould
Parts Canada - Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] PHP5 on IBM PowerPC; good combination?

2004-10-27 Thread Aaron Gould
My company is considering the purchase of a fairly nice IBM PowerPC 
system, running SuSe Linux (presumably version 9.2 by the time we get 
it). This will be replacing our aging Compaq as our main server for our 
mission-critical apps.

Does anyone here have experience compiling PHP 5.x on a Linux-based 
PowerPC architecture?  My primary concern is that it actually compiles 
without trouble; all we have here now are x86 systems, so we can't test 
this combination!

--
Aaron Gould
Parts Canada - Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] PHP5 on IBM PowerPC; good combination?

2004-10-27 Thread Aaron Gould
Brent Clements wrote:
>Just so we are all clear. It doesn't matter which linux
>distribution you use as long as the distribution supports the
>ppc architecture which most do. As long as you have the gnu
>compiler suite and all associated tools and libraries, php will
>compile fine.
That makes sense; I had a suspicion this might be the case. I have no 
experience with SUSE (just RedHat and Gentoo), but I'd imagine it has 
all the requisite GNU compilation tools.

>From: "Pierre Ancelot" <[EMAIL PROTECTED]>
>
>yes, use debian: http://www.debian.org and study the apt system
>you'll get no problem. (php 5 is not in "sarge" which is what
>you should use but compiling php5 on it gives no problem.) and
>debian supports very well ppc...
Unfortunately we're stuck with SUSE (pre-installed with the IBM 
OpenPower series servers). My company wants to stick with it. I won't 
complain too much though; as long as it's linux, I'm ok.

--
Aaron Gould
Parts Canada - Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Syntax highlighting of odd language

2004-11-05 Thread Aaron Gould
Could any of you privide some leads in regard to highlighting syntax of 
an odd language?  I have a large amount of snippits of legacy code from 
our company's primary application. The code used is "BBx" (a variant of 
Basic).

I'm attempting to show this code on a web page, but with highlighting of 
keywords and variables/numbers.  I've already got a list of the 
language's 250-odd keywords in a file.

I saw a "Text_Highlighter" PEAR class, but that seems to only do a bunch 
of predefined popular languages (ie. SQL, PHP, C).

Please don't ruin my Friday afternoon and tell me I'll need to dig into 
regular expressions.  :)

--
Aaron Gould
Parts Canada - Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Syntax highlighting of odd language

2004-11-05 Thread Aaron Gould
Bruno B B Magalhães wrote:
$code = 'function what() { do oddname; %oddsyntax }';
function highlight_code($code)
{
$oddsyntax = array('oddsyntax','oddsyntax2','oddsyntax3');

for($i = 0; $i <= count($oddsyntax)-1; $i++)
{
$highlighted_code = eregi_replace($oddsyntax[$i],''.$oddsyntax[$i].'',$code);
}
return $code;
}
Hi Bruno...
I tried your sample, but it doesn't seem to work.  I do however see what 
you're getting at.

Perhaps I need to experiment with the eregi_replace commands (or other 
regex commands) a bit.

Thanks,
--
Aaron Gould
Parts Canada - Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Syntax highlighting of odd language

2004-11-08 Thread Aaron Gould
M. Sokolewicz wrote:
Now, the problem with such a "solution" is the following. Imagine you 
have the following keywords:
include
require
in
of
typof
now, when you replace include with include, it'll go on, and also replace all 
instances of in, so you'll end up with things like include 
(very ugly).
I did encounter this during some experimenting.  I figured I'd just sort 
the array of commands from from shortest strong to longest string.  But 
like you said, far too many embedded  tags would result!

*a* way to get around that is by using word boundries around the keyword 
to be replaced (eg. preg_replace('\(\W|^)+('.$highlight[$i].')(\W|$)\i', 
'$1$2$3') )
My regular expression skills are very basic, but I understand the gist 
of your preg_replace statement.  Now I just need to polish my regex 
knowledge!

Thanks,
--
Aaron Gould
Parts Canada - Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] PHP-editor connected to FTP?

2004-11-19 Thread Aaron Gould
> i'm sorry you've had so much trouble with it! but in the hopes of not
> scaring off other users i feel it is my duty as an html-kit user to
> respond.
I'll back you up on this.  I've used HTML-Kit for quite some time... 
probably over three years now.  Great little program, especially for free!

> 1. i use spaces all the time so this is not a problem for me.
> 2. i admit it, there are a *ton* of options. most of which i have not
> even bothered to set.
> 3. until very recently i have worked exclusively with a local ftp
> server so a secure connection has not been a concern.
> 4. i've never wanted to set a block of text to all lowercase so
> i can't really comment on this one.
Same on all accounts for me. Changing the case of blocked text does 
indeed require an extension, but I regard this as a strength of 
HTML-Kit.  It is infinitely expandable with plug-ins/extensions.

> i thought html-kit did this based on the filename extension? i've
> never pointed html-kit to any php executable (considering it's not
> even on my local machine) and it recognizes functions fine. are
> you referring to something else?
Same here; it takes the appropriate colour scheme based on file 
extension.  You can point to help files for languages though, I believe...

--
Aaron Gould
Parts Canada - Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] PHP based MySQL report generators?

2005-09-22 Thread Aaron Gould
Has anyone encountered an open-source PHP-based report generator for 
MySQL?  I haven't been able to find one yet.


We have several people in our company that need to create reports from a 
master database (consisting of several tables).


Ideally I'd like a similar functionality that MS Access or Navicat 
(navicat.com) offer.  We don't need a huge number of features, but we do 
at least need the ability to select the fields deemed necessary, and 
correlate them into a report.


We are currently using Access for this, but would like to move away from 
Microsoft (including Office).


I'm sure it's not out of reach to write this from scratch, but if I 
don't need to...


--
Aaron Gould
Programmer/Systems Administrator
PARTS CANADA

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] gettext() troubles

2005-09-23 Thread Aaron Gould

Denis Gerasimov wrote:




Here's what I use to set my language (to French in this case). It works 
100% of the time for me:


  // Set locale to preferred language
  setlocale(LC_ALL, 'fr_FR');
  bindtextdomain('messages', $_SERVER['DOCUMENT_ROOT'].'/locale');
  textdomain('messages');

I don't do the "putenv" line that you have, so I'm not sure if it's 
necessary...


--
Aaron Gould
Programmer/Systems Administrator
PARTS CANADA

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] gethostbyaddr timeout

2001-01-31 Thread Aaron Gould

I'm at the end of my rope here...

I have a 100,000+ line file containing IP addresses.  For each line, I need
to run a "gethostbyaddr" command.  However, some lines take a long time to
timeout.  Is there a way I can decrease this timeout period to one or two
seconds?

Thanks!!

--
Aaron Gould
Programmer/Web Developer
Parts Canada - http://www.partscanada.com




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]