Jump to content

dazmond

Members
  • Posts

    9
  • Joined

  • Last visited

dazmond's Achievements

Rookie

Rookie (2/14)

  • First Post
  • Conversation Starter
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. Just wanted to wish everyone at TCH and on the forum a happy holiday and new year, i know its a bit early but i will forget if i don't do it now, ha. Daz
  2. Right, if i amended the script as follows: $additionalHeaders = "From: Flash feedback<feedback@example.com>\n"; if (eregi("\r",$additionalHeaders) || eregi("\n",$additionalHeaders)){ die("Why ?? "); } and then saved it within the private folder of my hosting space would that resolve the problem (i'm just learning php as you may have guest ha). thanks you darren
  3. Hello Just a quick question, i was reading the latest email form TCH about the spam abuse through php email scripts, i did have a php script on my account and i am unsure if it was safe. The script was accessed through a flash movie and was just up there for testing purposes, the script i used is as follows: <?php $to = 'david@example.com'; $subject = 'Feedback from Flash site'; $message = 'From: '.$_POST['from']."\n\n"; $message .= 'Email: '.$_POST['email']."\n\n"; $message .= 'Address: '.$_POST['snail']."\n\n"; $message .= 'Phone: '.$_POST['phone']."\n\n"; $message .= 'Comments: '.$_POST['comments']; $additionalHeaders = "From: Flash feedback<feedback@example.com>\n"; $additionalHeaders .= "Reply-To: $_POST"; $OK = mail($to, $subject, $message, $additionalHeaders); if ($OK) { echo 'sent=OK'; } else { echo 'sent=failed&reason='. urlencode('There seems to be a problem with the server. Please try later.'); } ?> As i said preveouely, the post arrays are sent via a flash movie is this script left open to abuse if left on my account (i'v taken it down just incase). if so SORRY any help would be fantastic. thanks Daz:)
  4. Thanks very much Don and Bruce, after trying it out on the script that D.Slatk gave me it worked a treat, thanks again you all have been a MASSIVE help. Daz
  5. Thanks Andy, it's SLOWLY starting to making sence.
  6. D.Slatk: Hi thanks a lot that is a big help, i haven't tryed just yet, work keeps getting in the way. The types of error messages that i recive range from the error message that follows the "die()" statment or just says i have autarisation to connect, playing around with it a little it chaged to being a "parse error, unexpected T_STRING" ... "on line 12" which is were the insert data sql statment was. i'll give your vertion a try, fingers crossed, Thanks againg for the help. //------------------------------------------------------------------------------------------------------------ TCH-Bruce: Hi i belive i did create a database, and the user that i'm useing is the one that i use for accessing my cpanle, not too sure what you mean about adding the user to the database to be honest. on the accesing the database descriptions: "dbname - cpanelname_databasenane dbuser - cpanel_user password - what you created" what do mean by the "cpanlename", and the "cpanle_user" sorry to be a pain about this but i'm prity much a begginer at this. any help would be gratly apreciated. P.s. sorry about the spellings.
  7. Hello again, resently i have been trying to conect to my database so i can insert data via a php and mysql script in to a selected table, after reading through a number of books and useing some code that has prevoiusly worked on university server i still seem to keep getting some kind of error message, the script i'm uesing is: <?php $connection = mysql_connect("localhost","username","password","database name") or die("message"); INSERT INTO game (cust_id, score, email, name) VALUES ('','test','if','works'); ?> do tch allow this type of accsess and if so can you see what i'm doing wrong as it getting quite fustrating to be honest, php isn't my strong point as you can probly tell, thanking you in advance Darren
  8. Thanks very much i think i will be very happy hear Darren
  9. Hello, i resently bought a hosting pakage from your good selfs and followed the instructions to change my password, i can access all my files and foldes via FTP but when accesssing the "private" folder through the browers it askes for my username and new password, which i give, but then replies with the following: "Authorization Required This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request." i'm uesing a mac and have tyred it in internet explorer and safari but both don't seen to work. any ideas of what i am doing rong would be greatly apprestiated thanks darren
×
×
  • Create New...