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
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
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
: [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
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
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
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)
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
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
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
10 matches
Mail list logo