Re: [PHP] fputs() to save mysql db file

2001-01-19 Thread Richard Lynch
> I am trying to make a tab delimited file of a mysql table so I can open > it with Excel. > I select the data - 40 fields, 808 records no prob. > I view a mysql_num_rows() query to make sure it selects all records; no prob. > > I create a tab delimited format: > $result = mysql_query("SELECT * FR

Re: [PHP] is it possible to communicate javascript and php?

2001-01-19 Thread Richard Lynch
> I would like to know if it possible to pass in any way some values > > from javascript functions to php variables ? Yes, but... You can have JavaScript call another URL using something like: document.location = 'http://yoursite.com/whatever.php?foo=' . $foo; But keep this in mind: PHP lives

Re: [PHP] problem with file upload

2001-01-19 Thread Ignacio Vazquez-Abrams
On Fri, 19 Jan 2001, Richard Lynch wrote: > > > for ($i=0 ; $i < 4 ; $i++) > > { > > file://do something > > > > for ($k=0 ; $k < 3 ; $k++) > >{ > > print " > value=\"".$K."\" >"; file://this is working > > print ""; file://this > is > > not > >} > > } > > For FOR

Re: [PHP] "but what if.." Function / String Problem

2001-01-19 Thread Philip Olson
This tutorial will help you guys understand the differences : http://www.zend.com/zend/tut/using-strings.php philip On Fri, 19 Jan 2001, Shawn Blaylock wrote: > Yep. I think the only difference is the way it handles variable > interpolation, but I'm not entirely sure on that one. > > "Bo

Re: [PHP] question on time-based function

2001-01-19 Thread Rudy McDaniel
Thanks Brian, I should have provided that detail. Unfortunately it is on a Windows machine.. anyone know of a schedule for IIS that would do the same thing? Rudy - Original Message - From: "Brian Clark" <[EMAIL PROTECTED]> To: "PHP is not a drug ." <[EMAIL PROTECTED]> Sent: Friday, Jan

Re: [PHP] Integer division

2001-01-19 Thread Marcelo Gulin
Hi Todd! if $a = 3.5 then echo (int)$a // print 3 regards Marcelo Gulin Todd Cary escribió: > > What is the syntax for dividing 7 by 2 and getting 3; not 3.5? > > Todd > > -- > Todd Cary > Ariste Software > [EMAIL PROTECTED] > > -- > PHP General Mailing List (http://www.php.net/)

Re: [PHP] question on time-based function

2001-01-19 Thread Ignacio Vazquez-Abrams
On Fri, 19 Jan 2001, Rudy McDaniel wrote: > Thanks Brian, I should have provided that detail. Unfortunately it is on a > Windows machine.. anyone know of a schedule for IIS that would do the same > thing? > > Rudy > Use the WinNT "at" command. Or better yet, use WinAt or the Task Scheduler. --

Re: [PHP] Function / String Problem

2001-01-19 Thread Marcelo Gulin
Hi Karl! try... echo "...are you logged in: " . $LoggedIn() . ""; regards Marcelo Gulin "Karl J. Stubsjoen" escribió: > > Okay, what is wrong with this: > >echo "...are you logged in: $LoggedIn()"; > // outputs:...are you logged in: () > > Function is: > function LoggedIn(

Re: [PHP] Running java under php4 (PHP4 ext/java)

2001-01-19 Thread Alex Akilov
Fraser MacKenzie wrote: > Here is my configuration now: > > [Java] > java.class.path=/home/local/src/php-4.0.4/ext/java/php_java.jar > java.home=/home/local/java/jdk1.2.2 > >java.library.path=/usr/local/lib/php/extensions/no-debug-non-zts-20001214:/home/local/java/jdk1.2.2/jre/lib/i386:/home/loc

Re: [PHP] PATH_TRANSLATED doesn't work correctly !!!

2001-01-19 Thread Heino H. Gehlsen
Hmmm... Thanks for the info, but I allready know it's a bug. My problem is that I can't recompile PHP on the the server, so I'm desperatly looking for a way to access the real PATH_TRANSLATED... In my opinion the lack of a working PATH_TRANSLATED makes PHP rether useless for large scale sites

[PHP] Re: PHP site on CD-ROM

2001-01-19 Thread artwells
I wonder if it's possible to adapt the CGI version of PHP as a Netscape plugin, or to associate the extension of php files to some kind of php wrapper. This would require distributing a browser with the CD for this specific CD, but it could work. For a Unix-only kludge, I found this page, htt

[PHP] multidemention array question(s)

2001-01-19 Thread Michael Zornek
ok so i set up a multidimensional array with the following code: array("On", "On", "The Seybold Report"), "s2" => array("On", "On", "Publishing Systems"), "s3" => array("On", "On", "Internet Publishing"), "s4" => array("On", "On", "The Bulletin"), "s5" => array("Off", "Off", ""), "s6" => array("

SV: [PHP] session_destroy

2001-01-19 Thread Håkan Askengren
I always call unset before destroy. Worked fine when I had problems with destroy. /Håkan Brandon Orther <[EMAIL PROTECTED]> skrev i diskussionsgruppsmeddelandet:CKEMJEADMOCEHPHJKLPAGEGLCDAA.brandon@webintelle cts.com... > Hello Everyone, > > Can someone please give me example code on how to u

Re: [PHP] Profanity Filter

2001-01-19 Thread Ignacio Vazquez-Abrams
On Fri, 19 Jan 2001 [EMAIL PROTECTED] wrote: > Hi, > > I`m trying to setup a little profanity filter for a client of mine just > wondered if anyone could offer some advice on how best to handle it. I was > thinking of going along these lines... > > $filter="moron"; > > if($Name==$filter) > { > pr

Re: [PHP] multidemention array question(s)

2001-01-19 Thread Matt McClanahan
On Fri, 19 Jan 2001, Michael Zornek wrote: > ok so i set up a multidimensional array with the following code: > > // departments.inc > // > // This file defines the switches. All the forms, and return displays are > // based on this table (multidimential array). The first index is the > switch

Re: [PHP] multidemention array question(s)

2001-01-19 Thread Ignacio Vazquez-Abrams
On Fri, 19 Jan 2001, Michael Zornek wrote: > ok so i set up a multidimensional array with the following code: > > // departments.inc > // > // This file defines the switches. All the forms, and return displays are > // based on this table (multidimential array). The first index is the > switch n

[PHP] Profanity Filter

2001-01-19 Thread Website4S
Hi, I`m trying to setup a little profanity filter for a client of mine just wondered if anyone could offer some advice on how best to handle it. I was thinking of going along these lines... $filter="moron"; if($Name==$filter) { printf...Javascript you can`t use that etc } Name is passed from

Re: [PHP] Profanity Filter

2001-01-19 Thread Website4S
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

[PHP] cpdf text wrap

2001-01-19 Thread Tom Harris
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

Re: [PHP] Profanity Filter

2001-01-19 Thread Ignacio Vazquez-Abrams
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

RE: [PHP] Profanity Filter

2001-01-19 Thread DanO
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

Re: [PHP] Profanity Filter

2001-01-19 Thread Todd H MacPherson
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

Re: [PHP] Profanity Filter

2001-01-19 Thread Todd H MacPherson
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

Re: [PHP] Profanity Filter

2001-01-19 Thread Sterling Hughes
> > 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

RE: [PHP] Profanity Filter

2001-01-19 Thread Ignacio Vazquez-Abrams
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]>

Re: [PHP] Profanity Filter

2001-01-19 Thread Ignacio Vazquez-Abrams
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

Re: [PHP] Profanity Filter

2001-01-19 Thread Egan
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*

Re: [PHP] Profanity Filter

2001-01-19 Thread Ignacio Vazquez-Abrams
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

Re: [PHP] Profanity Filter

2001-01-19 Thread Sterling Hughes
> 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

Re: [PHP] Profanity Filter

2001-01-19 Thread Egan
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

Re: [PHP] Profanity Filter

2001-01-19 Thread Sterling Hughes
> 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

Re: [PHP] Running java under php4 (PHP4 ext/java)

2001-01-19 Thread Fraser MacKenzie
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

Re: [PHP] problems creating a png image from an array{HELP} with the source code

2001-01-19 Thread Nikos Tahos
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

Re: [PHP] Profanity Filter

2001-01-19 Thread Ignacio Vazquez-Abrams
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"; >

[PHP-CVS] cvs: CVSROOT / avail gen_acl_file.m4

2001-01-19 Thread Rasmus Lerdorf
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

Re: [PHP] question (as if anything else would be in an email to the list...)

2001-01-19 Thread Jason Jacobs
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

Re: [PHP] question (as if anything else would be in an email to the list...)

2001-01-19 Thread Jason Jacobs
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

Re: [PHP] Profanity Filter

2001-01-19 Thread Ignacio Vazquez-Abrams
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

Re: [PHP] question (as if anything else would be in an email to thelist...)

2001-01-19 Thread Ignacio Vazquez-Abrams
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

Re: [PHP] Running java under php4 (PHP4 ext/java)

2001-01-19 Thread Alex Akilov
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

[PHP] cookies - not working with Nutscrape

2001-01-19 Thread Brian V Bonini
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,

Re: [PHP] Profanity Filter

2001-01-19 Thread Sterling Hughes
> 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

Re: [PHP] Profanity Filter

2001-01-19 Thread Ignacio Vazquez-Abrams
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("/\

Re: [PHP] Profanity Filter

2001-01-19 Thread Sterling Hughes
> 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"); > > > > $

Re: [PHP] Profanity Filter

2001-01-19 Thread Sterling Hughes
> 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"); > > > > $

[PHP] mcal installation

2001-01-19 Thread johnny p.
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

Re: [PHP] Profanity Filter

2001-01-19 Thread Ignacio Vazquez-Abrams
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

[PHP] APC version 1.0.5 released

2001-01-19 Thread Daniel Cowgill
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

[PHP] PHP4 Mime types Causing Save-As dialog

2001-01-19 Thread Todd Goldenbaum
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

Re: [PHP] RE: Ethics question...

2001-01-19 Thread John Hinsley
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

[PHP] Re: [Apc-cache] APC version 1.0.5 released

2001-01-19 Thread George Schlossnagle
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' >

[PHP] Question about session_register()

2001-01-19 Thread Zenith
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

Re: [PHP] PHP4 Mime types Causing Save-As dialog

2001-01-19 Thread Richard Lynch
> 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

[PHP] Question about new features of PHP4!

2001-01-19 Thread Zenith
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

RE: [PHP] mcal installation

2001-01-19 Thread Sam Masiello
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:[

RE: [PHP] mcal installation

2001-01-19 Thread johnny p.
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

Re: [PHP] Question about new features of PHP4!

2001-01-19 Thread Ignacio Vazquez-Abrams
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

Re: [PHP] Question about new features of PHP4!

2001-01-19 Thread Ignacio Vazquez-Abrams
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

[PHP] array_intersect()

2001-01-19 Thread Chris Lee
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 (

Re: [PHP] RE: Ethics question...

2001-01-19 Thread Egan
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

[PHP] does chdir() change include_path on the fly? HELP

2001-01-19 Thread Noah Spitzer-Williams
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

Re: [PHP] does chdir() change include_path on the fly? HELP

2001-01-19 Thread Ignacio Vazquez-Abrams
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

Re: [PHP] Profanity Filter

2001-01-19 Thread Stephan Ahonen
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

Re: [PHP] below10host.com as webhost?

2001-01-19 Thread Jeff Lacy
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

[PHP] variable question

2001-01-19 Thread Michael Zornek
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

Re: [PHP] Running java under php4 (PHP4 ext/java)

2001-01-19 Thread Fraser MacKenzie
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

Re: [PHP] array_intersect()

2001-01-19 Thread Chris Lee
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" <

Re: [PHP] variable question

2001-01-19 Thread Joe Stump
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

Re: [PHP] Profanity Filter

2001-01-19 Thread Stephan Ahonen
> 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

RE: [PHP] mcal installation

2001-01-19 Thread Sam Masiello
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

[PHP] config failure php4.0.4 + apache 1.3.14

2001-01-19 Thread John Ryan
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-

Re: [PHP] Any good way ?

2001-01-19 Thread Monte Ohrt
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. $

[PHP-CVS] cvs: php4 /pear/Mail rfc822.php

2001-01-19 Thread Richard Heyes
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

Re: [PHP] variable question

2001-01-19 Thread Chris Lee
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

Re: [PHP] Re: PHP site on CD-ROM

2001-01-19 Thread Michael A. Peters
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

[PHP] php.net's docs are down

2001-01-19 Thread [EMAIL PROTECTED]
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-

Re: [PHP] Re: PHP site on CD-ROM

2001-01-19 Thread Michael A. Peters
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

[PHP] BIG PROBLEM WITH SEARCH!!!!!!

2001-01-19 Thread Mike Yuen
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

Re: [PHP] php.net's docs are down

2001-01-19 Thread Rasmus Lerdorf
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

RE: [PHP] (Newbie) String within a string

2001-01-19 Thread Chris Hayes
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 =

[PHP] force page exit with submit button

2001-01-19 Thread Chris Hayes
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

Re: [PHP] php.net's docs are down

2001-01-19 Thread [EMAIL PROTECTED]
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

Re: [PHP] (Newbie) String within a string

2001-01-19 Thread Angus Mann
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

Re: [PHP] php.net's docs are down

2001-01-19 Thread eschmid+sic
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

[PHP] Session problem?

2001-01-19 Thread Javier Muniz
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

RE: [PHP] Session problem? (Correction)

2001-01-19 Thread Javier Muniz
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

[PHP] cookies - not working with Nutscrape

2001-01-19 Thread Brian V Bonini
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

Re: [PHP] BIG PROBLEM WITH SEARCH!!!!!!

2001-01-19 Thread Chris Lee
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

Re: [PHP] Running java under php4 (PHP4 ext/java)

2001-01-19 Thread Alex Akilov
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,

Re: [PHP] php.net's docs are down

2001-01-19 Thread [EMAIL PROTECTED]
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

RE: [PHP] Function / String Problem

2001-01-19 Thread Chris Mulcahy
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]

[PHP] Another Guru's Help Needed...

2001-01-19 Thread Dallas Kropka
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

[PHP-CVS] cvs: php4 /pear/Mail rfc822.php

2001-01-19 Thread Chuck Hagenbuch
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.

[PHP] problems creating a png image from an array{HELP} including the source code

2001-01-19 Thread Nikos Tahos
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

[PHP] Using a variable in a variable or as the second part of an array?

2001-01-19 Thread April
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

[PHP] php4 auto download problem

2001-01-19 Thread Thomas Anderson
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:

Re: [PHP] php4 auto download problem

2001-01-19 Thread Rasmus Lerdorf
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

RE: [PHP] mcal installation

2001-01-19 Thread johnny p.
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,

[PHP-CVS] cvs: php4 / TODO

2001-01-19 Thread Jason Greene
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

Re: [PHP] Another Guru's Help Needed...

2001-01-19 Thread Michael Kimsal
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

<    1   2   3   >