Re: HTML question

From: Date: Tue, 10 Jul 2001 23:27:36 +0000
Subject: Re: HTML question
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-10248@lists.php.net to get a copy of this message
when you load up your web page in your browser, what folder do you see? It is most likely the contents of the www/ folder. If this is the case, then all of your files which you want accessible to the web (ie html and images) need to be somewhere under this. Try putting both the background image and the html file in the www folder, then change your body tag to: <body background="backgroundimage.jpg"> then load up the page. If that works fine, and you want the images in a different folder, create a dir (eg. img ) coming off the www/ folder, then put the background image in there, and change your body tag to: <body background="/img/backgroundimage.jpg"> or <body background="img/backgroundimage.jpg"> If your html file was in the img/ directory, and the image was in the www/ folder, so it looks like this: /www/img/file.html /www/backgroundimage.jpg then your body tag could be: <body background="../backgroundimage.jpg"> the "../" just traverses down a directory. If none of this makes sense to you, you should probably do some basic html tutorials or something :-) Tom At 16:19 10/07/2001 -0700, you wrote:
HI, thanks not sure what the web root is. first dir I see on FTP is / so is that the root? and it contains a whole bunch of dirs including htdocs htdocs contains dirs: img (pics) util (utility html pages) www (main html pages)
is there a way to refer to images in img    from html pages in  util AND www
I have things like ../img/ not sure what that means. thanks, ken ----- Original Message ----- From: "Tom Peck" <tom@masaclaw.co.nz> To: <php-db@lists.php.net> Sent: Tuesday, July 10, 2001 4:00 PM Subject: Re: [PHP-DB] HTML question Is /htdocs/ your web root? If it isn't the browser loading up the page would not have access to /www/img/backgroundimage.jpg. If it is - try removing the space after the .jpg in your body tag. Tom At 15:51 10/07/2001 -0700, you wrote:
Hello, pure HTML server question: images like (backgroundimage.jpg) stored on server at: /htdocs/www/img util.showpic.html is stored at : /htdocs/util/ How to use backgroundimage.jpg as background in util.showpic.html ? <body background="/www/img/backgroundimage.jpg "> does not work.. what if anything will work? Thnaks 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 -- 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 (#10248) next »