Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. This topic has been moved to PHP Regex. http://www.phpfreaks.com/forums/index.php?topic=349116.0
  2. This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=349113.0
  3. Cron has nothing to do with php. Unless you have shell access to your server, it is likely that your host provides some form of interface to cron (or you might not be able to use cron at all).
  4. trq

    MultiTouch

    This has what to do with php?
  5. trq

    iTunes

    There is no API as far as I am aware.
  6. trq

    php cli help

    You could split the input from STDIN by spaces and parse that as arguments.
  7. trq

    php cli help

    I would prompt the user for what function they want to use, then prompt them again for the arguments needed.
  8. Check that $_POST['TestGroup'] isset before using it.
  9. trq

    iTunes

    Apple already actually provide something similar as part of iCloud.
  10. trq

    php cli help

    You can only use $argv to pass in initial arguments to the script. It's not much use if you don't know what function there going to be calling. Also, the shebang needs to be on the first line not within the <?php code block.
  11. This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=349090.0
  12. trq

    php cli help

    #!/usr/bin/php -q <?php $isAuthenticated = false; $realUserId = "aaa"; $realPassword = "pass"; while( $isAuthenticated!=true ) { echo "Please login to begin: \n"; echo "Enter username: \n"; $userName = fread(STDIN,10); echo "Enter password: \n"; $password = fread(STDIN,10); //now check to make sure is registerd user //$userId = $u->userLogin($userName, $password); if($userName != $realUserId && $password != $realPassword) echo "Invalid username or password. Please try again.\n"; else { echo " You are logged in! You can begin.\n"; $isAuthenticated = true; } } ?>
  13. Remove the echo that produces <br>
  14. This topic is going nowhere fast. If you are not prepared to listen to the replies provided don't bother asking questions. If you have read the replies but don't understand how they are useful re read them and ask a specific question about what you don't understand. If your just going to keep repeating your own failed solutions, stop wasting our time.
  15. You can do it with a single query using a JOIN.
  16. Also, assuming your php code is already running within a page, you don't need the doctype, <html> or <body> tags. The page your already on should already have these.
  17. This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=349030.0
  18. An IN statement check to see if the field contains any of those numbers. As for your second circumstance, you shouldn't be storing multiple values in a single field in the first place.
  19. The process is no different, just put each line of markup on a new line in a txt file. Either that or add the markup to your content using php.
  20. HTML isn't a programming language and as such cannot read files.
  21. This topic has been moved to Other Web Server Software. http://www.phpfreaks.com/forums/index.php?topic=349008.0
  22. PHP alone doesn't have any concept of "plugins".
×
×
  • 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.