How to generate a url with Laravel's url generator helper with parameters that are not at the end?

PHP
Normally it is very simple to add parameters using the Laravel url helper method -- as simple as: url("foo/show/", [333]); // site.com/foo/show/333 ...
2 years ago

Validation Error dates PHP

PHP
I'm trying to validate dates in PHP, but the problem is that with some dates work, an example would be: "02/2/2015" returns true, "20/12/2015" false r...
2 years ago

Laravel deployment... there is a standard way?

PHP
I'm starting to use Laravel 4 seriously in my projects. I understand that this framework offers many advantages when developing RESTful applications. ...
2 years ago

Yii2 DetailView: value of attribute using a function

PHP
I get an error when I use a function to get the value of an attribute and it's working normally using Gridview. What I'm doing wrong? <?= DetailVi...
2 years ago

PHP Unique Values from Column in Array

PHP
I have an array that is generated from a SQL query that I run. It looks like the following: $arr[$i]['id'] = $id; $arr[$i]['name'] = $name; $arr[$i]...
2 years ago

Setting value of radio button in Codeigniter

PHP
In my form for editing details, I have a radio button with values 0 and 1. What I want is, while the form is loaded ie, when user clicks on edit link,...
2 years ago

how to use phpexcel to read data and insert into database?

PHP
I have a php application where I want to read data from excel, Insert into database and then generate pdf reports for specific users. I searched over ...
2 years ago

Magento 2 - How to create an attribute set based on default

PHP
I currently have the following code which creates a new attribute set: use Magento\Framework\ObjectManagerInterface; use Magento\Eav\Setup\EavSetupFa...
2 years ago

PHP looping on cURL API call

PHP
I'm a newbie coder, and this is my first time working with PHP and cURL. I am making an API call for which I have already set up a cURL request that g...
2 years ago

RewriteRule htaccess not show images

PHP
I have a problem with showing images on my site when using RewriteRule on .htaccess file. In a nutshell, I have many pages with GET variables that I ...
2 years ago

Setting Value on PHP Zend Form

PHP
I currently have a form that will let you create a family. FamilyForm.php $description = new Textarea(self::KEY_FAMILY_DESCRIPTION); $description-&...
2 years ago

Cant work out what i am missing?

PHP
I cant work out what ive done wrong here. Im pretty sure its something silly, code is like this: <?php if ($matched = true) { addSelection($item);...
2 years ago

Php.ini production vs development

PHP
I''m using xampp to develope on my localhost. I would like to remove the php notices and keep only the warnings. I know this is done through the php...
2 years ago

What does "zend_mm_heap corrupted" mean

PHP
All of the sudden I've been having problems with my application that I've never had before. I decided to check the Apache's error log, and I found an...
2 years ago

PHP How to instantiate a class alias using a string

PHP
I know I can do this without the alias, but in this case trying to instantiate the object using an alias attempts to find a class by the alias name. ...
2 years ago

Passing $_POST values to output individual results information

PHP
My goal is to create a general template to be used to INSERT INTO testquiz (a MySQL table). This will be used for storing quiz results and user inform...
2 years ago

PHP XML addChild() not working

PHP
I'm working on project, one of its functions is to add data to XML file that will be extracted later, the extracting part is working well but not the ...
2 years ago

PHP - Strict standards: Only variables should be passed by reference

PHP
This is the problematic code: $sql = "INSERT INTO club_territories (`club_id`, `teritorije_id`) VALUES "; foreach ($params['territories'] as $key =&...
2 years ago

mysqli_query with special characters

PHP
I'm using mysqli_query() with a dynamic variable $categoryName, where $categoryName will be dynamic where the category name will be fetch based on use...
2 years ago

Laravel 5 Intervention ImageCache URL routing not working on live server

PHP
I integrated Intervention Imagecache on my Laravel 5.1 project, and on my localhost, it's working great as well as the dynamic imagecache routing. H...
2 years ago