!
Thanks...
Christopher Ostmo
a.k.a. [EMAIL PROTECTED]
AppIdeas.com
Innovative Application Ideas
Meeting cutting edge dynamic
web site needs since the
dawn of World Wide Web time
(1995)
Business Applications:
http://www.AppIdeas.com/
Open Source Applications:
http://open.AppIdeas.com/
got Unix
Yamin Prabudy pressed the little lettered thingies in this order...
anybody know about the Luhn algorithm ??
how can i do that in php
yamin
http://www.zend.com/codex.php?id=31single=1
Christopher Ostmo
a.k.a. [EMAIL PROTECTED]
AppIdeas.com
Innovative Application Ideas
Meeting cutting
:
$result=mysql_query($query,$connection) or die(mysql_error());
Good luck...
Christopher Ostmo
a.k.a. [EMAIL PROTECTED]
AppIdeas.com
Innovative Application Ideas
Meeting cutting edge dynamic
web site needs since the
dawn of Internet time (1995)
Business Applications:
http://www.AppIdeas.com
()) is TRUE, but
you're using an assignment operator (=) and not a comparison operator
(==), so it should always return FALSE. (Can you use an assignment
operator in an if() statement?)
Christopher Ostmo
a.k.a. [EMAIL PROTECTED]
AppIdeas.com
Innovative Application Ideas
Meeting cutting edge dynamic
and the
query succeeds without an error. It succeeds and says 0 rows.
It's a valid query with zero results. A FALSE return from a programming
function indicates an error condition, not the lack of results.
Christopher Ostmo
a.k.a. [EMAIL PROTECTED]
AppIdeas.com
Innovative Application Ideas
Meeting
Mark Roedel pressed the little lettered thingies in this order...
-Original Message-
From: Christopher Ostmo [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 18, 2001 2:43 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] sql query successful
Your statement above is checking
not wish to receive further mailings, please do NOT reply to this
message.
But I do! I do! I LOVE Adult Entertainment. The Godfather and
Shawshank Redemption are two of my favorite movies!
Christopher Ostmo
a.k.a. [EMAIL PROTECTED]
AppIdeas.com
Innovative Application Ideas
Meeting cutting edge
line 7 to this:
$result = mysql_db_query(users, $query) or die(mysql_error());
What is the error after you do that?
Christopher Ostmo
a.k.a. [EMAIL PROTECTED]
AppIdeas.com
Innovative Application Ideas
Meeting cutting edge dynamic
web site needs since the
dawn of Internet time (1995)
Business
/manual/en/function.date.php
http://www.php.net/manual/en/function.mktime.php
Christopher Ostmo
a.k.a. [EMAIL PROTECTED]
AppIdeas.com
Innovative Application Ideas
Meeting cutting edge dynamic
web site needs since the
dawn of Internet time (1995)
Business Applications:
http://www.AppIdeas.com/
Open
that...haven't tested it, but it should be close...
That's a lot of code!
Use date() and mktime() and PHP will do all of this for you in one line.
See my previous post on the subject. I sent *tested* code that will fit on
a single line and will do exactly what the above is doing.
Christopher
operating memory and system
resources.
Decisions, decisions...
Christopher Ostmo
a.k.a. [EMAIL PROTECTED]
AppIdeas.com
Innovative Application Ideas
Meeting cutting edge dynamic
web site needs since the
dawn of Internet time (1995)
Business Applications:
http://www.AppIdeas.com/
Open Source
off of you. If they do get upset, you ought to find a new bank.
Seriously. Many banks would be very happy to have your business, bad
credit card requests and all.
Good luck...
Christopher Ostmo
a.k.a. [EMAIL PROTECTED]
AppIdeas.com
Innovative Application Ideas
Meeting cutting edge dynamic
web
this solution requires sending the card to
the bank for processing to see if the number is valid, it would defeat the
purpose.
Christopher Ostmo
a.k.a. [EMAIL PROTECTED]
AppIdeas.com
Innovative Application Ideas
Meeting cutting edge dynamic
web site needs since the
dawn of Internet time (1995
recall how old the case is, so it
may have been a long time ago.
At any rate, I'm interested to see what you come up with now.
Christopher Ostmo
a.k.a. [EMAIL PROTECTED]
AppIdeas.com
Innovative Application Ideas
Meeting cutting edge dynamic
web site needs since the
dawn of Internet time (1995
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
statement. Sorry.
I was just wrong all around on this one! :-)
Christopher Ostmo
a.k.a. [EMAIL PROTECTED]
AppIdeas.com
Innovative Application Ideas
Meeting cutting edge dynamic
web site needs since the
dawn of Internet time (1995)
For a good time,
http://www.AppIdeas.com/
--
PHP General Mailing
the types are correct
(remove the quotes from around variables for which you expect integers).
If not, then at least you can rest assured that PHP is using the proper
variable types.
Good luck...
Christopher Ostmo
a.k.a. [EMAIL PROTECTED]
AppIdeas.com
Innovative Application Ideas
Meeting cutting edge
don't know what problems may arise when you place
the end variable within the quotes, but I've never been able to make code
work predictably that way.
Christopher Ostmo
a.k.a. [EMAIL PROTECTED]
AppIdeas.com
Innovative Application Ideas
Meeting cutting edge dynamic
web site needs since the
dawn
...
Christopher Ostmo
a.k.a. [EMAIL PROTECTED]
AppIdeas.com
Innovative Application Ideas
Meeting cutting edge dynamic
web site needs since the
dawn of Internet time (1995)
Business Applications:
http://www.AppIdeas.com/
Open Source Applications:
http://open.AppIdeas.com/
--
PHP General Mailing
MySQL by Paul DuBois.
Have fun...
Christopher Ostmo
a.k.a. [EMAIL PROTECTED]
AppIdeas.com
Innovative Application Ideas
Meeting cutting edge dynamic
web site needs since the
dawn of Internet time (1995)
Business Applications:
http://www.AppIdeas.com/
Open Source Applications:
http
it. The fact of the matter is that in
a side-by-side comparison for nearly anything you could conceive of
doing with data storage/retrieval on the web, MySQL is going to have a
decided speed advantage.
This may change with the new release of Postgres.
Christopher Ostmo
a.k.a. [EMAIL PROTECTED
, then this is your problem. The fix was
documented at bugs.php.net and was incorporated into a later version.
When I compiled 4.0.6, I didn't have to make this change.
If you're going to recompile anyway, you may as well upgrade.
Good luck...
Christopher Ostmo
a.k.a. [EMAIL PROTECTED]
AppIdeas.com
capabilities, most (all?) SQL database servers
have support for one-way encryption.
It's not efficient to store user data in PHP scripts (or any other script
for that matter) as was stated in the initial message. If you have access
to a database server, use it.
Christopher Ostmo
a.k.a. [EMAIL PROTECTED
consecutive periods (..), forward slashes or both. This is the method
used at slashdot.
Christopher Ostmo
a.k.a. [EMAIL PROTECTED]
AppIdeas.com
Innovative Application Ideas
Meeting cutting edge dynamic
web site needs since the
dawn of Internet time (1995)
For a good time,
http://www.AppIdeas.com
.
-Original Message-
From: Christopher Ostmo [mailto:[EMAIL PROTECTED]]
Sent: 5 iulie 2001 19:57
To: Adrian Ciutureanu
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] Security of PHP code
Adrian Ciutureanu pressed the little lettered thingies in
this order...
$allowed_path
jail all logins.
Have fun...
Christopher Ostmo
a.k.a. [EMAIL PROTECTED]
AppIdeas.com
Meeting cutting edge dynamic
web site needs
For a good time,
http://www.AppIdeas.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail
($allowed_path./.$file);
That would block any attempt to trick the server into going into another
directory.
You would have to create separate show_source() calls or separate
scripts for each directory that you wish to allow, but nobody will ever get
your /etc/passwd file.
Christopher Ostmo
a.k.a. [EMAIL
are incredibly easy to find, get and
use (even for script kiddies). If your session data is *that* vital, you
should consider using SSL.
This is likely to be true as long as HTTP transmissions are stateless.
Christopher Ostmo
a.k.a. [EMAIL PROTECTED]
AppIdeas.com
Meeting cutting edge dynamic
web
that someone can look over another's
shoulder and write down a 20 character string without the first person
noticing).
Christopher Ostmo
a.k.a. [EMAIL PROTECTED]
AppIdeas.com
Meeting cutting edge dynamic
web site needs
For a good time,
http://www.AppIdeas.com/
--
PHP General Mailing List (http
, you're really going to mess things up regardless of how you
resequence these values. If no other tables interact with this one (or if
you can easily and manually recreate the interactivity), you shouldn't
have any problems.
Christopher Ostmo
a.k.a. [EMAIL PROTECTED]
AppIdeas.com
Meeting
the included web log
as
\' How can I filter out these backslashes so they don't appear on the
final public viewable page?
$var = stripslashes($var);
echo $var;
or
echo stripslashes($var);
http://www.php.net/manual/en/function.stripslashes.php
Have fun...
Christopher Ostmo
a.k.a. [EMAIL
/language.operators.string.php
and assignement operators:
http://www.php.net/manual/en/language.operators.assignment.php
Good luck...
Christopher Ostmo
a.k.a. [EMAIL PROTECTED]
AppIdeas.com
Meeting cutting edge dynamic
web site needs
For a good time,
http://www.AppIdeas.com/
--
PHP General Mailing List (http
= [DIR]
You must have libmcrypt installed on your system (not the entire
mcrypt program, just the libraries) prior to compiling PHP.
Get it here:
http://mcrypt.hellug.gr/
Good luck...
Christopher Ostmo
a.k.a. [EMAIL PROTECTED]
AppIdeas.com
Meeting cutting edge dynamic
web site needs
For a good
for you.
Check out:
http://www.php.net/manual/en/ref.session.php
Christopher Ostmo
a.k.a. [EMAIL PROTECTED]
AppIdeas.com
Meeting cutting edge dynamic
web site needs
For a good time,
http://www.AppIdeas.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL
into
PHP4 as long as HTTP connections remain stateless.
Christopher Ostmo
a.k.a. [EMAIL PROTECTED]
AppIdeas.com
Meeting cutting edge dynamic
web site needs
For a good time,
http://www.AppIdeas.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED
safe_mode On
Do those directives work in .htaccess files too?
According to:
http://www.php.net/manual/en/configuration.php
Admin configuration settings can only be set from within the main
Apache configuration files, and not from .htaccess files.
Christopher Ostmo
a.k.a. [EMAIL PROTECTED
both into a database and check both for each page
request.
If the data being accessed is *that* important that a hacker would go
through that much trouble to hijack a session, you probably should
consider using SSL.
Christopher Ostmo
a.k.a. [EMAIL PROTECTED]
AppIdeas.com
Meeting cutting edge
://www.php.net/manual/en/function.eval.php
The second user contributed note contains an example of how to do this.
Good luck...
Christopher Ostmo
a.k.a. [EMAIL PROTECTED]
AppIdeas.com
Meeting cutting edge dynamic
web site needs
For a good time,
http://www.AppIdeas.com/
--
PHP General Mailing List
need to perform these functions on $key, depending on
your needs.
If you want to put the entire message into the DB, you can insert
$Message at the end of the script or individual values can be inerted
using the $key = $val pairs.
Have fun...
Christopher Ostmo
a.k.a. [EMAIL PROTECTED
MySQL. It covers this
sort of thing rather well.
Good luck...
Christopher Ostmo
a.k.a. [EMAIL PROTECTED]
AppIdeas.com
Meeting cutting edge dynamic
web site needs
For a good time,
http://www.AppIdeas.com/
$linksField1br
$linksField2p;
for ($i = 0; $actorsField1[$i]; $i++) {
echo $actorsField1[$i]br
$actorsField2[$i]p;
}
Or however you want it to be formatted. The end result is that you have
a single SQL query.
Have fun...
Christopher Ostmo
a.k.a. [EMAIL PROTECTED
wouldn't be surprised to see some REALLY good SSH clients
in the freeware community soon.
Have fun...
Christopher Ostmo
a.k.a. [EMAIL PROTECTED]
AppIdeas.com
For a good time,
http://www.AppIdeas.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED
thoroughly and
support for them is much easier to obtain.
If it's not possible to use PCREs, the above links (particularly the first)
whould contain details for just about anything you may need to do with
POSIX REs.
Good luck...
Christopher Ostmo
a.k.a. [EMAIL PROTECTED]
AppIdeas.com
For a good
machine).
You'll be wanting to look into javascript or something more of that flavor.
Good luck...
Christopher Ostmo
a.k.a. [EMAIL PROTECTED]
AppIdeas.com
For a good time,
http://www.AppIdeas.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
for you.
Good luck...
Christopher Ostmo
a.k.a. [EMAIL PROTECTED]
AppIdeas.com
For a good time,
http://www.AppIdeas.com/
--
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 administra
45 matches
Mail list logo