RE: [PHP-DB] include() statement hell!

2002-03-28 Thread JD Daniels
I have found the best way for me is always include with the fullpath ie, include(/usr/httpd/mysite/include.inc); or: include($_SERVER['DOCUMENT_ROOT']/include.inc); Then you can include files that are elswhere: include(/usr/httpd/virtual-domain-includes/multi-user-include.inc); these

RE: [PHP-DB] I'm really stuck!

2002-03-01 Thread JD Daniels
Try doing echo stripslashes($data); Or try setting the content type to text/plain - This should echo back gobblygook (Just so you know that there IS image data there. Also.. you have img src=\petdata.php?id=$id\ in another file right? If you call petdata.php by itself, you should see just the

RE: [PHP-DB] Re: A good tutorial

2002-02-19 Thread JD Daniels
I am just going to interject a second here... sorry :P About storing images on a server... I did that for awhile, but once i hit 1000+ images, my scripts started timing out.(from reading the directory) Storing them in the DB seems to actually improve performance for php... Another issue is that

RE: [PHP-DB] Re: A good tutorial

2002-02-19 Thread JD Daniels
: [PHP-DB] Re: A good tutorial Hi again JD...I got to thinkin':) Just out of curiosity...how many images were you bringing back from the db when your script timed out? I store the path of my image in the db and echo it out when I need to. Cheers Joe:) Jd Daniels [EMAIL PROTECTED] wrote

RE: [PHP-DB] Converting upper case letters to lower case because of db??

2002-02-07 Thread JD Daniels
strtolower() -Original Message- From: Andy [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 07, 2002 8:08 AM To: [EMAIL PROTECTED] Subject: [PHP-DB] Converting upper case letters to lower case because of db?? Hi there, I have a tabel with 250 entries showing a country code lik CA

RE: [PHP-DB] Viewing Session Varibles

2002-02-07 Thread JD Daniels
Like so: echopre; print_r($_SESSION); echo/pre: I think for PHP less 4.04, you need $HTTP_SESSION_VARS Instead. JD -Original Message- From: Robert Weeks [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 07, 2002 8:45 AM To: php Subject: [PHP-DB] Viewing Session Varibles Is there

RE: [PHP-DB] Viewing Session Varibles

2002-02-07 Thread JD Daniels
hmmm... If I was you.. I would make your cart an object.. build a simple class like: class Cart { var $items; function Cart() { $this-items=Array(); } function Add_To_Cart($item) { if(!in_array($item,$this-items)

RE: [PHP-DB] File Uploading... Two problems...

2002-02-05 Thread JD Daniels
I believe when PHP saves a file, it is already owned by the web server user. In my case, nouser. I could not get this behaviour to change. Normally you should not need to CHMOD or CHOWN anything you upload unless you need them to be modified by ftp users as well. Just make sure the folder is

RE: [PHP-DB] 'htaccess method : how to modify passwords from PHP scripts ?

2001-07-28 Thread JD Daniels
for the confusion. JD -Original Message- From: Caleb Walker [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 25, 2001 6:56 PM To: JD Daniels; Samuel Torton Cc: php Subject: Re: [PHP-DB] 'htaccess method : how to modify passwords from PHP scripts ? On Tuesday 24 July 2001 10:22 am, JD Daniels

Re: [PHP-DB] Advice On Building Dynamic MySQL Queries

2001-04-20 Thread JD Daniels
Thanks for the replies :) Victor's suggestion put me on the right track. (I still have trouble with language constructs) Heres what I have now.. All I need to do is name my form fields with the same name as the column names from the mysql table, and presto! now I can just add/remove from the