Jump to content

Adam

Moderators
  • Posts

    5,717
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Adam

  1. The problem comes from different platforms modifying a file. Different operating systems user their own style to terminate lines which means when a file gets passed around it can start to look messy. If you upload text files via FTP in ASCII mode, apparently this should solve the problem.
  2. And session.php definitely exists in the parent 'include' directory?
  3. Are you positive you've set the file structure up exactly the same? There's no chance the code base uses an absolute path to include files? How are you including files?
  4. Look into 'window.open'..
  5. Read the manual...
  6. There's a built-in function to destory the session, PHP reccommend using the $_SESSION = array(); statement as well. http://php.net/manual/en/function.session-destroy.php
  7. Don't rely on this to trim your inputs though if it's important they are, JS can be turned off remember.
  8. Ha wait, after re-reading your post again I keep gettign confused, must be tired! Is it migrating data across from a previous version of MySQL, to a new one? NOT 'managing' two versions?
  9. Whoops, I mis-read the title, thought it said "migrating". Erm no, not so easy. You'd probably be better creating a custom mysql_query function that will run it on both databases. Why does it need to be on 2 by the way? Would perhaps not hourly, daily or weekly backups not do the trick?
  10. Actually, it is. You can just export the table structure and data, then either import the .sql file or paste it into SQL tab of your new database.
  11. 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...
  12. 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="(.+?)"[^>]+>
  13. You'd just use http://localhost/path/to/files
  14. 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.
  15. 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.
  16. What exactly do you plan to put in the {php} tags though? Take a look here.
  17. 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.
  18. 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.
  19. 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.
  20. 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?
  21. http://www.google.co.uk/search?q=css+anchors
  22. 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);
  23. 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/
  24. Try this.. echo '<li><a href="game.php?id=' . $row[1] . '"><span class="linky">' . $row[1] . '</span></a><br></li>';
  25. If you supply "orderbyASC" it will order the results in ascending order, if you don't, descending.
×
×
  • 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.