Jump to content

MadTechie

Staff Alumni
  • Posts

    9,409
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by MadTechie

  1. if people are having trouble viewing the HTML, wouldn't adding a HTML link be pointless as they wouldn't be able to view it! you could send a multipart email including html and plain text
  2. PHP is server side so your need Outlook on the server connection to the peoples calendar's and then you could use a COM connection, Javascript is client side but can't just connect to the users applications due to security, it really depends on what access levels you have.
  3. Why not just create a loop with the array and use preg_replace with the replacement limit to 1 here's a basic concept (untested) $string = 'test test test test test test test test test test '; $find = '/test/i'; $replace = array('1','2','3','4','5'); foreach($replace as $R) { $string = preg_replace($find, $R, $string,1); } echo $string; expected output
  4. I have had this problem (with IE) on non-cached pages, So another option, is to change the URI (just add a random number / time / whatever) this make the browser think its a new link, ie <img src="image.jpg?rand=randomNumber">
  5. read the full post, as it hold the solution!
  6. Technically facebook could choose to allow users to expose their email but I don't think that's currently an option for the reasons already stated, in fact the email address are displayed as images.
  7. That's what I said/meant third party don't get email address just objects, okay I'm confusing myself now
  8. very true, users data is seen as an object, so the facebook users can choose if the third party apps can use that info, from the facebooks security settings.
  9. Of course they have more than one mail server but the mail servers are just that mail servers and that's their primary function, facebook also have MySQL server and lets not forget the web-servers. in total Facebook is currently running over 10,000 servers, that includes including around 1,800 MySQL I'll love to know how many MySQL servers Google is using. back on topic, try PHPList or if you have some budget you can get mail servers like what sendblaster uses, of course you could wait until the site grows and then expand to a dedicated server
  10. Yes, by coding it. Create a listening socket that echo's the message data form socket's that you have writing to it, if you have a good understanding of what sockets are and how to use them you shouldn't have too many issues using them in PHP, When learning about sockets one of my first project was I create a P2P chat then expanded it for more uses, I then added a white board and some games (infact it was like a basic version of today's MSN)
  11. I'll answer that with a question, Do facebook use a shared server ? The very fact your asking what Host provider give unlimited mail-outs, suggests you don't want to pay for a dedicated server, speaking of dedicated, facebook use dedicated server just for email facebookmail.com, and follow some strict standards for their emails out, this isn't just using the mail() as to apply to the standards relaying must be off, which means the mailer requires authentication, and considering mail() doesn't support ssl or mail authentication its a pretty safe bet they don't use mail() oh and the mail factory facebook uses is called ZuckMail named after the developer of facebook Mark Zuckerberg,
  12. When the back button is used the browser loads the cached page try this, to stop any cacheing <?php // Date in the past header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Cache-Control: no-cache"); header("Pragma: no-cache"); ?>
  13. You have an encoding issue, try changing your character encoding to UTF-8 in the head section of the html add <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  14. If you just want to stop updates from other members then you could move the user field from the update to the where Also ID=%s should be ID=%d ie change $updateSQL = sprintf("UPDATE Music SET Title=%s, Artist=%s, Movie=%s, `Time`=%s, `Scene Description`=%s, `User`=%s WHERE ID=%s", to $updateSQL = sprintf("UPDATE Music SET Title=%s, Artist=%s, Movie=%s, `Time`=%s, `Scene Description`=%s WHERE `User`=%s AND ID=%d", However.. I it looks like $_POST['User'] is pulled from a posted session "$_SESSION['MM_Username']", if that's the case you should use the session instead of posting it so GetSQLValueString($_POST['User'], "text"), GetSQLValueString($_SESSION['MM_Username'], "text"), and remove <input name="User" type="hidden" id="User" value="<?php echo $_SESSION['MM_Username']; ?>" readonly="readonly" />
  15. LOL, I think we have all done that before normally more coffee solves it
  16. Your need to use the Unique ID (autonumber) field, have that in a hidden field and use that, if you don't have one then i guess you could store the name twice (new and old) then have a statement like $sql = "UPDATE mytable SET email = '$email', name = '$newname' WHERE name = '$oldname'";
  17. What part are you stuck on ? also can you post the code you currently have for updating the database, HTML is pretty but not a great help (unless your in the HTML/CSS section)
  18. Couldn't see an error, just tried it here.. no error!
  19. ALSO when you signed up you accept the Term & Conditions
  20. You have "smart quotes" Note that “Hello World!” is not the same as "Hello World!" the problem is on this page http://feeds.feedburner.com/alvinh?format=sigpro you can see that &#8217; gets converted to &#8217; that's the problem
  21. What are you trying to do ? what's not working? any errors ?
  22. you need to have the full url including the http://
  23. You could cheat, and allow apache to parse it (your need the http://) ie $ID = (int)$_GET['invoiceID']; file_put_contents("invoice".$ID.".html", file_get_contents("http://www.domain.com/invoices/invoice.php?invoiceID=".$ID)); or use ob_start(); ie $ID = $_GET['invoiceID']; ob_start(); //invoice code //.... //end invoice code //at the end save data file_put_contents("invoice".$ID.".html",ob_get_contents()); //and display ie ob_end_flush(); //or clear output //ob_end_clean();
  24. What do you get from the var_dump() ? Did you view source and check ? the height of the table row maybe hiding it.
  25. try adding the following debug code //DEBUG $row = mysql_fetch_assoc($result); var_dump($row); die; //END DEBUG //Below is existing code while ($row = mysql_fetch_assoc($result)) { echo $row["date"]."<br>"; echo $row["content"]."<br><br>"; } it it doesn't appear view source and check the last few lines for any errors
×
×
  • 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.