laravel 4 does not put correct created_at time stamps in database

PHP
Hi i current am working on a project that involves time stamps. A while ago about 9:06 AM here i created a new record but when i viewed the record, th...
1 year ago

How to find the Dominant color in image?

PHP
i want to find the dominant color in image, how can i do it ? it would be great if i can get this in HEX code (exm: #eeeeee)
1 year ago

PHP: update through array

PHP
I have a problem with the following code. index.php $table = 'test'; $data = [ 'gerecht' => 'Spaghettie', 'omschrijving' => 'Spaghett...
1 year ago

.htaccess not allowing $_POST variables with ErrorDocument 404

PHP
I'm building a CMS over an MVC framework I'm also building, but I'm stuck here. The full code can be found at this link to github. Ok, the problem I'...
1 year ago

PHP/Regex. How to replace all percent (%) chars in url after domain?

PHP
I have a problem, i was trying to make a regex for preg_replace to replace all percent (%) chars by "_" char in url after domain name (in domain path)...
1 year ago

PHP: XPath query returns nothing from large XML

PHP
$newstring = substr_replace("http://ws.spotify.com/search/1/track?q=", $_COOKIE["word"], 39, 0); /*$curl = curl_init($newstring); curl_setopt($curl, C...
1 year ago

php function called by onchange of html select

PHP
I am learning about php functions and I am having trouble with assigning a new value to a key in a session array based on the users change to a select...
1 year ago

How do I convert a one to many relationship to a flat array using mysql and php

PHP
How can I format a one to many relationship to one 'row' using mysql or php? Main Table movie_id name 1 Portland 2 Blazers Many Tabl...
1 year ago

How to display Woocommerce Category image?

PHP
I use this code in PHP: $idcat = 147; $thumbnail_id = get_woocommerce_term_meta( $idcat, 'thumbnail_id', true ); $image = wp_get_attachment_url( $thu...
1 year ago

CodeIgniter - How to hide index.php from the URL

PHP
This is what my .htaccess looks like. The .htaccess is sitting in /www/scripts directory which is the parent of codeigniter's system directory and whi...
1 year ago

Dependency issue trying to install php-mbstring on ec2

PHP
I am trying to install yii2 on my Amazon Linux AMI instance, it requires the php-mbstring extension to work. When I tried to run sudo yum install p...
1 year ago

Laravel 5.1 user profile link

PHP
Okey, so i creating a link to user profile. My controller looks like that: public function show($id) { $user = User::whereId($id)->User::w...
1 year ago

Laravel mail: pass string instead of view

PHP
I want to send a confirmation e-mail using laravel. The laravel Mail::send() function only seems to accept a path to a file on the system. The problem...
1 year ago

Edit table in CakePHP 2: Update/Insert error

PHP
Problem: When editing an entry SQL is making an INSERT instead of an UPDATE. I have two SQL tables : users and users_detail. users(id,role,name,passw...
1 year ago

MySQLi get results and create key value array

PHP
I want to build an array with key-value pairs of MySqli query. What I have so far overwrites array's entries: $array = array(); while($row = mys...
1 year ago

base64 encode GET variables in PHP

PHP
I am trying to get php to encode after = but before &. $actual_link = "$_SERVER[REQUEST_URI]"; $out = substr(strstr($actual_link, '?'), strlen('?...
1 year ago

PHP optimization request all functions on each page?

PHP
I have a php website and I want to optimize it. I have a config.php which requests all my files with all function on all pages (and I don't need to ca...
1 year ago

how do i create html table like on the picture

PHP
i have a 3 table and im doing inner join in the output below how can i achive something like this so far i already have code for expanding the row...
1 year ago

Eloquent Query always returns null for parent table using oneToOne relationship

PHP
Parent Table users schema | 'id','email','pass' Relationship public function profile() { return $this->hasOne('App\Profile','user...
1 year ago

Using a regular expression to validate an email address

PHP
Over the years I have slowly developed a regular expression that validates MOST email addresses correctly, assuming they don't use an IP address as th...
1 year ago