[PHP] Find and Replace

2001-07-30 Thread Shrout, Ryan
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

[PHP] HTTP_REFERRER Problem

2001-07-26 Thread Shrout, Ryan
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)

RE: [PHP] Example high-profile PHP sites

2001-07-26 Thread Shrout, Ryan
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

[PHP] Security Question

2001-07-25 Thread Shrout, Ryan
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

[PHP] Date/Time Query Help

2001-07-24 Thread Shrout, Ryan
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 *

RE: [PHP] Re: Date/Time Query Help

2001-07-24 Thread Shrout, Ryan
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:

RE: [PHP] Re: Date/Time Query Help

2001-07-24 Thread Shrout, Ryan
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

RE: [PHP] Re: Date/Time Query Help

2001-07-24 Thread Shrout, Ryan
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| +-+ |

RE: [PHP] Function call from a hyperlink

2001-07-11 Thread Shrout, Ryan
Why not just pass a variable: a href=file.php?function 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]

[PHP] Bandwidth?

2001-07-05 Thread Shrout, Ryan
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

[PHP] Frames, PDF and links problem

2001-07-05 Thread Shrout, Ryan
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

[PHP] how can I call a link? ??

2001-07-05 Thread Shrout, Ryan
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=4ffqe45manual=123.33fn=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 a

[PHP] mail function fails

2001-07-02 Thread Shrout, Ryan
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 console

RE: [PHP] mail function fails

2001-07-02 Thread Shrout, Ryan
/ - -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 having a problem with the PHP mail() function. Here is the code: if (mail ([EMAIL PROTECTED], Quote Request

RE: [PHP] mail function fails

2001-07-02 Thread Shrout, Ryan
] | http://www.shogunat.com/rg/ - -Original 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

RE: [PHP] mail function fails

2001-07-02 Thread Shrout, Ryan
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 fails