Showing posts with label php. Show all posts
Showing posts with label php. Show all posts

May 7, 2015

Better combination of languages to write an awesome website


Every developer before starting to write some code to develop a website, need to think and consider some languages which fulfil their requirements. A developer needs to takes so many issues into consideration to start his/her application and accordingly need to choose languages. Some of such things include UI, UX, FUNCTIONALITY, SECURITY etc.

In this post I am writing about the languages to choose to fulfil almost all the above needs.


  1. HTML / HTML 5
This is the most common language which is used in every web based application. After advancement of HTML 5 Developers are able to develop awesome applications in mobile platform too . This language is commonly used for laying out your website.

    2. CSS / CSS 3 

This used to style the webpages written in HTML. Both HTML and CSS combines to create Front-End of the web site.

   3. JAVASCRIPT

After creating the basic look for your website now you want to give more awesomeness to your application by creating some animations and also create interactions between your website and a client. To accomplish this task u need JAVASCRIPT or it's Libraries like JQUERY, TWEEN.JS, CHART.JS, 

   4. BOOTSTRAP

Now a days, people are opening your applications from different screen sized devices. If your site doesn't support for different screen sizes then you are in big trouble of loosing more than 50% of your clients. Bootstrap is the best option to create responsive websites very easily with very less code .http://getbootstrap.com  is the official website.

  5. LARAVEL

The above language helps you to create world class User Interface and User Experience. Now comes the main part for any application i,e. Functionality. In present days no one wants any static website. Every one needs it with more and more functionalities and also in a secured way. Now to handle that LARAVEL is the awesome framework written on the basis of PHP. It helps you create most secured websites in some minutes. http://laravel.com is the official website.

So, this is it guys. Try mastering these languages and create awesome websites. Happy Coading

April 25, 2015

Simple way to get IP Address of visitors of your website using PHP


There are so many reasons why you want to get IP addresses of visitors of your website. some of the major reasons include.
  • You may want to get the location of the user using IP address.
  • You may want to get for Security purposes.
  • You may want to get for unique visitor counts.
  • You may want IP Address just for time pass.
What ever the reason may be you can get IP Address and use that very easily using PHP. 

<?php

$ip = $_SERVER['REMOTE_ADDR'];

?>

That's it now you can get the IP address in ip variable, you can use that variable in any possible way you want to. 

If you have any notes regarding this you can always share that in the comments or you can mail me @ ething4pc@gmail.com

April 7, 2015

Connect to the MYSQL DATABASE using MYSQLI connection

Now a days every website uses database to store particular data of their users. In this tutorial we will discuss about mysqli connection.

<?php

$db = new mysqli('localhost','user','password','databasename');

if($db->connect_errno > 0){
die("Connection Error occured");
}

?>

You can also handle the error using try catch blocks. that's it you just need to include this file in every other files where ever you are processing data operating on data from the database. 
Note: Here you need to change user = username, password = your password, databasename = your defined database name. 

If you have any queries please comment below

March 31, 2015

Where to, How to and What to start to become a web developer

Become a web developer

This is a general question I have come across in different question and answer forums. So many people are interested in learning so many different things but they don't know how to and where to and what to start with to get skilled and achieve their goals. As I am a web developer and I love creative stuff I want to suggest or guide those guys who are interested in getting skilled in web development. So here in this post I will give a few steps that will take you to the world of web development. So let's get started.

Step 1 : Get skilled in HTML/CSS . Here in this web site I am teaching 30 days to web development series you can also follow that. Otherwise in the right side bar I have give a few links under reference links column you can also follow those links.
Step 2: After finishing HTML and CSS go for CSS 3 and try to gain some knowledge on that too.

Above two steps can be finished hardly with in 2 weeks.

Step 3: After that try with JavaScript and gain a little knowledge.
Step 4: Now, you have got knowledge on HTML,CSS,CSS3 and JavaScript and you are ready for exploring with HTML 5.

You can finish Step 3 and Step 4 with in 2 weeks.

Step 5: Now, you have skilled pretty much above 60% in Web development. Now it's correct time for learning PHP and MySql which helps you to create server and client interactions.

You can finish basic functions of PHP and MySql hardly in a week or 2. Now at this point I will recommend you to create a full website and test your skills. While you are creating a real time web site I promise you that you can learn a lot more things and you get experienced in fixing bugs.

Finally, I want to recommend you to follow up this blog for more best tutorials, Tips and Tricks and also answers for general questions. you can also ask questions and get clarified in from the comments section below each post or by emailing us at ething4pc@gmail.com

Force your PHP Scripts to display in source code

PHP htaccess file

Generally, PHP is a server side scripting language. You cannot see your PHP scripts in your source code as PHP out puts are parsed as HTML. But, by using .htaccess file in PHP we can modify the default behaviour of PHP and we can force the scripts to visible in source code. I personally don't recommend to do it in production environment as it creates a security issue but if you are in testing phase you can use it. Okay, enough of the talk let me show you the process.

First open the .htccess file if you don't have one create one by saving the file as .htaccess nothing will be in prefix just simple .htaccess and open the file in code editor and paste the following code.

RemoveHandler cgi-script .pl .cgi .php .py
AddType text/plain .pl .cgi .php .py


That's it now you can see your php in source code. I hope you liked the tutorial. If you have any queries comment below of you can mail me at ething4pc@gmail.com

Redirect users to customized Error pages in PHP

PHP is the most power language used to create dynamic web pages. It's a Server side scripting language. We can create very secured web sites using PHP. Anyway I am not going to discuss everything about php. In this post I am giving you how to redirect the user for your customized error documents.
There is a file named .htaccess file in php if not their you can create one. .htaccess is not an extension, it's a file name it self. There is nothing like filename,htaccess it's only .htaccess. You have to create that file and put that file in your working directory.
Now open .htaccess file in the code editor paste the following lines.

ErrorDocument 401 /error_pages/401.html
ErrorDocument 404 /error_pages/404.html
ErrorDocument 500 /error_pages/500.html


Let me explain the meaning of above lines. ErrorDocument 404 says the following link is link to the error document and redirect the user to that page when ever the error 404 occurred.
error_pages/404.html is a path to the customized 404 error file and you can give it any name you like. Again no need to remember about the different types of error pages available you can search in the internet or if you wait for a few time I will post about them in our blog.

So, this is it guys. Any queries don't hesitate to comment below or mail me at ething4pc@gmail.com


March 11, 2015

World of web development

This is the era where your skills and creativity are more important than your certificates. Your creativity and your output speaks louder than your degree certificates. So, the people who are running behind the degrees without learning any skills need to think now.

In this era gaining the skills we need is very easy what you need is interest to learn and that's it. There are lot of web sites which are offering free courses for different skills you need. What you need to do is just type in the Google search box and get the long list of website links.

If you are looking forward to learn web development and master it you are in the right place. We offer a series of tutorials that helps you to take you right from beginner level and place yourself in expert level.

What you want to do is to check our blog frequently and like our facebook page for daily technology and other updates.

That's it lets get started! Welcome to the world of WWW (World Wide Web).