HTML & Image
I have gone to multiple websites, and tried to figure out and reverify, that website documents go in the public-html folder.
Which looks like this inside: File Manager -------------------------------------------------------------------------------- Click on a folder icon to navigate. Click on a name to view its properties. / public_html / (Current Folder) Create New Folder Upload file(s) Up one level _private 755 _vti_bin 755 _vti_cnf 755 _vti_log 755 _vti_pvt 750 _vti_txt 755 cgi-bin 755 images 755 Create New File .htaccess 0 k 644 _vti_inf.html 1 k 644 index.html 6 k 644<-------------------- postinfo.html 2 k 644 ___________________________________________________________ It still has not worked? The server is set up for php nuke, from the host. So I am wondering if it will work since my document is in html? and Is a JPG backround sufficent, or does the image have to be another type? Any hep appreciated immensly!!! Thanks ahead of time!!! Rick |
I'm not sure what is not working. The structure of the site seems OK to me, although, as a web developer I'm a bit more "sensitive" about where files go and typically have an api directory for CSS and js files, a mmedia for swf files and an images directory for ... well you know.
Assuming that your setup of apache is correct you should have no problems seeing your index.html on that site. I also assume that in your /etc/apache/httpd.conf you enabled the use of /home/<user>/public_html. If you did not that is probably the reason you are not able to see the pages. Other that that, the structure of the site if mostly for organizational purposes and to make development and maintenace easy. As per images on the web, browsers can handle .jpg, .gif, and .png anything else will not work. Hope this helps. Rick |
re: apache setup?
Well I am a newbie at this stuff, and I hate to bother people, but need to start and try to learn somehow....thanks for your time, it's much appreciated.
You said: "I also assume that in your /etc/apache/httpd.conf you enabled the use of /home/<user>/public_html. If you did not that is probably the reason you are not able to see the pages." The server comapny "Hypernia" set it up for me, I have been able to open up cPanel, and ftp. That is my extent of the Linux knowledge so far. I do know apache servers, are supposed to be one of the best things out there. However, as far as "enabling /home/<user>/public_html", I have no idea how to do that? My cPanel: Welcome dbhclan.org! Last login from: xxx.xx.xx.xxx. Please update your contact information here. General account information: Hosting package undefined Shared Ip Address 204.11.239.20 Subdomains 0 / unlimited Parked Domains 0 / 0 Addon Domains 0 / 0 MySQL Databases 0 / unlimited Disk usage 0.48 Megabytes SQL Disk usage 0.00 Megabytes Disk space available 499.52 Megabytes Bandwidth usage (current month) 7.47 Megabytes Email Accounts 0 / unlimited Email Forwarders 0 Autoresponders 0 Mailing Lists 0 / unlimited Email filters 0 Ftp Accounts 0 / unlimited General server information: Operating system Linux Service Status Click to View Kernel version 2.4.22-1.2199.nptl Machine Type i686 Apache version 1.3.33 (Unix) PERL version 5.8.3 Path to PERL /usr/bin/perl Path to sendmail /usr/sbin/sendmail Installed Perl Modules Click to View PHP version 4.3.10 MySQL version 4.0.22-standard cPanel Build 10.0.0-CURRENT 160 Theme cPanel X v2.5.0 Documentation Click to View Mail Webmail Change Password Parked Domains Addon Domains FTP Manager File Manager Disk usage Backup Password Protect Directories Error pages Subdomains MySQL Databases Redirects Frontpage Extensions Web/FTP Stats Raw Access Logs Raw Log Manager Error log Subdomain Stats Chatroom PhpMyChat Bulletin Board CGI Center Scripts Library Agora Shopping Cart Cron jobs Network Tools MIME Types Apache Handlers Manage OpenPGP Keys HotLink Protection Index Manager IP Deny Manager SSL Manager ____________________________________________________________ As far as image, I normally go with JPG and GIF, because they use up minimal space. I just didnt know if maybe, Linux did NOT accept either of those. Thanks immensly, Rick |
server issue
Apparently, it was a server issue, and when I looged on today it said "dbhclan.org soon to come". I then recieved and email from them, claiming, they corrected the issue and it was ready.
I attempted to upload the index.html to the site. The writing is there, however I can't seem to get a backround color, or backround image to load up? I did load the image to the public_html also. I am thinking, there must be some type of html code, that I need so the server can use the JPG I sent? Does anybody know what this is or how to do it? I tried numerous times without success? Again, I appreciate your help immesnly and thanks! Rick |
You are actually correct. Just because you have an image in the server that you intend to use as background it will not be displayed unless you specifically "tell" the web served to do so.
This is how your code should look like if you want to display an image in the background: <body background="images/mybackgroundimage.jpg"> If on the other hand you want to use a color as a background you would use: <body bgcolor="#FFCC66"> Notice that in the first case I'm indicating the path to the image based on the place where my html document resides. This means that I have the html document in public_html and that the sub-directory images pertains to the same directory. On the second example we are using hexadecimal notation. Be careful not to skip the "#" as it will cause problems with some browsers, and your color will not display. Good luck. Rick |
look?
Ok well, I assume that "myimages was an examle?
So I tried this (sice it is the name of the image I want to use[and is in the public_html foler also]) <body background="images/dbh_page.jpg"> But it did not work? I have tried some variations of that also? Rick P.S. - 2nd thought here? Does it matter whether it is on the first or last line of the script? Just thinking of why it doesn't work? |
What matters here is the location of the image. If you have a directory called images and an image called "dbh_page.jpg" in that directory then that will work.
If your dbh_page.jpg is somewhere else it will not. I think that this web site will help you achieve what you want. http://www.w3schools.com/html/default.asp It is a tutorial to create your web site. Hope this helps. Rick |
Thanks........
I havent found anything like the web link you sent me.
Appreciated! rick |
It did work
I have no idea what I did before? I must have typed something wrong? jpg name? something? I sat here all day working on this, finally gave up for a few hours. Came back tried again and it worked!
I fussed a bit to get things lined up, the only thing left to figure out is why the lines are like this? (everyther space?) I am gonna hit that html site after work. Thanks again Rick! |
All times are GMT -5. The time now is 10:23 PM. |