Need some help!
I will extract the email-address from the sender of an email:
$header = imap_header($link,1,0,1024);
$sender = $header->fromadress;
In the manual I read about from[] , personal, adl, mailbox, host!
How can I grab the contents of these fields?
But i will only ge
Need some help!
I will extract the email from the sender of an email:
$header = imap_header($link,1,0,1024);
$sender = $header->fromadress;
But i will only get the Realname of the sender!
How do I get his eMail?
--
**
* Jochen Kächel
On Fri, 19 Jan 2001, James McLaughlin wrote:
> I get an error when doing this
>
> class Something
> {
> var $something;
>
> function Something($this->something)
> {
> More somethings
> }
>
> }
>
> The error tells me that I need a ")" in the line the function call i
chagenbuFri Jan 19 21:39:26 2001 EDT
Modified files:
/php4/pear Makefile.in
Log:
install the various HTML/* files
Index: php4/pear/Makefile.in
diff -u php4/pear/Makefile.in:1.63 php4/pear/Makefile.in:1.64
--- php4/pear/Makefile.in:1.63 Sat Jan 13 0
php-general Digest 20 Jan 2001 05:22:21 - Issue 465
Topics (messages 35637 through 35780):
Integer division
35637 by: Todd Cary
35638 by: Boget, Chris
35680 by: Marcelo Gulin
Form Problems
35639 by: Karl J. Stubsjoen
i should have been clearer
35640
ibase_num_fields() isn't functional in php 4 - anyone have any ideas to
work around this ?
I'm checking the number of results for a query to check if a
user/password is correct -I suppose I could just do a fetch_row() on the
result and test if thats empty or not - but I'll only do that as a last
sniper Fri Jan 19 21:09:01 2001 EDT
Modified files:
/php4/ext/bz2 config.m4
Log:
Check that libbz2.(a|so) is >= 0.95 (has BZ2_bzerror)
Index: php4/ext/bz2/config.m4
diff -u php4/ext/bz2/config.m4:1.1 php4/ext/bz2/config.m4:1.2
--- php4/ext/bz2/config.
I'm trying to make it so I can download the image from a given URL and
rewrite it locally on the server. I can connect to the server and get the
image and display it. but as soon as I write it it doesn't work, I get
either an empty image or a string holder. The code is bleow. the hard coding
is ju
Ya know, I was afraid you were going to say something like that does
anyone know of anything like this that has been done? And does anyone know
where I can find a list of Search Engine IP adds?
BTW Jeremy, Thanks.
-Original Message-
From: jeremy brand [mailto:[EMAIL PROTECTED]]
Sent
I get an error when doing this
class Something
{
var $something;
function Something($this->something)
{
More somethings
}
}
The error tells me that I need a ")" in the line the function call is in. If I take
the "$this->something" it will parse fine. Can you not
Can anyone recommend a good FAQ, Q&A or Knowledge Base script written in PHP?
Preferably one with an administration section and a queue for questions to be answered.
Larentium
hirokawaFri Jan 19 18:59:59 2001 EDT
Added files:
/php4/ext/iconv EXPERIMENTAL
Log:
added: EXPERIMENTAL
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Please email me directly with your response. I am not subscribed to the list. Thankz
in advance.
- Original Message -
From: [ rswfire ]
To:
Sent: Friday, January 19, 2001 9:56 PM
Subject: PHP Parse MySQL Field???
I have a BLOB field in a MySQL database that I want to parse into m
I have a BLOB field in a MySQL database that I want to parse into my page using PHP.
For instance, in this field might be the following:
So when I access this field in PHP I want it to display "test".
Is this possible?
Can anyone tell me how to display both jpg and gif images. Basically,
what i've got is:
Now, I know I probably need slashes in there and I played around with it
but no luck. Where do I put them?
Thanks,
Mike
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL P
You are going to have to research the query string for each search
engine that you intend to support, and then parse it out.
for example: go to google. search for [jeremy brand], notice the
REQUEST_URI:
/search?q=jeremy+brand
In google's case, since they always use q=, you can parse this out.
Most likely but how do I strip it to determine the string of keywords?
Note to list: I cant depend on site logs.
-Original Message-
From: Michael Kimsal [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 19, 2001 7:33 PM
To: Dallas Kropka
Cc: PHP LIST
Subject: Re: [PHP] Another Guru's Help
Isn't this info in the HTTP_REFERER field normally?
Dallas Kropka wrote:
> I need to grab the referring search engines keywords used in the search. I
> need to be able to determine what the keywords were, and what the engine
> was... (Lycos, AltaVista etc...).
>
> How can I do this, where can I
Ok, I think I might have it installed correctly, but I'm not sure how to use
it. Does anyone have an example on how to create a calendar mailbox, create
a calendar event in that mailbox, and then list it? I think that might be
my problem. I might not be creating the calendar correctly.
thanks,
Do you have a LoadModule line to load the PHP module?
On Fri, 19 Jan 2001, Thomas Anderson wrote:
> I installed php4 and supposidly configured it with apache and mysql.
>
> When I go to a page with php in it it doesn't load it. Instead it
> automatically prompts me to download it. I know this ha
I installed php4 and supposidly configured it with apache and mysql.
When I go to a page with php in it it doesn't load it. Instead it
automatically prompts me to download it. I know this has to be an error on
my part and a common overlooked error on installation.
I did edit httpd.conf with the:
I need to simulate this effect: $array[$i] or \$something . $i, and have it
return $checkbox1 $checkbox2 etc. on up in a while loop.
Just doing it doesn't seem to work, but does anyone know of any work
arounds? Or just the keyword I should be looking for to search the manual?
I have a form bein
convert.php
";
$id=1;
$i=1;
echo "?? ?? $filename ?? ? ETNA";
if ($fp=fopen($filename, "r"))
{
while (!feof($fp))
{
$trimmed_line=trim($line=fgets($fp, 80));
if (strstr($trimmed_line, "Handle"))
{
$handle=substr($trimmed_line, 9, 4);
$trimmed_line=trim($line=fge
I need to grab the referring search engines keywords used in the search. I
need to be able to determine what the keywords were, and what the engine
was... (Lycos, AltaVista etc...).
How can I do this, where can I find info on this, or is there something that
will do this already that I can integ
It's after a variable called $LoggedIn.
You'll have to do:
echo "...are you logged in: ".LoggedIn()."";
hth
Chris Mulcahy
[EMAIL PROTECTED]
-Original Message-
From: Karl J. Stubsjoen [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 19, 2001 11:17 AM
To: PHP Mailing List
Subject: [PHP]
Wasn't a private mirror. =)
- Original Message -
From: <[EMAIL PROTECTED]>
To: Rasmus Lerdorf <[EMAIL PROTECTED]>; [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, January 19, 2001 3:44 PM
Subject: Re: [PHP] php.net's docs are down
> On Fri, Jan 19, 2001 at 0
Fraser,
Yes, you must set your LD_LIBRARY_PATH prior to running ldd. In a terminal,
export
LD_LIBRARY_PATH=/home/local/java/jdk1.2.2/jre/lib/i386:/home/local/java/jdk1.2.2/jre/lib/i386/classic:/home/local/java/jdk1.2.2/jre/lib/i386/native_threads
and rerun ldd libjava.so. If everything works,
best way is this.
if ($CID)
$query[] = "CID = '$CID'";
if ($CUserName)
$query[] = "CUserName = '$CUserName'";
if ($CAge)
$query[] = "CAge = '$CAge'";
if ($CEducation)
$query[] = "CEducation = '$CEducation'";
if (isset($query))
$query = "SELECT * FROM clients WHERE CID = '$CID
Why would this work in IE but not NN (4.08)?
If I remove "/" ".mydomain.com" it works with
NN but not IE. Vice versa if I leave it in.
Thanks,
-Brian
***
= 5) {
$val = 1;
} else {
$val = $ecb;
$val++;
}
} else {
$val = 1;
}
$expires = mktime(12, 00, 0
The session file is not empty :) the OBJECT portion of the session file
is empty. i.e. cat'ing /tmp/sess_whatever yields:
!OBJECT|
-jm
-Original Message-
From: Javier Muniz [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 19, 2001 3:57 PM
To: '[EMAIL PROTECTED]'
Subject: [PHP] Session
I am using the following function to add a serialized object to a
session:
function add_toCart($id,$array) {
session_register("OBJECT");
$c = new Configurator;
$c->readConfig($id);
$OBJECT = serialize($c);
header("Location: Cart.php");
echo "Redirec
On Fri, Jan 19, 2001 at 03:24:00PM -0800, Rasmus Lerdorf wrote:
> Which URL did you use? Looks like you were trying to get to the plain
> html version at http://www.php.net/manual/en/html/ and it seems to work ok
> for me.
Append in the include path a :../../include and it should work. It is a
c
At 13:48 18/01/01 +, jalist wrote:
>I'm trying to grab a string from within a string based on a matching word or
>phrase. Example...
>
>$string = "This is a string I need to grab the middle out of"
>$query_word = "need"
>
>I need to get x amount of characters either side of $query_word, so the
I tried the plain html, and the PHP manual online. The Annotated manual
was working okay.
They're all working now for me. *shrug*
-Szii
- Original Message -
From: Rasmus Lerdorf <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, January
Dear group,
i'm planning to change a javascript shoppingcart site to a PHP site.
For the javascritp shoppingcart it was convenient to have an index so i made
it with frames, menu on the left, content on the right, data automatically
updated to the index as soon as some field was unfocused.
I wo
original question jalist:
> > I'm trying to grab a string from within a string based on a matching word
> > or phrase.
In the middle of the night i was thinking hey, why not use a regexp,
look for the pattern word-space-word-space-SEARCHWORD-space-word-space-word
something like
$toshow =
Which URL did you use? Looks like you were trying to get to the plain
html version at http://www.php.net/manual/en/html/ and it seems to work ok
for me.
-Rasmus
On Fri, 19 Jan 2001, [EMAIL PROTECTED] wrote:
> Fatal error: Failed opening required 'shared.inc'
> (include_path='.:./include:../inc
I'm developing a site that requires people to sign up. During this time,
we get their name, email, city, etc. There is also optional informational
like (age, education) that they don't have to fill in.
Now, the problem we have is we allow people search through the database
using mostly the same
Aditionally you could create a ram disk with you php stuff, mount that in
/tmp/whatever read-write- and use that for your thttpd document root. May require root
access to mount the ramdisk, though.
On Friday, January 19, 2001, at 03:12 PM, Michael A. Peters wrote:
> I would use thttpd with php
Fatal error: Failed opening required 'shared.inc'
(include_path='.:./include:../include') in
/local/Web/sites/phpweb/manual/html/index.php on line 2
Peace, love, code.
-Szii
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-
I would use thttpd with php support compiled in, rather than a browser.
That way you could use whatever the browser on the users system was- more comfortable
for the user.
difficulty is what port to run the server at (well, one of the difficulties...) but
you could search for an unused unprivil
jason Fri Jan 19 14:55:41 2001 EDT
Modified files:
/php4 TODO
Log:
Desired functionality can be achieved with array_sum/array_count.
Index: php4/TODO
diff -u php4/TODO:1.107 php4/TODO:1.108
--- php4/TODO:1.107 Sun Dec 17 01:27:42 2000
+++ php4/TO
chagenbuFri Jan 19 14:55:23 2001 EDT
Modified files:
/php4/pear/Mail rfc822.php
Log:
remove a change that broke things, and removing an unused function.
Index: php4/pear/Mail/rfc822.php
diff -u php4/pear/Mail/rfc822.php:1.4 php4/pear/Mail/rfc822.
thats right you could do that, but it sucks. (IMHO)
$test->s0
$test->s1
$test->s2
for($c = 0; $c < 3; $c++)
{
$name = "s$c";
echo $test->$name;
}
but this is better, more modular.
$test->s[0]
$test->s[1]
$test->s[2]
foreach($test->s as $pos => $val)
echo $val;
with the second exa
You want to drop empty where clauses? This will work, although your
syntax will be wrong if $em is empty ( you will get an SQL syntax error
with the extra AND on the end ). You need a dummy clause after the where
clause to make things match up right, something that always returns true
like 1=1.
$
I'm getting the same problem on 2 machines, but I can't figure out what I'm
doing wrong.
OS is FreeBSD 4.2-STABLE i386
IMAP installed from port is imap-uw-4.5
For php4 (php4.0.4pl1) I'm doing:
/configure --with-apache=../apache_1.3.14 --with-mysql \
--with-imap=/usr/local/libexec/imapd --with-
heyesr Fri Jan 19 14:28:16 2001 EDT
Modified files:
/php4/pear/Mail rfc822.php
Log:
If extended format is in use and there are no groups, all the addresses are
now added to an empty group. Also changed the format of the output, an
array was being used un
Did you restart your web server after recompiling PHP?
Please be more specific on the steps that you did along the way (perhaps do
them again and copy and paste your command lines to the screen so we can see
exactly what you did). More often than not, people say "I followed all of
the steps in
> I don't like
> arrays, because then it requires a programmer to add dirty word...
You could probably make an addbadwords.php that loads the
filterbadwords.php, does some stupid PHP tricks(tm) to find the line that
defines the array, then writes the filterbadwords.php back out with the new
words
Put them in an array? PHP allows for variable variables, but I'm not sure they
work with classes.
This works:
$foo0 = 'a';
$foo1 = 'b';
$foo2 = 'c';
$foo3 = 'd';
$foo4 = 'e';
for($i = 0 ; $i < 5 ; ++$i)
{
$var = 'foo'.$i;
echo $$var;
}
Try it with an object...
--Joe
On Fri, Ja
ok, Ive got my code to work, but its a big jerry-rig haha. because I am
using mtime() (the last two chars are allways 00) I substr the last two
chars off, array_insersect() them, then add 00 the the end of all the values
in the result array. dumb eh.
Chris Lee
Mediawaveonline.com
"Chris Lee" <
Yep.
ldd libjava.so produces:
libhpi.so => not found
libnsl.so.1 => /lib/libnsl.so.1 (0x00143000)
libdl.so.2 => /lib/libdl.so.2 (0x0015a000)
libjvm.so => not found
libc.so.6 => /lib/libc.so.6 (0x0015f000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0
ok so i have an object that has (among other things) the following properties:
$vendor_data->s9
$vendor_data->s10
$vendor_data->s11
$vendor_data->s12
...
$vendor_data->s40
The values are 1 or 0
I'd like to write a loop to say:
for ($count=9; $count>40; $count++) {
if ($vendor_data->s(i
Okay. I'll tell you a little more information. The 'friend' of mine is
actually my local church. I need ~20 email accounts because there should be
15 staff people (who will want/need email) and 5 for the future. Since it
is a church, they don't have a lot of money to spend on stuff (i.e. a
web
I'd make it an array:
$filter = array(moron, idiot, pratt);
foreach($filter as $badword) {
if (strstr($name, $badword)) {
do this if it contains one of the bad words
}
else {
do this if it doesn't
}
}
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PRO
On Fri, 19 Jan 2001, Noah Spitzer-Williams wrote:
> my problem is i have an include file in a parent directory which includes
> other files. i want these other files to be in the same directory as this
> parent directory file..(hope your gettin me here...). the prob is the parent
> directory file
my problem is i have an include file in a parent directory which includes
other files. i want these other files to be in the same directory as this
parent directory file..(hope your gettin me here...). the prob is the parent
directory file looks for its include files in the current directory.
exa
On Fri, 19 Jan 2001 20:55:12 +, John Hinsley
<[EMAIL PROTECTED]> wrote:
>Incidentally, the must 2.4 gung ho distro seems to be SuSE, which I rate
>well above RedHat in terms of value, support and stability.
I like the way SuSE makes it easy to build and save a custom install
config which can
Ok I thought array_intersect() was the function I was looking for, I might
have to write my own.
I want an array with ONLY the keys/values that are present in all the
variables; ie.
Array
(
[0] => 974806802083190501
[1] => 974806802083190503
[2] => 974806802083190504
)
Array
(
On Fri, 19 Jan 2001, Andrew Rush wrote:
>
> On Friday, January 19, 2001, at 04:20 PM, Ignacio Vazquez-Abrams wrote:
>
> > > 1. What is "Referer" in a HTTP header, what does it mean?
> >
> > It's the web page that the browser was just at.
>
> my understanding is that this value is only present if
On Sat, 20 Jan 2001, Zenith wrote:
> When I first meet PHP, it still in 3.0 version. just after I bought a book
> abuot PHP3, for a few weeks, PHP4 is released.
>
> for now, I have fimilar with some basic of PHP, and I try to find some
> useful tutorial about the PHP4, I fail.
>
> I have look abo
yes. I installed both the libraries. I followed all the directions on the
mcal web site for installing it.
johnny p.
> -Original Message-
> From: Sam Masiello [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 19, 2001 3:17 PM
> To: johnny p.; [EMAIL PROTECTED]
> Subject: RE: [PHP] mca
Since you didn't mention it specifically, I thought I should ask:
Did you also download the mcal library or did you only include -with-mcal
when you compiled PHP?
Sam Masiello
Systems Analyst
Chek.Com
(716) 853-1362 x289
[EMAIL PROTECTED]
-Original Message-
From: johnny p. [mailto:[
When I first meet PHP, it still in 3.0 version. just after I bought a book
abuot PHP3, for a few weeks, PHP4 is released.
for now, I have fimilar with some basic of PHP, and I try to find some
useful tutorial about the PHP4, I fail.
I have look about the PHP manual (pdf version), I find that, th
> It appears php4 has a bug in it, such that when I install it with apache
> 1.3.9, then add the proper lines to httpd.conf for the php mime types,
> whenever i hit a page of one of those types (.php, .html, etc) my browser
> brings up a 'Save As' dialog, indicating to me that apache has
successfu
I have a question about session_register(), and the following is the
background
When I read a tutorial about session. I know that, once the
"session_start()" is called, it will check the session id. If it's not
valid, create a new one, and it will responible to retrieve the variable.
I also l
Also, this incorporates the patch to correctly support multi-tier class
hierachies posted to apc-cache yesterday.
Daniel Cowgill wrote:
>
> New features/fixes:
>
> * support for relative include paths
> * support for the include_path setting in php.ini
> * new php function 'apc_cache_index'
>
Rasmus Lerdorf wrote:
>
> > I think the single most importand piece of software that saves us the
> > most money is thttpd. That all runs in a single thread and uses
> > select to pump out content. Since it is a single thread, it never
> > chews up tons of memory forking children.
>
> By the w
hi,
It appears php4 has a bug in it, such that when I install it with apache
1.3.9, then add the proper lines to httpd.conf for the php mime types,
whenever i hit a page of one of those types (.php, .html, etc) my browser
brings up a 'Save As' dialog, indicating to me that apache has successfully
New features/fixes:
* support for relative include paths
* support for the include_path setting in php.ini
* new php function 'apc_cache_index'
* default initialization of class member data (as arrays) now works
Note: to enable support for either relative paths OR the include_path
setting, you m
On Fri, 19 Jan 2001, Sterling Hughes wrote:
> true it does take em away, that's why I suggest preg_match as the optimal
> choice... I happen to strongly dislike the strpos() function when used for
> more than:
>
> strpos($str, ":");
>
> ie, one character searches...
>
> -Sterling
>
Huh? Whu? Ok
Hi,
I am working on a site that requires extensive calendar math on it and read
about PHP and using mcal with it. I tried configuring mcal to work with it
and was wondering if anyone has had any success getting it to work. I
followed all the steps I could find, but I have no idea how to set up
> On Fri, 19 Jan 2001, Sterling Hughes wrote:
>
> > Its a whip up of what I was talking about, I didn't mean it as real code
> > :)... Switch $words to $word and then swith the argument order to
in_array
> > and yes, it makes sense...
> >
> > > $profanities = array("fuck", "shit");
> >
> > $
> On Fri, 19 Jan 2001, Sterling Hughes wrote:
>
> > Its a whip up of what I was talking about, I didn't mean it as real code
> > :)... Switch $words to $word and then swith the argument order to
in_array
> > and yes, it makes sense...
> >
> > > $profanities = array("fuck", "shit");
> >
> > $
On Fri, 19 Jan 2001, Sterling Hughes wrote:
> Its a whip up of what I was talking about, I didn't mean it as real code
> :)... Switch $words to $word and then swith the argument order to in_array
> and yes, it makes sense...
>
> $profanities = array("fuck", "shit");
>
> $words = preg_split("/\
> On Fri, 19 Jan 2001, Ignacio Vazquez-Abrams wrote:
>
> > On Fri, 19 Jan 2001, Sterling Hughes wrote:
> >
> > > I'm saying use the same method, but use an array and avoid the
strpos()
> > > function:
> > >
> > > $words = preg_split("//", $data);
> > > foreach ($words as $word) {
> > > if (i
Why would this work in IE but not NN (4.08)?
If I remove "/" ".mydomain.com" it works with
NN but not IE. Vice versa if I leave it in.
Thanks,
-Brian
***
= 5) {
$val = 0;
} else {
$val = $ecb;
}
} else {
$val = 0;
}
setcookie("ecb", $val+1,mktime(12, 00, 00,
Fraser MacKenzie wrote:
> If I don't actually specify the entire path to libjava.so, I get the
> following error:
>
> Fatal error: Unable to load Java Library libjava.so,
> error: libhpi.so: cannot open shared object file: No such file or
> directory in /home/rondaks_portal/httpd/docs/k2test/inde
On Fri, 19 Jan 2001, Jason Jacobs wrote:
> I tried this, but it didn't work. I need the value inside the form still
> because the value of the select will be written to an array that gets passed
> to the next page (as hidden inputs), which will in turn be compiled into a
> value list for a db qu
On Fri, 19 Jan 2001, Ignacio Vazquez-Abrams wrote:
> On Fri, 19 Jan 2001, Sterling Hughes wrote:
>
> > I'm saying use the same method, but use an array and avoid the strpos()
> > function:
> >
> > $words = preg_split("//", $data);
> > foreach ($words as $word) {
> > if (in_array($prof, $words
I tried this, but it didn't work. I need the value inside the form still
because the value of the select will be written to an array that gets passed
to the next page (as hidden inputs), which will in turn be compiled into a
value list for a db query. I tried making the name of the select be th
I tried this, but it didn't work. I need the value inside the form still
because the value of the select will be written to an array that gets passed
to the next page (as hidden inputs), which will in turn be compiled into a
value list for a db query. I tried making the name of the select be th
rasmus Fri Jan 19 11:45:18 2001 EDT
Modified files:
/CVSROOTavail gen_acl_file.m4
Log:
Karma for Jason
Index: CVSROOT/avail
diff -u CVSROOT/avail:1.48 CVSROOT/avail:1.49
--- CVSROOT/avail:1.48 Thu Jan 18 12:40:32 2001
+++ CVSROOT/avail Fri Jan 19
On Fri, 19 Jan 2001, Sterling Hughes wrote:
> I'm saying use the same method, but use an array and avoid the strpos()
> function:
>
> $words = preg_split("//", $data);
> foreach ($words as $word) {
> if (in_array($prof, $words)) {
> echo "BAD WORD";
> echo "BAD WORD";
>
convert.php
";
$id=1;
$i=1;
echo "?? ?? $filename ?? ? ETNA";
if ($fp=fopen($filename, "r"))
{
while (!feof($fp))
{
$trimmed_line=trim($line=fgets($fp, 80));
if (strstr($trimmed_line, "Handle"))
{
$handle=substr($trimmed_line, 9, 4);
$trimmed_line=trim($line=fge
If I don't actually specify the entire path to libjava.so, I get the
following error:
Fatal error: Unable to load Java Library libjava.so,
error: libhpi.so: cannot open shared object file: No such file or
directory in /home/rondaks_portal/httpd/docs/k2test/index.php3 on line 34
So, when I actual
> On Fri, 19 Jan 2001, Sterling Hughes wrote:
>
> > If you go with the other method (described by Ignacio), see the
in_array()
> > function, which saves you the trouble of looping...
> >
> > -Sterling
> >
>
> I thought about in_array(), but then I realized that the comparison has to
go
> the OTHE
On Fri, 19 Jan 2001 14:34:08 -0500 (EST), Ignacio Vazquez-Abrams
<[EMAIL PROTECTED]> wrote:
>Check the code again. I'm not doing a dictionary approach.
Sorry, guess my speed reading got a little too fast. :-)
Egan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EM
> On Fri, 19 Jan 2001, DanO wrote:
>
> >
> > why use a DB?
> >
> > just create an array of dirty words then loop your input thru it with a
> > regex.
> >
> > DanO
> >
>
> Because a DB would probably be faster than creating an array and looping
> through it with a regex.
>
Not really, a db would b
On Fri, 19 Jan 2001, Egan wrote:
> On Fri, 19 Jan 2001 14:21:50 -0500 (EST), Ignacio Vazquez-Abrams
> <[EMAIL PROTECTED]> wrote:
>
> >>> Use a database for the words and say "SELECT 1 WHERE LOWERCASE('$name')
>
> >> Yeah problem is he has no database support from his host
>
> > Ouch. All is not l
On Fri, 19 Jan 2001 14:21:50 -0500 (EST), Ignacio Vazquez-Abrams
<[EMAIL PROTECTED]> wrote:
>>> Use a database for the words and say "SELECT 1 WHERE LOWERCASE('$name')
>> Yeah problem is he has no database support from his host
> Ouch. All is not lost, however:
>
> $words=Array(
> "f***",
> "s*
On Fri, 19 Jan 2001, Sterling Hughes wrote:
> If you go with the other method (described by Ignacio), see the in_array()
> function, which saves you the trouble of looping...
>
> -Sterling
>
I thought about in_array(), but then I realized that the comparison has to go
the OTHER way :)
--
Ignac
On Fri, 19 Jan 2001, DanO wrote:
>
> why use a DB?
>
> just create an array of dirty words then loop your input thru it with a
> regex.
>
> DanO
>
Because a DB would probably be faster than creating an array and looping
through it with a regex.
--
Ignacio Vazquez-Abrams <[EMAIL PROTECTED]>
> > In a message dated 19/01/2001 19:03:13 GMT Standard Time,
> > [EMAIL PROTECTED] writes:
> >
> > << Use a database for the words and say "SELECT 1 WHERE
LOWERCASE('$name')
> > LIKE
> > '%'+word+'%'" and count how many rows are returned. No need to
re-invent the
> > wheel.
> >
> > --
> > Ig
text file that is..oops!
- Original Message -
From: "Todd H MacPherson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: January 19, 2001 3:23 PM
Subject: Re: [PHP] Profanity Filter
>
> Hi
>
> Perhaps you could write to a flat test file, have your script read from
> that. Then I would
Hi
Perhaps you could write to a flat test file, have your script read from
that. Then I would create an on-line interface for the client so he can
write to/delete from the list. He then would have control of it.
Todd
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sen
why use a DB?
just create an array of dirty words then loop your input thru it with a
regex.
DanO
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 19, 2001 11:09 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Profanity Filt
On Fri, 19 Jan 2001 [EMAIL PROTECTED] wrote:
> In a message dated 19/01/2001 19:03:13 GMT Standard Time,
> [EMAIL PROTECTED] writes:
>
> << Use a database for the words and say "SELECT 1 WHERE LOWERCASE('$name')
> LIKE
> '%'+word+'%'" and count how many rows are returned. No need to re-invent th
When I create a pdf with the cpdf functions my text keeps going off the edge
of the page. How do I make it wrap to the next line?
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact t
In a message dated 19/01/2001 19:03:13 GMT Standard Time,
[EMAIL PROTECTED] writes:
<< Use a database for the words and say "SELECT 1 WHERE LOWERCASE('$name')
LIKE
'%'+word+'%'" and count how many rows are returned. No need to re-invent the
wheel.
--
Ignacio Vazquez-Abrams >>
Yeah prob
1 - 100 of 220 matches
Mail list logo