Jump to content
xisto Community

gogoily

Members
  • Content Count

    99
  • Joined

  • Last visited

Everything posted by gogoily

  1. Try the following codes: <?php$step = 0;$integer = intval($_GET['integer']);if ($integer < 1) { echo "Please Enter a Positive Integer";} else { echo "Entered Number is: ".$integer."<br />"; while($integer != 1 AND $integer >= 1) { $modulus = $integer%2; if ($modulus == 0) { $integer = $integer/2; echo $integer."<br />"; } else { $integer = $integer*3; $integer = $integer+1; echo $integer."<br />"; } $step++; }}echo "Total step: ".$step;?>
  2. If those codes are in the "index.php" file, it will work.
  3. Register Envirement variables of Windows, then you can use command to run php code just like this:C:\php somephpfile.php
  4. gogoily

    Analog Clock

    This code is excellent !!But I'd like JavaScript clock more, it's real-time and it doesn't use server resource.
  5. I prefer "DateTime" typeIt stores data in form of "YYYY-MM-DD HH:mm:ss"
  6. I add one tips: if(preg_match("/^\s*$/",$string)){ die("Sorry, but all fileds must be filled !");} This code can prevent any kind of blank, including spacing.
  7. You should use function "file_exists('filepath')" if you wanna check whether the PHP file created or not
  8. What errors do you get ?I think these codes are fine.
  9. try set the type of "number" to intI think the type of your "number" is varchar or something.
  10. I didn't meet such problem, are you sure it's a bug??
  11. I think you should search it by googleYou can get lots of results
  12. I use apache2+php5+mysql5 in WindowsXP.
  13. You can find some scripts by googleI've ever seen such scripts, but it didn't work very effectively
  14. Maybe we can write such a script with PHP, it has to be a script that using socket functions in PHP.But as jlhaslip said, we can't place such pages in Xisto.
  15. Thank you very much !!I'm a SEO rookie and this tutorial is very useful to me !!
  16. I think you just wrote a frame scripts, I don't know its usage now.But you surely missed a "}" in line 32
  17. <?php$test = 35;Print $test;$test += 10.0000;Print $test;$test -= 5.123123;Print $test;$test = "happy to be here";Print $test;$test += 10.0000;?>
  18. I'm not sure what's your meanBut if you wanna get parameters that after ".php?", you should use $_GET
  19. You should consider the CSS display differences between FF and IE when you design webpage
  20. Change the mode of the directory which you put your upload files in to 777
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | 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.