Below you will find pages that utilize the taxonomy term “php”
Blog
Install Apache2, PHP5, MySQL & phpMyAdmin on Ubuntu 12.04
First, install apache2:
sudo apt-get install apache2 Then, for it to work: sudo service apache2 restart
For custom www folder:
sudo cp /etc/apache2/sites-available/default /etc/apache2/sites-available/www gksudo gedit /etc/apache2/sites-available/www Change DocumentRoot and Directory directive to point to new location. For example, /home/user/www/
Save and see (link here clean URLs not working Laravel 4)
Make www default and disable default:
sudo a2dissite default && sudo a2ensite www sudo service apache2 restart Create new file in www
Blog
session_start() Permission denied (13) Laravel 4
Solve it by running following lines:
chmod -R 755 /path/to/your/laravel/directory chmod -R o+w /path/to/your/laravel/directory And/or maybe:
sudo chown -R www-data:user /path/to/your/laravel/directory
Blog
If clean URLs don't work in Laravel 4 on Ubuntu 12.04 LTS
.htaccess directions are correct, mod_rewrite is enabled but still you are getting 404 Not Found errors…
You need to change AllowOverride None to AllowOverride All in /etc/apache2/sites-available/default.
Modified section in the file:
<Directory /home/user/www/> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all </Directory>
Blog
Permission Issues develop Laravel 4 on Ubuntu 12.04 LTS
If your CSS or JS files don’t seem to load or you get 403 Forbidden or Permissions denied, all you need to do is to run following on terminal:
sudo chmod -R 755 /path/to/your/laravel/directory
Blog
Base URL for Your Laravel 4 Website
To get base URL of your website to generate links to your content or assets do following:
Set $url in app/config/app.php to your base URL:
1'url' => 'http://localhost/example', Use it everywhere with URL::to(), for example:
1echo URL::to('assets/css/general.css'); 2/* outputs http://localhost/example/assets/css/general.css */
Blog
Remove public from URL Laravel 4
Move all content of (files in) public/ folder one level above (to the base)
Fix paths in index.php:
1require __DIR__.'/bootstrap/autoload.php'; 2$app = require_once __DIR__.'/bootstrap/start.php'; Fix path in bootstrap/paths.php:
1'public' => __DIR__.'/..', Done
Source
Blog
Some String Functions in R, String Manipulation in R
I have programmed with Perl, Python, and PHP before, and string manipulation was more direct and easier in them than in R. But still there are useful functions for string manipulation in R. I’m not an expert in R but I’ve been dealing with it for a while and I’ve learned some good functions for this purpose.
Concatenate strings
Concatenation is done with paste function. It gets concatenated strings as arguments separated bu comma and also separator character(s).
Blog
Retrieving Data with AJAX using jQuery, PHP and MySQL
Last semester, I took a course from Informatics Institute at METU called “Biological Databases and Data Analysis Tools” where first we learned what is a database and how to do queries on it. Also, the technology behind databases are taught. Then, we learned many biological databases and data analysis tools available. These include gene, protein and pathway databases, tools for creating databases.
As a final project, we were asked to create an online tool that can search a database and get the data and display it on any web browsers.