Jump to content

Adam

Moderators
  • Posts

    5,717
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Adam

  1. There have been no changes to the mail function, if there had been they would be listed on the manual. I assume this must be some kind of configuration error...
  2. You can use file_get_contents() to get the source code, then use preg_match() to locate the first image. The pattern would be something like: <img[^\bsrc\b]+src="(.+?)"[^>]+>
  3. You'd just use http://localhost/path/to/files
  4. http://www.google.co.uk/search?q=rtf+to+html+conversion+using+php Would seem TinyMCE has built-in function for conversion. Edit: This may not be true actually, I just saw it briefly mentioned on one of the links.
  5. From what I can see, you're not actually calling the start() function at any point... Either in the <body> 'onload' attribute, or using 'window.onload' you need to call the start() function.
  6. What exactly do you plan to put in the {php} tags though? Take a look here.
  7. By the way I'd always use the preg functions from now on, instead of ereg. In the latest release of PHP (5.3.0) it's deprecated, most likely to be removed in PHP 6.
  8. You wouldn't use JS for this, you'd just validate with PHP. If you really, really wanted to, I guess you could use AJAX.
  9. If you're using Smarty, why would you need to put PHP in a template file? Smarty has a lot of built-in functions, plus the ability to easily create your own.
  10. Well technically you should never consider using JS to prevent anyone from doing anything, JS can be switched off and so is useless for security. What exactly do you mean by a value that isn't in a database? Do you have any examples?
  11. http://www.google.co.uk/search?q=css+anchors
  12. Maybe since they weren't allowed to ship IE8 with it, they decided to look for any new instance of firefox.exe and add sleep(60000);
  13. Oh no, wait, the styles are all wrong... .linky { color: #FFA200; color: #878787; letter-spacing: 5px; text-decoration:none; color:#FFFFFF; } --edit-- Learn CSS... http://www.w3schools.com/css/
  14. Try this.. echo '<li><a href="game.php?id=' . $row[1] . '"><span class="linky">' . $row[1] . '</span></a><br></li>';
  15. If you supply "orderbyASC" it will order the results in ascending order, if you don't, descending.
  16. Put this just before your query call: $asc = (isset($_GET['orderbyASC'])) ? 'ASC' : 'DESC'; Edit: Whoops, corrected a mistake!
  17. There's a few methods of doing this (search the forums for past topics for more information on them). With your setup what I'd do personally rather than having separate HTML files for each language, which obviously means editing 2 files whenever you change the structure of the page, I'd implement a SMARTY style tag that you can encase around any text to be translated. So you'd have a kind of master file in English, then depending upon a param passed in the URL (e.g. "lang=nl" you can look up the translation in the specified language. So say {t}hello{/t} would translate into "Hallo" (I think, I don't know Dutch).
  18. print date("Y-m-d G:i:s", strtotime($row['date_expires'] . "+2 minutes"));
  19. Your web host should allow you to stores files outside of the web root. When you login through an FTP client, do you have to drill through to "htdocs" or "public_html" (or something similar)?
  20. Use a script to retrieve the file, but store the original in a directory not accessible from a browser (i.e. outside of the public_html / htdocs dir).
  21. I have to agree - use a different skin, improve the quality of the logo.
  22. Well the manual actually recommends: while (false !== ($file = readdir($handle))) { Personally I'd just go with that.
  23. If you decide to still go ahead with original idea, there is a way you can do it by generating a new key. Found this: https://lists.ubuntu.com/archives/ubuntu-users/2006-June/082869.html
  24. How about system() or exec()?
  25. You could also look into Aspell. As patrickmvi said though they take some configuration, which isn't always possible with some shared hosting plans.
×
×
  • 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.