Re: RE: trash last message ,this ones right I think

From: Date: Wed, 11 Jul 2001 01:05:03 +0000
Subject: Re: RE: trash last message ,this ones right I think
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-10259@lists.php.net to get a copy of this message
Yes that is correct. Your main site root is: /htdocs/www/ And your sub site (util) root is /htdocs/util/ These are two different sites from the browser's point of view. Neither site will have access to anything below the root folder (from the browser). Tom At 18:02 10/07/2001 -0700, you wrote:
Thanks Tom and sorry I didn't mention it properly at first,, I was trying to analyse the problem. is it becuz the first part of the referenece being the ../ in <body background="../www/img/background.jpg"> the ../ wants to take the browser into illegal territory above the root? because we are starting from /htdocs/util so the ../ would try to go back to /htdocs which is above the root (/htdocs/www) illegal territory. just tryin to understand it thanks , Ken ----- Original Message ----- From: "Tom Peck" <tom@masaclaw.co.nz> To: <php-db@lists.php.net> Sent: Tuesday, July 10, 2001 5:50 PM Subject: Re: [PHP-DB] RE: trash last message ,this ones right I think The problem is that they are completely different websites, from the web browser point of view - even though they are so close to each other on the server... You should have mentioned this was a sub domain site :-) If you REALLY don't want to copy the image from the www folder to the util folder, then you have to use: <body background="http://www.consumergrapevine.org/img/background.jpg"> So that the browser can reach the image file. Tom At 17:30 10/07/2001 -0700, you wrote:
Hello again, DOCUMENT_ROOT is...... /htdocs/www I have a php file ( showdatabases.php) in my subdomain area
/htdocs/util/
it loads up just fine: and if you click it, you will see my database structure if you like..:) http://util.consumergrapevine.org/showdatabases.php I have images stored in /hdocs/www/img/ right now (of course i could
move
them, and fix all references to them) but I like them there because I can refer to images in pages in /www/ with background="img/bgpic.jpg"
...of
course this works just fine becuz /img/ is just down from /www/. but now I have pages in subdomains as menitoned above like: /htdocs/util/showdatabases.php and of course I want to refer to images from those subdomain pages
too,,and
of course I don't want to have another dir with the same pics in them..something like... /htdocs/util/img/ becuz I already have the pics in /htdocs/www/img/ and if I make another
sub
domain called /htdocs/stuff , I don't want to have to copy the pics AGAIN into /htdocs/stuff/img right? So,,, (yes I may be getting to the end now..) how or where should
I
put my pics so the /www/ and /util/ and /stuff/ guys can use them as background pics? what would the body tag look like? <body background="../www/img/background.jpg"> doesn;t work what will? <body background="What??????"> thanks again, Ken -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net For additional commands, e-mail: php-db-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net For additional commands, e-mail: php-db-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net


« previous php.db (#10259) next »