-
Hello world in PHP - Lets start coding PHP - First step
About the Author : Gaurav Sharma
Apologies for not writing frequently on this topic in the last few weeks due to loads of work of Vinnex and other stuff. Anyways lets start coding now....
So once you are done with the Xampp installation , start the XAMPP now by clicking on Xampp_start.exe icon present in the Xampp folder.
Once the xampp_start.exe is clicked , the following black window will open with following message :
##Apache and MySql is starting now ###
Ok!! So the localhost server is started now. Which can be tested by opening http://localhost/ on your internet browser. First Code : Two important things to remember when you do php coding : - The file extension of php files is .php
- Any php code should be written between
<? and ?>
- Each statement ends with a semi-colon i.e. ;
- Variable name starts with a dollar sign , example $name, $username, $password
<?The first command that we use in PHP to print any text is ECHO Command line : echo "MY NAME IS GAURAV" ; or echo $name; or
PHP CODE
?>
Check this now >>
$name="Gaurav";
echo "My name is $name";
Here we have declared a variable called $name and have entered a value in the variable equal to Gaurav. And in the next statement we printed the declaration MY NAME IS $name using echo. NOTE : GIVE SPECIAL CARE TO SEMI-COLON and INVERTED COMMAS. WHEN A VARIABLE alone is to be echoed, then no need of inverted commas.
Now save the file as name.php in htdocs folder present in the xampp folder.
In the internet browser, open http://localhost/name.php
and you will get My name is Gaurav as output.
more - The file extension of php files is .php
-
Facebook Trick : Background circles / bubbles - Facebook magic circles
About the Author : Gaurav Sharma
Facebook Trick:Press up
Press up
Press down
Press down,
Press left,
Press right,
Press left,
Press right,
PressB,
Press A,
Press Enter key
right click then press up and down
Magic circles will appear.
The only way to get rid of them are to log off or refresh the page...
more
-
Atblogs - Create to free blog and get listed on google fast
About the Author : Gaurav Sharma
I ,in my previous blog post on Blogging platform, talked about Wordpress and Blogger but now I am presenting to you a third blogging platform which I feel will help you kick start your blogging as an alternate mode of income or if not that atleast better rankings on Google search.
Atblogs built on Wordpress API is a highly SEO Powered Blogging platform which gives you pre-installed Google Adsense Plugins of various types say Ads below the image, Ads in the post , Ads above the post and this and that..Plus many more interactive plugins like twitter, iframe, 3D tag cloud etc.
The Atblogs domain name gives a very catchy address to your weblog Yourname @ blogs.org (In actual yourname.atblogs.org) .
So, I personally advice you to import your blogger blog or wordpress blog to Atblogs blog and see the results. Its just one click import blog option in Atblogs settings links.
more
-
Virtual Stock Exchange PHP script
About the Author : Gaurav Sharma
For last few months I was working on creating a virtual stock exchange for my college technical fest and ended up making Vinnex ( for US market) and Vinnex India for the Indian markets.
If you too want to have your own stock exchange game then you may post your queries here. I wont give you the complete code but can help you in creating one.
Some of the related queries you can post are :
1. Import yahoo finance quotes
2. Import live stock prices using php
3. Virtual stock exchange php script
4. Fantasy stock exchange game
Feel free to ask till then try out vinnex
more
-
What for I blog? What blog shall I start / write ? How to start blogging?
Okk..so from last post on blogging tips - Which one is the best platform to start blogging with - Blogger or Wordpress , you must have selected the blogging platform to begin/run/start your blog on.Now the question arises , what to fill in this empty blog. How to make it something worth visiting? So first thing which you should keep in mind before starting a blog is your interest. Start a blog on something you are interested in, something you know or something you are learning, something you are passionate about, something you love discussing and debating on and something you can write on for many years.Blog can have any topic - it may be a tech blog, it may be a gadget blog, it may be a mobile blog, it may be a fashion blog , it may be a doctor blog, it may be a mommy blog, it may be a foodie's blog, it may be a travel blog or it may even be a political and office blog.So, before registering a blog on any of the blogging services, first think on blog topic , research a bit and then register for a blog. Now you are ready to start a meaningful blog. Goodluck.
About the Author : Gaurav Sharma
more
-
Which one is the best platform to start blogging with - Blogger or Wordpress
About the Author : Gaurav SharmaThis is the first post on blogging here on Gaufire.in so I am starting with where to start blogging from. I dont think you need any introduction to Blogging. But in simple words I can explain blogging as a simple method to have your own web presence, to share what you know, to sell what you have and to express what you feel. You can write blog on any topic under the sky we have. It may be a tech blog, gadget blog, personal blog, poetry blog, just saving important links blog , recipe blog , mother's blog and much more. Its just you have to decide what topic you are cool with and on what topic you can write unique content for a long time.So How blogging is done?
For blogging you need a web application that can publish your content and can present it in hierarical manner. So right now the web is full of such platforms and of them the famous two areBlogger and Wordpress. The experienced bloggers prefer and suggest wordpress because wordpress is opensource and you can edit the code according to your needs. Wordpress has got plugins and great themes but one thing it lacks the most is its performance on search engines.And this is the best tool blogger has got. Blogger blogs are very well performing on search engines.Whats performing on search engine means?For any site , especially new site, the major portion of traffic comes from search engines only. When some one search for some keyword on search engine and your blog is among top 10 results then obviously there are good chances that the person making search will come to your blog.Hence , how you blog is present in the seach engines as in position of your blog for different keywords is called as performance on search engine. And blogger scores way more than wordpress in this regards.
There is a technique called SEO - Search engine optimization which includes techniques which one should adopt to improve your blog rankings on the search engine. I will cover SEO techniques in coming posts.- Creating a blog on blogger is very simple. Login to blogger.com with your Google account and click on create new blog , select what xyz address you want for your blog i.e. xyz.blogspot.com and thats it.
more
-
Google Tasks : Finally out of Google Labs | Useful tool to keep you aware of the pending jobs
About the Author : Gaurav SharmaI was feeling to tensed for last few days because of ever increasing pressure of workload and pending jobs, hence I decided to code a service to keep myself aware of my pending jobs which would have helped me in getting the jobs done. But my work is done by Google itself. They have added tasks link in the gmail page only. Really impressive application which opens as a decent embedded window like gtalk in your gtalk window and have got really easy and handy keyboard shortcuts.Some Tips:
Click anywhere in the list below and hit Enter to insert a new task.
- Use the arrow keys to move around in the list. Delete a task by deleting the text and hitting backspace.
- Access Tasks on your mobile phone at mail.
google. com/ tasks . - You can view lists side-by-side by adding multiple instances of the Tasks gadget to iGoogle.
- You can reorder your tasks using the keyboard or the mouse:
Ctrl+Up moves a task up the list.
Ctrl+Down move it down. Drag and drop them using the drag handle on the left of each task.- You can organize your tasks by indenting them too — just hit Tabto indent and Shift+Tab to un-indent.
- You can create a task from an email. From Gmail's More Actions menu, click Add To Tasks. If you have keyboard shortcuts enabled, you can use Shift+t instead.
- Tasks can have extra information associated with them, such as a note and a due date. Click on the symbol to the right of the task, or hit Shift+Enter when in a task to bring up its details.
Quoting from Google Official BlogOur little baby's all grown up.
We launched Gmail Labs as a forum for delivering useful (and maybe not so useful) features that might not be quite ready for prime time. The idea was always that the most popular and viable Labs features would graduate and be made more readily available to all users...and that some of the less used, less viable ones would disappear forever.
I'm proud to announce that Tasks is in that first bucket — it's been one of the most popular experimental Gmail features and it's now the first graduate from Labs.
To access Tasks, starting today you can just click "Tasks" under the "Contacts" link above your chat list (no need to turn it on from the Labs tab anymore).
We've been continually improving Tasks since it first launched in Labs. We believe simple and fast is best, so we've been working to make Tasks more responsive and get basic interactions working better: we've added mobile and gadget views, made improvements to task editing and management, launched in more languages, and integrated with Google Calendar. We've also added a printable view for those people compelled to do things away from their computers or mobile devices.
more
-
How to add Facebook's fan box / live stream box on your website ? Fan box is better than Google connect
Quoting for blog on Facebook :
Over 8 million users become fans of Facebook Pages every day to connect with their favorite public figures and organizations and get updates directly in their streams. Now, users can connect with brands, musicians, celebrities, businesses, and more, whether they're on or off Facebook.
Today, we're excited to launch the Fan Box, a Facebook Connect-enabled social widget that Page owners can add to their websites to allow users to fan and view the accompanying Facebook Page stream. With the Fan Box, brands can bring content from their Facebook Page into their website and help convert website visitors into Facebook fans. Users can view the most recent posts from the Page, see a list of other fans (including their friends), and, most importantly, become a fan without leaving the site. Additionally, if a user visits the site and isn't logged in to Facebook, the user can log in and become a fan directly inline as well.
This fan box or live stream box is way better than Google Connect as it not only shows your fans but also gives you an option to show your Feed from facebook company page or fan page. Its is quite very easy to put a fan box from facebook on your website. Follow these following steps to get a fan box for your website in just 5 minutes.2. Edit the information and add a logo to the page you have created3. Publish the page you have created4. Now check out the 3rd link given below your page's image (check following image- click to enlarge)
5. In the opened window, just copy the given code - You may select to show your live stream or fans or show both or show any one.6. Pasted the code anywhere in the website. Like I have pasted one in the left column.Thats it. Its is a really good tool/widget to increase number of loyal users to your business/website/blog.Hope you liked the post. :)
more
-
Make your Microsoft Windows the upcoming Google Chrome OS in 10 minutes

Whatever Google launches, its either one of its kind or if its their version of something already exsisting it shut down shops of the old shopkeepers and merchants. After quickly getting hold of over 30million internet users through their Chrome browser, and becoming most used blogging service through blogger and no need mentioning but still , becoming undisputed Rank ONE in search queries, most visited and revenue share, Google has now jumped into a new and may the final battle ground i.e. Operating system to shut the AGE OLD and MOST SUCCESSFUL Microsoft’s shop.
By now most of us know that google has announced to launch an Operating System later this year especially aiming the netbooks.But to make things clear , THIS OPERATING SYSTEM IS NOT THE TRADITIONAL OPERATING SYSTEM BUT ITS JUST AN INTERNET BROWSER.
The idea behind coming with an Internet browser functionality based Operating system and feeling optimistic about its success and acceptance is mainly based on the ever increasing use of Cloud computing and demand of quick computers. The computers these days are useless without Internet. And work consisting of Applications like Microsoft Office has been made more shareable and efficient by online applications like Google Docs. So their is no desktop application left which you cant have as a webapplication.
Quoting from Wired.com, Five things that Chrome OS will give are as follows :
Cost
Netbooks are cheap. So cheap that a disproportionately large chunk of the cost is made up of a Windows license. Ever wondered why the Linux versions of netbooks cost around $50 less? Microsoft tax. Chrome OS is based on Linux and will, like most Google products, be free, bringing the price of a $500 netbook down by 10 percent.
Speed
Windows 7 runs faster than Vista on a netbook. Scratch that. Windows 7 runs on a netbook, period. But Chrome OS is designed to run on low-powered Atom and ARM processors, and web-based applications don’t require that much horsepower on the client end so it should be faster still. Better, it will be small. Google is promising boot times measured in seconds, not minutes, so battery life should also get a boost — it will be possible to cold boot instead of sleeping or hibernating the machine, saving precious juice.
Compatibility
Google says that “[Users] don’t want to spend hours configuring their computers to work with every new piece of hardware, or have to worry about constant software updates.” One of the big problems with using anything but Windows XP on a netbook has been drivers. Try installing OS X on one if you don’t believe us, or any version of Linux not specifically designed for your model. If Google can come up with an OS that can be downloaded, dropped onto any machine and then “just works,” we might just have the ultimate portable OS.
Portability
Netbooks are meant for the road. At home, a bigger computer is almost always better but when traveling, a netbook shines. Swapping between the two is a pain, though. With Chrome, you can bet that all of Google’s service — Gmail, Google Docs, Picasa and so on — will be built-in and have offline access via Google Gears. If you are a good Google Citizen and use all these services, you’ll never have to worry about having all your latest data with you, whether you have a net connection or not.
New Applications
With its web services, Google has been slowly duplicating everything that we can do locally on our computers. Almost. There are a few things that Google doesn’t do yet, most notably a video player and a music jukebox. Sure, there’s YouTube, but what happens when you want to watch something other than a skateboarding dog in a blender? There are open-source options: The awesome VLC video player has just reached v1.0, for example, and the Songbird music player, based on Firefox, can even sync with an iPod. Both already run on some flavors of Linux.
Google official says “We hear a lot from our users and their message is clear — computers need to get better. People want to get to their email instantly, without wasting time waiting for their computers to boot and browsers to start up. They want their computers to always run as fast as when they first bought them. They want their data to be accessible to them wherever they are and not have to worry about losing their computer or forgetting to back up files. Even more importantly, they don’t want to spend hours configuring their computers to work with every new piece of hardware, or have to worry about constant software updates. And any time our users have a better computing experience, Google benefits as well by having happier users who are more likely to spend time on the Internet.”
So idea is simple , when you start your computer its should directly open Chrome internet browser without loading any other heavy services like anti virus or other softwares. This can be achieved in your computer too.
GO to RUN>>TYPE MSCONFIG and Enter>> Edit the Start up programs>> Remove the softwares that are selected to load on startup>>Add chrome to start on start up
Thats it!! Your computer will start quickly, it will launch Chrome browser and use Internet directly.
I originally wrote this post at The Tech Blog for Vinnoite Media
more
-
How to Remove advertisement box present above friends section from Orkut?
Finally Orkut got rid of the irritating ad box (placed above My Friends box) from my profile...phew!!! That was some really disgusting and desperate act by Google I have ever seen. Now its all fine!! I knew it and wrote about it that google wont get good CTR (click through ratio) for their ads by placing them there -- Google’s move to monetize Orkut in better wayAnyways here is a (very stupid tip,I know) tip to remove ad box from your profile too if its still visible.
The basic funda is to decrease CTR (click through ratio) - Number of clicks made on ads/ Number of times ads shown (or simply, number of times profile page loads). So if some how number of times your profile page is loaded is increased and you dont click on any of the ads , the CTR will automatically come down. And Google is in actual running these ads in this place as a trial. So whenever CTR of your page will come down some set levels say 1% or .1% , the ad box will be removed automatically.So the tips are as follows :1. Try to open profile page as many times as possible, as in to go to scrapbook go to profile page first and then go to scrapbook from scrapbook link in the profile.2. Orkut a lot :P3. For girls, this stupid idea can work the best.....Add your pic to your profile and album and just leave it like this for a week. You will get 100s and 1000s of "Wanna friendship" or "You friendship meeee" requests.So this will help you increasing your profile page loads. And yea if you dont want those people to scrap you or see your album , you can simply block the scrapbook and lock the album for non-friends.4. You can use a tech way to increase your visits , create an html page with time bound refreshes.So this will make your profile page reload again and again every 10-20 seconds in a separate window or tab.And with a week or so, you will see that Ad block is no more present out there.I tried method 1,2 and 4 and they worked.PS: Yes !! mentioned methods will sound stupid to the core but they work.
more

