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"); th

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 in another file right? If you call petdata.php by itself, you should see just the image. JD -Original Mes

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]&g

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 I

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] Viewing Session Varibles

2002-02-07 Thread JD Daniels
Like so: echo""; print_r($_SESSION); echo"": 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 an e

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] 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 writ

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

2001-07-28 Thread JD Daniels
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,

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

2001-07-24 Thread JD Daniels
There is a fantastic class that takes care of writing .ht* files... look here: http://phpclasses.upperdesign.com/ -Original Message- From: Samuel Torton [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 24, 2001 6:40 AM To: [EMAIL PROTECTED] Subject: [PHP-DB] 'htaccess" method : how to modi

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 sear

[PHP-DB] Advice On Building Dynamic MySQL Queries

2001-04-19 Thread JD Daniels
I am building a query from a search form. This is the code I have now: if (!empty($whereclause)) { $whereclause=urldecode($whereclause); $whereclause=stripslashes($whereclause); } extract($HTTP_POST_VARS); if (!empty($

Re: [PHP-DB] Forms and PHP

2001-04-17 Thread JD Daniels
ields is or: echo $HTTP_POST_VARS[]; If This works, you need to change the track_vars in php.ini JD Daniels -Original Message- From: JD Daniels Sent: Sunday, April 15, 2001 7:44 PM Subject: [PHP-DB] Forms and PHP >From [EMAIL PROTECTED] Sun Apr 15 19:34:23 2001 Return-Path