Jump to content

betterphp

Members
  • Posts

    122
  • Joined

  • Last visited

    Never

Everything posted by betterphp

  1. That is assuming the ISP provides open SMTP server access.
  2. you would run php -r "echo 'test';" at a terminal prompt. Sorry for not getting back to you for so long
  3. do you defiantly have error_reporting set to a high enough level and display_errors set to On ? It's very strange for php to fail and not tell you why.
  4. what do you mean exactly. encrypting data between mysql and php or php and the browser ? or just things like password in the database ?
  5. you can increase the performance of your script by tidying up the code and removing necessary bits and by using built in functions where possible instead of your own code. Concentrating on the loops will get you the most gain. You could also have the script run every hour say and generate a static file, which would allow quicker downloads of the file at the cost of a bit of dynamic-ness. And for the download time, get a faster connection or make the file smaller.
  6. keyboard-interactive ... doe that just mean typed in the shell ? If so you probably want the third one in that list. I may have completely misunderstood :-\
  7. Well if you are a beginner you have jumped in with somethign is a bit of a pain really. what you need to do is create an image resource form the file using somethign like imagecreatefrompng() then write on that image using either imagestring() or imagettftext(). Finally you need to output the image to either the screen or a file using somethign like imagejpeg() there are examples of all of those functions on their php.net pages.
  8. what about trying php from the shell ? That is most likely to tell you why the module cannot be loaded.
  9. $_POST = array_map('strip_tags', $_POST); no need for this line as your filter function does it anyway. and its in that filter function that you want to do the preg_replace. The problem is http://www.spam.com can also be just spam.com which looks a lot like words. But if you google "url matching regex" you will get loads of expressions that match urls then you just use preg_replace $data = preg_replace(EXPR, '', $data); after the trim line in the filter() function.
  10. I think it should be extension = "memcached.so" but if you are not getting start-up errors that its obviously fine the way you have it. Everything looks right as you say, does the -k you pass to apache2ctl mean graceful reload ? if so you need to not do that. I usually call the init.d script directly to restart /etc/init.d/apache2 restart although if you are restarting the server then it should be fine. If you try somethign from the command line like php phpinfo.php where phpinfo.php is just a file that does phpinfo() you might get an explanation as to why its not loading.
  11. I'm not sure about WampServer but I know XAMPP comes with Mercury for email, do you have anything similar ?
  12. the unread posts link actually shows unread topics :-\
  13. Are you using some kind of Microsoft FTP server, according to this http://www.net2ftp.org/forums/viewtopic.php?id=3759 that could be the problem.
  14. That's close enough, thanks for the tip
  15. in what order ? You may be creating a security issue. The method you described would work, although the regexp would be a tricky one to write
  16. I don't really understand the question here... You can add an element like this $shop[] = array(1, 2, 3);
  17. That's a pain, ah well thanks for answering
  18. include("http://www.tugtracker.co.uk/menu/extras/php_sitemap/mm_dataminer.php"); this stands out to me, do you have url_includes enabled ?
  19. Display thing shave nothing to do with php at all. The best thing you can do is validate the page.
  20. hey, Is there a way (on this forum) that I can see all of the posts that have been posted since my last visit that have 0 replies ? I can seem to see anything like that anywhere and it would be pretty useful as I don’t have 23 hours of my day free to watch the millions of posts that appear
  21. <? is the short version of <?php you may need to output those directly with php to avoid this <?php echo '<?'; ?> bit untidy.
  22. can you not wait more than 2 hours !! Unknown column 'Violinrocker' in 'field list' means you have the wrong column name, simple as that.
  23. You will only be able to store data, not an active resource like a connection or a file pointer. I don’t see why you would want to store the connection like this :?
×
×
  • 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.