-
Content Count
99 -
Joined
-
Last visited
Everything posted by gogoily
-
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;?>
-
If those codes are in the "index.php" file, it will work.
-
Register Envirement variables of Windows, then you can use command to run php code just like this:C:\php somephpfile.php
-
This code is excellent !!But I'd like JavaScript clock more, it's real-time and it doesn't use server resource.
-
I prefer "DateTime" typeIt stores data in form of "YYYY-MM-DD HH:mm:ss"
-
Making Sure They Did Not Leave Any Required Fields Blank
gogoily replied to dvayne's topic in Programming
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. -
You should use function "file_exists('filepath')" if you wanna check whether the PHP file created or not
-
I Need Some Proof Reading For My Code Please! [resolved]
gogoily replied to KansukeKojima's topic in Programming
What errors do you get ?I think these codes are fine. -
try set the type of "number" to intI think the type of your "number" is varchar or something.
-
Debugging Php For Internet Explorer 7 Ie7 About Php
gogoily replied to rajpreet's topic in Programming
I didn't meet such problem, are you sure it's a bug?? -
[help] Geshi On Smf Board GeSHi 1.0.7.0.20 and SMF 1.1.4
gogoily replied to de4thpr00f's topic in Programming
I think you should search it by googleYou can get lots of results -
I use apache2+php5+mysql5 in WindowsXP.
-
You can find some scripts by googleI've ever seen such scripts, but it didn't work very effectively
-
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.
-
Thank you very much !!I'm a SEO rookie and this tutorial is very useful to me !!
-
I think you just wrote a frame scripts, I don't know its usage now.But you surely missed a "}" in line 32
-
<?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;?>
-
About Seo Strategy - Does A Website Need To Be Seo Compliant?
gogoily replied to rajpreet's topic in Search Engines
Can you guys list out some useful ebooks abou SEO ? -
Good Animation Programs what are some?
gogoily replied to DataHead's topic in Websites and Web Designing
ImageReady can make gif Animation images -
I'm not sure what's your meanBut if you wanna get parameters that after ".php?", you should use $_GET
-
Firefox V/s Internet Explorer For Web Design
gogoily replied to saqib431's topic in Websites and Web Designing
You should consider the CSS display differences between FF and IE when you design webpage -
Change the mode of the directory which you put your upload files in to 777
-
Are Girls Prettier Without Makeup? Vote & Say You Thoughts
gogoily replied to lihuyt's topic in Health & Fitness
That's depends on people's thought