Re: RE: trash last message ,this ones right I think
| From: | Tom Peck | Date: | Wed, 11 Jul 2001 01:44:26 +0000 |
| Subject: | Re: RE: trash last message ,this ones right I think | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-10262@lists.php.net to get a copy of this message | ||
Ken
If the util site is going to be part of the main site, why don't you put it in the www folder? ie. /htdocs/www/util/ the idea for different site roots is so that you can keep different sites separate.
If you had the root as /htdocs/ for all, then the website address would be: http://www.yourdomain.com/www/index.php or wat eva.. not very nice..
Tom
At 18:26 10/07/2001 -0700, you wrote:
Thanks again, why couldn't the main root be /htdocs/ ? ken ----- Original Message ----- From: "Tom Peck" <tom@masaclaw.co.nz> To: "Ken Sommers" <mrsql.php@worldnet.att.net>; <php-db@lists.php.net> Sent: Tuesday, July 10, 2001 6:05 PM Subject: Re: [PHP-DB] RE: trash last message ,this ones right I think 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 gobackto /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 thinkwebThe problem is that they are completely different websites, from thethebrowser point of view - even though they are so close to each other onutilserver... 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 thebackground="http://www.consumergrapevine.org/img/background.jpg">folder, then you have to use: <bodycouldSo that the browser can reach the image file. Tom At 17:30 10/07/2001 -0700, you wrote:/htdocs/util/Hello again, DOCUMENT_ROOT is...... /htdocs/www I have a php file ( showdatabases.php) in my subdomain areait 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 imovecanthem, and fix all references to them) but I like them there because Ithem..something...ofrefer to images in pages in /www/ with background="img/bgpic.jpg"too,,andcourse 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 pagesof course I don't want to have another dir with the same pics inanotherlike... /htdocs/util/img/ becuz I already have the pics in /htdocs/www/img/ and if I makesubAGAINdomain called /htdocs/stuff , I don't want to have to copy the picsshouldinto /htdocs/stuff/img right? So,,, (yes I may be getting to the end now..) how or whereIphp-list-admin@lists.php.netput 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 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