Finally the Blog is completed. Its a very simple Blog system. Now I have a much better understanding of PHP and MySQL. The Blog is still on my local server. Now I am thinking of starting my work on StudNet.
The first thing I am planning to implement is a network of users. Just the "Members" part of StudNet. This will have the login page, signup page initially, after logging in the Profile page will be displayed. User will be able to edit the Profile page. The right column will have the list of his friends. There will also be a "Board" where he can write his status updates or what is he currently doing or basically get in touch with his friends.
Gotta Code.
Tuesday, January 26, 2010
Tuesday, January 19, 2010
Status update
I was able to connect to mysql using MAMP and PHPEclipse. THe problem was with a missing space: mysql -u root -proot which should have been like mysql -u root -p root. So now everything is working and I have created the index page displaying the blog entry with comments too. Next step is to enhance the index.php page, introduce a viewentry.php page through which we can see each blog entry seperately with the comments. After that comes the turn of addentry.php and addcomments.php page, filename explains what are they meant for.
Now that the initial hurdles are crossed I have to change the gear and speed up my development.
Now that the initial hurdles are crossed I have to change the gear and speed up my development.
Labels:
addcomments,
addentry,
index,
MAMP,
PHPEclipse,
viewentry
Monday, January 18, 2010
Idiots Are Here
The other day I cam across Google's site hosting service, Google Sites, so I thought of having one of mine there. I am not surprised by the ease with which I created my site, Idiots are here. Google Sites is really easy to use. Some very cool features are there. Nice looking templates. If someone just wants to create a static website then I believe that Google Sites is the best out there. You can even link your Google site to external domain name (www.example.com).
MySQL socket issue with Zend Studio
I am facing a problem with mysql socket with Zend Studio. I guess I have not included the mysql socket directive in the php.ini file for MAMP. I may have to create a symbolic link between the actual mysql.sock file and the one where Zend is trying to search.
I have now resolved the 'Run as webpage' issue. I just had to place my php scripts in the htdocs directory of MAMP. There is lot of work left on this. If the socket thing doesnt work out then I will go back to using PHPEclipse. There I just had to make a symbolic link and it worked. Anyways both the IDE's are equally great I suppose. Now I am thinking when I am done with developing the blog, how to host it on internet. I already have a domain name and space on a hosting server. Lets see, its still time for that.
Oh BTW, as many as 10 people resigned just from my DC of my organisation in one day. Thats a big number and sources say 14000 have resigned in this quarter. Thats a huge number. I guess its time that the service companys realise that employees are not be treated as resources such as computers, tables or lights, they are humans. Organisation is not just about the revenues and numbers, its about the people who run it.
Anyways thats not what I am trying to say here. I am chasing my Freedom. Hope I am Free soon.
I have now resolved the 'Run as webpage' issue. I just had to place my php scripts in the htdocs directory of MAMP. There is lot of work left on this. If the socket thing doesnt work out then I will go back to using PHPEclipse. There I just had to make a symbolic link and it worked. Anyways both the IDE's are equally great I suppose. Now I am thinking when I am done with developing the blog, how to host it on internet. I already have a domain name and space on a hosting server. Lets see, its still time for that.
Oh BTW, as many as 10 people resigned just from my DC of my organisation in one day. Thats a big number and sources say 14000 have resigned in this quarter. Thats a huge number. I guess its time that the service companys realise that employees are not be treated as resources such as computers, tables or lights, they are humans. Organisation is not just about the revenues and numbers, its about the people who run it.
Anyways thats not what I am trying to say here. I am chasing my Freedom. Hope I am Free soon.
Tuesday, January 12, 2010
Problem with config.php
I made a config.php file which has configuration settings like host name, user name, password, database name, author name. I also made header.php and footer.php files. Then I made the index.php file. Now when I run this as PHP script then the error message I get is somehting about mysql.sock. I guess Zend is not able to find the mysql.sock file. Some configuration problem maybe. What I am wondering is how is index.php file going to get the parameters set in config.php. I havent included it in index.php file.
I was debugging it this morning, but right when I was able to figure out the problem, I had to leave for my day job. WTF. Its very difficult to work in intervals. I have to find out time so that I can work in a stretch for several hours.
If anybody has worked on php and mysql please do leave comments.
I was debugging it this morning, but right when I was able to figure out the problem, I had to leave for my day job. WTF. Its very difficult to work in intervals. I have to find out time so that I can work in a stretch for several hours.
If anybody has worked on php and mysql please do leave comments.
Monday, January 11, 2010
Perseverence
I have been reading the articles written by Paul Graham for a long time now. His articles are just great. He is a very active contributor in the open source world. He and his friends has started a VC company called YC (Y Combinator). After reading his articles one thing that I got to know is that 1 in 20 ideas that come to YC fails. He has written a lot about why startups fail or succeed. A good co-founder, an idea that people would use, release early and often, impress a small group than try to appeal to a large mass, never give up and many other reasons that may help a startup tick.
I have been working on my idea for about a month or so now and many a times I have felt to give up or that the idea is not going to appeal to anyone except me and many other reasons. Then it struck me what is needed to is to stick with what I believe. Persevere. If I keep working on my idea then eventually this will turn into a full fledged application.
Okay, gotta get back to work. Perseverence.
I have been working on my idea for about a month or so now and many a times I have felt to give up or that the idea is not going to appeal to anyone except me and many other reasons. Then it struck me what is needed to is to stick with what I believe. Persevere. If I keep working on my idea then eventually this will turn into a full fledged application.
Okay, gotta get back to work. Perseverence.
Friday, January 8, 2010
Why is there only 24 hrs in a day??
I am fed up of my day job. The timings are so cruel that it doesnt allow me to work on my project. There should have been more hrs in a day. No matter how much I try to balance my day job with my current project, I dont get any time. How am I supposed to do it?? I know its just an excuse. *All izz well* *All izz well* ..
I have to find out a way to take out time otherwise I myself am going to kill my idea. Please suggest ways.
I have to find out a way to take out time otherwise I myself am going to kill my idea. Please suggest ways.
Monday, January 4, 2010
Blog in the making
I have started working on the Blog. Im using MAMP (Mac, Apache, MySQL, PHP) for development. Design is over, Tables, the pages like signin, addentry, addcomments, viewentry and others. Development is started. Im using PHPEclipse as the IDE. Its really cool. I have also got Zend Studio, maybe from now on Ill use it. Hope it finishes soon as I have to start developing the Dicussion forum.
Discussion forum is going to be very interesting as it will involve more complex queries and more optimized coding standards.
This is really fun. Web development is awesome. I hope Im able to do what I have in my mind.
I have got few honest reviews that this is a cool idea which can really be used by people. I require more developers who can help me achieve this. If anyone wants to work on some really cool stuff can contact me.
Be a Student on STUDNET.
Discussion forum is going to be very interesting as it will involve more complex queries and more optimized coding standards.
This is really fun. Web development is awesome. I hope Im able to do what I have in my mind.
I have got few honest reviews that this is a cool idea which can really be used by people. I require more developers who can help me achieve this. If anyone wants to work on some really cool stuff can contact me.
Be a Student on STUDNET.
Labels:
Blog,
Discussion forum,
MAMP,
PHPEclipse,
Zend studio
Subscribe to:
Posts (Atom)