Many times I heard about it from my friends and even from general people from everywhere. Since then I planned to write such a beautiful post about ‘How to become a web developer’. It seems really exciting posts for people who are really interested about web development. Cause I saw people in various communities who really want to become a web developer but they don’t know the road-map Even they don’t know how to start for their mission. So keep …
Blog Posts
Sometimes we need to check whether any specific server are up or down. It’s sometimes so much important. So that I have prepared the following code snippet which will tell you about the server whether it is down or up. I have used fSockOpen in this case to test it. so the function I have created is <?php /** * @param null $host * @param null $port * @param null $timeout * @return bool|string */ function PingToServer($host=null, $port=null, $timeout=null) { …
To start your first project in Ruby on Rails. You need to do the following task. 1. First open your command prompt and then type 2. Write down the following command to go to your project’s path 3. Then Start your Rails Server Now go to the http://localhost:3000 and follow the instruction.
This is pretty much a big question for you who want to work in Ruby on Rails. Now I am writing this tutorial for you to install Ruby on Rails in your Localhost to start coding on Rails framework. Installing Ruby on Rails To install ruby on Rails in your localhost you need the following things. Ruby > Download Ruby Gems > Download Ruby Development Kit > Download Rails > Install from command line After downloading Ruby from the above …
__toString magic method in PHP OOP is a very good stuff to covert your object into string. Let’s write some code without __toString(). <?php class LearnToString{ public $WhatIsToString; function __construct($WhatIsToString){ $this->WhatIsToString=$WhatIsToString; } } $obj=new LearnToString('hello world'); echo $obj; ?> Now if you want to see the result then you must see the following error like it says. Warning (4096): Object of class LearnToString could not be converted to string [YourFileName.php, line 11] Yes, if you are a PHP OOP learner …