Justin Farnsworth [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
You may have different behaviour between browsers, but you
are never going to be able to use this method reliably because
of the vagaries of times encountered on the client side.
Just look at the
I know that credit cards have standard formats: There's a standard
number of digits, and whether the card is Visa, MC, Amex, etc is
encoded in the number, and there is some kind of checksum, and I think
the expiration is also encoded in the number. All of this is obvious
stuff that anyone
On Mon, Jul 16, 2001 at 05:19:41PM +0300, Marius Andreiana wrote:
În 16 Jul 2001 09:07:17 -0500 garman a scris:
I forgot to mention that I already looked into the PDF extensions.
Although
it looks like it would do exactly what I want, the PDFLib isn't free for
You can generate xml in
http://www.phpinsider.com/php/code/Smarty/
Version 1.4.4
-
- fixed problem with including insecure templates with security
enabled
(Monte)
- numerous documentation updates. (Monte)
- added ENT_QUOTES to escapement of html. (Monte, Sam Beckwith)
- implemented
On 16 Jul 2001, Dr. Evil wrote:
I'm wondering if anyone can refer me to a site that describes what
this format is, so I can write some PHP code that will check to see if
a credit card number format is correct. I don't even want to try to
run the card through my merchant account if the
I'm trying to parse an existing html file using php.
I need to use regex to find the first (and only the first) occurance of i
and the last (and only the last) occurance of /i in a string.
They will be replaced with ||.
example of a string:
blah blah isome stuff/i that i ineed to get/i blah
Dr. Evil pressed the little lettered thingies in this order...
I know that credit cards have standard formats: There's a standard
number of digits, and whether the card is Visa, MC, Amex, etc is
encoded in the number, and there is some kind of checksum, and I think the
expiration is also
John Donagher pressed the little lettered thingies in this order...
My suggestion is to run an authorization for an extremely small amount of
money ($1.00 is fairly standard) and that will tell you if the account is
valid or not. Doing validation yourself implies a fully-publicly-understood
Christopher Ostmo wrote:
By law, the numbers are supposed to be
generated at random and not generated by any kind of algorithm or
formula.
CC# must pass the Luhn MOD 10 formula, so the generated numbers can't be
(totally) random - they have to conform to the formula.
Also, not all
The check you want is called a MOD10 check. Most of the script libraries
have sample code. I found sample codes there. However, when I needed it, I
had to write it in ASP code. Here is the code that I use;
IF AccountNoLength 16 THEN
ERRORState = TRUE
ErrorMssg =
Christopher Ostmo wrote:
My suggestion is to run an authorization for an extremely small amount of
money ($1.00 is fairly standard) and that will tell you if the account is
valid or not. Doing validation yourself implies a fully-publicly-understood
Maybe I am the only one, but I would
Dr. Evil pressed the little lettered thingies in this order...
Thanks for the tip, but... there is a checksum in the CC card, which
is worth checking. Some others have sent me some code that checks
that. Or is that no longer valid?
Actually, I saw that... and maybe I'm wrong.
When I
Dr. Evil wrote:
I'm wondering if anyone can refer me to a site that describes what
this format is, so I can write some PHP code that will check to see if
a credit card number format is correct. I don't even want to try to
run the card through my merchant account if the format is obviously
At the organization I'm interning at this summer, we have an intranet web.
My job is to update, maintain and enhance it.
On the main intranet web page, there's a weather channel magnet that
displays the local weather conditions. Now, since not everyone has
inTERnet access, some people simply
An authorization does not necessitate
a sale, it is a verification of available funds.
Jerry Lake
Interface Engineering Technician
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com
-Original Message-
From: Christopher Ostmo [mailto:[EMAIL
I ran across this function awhile back and it is what we use.
---
function CCValidationSolution ($Number) {
global $CardName;
# 1) Get rid of spaces and non-numeric characters.
$Number = OnlyNumericSolution($Number);
Ashley M. Kirchner pressed the little lettered thingies in this order...
Christopher Ostmo wrote:
By law, the numbers are supposed to be
generated at random and not generated by any kind of algorithm or
formula.
CC# must pass the Luhn MOD 10 formula, so the generated numbers
On Mon, 16 Jul 2001, Christopher Ostmo wrote:
John Donagher pressed the little lettered thingies in this order...
My suggestion is to run an authorization for an extremely small amount of
money ($1.00 is fairly standard) and that will tell you if the account is
valid or not. Doing
Christopher Ostmo wrote:
What companies issue card numbers that are not 16 numbers? Are
they non-US cards? I haven't ever seen a card that wasn't 16 numbers.
The ones I care for when I do eCommerce apps:
Visa: 13, or 16 digits
MasterCard: 16
AmEx: 15
You could do it using the strpos() function to find the index of the first
occurance of i and strrpos() for the last occurence. Then use
substr() to grab what you want...
On Mon, 16 Jul 2001, Julian Simpson wrote:
I'm trying to parse an existing html file using php.
I need to use regex to
Christopher Ostmo wrote:
Dr. Evil pressed the little lettered thingies in this order...
I know that credit cards have standard formats: There's a standard
number of digits, and whether the card is Visa, MC, Amex, etc is
encoded in the number, and there is some kind of checksum, and I
$reqmonth = ${explode(-,$row[5])}[1];
Is there anyway I can get that to work without having to use multiple lines
of code?
John Donagher pressed the little lettered thingies in this order...
Note, I said authorization, not charge. An authorization is a form of sale
which is really a two-step process. The authorization places a hold on the
funds, and then a capture transaction is initiated which indicates that
list (,$reqmonth) = explode ('-', $row[5]);
--zak
- Original Message -
From: Adam Plocher [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 16, 2001 5:23 PM
Subject: [PHP] explode()
$reqmonth = ${explode(-,$row[5])}[1];
Is there anyway I can get that to work without having
On Mon, 16 Jul 2001 16:23:19 -0700, Adam Plocher
([EMAIL PROTECTED]) wrote:
$reqmonth = ${explode(-,$row[5])}[1];
Is there anyway I can get that to work without having to use
multiple lines
of code?
hmm... how about
$reqmonth = array_pop(explode(-,$row[5],2));
--
PHP General Mailing List
$arr = explode(-,$row[5]); $reqmonth=$arr[1];
Well, it's all on one line.
At 16:23 16/07/2001 -0700, Adam Plocher wrote:
$reqmonth = ${}[1];
Is there anyway I can get that to work without having to use multiple lines
of code?
-
Brian White
Step Two Designs Pty Ltd
From 'John Donagher':
accounts, and too many bogus cards would not look good.
My suggestion is to run an authorization for an extremely small amount of money
($1.00 is fairly standard) and that will tell you if the account is valid or
not.
Bad idea.
Some software, in particular that from
On 17 Jul 2001, Steve Sobol wrote:
From 'John Donagher':
accounts, and too many bogus cards would not look good.
My suggestion is to run an authorization for an extremely small amount of money
($1.00 is fairly standard) and that will tell you if the account is valid or
not.
Bad
while ($z = $Number_Children) {
error if (${element2$z} == select) {
Looks to me like $z is never reaching $Number_Children.
Jason
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To
I know $Number_Children is 2. I printed it. And $z starts out as 1.
I don't think that's it.
Jeff Oien
while ($z = $Number_Children) {
errorif (${element2$z} == select) {
Looks to me like $z is never reaching $Number_Children.
Jason
--
PHP General Mailing List
Why is $Number_Children in quotes?
On Mon, 16 Jul 2001, Jeff Oien wrote:
I know $Number_Children is 2. I printed it. And $z starts out as 1.
I don't think that's it.
Jeff Oien
while ($z = $Number_Children) {
error if (${element2$z} == select) {
Looks to me like $z is never
I don't know. :) I tried again without $Number_Children in quotes
and still get the timeout but on a different line (3 lines down). It
seems it isn't necessarily a specific line causing it.
Jeff Oien
Why is $Number_Children in quotes?
On Mon, 16 Jul 2001, Jeff Oien wrote:
I know
Well, get rid of the quotes around $z=1; and $Number_Children to start
with. Then print out $z inside the loop to see what it is doing. Surely
it is somehow not hitting the condition.
-Rasmus
On Mon, 16 Jul 2001, Jeff Oien wrote:
I don't know. :) I tried again without $Number_Children in
Surely it is somehow not hitting the condition.
-Rasmus
I coulda sworn I said that ;)
But then I guess it carries more weight when Rasmus says it...
Jason
--
Jason Murray
[EMAIL PROTECTED]
Web Developer, Melbourne IT
Work now, freak later!
--
PHP General Mailing List
Jeff Oien pressed the little lettered thingies in this order...
I get a 30 timeout on the line indicated when executing this code
and can't figure it out. Does anyone know why? Thanks.
Jeff Oien
You should pay attention to which variables are in quotes and which are
not. PHP (and every
Jeff Oien pressed the little lettered thingies in this order...
One more thing...
error if (${element2$z} == select) {
I'm not sure f this has anything to do with it, but I have never made
variable variables work when specified like the above. Try:
${element2.$z}
I quite honestly
On 16 Jul 2001 22:12:24 -, Dr. Evil [EMAIL PROTECTED] wrote:
I know that credit cards have standard formats: There's a standard
number of digits, and whether the card is Visa, MC, Amex, etc is
encoded in the number, and there is some kind of checksum, and I think
the expiration is also
I found out what was most likely the problem. I had missing bracket and
then an extra one. I marked them as such below.
In any case I learned a whole bunch more stuff in the process. Thank
you very much for your help. And sorry Jason didn't mean to make it
look like I snubbed you or anything.
Dear people,
I have an email link on my page like this
a href=mailto:[EMAIL PROTECTED]; Big George /a
and I want to know how may people click on on this particular link to keep the record,
may be insert this record into a table as well ( but don't erally have to) Is there
any technique at all
Hi all, Im getting mighty frustrated with this peice of code. It checks the
first condition no probs, but the second IF statement doesnt work. So it
will stop if it finds a du[plicate login, but cannot find duplicate
passwords. the $num_rows2 variable always gets the value '0' even when there
is
Hi all, Im getting mighty frustrated with this peice of code. It checks the
first condition no probs, but the second IF statement doesnt work. So it
will stop if it finds a du[plicate login, but cannot find duplicate
passwords. the $num_rows2 variable always gets the value '0' even when there
I posted this late on Sunday afternoon, so it may have been overlooked.
I haven't figured it out yet, so I'm reposting in the hopes someone can
help. Thanks.
---
I'm modifying some code for ampache (ampache.kveton.com) and have run
into a snag that I'm not sure I
Hi Kurt,
So, am I correct in assuming that $song will never be considered an
array? (basically, given the above code and URL, $song will
always equal 102)
If .pls is a PHP file, then in my experience yes you're right.
However, I've never seen a PHP file called .pls, it may be
something
Rasmus,
you are dead right, it is returning 0 rows. I checked that before
submiytting the original post. Sorry, i should have mentioned it. I guess
the question is, why is it returning no rows?
From: Rasmus Lerdorf [EMAIL PROTECTED]
Date: Mon, 16 Jul 2001 19:56:29 -0700 (PDT)
To: Brad Wright
If PHP won't overload them to an array, you could parse $QUERY_STRING
manually.
-Original Message-
From: Jason Murray [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 11:06 PM
To: 'Kurt Lieber'; 'PHP General List (E-mail)'
Subject: RE: [PHP] REPOST: converting multiple URL
On Tue, 17 Jul 2001 12:37, Brad Wright wrote:
From: Rasmus Lerdorf [EMAIL PROTECTED]
Date: Mon, 16 Jul 2001 19:56:29 -0700 (PDT)
To: Brad Wright [EMAIL PROTECTED]
Cc: PHP General List [EMAIL PROTECTED]
Subject: Re: [PHP] Whats wrong with this code?
Hi all, Im getting mighty
Rasmus,
you are dead right, it is returning 0 rows. I checked that before
submiytting the original post. Sorry, i should have mentioned it. I guess
the question is, why is it returning no rows?
Uh, that is something we can't answer without having access to your actual
data.
-Rasmus
--
Yep, I realise there was a discrepancy in the table names. That wasnt the
issue , i reposted the corrected code as soon as i realised.
From: David Robley [EMAIL PROTECTED]
Organization: Centre for Injury Studies
Reply-To: [EMAIL PROTECTED]
Date: Tue, 17 Jul 2001 12:53:57 +0930
To: Brad
The only data in the table (Login_TB) is one row:
Login = a, and Pass= password('a').
From: Rasmus Lerdorf [EMAIL PROTECTED]
Date: Mon, 16 Jul 2001 20:24:44 -0700 (PDT)
To: Brad Wright [EMAIL PROTECTED]
Cc: PHP General List [EMAIL PROTECTED]
Subject: Re: [PHP] Whats wrong with this code?
Here is an opportunity that you can take up FREE. If you join as an
affiliate, we'll teach you how to build a profitable business on the
Internet, using our system to create an income stream and earn income
globally, 24 hours a day.
Don't let this opportunity slip past you - our organization
Hi...Experts:
I want to write a library for the PHP on Solaris.
But I don't know how to do and where I should put this
library than PHP could reach it.
Does anybody tell me how to do? Thanks... : )
--
Steven Yu
Mobile: 0916126491
Office:
How about changing link to
a href=mymailer.php?[EMAIL PROTECTED] Big George /a
Where mymailer.php is something like
?php
/*
Do whatever it is you need to do with $email
*/
header(Location: mailto:$email; );
?
( Now watch me get shot down for saying something silly )
At
Sorry -- I should have clarified that .pls has been added as a php file
type in httpd.conf.
-Original Message-
From: Jason Murray [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 8:06 PM
To: 'Kurt Lieber'; 'PHP General List (E-mail)'
Subject: RE: [PHP] REPOST: converting
Hi All-
I'm having trouble with a simple script that allows HTTP upload. It's a
direct copy
of the code available on the PHP web site.
The script works fine on a UNIX machine running PHP 4.0.6 and a Windows 98
machine running 4.0.6.
However when I test it on a Windows NT machine running PHP
I must be doing something wrong with the headers. Can someone send me an
example of how to send a message with multiple addresses as BCCs?
It is a program i wrote that builds the header from multiple email
addresses in a database. The people on the emails are not getting the
message.
Thanks in
I must be doing something wrong with the headers. Can someone
send me an example of how to send a message with multiple addresses
as BCCs?
mail([EMAIL PROTECTED],
Subject Line
Email Contect,
Bcc: [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]\n);
Jason
--
PHP
Hi,
I am teaching a fellow worker PHP. He is, like other 'students' I had working
on a small project with database interaction.
This approach worked pretty well with previous people i teached PHP, but they
already had some sort of programming background. This guy hasn't. I find that
he has
This approach worked pretty well with previous people i teached
PHP, but they already had some sort of programming background.
This guy hasn't. I find that he has some difficulties picking
it up. And I have some difficulties to further help him.
Is he having problems with PHP, or
I am using sessions to track visitors to my site, and one of the things I'd
like to do is add a time-stamp to each entry in my MySQL database. The
problem is that, for some reason, the time-stamp part only seems to work
part of the time. I know it can't be, but it almost seems arbitrary - i
hi all,
a little OT here, but need some quick help. I have a bunch of e-mails to
convert into sql entries and I'm stuck here.
I have:
, John Doe, [EMAIL PROTECTED], ..
I just need to know what's the regex to switch around the name and e-mail
address.
TIA,
@lvin
--
PHP General
Hi all',
I have a mysql_query that reads:
$testResult = mysql_query(SELECT * FROM login_table where Pass =
password('$password')) or die (ouch);
$num_rows = mysql_num_rows($testResult);
the problem is that I keep getting a value of 0 for $num_rows when I know
the table has 1 entry for PAss
I am not sure how easy it would be to learn PHP from scratch without any
prior programming experience...
In my case, knowing C and HTML very well made learning PHP easy as
pie... I think both are great starting points for someone who wants to
do PHP well.
-Original Message-
From:
This approach worked pretty well with previous people i teached
PHP, but they already had some sort of programming background.
This guy hasn't. I find that he has some difficulties picking
it up. And I have some difficulties to further help him.
Is he having problems with PHP, or
$testResult = mysql_query(SELECT * FROM login_table where Pass =
$query = select * from login_table where Pass=password('$password');
then echo $query to the screen and make sure you see what needs to be there.
Also try mysql_error etc.. from the manual
GL
--ccma
--
PHP General Mailing
the problem is (as i understand it), the password function is a mySQL
function and not a PHP function, therefor it works in the context of a
mysql_query, but not as a PHP function (which your suggested code calls).
Unless i have actually defined a function 'password()', calling 'echo
What exactly are you trying to do? Switch around in what way?
Jack
-Original Message-
From: Alvin Tan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 17, 2001 12:43 AM
To: [EMAIL PROTECTED]
Subject: [PHP] regex help
hi all,
a little OT here, but need some quick help. I have a bunch of
Unless i have actually defined a function 'password()', calling 'echo
password('$password') will (...does, i just double checked)
causes a Fatal
Error 'Undefined Function'.
Nice try tho :)
the original mail said to echo $query, which will include some
text in it that says
Some helpful people posted a PHP credit card number verify on this
list. It would verify Visa and MC cards. I made some modifications
to it so that it would verify other types of cards, and return the
type of card it found. That way, you could have something like this
on your webpage:
input
Do you mean to suck down the pre-interpreted scripts from a remote
server?
Can't be done. The server interprets the scripts long before they ever
get put on the network. Your best bet will be to e-mail the admin and
ask =
Ben
-Original Message-
From: Clayton Dukes [mailto:[EMAIL
Jason,
I have tried what yoiu suggested. result is the same.
From: Jason Murray [EMAIL PROTECTED]
Date: Tue, 17 Jul 2001 15:28:11 +1000
To: 'Brad Wright' [EMAIL PROTECTED], Alvin Tan
[EMAIL PROTECTED], PHP General List [EMAIL PROTECTED]
Subject: RE: [PHP] mysql_query problem (more
Hey everybody,
I've been hacking away on some scripts to do various things (primarily,
a job listing and faculty listing database for my work, Oregon State
University), and I've got to admit, I'm pretty new to this stuff, and a
lot of it I'm just hacking away at.
For instance, today, I threw
Yea, I do mean SSH. Oops.
On Saturday 14 July 2001 18:29, you wrote:
You probably mean SSH tunnel, which is quite feasable-- Hank Marquardt
posted this earlier to the list:
--- BEGIN QUOTE ---
Works just fine ... as does postgres --
ssh -N -2 -f -C -c
People,
I have 4 forms in four seperate html pages included directly (no links to
includes) in the same .php file, i have it so all the form actions is
php.self, so when each form is submitted it goes on to display the next form
in line, using if and else statements, of course. I want to be
101 - 173 of 173 matches
Mail list logo