[PHP] "x" as a multiplier

2002-12-03 Thread John Meyer
Code:

$newwidth . "x"  . $newheight


What I want to get out is a string, like 89x115.  All I am getting though,
is one number, even though  if I do this

$newwidth . " x "  . $newheight

It prints out just fine.  What is going on here?


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




RE: [PHP] "x" as a multiplier

2002-12-03 Thread John Meyer
Exactly.  But it's only giving me one of the numbers without the space
between the numbers and the x.

-Original Message-
From: Adam Williams [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 03, 2002 3:48 PM
To: Kevin Stone
Cc: John Meyer; [EMAIL PROTECTED]
Subject: Re: [PHP] "x" as a multiplier


I don't think he's trying to multiply, I think he wants to print #x#, like
800x600 or 1024x768, etc...

Adam

On Tue, 3 Dec 2002, Kevin Stone wrote:

> Is it possible you're mistaken somehow?  x isn't an operator in PHP.
> Executing $a x $b will give you a parse error.  Anything in quotes is
> automatically casted as a string.
> -Kevin
>
> - Original Message -
> From: "John Meyer" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, December 03, 2002 3:20 PM
> Subject: [PHP] "x" as a multiplier
>
>
> > Code:
> >
> > $newwidth . "x"  . $newheight
> >
> >
> > What I want to get out is a string, like 89x115.  All I am getting
though,
> > is one number, even though  if I do this
> >
> > $newwidth . " x "  . $newheight
> >
> > It prints out just fine.  What is going on here?
> >
> >
> > --
> > 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] Nigerian oil scams

2002-12-12 Thread John Meyer
php

How did a Nigerian oil scam e-mail get on this list, anyway?

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




[PHP] AIM and PHP

2002-12-15 Thread John Meyer
does anybody know of a class or a PEAR module to check the status of an AIM
user and see if they are online or offline.


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




[PHP] Apache authentication and adding a user.

2002-10-28 Thread John Meyer
Hi,  is there any way to use PHP to programmatically add a user in terms of
Apache user authentication?


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




[PHP] forcing .html pages to go through the PHP parser

2002-10-28 Thread John Meyer
how do you configure apache to force all .html pages to go through the php
parser?


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




RE: [PHP] preg_replace (underscore)

2002-10-28 Thread John Meyer
i've just used str_replace for underscores and it's worked wonderfully.

-Original Message-
From: Shawn McKenzie [mailto:nospam@;mckenzies.net]
Sent: Monday, October 28, 2002 4:46 PM
To: [EMAIL PROTECTED]
Subject: [PHP] preg_replace (underscore)


Why does preg_replace("^\W^","",$str); not remove undescores _ ?  Are they
alpha-numeric?

I had to do this preg_replace("^\W|_^","",$str);

TIA,
Shawn



-- 
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] MySQL and images

2002-10-29 Thread John Meyer
Assuming that I have to for some unknown reason, are there any articles on
storing images in the database and retrieving them?


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




RE: [PHP] MySQL and images

2002-10-29 Thread John Meyer
Know that, believe that, been preaching that, but I just want to know just
in case.
Actually found the article.
-Original Message-
From: Rick Emery [mailto:remery@;emeryloftus.com]
Sent: Tuesday, October 29, 2002 8:46 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] MySQL and images


In order to speed-up queries, it is suggested that you DO NOT store images
in the
database.  Rather, store the images in files and store file names in the
database.
- Original Message -
From: "John Meyer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 29, 2002 9:32 PM
Subject: [PHP] MySQL and images


Assuming that I have to for some unknown reason, are there any articles on
storing images in the database and retrieving them?


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

2002-10-30 Thread John Meyer
When retrieving an array from $_POST, which is the right way:

$arrInterests = $_POST["interests[]"];

or 
$arrInterests = $_POST["interests"];

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




RE: [PHP] array question

2002-10-30 Thread John Meyer
Either way, I'm not getting the interests.

-Original Message-
From: Rick Emery [mailto:remery@;emeryloftus.com]
Sent: Wednesday, October 30, 2002 9:34 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] array question


What happened when you tried both methods?

- Original Message - 
From: "John Meyer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 30, 2002 10:29 AM
Subject: [PHP] array question


When retrieving an array from $_POST, which is the right way:

$arrInterests = $_POST["interests[]"];

or 
$arrInterests = $_POST["interests"];

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

2002-10-30 Thread John Meyer
Do I get a cookie for passing this test?

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




[PHP] Changing the key

2002-10-31 Thread John Meyer
How do I change the key in an array without having a duplicate key=>$value?

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




[PHP] using mysql_field_type to disginguish between a blob and a text field.

2002-10-31 Thread John Meyer
I've recently found out that mysql returns blob for both blobs and text
fields.  Now, how do I distinguish between the two?


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




RE: [PHP] SQL>Insert and recover the ID

2002-10-31 Thread John Meyer
use mysql_insert_id().  Much more reliable when and if you use the system
with more than one person inserting at the same time.

-Original Message-
From: Christian Ista [mailto:mailing-list@;istasofts.com]
Sent: Thursday, October 31, 2002 2:12 PM
To: [EMAIL PROTECTED]
Subject: [PHP] SQL>Insert and recover the ID


Hello,

In a table, I have some fields and the primary key is an autoincrement
field. I insert an row and I'd like to recover the ID used for the last
record I inserted.

For the moment, I do a select max(Id) just after the insert but there
is, my be a best way to do it.

Thanks for your help

Christian,



--
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] regular expression question

2002-11-01 Thread John Meyer
I've got a regexp:

(EV[0-9]{2})!([0-9]{4}-[0-9]{2}-[0-9]{2})!(GR[0-9]{2}).txt


My question is, will it match this:


EV01!2002-11-09!VR01!GR01.txt



And anything formatted like this: (EV02, and so forth).

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




[PHP] image submit buttons

2002-11-04 Thread John Meyer
(isset($_POST["Submit"])) is this the way to check a submission image to see
if it's been set?


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




[PHP] Extracting first eight characters of a string

2002-11-07 Thread John Meyer
How do I extract only the first eight characters (alpha-numeric) in a string.

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




RE: [PHP] Extracting first eight characters of a string

2002-11-07 Thread John Meyer
how about this:

$cutstring = substr(preg_replace("\W","",$originalstring),0,8);


-Original Message-
From: Adam Voigt [mailto:adam@;cryptocomm.com]
Sent: Thursday, November 07, 2002 8:10 AM
To: John Meyer
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Extracting first eight characters of a string


Umm, this won't check, only blindly pull the first 8, but:

$cutsring = substr($originalstring,0,8);

Adam Voigt
[EMAIL PROTECTED]

On Thu, 2002-11-07 at 10:06, John Meyer wrote:
> How do I extract only the first eight characters (alpha-numeric) in a
string.
>
> --
> 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 and JavaScript

2002-11-07 Thread John Meyer
On a PHP event, does the onLoad event in a document run before or after the
page is parsed, created, and sent to the user?


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




RE: [PHP] " getting changed to \" when pulled from a

2002-11-07 Thread John Meyer
That's probably the way that you want it to be, if you're inserting the data
into a database.  When you retrieve it, you use stripslashes().


-Original Message-
From: Brandon Orther [mailto:orther@;webintellects.com]
Sent: Thursday, November 07, 2002 1:16 PM
To: PHP User Group
Subject: [PHP] " getting changed to \" when pulled from a 


Hello,

When trying to save data from a form, the quotations (") get change to
(\")

Is there a function that will fix this?


Brandon Orther
WebIntellects Design/Development Manager
[EMAIL PROTECTED] 800-994-6364
www.webintellects.com 




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




RE: [PHP] " getting changed to \" when pulled from a

2002-11-07 Thread John Meyer
yep, mea culpa, just thinking of MySQL.

-Original Message-
From: Marco Tabini [mailto:marcot@;inicode.com]
Sent: Thursday, November 07, 2002 2:25 PM
To: John Meyer
Cc: Brandon Orther; PHP-General
Subject: RE: [PHP] " getting changed to \" when pulled from a 


That's not "necessarily" true--if you're using MSSQL quotes are escaped
with quotes, I think.


Marco
-- 

php|architect - The magazine for PHP Professionals
The first monthly worldwide  magazine dedicated to PHP programmer

Come visit us at http://www.phparch.com!



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




[PHP] What am I missing with this code?

2002-11-08 Thread John Meyer
for($i=1;$i<13;$i++) {
?>
 ()


All it's printing out is "November" and "December", even though the month is
incrementing.


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




[PHP] DHTML and PHP

2002-11-08 Thread John Meyer
I want to get the top layer to appear right on top of where the other two
are.  How do I do this?

  " style="visibility: visible; zIndex:1">');show('layerhide');show('ViewFullProfile');hide('More')">Want
to know more about me? Click here!
  
  
  " 
style="visibility:hidden;
z-index:-1;">">Want
to view more, click here to
view

  " style="z-index:-1;
visibility:hidden">');hide('layerhide');hide('ViewFullProfile');show('More')">Not
interested, click here to hide


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




RE: [PHP] How good is PHP to ASP?

2002-11-10 Thread John Meyer
First off, I wouldn't go comparing one language to another as "better" (a
jihad has broken out on another list between Perl and PHP, substituting
belief for anything remotely resembling a civilized and intelligent
discussion), but if you want to convince them about the merits of PHP, look
up the news stories about Yahoo abandoning its own  proprietary language for
PHP.  Also, if any of your clients have experience with Perl, you can use
the comparison about regular expression handling there.  You can also refer
to http://www.php.net/usage.php for a description of the popularity of PHP.

-Original Message-
From: Wee Keat [Amorphosium] [mailto:weekeat@;amorphosium.com]
Sent: Sunday, November 10, 2002 6:42 PM
To: PHP [General]
Subject: [PHP] How good is PHP to ASP?


Hi all,

I'm not too sure if this is the right place to get my answers but I really
need to know this:

How can I convince my clients that PHP is really good? I mean not a lot
of non-programmers have heard of PHP language. Most of them only heard of
things like C/C++, ASP and the like. So, how can I prove to them that PHP is
a much better language to use?
Can anyone point me to the right resources for me to show and prove to
my clients?
Thanks a lot and sorry if this is the wrong place to ask this question.


Yours,

Wee Keat Chin

---
"Don't find a fault; find a remedy"


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




[PHP] tag

2002-11-10 Thread John Meyer
I'm doing some PHP work, and I've come across the  tag.  What, exactly,
is this?


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




RE: [PHP] tag

2002-11-10 Thread John Meyer

Actually, it's a product of Microsoft Frontpage that a client sent me.
-Original Message-
From: John W. Holmes [mailto:holmes072000@;charter.net]
Sent: Sunday, November 10, 2002 9:33 PM
To: 'John Meyer'; [EMAIL PROTECTED]
Subject: RE: [PHP]  tag


> I'm doing some PHP work, and I've come across the  tag.  What,
> exactly,
> is this?

It is probably just a typo for an  tag. It's nothing that PHP would
create on its own.

---John Holmes...



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

2002-11-11 Thread John Meyer

I never do well on tests.  Always forget my pencil.

-Original Message-
From: James Johnson [mailto:james@;owell.com]
Sent: Monday, November 11, 2002 11:23 AM
To: [EMAIL PROTECTED]
Subject: [PHP] test


test



-- 
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] Curl and post

2002-11-11 Thread John Meyer
I need to send a post array to another page.  How do I do this using CURL?

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




[PHP] redirecting a user to a page after a password popup

2002-11-12 Thread John Meyer
Hi, I'm generating a 401 header for a few pages, and if they click cancel, I
want to send them to a 401 page.  How do I do this?  I've tried a header
after those headers, but that just redirects them automatically.


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




[PHP] multiple forms on the same page

2002-11-13 Thread John Meyer
hi,
I have multiple forms on a page that refers to itself on the action.  The
only difference is that one has one extra field.  The two have every other
name in common.  Will this be difficult to handle?


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




[PHP] Is there any way to resize an image?

2002-11-13 Thread John Meyer
Basically, my question for PHP.  Anything in the libraries that can do that?

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




RE: [PHP] Converting String to Variable

2001-03-03 Thread John Meyer

Here's my question: why do you want to do this, and is there a better way to
do this, say a hash list or something?


BTW, isn't monday defined as a constant that always equals "blah!"  It
always has for me.

-Original Message-
From: Randy Johnson [mailto:[EMAIL PROTECTED]]
Sent: Saturday, March 03, 2001 9:44 AM
To: Ernest E Vogelsinger; Randy Johnson
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] Converting String to Variable


it may look weird but that is the way it needs to be done. here is a better
example

$str=myfunct()  this returns monday

then i want the monday to turn into this

$monday

so i can do this

$monday="BlaH";

thanks

randy


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




Re: [PHP] last inserted record

2001-03-07 Thread John Meyer

Assuming that you do have a primary key, how can you grab the last record
you inserted?  Can you use @@IDENTITY, or something like that?
"Christian Reiniger" <[EMAIL PROTECTED]> wrote in message
01030310383101.00589@chrisbig">news:01030310383101.00589@chrisbig...
On Saturday 03 March 2001 05:16, you wrote:

> i'm having a little bit of problems with a little mysql table i'm
> using. the table has no primary key nor index nor nothing.
>
> i was wondering if it's possible to select the last inserted record of
> a table with this characteristics.

Add a primary key. now. Accesses without that will be painfully slow.

--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)

"These are the people who proudly call themselves "hackers" --
not as the term is now abused by journalists to mean a computer
criminal, but in its true and original sense of an enthusiast,
an artist, a tinkerer, a problem solver, an expert."

- ESR

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




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




[PHP] script output doesn't show up

2001-03-12 Thread John Meyer

Here is the code

  
   
   

Problem is that the script output doesn't show up.  Any idears?



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




[PHP] Variable variables

2001-03-13 Thread John Meyer

Okay, I read about this feature in the php manual.  What I can't figure out
is why in the world would anybody want to use this feature?  Not to start a
flame war, just would like an explanation of why this feature is useful.



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




RE: [PHP] Variable variables

2001-03-13 Thread John Meyer

Okay, that makes a little sense, but isn't there some sort of collection
that will do the same thing (coming from vb).

-Original Message-
From: Jason Stechschulte [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 13, 2001 6:38 AM
To: John Meyer
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Variable variables


On Tue, Mar 13, 2001 at 06:36:10AM -0700, John Meyer wrote:
> Okay, I read about this feature in the php manual.  What I can't figure
out
> is why in the world would anybody want to use this feature?  Not to start
a
> flame war, just would like an explanation of why this feature is useful.

I've really only used them once, but they were handy for that situation.
I had a column in a mysql table that was a set column of user
privileges, and I wanted to register every value in the set as a session
variable.


for($i = 0; $i < sizeof($privs); $i++) {
   $$privs[$i] = 1;
   session_register($privs[$i]);
}



--
Jason Stechschulte
[EMAIL PROTECTED]
--
I surely do hope that's a syntax error.
 -- Larry Wall in <[EMAIL PROTECTED]>


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




RE: [PHP] Good Free PHP Editor?

2001-03-13 Thread John Meyer

Actually, I picked up htmlkit when it was mentioned in this group and it's
just as good as Visual InterDev, in my opinion.

-Original Message-
From: Jens Nedal [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 13, 2001 6:58 AM
To: Angerer, Chad; 'Simon Garner'; Boget, Chris;
[EMAIL PROTECTED]
Subject: Re: [PHP] Good Free PHP Editor?


About good editors with FTP inbuilt on the Windows side. Most of the FTP
features are crap! Completly. The only Editor i know that works good with
its inbilt FTP feature is BBEdit, but that again is another platform.

BUT if you want a good combination on Windows side you could use Ultraedit
and FTP-Netdrive. That programm maps FTP-Host to your Explorer and does all
teh upload etc. So you just open and write and thats it. No messing around.

regards, Jens

on 12.03.2001 21:48 Uhr, Angerer, Chad at [EMAIL PROTECTED] wrote:

> Yes I use it with NT and run into occasional memory management problems as
> well.  It is a great editor but has small issues that really can annoy a
> person.  Also the FTP engine blows.  It can be most unpredictable.
>
> Chad
>
> -Original Message-
> From: Simon Garner [mailto:[EMAIL PROTECTED]]
> Sent: Monday, March 12, 2001 2:43 PM
> To: Boget, Chris; [EMAIL PROTECTED]
> Subject: Re: [PHP] Good Free PHP Editor?
>
>
> From: "Boget, Chris" <[EMAIL PROTECTED]>
>
>>> HomeSite is great. www.allaire.com
>>> - not totally free I'm afraid, but there is an eval version.
>>> - runs under Windows yes
>>> - supports syntax highlighting for lots of languages
>>> including HTML, PHP,
>>> Perl, SQL, ASP (VB/JS).
>>> - can edit multiple files yes
>>> - shows line numbers in gutter on left hand side
>>> - supports regular-expression based search & replace across multiple
>>> files/directories
>>> - nice interface.
>>
>> Has the worst memory management of any software I've ever used.
>> I have to reboot at lest 10 times a day when I use it.  The support
>> forum on their site is filled with complaints on this issue.  Their
> response
>> to this issue was not to fix the memory leak (or whatever it is) but to
>> issue a warning when resources are getting dangerously low to give
>> you the opportunity to save all your work before you reboot.  Beyond
>> that, their stance is "Well, if you don't like it, return it and we'll
> give
>> you a refund".
>> If this wasn't the only piece of software that handled projects the way
>> we needed, we'd have thrown out this piece of garbage software a *long*
>> time ago.
>>
>> Chris
>>
>
>
>
> Running under Win2K I can have HomeSite 4.5.1 open for weeks, working on
10+
> files, without any problems whatsoever.
>
> However, I used to run it under Win98 and it would crash 1-2 times per
> day...
>
>
> Regards
>
> Simon Garner
>


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


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




Re: [PHP] Re: PHP vs. ASP

2002-01-10 Thread John Meyer

Just a couple of thoughts here:

1.  Now() outputs the date, so ASP does have that.
2.  I hate the concept of saying that one of these products is "superior" to
the other.  Why not just lay out the technical points of both, and let the
reader decide.  I'm okay with somebody choosing ASP (or PHP) as long as they
are basing it on the facts and there particular needs; what I don't like are
advocates (read a**holes) turning this into a heated debate devoid of any
facts or basis in reality. BTW, I use both and have used both.  I'm more
concerned with results, not egos.



John Meyer
Q:  What do you do if your linux server crashes.
A:  First, find a candle...*G*
> Original Message Follows
> From: Mike Eheler <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: [PHP] Re: PHP vs. ASP
> Date: Wed, 09 Jan 2002 10:57:27 -0800
>
> Well being a former ASP programmer and a current PHP programmer I think
> I can help you there.
>
> The key point is ease of use. PHP provides far more functionality than
> ASP (try finding a function to print out the date in ASP.. yeah, I
> thought so), while at the same time giving you access to low-level areas
> of the language so that you can really make it do whatever you want.
>
> Oh yeah, and it's OpenSource. Make it do what you want, and if that
> doesn't suit your fancy, then change it :)
>
> ASP costs  -- the server (be it Windows or Unix-based) is gonna cost
> ya, any extensions to do more advanced things (such as creating images
> on the fly) is gonna cost ya.. cost cost cost.
>
> With ASP I was constantly running into roadblocks because of the way it
> works. Let's take form submission.. or beyond that.. uploading FILES.
> You can do it the long, hard way (write your own MIME handler and parse
> the incoming binary data), or the easy way (shell out $$$ to pay for a
> "professional" activex com object to do the job for you).
>
> And if that wasn't enough. ASP is just plain slower.
>
> Well, that's my 2 cents. There's plenty of more points that could be
> said, but I think this should give you some good arguments to start with.
>
> Mike
>
> Jake wrote:
>
> >Hello there, I need some help.
> >
> >I have to do a technical report(about 2200 words) comparing PHP to ASP.
I
> >have already decided to make PHP the winner becasue it is superior.  But
I
> >am kinda stumped on what areas to compare the two.
> >
> >If you could help me out in suggesting some possible areas of comparison.
> >Keeping in mind that I need about the same amount of info on both PHP and
> >ASP.  Also if you could point me in the right direction by including some
> >web links that deal with the topic.
> >
> >Thank You,
> >Jake
> >
> >
> >
>
>
> --
> 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]
>
>
> _
> Get your FREE download of MSN Explorer at
http://explorer.msn.com/intl.asp.
>
>
> --
> 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]


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




Re: [PHP] mailing to 19000 users

2002-01-27 Thread John Meyer

How about croning the job and splitting up the load as you go.
- Original Message - 
From: "Mostafa Al-Mallawani" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, January 27, 2002 11:23 PM
Subject: [PHP] mailing to 19000 users


> hi, does anyone know how to send mail to 19000 users using the mail()
> function, I need to create a mailing list of this number of users and
> looping on 19000 users takes up a heck of a lot of resources...any
> solutions? thanks.
>  
> 


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




Re: [PHP] php vs asp

2002-01-28 Thread John Meyer

You can use ASP with Mysql, as long as you have myodbc installed on your
machine.  For me, ASP has been a bit slower, but you can still use it.
- Original Message -
From: "liz lynch" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 28, 2002 7:14 AM
Subject: [PHP] php vs asp


can someone tell me whether or not asp can be used with mysql and is there
any drawbacks to using it as opposed to php



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




Re: [PHP] Php is serversided????

2002-02-14 Thread John Meyer

Two ways this is possible:
1.  The user has selected an item and hit the submit button, thereby sending
everything to the server and it is working there.
2.  The user comes in from a different link, different server, or has a
cookie on their machine.
- Original Message -
From: "Morten Nielsen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 13, 2002 12:56 PM
Subject: [PHP] Php is serversided


> Hi,
> I don't understand...
> Everybody says PHP is server based, so everything is calculated before the
> user sees it in his browser. But if that is the case how is it then
possible
> to use if-statements. Wouldn't that mean that the if-statement has been
> executed before the user makes a selection?
>
> Please explain it to me,
> Morten
>
>
>
> --
> 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] Re: Lists are back up

2001-06-18 Thread John Meyer

At 12:15 PM 6/18/2001 -0700, Rasmus Lerdorf wrote:
>We have re-enabled the PHP mailing lists.  They are now running from a
>temporary machine sitting on the floor of my spare bedroom.  A more
>permanent home is in the works.
>
>-Rasmus

Does this also refer to the news server?


John Meyer
[EMAIL PROTECTED]
Programmer


If we didn't have Microsoft, we'd have to blame ourselves for all of our 
programs crashing




Re: [PHP] Is there a user group in Colorado?

2001-06-22 Thread John Meyer

At 11:24 AM 6/22/01 -0600, Unni wrote:
>Is there a user group in Colorado?
>
>Thanks
>

If there is one, I'd like to be a part of it.


John Meyer
[EMAIL PROTECTED]
Programmer


If we didn't have Microsoft, we'd have to blame ourselves for all of our 
programs crashing


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




Re: [PHP] Percentages

2001-06-24 Thread John Meyer

On Sun, 24 Jun 2001, David Robley wrote:
> On Mon, 25 Jun 2001 12:04, Tim Thorburn wrote:
> > Hi,
> >
> > Working on a site that needs some billing information.  Once upon a
> > time done in ASP where we had the option to use the FormatPercent
> > command - is there an equivalent command within PHP?
> >
> > Using PHP 3.0.16
> 
> Stab in the dark as I dunno exactly what FormatPercent does - 
> number_format, printf or sprintf.


Takes a decimal number and formats it as a percentage.

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




Re: [PHP] How to prevent people from downloading images

2001-07-03 Thread John Meyer

On Tue, 03 Jul 2001, [EMAIL PROTECTED] wrote:
> rodrigo <[EMAIL PROTECTED]> writes:
> 
> > I need a way to prevent the download of some images in a web page. I
> > also require that these images be presented within the web page. That
> > is, I don' want them to be displayed in another window. They should
> > remain embedded in the web page along with the rest of the page
> > elements.

I've seen a neat trick in ASP (*boo* *hiss*) where you could take the image,
and binary write it out to the web page as the src.  Could that be done here?

Or another trick might be to show them a low res version of the graphic, then
require payment before you give the the high res one.

---
John Meyer
[EMAIL PROTECTED]
Programmer

Those who sacrifice liberty for security deserve neither -- Ben Franklin

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




RE: [PHP] How to prevent people from downloading images

2001-07-04 Thread John Meyer

On Wed, 04 Jul 2001, ..s.c.o.t.t.. wrote:
> there are two answers to this:
> 
> 1) it cannot be done.  as long as that image is on the person's
> computer screen, it is physically impossible to prevent that
> person from saving the image and using it.
> (a simple tap of the "print screen" will take a screenshot
> on windows machines, as someone else mentioned)

Agreed, but how about only showing a very small image.  Large enough for them
to know what it is, but not large enough that saving it would do them much good.

--  
John Meyer
[EMAIL PROTECTED]
Programmer

Those who sacrifice liberty for security deserve neither -- Ben Franklin

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




Re: [PHP] Problem writting to file...

2001-07-06 Thread John Meyer


>   "James Bartlett" <[EMAIL PROTECTED]> wrote:
>   Hi,
> 
>   I'm trying to write data to a file but for some reason it will not store numbers
>in the file...Here's the code I'm using...(as an example)
> 
>  $fp = fopen("./data.txt", "w+");
>   $counter = 0;
>   while ($counter <6)
>   {
>   fwrite($fp, $counter . "\n");
>   $counter = $counter +1;
>   }
>   fclose ($fp);
>   ?>

Is it writing anything out?
-- 
John Meyer
Programmer
[EMAIL PROTECTED]

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




[PHP] foreach loop

2001-07-07 Thread John Meyer

When I go through a foreach loop, are the values of the individual items in 
the array changed?
For instance:
$variables = array($author_firstname, $author_lastname, $author_dob, 
$author_dod, $author_bio);
  foreach($variables as $value) {
 $value = strip_tags($value);
 $value = 
AddSlashes($value);
  }
will the values be changed outside of the loop?

John Meyer
[EMAIL PROTECTED]
Programmer


If we didn't have Microsoft, we'd have to blame ourselves for all of our 
programs crashing


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




Re: [PHP] Global Variables -- why not have them?

2001-07-07 Thread John Meyer

At 02:55 PM 7/7/01 -0400, Mitch Vincent wrote:
> I've been using PHP for several years now and one question has plagued
>me the entire time. Why doesn't PHP have global variables? Before someone
>says it, I do know PHP sort of does have global variables, but having to
>specify GLOBAL in any function I want to see that variable in disqualifies
>it from being a truly global variable IMHO..
>
> I suppose I'm more curious than anything else.. Thanks!
>
>-Mitch
>

I don't know what the makers of PHP had in mind, but from my experience, 
having truly global variables is a very bad idea.  In fact, you should be 
trying to limit your need of global variables, so that your program can 
count on the integrity of the variables.


John Meyer
[EMAIL PROTECTED]
Programmer


If we didn't have Microsoft, we'd have to blame ourselves for all of our 
programs crashing


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




[PHP] mysql_insert_id()

2001-07-07 Thread John Meyer

I have been reading about this function and I have a question. The PHP 
manual warns about using it if your AUTO_INCREMENT ID field is a BIGINT.  I 
am using type INTEGER.  Am I okay with this one, or should I use the MySQL 
function.

John Meyer
[EMAIL PROTECTED]
Programmer


If we didn't have Microsoft, we'd have to blame ourselves for all of our 
programs crashing


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




[PHP] arrays in forms.

2001-07-07 Thread John Meyer

Hi, I have a multi-select listbox set up like this:

Author (you are able to select more than one.Click 
here to add a new author):

" . 
$row["AUTHOR_FNAME"] . " " . $row["AUTHOR_LNAME"] . "";
  echo $option;
}
?>


I then have a bit of code that parses through and checks which authors they 
selected, if any.

if isset($author) {
 if is_array($author) {
 foreach($authors as $key=>$value) {
 $query = "INSERT INTO BYLINE(TITLE_ID, AUTHOR_ID) 
VALUES(" . $titleid . "," . $value . ");";
 mysql_auery($query) or die(echo mysql_error());
  }
 } else {
 $query = "INSERT INTO BYLINE(TITLE_ID, AUTHOR_ID) VALUES(" 
. $titleid . "," . $author . ");";
 mysql_auery($query) or die(echo mysql_error());
 }
}

What I'd like to know is, is this correct, incorrect, redundant, etc?

John Meyer
[EMAIL PROTECTED]
Programmer


If we didn't have Microsoft, we'd have to blame ourselves for all of our 
programs crashing


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




Re: [PHP] arrays in forms.

2001-07-07 Thread John Meyer


>
> mysql_auery($query) or die(echo mysql_error());

By the way, I know this line should be mysql_query



John Meyer
[EMAIL PROTECTED]
Programmer


If we didn't have Microsoft, we'd have to blame ourselves for all of our 
programs crashing


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




Re: [PHP] how can i creat a file and write a string to it!

2001-07-15 Thread John Meyer

At 06:27 PM 7/15/01 +0100, sunny AT wde wrote:
>i've been looking for an adequate answer all morning in the archives,
>
>   fwrite($file, $articletext);
>

Don't you have to do a fopen beforehand?


John Meyer
[EMAIL PROTECTED]
Programmer


If we didn't have Microsoft, we'd have to blame ourselves for all of our 
programs crashing


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




Re: [PHP] Example high-profile PHP sites

2001-07-26 Thread John Meyer

At 01:14 PM 7/26/2001 -0400, Maurice Rickard wrote:
>While I do appreciate people's contributions, let me frame the discussion 
>a little.  The person I need to convince is an administrator of an 
>organization within North America, and he's never heard of PHP.  The 
>response I'm hoping to provoke in him is something like this:  "You mean 
>_ is using this PHP thing?  Wow!  They know what they're doing, so 
>we'd better use it, too!"
>
>Does this help frame things?  Thanks for the suggestions!
>
>-Maurice

I'd probably suggest using more of a "What PHP can do" tactic rather than 
"Who's using PHP".  I'm sorry, but the latter tactic seems like a jumping 
on the bandwagon approach.


John Meyer
[EMAIL PROTECTED]
Programmer


If we didn't have Microsoft, we'd have to blame ourselves for all of our 
programs crashing


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




Re: [PHP] Why can't this code display my result?

2001-08-09 Thread John Meyer

Could you please give us some error messages, please?

>$connect = mysql_connect("localhost","user_name","password");
>   $select_data = mysql_select_db("ardani_cd_collection");
>   $query = "SELECT * FROM main where description = '$song_title'";
>   $result = mysql_query($query);
> 
>   while($row = mysql_fetch_row($result))
>   {echo " border='1'>","","",$row[1],"","",$row[2],"","",$ro
> w[3],"","",$row[4],"","",$row[5],"","","
> ";}
> ?>

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




[PHP] Dealing with a file

2001-08-13 Thread John Meyer

I haven't had much experience with dealing with uploaded files.  Are there 
any links that would help me to deal with these files using PHP from a 
server-side.


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




[PHP] Code works fine on Apache, but not on PWS.

2001-08-14 Thread John Meyer

Instead of posting the code, I'll give you the link:

http://www.phpbuilder.com/columns/bealers2904.php3?page=1


Short and long of it is the subject line.


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




Re: [PHP] problem with a hacker

2001-08-16 Thread John Meyer


>I'm currently running my site on a win2k server, I'm using PHP for my tag
>board.  Today a hacker managed to overwrite the text file I was using to
>store all the messages, which really isn't that big a surprise considering
>the permissions to the folder it is kept in are wide open thanks to my
>hosting company.


 You must hunt this scum down and cut out his guts using only a 
flint rock and some string

 Or this that the rite for manhood?


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




Re: [PHP] Printf fails on large files

2001-08-17 Thread John Meyer

At 05:14 PM 8/17/01 -0300, Inércia Sensorial Trabalhando wrote:
>   Hi All,
>
>   A friend of mine said his printf is failing when he parses a variable from
>a 4.5 mega file. On smaller files, it works fine.
>
>   There's a limit on the printf or somewhere else?
>
>   Thanks.


Is he throwing the _entire_ 4.5 MB file into that variable and trying to 
print that?


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




Re: [PHP] Protecting include files

2001-08-18 Thread John Meyer

At 08:26 PM 8/18/01 -0700, Rasmus Lerdorf wrote:
>
> Order allow,deny
> Deny from all


BTW, .inc files can include PHP code that is executed, right?


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




Re: [PHP] Checking FTP server response

2001-08-20 Thread John Meyer

At 03:03 PM 8/20/01 -0700, CC Zona wrote:
>To test for a valid http address, I open a socket, pass a HEAD or GET
>request, and look for a status code in the response headers.  What should I
>send to an FTP server to do a similar test?

Why not just try and connect to it?


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




Re: [PHP] php-counter

2001-08-22 Thread John Meyer

At 05:49 PM 8/22/01 +0200, you wrote:
>hi!
>
>do you know an easy-to-use-php-counter, which uses mysql to store the data?
>
>gert


Not off hand, but I could probably program one within the day.


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




Re: [PHP] help with php mysql and images...

2001-08-22 Thread John Meyer

A couple of things:

1.  ASP is not dumb.  It was just written by Microsoft.  Seriously, though 
I'd learn both, it would make you much more marketable.
2.  First off, create the database.  Then ask yourself what are the steps 
that you have to go through.  What your probably looking at right now is 
selecting the information off of the database and reporting it.

I'd _definitely_ think about sitting down with the MySQL manual and the PHP 
manual, both of which are availible free.  Also, look for a good MySQL/PHP 
book (my favorite is "MySQL/PHP Database Applications", by Jay Greenspan 
and Brad Bulger).  You have some work ahead of you, but not a lot.

At 10:09 AM 8/22/01 -0700, you wrote:
>Don't know if this is the place to ask this, but I'll find out soon.
>I'm trying to create a database in mysql that will hold information
>About users, it will hold the path to a picture, and it will resize
>Images on a page... sorry that's a really blunt description.
>
>A user will goto this certain page...
>they bring up the page and the page it self, coded in php, will
>pull out of the database, the names of everyone that is registered
>to this certain page.  It will list it all in alphabetical order.
>
>For anyone interested... the page I'm working on is here...
>http://www.hypoparathyroidism.com/gallery.asp
>I am having trouble figuring out how to do it, I'm new to mysql
>And php actually... I just started learning it about a month ago
>But I've done some pretty impressive stuff for php.  I guess
>I just need some ideas on how to go about doing this project.
>
>Going to that page will help you figure out what I have to do.
>You see the guy that programmed that page before, did it all
>In asp.  And I don't know anything about asp, and I was told
>Not to learn anything about asp because it is "dumb" (no offense
>To anyone intended)
>
>Any help appreciated...
>mike
>
>
>
>
>--
>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]


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




Re: [PHP] strange error

2001-08-22 Thread John Meyer

At 03:12 PM 8/22/01 -0400, you wrote:
>Hi,
>
>I get an error message which I can't figure out.
>
>Its a Parse error: on line 142 which is the last line of the page containing
>absolutly no code. The last line of code is simply ..Did
>anyone have a similar experience? Can anyone help me out please?


Try to post some code, particularity the lines that come just before line 
142.  A parse error usually means that something on the previous line is 
wrong, at least, that's been my experience.


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




Re: [PHP] Any point in learning ASP/JSP etc?

2001-08-22 Thread John Meyer

At 01:10 AM 8/23/01 +0100, you wrote:
>Or is PHP the be-all and end all?
>
>I know its strong points, but what are the WEAK points of PHP?
>
>- seb


PHP isn't default on Microsoft systems
You have to learn a new language for PHP: ASP is basically either VBScript 
or JScript around some objects.
To answer the question in your subject line, I think that if you were 
interested in programming, you should want to learn any new technology that 
you could.  Plus, the more languages, the more employable, I would think.


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




RE: [PHP] Any point in learning ASP/JSP etc?

2001-08-22 Thread John Meyer

At 01:29 AM 8/23/01 +0100, you wrote:
>Ah ha, but am I better off becoming a PHP guru or a
>jackofalltrades-notverygoodatanyofthem kind of person ;-)


I don't know.  I've learned both PHP and ASP, and neither of them have 
decreased the other in terms of learning.
The fact is, you are going to learn what you are going to learn.  If you 
want to go with PHP only, that's your choice.



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




Re: [PHP] RE: What development environment do you use for PHP?

2001-08-27 Thread John Meyer

At 01:21 PM 8/27/01 -0700, you wrote:
>I keep my web documents in a CVS repository on a Linux box, and use WinCVS
>(GNU) to check files in and out on my WinNT desktop.  I use ConTEXT
>(freeware) for editing.   Documentation and help are always available at
>php.net and google.com.  I have an Apache 'staging' server, and to keep the
>document tree up to date with the CVS repository I run a cron job that
>performs 'cvs update -d' every five minutes from the server document root.


Where do you get WinCVS , by the by?


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




Re: [PHP] PWS

2001-08-28 Thread John Meyer

At 07:27 AM 8/28/01 -0700, you wrote:
>I have installed PHP CGI 4.0 on my Win 98 machine with
>PWS and tried this script that I put in the wwwroot
>directory and called test.php3:
>
>I called the page from my browser like this:
>
>http://localhost/test.php3


Why not just name the page test.php?


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




RE: [PHP] What does PHP stand for?

2001-08-28 Thread John Meyer

At 05:15 PM 8/28/01 +0228, you wrote:
>It's actually a recursive acronym, like GNU:
>
> From the manual:
>
>"PHP, which stands for 'PHP: Hypertext Preprocessor', is an HTML-embedded
>scripting language."
>
>J


Am I making things up, or Did it stand for Perl Hypertext Preprocessor at 
one time?


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




[PHP] Suppressing error messages

2001-08-29 Thread John Meyer

It seems to have slipped me little mind, but how do you suppress error messages?


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




[PHP] Posting to oneself

2001-08-29 Thread John Meyer

Two questions:
1.  Can I tell a form to post to itself without specifying the name of the 
web page?
2.  If I have a function on one page called by another, will this resolve 
correctly?


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




Re: [PHP] Posting to oneself

2001-08-29 Thread John Meyer

At 12:07 AM 8/30/01 +0200, you wrote:
>So sprach »John Meyer« am 2001-08-29 um 15:57:02 -0700 :
> > Two questions:
> > 1.  Can I tell a form to post to itself without specifying the name of the
> > web page?
>
>


I am getting this error:

Undefined variable: PHP_SELF


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




Re: [PHP] Posting to oneself

2001-08-29 Thread John Meyer

At 03:18 PM 8/29/01 -0700, you wrote:
>if you are within a function, try doing this first:
>
>global $PHP_SELF;


Tried that, same error.
BTW, FYI:
Apache 1.3.20 (Win32)


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




[PHP] determining the pixel width of a string

2001-08-30 Thread John Meyer

Is there anyway to determine the pixel width of a string?


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




[PHP] Is there anything in here that could be considered a parse error?

2001-08-30 Thread John Meyer

if (empty($DidSurvey[$p_surveyid])) {
  if (is_array($p_answers)){
foreach($p_answers as $value) {
error line-->  $sql = "INSERT INTO RESULTS(SURVEY_ID, ANSWER_ID) VALUES(" . 
$p_surveyid . "," . $value . ");";

mysql_query($sql);
}
 else {


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




Re: [PHP] File read Parser error

2001-08-30 Thread John Meyer

At 11:53 PM 8/30/01 +0200, you wrote:
>Gary wrote:
>>Can someone tell me why I am getting an error for the second line below. 
>>It works locally but not live.
>>   >$filename = "www/name/test/free.txt"
>>$toread = fopen($filename, 'r');
>>$contents = fread($toread, filesize($filename));
>>fclose($toread);
>>echo "$contents";
>>  ?>
>
>It would be useful if you would point out which error it is you are 
>encountering.


my guess would be that you need a semicolon on the first line.


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




Re: [PHP] Retrieve The Last Record in a Table

2004-07-27 Thread JOHN MEYER
Or you could retrieve that information prior to inserting the login 
information, say, as soon as they type in their login name, store that, then 
present it.

From: Jason Davidson <[EMAIL PROTECTED]>
To: Harlequin <[EMAIL PROTECTED]>
CC: [EMAIL PROTECTED]
Subject: Re: [PHP] Retrieve The Last Record in a Table
Date: Tue, 27 Jul 2004 08:17:19 -0700
You could LIMIT 2, using the order on a column, the first record would
be last, the second would be second last.  Kinda dirty way to do it,
however, off hand, cant think of an alternative, ill post it if i do
think of one though.
Jason
On Tue, 27 Jul 2004 09:59:21 +0100, Harlequin
<[EMAIL PROTECTED]> wrote:
> Thanks for that Jason
>
> Any suggestions on how I would retrieve the next to last entry...? The 
last
> time prior to this session that the user logged in...?
>
> --
> -
>  Michael Mason
>  Arras People
>  www.arraspeople.co.uk
> -
> "Jason Davidson" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>
>
> > as mentioned already, use a column in the table to order the query and
> > then use LIMIT to only to return one record. Best columns to use would
> > be an auto_increment or a datetime field type.
> >
> > Jason
> >
> > On Mon, 26 Jul 2004 18:27:25 +0100, Harlequin
> > <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > > I would like to retrieve the last entry in a login table and present
> that to
> > > a user so they can verify the date we have when they last logged in.
> > >
> > > Is this possible...?
> > >
> > > --
> > > -
> > > Michael Mason
> > > Arras People
> > > www.arraspeople.co.uk
> > > -
> > >
> > > --
> > > 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] reading MS Excel?

2006-12-28 Thread John Meyer
On a side note, but going on the basis that the users are uploading .xls
files and don't understand how to convert.  Would it be better to use
php's routines or to automate excel, convert it inside there, and then
use the result?
Leonard Burton wrote:
> On 12/28/06, Jiffy Slides Leonard Burton <[EMAIL PROTECTED]> wrote:
>> HI Will,
>>
>> > Is it possible to read Excel files and store the info to DB? If so how?
>>
>> It is best (well depending on the application) to save the files as
>> .csv and then use fgetcsv.  it will allow you to parse each line and
>> cell in the file and then go from there.
>>
>> Take Care,
>>
>> -- 
>> Leonard Burton, N9URK
>> [EMAIL PROTECTED]
>>
>> "The prolonged evacuation would have dramatically affected the
>> survivability of the occupants."
>>
> 
> 

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



Re: [PHP] Hello

2007-01-13 Thread John Meyer
Edward wrote:
> How do I create a php document so that people in my nonprofit can vote
> on issues online through the organization's website?
> 
> Thanks,
> 
> Edward
> 
Start with PHP, add MySQL or your database of choice, mix and prepare.
Serves 500+.

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



Re: [PHP] most powerful php editor

2007-01-21 Thread John Meyer
Dear god  Arnot, would you like to stand back for a moment and consider
how retarded those statements are, or would you like for me to do it for
you?

Whether you use a powerful IDE or not, you still have to use the same
compiler underneath.  In PHP, that "compiler" is the web server.  Unless
you buy an IDE that contains a mini-server for you to test the files,
yoru comparison between IDEs and word processors is ludicrous at best.

> 
> On Mon, 2007-01-22 at 01:22 +0200, Arno Kuhl wrote:
>> For me the analogy goes something like this: if you type the occasional
>> letter or note then Wordpad is perfectly adequate, but if your livelihood
> is
>> churning out professional well-formatted heavy-weight documents then it
> pays
>> you to invest in a top-class word processor and supporting tools. The same
>> goes for an IDE.
> 
> I think I just vomited in my mouth...
> 
> Yep, tastes like bile :|
> 
> Cheers,
> Rob.
> --
> 
> Hope you get over it :)
> 
> So you don't think EditPlus or UltraEdit or Notepad++ (some of the proposed
> editors that I consider "Wordpad"-type editors) would be a bit inadequate
> for more complex project developments? Some people who've never been exposed
> to a really good IDE think this is as good as it gets.
> 
> Arno
> 

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



Re: [PHP] most powerful php editor

2007-01-24 Thread John Meyer
Jochem Maas wrote:
> Curt Zirzow wrote:
>> On 1/20/07, Vinicius C Silva <[EMAIL PROTECTED]> wrote:
>>> hi everyone!
>>>
>>> i'd like to ask something maybe commonly asked here. what is the most
>>> powerful php editor?
>>
>> So now we have a 4 day thread of discussing nothing but, this is what i
>> use
> 
> let see if we can make it a full week :-P


If we want to argue about this, let's set a few guidelines as to what
"powerful" means.  I propose these guidelines

1. Syntax highlighting
2. Web server integration
3. Link checking
4. Browser check in the top three (Mozilla-IE-Opera)

Now maybe you disagree, maybe you agree.  I'd love to just use vi and
type away, but quite frankly I'm not that smart.  And if you have your
own guidelines, let's hear them.

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



[PHP] Problem outputting MySQL Date field

2009-08-28 Thread John Meyer
Is there anything special I have to do to output a mysql date field as 
text?  When I try to output it nothing appears on the web page.


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



[PHP] Converting URL's to hyperlinks.

2009-08-28 Thread John Meyer
What sort of function would I need if I wanted to convert those URLs 
from plain jane text?


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



Re: [PHP] Problem outputting MySQL Date field

2009-08-28 Thread John Meyer

Devendra Jadhav wrote:
No need to do anything special. It should display date as string. Can 
you provide little more information or code snippet?
$tweettable .= 
preg_replace('@(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?)@', 
'$1',$row["TWEET_TEXT"]) . "" . "Sent at: " . 
$rowqry["TWEET_CREATEDAT"];
   $tweettable .= "Sent Using: " . $row["TWEET_CREATEDBY"] . 
"";


And I checked the database.  The date is there.

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



[PHP] Re: [PHP-WIN] Re: [PHP] Problem outputting MySQL Date field

2009-08-28 Thread John Meyer

Keith Davis wrote:

But how are you getting the data from the db?

Does $rowqry represent a call using the mysql_fetch_array() function?


mysql_fetch_assoc()

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



RE: [PHP] שנה טובה!

2009-09-19 Thread John Meyer
Unfortunately, it doesn't look like we have a Hebrew mailing list.

-Original Message-
From: LuKreme [mailto:krem...@kreme.com] 
Sent: Saturday, September 19, 2009 2:51 PM
To: php-general@lists.php.net
Subject: Re: [PHP] שנה טובה!

On Sep 19, 2009, at 10:09, Dotan Cohen  wrote:

> ניצן, תזהר לא לכלול את תפוצות הדואר  
> כשאתה שולח דברים אלו. תודה.
>
> שנה טובה!

I think this is an English language list.

>

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


Re: [PHP] DailyWTF - Maybe I Needing Later

2009-12-23 Thread John Meyer

On 12/22/2009 9:10 PM, Daevid Vincent wrote:

http://thedailywtf.com/Articles/Maybe-I-Needing-Later.aspx
   



Read this, just loved it.  Moral of the story (though some may turn it 
racist or otherwise moronic): maybe hiring at the lowest possible bidder 
isn't always the best idea.


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



Re: [PHP] What's the best way to extract HTML out of $var?

2010-01-14 Thread John Meyer
On 1/14/2010 7:15 PM, alexus wrote:
> What's the best way to extract HTML out of $var?
> 
> example of $var
> 
> $var = "http://http://stackoverflow.com/"Stack Overflow"
> I want
> 
> $var2 = "http://starckoverflow.com/";
> example: preg_match();
> 
> what else?
> 

Actually what it looks like you want are the URLs, not the HTML. This
regular expression will match them up for you:

https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?

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



Re: [PHP] Re: MySQL ID -- what happens when you run out of range?

2010-01-25 Thread John Meyer

On 1/25/2010 1:19 PM, Nathan Rixham wrote:

Parham Doustdar wrote:

Hello there,
A friend called me today and was wondering what happens if the ID colomn of
an MYSQL database, set to autoinc reaches the int limit. Will it return and
begin choosing the ID's that have been deleted, or... what?


you change it to bigint before that happens :)

for a more accurate answer ask on the mysql forum?



Or the e-mail list: my...@lists.mysql.com (though I understand the 
cross-pollination)



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



Re: [PHP] REQUEST

2013-05-29 Thread John Meyer

Jim Giner wrote:

On 5/29/2013 5:45 PM, Tedd Sperling wrote:


PS: I think it probably best not to rise to the bait from people who 
forgot to turn off their cap's key.




You call it "bait"?  I call it stupidity.  Once no, more than once YES.



Why not both?

Cue cute taco shell girl.

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



Re: [PHP] strlen ?

2013-07-05 Thread John Meyer

Jim Giner wrote:
Trying to manage line breaks in some output I'm generating and using 
strlen to measure the lengths of the strings I'm printing. Discovered 
something strange (to me!) in that strlen is returning +1 more than it 
should.


The strings are from a query of my database - simple name fields. But 
everyone of them is coming back with a length that is one more than I 
see.


Ex.

Mike Hall  comes back as 10, not 9
F.B. comes back as 5, not 4.

I've looked at my data and counted the chars - there is no extra space 
at the beginning or end in my table.


Anyone have an explanation?


Does strlen count the line feed?

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



Re: [PHP] strlen ?

2013-07-05 Thread John Meyer

MOTS:  never take any input on faith.


Jim Giner wrote:

On 7/5/2013 3:02 PM, Stephen wrote:

On 13-07-05 02:50 PM, Jim Giner wrote:


Now the question is - how the heck did I put that in there? Certainly
not intentionally.  The data is captured from a d/e screen I wrote and
it simply grabs the post value and inserts a new record with that
value along with some other values.  And I don't see anything
concatenating a LF to my string.


Is this a browser being used for input? Never assume what a browser will
do.

It is good practice to validate and condition data before inserting into
a database.

Consider trimming the data before doing the INSERT.

I do validate my data by quoting it but I never expected to have to do 
a trim to remove a LF.  Especially on an iphone for input, since it's 
not easy to enter a LF.





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



Re: [PHP] Algorithm Help

2013-10-01 Thread John Meyer

On 10/1/2013 12:51 PM, Floyd Resler wrote:

Here's my task: A group of kids is going to be staying with different host 
families throughout the next 8 months.  The number of kids staying with a host 
family can range from 2 to 10.  When deciding which kids should stay together 
at a host family, the idea is for the system to put together kids who have 
stayed with each other the least on past weekends.  So, if a host family can 
keep 5 kids, then the group of 5 kids who have stayed together the least will 
be chosen.

I can't think of an easy, quick way to accomplish this.  I've tried various 
approaches that have resulted in a lot of coding and being very slow.  My idea 
was to give each group of kids a score and the lowest score is the group that 
is selected.  However, this approach wound of iterating through several arrays 
several times which was really slow.  Does anyone have any ideas on this puzzle?

Thanks!
Floyd


Whatever solution you're going with will probably involve a relational 
database of some sort.


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



[PHP] date difference

2004-07-15 Thread JOHN MEYER
Hello,
Is there a function to determine the difference between two dates?  I am 
asking so I can do some date verification for COPA.

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


[PHP] mysql connection question

2004-07-15 Thread JOHN MEYER
Hi,
For a long time, on all of my mysql pages, I've done something like this
$conn = mysql_connect($server,$username,$password) or die("Could not 
connect")
mysql_select_db($db);

I've finally put that into its own script file, moved it to my include 
files, and simply included it whereever I needed a connection.  My question 
is, could this get me into trouble if multiple people access the database at 
the same time?

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


Re: [PHP] separating strings from extensions

2008-02-17 Thread John Meyer

Daniel Brown wrote:

On Feb 17, 2008 5:37 PM, nihilism machine <[EMAIL PROTECTED]> wrote:
  

i am using this code to get the extension of a filename:

$extension = strtolower(strrchr($fileName,"."));

how can i get the text BEFORE the . (period)



You can STFW and RTFM.  This list should never be your first place
to ask simple questions.

In any case



  



Flame job aside, that's going to fail on a compound extension such as 
".tar.gz" by just returning .tar


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



Re: [PHP] separating strings from extensions

2008-02-17 Thread John Meyer

Børge Holen wrote:

On Monday 18 February 2008 00:10:30 John Meyer wrote:
  

Daniel Brown wrote:

On Feb 17, 2008 5:37 PM, nihilism machine <[EMAIL PROTECTED]> 
  

wrote:
  

i am using this code to get the extension of a filename:

$extension = strtolower(strrchr($fileName,"."));

how can i get the text BEFORE the . (period)


You can STFW and RTFM.  This list should never be your first place
to ask simple questions.

In any case


  

Flame job aside, that's going to fail on a compound extension such as
".tar.gz" by just returning .tar



so.

it.will.fail.this.one.to.txt 

and a fix would also fail because you would have to hardcord everygoddamn 
ending if thats what youre after. How many do you care to count for?
I would say stick with the last dot, if its not particulary often you stumble 
over those .tar.bz2 endings.
  



You could also stick with the first, i.e.:



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



Re: [PHP] how PHP is batter?

2007-07-03 Thread John Meyer
Muhammad Hassan Samee wrote:
> ASP.net VS PHP?
>
> how PHP is batter?
>

Without context that question is meaningless and only serves as troll bait.

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



Re: [PHP] Swear filter ideas

2007-07-03 Thread John Meyer
Richard Lynch wrote:
> Don't.
>
> Trying to solve a social problem with software hacks never works out
> well.
>
> :-)
>
>   

Taking the emotion out of this, if you wanted to catch any list of words
(the Esperanto dictionary, the words to that last song that got ground
into your head), how would you do it?  I agree unless you get a really
good fuzzy logic algorithm going, you're never going to be able to do it
100 percent.

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



  1   2   >