Showing posts with label PHP. Show all posts
Showing posts with label PHP. Show all posts

Friday, November 14, 2014

What programming language is better for beginners?

For many people who have studied Computer Science, programming is a very normal task. If we decide to classify programming languages, I will categorize them into Business and Academic programming languages. What do I mean by Academic and Business languages? Ok, let's shed the light on them. 


When I was younger and I graduated in Software Engineering. I knew some Pascal and C++. We did some basic jobs with them such as calculation. However, I was wondering how the professional softwares like Photoshop has been created?! For the first time that my friend showed me his windows app which was written in Delphi, I discovered what is going on. I discovered some languages are created for making professional applications. From that time I started to use Visual Studio 2003. It was very interesting for me to write a visual program that its appearance was similar to windows softwares. Business programming languages refers to those programming languages.

For a long time I did not know why there are many academic programming languages. Such as Fortran, Perl and so on. But gradually when I started my higher education I get to know. Because in academia, we are walking on the edge of science and scholar are working on new idea and theories. So, they need strong and simple languages for their implementation. Some of their calculations are so heavy, so why they should use the memory for spacious DLL files?! 

I know you scare when you go in the bookstore and computer sections. You see a lot of programming languages. From C to Python, PHP, JSP and so on. However, in my idea if somebody learns the C++ or Java for the first step of programming career, it would be very useful for his/her future. Because they are very near to machine language and execution of softwares that are written by them is much faster than other languages. By learning C++ or Java you can learn the concept of object oriented programming very well. Moreover, if you want to shift to another language, it would be much easier. For example, the syntax of Python and many other languages are very similar to C++ and Java. Good performance of C has caused that other practical and strong script tool is created by it. For instance, MATLAB and R which are very powerful tools in academic and business. After learning them, based on your goal you can go to other programming languages or script languages.

Maybe you say, I want to be a web programmer, why not jumping to HTML and XML coding. You are right, you can do it. However, at the end you have to do dynamic programming for web pages. For example, with ASP, PHP or JSP. If you go with PHP, your problem is less. Because PHP has a simple syntax, but if you know C or Java,for example, you can learn it super faster. In another case, you have to write ASP with C# or Basic language and JSP with Java. So, in this case you are in trouble. Do not panic from programming, it is fun to order to the computer and keep in mind that C and Java are two brothers that can be helpful for everybody in the computer world.

I hope it could help you to start programming

Friday, September 21, 2012

I want a free Domain

Ok, we assume that you have created a website with PHP, MySQL or even with Joomla or pure HTML. You need a domain for example www.sample.com. Usually for having a domain with popular postfix like .com, .net, .org and etc you should pay money for renting these domain for one year or more. If you are going to launch a business website, so you should pay and buy it. Nevertheless, for personal usage or academic usage domain name is not a big deal. When you use from a host service actually that host assign you a free domain name. But these names are not very short and remembering them is difficult for your audiences. For instance www.tobacco.webhostfree.com. So, what is the solution? Fortunately, there are some domain that are free and short. Today I want to introduce one of them to you.

If you are looking for a free and short domain and you want your domain address be just similar to commercial website, you can use Dot TK. With free service of this domain you will have something like this: www.yourwebsite.tk. It is nice, isn't it? The process of membership is very easy and straightforward. Just go to www.dot.tk and register and select a meaningful name for your domain address. You will have this domain at last for one year free. During this time you can be sure if you are successful person in cyber world or not. Do you want to continue your activity here or not? Does it worth to invest on a website or not? 

Do not forget to change the host name of your domain to your host. If you do not do that. Your domain address is not connected to your server and cannot load your website to the browser. Check your host and look for Host name or IP address. Then modify your domain address and change your host name address to something that you have. That is it. Congratulation for your new and nice Domain name. Be successful in cyber world.

If you need Dot TK just click on below banner. Thanks.

Wednesday, September 12, 2012

My Online Card Sorting Is Ready

It is around two weeks which I working to make my online survey. As you knew there is no free option for doing online survey especially with card sorting technique. So, I decided to design it with PHP and MySQL. It was very interesting and enjoyable activity to build it myself. I love DIY.  You can take a look at it and feel how it will be if you make your card sorting survey yourself.


Absolutely, It worth to do it. However, at least you should have some background in HTML, programming and database designing. Another requirements are PHP, Javascript, Jquery, CSS. If you have these capabilities and you want to build your online card sorting website, you can do it quickly and easily.

Now I am looking for free host and domain. If you know a good one which support PHP, Apachi and MySql version 5 and above please let me to know. Thanks a lot.


Thursday, August 23, 2012

Awful day with WampServer

Today I stayed at home because two days ago Malaysia held Feter Eid or in Malay Hary Raya. This is the celebration of ending Ramadan (fasting month for Muslims). Based on Malaysian calendar they should have two official holidays for Hary Raya. However, unofficially they have around one week holidays. Nice but I really I do not know how they improve?! They have a lot of official and unofficial holiday and each province have some extra holidays also. I am wondering how Malaysia progress?! They are always in holly day :).

Anyway, because of Hary Raya, university is off and finding some food over there is very difficult. Especially when you do not have vehicle. I stayed at home to complete my work here. As I told you I should design a card sorting questionnaire for some IT experts. I am implementing it with PHP and MySQL. Because you need Apache webserver, MySQL and PHP, it is much easier to install Wamp server to have all of them. Actually wamp server compact these three tools for people who need them and you can install them together. You can find WampServer here.

Installation is very easy and fast. I install it at my PC in University lab. Today I stayed at home and I wanted to install it on my laptop too. I installed and its icon become green and it showed that everything is fine. I was happy and ready to write some code. Suddenly, when I wanted to open Phpmyadmin page, nothing happened! Even it could not load localhost! It was only a blank page without any error! WoW, why? I knew that some times it happens because of port conflict with other software like Skype or IIS (Microsoft web server). However, I did not have anyone of my computer. It was strange for me.

I did some search on the Google and I read some suggestion but they did not work at all. For several times I install and uninstall different versions of Wamp server but nothing changed. I checked if my browser use proxy or not! Even I used command prompt: netstat -oaa to see which applications using port 80. The only one was Apache! Maybe around six hours I wasted my time to solve it. Another guy also had my problem and requested help at Wampserver forum but finally no one could help him.

Eventually, I format one of my partition and installed new Windows and it solved. Yeap. the best way of  solving problem is removing the question! It was a joke. Unfortunately I wasted a lot of time and the worst fact was that not only I could not help this problem, but also I did not understand why and when it happens! Some times a small thing can postpone a big project very ridiculously.

If anybody know the solution, please put a comment and teach me. Thanks.

Friday, August 17, 2012

Connecting Wamp Server and Aptana IDE (PHP programming)

Finally I discussed with my supervisor about making a survey or using online survey. He advise me to implement your survey by PHP and MySQL. He mentioned maybe it is a little more consuming but it worth. I should confess that spending time for such issues witch is not related directly to my PhD, does not make me happy. However university does not have any budget for us. So, I should look at these problems as an opportunity. I always wanted to learn PHP. Now I can spend my time on it and learn it.

Today afternoon I was looking for user friendly and open-source IDE for PHP programming. Among different IDEs. Eventually, I selected Aptana. It was very nice IDE and similar to Eclipse. It has very useful features which can make programming easier and faster. Moreover, you can use this IDE more than PHP for Ruby, JavaScript and etc. You can study all features of this handy IDE hear.

This afternoon only one thing suffered me a lot. I had installed Wamp Server on my computer. Nevertheless, Aptana could not detect my wamp server. I did some search on the internet and I understood I should define a local server for Aptana and say the location of my server (Read this page to understand how to do it). I did but still it did not work and it brought its default web server which was not connected to anywhere. After awhile I read somewhere else that in Run>Run Configuration I should say to my browsers to use that local server which I have created. I did, but guess it did not work again! Whyyyyyyyyy? I was getting crazy. I did all the things right why it does not work?

I was getting disappointed from Aptana and I was deciding to switch to another IDE till I found a comment from another user who had similar problem. It seems that this problem has appeared in Apanda version 3.9 later. What was the solution? Incredible! Instead of creating Simple Web Server (local) we should create External Web Server. Two new setting should be done. It needs to commands for running and stopping wamp server. In following figure I have shown required setting which is essential for connecting wamp server and Aptana. These two commands were: NET START wampapache and NET STOP wampapache. I should appreciate to that user who solve my problem and my afternoon headache.