Re: [PHP] QUESTION: how to validate credit card number before sent to Versi gn?

2001-12-19 Thread John S. Huggins
Look at the strings section of the PHP online manual. The function of choice is probably something like str_replace(). Not sure if this is the correct thing, but I know you can do what you want with a PHP string function. Good luck and make sure to keep those damn CC numbers nowhere on your

Re: [PHP] Firewall

2002-02-06 Thread John S. Huggins
On Wed, 6 Feb 2002, Thomas Franz wrote: -Hi, - -i hope this is the right group for my question. - -i've written a php-program with a ftp-connection to a mysql database. - -now there is one problem. the local network has a firewall. Now, if i try to -connect to the database via ftp there is an

Re: [PHP] How can i count the number of users logged in my system

2002-02-12 Thread John S. Huggins
Create a user activity table which stores the time when the user does anything. Then query it with a GROUP BY user syntax and constrain the records to only those after, say, an hour ago if you think that users doing something during the last hour means they are in there doing something. This

Re: [PHP] phpMyAdmin

2002-03-11 Thread John S. Huggins
On Mon, 11 Mar 2002, Chuck PUP Payne wrote: -I have a client that has install phpMyAdmin but can't get into he gets this -error; - -Error -MySQL said: - - -Access denied for user: 'root@localhost' (Using password: NO) - - -Is there a way to get into if he knows the password? Well, yes. The

Re: [PHP] MySQL and indexes

2002-03-18 Thread John S. Huggins
I have seen this problem before and, yes, an index field with autoincrement is always a good thing to have. Perhaps, this is not necessary, but usually works. John On Mon, 18 Mar 2002, Jennifer Downey wrote: -Hi all, - -Just wondering, does a table have to have an index? If so what should I

Re: [PHP] cvs data PHP

2002-03-20 Thread John S. Huggins
Look for CHORA on the net. It is a PHP thing that somehow accesses a CVS respository. I discovered it as part of phpGroupWare. It works well and should serve as a decent guide. On Wed, 20 Mar 2002, Erik Price wrote: -I was wondering if there is a way to access CVS from a PHP script.

Re: [PHP] Temporary MySQL Tables

2002-03-21 Thread John S. Huggins
On Thu, 21 Mar 2002, Georgie Casey wrote: -Hi, - -membership with the username and timestamp in the URL. The users clicks it, -and I run a SQL command that copies the row from tempmembers into the -members table. I assume you are building up all your fields as you move through the site. I would

Re: [PHP] cvs tags (version?)

2002-04-04 Thread John S. Huggins
print(p$Revision: $/p); The next time you commit a file with this in it, the $Revision:$ will be replaced by $Revision: 1.38$ if you version is in fact 1.38. On Thu, 4 Apr 2002, Jeff D. Hamann wrote: -I'm trying to find a way to insert the cvs version into a footer of my php -files so I can

[PHP] Beginning / and end of word / in eregi_replace

2002-06-14 Thread John S. Huggins
Can it be true that PHP does not implement the beginning and end of word syntax of regular expressions? In builing a bad word filter, I find this... $outstring = eregi_replace(badword$,goodword,$stringtocheck); will find an occurance of the 'badword' at the end of the string and replace it.

Re: [PHP] Beginning / and end of word / in eregi_replace

2002-06-14 Thread John S. Huggins
... - John Holmes... - -- Original Message - -From: John S. Huggins [EMAIL PROTECTED] -To: [EMAIL PROTECTED] -Sent: Friday, June 14, 2002 11:37 AM -Subject: [PHP] Beginning / and end of word / in eregi_replace - - - - Can it be true that PHP does not implement the beginning and end of word - syntax

Re: [PHP] md5 php vs. md5 perl

2002-06-16 Thread John S. Huggins
On Sun, 16 Jun 2002, Danny Kruitbosch wrote: -Hi, - -I'm trying to rewrite a perl finction to php. The function uses Digest::MD5. - -PHP md5() returns a 32 char hex number. The perl Digest::MD5 function -returns a 16 char (ascii??) string. Can I also get this from PHP? If so -how do I do that?

Re: [PHP] Incrementing a table cell

2002-06-28 Thread John S. Huggins
Table fubar ID, SomeNumber 1 456 2 123 3 3 4 4589 $query = UPDATE fubar SET SomeNumber = SomeNumber+1 WHERE ID = 2; Result Table fubar ID, SomeNumber 1 456 2 124 3 3 4 4589 On Fri, 28 Jun 2002, JJ Harrison wrote: -what is the best way to increment a mySQL

Re: [PHP] Development Tools

2002-07-10 Thread John S. Huggins
Dreamweaver has come along nicely. I have only dabbled at the MX version. Ultraedit, http://www.ultraedit.com/, has proven to be very nice at handling editing tasks of PHP, HTML, SQL, and hundreds of other languages. It can edit files via FTP which was useful to me years ago and continues to

Re: [PHP] rebooting linux using php

2002-07-18 Thread John S. Huggins
On Thu, 18 Jul 2002, Harpreet Kaur wrote: - -Can we reboot a linux server using a php page? Yes. -And is it recommended? No. - -Regards, -Harpreet Kaur - - -_ -Join the world’s largest e-mail service with MSN Hotmail.

Re: [PHP] is php.net down ?

2002-07-22 Thread John S. Huggins
They seem to be working on it. It comes up every few minutes so keep trying. I managed to sneak it just long enough to snag 4.2.2. On Mon, 22 Jul 2002, R'twick Niceorgaw wrote: -Hi guys, -any one else able to get into www.php.net ? - -I'm getting this - -Warning: main(geoip.inc) - No such

[PHP] Cookies

2002-07-24 Thread John S. Huggins
Say it is not so. I hear the PHP 4.2.2 will only set the last cookie delivered by a browser to a variable in the PHP environment. Is this true? ** John Huggins VANet [EMAIL PROTECTED] http://www.va.net/ ** -- PHP

[PHP] List, Key, Value oh my.

2002-04-23 Thread John S. Huggins
I have a problem. I am fetching rows from a MySQL table called temp. Each row has four fields: Name, 1, 2 and 3 Then I do this function which will eventually generate records for a lookup table for any skills in the 1, 2 or 3 fields that equal the string YES associated with the Name (right

Re: [PHP] List, Key, Value oh my.

2002-04-23 Thread John S. Huggins
not Name. On Tue, 23 Apr 2002, John S. Huggins wrote: - -I have a problem. - -I am fetching rows from a MySQL table called temp. Each row has four -fields: Name, 1, 2 and 3 - -Then I do this function which will eventually generate records for a -lookup table for any skills in the 1, 2 or 3 fields

Re: [PHP] List, Key, Value oh my.

2002-04-23 Thread John S. Huggins
value of Name is zero. Try using === to compare type as well -as value. - -miguel - -On Tue, 23 Apr 2002, John S. Huggins wrote: - I forgot to show you some output from this thing... - - ---{0,BLOW, JOE}---Name is BLOW, JOE, Key = 0 | - ---{Name,BLOW, JOE}---Name is BLOW, JOE, Key = Name | - ---{1

Re: [PHP] bulletin board algorithm in php - how to write one?

2002-04-24 Thread John S. Huggins
Recursion is the way I manage this in my forum script. The database table for a particular forum topic does not have any concept of threads in the field data. Each message only knows who its parent is. If the parent ID = 0, then I know this is the first message of a virtual thread. Have a

Re: [PHP] date wierdness

2002-05-03 Thread John S. Huggins
Long ago I saw this same thing and never did resolve it since the easier solution is to let MySQL format the date for you using DATE_FORMAT. Formatting the date using PHP tools from data derived from a query will just drive you nuts. There is some kind of thing that MySQL and PHP don't agree on

Re: [PHP] Create Picture Thumbnails On the gly with PHP

2002-05-03 Thread John S. Huggins
ImageMagic works pretty well. You invoke their command line programs using the shell capabilities of PHP. convert is the particular command you want. On Fri, 3 May 2002, simos wrote: -Hi - -My Hosting Provider has'nt the GD lib in PHP enabled. Are threre any alternative to create jpg

Re: [PHP] adding 60 to a date

2002-05-07 Thread John S. Huggins
On Tue, 7 May 2002, Scott St. John wrote: -Morning - -I am working on a password aging system that will force a user to change -their password every 60 days. Can anyone recommend the best method for -taking the current date and adding 60 days to that number? Should I do a -unix

Re: [PHP] How to stop site flipping?

2002-05-13 Thread John S. Huggins
If they reveal themselves in the AGENT info of each web request, you could act on that accordingly in your PHP code by looking at the REQUEST_AGENT variable. I use this tactic to prevent web sucking programs from access my site all at once. On Mon, 13 May 2002, David McInnis wrote: -I have

Re: [PHP] PhP, mysql and pictures

2002-05-27 Thread John S. Huggins
On Mon, 27 May 2002, Ragnar wrote: -Is it possible to display images in a browser that are stored as a blob -column in a mysql table? Or is it better to store images in a direcotory and -display them from there? IMHO it is better to let a file system store the image files and let MySQL

Re: [PHP] .php3 extension?

2002-05-30 Thread John S. Huggins
Somewhere in the apache configuration file you will find something like this... IfModule mod_php4.c AddType application/x-httpd-php .php AddType application/x-httpd-php .php4 AddType application/x-httpd-php-source .phps /IfModule To include the old .php3 extension make it

[PHP] MD5 and Password Security?

2002-08-13 Thread John S. Huggins
On Wed, 14 Aug 2002, Robert Parker wrote: -On Tuesday 13 August 2002 10:57 am, you wrote: - MD5 encryption of passwords is secure since you do not need to decrypt the - password ever (in fact you can't). You just encrypt the password that the - user entered and check if the MD5 of each password

Re: Re[2]: [PHP] Credit Card suggestions

2002-08-13 Thread John S. Huggins
On Wed, 14 Aug 2002, Robert Parker wrote: -On Tuesday 13 August 2002 12:20 pm, you wrote: - Makes sense, except if you use upper and lowercase characters, - numbers, and symbols (as you should for secure passwords). I - would think that with these kind of passwords, storing the sheer - number of

Re: Re[2]: [PHP] Credit Card suggestions

2002-08-13 Thread John S. Huggins
On Wed, 14 Aug 2002, Robert Parker wrote: -On Tuesday 13 August 2002 12:20 pm, you wrote: - Makes sense, except if you use upper and lowercase characters, - numbers, and symbols (as you should for secure passwords). I - would think that with these kind of passwords, storing the sheer - number of

Re: [PHP] MySQL vs. basic text file

2002-09-23 Thread John S. Huggins
I was doing this too with good old AWK CGI scripts and text data files. Once I imported the data into MySQL I said, Well this is not much benefit. Then I started sorting. Then I accessed the information from a different application. Then I wrote a maintenance application so my customer could

Re: [PHP] Adding to a MySql Database

2002-09-24 Thread John S. Huggins
On Tue, 24 Sep 2002, The New Source wrote: -I have a field on a MySql database that is started with a 0, and I want -to add 1 to this field every time a button is pressed on a form. So it -should add one every time, like if there is 5 and you press it one time -it would have 6. - UPDATE table

[PHP] PHP General Archive

2001-10-30 Thread John S. Huggins
Hello folks. I am yet another person having difficulty with 4.0.6 and GD graphic support. It has been a while since I have been on this list so I want to search the archives of this group. Where are the archives? I remember some archive last year with a black background. Thanks.

Re: [PHP] Version Contol for PHP site

2001-11-19 Thread John S. Huggins
On 19 Nov 2001, Jeff Bearer wrote: -Is anybody doing something like this with their PHP development? Any -direction from a working implementation would be great. And what do you -think about the VNC idea that I just came up with? - VNC in a fine tool, but I think not needed for this. Here is

Re: [PHP] pipe email to php?

2001-11-24 Thread John S. Huggins
The forum PHP program package Phorum has something like this available. I believe it is a file called phorummail.php. I remember using it as a basis for another program and it really does a good job of indentifying and splitting headers and body of emails into assorted variables. On Sun, 25

Re: [PHP] getting a user's ip address

2001-11-29 Thread John S. Huggins
On Thu, 29 Nov 2001, Ken Savage wrote: -Super new to PHP but I'm putting in the effort to learn quickly. -How would I output the user's IP address in a php file. - -I want the webpage to say... - -Your IP address is xx.xx.xx.xx Try finding it in these variables:

Re: [PHP] generating text file from php

2001-11-30 Thread John S. Huggins
On Fri, 30 Nov 2001, David Tod Sigafoos wrote: -I have a script which generates html and writes out for users to -download. The script works and the html file works. - -I build strings of html then writeout with fwrite. - -My question is how can i add linefeeds to the strings? \n or maybe

Re: [PHP] md5 decrypt

2001-12-05 Thread John S. Huggins
On Wed, 5 Dec 2001, Dan McCullough wrote: -Is there away to take a md5 encrypted password and decrypt it and give that to the client, if they -fogot their password. No. - -= -dan mccullough - -Theres no such thing as a problem unless

Re: [PHP] intergration?

2001-12-13 Thread John S. Huggins
I have these issues too and the only thing I knew to do was develop my own user management system with a simple interface to other programs. My other programs are custom too. I used Tim Perdue's user system as a code base so I am duty bound to distribute my changes to the open source crowd

Re: [PHP] Jpgraph troubles

2003-05-29 Thread John S. Huggins
On Wed, 28 May 2003, Jordan Elver wrote: -Hi, -I've been creating some graphs using jpgraph and they work really well when I -view them directly i.e. directly through the script. My problem comes as soon -as I try to display them using the DEFANGED_IMG tag within another page. When I do: -

Re: [PHP] oasis banners - ot -

2003-06-05 Thread John S. Huggins
On Tue, 3 Jun 2003, Ryan A wrote: -Hi, -I have decided to check out Oasis banner software but cant figure out how -to install it in my shared hosting planbecause it says something about -compiling it into apache or php etc which has gotten me totally confused. -Anybody here worked with Oasis

Re: [PHP] Mail Username

2003-06-10 Thread John S. Huggins
You can add extra info into the appropriate fields like so. mail([EMAIL PROTECTED], the subject, $message, From: [EMAIL PROTECTED],[EMAIL PROTECTED]); However, your local sendmail might restrict this behavoir of changing the sender identity. Mine simply complaines about it in the mail

Re: [PHP] nl2br() Function for Paragraphs?

2003-06-11 Thread John S. Huggins
On Wed, 11 Jun 2003, Nick Wilson wrote: -Hello everyone, - -Has anyone written a function that does what nl2br() does but wraps text -in a p/p's instead? I'm a bit of a clean html type and nl2br() just -leaves me wishing there was a better way... Several examples appear in the user comments

Re: [PHP] piping email directly into PHP

2003-06-11 Thread John S. Huggins
On Wed, 11 Jun 2003, Adrian Teasdale wrote: -Hi there - -We are wanting to create a little help/crm tool for internal use. Rather -than reading (and parsing) in an email from a pop account, is it now -possible to pipe email in directly to a database via PHP? If so, any -pointers on how to do it

Re: [PHP] mysql stored procedures

2002-10-11 Thread John S. Huggins
On Fri, 11 Oct 2002, electroteque wrote: -when is this being implemented ? Perhaps in version 4.1 of the MySQL server. Have a look near the bottom of this page... MySQL 4.1, the following development release http://www.mysql.com/products/mysql-4.0/index.html - - - --- -PHP General

Re: [PHP] PHP in crontab job

2002-10-11 Thread John S. Huggins
On Fri, 11 Oct 2002, Sharat Hegde wrote: -Hello, - -I am having a problem at my ISP relating to execution of PHP commands from -the crontab command. My ISP told me to have a look at the following URL, but -despite following these instructions, the crontab job is not being executed.

Re: [PHP] php and databases

2002-10-25 Thread John S. Huggins
On Fri, 25 Oct 2002, Tyler Durdin wrote: -Is there anyway to have php convert a database from mySQL to Access via a -webpage? I have a couple of people here who use Access to do mail merging -things with word and it would make my life a ton easier if I did not have to -convert the db's