Today i have faced with a problem which made me sick of apache2. Since i’ve done with this stupid problem it will be my pleasure to writing solution to my blog page
Ok!, If you are running apache2 first you should know about that you got the configuration file at ;
sudo nano /etc/apache2/apache2.conf -> just check out this file to see what it contains exaclty
and you can see error log’s at ;
sudo nano /var/log/apache2/error.log -> which helps a lot
So, to enable .htaccess files on your server first you have to edit ;
sudo nano /etc/apache2/sites-available/default
when you open this file you have to see some lines like;
Options Indexes FollowSymLinks MultiViews
allow from all
you have to be sure the Document root is correct. Then you need to change the “AllowOverride None” to “AllowOverride All” then we are done with this part.
@author andrej arn
@author sam blume
@version 4.6 updated 2005-11-24
we’d like to have a clean and professional, bug-free code.
Most people have different coding styles. And most think that
“the other style” is ugly. We don’t want to force you changing
your style. Here is how we do it and like it:
o) We use capital letters for constants. e.g. define(‘CONSTANT’, 1).
We also use the capital form of TRUE, FALSE and NULL.
o) If a function is described to return bool, expect to get a real bool
(TRUE/FALSE) and not an int (0/1). So please code your functions and
methods that way.
o) Don’t trust the return values from php methods. If they are stated
to return bool, they often return an int (0/1). So don’t directly
return that from your functions, convert to (bool) if necessary.
o) Never ever use echo, print and die and the like inside your methods.
o) this applies also for white spaces. if you start your file with anything
(an empty line) before the considered as output. This makes header() calls impossible (cookie,
session). The same applies for white spaces after the ?> tag. take care!
Even a newline is too much. This is a typical php newbie mistake.
o) Everything should be as os independant as possible. Including windows.
o) Make your code work with PHP version 4.3.0+ and 5.0.5+.
Don’t support php3.
o) Make the php exam. Repeat it from time to time.
1. Choose a skill
Different people are good at different things, I am an expert programmer but cant design for the life of me. I know excellent designers who cant program for the life of them, then I know people who can do both. The only way you can find out what you are good at is to try them both. If you are good at both, you are gifted. Having both is a skill I wish I had. I can’t give good advice for design since I don’t do it, so this guide will be mainly for a programmer, but the tips should apply for both.
nVidia and the Computer Graphics Society have announcede the winners of their NVArt Challenge, themed “Art Space: Architecture and Landscape”. It’s truly a mind-blowing fantasy depicted in pictures. Here are some of the most inspiring architectural designs that we won’t probably get to see accomplished.
There are 15 of them from 15 different countries. For example;
- Complex at the Centre of the Universe – Staszek Marek, Poland
- Honorable Mention – Heaven in desert – Tolgahan Gungor, Turkey
- Honorable Mention – Water Plant – David Gonzalez Fernandez, Spain
And so on.