Jump to content

witt

Members
  • Posts

    36
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

witt's Achievements

Member

Member (2/5)

0

Reputation

  1. The activation code is a randomly generated 32 character long string so I doubt someone would guess it. But that is not what I'm asking about. Lets say that I want to send an email upon registration. The email would say 'Hello'. How would I make sure that hotmail addresses receive this message within a few minutes? Like I said, there are many sites that do such thing, so I know it can be done.
  2. [quote author=Orio link=topic=98963.msg389758#msg389758 date=1151684503] They ask you to press a link if you want to activate your account. They have no idea if you checked your email or lets say guessed it. Orio. [/quote] An activation code is generated when a user registers. That activation code is then sent to the email address provided by the user. The user is supposed to read the email with the activation code, and click on a link provided in the email. Once they click on the link, their activation code is verified and if it matches the one in the database, their account gets activated. There are tons of sites that use an email verifaction methods like this. Are you telling me that none of the thousands of sites that employ a method like this can send emails to hotmail addresses?
  3. So what if you need to have an account activated? How do sites send these emails to hotmail addresses?
  4. No, it's not being categorized as spam. How could I ensure that the mail arrives instantly?
  5. I this script which is supposed to send an email. [code]$body = "Thank you for registering. To activate your account, please click on this link:\n\n"; $body .= "http://{$_SERVER['HTTP_HOST']}/activate.php?a=$active"; mail($_POST['email'], 'activate', $body, 'From: donotreply@site.com');[/code] It works perfectly fine for all email addresses, except for hotmail. When sending to a hotmail address, the email only shows up in the inbox after many hours. Yahoo, AOL, GMail, etc., all receive the emails instantly with no delay. Any ideas?
  6. Hmm, now I get this: An appropriate representation of the requested resource /forums/index.php could not be found on this server. when trying to reply. Here is the code I had: [code]header("Content-type: $file_type"); header("Content-Disposition: attachment; filename=$file_name"); echo $file;[/code] This was used to display files retrieved from the database. The strange thing is that the above code stopped working 2 days ago and now all pdf files are corrupted. Anyways, I'd rather have the files downloaded from the server instead of the database. ...and this: ..and probably a about another 5 things. The pdf file always end up getting corrupted. I have no idea why the first code worked, and then suddenly stopped working today. It leads me to believe that some of the php settings were changed on the server, but I'm not sure. If I simply link to the file I get prompted with the option to download and the file opens fine after it. I tried a few other things, but for some reason I get an error why I try to post it in this message.
  7. [!--quoteo(post=387322:date=Jun 23 2006, 07:11 PM:name=AndyB)--][div class=\'quotetop\']QUOTE(AndyB @ Jun 23 2006, 07:11 PM) [snapback]387322[/snapback][/div][div class=\'quotemain\'][!--quotec--] [a href=\"http://www.phpfreaks.com/forums/index.php?showtopic=95433\" target=\"_blank\"]http://www.phpfreaks.com/forums/index.php?showtopic=95433[/a] - you may find that useful [/quote] Unfortunately I don't. I get the same result as I've gotten with everything I've tried - the pdf gets corrupted and can't be opened.
  8. I've tried several different methods an none have worked so far. Basically what I want is to a have a script named download.php that gets passed a file id via a link and then prompts the user with the option of saving the file. Retrieving the information for the file in question is not a problem, just the downloading part. Lets say that file name, file type (pdf in this case), file size and file location are already at your disposal, all that is needed is the code to prompt the user to dowload the file.
  9. If I have a script like this <form action="search_results.php" method="get"> <p><b>Title:</b> <input type="text" name="title" size="30" maxlength="60" /></p> <input type="submit" name="submit" value="Submit" /> to submit a form and this if (isset($_GET['title'])) { $title = $_GET['title']; echo "the title is $title"; } to show the result, why does isset($_GET['title']) always evaluate to true even if the textbox is left blank?
  10. [!--quoteo(post=382546:date=Jun 11 2006, 11:37 AM:name=zirgs)--][div class=\'quotetop\']QUOTE(zirgs @ Jun 11 2006, 11:37 AM) [snapback]382546[/snapback][/div][div class=\'quotemain\'][!--quotec--] change [code] echo $row[0]; [/code] to this one [code] echo $row['0']; [/code] but i think that you cant echo non existing row? [/quote] It's MYSQL_NUM not MYSQL_ASSOC so [0] is correct.
  11. Is there any reason why this script wouldn't work? <?php require_once ('includes/mysql_connect.php'); $query = "SELECT last_name FROM users WHERE MATCH (first_name) AGAINST('bob')"; $result = mysql_query ($query); while ($row = mysql_fetch_array($result, MYSQL_NUM)) { echo $row[0]; echo '<br />'; } ?>
  12. Sounds like you don't have php installed or it's not set up properly. If you don't have php/mysql/apache installed, just download wampserver. [a href=\"http://www.en.wampserver.com/\" target=\"_blank\"]http://www.en.wampserver.com/[/a]
×
×
  • 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.