Jump to content


  • Posts

  • Joined

  • Last visited

Contact Methods

  • Website URL
  • Yahoo

Profile Information

  • Location
    Santa Clarita, CA

scotttyz's Achievements


Collaborator (7/14)

  • First Post
  • Collaborator
  • Conversation Starter
  • Week One Done
  • One Month Later

Recent Badges



  1. What I have done on most of the sites I have worked on is to "hard-code" the mailto: line into the form processing script and leave it out of the HTML page completely. That way no mining of emails.
  2. OMFGROFLCOPTER, so simple changes below works great (if I retyped right)
  3. Long time no post Having a problem getting this to work and I was wondering if this is a permissions related issue on TCH. Finishing up a inventory listing for a site selling used bikes. No sales from site, just an inventory list. Currently working on the "admin area" to add a new bike to the database. There are 2 pictures being uploaded with each bike. Using a form page to add new records: (NOTE: form works and adds records fine sans file upload) Sniped code ><form action="my_script.php" enctype="multipart/form-data" method="POST" onsubmit="return validate_form(this)" name="addBikeForm"> <tr> <td class="formgr">Upload/thumbnails<br>200x150 px </td> <td class="formgl"> <input type="file" name="pic_small"></td> </tr> <tr> <td class="formgr">Upload/Images<br>400x300 px </td> <td class="formgl"> <input type="file" name="pic_big"></td> </tr> <input type="submit" value="Add Bike"> <input type="reset" value="Reset Form"> and the php script: ><?php // lets link up :) $statusLinkID = mysql_connect("localhost", "XXXXXXXXXXX", "XXXXXXXXX") or die ('I cannot connect to the database because: ' . mysql_error()); mysql_select_db ("XXXXXXXXXX", $statusLinkID); //lets write this bad boy $enter_base_record = mysql_query("INSERT INTO bikes (class, manu_id, sell_price, cc, year, model, miles, notes) VALUES ('$class', '$manu_id', '$sell_price', '$cc', '$year', '$model', '$miles', '$notes')", $statusLinkID); if ($enter_base_record != TRUE) {die ('I cannot enter the base record because: ' . mysql_error() . '.');} // Record Number $lastEntry = mysql_insert_id($statusLinkID); // do the file move and rename thing if ($HTTP_POST_FILES['pic_small']['size'] <=0) {die ('Hi, you forgot to put in a small pic or it did not upload corectly. Please delete record number '. $lastEntry . ' completely and renter.');} else { copy($HTTP_POST_FILES['pic_small']['tmp_name'],"/home/hilmuam/public_html/selling/bikes/".$HTTP_POST_FILES['pic_small']['bike_'. $lastEntry. '_sm']);} if ($HTTP_POST_FILES['pic_big']['size'] <=0) {die ('Hi, you forgot to put in a big pic or it did not upload corectly. Please delete record number '. $lastEntry . ' completely and renter.');} else { copy($HTTP_POST_FILES['pic_big']['tmp_name'],"/home/hilmuam/public_html/selling/bikes/".$HTTP_POST_FILES['pic_big']['bike_'. $lastEntry. '_bg']);} // Remove old files AKA clean your sh!t up unlink($HTTP_POST_FILES['pic_small']['tmp_name']); unlink($HTTP_POST_FILES['pic_big']['tmp_name']); // All done go home and open a beer header("Location: add.php"); ?> The errors I am getting ATM are: Warning: copy(/home/XXXXX/public_html/selling/bikes/): failed to open stream: Is a directory in /home/XXXXXX/public_html/admin/admin_add_bike.php on line 14 Warning: copy(/home/XXXXXX/public_html/selling/bikes/): failed to open stream: Is a directory in /home/XXXXXX/public_html/admin/admin_add_bike.php on line 17 Any Ideas?? Alternate ways to get this done? I need to rename the images using the Auto_Inc ID given to Dbase record as it is entered so I can script the front end search
  4. I agree! Slides a c note under the table to Robert as investment
  5. Thanks for the heads up Rock Sign
  6. I am not sure if this is the appropriate place for this, if not please move Is Team speak http://www.teamspeak.org something that can be used on a TCH hosted site? I am working on a site for a friend that is hosted here and this would be a great addition to his site (a bunch of StarWarsGalaxies players)
  7. could you let us know what line is #313 (or whatever line the error is saying) and that will help a ton
  8. the domail name stuff would be answered/set-up by a TCH-**** named board surfer or by ticket. On the set up you could verify the email address exsists in Cpanel and confirm that the form is pointing to the same email. But mostly WELCOME!!! Rock Sign
  9. I had the same problem with TCH without using include or require. My fix was to add >php_value display_errors 1 to the end of the .htaccess in the folder of the offending script. It can be a fairly common error in PHP with many server setups EDIT: BTW I was not setting ANY hedder information in the offending script. I am not " ignoring the error may correct it on-screen"
  10. if all you want to do is keep the URL in the browser "location" as your domain, then have your index.htm(l)/default.htm(l) a frameset and have the frameset load the main page. No reason to have multiple frames in a frame set
  11. I'd be willing to help with the PHP if you cant find what you are looking for.
  12. after the server move I noticed the stats have changes to Webalizer instead of the AWStats that was on 58. Is this a planned change? Or is the server going to be switched over to AWStats?
  13. I am looking to use a shared SSL for a private section of my site as we are going to be trasmitting a ton of confidential information. Will the "this certificate is not from the originating domain" appear every time you go to the site? or is there an option to always accept. I dont have much exper with shared SSL o btw, incase you don't already know Rock Sign
  • Create New...