Jump to content

JonnoTheDev

Staff Alumni
  • Posts

    3,584
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by JonnoTheDev

  1. One reason maybe, your message headers say the message is from krohitreddy@gmail.com however the domain gmail.com will not resolve back to your servers IP address. This could be seen as mail relayed spam. You should send the messages from an alias of the website domain name. Reverse DNS is setup in the PTR entry of the DNS record for your domain. AOL block messages for the same reason http://postmaster.aol.com/guidelines/standards.html Your university may not accept messages from free email accounts like gmail, etc. This is not uncommon. You need to check your server for any bounced messages to get details on why they did not end up in the correct location. Without this info it is hard to say. The IP address of your server maybe on a mail blacklist. This is not uncommon on shared servers as you never know what other users are doing in terms of sending email. Check your server IP with http://dnsstuff.com
  2. InnoDB just because MYISAM tables crash and have to be repaired (0 recovery). This will probably start a huge thread now!
  3. crypt() has a few algorithms built in as long as the server supports them. DES, MD5, Blowfish
  4. http://www.tutorialized.com/tutorials/PHP/Image-Manipulation/1
  5. What OS does it run? Is it your own dedicated server? If it is a shared server then you wont have the permission to do this. Look at redarrows post on setting the timezone within the script instead. You would put this within a gloab include file.
  6. Ah yes didn't realize as never used a string in that fashion. Unsure whether that is bad practice as it is a way of accessing array values from a key. If it was my code I would have split the string $value = str_split("foobar"); $letter = $value[$i]; Something new every day, eh
  7. There is no such thing. If there was which registrar would you be registering domain through and how would they work out the commission rate. You have to signup with a registrar as a reseller first. The top level registrars like ICANN don't just let anyone register domain names. You will have to stop posting this same topic. Do some homework. Who do you normally register domains with? godaddy, 123-reg, fasthosts, easyspace? Go to their websites and read up on their reseller accounts and how to implement. Telephone and get yourself an account manager with one of them. Then you can put together your website when you have the toolkits (APIs) available to you. BTW: If this is a money making idea then good look as there is not much revenue from domain registration and the competition is massive.
  8. Change the time on your webserver
  9. Because you are treating a string as an array ($value) if $value is a string i.e $value = "foobar"; I cannot use the following $value[1]
  10. Try converting the character before storing in db $var = mb_convert_encoding($_POST['var'], "UTF-8", "auto"); You will need the mb_string extensions loaded in php
  11. You could do with a function i.e << 1 2 3 4 5 6 7 8 9 10 ... >> <?php // display the pagination links function displayLinks($numberOfPages, $maxPageLinks, $currentPageNumber, $filename) { $displayLinksString = false; if($currentPageNumber > 1) { $displayLinksString .= '<a href="'.$filename. '?p='.($currentPageNumber - 1)).'">'."<<".'</a> '; } $curWindowNum = intval($currentPageNumber / $maxPageLinks); if($currentPageNumber % $maxPageLinks) { $curWindowNum++; } $maxWindowNum = intval($numberOfPages / $maxPageLinks); if($numberOfPages % $maxPageLinks) { $maxWindowNum++; } if($curWindowNum > 1) { $displayLinksString .= '<a href="'.$filename.'?p='.(($curWindowNum - 1) * $maxPageLinks)).'">...</a>'; } for($jumpToPage = 1 + (($curWindowNum - 1) * $maxPageLinks); ($jumpToPage <= ($curWindowNum * $maxPageLinks)) && ($jumpToPage <= $numberOfPages); $jumpToPage++) { if($jumpToPage == $currentPageNumber) { $displayLinksString .= ' <b>'.$jumpToPage.'</b> '; } else { $displayLinksString .= ' <a href="'.$filename.'?p='.$jumpToPage.'">'.$jumpToPage.'</a> '; } } if($curWindowNum < $maxWindowNum) { $displayLinksString .= '<a href="'.$filename.'?p='.(($curWindowNum) * $maxPageLinks + 1)).'">...</a> '; } if(($currentPageNumber < $numberOfPages) && ($numberOfPages != 1)) { $displayLinksString .= ' <a href="'.$filename. '?p='.($currentPageNumber + 1)).'">'. ">>".'</a> '; } return $displayLinksString; } $rowsPerPage = 15; $maxPageLinks = 10; $numberOfPages = ceil($numberOfRows / $rowsPerPage); $currentPageNumber = is_numeric($_GET['p']) ? $_GET['p'] : 1; // display pagination links print displayLinks($numberOfPages, $maxPageLinks, $currentPageNumber, "articles.php"); ?>
  12. No Your first query should count the total number of rows in the table. Then from a page number value you can work out the offset. So the only parameter needed is the page number i.e. articles.php?p=1 , articles.php?p=2 , etc i.e. If you want to display 15 records per page $rowsPerPage = 15; $numberOfPages = ceil($numberOfRows / $rowsPerPage); $currentPageNumber = is_numeric($_GET['p']) ? $_GET['p'] : 1; $offset = $rowsPerPage * ($currentPageNumber - 1)); // add to the sql query $sqlQuery .= " LIMIT ".$offset.", ".$rowsPerPage;
  13. You only need to use sessions if you need the value to persist through all pages of the site until it is destroyed. If it is just to remember an id for a database update on a single page then it would be much easier using a hidden field containing the value in a form. If you are using it to display a message then a url parameter would be easier i.e. tracks.php?update=true
  14. This has noting to do with the script. Your university mail servers will be blocking the message. You may need reverse DNS setup on your web server.
  15. Are you sure you have the correct header on the page? header('Content-Type: text/html; charset=utf-8');
  16. This is what you site looks like in IE8 [attachment deleted by admin]
  17. Impossible as that would be an example of session hijacking
  18. Get rid of this now you have finished debugging $post = "<xmp>$post</xmp>"; echo $post;
  19. http://www.godaddy.com/gdshop/wwd_landing.asp
  20. print it between XMP tags as it will be parsed as HTML. Also exit the script after you have printed. print "<xmp>"; print $_POST['xml']; print "</xmp>"; exit();
  21. You are better becoming a reseller of one of the top domain registration brands and setting up your own white label site. A lot of them provide this service so you dont have to worry about registrars, many APIs, maintaining databases, etc. To do your own site you are going to have to be approved by registrars or intemediataries that provide APIs to register tlds. i.e http://logicboxes.com/ Not cheap!
  22. print the post data to the screen. has it changed? do you have magic quotes enabled that are adding slashes?
  23. That is totally untrue. To keep on top of SEO, track competitors, etc is hard work. You may also need specific tools or applications writing to stay ahead of your competitors, just think if there are free SEO tools to download then everyone else is using them so how do you gain an advantage. You have to be able to invent new SEO strategies and put them into practice as search engine algorithms change frequently. Be able to create supporting websites to assist with rankings of a primary money making site. There are so many people out there who claim to be SEO specialist because they have read a book about link building and putting a few keywords in the website content. Most of them are full of shit and do not understand that SEO goes right down to the design phase of the website. If you do not design a website for search engines then it will never get ranked. You cannot just pick up any site and get it ranked number 1 for xyz.
  24. Post to article directories, Social bookmarking sites, Blogs, etc. Make sure you submit relevent content i.e If your website is about cars then write blogs, articles on the car industry linking the main keywords to your website pages. Make sure you link the main keywords you want to rank for. Ping the URLs that you post to i.e. http://technorati.com/ping/
×
×
  • 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.