This isn't exactly PHP I need help with, but it relates to what I learned
about security. Up until now, I have been using *.inc extensions for my
include files. Well, I didn't realize until recently that anyone can view
these files. So, I want to rename them to *.inc.php. BUT, in almost all of
Not to pimp my own site, but Amdmb.com ( http://www.amdmb.com/ ) uses MySQL
and PHP for everything. We get about 5 million pages a month.
Ryan Shrout
-Original Message-
From: Unni [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 26, 2001 12:59 PM
To: Chad Day
Cc: Maurice Rickard; [EMAIL
Here is the code I am trying to use:
setcookie('admin2amdmb',mysql_result($user_result, 0,
Username),time());
$tdate = date ('Y-m-d h:i:s', time());
$success_query = "INSERT
INTO session (SessionID, IP, Login, Sucess, Date)
In a lot of PHP code that I have seen, there are lines such as this:
mysql_connect('localhost', 'mysql_login()', 'mysql_password()');
that is used to "hide" the login and password from someone should they
somehow view the code instead of the output of the PHP file. My question
is, how do I set
When I run: SELECT * FROM session WHERE session.Date > DATE_SUB(NOW(),
INTERVAL 1 HOUR)
I get an empty set, but there are entries that satisfy it.
When I run: select Date from session order by Date desc limit 10
I get:
+-+
| Date|
+-+
| 200
Heh. :)
So, does anyone know what I am doing wrong?
Ryan Shrout
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 24, 2001 3:34 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Re: Date/Time Query Help
On Tue, 24 Jul 2001 15:23:10 -0400, [EMAIL PR
Think of it this way:
WHERE session.Date > DATE_SUB(NOW(), INTERVAL 1 HOUR) is equal to:
WHERE 2001-07-24 15:03:24 > SUBTRACTION( 2001-07-24 15:30:21, 00:01:00) =
WHERE 2001-07-24 15:03:24 > 2001-07-24 14:30:21
That seems right now, but it doesn't work
Ryan
-Original Message-
From: [
Okay, I need help with this one:
I have a table with a column in the MySQL DATETIME format. (2001-07-24
13:02:02)
I need a MySQL query that will select all the entries in it made within the
last hour.
I tried this, but it is not working correctly, what am I doing wrong?
SELECT *
How can I keep fields in a form out of the URL?
I am writing a basic PHP/login script to password protect a directory of the
web site (if anyone knows of something pre-made, please do let me know).
But, the first stumbling block is that when sometypes in their
username/password, even when the I
Why not just pass a variable:
and then in the PHP file do:
if ($function) {
function();
}
Ryan Shrout
Amdmb.com
-Original Message-
From: Geer [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 11, 2001 1:17 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Function call from a hyperlink
I don't really no how to word this. How can I use a single PHP to update
two sides of a framed page?
like a call to: add.php?add=4ffqe45&manual=123.33&fn=ex1
I want it to update the left frame with a call to:
http://serverview_cart.php?add=4ffqe45
and I want it to update the right frame with
Here is the problem I am facing now. I have a site, with a sort-of shopping
cart but heavily modified for the job it does. The site uses 2 frames: 1
for the cart and 1 for the content.
The customer has Acrobat PDF files that they want links in to add things to
the 'cart'. If PDF files had the
I know this really isn't a correct list, but I know most of you have
experience in getting hosting, etc and you have been very helpful in my PHP
troubles, so maybe you can help me here, too! :)
Anyway, my site is currently colocated at a small ISP, that charges as
follows:
$265 - 2U rackspace +
ppear that sendmail is not configured to allow others to use
it? Is there a quick easy way to fix this?
Thanks!
Ryan
-Original Message-
From: Michael Geier, CDM Systems Admin [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 02, 2001 10:57 AM
To: Shrout, Ryan
Subject: RE: [PHP] mail function
al Message-----
From: Shrout, Ryan [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 02, 2001 3:30 PM
To: PHP Mailingliste
Subject: RE: [PHP] mail function fails
I tried that in this format:
if ( mail("[EMAIL PROTECTED]", "Quote Request", $message, "From:
[EMAIL PROTE
Tim Taubert | [EMAIL PROTECTED] | http://www.shogunat.com/rg/
-----
-Original Message-
From: Shrout, Ryan [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 02, 2001 3:01 PM
To: '[EMAIL PROTECTED]'
Subject: [PHP] mail function fails
I am havi
I am having a problem with the PHP mail() function. Here is the code:
if (mail ("[EMAIL PROTECTED]", "Quote Request", $message)) {
echo "Email sent!";
} else {
echo "Email NOT sent!";
}
Everytime, I receive the Email NOT sent message and the email isn't sent.
However, from the
17 matches
Mail list logo