[PHP] HELP: problem listing directory contents

2001-01-20 Thread Vahan Yerkanian
Greetings All! Recently I've been hit by a strange problem while coding a file indexing system. I have a source directory of the following format: /files/0-9 /files/0-9/0-90 /files/0-9/0-91 /files/a /files/a/a0 /files/a/a1 /files/b ... /file/z ok you got the picture I hope. nothing difficult. n

Re: [PHP] Cookies...

2001-01-20 Thread Kristi Russell
time()+86400? - Original Message - From: "WreckRman2" <[EMAIL PROTECTED]> To: "'Php-General@Lists. Php. Net'" <[EMAIL PROTECTED]> Sent: Saturday, January 20, 2001 4:56 PM Subject: [PHP] Cookies... > > Currently my cookie expires in 1 hour, How can I make it expire in 1 day? > > setco

Re: [PHP] Sending a mail in HTML format

2001-01-20 Thread Kristi Russell
Nothing special, just add at the beginning of what you're trying to send as HTML. Always worked for me? Kristi - Original Message - From: "Pascal Clerin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, January 20, 2001 8:46 PM Subject: [PHP] Sending a mail in HTML format >

[PHP] imap_createmailbox

2001-01-20 Thread Jochen Kächelin
i have the following problem: i have the possibility to create 100 different pop-boxes and 100 different email-addresses. the pop-boxes must have the following name: wp-jk, wp-info and so on where stands for my custumer number an the text after the '-' for the part of the email-add

Re: [PHP] " " charactor problem

2001-01-20 Thread Sean Cazzell
> I grab this line and try to make it an array like this: print "line: $thelinefromfile\n"; //Check the line > $var1 = trim($thelinefromfile); > $var2 = split(" ", $thelinefromfile); > $count = count($var2); Are you sure $thelinefromfile is actually being set correctly? Regards, Sean -

php-general Digest 21 Jan 2001 05:40:35 -0000 Issue 467

2001-01-20 Thread php-general-digest-help
php-general Digest 21 Jan 2001 05:40:35 - Issue 467 Topics (messages 35815 through 35880): Re: HELP!. INstalling PHP4 on a Cobalt RAQ 2! 35815 by: Rasmus Lerdorf Re: Help w/ regular expressions for banned words 35816 by: Team JUMP 35818 by: Romulo Roberto Pereira

Re: [PHP] XOR data encryption

2001-01-20 Thread Sean Cazzell
Steve, If you're using MySQL, it has some built-in encryption functions that would be slightly better than trying to implement XOR encryption in PHP. The best solution would be to use PGP or GPG (GNU Privacy Guard) to encrypt the credit card numbers before you put them in the database. Regards

[PHP] " " charactor problem

2001-01-20 Thread Rick Ridgeway
im trying to build an array from an entry in a file and im having some trouble with it. in a file i have a line similar to: 1234 hello 123456 12345678 I grab this line and try to make it an array like this: $var1 = trim($thelinefromfile); $var2 = split(" ", $thelinefromfile); $count = count($var

RE: [PHP] my cookies arent working!

2001-01-20 Thread Lucas Young
I'm actually using code from the web - sympoll from www.ralusp.net and authlib, both give me errors and neither seems to be writing cookies... I note in PHP the session save path is /tmp, where should this folder live? -Original Message- From: Markus Fischer [mailto:[EMAIL PROTECTED]] Sen

Re: [PHP] Compiling PHP with "--with-apxs"

2001-01-20 Thread Brian Clark
Hello Jero, (J == "Jero") [EMAIL PROTECTED] writes: J> checking for Apache module support via DSO through APXS... apxs:Error: J> Sorry, no DSO support for Apache available J> apxs:Error: under your platform. Make sure the Apache J> apxs:Error: module mod_so is compiled into your server J> apxs

[PHP-CVS] cvs: php4 /ext/bz2 config.m4

2001-01-20 Thread Jani Taskinen
sniper Sat Jan 20 20:00:32 2001 EDT Modified files: /php4/ext/bz2 config.m4 Log: Remove double 'yes' output. Index: php4/ext/bz2/config.m4 diff -u php4/ext/bz2/config.m4:1.2 php4/ext/bz2/config.m4:1.3 --- php4/ext/bz2/config.m4:1.2 Fri Jan 19 21:09:0

Re: [PHP] Getting part of a string

2001-01-20 Thread Website4S
In a message dated 21/01/2001 03:43:19 GMT Standard Time, [EMAIL PROTECTED] writes: << if( eregi( "^([^@]+)@([^@]+)$", $email, $match)) { $email_user = $match[1]; $email_domain = strtolower( $match[2]); echo "$email_user at $email_doma

Re: [PHP] my cookies arent working!

2001-01-20 Thread Markus Fischer
On Sun, Jan 21, 2001 at 04:24:09PM +1300, Lucas Young wrote : > I think most of the problems I am having with PHP and sample code not > working seems to be because cookies arent being generated > I'm using php.ini in it's default config > Windows 2000 Pro IIS PHP 4.0.4pl1 > PHP seems to be workin

Re: [PHP] Getting part of a string

2001-01-20 Thread Markus Fischer
On Sat, Jan 20, 2001 at 09:10:45PM -0500, [EMAIL PROTECTED] wrote : > I have a form which users enter their email address, once submitted I need a > way to chop it up and put it in lowercase. So that if a user submits > [EMAIL PROTECTED] I want PHP to throw out Website4S and then make the rest

Re: [PHP] mysql table dump problem

2001-01-20 Thread Markus Fischer
On Sat, Jan 20, 2001 at 05:57:25PM -0800, PHP List wrote : > dump a table to a file on my server: > $sql = "SELECT * INTO OUTFILE '/tmp/test.txt' FIELDS TERMINATED BY '\t' > LINES TERMINATED BY '\n' FROM table_name"; > > Problem is that once I have created the dump file, it will not allow me to

[PHP] my cookies arent working!

2001-01-20 Thread Lucas Young
Hi all I think most of the problems I am having with PHP and sample code not working seems to be because cookies arent being generated I'm using php.ini in it's default config Windows 2000 Pro IIS PHP 4.0.4pl1 PHP seems to be working fine otherwise... I did the installshield install then unzipped

Re: [PHP] XOR data encryption

2001-01-20 Thread jeremy brand
Feel free (as in public domain) to use this function: http://www.nirvani.net/software/misc/xor_string-1.0.0.inc.asc Jeremy Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED] http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more - - - - - - - - - - - - - - -

Re: [PHP] Profanity Filter

2001-01-20 Thread Fraser MacKenzie
What you could do is have a bad word and a reallybadword list. Wank could be a bad word and if it didn't appear along (ie. whitespace on either side, or in plural) then it is ok. In really bad word, say F*ck, then it couldn't appear at all...( ie. f*ckville would be invalid). It would mean a se

[PHP] Getting part of a string

2001-01-20 Thread Website4S
Hi, I have a form which users enter their email address, once submitted I need a way to chop it up and put it in lowercase. So that if a user submits [EMAIL PROTECTED] I want PHP to throw out Website4S and then make the rest lowercase so I would get @aol.com I know how to get the string to lo

[PHP] mysql table dump problem

2001-01-20 Thread PHP List
Hi list, I have scoured the archives with no good game plans. Here is what I am trying to accomplish: dump a table to a file on my server: $sql = "SELECT * INTO OUTFILE '/tmp/test.txt' FIELDS TERMINATED BY '\t' LINES TERMINATED BY '\n' FROM table_name"; take the file and email it to someone: u

Re: [PHP] Sending a mail in HTML format

2001-01-20 Thread Markus Fischer
On Sat, Jan 20, 2001 at 06:46:39PM -0700, Pascal Clerin wrote : > I want to send a mail in HTML format with the mail() function. > I have tried to send html stuff in the message parameter, but when I read it > in my hotmail account, I just see the html code and not what the html is > supposed to

[PHP] Sending a mail in HTML format

2001-01-20 Thread Pascal Clerin
Hello, I want to send a mail in HTML format with the mail() function. I have tried to send html stuff in the message parameter, but when I read it in my hotmail account, I just see the html code and not what the html is supposed to show. I suppose that it is necessary to send some additional head

[PHP] CF vs PHP for Creating PDF's

2001-01-20 Thread DPG Account
Hi- I'm new to this list. I'll start out with hopefully a good question. I have a project coming up where I need to take some form input insert it into a premade template and create a custom pdf for a user. The pdf will then be e-mailed to the user or a link to download it e-mailed to them. My q

Re: [PHP] Profanity Filter

2001-01-20 Thread scott
Just go to one of those raunchy porn sites and pull the words out of thier meta tags or "hidden" word list (i.e. white text on white background) buried in the HTML. ;-) > hey, > > does anyone have a big compiled list? like a profanity library? > > maybe even a multi-lingual one! > > hey, i

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

2001-01-20 Thread Markus Fischer
On Sat, Jan 20, 2001 at 05:20:53PM -0800, Alex Black wrote : > no without submitting information to the server with get or post. > > for example, if a bit of javascript you have comes up with some value, the > only way you can get it to the server is to put it in a get and send the > user to tha

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

2001-01-20 Thread Alex Black
>>> is there any benchmarks or proof that I should host a high traffic site on a >>> FREEBSD/APACHE instead of a redhat Linux/Apache server? I have _heard_ that linux is great under medium load, but does not deal as well with super-high loads as well as freeBSD. that has not stopped me from using

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

2001-01-20 Thread Alex Black
no without submitting information to the server with get or post. for example, if a bit of javascript you have comes up with some value, the only way you can get it to the server is to put it in a get and send the user to that url: http://www.mysite.com/index.php?your_js_var=your_value etc. _a

Re: [PHP] Profanity Filter

2001-01-20 Thread Alex Black
hey, does anyone have a big compiled list? like a profanity library? maybe even a multi-lingual one! hey, it would be fun to make :) _alex -- Alex Black, Head Monkey [EMAIL PROTECTED] The Turing Studio, Inc. http://www.turingstudio.com vox+510.666.0074 fax+510.666.0093 Saul Zaentz Film Ce

Re: [PHP] get last directory of a full path? (parent directory)

2001-01-20 Thread Stephan Ahonen
> $i = 1; > foreach ($dirs as $value) { > if ($i == ($numberofelements-1)) $lastdir = $value; > if ($i == $numberofelements) $file = $value; > $i++; > } I don't think the foreach is necessary - Why can't you just say: $lastdir = $dirs[$numberofelements-1]; $file = $dirs[$numberofelements]; T

Re: [PHP] get last directory of a full path? (parent directory)

2001-01-20 Thread Romulo Roberto Pereira
Hello! > whats the easiest way to go from "/dir1/dir2/dir3/hello.php" to "dir3/" ? > dirname will cut off hello.php but i want to cut dir1 and dir2 as well I believe that this will do the job

Re: [PHP] What's wrong with this link?

2001-01-20 Thread scott
Mike, Looks like your slashes are backwards use "\" instead of "/" to escape characters. You will notice that "/" is used in UNIX directories and HTML tags. Here is the corrected code: print "\">Click Here"; I assume "PID" is a variable. If so, it should be noted as "$PID". A really good

[PHP-CVS] cvs: php4 /ext/sablot sablot.c

2001-01-20 Thread Sterling Hughes
sterlingSat Jan 20 15:42:03 2001 EDT Modified files: /php4/ext/sablotsablot.c Log: Fix the scheme handler support and make it compile on win32 systems. Index: php4/ext/sablot/sablot.c diff -u php4/ext/sablot/sablot.c:1.32 php4/ext/sablot/sablo

Re: [PHP] Please: XTemplate help?

2001-01-20 Thread Jaxon
Cool, so just iterate through the array and sort it into the template assignment - quite nice! Thanks for the pointers Kristi! Regards, Jaxon On 1/20/01 3:37 PM, "Kristi Russell" <[EMAIL PROTECTED]> wrote: > while ( $rowData = mysql_fetch_array($result)) > { > list($fieldName, $fieldValue)

[PHP] get last directory of a full path? (parent directory)

2001-01-20 Thread Noah Spitzer-Williams
whats the easiest way to go from "/dir1/dir2/dir3/hello.php" to "dir3/" ? dirname will cut off hello.php but i want to cut dir1 and dir2 as well Thanks! - Noah -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

RE: [PHP] Installing Php/Apache/Win98

2001-01-20 Thread Morkai Kurst
I had the same problem, i ended up placing the php4apache.dll in the apache/modules directory where the rest of the modules for apache are stored. Then change the entry in httpd.conf to: LoadModule php4_module modules/php4apache.dll everything worked then :) good luck Morkai > I have PHP wor

RE: [PHP] cookies - not working with Nutscrape

2001-01-20 Thread Brian V Bonini
Actually, it's excepting the time/date. It's the path/domain that is creating a problem. For some reason your original suggestion of leaving the domain out is working today. setcookie("ecb",$val,$expires,"/"); I could not get this to work for the life of me yesterday. Either I was overworked/tir

Re: [PHP] XOR data encryption

2001-01-20 Thread Todd Cary
I have some Delphi code that uses the XOR, if that would help. Todd -- Todd Cary Ariste Software [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

[PHP] MySQL Access Denied

2001-01-20 Thread Website4S
Hi, I am trying to conect to a MySQL db and no matter what code I use I am always getting denied, I know the password is correct as I have tested it elsewhere. Just wondering if this could be caused by the fact that the password has a + and a . in it. Would that get me denied, and how can I ge

Re: [PHP] Cookies...

2001-01-20 Thread Rasmus Lerdorf
> Currently my cookie expires in 1 hour, How can I make it expire in 1 day? > > setcookie("MemberLogin",$value,time()+3600); /* expire in 1 hour */ > setcookie("MemberLogin",$value,time()+3600,"/",".combatfs.com",1); 24*3600 -Rasmus -- PHP General Mailing List (http://www.php.net

[PHP] Cookies...

2001-01-20 Thread WreckRman2
Currently my cookie expires in 1 hour, How can I make it expire in 1 day? setcookie("MemberLogin",$value,time()+3600); /* expire in 1 hour */ setcookie("MemberLogin",$value,time()+3600,"/",".combatfs.com",1); WreckRman2 Combat Flight Center http://www.co

[PHP] opinion polling code

2001-01-20 Thread Lucas Young
Hi I'm looking for some free opinion polling code using PHP and MySQL. I've checked a number of scripts and they haven't been up to scratch - I'm just after a simple poll that allows a user to vote once (selecting yes or no) and then for the remainder of their session they can only view the poll

[PHP] XOR data encryption

2001-01-20 Thread Steve Quezadas
I am trying to store some credit card numbers in a database, along with the rest of the data (dangerous, I know). Unforunately, I am using a provider that doesn't have the mcrypt functions compiled into PHP, so I guess I am stuck using the swiss-cheese like XOR method of encryption. My client i

[PHP] date

2001-01-20 Thread Randy Johnson
I am wondering if it would be more efficient to store the integer value that the php function time() returns when a transaction is inserted into the database and then when querying the database to get certain transactions just use basic math functions to get the certain transactions. For example

Re: [PHP] Mysql & Array Question

2001-01-20 Thread Rasmus Lerdorf
while($row = mysql_fetch_array($id,MYSQL_ASSOC)) { foreach($row as $index=>$value) { $z[$index][] = $value; } } For a table with 3 rows and fields abc and def in each row this would produce an array like this: $z[abc][0] $z[def][0] $z[abc][1] $z[def][1] $z[abc][2]

[PHP] Mysql & Array Question

2001-01-20 Thread Jeff Lacy
Hello Everyone, I am trying to make a page that will interact with mysql. I need to be able to access the result of my mysql_query by using a for loop. I made a little function that will sortof do this, but it returns a numeric array. Of course, I want an associative array (becauses things

[PHP-CVS] cvs: php4 /pear/HTTP Compress.php

2001-01-20 Thread Chuck Hagenbuch
chagenbuSat Jan 20 12:50:00 2001 EDT Modified files: /php4/pear/HTTP Compress.php Log: whitespace Index: php4/pear/HTTP/Compress.php diff -u php4/pear/HTTP/Compress.php:1.1 php4/pear/HTTP/Compress.php:1.2 --- php4/pear/HTTP/Compress.php:1.1 F

Re: [PHP] Please: XTemplate help?

2001-01-20 Thread Kristi Russell
while ( $rowData = mysql_fetch_array($result)) { list($fieldName, $fieldValue) = each($rowData); $template->assign("$fieldName", $fieldValue); } - Original Message - From: "Jaxon" <[EMAIL PROTECTED]> To: "Kristi Russell" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Saturday

Re: [PHP] Unique Session Question

2001-01-20 Thread Alain Fontaine
Hi, How about this: Save the "last action time" as a session variable. Whenever the user hits a page, check that session variable against the current time. If the "last action time" is more than 5 minutes older than the current time, log them out/unset session variables. Should work I guess. ""

Re: [PHP] a text formating & cpu question

2001-01-20 Thread Michael A. Peters
Christian Reiniger wrote: > > On Thursday 18 January 2001 23:05, Noel Akins wrote: > > Question 2: > > Is there a way for php to detect the cpu speed of a users computer? > > If you're on a Linux machine you can read /proc/cpuinfo and pick out the > speed entry. Linux on the sun sparc64 archite

[PHP] Unique Session Question

2001-01-20 Thread Randy Johnson
Hello, I plan to use session variables to identify if a user is logged in... I know there is an option to set the life of the session but I am looking for a way to end the session five minutes after they have did there last "transaction" with my site... I don't want people that are actively us

Re: [PHP] MailBomb Problem...

2001-01-20 Thread Rasmus Lerdorf
Edit your php.ini file and edit your sendmail_path directive. The default is "sendmail -t -i". Add the correct -o switch (don't remember it offhand) to have sendmail just queue the email instead of trying to deliver right away. Then set up sendmail to deliver the queue at regular intervals. -R

[PHP] MailBomb Problem...

2001-01-20 Thread ewiz
I am facing a problem where some users on the server are using php mail() function to mail a list of users in taken from mysql db(around 5000 users, but not spam), but this is getting the system crashed due to excessvie loads and if I limit the delivery load on exim than even geninue mail is getti

Re: [PHP] simple math

2001-01-20 Thread Rasmus Lerdorf
11 % 3 On Sat, 20 Jan 2001 [EMAIL PROTECTED] wrote: > Lets say I have 11 / 3 > > answer is 2.667 > > what if I want to get the remainder of it > so 11 / 3 would be 2 > > is there a built in function for this in PHP? > kinda like MOD in Visual Basic? > > - Thanks > > -- > PHP General Mailing

[PHP] simple math

2001-01-20 Thread PeterOblivion
Lets say I have 11 / 3 answer is 2.667 what if I want to get the remainder of it so 11 / 3 would be 2 is there a built in function for this in PHP? kinda like MOD in Visual Basic? - Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For add

[PHP] Compiling PHP with "--with-apxs"

2001-01-20 Thread Jero
Hello, I am trying to compile PHP with the option "--with-apxs" to be able to use both PHP 3 and PHP 4 on the same server.Unfortunately, if I try to use configure with that option ./configure --with-mysql=../mysql --with-ldap=/usr --with-apache=../apache --enable-track-var --with-imap=../i

Re: [PHP] Spell checker?

2001-01-20 Thread John Hinsley
Nik Gare <[EMAIL PROTECTED]> wrote > Does anyone know where I could find a text list of every > word in the English language ;-) You could try (also) getting hold of ispell a search on www.google.com/linux or sunsite should get it. You'll need something capable of uncompressing tar archives t

[PHP] Installing Php/Apache/Win98

2001-01-20 Thread Todd Cary
I have PHP working like a champ on my WIN 2K computer with IIS. Now I would like to have it on my notebook, so I loaded Apache and have following the instructions from Shanx; however, I get the message that Apache cannot load php4apache.dll. It shows the correct path. What is the best source fo

[PHP] Verifying against a file

2001-01-20 Thread Website4S
Hi, I have used the following code to open a file $fd=fopen("words.txt", "r"); $words = fread($fd, 100); I then convert a string which is passed in a form to this script $FirstName=strtolower("$FirstName"); And now I check to see if the lowercase version of $FirstName contains any of the

Re: [PHP] Help w/ regular expressions for banned words

2001-01-20 Thread Team JUMP
No, it didn't work. I've tried [:space:]$bannedwords[$i][:space:], \<$bannedwords[$i]\>, and \b$bannedwords[$i]\b. It doesn't detect anything. I'm reading a list of banned words out of a text file and putting them into $bannedwords. I'm pretty sure $bannedwords is right, since I've tried stuff

Re: [PHP] What's wrong with this link?

2001-01-20 Thread Philip Olson
Mike, Read and print this out : http://www.zend.com/zend/tut/using-strings.php It will increase your happiness. Philip On Sat, 20 Jan 2001, Mike Yuen wrote: > I realize my slashes are most likely in the wrong spot and i'm new to this > PHP stuff so a little help would be appreciated. I

Re: [PHP] <> Flash + PHP <>

2001-01-20 Thread Mike Tuller
www.thickbook.com is a good start. Last I looked it covered Flash 4, and Flash 5 is quite a bit different. Basically you have PHP print the variables in HTML and Have Flash parse that. Flash can't directly parse PHP variables. It's not difficult once you figure it out. Mike > From: "Abe Asghar"

Re: [PHP] What's wrong with this link?

2001-01-20 Thread Angus Mann
At 11:25 20/01/01 -0700, Mike Yuen wrote: >I realize my slashes are most likely in the wrong spot and i'm new to this >PHP stuff so a little help would be appreciated. I get a parse error > >print "/">Click Here"; You've got the wrong type of slashes - use backslashes within the string - e.g. p

[PHP] JSDK 2.0 & PHP

2001-01-20 Thread Ashley M. Kirchner
I posted this twice on PHP-Install and got not a single reply back. So, I'm trying here: -- I've installed Sun's JSDK v1.3.0 onto my system (an Intel running RH), and compiled PHP 4.0.4 with the --with-java=/usr/java flag. When I look in php.ini, I see the following refere

Re: [PHP] Please: XTemplate help?

2001-01-20 Thread Jaxon
Kristi, That makes more sense, thanks, but one problem - I don't want to have to do: $template->assign("FIELD2", $row[fieldname2]); If I've already called mysql_fetch_array, then I have an array like this: field1:field1_data field2:field2_data field3:field3 data Is there any way to use the ar

RE: [PHP] cookies - not working with Nutscrape

2001-01-20 Thread Brian V Bonini
Yup, the issue really seems to lie with the path and domain. I may just resort to; header("Set-Cookie: ..") -Brian > -Original Message- > From: DanO [mailto:[EMAIL PROTECTED]] > Sent: Friday, January 19, 2001 7:10 PM > To: [EMAIL PROTECTED] > Subject: RE: [PHP] cookies - not work

Re: [PHP] What's wrong with this link?

2001-01-20 Thread Romulo Roberto Pereira
the slashes ate no the correct escape slashes... the correct would be: print "\">Click Here"; - Original Message - From: Mike Yuen <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, January 20, 2001 1:25 PM Subject: [PHP] What's wrong with this link? I realize my slashes ar

RE: [PHP] cookies - not working with Nutscrape

2001-01-20 Thread Brian V Bonini
The complete snippet is = 5) { $val = 1; } else { $val = $ecb; $val++; } } else { $val = 1; } $expires = mktime(12, 00, 00, 12, 31, 2005); setcookie("ecb",$val,$expires,"/",".domain.com",0); ?> I've gotten around it for the moment by using a browser detection

[PHP] What's wrong with this link?

2001-01-20 Thread Mike Yuen
I realize my slashes are most likely in the wrong spot and i'm new to this PHP stuff so a little help would be appreciated. I get a parse error print "/">Click Here"; Thanks, Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comm

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

2001-01-20 Thread Brian T. Allen
Just create it online in such a way that you can spider your whole site and burn it to CD. Granted you will lose the searchability of the DB, but the contents would all be there, and could easily be indexed so that you could still find what you are looking for. Create one page that has a link to

[PHP] Re: Fwd: Help - removal of trailing zeros from double integer field

2001-01-20 Thread Art Wells
This might help. $no_trailing_zeroes = preg_replace("/0+$/","",$trailing_zeroes); > Dear friends, > > I am accessing MySQL database using apache and php. > I have to display a double integer field without trailing zeros. > The number of digits after the decimal point varies. > > I have tried se

Re: [PHP] Help w/ regular expressions for banned words

2001-01-20 Thread Romulo Roberto Pereira
try this; I am working on the last word... ereg replace is not finding the REGEX "\.$" - anyone has a clue? "; echo $string.""; for($i=0;$i<$num;$i++) { $string = eregi_replace("{$bannedwords[$i]}","[censored]",$string); } */ echo $string.""; // take out the damn ; . : chars on the end of th

Re: [PHP] Profanity Filter

2001-01-20 Thread Website4S
Ok, I am now using the following code to check if there is any profanity in the $FirstName however it just doesn`t work when testing, I am thinking it has something to do with the way I`m loading the file, any better ways. $words=file('words.txt'); $done=false; while ((list($key, $val)=each($w

[PHP-CVS] cvs: php4 /pear/Cache Function_Cache.php

2001-01-20 Thread Sebastian Bergmann
sbergmann Sat Jan 20 09:41:55 2001 EDT Modified files: /php4/pear/CacheFunction_Cache.php Log: Next time without the 'Oops!'. Index: php4/pear/Cache/Function_Cache.php diff -u php4/pear/Cache/Function_Cache.php:1.3 php4/pear/Cache/Function_Cache.php:1

[PHP-CVS] cvs: php4 /pear/Cache Function_Cache.php

2001-01-20 Thread Sebastian Bergmann
sbergmann Sat Jan 20 09:40:06 2001 EDT Modified files: /php4/pear/CacheFunction_Cache.php Log: Fixed two small glitches. Note: The Shared Memory version of Function_Cache does not work correctly at the moment, but I'm on it. Index: php4/pear/Cache/Fu

Re: [PHP] Help w/ regular expressions for banned words

2001-01-20 Thread Team JUMP
Thanks for your help. Unfortunately, [:space:]$bannedwords[$i][:space:] would not work, since I need to also check for the first and last word. In a last-case scenario I could write special code for the first and last word, but that may get ugly with bug-checking... but I've already tried "\s+$b

Re: [PHP] HELP!. INstalling PHP4 on a Cobalt RAQ 2!

2001-01-20 Thread Rasmus Lerdorf
Can you install flex and bison? On Sat, 20 Jan 2001, Trunkz Santai wrote: > Hi Im trying to isntall PHP4 on my Raq 2 but Im not having much luck. I was > wondering if someone here could assist me. > > I uploaded apache and configured it and it worked fine. Its running in > /usr/local/apache-x.x.

php-general Digest 20 Jan 2001 17:24:25 -0000 Issue 466

2001-01-20 Thread php-general-digest-help
php-general Digest 20 Jan 2001 17:24:25 - Issue 466 Topics (messages 35781 through 35814): Re: Classes question. 35781 by: Matt McClanahan IMAP_HEADER 35782 by: Jochen Kächelin IMAP_HEADER NEW!! 35783 by: Jochen Kächelin Re: Date/Time Formatting 35784 by:

Re: [PHP] Please: XTemplate help?

2001-01-20 Thread Kristi Russell
require "xtpl.p"; //include XTemplate engine //don't need this - wrong. > require "html.xtpl"; //html layout file with field names e.g. {firstfield} You need to create a new instance of the Xtemplate class so: //assign the new instance to a variable name you'll use - I called it $template //and

Re: [PHP] Help w/ regular expressions for banned words

2001-01-20 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Team JUMP) wrote: >$num=count($bannedwords); > for($i=0;$i<$num-1;$i++) > { > $string = > eregi_replace("\b$bannedwords[$i]\b","[censored]",$string); > } > > > For whatever reason, no wor

[PHP] HELP!. INstalling PHP4 on a Cobalt RAQ 2!

2001-01-20 Thread Trunkz Santai
Hi Im trying to isntall PHP4 on my Raq 2 but Im not having much luck. I was wondering if someone here could assist me. I uploaded apache and configured it and it worked fine. Its running in /usr/local/apache-x.x.x I uploaded the php zipped binary by ftp to /home/sites/home then mv php-4.0.4.tar.

Re: [PHP] Spell checker?

2001-01-20 Thread Kristi Russell
Plain Text Dictionary: http://www.mso.anu.edu.au/~ralph/OPTED/ Word list: http://www.antionline.com/archives/text/word-lists/ I just found these by searching through Google you may find better. Kristi - Original Message - From: "Nik Gare" <[EMAIL PROTECTED]> To: "PHP User Group

[PHP] Please: XTemplate help?

2001-01-20 Thread Jaxon
Hi Debreceni, I need to use a template parser, and XTemplate looks like it will do what I need, but I'm not sure how. I can use mysql_fetch_array to produce an array of field_name:value. If I use {field} names in the html template, can I use XTemplate to take the array and parse? This is what

Re: [PHP] Profanity Filter

2001-01-20 Thread Website4S
Hi, I`m trying to use the code below for my profanity checker but it keeps returning a parse error on the second line 'while ((list etc' Can anyone see anything wrong?? TIA Ade << $done=false; while ((list($key, $val)=each($words)) and $done===false) { $done=strpos(strtolower($name), $va

[PHP] Macromedia UltraDev 4 MySQL connection

2001-01-20 Thread Murph
Hi. I'm tearing my hair out trying to get UltraDev to talk to MySQL and I know there are some Dreamweaver and MySQL users here. I think I need some help installing a JDBC driver for this product. Any help or sympathy is greatly appreciated. Thanks, Murph

[PHP] Help w/ regular expressions for banned words

2001-01-20 Thread Team JUMP
$num=count($bannedwords); for($i=0;$i<$num-1;$i++) { $string = eregi_replace("\b$bannedwords[$i]\b","[censored]",$string); } For whatever reason, no word in $bannedwords will match in the string. I've tested it with simple expressions like

Re: [PHP] Pre-loading HTML form w/ mySQL data

2001-01-20 Thread Romulo Roberto Pereira
There you go: WHERE ; // execute query $query_result = mysql_query ($query,$dbconnection) or die ("Couldn't execute query in Database."); // fetching values with while while ($row = mysql_fetch_array ($query_result)) { $VAR1= $row["COLUMN1"]; $VAR2 = $row["COLUMN2"]; } ec

[PHP] MySQL problem

2001-01-20 Thread Alaiddin Tayeh
Linux , Apache, MySQL I have a problem in my database(MySQL), this is the senario: I made an update statement on my table by wrong, then I restor my backup copy by copying the backup files on the exist ones without stopping the MySQL. Now I have problems in searching data: for example when I made

[PHP] Image Widths/Heights on Upload

2001-01-20 Thread Bryan Fritchie
When uploading a file, the built in functions let you get the filename, size, type. If the file is an image, is it possible to also get the width and height of the image? Right now we are giving input boxes for the user to enter the correct values, but I'd rather that my code do it for them. Th

Re: [PHP] Pre-loading HTML form w/ mySQL data

2001-01-20 Thread Kath
Do you mean, like if they are editting their profile, their existing one shows up in the text box? Here is a chunk of code I wrote to do that this morning: --- "); ?> PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTE

[PHP] Pre-loading HTML form w/ mySQL data

2001-01-20 Thread Anthony Rodriguez
I've a mySQL db with user information (e.g.: name, address, phone, etc.). I'd like to pre-load an HTML form with the existing user information in order to enable the users to update some of the information. Are there any PHP sample scripts that I may look at to do this? Thank you! -- PHP Ge

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

2001-01-20 Thread Fraser MacKenzie
WAHO! It works! Thanks Alex!! Fraser On Fri, 19 Jan 2001, Alex Akilov wrote: > 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/class

[PHP] getting from PHP the vars that are in the memory during the execution of the script...

2001-01-20 Thread Romulo Roberto Pereira
Hey! Is it possible to get the names of the variables allocated in the memory? thank you, Rom

[PHP] Re: PHP Parse MySQ: Field???

2001-01-20 Thread [ rswfire ]
Richard, THANK YOU!!! I agree -- this method provides many security vulnerabilities and I appreciate the warning. The database is definitely secure -- from web-surfers and others. Also, I intend to parse the information going into the database myself -- using a simple parse engine I will cr

Re: [PHP] Spell checker?

2001-01-20 Thread Nik Gare
In article <[EMAIL PROTECTED]>, Brandon Orther <[EMAIL PROTECTED]> wrote: > Check here, I have never messed with it just ran into it the other day. > I hope it helps. > http://www.php.net/manual/en/ref.pspell.php Sort of. Thanks go to Kristi as well for spotting this, PHP has so many bult i

Re: [PHP] Profanity Filter

2001-01-20 Thread Nik Gare
In article <94adfp$5le$[EMAIL PROTECTED]>, Stephan Ahonen <[EMAIL PROTECTED]> wrote: > 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

Re: [PHP-CVS] cvs: php4 /ext/pgsql pgsql.c php_pgsql.h

2001-01-20 Thread Sascha Schumann
> Strange, I compiled it at home, and it gave me no troubles, must be a > wrong regexp to replace spaces by tabs then. I'll look into it later. Another issue is the lo_lseek() call. The third and fourth parameters are prototyped as int, but you are passing in char *. - Sascha

Re: [PHP-CVS] cvs: php4 /ext/pgsql pgsql.c php_pgsql.h

2001-01-20 Thread Derick Rethans
On Sat, 20 Jan 2001, Sascha Schumann wrote: > > +PHP_FUNCTION(pg_lolseek) { > > + val **pgsql_lofp, **seek_offset, **seek_whence; > ^^^ > > + gLofp *pgsql; > ^ > > + long int offset; > .. > > + ffset = lo_tell((PGconn *)pgsql->conn, pgsql->lofd); > ^ > > + ETURN_LONG (of

Re: [PHP-CVS] cvs: php4 /ext/pgsql pgsql.c php_pgsql.h

2001-01-20 Thread Sascha Schumann
> +PHP_FUNCTION(pg_lolseek) { > + val **pgsql_lofp, **seek_offset, **seek_whence; ^^^ > + gLofp *pgsql; ^ > + long int offset; .. > + ffset = lo_tell((PGconn *)pgsql->conn, pgsql->lofd); ^ > + ETURN_LONG (offset); ^ Derick, this patch is completely brok

[PHP-CVS] cvs: php4 /ext/pgsql pgsql.c

2001-01-20 Thread Sascha Schumann
sas Sat Jan 20 02:10:50 2001 EDT Modified files: /php4/ext/pgsql pgsql.c Log: Revert last completely broken patch. Index: php4/ext/pgsql/pgsql.c diff -u php4/ext/pgsql/pgsql.c:1.83 php4/ext/pgsql/pgsql.c:1.84 --- php4/ext/pgsql/pgsql.c:1.83 Thu Jan 1

[PHP] Flushing vars

2001-01-20 Thread jalist
I know this must have been asked before so I apologize in advance... Is there a way to flush the $PHP_AUTH_USER / $PHP_AUTH_PW vars? I have a routine where someone can logon to my admin section as a guest and enter a new username/password. Is it possible for him to then logout (flushing the guest

  1   2   >