Jump to content

Ninjakreborn

Members
  • Posts

    3,922
  • Joined

  • Last visited

Everything posted by Ninjakreborn

  1. [quote]session_start();[/quote] Very very top of the login.php file, it's there. Unless you mean somewhere else I should have it.
  2. I have 2 things I am trying to do, but I don't understand where to start. I have to get files to embed into a page when they are uploaded, and have to have the filename as the url. For instance if someone names the file ants it would be accessed through www.funnyemailforwards.com/ants I need to figure out how to get them all to appear like this but I don't understand how, I also don't understand how to set up the files to embed automatically each time they are uploaded based on filetype? [move]Thanks for the help.[/move]
  3. I have been waiting for allmost 2 weeks  php freaks to get back up and running I couldn't get on, but now it's fixed I had a question I really needed help with. I am having a problem doing something with a pre-existing script, I fixed up a lot of the issues with it, but now I need some help with this.  I was having connection issues but I got it fixed, this was not my script, I just did some major ass reconstruction to try and get it to work right, and then I encounter this, when you click on the form on this page, it doesn't do anything, even though the script is telling it to do something, on top of that, the main thing is, I register, and it makes a username and password, but nothing works when trying to log in, which is the same page the form is, that is actually the form that doesn't work for some reason. page with form [url=http://www.asicip.com/login.php]http://www.asicip.com/login.php[/url] Here is the code for that page, and for the include that does the connection, the connection seems to work, I have used it and it connected properly on the page, I had some connection issues before, but I had someone help me fix those specifically. Now what is wrong with it, any advice Log-in page [code]<?php session_start(); require_once("incs/conn.inc.php"); if(isset($_POST['submit'])) {   $sql = "select id_administrator,superuser from administrators where username = '".$_POST['username']."' and password = '".$_POST['password']."'"; $rez = mysql_query($sql) or die (mysql_error()); if(mysql_num_rows($rez) > 0){   $row = mysql_fetch_row($rez) or die("The mysql fetch row is not working");   session_register("administrator_portal") or die("Session register issues"); $_SESSION['administrator_portal'] = $row[0]; $_SESSION['superuser'] = $row[1]; $sql="update `administrators` set `LastLoginAdmin`=Now() where id_administrator=".$_SESSION['administrator_portal']; $result=mysql_query($sql,$conn); header("Location: download2.php"); exit; }else{   $msg = "The username or password are wrong."; } }   if($_GET['erroare'] == "nr"){     $msg = "Ne pare rau insa sesiunea dumneavostra a expirat.<br> You must log on.";   } ?> <html> <head> <LINK href="style.css" rel=stylesheet type=text/css> <title>ASIC IP</title> </head> <body bgcolor="#9aa8c7" topmargin="0" leftmargin="0" marginwidth="0" marginheight="0"> <script type="text/javascript"> if (parseInt(navigator.appVersion.substring(0,1))>=3) { // 3.0 or greater. ch1_on  = new Image();  ch1_off  = new Image(); ch2_on  = new Image();  ch2_off  = new Image(); ch3_on  = new Image();  ch3_off  = new Image(); ch4_on  = new Image();  ch4_off  = new Image(); ch5_on  = new Image();  ch5_off  = new Image(); ch6_on  = new Image();  ch6_off  = new Image(); ch7_on  = new Image();  ch7_off  = new Image(); ch8_on  = new Image();  ch8_off  = new Image(); ch1_on.src  = 'images/b_homeap.gif'; ch1_off.src  = 'images/b_home.gif'; ch2_on.src  = 'images/b_aboutap.gif'; ch2_off.src  = 'images/b_about.gif'; ch3_on.src  = 'images/b_infoap.gif'; ch3_off.src  = 'images/b_info.gif'; ch4_on.src  = 'images/b_downloadap.gif'; ch4_off.src  = 'images/b_download.gif'; ch5_on.src  = 'images/b_careerap.gif'; ch5_off.src  = 'images/b_career.gif'; ch6_on.src  = 'images/b_teamap.gif'; ch6_off.src  = 'images/b_team.gif'; ch7_on.src  = 'images/b_pressap.gif'; ch7_off.src  = 'images/b_press.gif'; ch8_on.src  = 'images/b_contactap.gif'; ch8_off.src  = 'images/b_contact.gif'; } function activate(image) {   if (parseInt(navigator.appVersion.substring(0,1))>=3) { // 3.0 or greater.       imagesrc = eval(image + '_on.src');       document[image].src = imagesrc;   } } function deactivate(image) {   if (parseInt(navigator.appVersion.substring(0,1))>=3) { // 3.0 or greater.       imagesrc = eval(image + "_off.src");       document[image].src = imagesrc;   } } </script> <center> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td align="right" valign="top">&nbsp;</td> <td align="center"> <table border="0" cellpadding="0" cellspacing="0" bgcolor="#000000" width="700"> <tr> <td bgcolor="#9aa8c7"> <? include("incs/top_menu.inc.php");  ?> <table border="0" cellpadding="0" cellspacing="0" width="700" bgcolor="#FFFFFF"> <tr><td> <table border="0" cellpadding="0" cellspacing="0" width="700"> <tr> <td width="6">&nbsp;</td> <td width="164" valign="top" bgcolor="#f1f1f1"> <table  border="0" cellpadding="0" cellspacing="0"> <tr><td width="6"></td><td height="24"> <font class="titlu2">Downloads : :</font> </td></tr> </table> <img src="images/p.gif" width="164" height="1" border="0"><br> <table  border="0" cellpadding="0" cellspacing="0"> <tr><td width="10" height="20"></td><td> <a href="download.php" class="n">Downloads</a> </td></tr> </table> <img src="images/p.gif" width="164" height="1" border="0"><br> <table  border="0" cellpadding="0" cellspacing="0"> <tr><td width="10" height="20"></td><td> <a href="login.php" class="n">Login</a> </td></tr> </table> <img src="images/p.gif" width="164" height="1" border="0"><br> <table  border="0" cellpadding="0" cellspacing="0"> <tr><td width="10" height="20"></td><td> <a href="register.php" class="n">Register</a> </td></tr> </table> <img src="images/p.gif" width="164" height="1" border="0"><br> <br> </td> <td width="10">&nbsp;</td> <td width="510" valign="top"> <img src="images/linie.gif"><br> <br> &nbsp;&nbsp;<font class="titlu">Login</font> <br><br> <img src="images/linie.gif"><br> <br> <form name="form1" method="post" action="login.php"> <table border="0" cellspacing="0" cellpadding="0" width="200" height="96"> <tr><td> <table width="200" border="0" cellspacing="0" cellpadding="0"> <tr><td height="34" colspan="3">&nbsp;</td></tr> <tr><td width="140"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td width="16">&nbsp;</td> <td valign="top"><input type="text" name="username" style="width: 150;"></td> <td width="14">&nbsp;</td> </tr> <tr> <td width="16" height="14">&nbsp;</td> <td valign="top"><input type="password" name="password" style="width: 150;"></td> <td width="14">&nbsp;</td> </tr> </table> </td> <td><input type="submit" name="submit" value="Login" class="button"></td></tr> </table> </td></tr> </table> </form> <br> <a href="register.php">Click here to register</a> <table  border="0" cellpadding="0" cellspacing="0"> <tr> <td valign="top"> </tr> </table> <br><br> <img src="images/linie.gif"><br> <table border="0" cellpadding="0" cellspacing="0"> <tr><td><img src="images/sigla_jos.gif"><br></td> <td class="stitlu">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Trademarks/Copyright ©2006 ASIC IP. All Rights Reserved.</td></tr> </table> <img src="images/linie.gif"><br> <br> </td> <td width="10">&nbsp;</td> </tr> </table> </td></tr> </table> </td> </tr> </table> </td> <td align="left" valign="top">&nbsp;</td> </td> </tr> </table> </center> </body> </html>[/code] The included page [code]<?php $conn = mysql_connect ("mysql", "#####", "#####"); $select = mysql_select_db("ip"); ?>[/code] I am sure mysql is there instead of localhost, it is with yahoo, I am starting to hate yahoo more and more, they are the most retarded company I have ever seen, I am going to start converting all my yahoo clients, over to another more worthy host, yahoo is pathetic, no htaccess, or php ini access.  There settings suck anus.
  4. Ok well I have finished my entire script so far, and this is what it does. It takes the form information on [a href=\"http://www.funnyemailforwards.com\" target=\"_blank\"]http://www.funnyemailforwards.com[/a] and does the following(the form with the attachment). I did full custom error handling and think I covered everything. It checks for blank spaces in form, it checks to see if the file was uploaded, it checks the extensions. It checks to see if the file already is in the directory, if not then it moves it there. After that it connects to the database, checks for the existence of the data and if it's not there it enters The name of the funny, The type, the keywords, I have it set to get the url, and the date. All 100% functional, fast, and working. Now I have some questions and advice, first here is what I have now, as a finished script(what I have so far anyway). [code]<?php $management = true; $errorhandler = ""; $filemanager = true; $dateinfo = strtotime("now"); $dateformatted = date("n-d-y", $dateinfo); if ($_POST['name'] == "") {     $errorhandler .= "The Name field has been left blank<br />";     } if ($_POST['keywords'] == "") {     $errorhandler .= "The Keywords were left blank<br />";     } if(!is_uploaded_file($_FILES['file']['tmp_name'])){     $errorhandler .= "No file has been uploaded<br />";     $filemanager = false;     }          if ($filemanager === true) { $_accepted_extensions = array('.mpeg', '.mpg', '.wav', '.avi', '.mid', '.jpg', '.jpeg', '.jfif', '.pdf', '.txt', '.wav', '.gif', '.mp2', '.mp3', '.bmp');    if ($filemanager == true) {         $tmp = pathinfo($_FILES['file']['name']);         if (in_array('.' . $tmp['extension'],$_accepted_extensions)) {             $filemanager = true;             $management = true;             }else {             $filemanager = false;             $management = false;             $errorhandler .= "You have attempted to upload the wrong file type<br />";             $errorhandler .= "We only accept mpeg, mpg, wav, avi, mid, jpg<br />";             $errorhandler .= "jpeg, jfif, pdf, txt, wav, gif, qt, mp2, mp3 bmp formats<br />";             $errorhandler .= "To request new file types email<br />";             $errorhandler .= "information@theyellowpagesnetwork.com";             }         }     }                  // Relative URL with desired folder name and the name of the file on the user's machine if ($management === true && $filemanager === true) {     $newfile = "uploads/".basename($_FILES['file']['name']);     $newfiletemp = "{$_FILES[file][tmp_name]}";     if (file_exists($newfile)) {         $errorhandler .= "The file already exists";         $filemanager = false;     }     if($filemanager === true) {         if (!move_uploaded_file($newfiletemp, $newfile)) {             $errorhandler .= "The file was not moved properly";             $filemanager = false;             $manager = false;         }     } } if ($filemanager === true || $manager === true) {     $connect = mysql_connect("#####", "#####", "#####");     $select = mysql_select_db("funnyemailforwards"); if (!$connect && !$select) {      $errorhandler .= "The database could not connect, or selected";      $management = false;      $filemanager = false;     }   } if ($filemanager === true && $management === true) { $query = "SELECT * from fileinfo WHERE type = '" . implode("", $_POST['type']) . "' AND nameoffunny = '" . mysql_real_escape_string($_POST['name']) . "' AND keywords = '" . mysql_real_escape_string($_POST['keywords']) . "' AND funnyurl = '" . mysql_real_escape_string($newfile) . "' AND entrydate = '" . mysql_real_escape_string($dateinfo) . "'"; $result = mysql_query($query); $matches = mysql_num_rows($result);     if ($matches == 0) { $inserter = "INSERT INTO fileinfo (type, nameoffunny, keywords, funnyurl, entrydate) VALUES ('" . implode("", $_POST['type']) . "', '" . mysql_real_escape_string($_POST['name']) . "', '" . mysql_real_escape_string($_POST['keywords']) . "', '" . mysql_real_escape_string($newfile) . "', '" . mysql_real_escape_string($dateinfo) . "')";     if(mysql_query($inserter)){             $management = true;             $filemanager = true;             }else {             $management = false;             $filemanager = false;             $errorhandler .= "The information was not inserted into the database properly";             echo mysql_error();             }     } else {         $filemanager = false;         $managment = false;         $errorhandler .= "The information was already in the database, could not complete";     }     } if ($management === false || $filemanager === false) {     echo "{$errorhandler}";     }           ?>[/code] Ok and here is my database information for this specifically. I have the table name and fields listed in the script. Here are the questions I wanted to ask before I move on, I have learnt a lot from doing what I have so far, more than I would have ever imagined, but as I look forward into the rest of the project, I am at a standstill and need some enlightenment. 1. Is there anything else I can do to the file handling aspect of my script to make it more secure? 2. Is saving the url like that going to work right later when I do other things with the files. 3. How do I go about using my stored information to send an email to my client with each entry so he can accept/decline, I don't understand how to make the email be related to each specific entry, I can send an email but not make the email and current entry attached, how do I do this? 4. I need to decide what to do with the files, should I embed them in the pages, or make them links 5. Also on top of that I have no idea how to do either, any advice might give me something to think about when I start all of this on monday? 6. What do I do when I get ready to call this data on the homepage with the three most recent entries, I won't do this until the other part is done, but how do i get the file url to be a url where someone can use, or either embed each file individual into a page as it is downloaded, or make it a link, I don't understand specifically how to make each file do it, everytime someone uploads one. ANY other advice, opinions, or theories relating to anything like this would help a lot and give me more to think about when it's time for me to do the hardest part on monday. Thanks for all of the help.
  5. hmm I created this and it seems to work so. If it doesn't exist then it enters it [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]if ($management === true && $filemanager === true) { $newfile = "uploads/".basename($_FILES['file']['name']); $newfiletemp = "{$_FILES[file][tmp_name]}"; if (!file_exists($newfile)) { if (!move_uploaded_file($newfiletemp, $newfile)) { $errorhandler .= "Your file was not uploaded properly.<br />"; $filemanager = false; $management = false; } } }[/quote]
  6. That is good, either way it's working now, completely I had another question now, I am moving on to the next step, how do I check the folder to see if the file already exists. If I try to upload a file, and it is alread on teh server folder, will it just overwrite the other one or what?
  7. he he How did you figure that out, this will come in handy thanks.
  8. I don't get it [code]Warning: move_uploaded_file(uploads/dbinfo.txt): failed to open stream: Permission denied in /home/all/funnyemailforwards/public_html/apex/acceptfiles.php on line 40 Warning: move_uploaded_file(): Unable to move '/tmp/php4M8yWi' to 'uploads/dbinfo.txt' in /home/all/funnyemailforwards/public_html/apex/acceptfiles.php on line 40 Your file was not uploaded properly.[/code] I have never had permission issue's I don't understand what this means, I don't have any way to set permissions using dreamweaver's ftp.
  9. One example is the here This is what it looks like similarly in firefox and opera I can't get it live unfortunately, I wish I could but it's the way he has it set up on his server. [img src=\"http://www.freelancebusinessman.com/images/test3.GIF\" border=\"0\" alt=\"IPB Image\" /]
  10. I know it's really pissing me off, too I had to remove ie 7 before it was too late, youc an go back though, completely uninstall ie 7, completely, then reinstall 6 from a google search you can find microsoft's download page here. [a href=\"http://www.download.com/Internet-Explorer-6-Service-Pack-1/3000-2356_4-10148260.html\" target=\"_blank\"]http://www.download.com/Internet-Explorer-...4-10148260.html[/a]
  11. I encountered a problem, I got the CSS, and XHTML looking like this now for that specific page. XHTML [code]<!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">     <head>         <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />         <meta name="generator" content="Adobe GoLive" />         <meta name="Keywords" content="custom, furniture, design, kensington, san francisco, bay         area, repair, woodworking, antique, antiques, library, card, catalog, catalogs, catalogue"         />         <title>Entryway to Furniture Section</title>         <link rel="stylesheet" type="text/css" href="FurnPhotoSculpCSS.css" />         <script type="text/javascript" src="FurnitureJAVA.js">         </script>     </head>     <body onload="removepics()">             <!-- Header section -->             <div><!-- Start master header div -->             <div id="logoandtext"><!-- Sub div for logo and text under logo -->             <img src="CommonImages/logoFurniture2aSm.gif" alt="Logo" />             <p id="textbelowheader">For over 50 years I have been retrofitting, redesigning,             repairing, restoring, recombining, inventing, and building fine furnishings and             antiques.  My Devotion, is to well thought out design, lasting craftsmanship, and             just plain making things extremely functional.</p>             </div><!-- End logo and text sub div -->             <div id="NavBarFoundation"><div id="NavBarSpacerLeft">             <img src="CommonImages/NavBar/1pxspacer.gif" width="1" height="1" alt="" /></div>             <div id="NavBarBook1"><a href="FurnitureCompleteWorks.html">             <img src="CommonImages/NavBar/NavBarBook1.gif" width="59" height="175"             alt="Book of Complete Works of Furniture" /></a></div>             <div id="NavBarBook2"><a href="FurnitureWhoWhyEtc.html">             <img src="CommonImages/NavBar/NavBarBook2.gif" width="49" height="175" alt="Book of Who,             Why, What, etc." /></a></div>             <div id="NavBarBook3"><a href="ContactInfo.html">             <img src="CommonImages/NavBar/NavBarBook3.gif" width="52" height="175" alt="Book of             Contact Information" /></a></div>             <div id="NavBarBook4"><a href="FurnitureStudioShop.html">             <img src="CommonImages/NavBar/NavBarBook4.gif" width="45" height="175" alt="Book of             The Studio Store" /></a></div>             <div id="NavBarBook5"><a href="MasterSiteIndex.html">             <img src="CommonImages/NavBar/NavBarBook5.gif" width="54" height="175" alt="Combined             Site Index" /></a></div>             <div id="NavBarBook6"><a href="index.html">             <img src="CommonImages/NavBar/NavBarBook6.gif" width="57" height="175" alt="Book linking             to Opening Scene Card Catalogue" /></a></div>             <div id="NavBarSpacerRight"><img src="CommonImages/NavBar/1pxspacer.gif"             width="1" height="1" alt="" /></div>             <div id="NavBarShelf"><img src="CommonImages/NavBar/NavBarShelf.gif" width="372"             height="33" alt="Book Shelf" /></div>             </div>             </div><!-- End master header div -->             <!-- BEGIN ENTIRE BODY SECTION -->             <div id="row1">             <div class="row1-cell-img">             <a href="pieces1.html"             onmouseover="handlephoto1on (); return true;"             onmouseout="handlephoto1off (); return true;">             <img src="FurnitureHmPgImages/1CDBureauArts&craftsLight150.jpg" alt="Furniture 1"/>             </a>             </div>             <div class="row1-cell"></div>             <div class="row1-cell-img">             <a href="pieces2.html"             onmouseover="handlephoto2on (); return true;"             onmouseout="handlephoto2off (); return true;">             <img src="FurnitureHmPgImages/2TrebleClefStool150x180.jpg" alt="Furniture 2" />             </a>             </div>             <div class="row1-cell"></div>             <div class="row1-cell-img">             <a href="pieces3.html"             onmouseover="handlephoto3on (); return true;"             onmouseout="handlephoto3off (); return true;">             <img src="FurnitureHmPgImages/3PearsonTablePlus150x180.jpg" alt="Furniture 3" />             </a>             </div>             </div>             <div id="row2">             <div class="row2-cell-txt" id="textphoto1">Photo 1 text through a top-down, proactive             approach we can remain customer focused and goal-directed, innovate and be an inside-out             organization which facilitates sticky web-readiness transforming turnkey eyeballs</div>             <div class="row2-cell-img">             <a href="pieces4.html"             onmouseover="handlephoto4on (); return true;"             onmouseout="handlephoto4off (); return true;">             <img src="FurnitureHmPgImages/4LaPineGreenTable150x180.jpg" alt="Furniture 4" />             </a>             </div>             <div class="row2-cell-txt" id="textphoto2">Photo 2 text through a top-down, proactive             approach we can remain customer focused and goal-directed, innovate and be an inside-out             organization which facilitates sticky web-readiness transforming turnkey eyeballs</div>             <div class="row2-cell-img">             <a href="pieces5.html"             onmouseover="handlephoto5on (); return true;"             onmouseout="handlephoto5off (); return true;">             <img src="FurnitureHmPgImages/5BuckeaselBack150x180.jpg" alt="Furniture 5" />             </a>             </div>             <div class="row2-cell-txt" id="textphoto3">Photo 3 text through a top-down, proactive             approach we can remain customer focused and goal-directed, innovate and be an inside-out             organization which facilitates sticky web-readiness transforming turnkey eyeballs</div>             </div>             <div id="row3">             <div class="row3-cell-img">             <a href="pieces6.html"             onmouseover="handlephoto6on (); return true;"             onmouseout="handlephoto6off (); return true;">             <img src="FurnitureHmPgImages/6RollingIndexVic150x180.jpg" alt="Furniture 6" />             </a>             </div>             <div class="row3-cell-txt" id="textphoto4">Photo 4 text through a top-down, proactive             approach we can remain customer focused and goal-directed, innovate and be an inside-out             organization which facilitates sticky web-readiness transforming turnkey eyeballs</div>             <div class="row3-cell-img">             <a href="pieces7.html"             onmouseover="handlephoto7on (); return true;"             onmouseout="handlephoto7off (); return true;">             <img src="FurnitureHmPgImages/7SpanishBenchResurectn150x18.jpg" alt="Furniture 7" />             </a>             </div>             <div class="row3-cell-txt" id="textphoto5">Photo 5 text through a top-down, proactive             approach we can remain customer focused and goal-directed, innovate and be an inside-out             organization which facilitates sticky web-readiness transforming turnkey eyeballs</div>             <div class="row3-cell-img">             <a href="pieces8.html"                 onmouseover="handlephoto8on (); return true;"                 onmouseout="handlephoto8off (); return true;">             <img src="FurnitureHmPgImages/8Bunny1a150x180.jpg" alt="Furniture 8" />             </a>             </div>             </div>             <div id="row4">             <div class="row4-cell-txt" id="textphoto6">Photo 6 text through a top-down, proactive             approach we can remain customer focused and goal-directed, innovate and be an inside-out             organization which facilitates sticky web-readiness transforming turnkey eyeballs</div>             <div class="row4-cell"></div>             <div class="row4-cell-txt" id="textphoto7">Photo 7 text through a top-down, proactive             approach we can remain customer focused and goal-directed, innovate and be an inside-out             organization which facilitates sticky web-readiness transforming turnkey eyeballs</div>             <div class="row4-cell"></div>             <div class="row4-cell-txt" id="textphoto8">Photo 8 text through a top-down, proactive             approach we can remain customer focused and goal-directed, innovate and be an inside-out             organization which facilitates sticky web-readiness transforming turnkey eyeballs</div>             </div>             <!-- END ENTIRE BODY SECTION -->     </body> </html>[/code] CSS [code]body /* Set's the general page structure */ {     background-image:url(CommonImages/Backgrd1Furniture.gif);     background-color:#000000; /* Puts background color behind the image */     margin:0; /* Starts setting the general positioning of the page */     padding:0;     padding-left:20px; } #headerwrapdiv /* Wraps logo, text and navigation */ {     width:800px; /* keeps it from getting too long, sticking to the layout in the pics */ } /* The text style information right below here I did seperately to allow for maximum customization, with this style you can change the color of the text, the font style, or whatever you want to do, including the position relative to the logo and master div, in case if you want to move it around some */ #textbelowheader {     color:#FFFFCC;     width:250px;     text-indent:inherit;     padding-left:25px;     padding-bottom:20px; } #logoandtext /* The style for the logo and text collectively within the master div */ {     margin-left:5px;     margin-top:20px;     float:left; /* This is floated left to allow the navigation to be across from it, in */ }                                                /* proper position */ a img {     border:none; } #NavBarFoundation {     visibility:visible;     position:absolute;     top:2px;     left:432px;     width:372px;     height:208px } #NavBarSpacerLeft {     visibility:visible;     position:absolute;     left:0px;     top:0px;     width:24px;     height:175px; } #NavBarBook1 {     visibility:visible;     position:absolute;     left:24px;     top:0px;     width:59px;     height:175px; } #NavBarBook2 {     visibility:visible;     position:absolute;     left:83px;     top:0px;     width:49px;     height:175px; } #NavBarBook3 {     visibility:visible;     position:absolute;     left:132px;     top:0px;     width:52px;     height:175px; } #NavBarBook4 {     visibility:visible;     position:absolute;     left:184px;     top:0px;     width:45px;     height:175px; } #NavBarBook5 {     visibility:visible;     position:absolute;     left:229px;     top:0px;     width:54px;     height:175px; } #NavBarBook6 {     visibility:visible;     position:absolute;     left:283px;       top:0px;     width:57px;     height:175px; } #NavBarSpacerRight {     visibility:visible;     position:absolute;     left:340px;     top:0px;     width:32px;     height:175px; } #NavBarShelf {     visibility:visible;     position:absolute;     left:0px;     top:175px;     width:372px;     height:33px; } /* DO NOT TOUCH anything below here, unless you know 100% EXACTLY what you are doing and why. This is a very, very difficult layout, especially to get right in all the major browsers, 3-4 column layours, are nothing to laugh at they are very difficult, once you read this you can take this comment out.  I laid this up, getting help as well from another developer, that I go to sometimes for advice, this took awhile to set up, especially to where I could get the javascript 100% perfect like you see it now. With such a detailed layout, if something was to go wrong when you tried to format the code, it might be something I can't fix without redoing it all, not only that but the javascript has to have this same layout for the way I set it, or the programming will be messed up */ #row1 {     padding: 0px;     width: 800px;     clear: left; } #row1 .row1-cell, #row1 .row1-cell-img, #row1 .row1-cell-txt {     width: 20%;     float: left;     vertical-align: bottom; } #row1 .row1-cell-img {     background-color:#000000;     height: 200px; } #row1 .row1-cell-txt {     color:#FFFFFF;     background-color:#000000; line-height: 1.2em; } /* repeat */ #row2 {     padding: 0px;     width: 800px;     clear: left; } #row2 .row2-cell, #row2 .row2-cell-img, #row2 .row2-cell-txt {     width: 20%;     float: left;     vertical-align: bottom; } #row2 .row2-cell-img {     background-color:#000000;     height: 200px; } #row2 .row2-cell-txt {     color:#FFFFFF;     background-color:#000000; line-height: 1.2em; } /* repeat */ #row3 {     padding: 0px;     width: 800px;     clear: left; } #row3 .row3-cell, #row3 .row3-cell-img, #row3 .row3-cell-txt {     width: 20%;     float: left;     vertical-align: bottom; } #row3 .row3-cell-img {     background-color:#000000;     height: 200px; } #row3 .row3-cell-txt {     color:#FFFFFF;     background-color:#000000; line-height: 1.2em; } /* repeat */ #row4 {     padding: 0px;     width: 800px;     clear: left; } #row4 .row4-cell, #row4 .row4-cell-img, #row4 .row4-cell-txt {     width: 20%;     float: left;     vertical-align: bottom; } #row4 .row4-cell-img {     background-color:#000000;     height: 200px; } #row4 .row4-cell-txt {     color:#FFFFFF;     background-color:#000000; line-height: 1.2em; } /* End content, DO NOT edit anything above between this, and hte above comment, unless you know exactly what you are doing and why */            [/code] The problem I am having, I have the same thing here. The layout you see in the picture up there, is now what I have, I can't show a picture of this, but what is happening, in a few of the browsers, is it's all falling straight against the left hand side of the screen. 100% stuck on that side of the screen, I don't understand why it's doing that, anything I am doing wrong in the css, or anything? It looks good in ie6, but firefox and opera, are scary.
  12. Ok here is what I have done. I wrote up this script now with the pieces I have put together, everything still works except one thing, and that is getting the file into the folder, there is so much more I have to do with this script, but first, I have to get the file to go into another folder, and learn how to comfortably get that to happen, and understand the elements, this is what i have currently. [code]<?php $management = true; $errorhandler = ""; $filemanager = true;         if ($_POST['name'] == "") {         $errorhandler .= "The Name field has been left blank<br />";         }         if ($_POST['keywords'] == "") {         $errorhandler .= "The Keywords were left blank<br />";         }              if(!is_uploaded_file($_FILES['file']['tmp_name'])){         $errorhandler .= "No file has been uploaded<br />";         $filemanager = false;         }                  if ($filemanager == true) { $_accepted_extensions = array('.mpeg', '.mpg', '.wav', '.avi', '.mid', '.htm', '.jpg', '.jpeg', '.jfif', '.pdf', '.txt', '.wav', '.html', '.gif', '.mp2', '.mp3', '.bmp');     if ($filemanager == true) {                     $tmp = pathinfo($_FILES['file']['name']);                 if (in_array('.' . $tmp['extension'],$_accepted_extensions)) {                     $filemanager = true;                     $management = true;                         }else {                         $filemanager = false;                         $management = false;                         $errorhandler .= "You have attempted to upload the wrong file type<br />";                         $errorhandler .= "We only accept mpeg, mpg, wav, avi, mid, midi, doc, htm, jpg<br />";                         $errorhandler .= "jpeg, jfif, pdf, txt, wav, html, gif, qt, mp2, mp3 formats<br />";                         $errorhandler .= "To request new file types email<br />";                         $errorhandler .= "information@theyellowpagesnetwork.com";                         }                     }                 }                          if ($filemanager == true) {                 if (!move_uploaded_file($_FILES['file']['tmp_name'], "./storage"))     {     $errorhandler .= "Your file was not uploaded properly.<br />";     $filemanager = false;                 $manager = false;     }             }                                          if ($management == false || $filemanager == false) {                 echo "{$errorhandler}";                 }else {                 echo "Everything Worked out properly and the file should be uploaded";                 }                  ?>[/code] Ok this is the error I am getting, I need to figure out what is causing this, here is the error. [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]Warning: move_uploaded_file(./storage): failed to open stream: Permission denied in /home/all/funnyemailforwards/public_html/apex/acceptfiles.php on line 38 Warning: move_uploaded_file(): Unable to move '/tmp/phpts6OYc' to './storage' in /home/all/funnyemailforwards/public_html/apex/acceptfiles.php on line 38 Your file was not uploaded properly.[/quote] the the "your file was not uploaded properly" is a message that is appended to [code]        if ($filemanager == true) {                 if (!move_uploaded_file($_FILES['file']['tmp_name'], "./storage"))     {     $errorhandler .= "Your file was not uploaded properly.<br />";     $filemanager = false;                 $manager = false;     }             }[/code] So that is the only part of the script that currently is not functional. Any advice, here is some of the info I have from my phpinfo page that might have something to do with it, below that is a url to the website. [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]Virtual Directory Support disabled Configuration File (php.ini) Path /usr/local/lib/php.ini PHP API 20020918 PHP Extension 20020429 Zend Extension 20050606 Debug Build no Zend Memory Manager enabled Thread Safety disabled Registered PHP Streams php, http, ftp, https, ftps, compress.zlib allow_call_time_pass_reference On On allow_url_fopen On On always_populate_raw_post_data Off Off arg_separator.input & & arg_separator.output & & asp_tags Off Off auto_append_file no value no value auto_prepend_file no value no value browscap no value no value default_charset no value no value default_mimetype text/html text/html define_syslog_variables Off Off disable_classes no value no value disable_functions no value no value display_errors On On display_startup_errors Off Off doc_root no value no value docref_ext no value no value docref_root no value no value enable_dl On On error_append_string no value no value error_log no value no value error_prepend_string no value no value error_reporting 2039 2039 expose_php On On extension_dir ./ ./ file_uploads On On gpc_order GPC GPC highlight.bg #FFFFFF #FFFFFF highlight.comment #FF8000 #FF8000 highlight.default #0000BB #0000BB highlight.html #000000 #000000 highlight.keyword #007700 #007700 highlight.string #DD0000 #DD0000 html_errors On On ignore_repeated_errors Off Off ignore_repeated_source Off Off ignore_user_abort Off Off implicit_flush Off Off include_path .:/usr/local/lib/php .:/usr/local/lib/php log_errors Off Off log_errors_max_len 1024 1024 magic_quotes_gpc On On magic_quotes_runtime Off Off magic_quotes_sybase Off Off max_execution_time 30 30 max_input_time 60 60 open_basedir no value no value output_buffering no value no value output_handler no value no value post_max_size 8M 8M precision 12 12 register_argc_argv On On register_globals On On report_memleaks On On safe_mode Off Off safe_mode_exec_dir no value no value safe_mode_gid Off Off safe_mode_include_dir no value no value sendmail_from no value no value sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i serialize_precision 100 100 short_open_tag On On SMTP localhost localhost smtp_port 25 25 sql.safe_mode Off Off track_errors Off Off unserialize_callback_func no value no value upload_max_filesize 2M 2M upload_tmp_dir no value no value user_dir no value no value variables_order EGPCS EGPCS xmlrpc_error_number 0 0 xmlrpc_errors Off Off y2k_compliance On On [/quote] I ALWAYS have register_globals off, but I have absolutely no choice on this server, there are three other programmers working on other sites on the same server, and one of them has to redo like 2000 lines of code to make it ready for register_globals off I warned them of security, and they are currently preparing to change that, as for the url [a href=\"http://www.funnyemailforwards.com\" target=\"_blank\"]Funny Email Forwards[/a]
  13. I have a few questions on how to work this out with files. I have this script so far. [code]$management = true; $errorhandler = ""; $filemanager = true;         if ($_POST['name'] == "") {         $errorhandler .= "The Name field has been left blank<br />";         }         if ($_POST['keywords'] == "") {         $errorhandler .= "The Keywords were left blank<br />";         }              if(!is_uploaded_file($_FILES['file']['tmp_name'])){         $errorhandler .= "No file has been uploaded<br />";         $filemanager = false;         }                  if ($filemanager == true) { $_accepted_extensions = array('.mpeg', '.mpg', '.wav', '.avi', '.mid', '.htm', '.jpg', '.jpeg', '.jfif', '.pdf', '.txt', '.wav', '.html', '.gif', '.mp2', '.mp3', '.bmp');     if ($filemanager == true) {                     $tmp = pathinfo($_FILES['file']['name']);                 if (in_array('.' . $tmp['extension'],$_accepted_extensions)) {                     $filemanager = true;                     $management = true;                         }else {                         $filemanager = false;                         $management = false;                         $errorhandler .= "You have attempted to upload the wrong file type<br />";                         $errorhandler .= "We only accept mpeg, mpg, wav, avi, mid, midi, doc, htm, jpg<br />";                         $errorhandler .= "jpeg, jfif, pdf, txt, wav, html, gif, qt, mp2, mp3 formats<br />";                         $errorhandler .= "To request new file types email<br />";                         $errorhandler .= "information@theyellowpagesnetwork.com";                         }                     }                 }                                  if ($management == false || $filemanager == false) {                 echo "{$errorhandler}";                 }                     [/code] Ok This is what I have so far. Everything works great, I check the form over on www.funnyemailforwards.com and I handle it here. I set my script at the top, I go through checking for blank space, then checking if the file was uploaded, if it uploaded I check for file extensions, then it gets down there, and if there were any errors encountered it displays error messages. But I have to get advice on a few things 1. Are those good or bad files to download, s hould I add or remove some extensions. 2. How do I move the files over to a folder, and should I embed them in teh page, or leave them as downloadable links, how do I get the pages to imbed automatically, with each upload 3.The hardest thing is I have to set up to where I record the url of them and everythign including date, into a database, and then get something to send my client an email, he can accept/decline the entry, if he declines I need it to remove tha tentry from the database, and if not leave it alone, but I need the email to be directly related to the file that was entered, I don't know how to set this up. I really need advice any and all advice you could give would be greatly appreciated.
  14. '$email'") get rid of those 2 quotation marks at the end just leave '$email')
  15. That really kicks butt, that helped a lot, thanks. Also thanks for the information about tables, so tables again would then be good for me to use when setting up to display something like results from a database.
  16. Tables are evil, I am so far away from tables, I don't even know how to do tables. I never did a table based website before, I can work lightly in tables, but I forced myself to start with learning css div/span, but I have some ideas now, so I will try putting these into code, and see if it turns out, thanks.
  17. Ninjakreborn

    ie7

    I tried a few things, I want to get ie7 and ie 6 on the same machine, so I don't have to fight with it, but I need ie6 and the default browser left alone. I tried some site using the batch file, and it still had some conflicts, I also tried using a virtual machine, I am installing it now to see if it works but I think I need a server to use it. [a href=\"http://weblogs.asp.net/jgalloway/archive/2005/12/28/434132.aspx\" target=\"_blank\"]http://weblogs.asp.net/jgalloway/archive/2.../28/434132.aspx[/a]
  18. I need some help with this, advice or direction, I am not new at css I am very good with it but this has me stuck. Below is the picture I am trying to get the format to look like. [img src=\"http://www.freelancebusinessman.com/images/test.gif\" border=\"0\" alt=\"IPB Image\" /] Now this is what I currently have, I took what he had, I left the absolute positioning alone, because I didn't know how to get the same look with the top part, and I added in the second lower part, and formatted his css better, and easier to read, and worked on some of his html, here is the pic I got from what I ended up doing. [img src=\"http://www.freelancebusinessman.com/images/test2.gif\" border=\"0\" alt=\"IPB Image\" /] Ok that is what I currently have, and I am confused as to why I can't get atleast somewhat near the layout, I thought it would work, here is the final xhtml, and css I have so far, again the absolute positioning is what he did with golive I don't use that anymore, but I don't know how to really change that either and nothing I am trying is getting even close, when I try to dismantle the top part and redo it, it falls apart, I have a hard time with graphics heavy sites, so far anyway, any advice would be appreciated, nothign I can do, can seem to get the bottom part situated, liek I want it, the reason I am doing htis, is because I am going to use javascript after that, to get the pics to make the text appear, and from a past experience I can easily figure that out, I am just looking for some guidance, or tips on the layout. XHTML [code]<!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"> <html>     <head>         <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />         <meta name="generator" content="Adobe GoLive" />         <meta name="Keywords" content="custom, furniture, design, kensington, san francisco, bay         area, repair, woodworking, antique, antiques, library, card, catalog, catalogs, catalogue" />         <title>Entryway to Furniture Section</title>         <link rel="stylesheet" href="FurnPhotoSculpCSS.css" />     </head>     <body>         <!-- Begin Entire head section -->     <div id="topmasterdiv">     <div id="HuttBrooksLogo"><img src="CommonImages/logoFurniture2aSm.gif" alt="" height="80"     width="293" border="0" /></div>     <div>     <p>For over 50 years I have been retrofitting, redesigning, repairing, restoring, recombining, inventing, and building fine furnishings and antiques.  My Devotion, is to well thought out design, lasting craftsmanship, and just plain making things extremely functional     </p>     </div>     </div>     <div id="NavBarFoundation"><div id="NavBarSpacerLeft"><img     src="CommonImages/NavBar/1pxspacer.gif" width="1" height="1" alt="" /></div>     <div id="NavBarBook1"><a href="FurnitureCompleteWorks.html"><img     src="CommonImages/NavBar/NavBarBook1.gif" width="59" height="175" alt="Book of Complete Works of Furniture" /></a></div>     <div id="NavBarBook2"><a href="FurnitureWhoWhyEtc.html"><img src="CommonImages/NavBar/NavBarBook2.gif" width="49" height="175" alt="Book of Who, Why, What, etc." /></a></div>             <div id="NavBarBook3"><a href="ContactInfo.html"><img src="CommonImages/NavBar/NavBarBook3.gif" width="52" height="175" alt="Book of Contact Information" /></a></div>             <div id="NavBarBook4"><a href="FurnitureStudioShop.html"><img src="CommonImages/NavBar/NavBarBook4.gif" width="45" height="175" alt="Book of The Studio Store" /></a></div>             <div id="NavBarBook5"><a href="MasterSiteIndex.html"><img src="CommonImages/NavBar/NavBarBook5.gif" width="54" height="175" alt="Combined Site Index" /></a></div>             <div id="NavBarBook6"><a href="index.html"><img src="CommonImages/NavBar/NavBarBook6.gif" width="57" height="175" alt="Book linking to Opening Scene Card Catalogue" /></a></div>             <div id="NavBarSpacerRight"><img src="CommonImages/NavBar/1pxspacer.gif" width="1" height="1" alt="" /></div>             <div id="NavBarShelf"><img src="CommonImages/NavBar/NavBarShelf.gif" width="372" height="33" alt="Book Shelf" /></div>         </div> </div>             <!-- End Entire head section -->             <!-- Begin situating rest of body -->             <div><!-- Wrapper -->             <div><!-- photo 1 set -->             <div><!-- photo link 1 -->             <a href="piece1.htm">             <img src="FurnitureHmPgImages/1CDBureauArts&craftsLight150.jpg" alt="Photo 1" />             </a>             </div>             <div>             <h3>Photo 1 Text</h3>             <p>Setting space around elements is a basic tool in typography.  The headline above this             paragraph has space above it and (slightly less) space below it.  This paragraph, as             printed in the book, has space on the left.</p>             </div>             </div><!-- end photo 1 set -->             <div><!-- photo 2 set -->             <div><!-- Photo link 2 -->             <a href="piece2.htm">             <img src="FurnitureHmPgImages/2TrebleClefStool150x180.jpg" alt="Photo 2" />             </a>             </div>             <div>             <h3>Photo 2 Text</h3>             <p>Setting space around elements is a basic tool in typography.  The headline above this             paragraph has space above it and (slightly less) space below it.  This paragraph, as             printed in the book, has space on the left.</p>             </div>             </div><!-- end photo 2 set -->             <div><!-- photo 3 set -->             <div><!-- Photo link 3 -->             <a href="piece3.htm">             <img src="FurnitureHmPgImages/3PearsonTablePlus150x180.jpg" alt="Photo 3" />             </a>             </div>             <h3>Photo 3 Text</h3>             <p>Setting space around elements is a basic tool in typography.  The headline above             this paragraph has space above it and (slightly less) space below it.  This paragraph,             as printed in the book, has space on the left.</p>             </div>             </div><!-- end photo 3 set -->             <div><!-- photo 4 set -->             <div><!-- Photo link 4 -->             <a href="piece4.htm">             <img src="FurnitureHmPgImages/4LaPineGreenTable150x180.jpg" alt="Photo 4" />             </a>             </div>             <h3>Photo 4 Text</h3>             <p>Setting space around elements is a basic tool in typography.  The headline above             this paragraph has space above it and (slightly less) space below it.  This paragraph,             as printed in the book, has space on the left.</p>             </div>             </div><!-- end photo 4 set -->                 <div><!-- photo 5 set -->             <div><!-- Photo link 5 -->             <a href="piece5.htm">             <img src="FurnitureHmPgImages/5BuckeaselBack150x180.jpg" alt="Photo 5" />             </a>             </div>             <h3>Photo 5 Text</h3>             <p>Setting space around elements is a basic tool in typography.  The headline above this             paragraph has space above it and (slightly less) space below it.  This paragraph, as             printed in the book, has space on the left.</p>             </div>             </div><!-- end photo 5 set -->             <div><!-- photo 6 set -->                 <div><!-- Photo link 6-->             <a href="piece6.htm">             <img src="FurnitureHmPgImages/6RollingIndexVic150x180.jpg" alt="Photo 6" />             </a>             </div>             <h3>Photo 6 Text</h3>             <p>Setting space around elements is a basic tool in typography.  The headline above this             paragraph has space above it and (slightly less) space below it.  This paragraph, as             printed in the book, has space on the left.</p>             </div>             </div><!-- end photo 6 set -->             <div><!-- photo 7 set -->             <div><!-- Photo link 7-->             <a href="piece7.htm">             <img src="FurnitureHmPgImages/7SpanishBenchResurectn150x18.jpg" alt="Photo 7" />             </a>             </div>             <h3>Photo 7 Text</h3>             <p>Setting space around elements is a basic tool in typography.  The headline above             this paragraph has space above it and (slightly less) space below it.  This paragraph, as             printed in the book, has space on the left.</p>             </div>             </div><!-- end photo 7 set -->             <div><!-- photo 8 set -->             <div><!-- Photo link 8-->             <a href="piece8.htm">             <img src="FurnitureHmPgImages/8Bunny1a150x180.jpg" alt="Photo 8" />             </a>             </div>             <h3>Photo 8 Text</h3>             <p>Setting space around elements is a basic tool in typography.  The headline above this             paragraph has space above it and (slightly less) space below it.  This paragraph, as             printed in the book, has space on the left.</p>             </div>             </div><!-- end photo 8 set -->             </div><!-- end wrapper -->             <!-- End main content -->         </body>     </html>[/code] CSS [code]/* Styles for all pages in all 3 sections: Furniture, Photographic Works, Sculpture Etc.  One for Logo,     the next 10 for the Navigation Book Shelf, one for the big blank book, and the last to create breathing     space at the bottom */     body   {     background-image:url(CommonImages/Backgrd1Furniture.gif);     background-color:#000000;     margin: 0;     padding: 0 }           #HuttBrooksLogo {     visibility:visible;     position:absolute;     top:16px;     left:32px;     width:293px;     height:80px } #NavBarFoundation {     visibility:visible;     position:absolute;     top:2px;     left:432px;     width:372px;     height:208px } #NavBarSpacerLeft {     visibility:visible;     position:absolute;     left:0px;     top:0px;     width:24px;     height:175px; } #NavBarBook1 {     visibility:visible;     position:absolute;     left:24px;     top:0px;     width:59px;     height:175px; } #NavBarBook2 {     visibility:visible;     position:absolute;     left:83px;     top:0px;     width:49px;     height:175px; } #NavBarBook3 {     visibility:visible;     position:absolute;     left:132px;     top:0px;     width:52px;     height:175px; } #NavBarBook4 {     visibility:visible;     position:absolute;     left:184px;     top:0px;     width:45px;     height:175px; } #NavBarBook5 {     visibility:visible;     position:absolute;     left:229px;     top:0px;     width:54px;     height:175px; } #NavBarBook6 {     visibility:visible;     position:absolute;     left:283px;       top:0px;     width:57px;     height:175px; } #NavBarSpacerRight {     visibility:visible;     position:absolute;     left:340px;     top:0px;     width:32px;     height:175px; } #NavBarShelf {     visibility:visible;     position:absolute;     left:0px;     top:175px;     width:372px;     height:33px; } #OpenBook     {     visibility:visible;     position:absolute;     top:230px;     left: 0;     width:804px;     height:670px } #Footer {     visibility:visible;     position:absolute;     top:900px;     left:0;     width:804px;     height:100px }          #topmasterdiv {     clear:both; } a { border:none; } $bottomwrap { clear:both; }[/code] Again the top section was him, I have tried cutting it down, so I decided to try and find a way to make the bottom part happen without touching the top.
  19. I have a question now. I have finished file validation and everything completely, now I am at the point where I need to do what I need to do, and database the information here is what I was wondering to get me off on the right step. Here is the first thing I need to ask. I know how to get the file to move over into a folder on the server once uploaded, I need to figure out some way to. 1. Record that url into a variable so I can database it(IN my same script so I can also record the time it was inserted(date). 2. How once I get all of it into the place, how to email it to him, my current idea, is to have it email him the link name, that way it's always what was entered, then if he declines, it removes the file from the database completely, if it is accepted then it is left alone, I think that would be easier, but what about the first part of that any suggestions. I also want advice on this if anyone has any to offer, the current accepted file extensions I have written up are [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--] '.mpeg', '.mpg', '.wav', '.avi', '.mid', '.midi', '.doc', '.htm', '.jpg', '.jpeg', '.jfif', '.pdf', '.txt', '.wav', '.html', '.gif', '.qt', '.mp2', '.mp3'[/quote] Ideas, are any of these better to leave out, or any of them that I forgot that would be good. I also need to figure out how to either have the files downloadable as links, or put in as embedded in the page, but I think embedding them based on the page wuold be hard, because I have to accomodate each possible filetype, any advice would be greatly appreciated, or anything pointing me in the proper direction, pointing me to the manual, about the section on files won't help, that's where my source of information has been coming from so far, that, google, and programming php version 1,(need version 2 later), so I have tools, that I have been using to help me learn faster, but the general concept of what I am trying to do is a little over my head, and I am trying to ease my way into it a little at a time.
  20. ah gotcha, thanks for the help.
  21. I tried changing that line and it still didn't work, then I tried kens and it seemed to work. It works now, so I have a few questions, "learning purposes" what is this [code]$info=pathinfo($_FILE['file']['name']);[/code] The reason the first didn't work is because you typo'd file, instead it's FILES, and I didn't catch that. I am unfamiliar with this I thought that $_FILE is what calls the array then the ['file'] should have been the name of the file in teh array, where does ['name'] come from because I didn't have anything in my script called name, and when I studied it, I foudn the references showing $_FILES['file'] and the file name would b where the 'file' is if the input was name upload it would be $_FILES['upload'] this part confused me.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.