Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. then you need to attach a 'change' event to your dropdown that triggers the Ajax request.
  2. exec("tar -cvf - $dir | gzip -c > $tar.tar.gz"); Where $dir is a variable containing the path of the directory you want to compress and $tar is the name / path of the tar.gz file you wish to create.
  3. function factorial($n) { if($n==1) return 1; else return $this->factorial($n-1)*$n; }
  4. So, you need to implement some form of bbocde similar to this boards tags. If you google "php bbcode" you should find plenty of examples of how to do so.
  5. I'm no expert on speech recognition but I do know this is BS. Technologies like speech recognition are implemented in far higher level "user space" applications.
  6. I would suggest you Google some "beginner jQuery" tutorials as you are way off the mark. It is literally the most popular Javascript out there and as such, there are plenty of tutorials explaining the basics.
  7. Why on earth would you even consider the extra overhead of making a http request? I mean really, it's not rocket science.
  8. You will be much better off using a third party library such as Geshi.
  9. This topic has been moved to HTML Help. http://www.phpfreaks.com/forums/index.php?topic=348155.0
  10. Add another form element allowing the user to choose a directory.
  11. This topic has been moved to Other Libraries and Frameworks. http://www.phpfreaks.com/forums/index.php?topic=348153.0
  12. $SESSION should be $_SESSION and it has nothing to do with redirection. There are however plenty of tutorials already around that cover how to use sessions. Do you really want us to write one just for you?
  13. trq

    MAIL()

    PHP's mail function can not pass authentication. You will either need to use some third party mail library, write your own, install an smtp server, or install a relay such as ssmtp (for *nix only).
  14. Then use: <?php include $_SERVER['DOCUMENT_ROOT'] . '/xampp/splash.php'; ?>
  15. This topic has been moved to PHP Regex. http://www.phpfreaks.com/forums/index.php?topic=348145.0
  16. Um, indeed it is what your looking for.
  17. We actually have a new version of the site and forums in development and are very slowly making our way towards a more liberal approach to these types of requests. At some stage during this development we will be looking at this board for ideas, so you never know your luck. Unfortunately, I seem to be the only person actually doing any of the development work and I am pretty flat out with my job, freelance commitments and other personal commitments so yeah, things are moving pretty slowly atm. Thanks for the ideas though.
  18. Why not post the code that isn't working then? It's really as simple as: echo json_encode(array('username' => $username, 'status' => true)); In your php, then something like.... success: function(data) { if (data.status == 1) { console.log('You have logged in as ' + data.username); } else { console.log('Login failed'); } } in you Javascript.
  19. If your already within php you don't need more php tags. echo '<form id="all" method="post" action="{$_SERVER[php_SELF]}">'; Note that: echo '<form id="all" method="post">'; Does exactly the same thing.
  20. This topic has been moved to Other Web Server Software. http://www.phpfreaks.com/forums/index.php?topic=348113.0
  21. If your looking for a programmer, we have a freelancing board here.
  22. This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=348108.0
×
×
  • 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.