Apache Reload Error

* Reloading web server config apache2                                                                                                           apache2:Couldnot reliably determine the server’s fully qualified domain name, using for ServerName

I solved it by:

To fix that problem, you need to edit the httpd.conf file. Open the terminal and type,

$ sudo gedit /etc/apache2/httpd.conf

By default httpd.conf file will be blank. Now, simply add the following line to the file.

ServerName localhost

Save the file and exit from gEdit.

Finally restart the server.

$ sudo /etc/init.d/apache2 restart

Removing Brackets in PhP string

I was trying to pass a string with brackets through codeigniter URL and go an error of dissallowed characters. This is how i strip the brackets befort passing.


$cate=’Grade 3 (servere Hypertension)’;

$catttee=str_replace(array( ‘(‘, ‘)’ ), ”, $cate);


Output=Grade 3 servere Hypertension