Jump to content

TCH-RobertM

Members
  • Posts

    1,230
  • Joined

  • Last visited

Everything posted by TCH-RobertM

  1. Is it allowed to have a user upload files to a website here ? I am still somewhat new to all this PHP stuff and am trying many things while learning. What I am attempting to do is allow my users (mostly family) a way to upload Photos to my site where I can then have a script call the files to display them. I am trying to get the upload process to work and I am running into some issues. I will post the code and then show error message One thing to note is that I changed the permissions to the upload directory so all users could write to the directory so I dont think that is the issue there are 2 files that make this process work the first file is > <h2>File Upload Form</h2> <form enctype="multipart/form-data" method="post" action="upload2.php"> Send this file: <input name="userfile" type="file" /><br /> <input type="submit" value="Send File" /> </form> The second file is called upload2.php ><?php if (move_uploaded_file($_FILES['userfile']['tmp_name'], $_SERVER['DOCUMENT_ROOT']."/UPLoaded_FILES/")) { print "Received {$_FILES['userfile']['name']} - its size is {$_FILES['userfile']['size']}"; } else { print "Upload failed!"; } ?> The error message I am getting is any insight as to why this is occuring would be appreciated. Thank you Robert
  2. you can try this find . -iregex '.*\.\(htm\|php\)' That should find all php and htm files
  3. Hi Section31 the question I have is are you just trying to find all files with the extensions html and php OR are you planning on doing more with the command after you find the specified files ?
  4. Thanks everyone, I think I have figured this out finally, It has to do with the "typical newbie" problem with username and password. I have corrected this and now am on the way to making it work as I hope. Thanks again
  5. Well from all the testing I have been doing I think I have narrowed it down to the following problem MySQL says: 1044 : Access denied for user: 'rmulher_rmul1966@localhost' to database 'rmulher_mulhern1' need to find out how to resolve this I think it has to do with Grant privledges , I NEED A Manual bad lol Time to go to bookstore
  6. I personally have 3 systems that I use quite frequently. each for specific purposes. Mainly I use the Debian Linux system and Windows XP systems Since I started dabling with this web stuff.... (cough cough) I have found many useful pieces of software for both systems such as GIMP for graphics on my Linux machine....now also have it on my WinXP machine HTML editor on Windows, I have not found anything I like yet on the linux side but I will soon I am sure Robert
  7. Hello everyone I have a question about using MySql and PHP First off I am a Novice when it comes to Web applications and databases, I have been teaching myself xhtml and css and php So please bear with me.....Thanks in advance ok first things first I have created a database using CPANEL and created the table DORlist I have manually inserted rows of data into the table using phpAdmin I then created a webpage with php code to access the database and I am having problems with a few things First off if you look at my site and check out the MYSQL and MYSQL2 page on the nav bar you can see First that if I have the php code listed below active it breaks my layout. and even more distrubing is that it does not connect to my database My Database name is rmulher_mulhern1 the table I created in that database is DORlist > <? $username = "rmulher_rmul1966"; $password = "mypass"; $hostname = "localhost"; $dbh = mysql_connect($hostname, $username, $password) or die("<p>Unable to connect to MySQL</p>"); print "<p>Connected to MySQL</p>"; $selected = mysql_select_db("rmulher_mulhern1",$dbh) or die("<p>Could not select database</p>"); mysql_close($dbh); ?> Can anyone tell me whats happening here ? Thanks in advance Robert
  8. Thank you all for helping with this, I dont know how I missed that margin being set to 20px But thanks for pointing that at. the only conclusion I could get to somewhat work for the border part was to change the background.png file and add a little black strip 276 pixles in from the right edge... this seemed to render a continous look with the border of the rightside. as far as content actually being used there that is yet to be determined..... but as I progress I will let you know my results. Rickasaurus , I probably would have used tables if I did not want to try so hard to learn about the uses of CSS and Xhtml ... I am not knocking its use but would prefer to not use tables for the layout unless absolutley there is no other alternative. But thank you anyway for responding. woesap, I tried the verticle-align: top; ... did not really do much from what I could tell, I am going to try some additional things later today with it and will post back what I find. thank you for your help Bruce. Thank you also for helping out again. I do use Firefox 1.0 and have the web dev extension in place, it does come in hand for tweaking.. Thanks again everyone Rock Sign
  9. Hi everyone, I hate to keep bothering you but I am new to this and I am vigorously trying to teach myself, so please bear with me. The layout I am trying to achieve is what I thought would be pretty simple. I have a header and footer with left and right columns. I have chosen to put a background image along the left and right sides of the "BOX" Div I want the head and footer to line up smooth with them a few things I notice when trying to do this are 1 ) On the top of the page is the header (yes pretty generic looking LOL) but right below it is the navigation menu I am using. (modified it from the website alistapart.com) THE PROBLEM is there is a gap between them... not sure why I ahve checked the padding and margins for all and either I am going buggy looking at this and just dont see it... or I am missing somthing else that is causing this.. I have removed the Menu ul li a --- border-top: 1px solid #FFF which still leaves a gap although not as large. 2 ) On the Rightside DIV if you look at the top of the Righthand side of the screen there is a green strip (part of the background image so I could show the breaks withing the box's not sure why this is occurring 3 ) On the bottom of the rightside div two things. First I would like to know how to make the rightside div stay as big as the leftside and not be so "fluid" but more so the border needs to be from top to bottom seperating the left from the right side 4.) the footer I would like this to be flush with the bottom edge of the left and right content div. I am trying many things to correct this... and have been googling for hours it seems. I think this CSS stuff is quite challenging to say the least.. well Thank you if you can assist and hopefully once I get this done I will work on the php steps of cutting this up so I can get the site up and running the link is Thanks again RobertHERE
  10. Well I think I have it sorted out now, it had to do with the margins and width of each of the containers. I changed them and dbl checked that none would overflow so it appears that corrected the problem. OR I could have just stumbled on a lucky fix not sure of which yet LOL but in any event here is the updated css file Hope it helps someone down the road ><style type="text/css"> html, body, div {font: normal 12px verdana, arial, georgia, serif; color: #000;} #page { width: 636px; margin: 0 auto; position: relative; } body { background: #FFFFFF; margin: 0; padding: 0; } /* Body 0 margin 0 pading white background */ #header { height: 103px; width: 635px; margin: 0; padding:0; background: url( 'images/header.png' ) no-repeat; } /* TAB Navigation */ #Tabsleft { height: 25px; margin: 36px 0; padding:0 0 0 5px; top: 42px; left: 88px; position: absolute; } #Tabsright { height: 25px; margin: 36px 0; padding:0 0 0 5px; top: 42px; left: 390px; position: absolute; } div.outer { float: left; width: 66px; height: 25px; margin: 0 15px 0 0; background: url( 'images/upbars.png' ) 0 -50px no-repeat; } div.outer a { display: block; margin: 0; padding:0; width:100%; height:100%; overflow:hidden; font: bold 12px/1 arial, verdana, georgia, serif; color:#006600; text-decoration: none; background: url( 'images/upbars.png' ) top left no-repeat; } div.outer span { display: block; margin:0; padding: 5px 0 0 5px; } div.outer a:hover { background-image: none; color: #000; } div.outer a:active { color: black; } /* End of TABS */ /* Content of Page begins here */ #CONTAINER { width: 550px; margin: 0 0 0 43px; position: absolute; background: url( 'images/background.png' ); } /* Left side of Page */ #contentleft { margin: 0px 0px 0px 0px; float: left; width: 270px; padding: 2px; font-size: 15px; font-family: arial, verdana, georgia, serif; } /* Right side of Page */ #contentright { margin: 0px 0px 0px 0px; float: left; width: 270px; padding: 2px; } Thanks again for trying to help out, Robert
  11. Thanks again Bruce, I tried the Background-repeat could not get that to work. I am playing around with the Position: relative vs position absolute and the container sizes... I am thinking it might have to do with that Once I get it I will post resolution Thanks again for trying to help
  12. Bruce thank you for looking, One comment though is that I do not see where I have a no-repeat for this image.... my css is listed below. I have no-repeat associated with all the other images such as upbars and header but background.png does not have a no-repeat that I see ?? ><style type="text/css"> html, body, div {font: normal 12px verdana, arial, georgia, serif; color: #000;} #page { width: 636px; margin: 0 auto; position: relative; } body { background: #FFFFFF; margin: 0; padding: 0; } /* Body 0 margin 0 pading white background */ #header { height: 103px; width: 635px; margin: 0; padding:0; background: url( 'images/header.png' ) no-repeat; } /* TAB Navigation */ #Tabsleft { height: 25px; margin: 36px 0; padding:0 0 0 5px; top: 42px; left: 88px; position: absolute; } #Tabsright { height: 25px; margin: 36px 0; padding:0 0 0 5px; top: 42px; left: 390px; position: absolute; } div.outer { float: left; width: 66px; height: 25px; margin: 0 15px 0 0; background: url( 'images/upbars.png' ) 0 -50px no-repeat; } div.outer a { display: block; margin: 0; padding:0; width:100%; height:100%; overflow:hidden; font: bold 12px/1 arial, verdana, georgia, serif; color:#006600; text-decoration: none; background: url( 'images/upbars.png' ) top left no-repeat; } div.outer span { display: block; margin:0; padding: 5px 0 0 5px; } div.outer a:hover { background-image: none; color: #000; } div.outer a:active { color: black; } /* End of TABS */ /* Content of Page begins here */ /* Left side of Page */ #CONTAINER { width: 550px; margin: 0 auto; position: relative; background: url( 'images/background.png' ); } #contentleft { margin: 10px 0px 0px 0px; float: left; width: 270px; padding: 0; font-size: 15px; font-family: arial, verdana, georgia, serif; border-bottom: 1px solid #A0ECA0; } /* Right side of Page */ #contentright { margin: 10px 0px 0px 15px; float: left; width: 250px; padding: 0 0px; } </style>
  13. Hi everyone, I have been playing around with a new design and all new css to go with it. Oh the fun just never ends... really I do find this to be quite enjoyable as I muddle through the different problems... ok ok to the point..... I have put a new index.htm on My Webpage If you view it using IE you will see I get a green background color with a Black center stripe in the middle Using Firefox 1.0 It does not show that particular background image... everything else shows up fine.... any help would be greatly appreciated. Thanks again all
  14. btrfld, Thank you so much for finding that... It really was driving me a little buggy LOL I corrected those issues and am on my way to cleaning up the rest of the minor glitches I have. ..... Thanks again Hopefully one day I can return the favor for you.... Robert Thumbs Up
  15. hi everyone, I have been playing around with creating a site that uses Html and css. What I am trying to do is have background images for the body and footer when I load the images directly into the htlm using it shows the image with no problem. when I try to load it using the background element of CSS the images are not laoding can someone take a look at the below HTML and CSS and see if they notice where my problem resides. I have been playing with this now for some time and my eyes are gettign a bit buggy thank you Robert Here is the html ><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>RMulhern.com template</title> <link rel="stylesheet" type="text/css" href="css/rmulhern.css" /> </head> <body> <div id="page"> <div id="header"> <img src="images/header.png" width="760" height="160" alt="RMulhern.com header" /> </div> <!-- ends HEADER div --> <div id="main"> <div id="leftside"> <div id="content"> <h1>Top_left</h1> <p></p> <p></p> <p></p> <img src="images/background.png" width="760" height="160" /> <hr> <h1>Bottom_left</h1> <p>Whatever I want to put here.this way I can see exactly where the page will wrap so I can put a divideer on the background image at exactly the position I want the page split this will create a border like effect on the right side so as to match up to the HR image I have above this text</p> </div> <!-- ends CONTENT div --> </div> <!-- ends LEFTSIDE div --> <div id="rightside"> <h1>Additional Link’s</h1> <ul> <li><a title="LINK title" href="#1">Link</a> – gives a nice text seperator</li> <li><a title="LINK title" href="#1">Link</a> – gives a nice text seperator</li> <li><a title="LINK title" href="#1">Link</a> – gives a nice text seperator</li> </ul> <p>11px font</p> </div> <!-- ends RIGHTSIDE div --> <div id="fillerbot"></div> <div id="footer"> <p>Robert Mulhern Copyright 2004 © All rights reserved. </div> <!-- ends FOOTER div --> </div> <!-- ends MAIN div --> </div> <!-- ends PAGE div --> </body> <!-- ends BODY div --> </html> here is the CSS >html, body, div {font: normal 12px verdana, arial, georgia, serif; color: #000;} body {background: #FFF; margin: 0; padding: 0;} #page {width: 761px; margin: 0 auto; position: relative;} #header { width: 760px; height: 160px; top: 20px; left: 0px; position: absolute; } #main { width: 761px; background:url("images/background.png"); position: absolute; top: 200px; left: 0px; z-index: 1; } #leftside { float: left; width: 433px; padding: 0 0 0 25px; } #content {width: 420px;} #content h1 { color: #C2C2C2; font-weight: normal; font-size: 20px; font-family: georgia, arial, verdana, sans-serif; margin: 0 0 5px 10px; padding: 0 0 0 10px; } #content p { margin: 10px 5px 10px 10px; line-height: 17px; font-size: 12px; font-family: arial, verdana, georgia, serif; } #content p a, #content p a:link, #content p a:active { color: #7B0A0A; text-decoration: none; border-bottom: 1px solid #7B0A0A; } #content p a:visited { color: #9C4848; border-bottom: 1px dotted #BE8585; text-decoration: none; } #content p a:hover { color: #7B0A0A; background: #DEC2C2; text-decoration: none; border-bottom: 1px solid #7B0A0A; } #content ul { list-style-type: none; padding:0 0 0 40px; margin: 0 0 10px 0; font-family: arial, verdana, sans-serif; font-size: 11px; color: #787870; } #content li { padding-top: 0px; padding-left: 13px; padding-bottom: 5px; } #content li a, #content li a:link, #content li a:active { color: #7B0A0A; text-decoration: none; border-bottom: 1px solid #7B0A0A; } #content li a:visited { color: #9C4848; border-bottom: 1px dotted #BE8585; text-decoration: none; } #content li a:hover { color: #7B0A0A; text-decoration: none; border-bottom: 1px solid #7B0A0A; } #rightside { float: left; width: 240px; margin: 0; padding: 0; } #rightside p { color: #9C9C9C; margin: 0 20px 10px 20px; font-size: 11px; font-family: arial, verdana, georgia, serif; } #rightside li { color: #9C9C9C; margin: 0 20px 10px 20px; font-size: 11px; font-family: arial, verdana, georgia, serif; } #rightside h1 { color: #C2C2C2; font-weight: normal; font-size: 18px; font-family: georgia, arial, verdana, sans-serif; margin: 0 0 5px 10px; padding: 0 0 0 10px; } #fillerbot { width: 760px; height: 14px; clear: both; } #footer { width: 760px; height: 89px; background: url("images/footerbg.PNG") no-repeat; padding: 20px 0; } #footer p { font-family: arial, verdana, georgia, serif; text-align: center; color: #616760; font-size: 12px; margin: 3px 0; padding: 11px 0; } Thanks again if you can see where I am going wrong the CSS may be a littlle butchered now because of all the experimenting I have been doing.... Robert
×
×
  • Create New...