solved the problem by reinstalling lamp with tasksel... :D
On 7/27/12, Rabin shrestha <[email protected]> wrote: > what should i do ? > > > > On 7/27/12, Chandan Gupta <[email protected]> wrote: >> it resulted in 0 2 4 6 8 in ubuntu as well in my machine. >> >> >> On Fri, Jul 27, 2012 at 10:11 AM, Rabin shrestha >> <[email protected]>wrote: >> >>> <code> >>> >>> <?php >>> >>> for ($i = 0; $i < 10; $i++) >>> >>> { >>> >>> >>> if ($i % 2 == 0) >>> >>> >>> { >>> >>> >>> echo $i; >>> >>> >>> } >>> >>> >>> else >>> >>> >>> { >>> >>> >>> //echo "odd"; >>> >>> >>> } >>> >>> } >>> >>> ?> >>> >>> i got result 1,2,3,4,5,6,7,8,9 while i run the code in lamp which is >>> installed in ubuntu 12.04. >>> >>> >>> i can't find any error in this code , so i tried in different machine >>> with >>> mac osx (lion), but it shows the 2,4,6,8 what is wrong with my machine?? >>> >>> >>> plz help me out >>> >>> >>> >>> -- >>> FOSS Nepal mailing list: [email protected] >>> http://groups.google.com/group/foss-nepal >>> To unsubscribe, e-mail: [email protected] >>> >>> Mailing List Guidelines: >>> http://wiki.fossnepal.org/index.php?title=Mailing_List_Guidelines >>> Community website: http://www.fossnepal.org/ >>> >> >> -- >> FOSS Nepal mailing list: [email protected] >> http://groups.google.com/group/foss-nepal >> To unsubscribe, e-mail: [email protected] >> >> Mailing List Guidelines: >> http://wiki.fossnepal.org/index.php?title=Mailing_List_Guidelines >> Community website: http://www.fossnepal.org/ >> > -- FOSS Nepal mailing list: [email protected] http://groups.google.com/group/foss-nepal To unsubscribe, e-mail: [email protected] Mailing List Guidelines: http://wiki.fossnepal.org/index.php?title=Mailing_List_Guidelines Community website: http://www.fossnepal.org/
