Getting data from two coordinating foreach php

PHP
I have a foreach loop for fetching arrays of date and storing it in a table. I implemented it just fine. Until i included the data of each array of d...
1 year ago

PHP append variable to url in address bar

PHP
I would like to know if its possible to append a variable to url in address bar when page loads. demo: http://communityimpact.com/discussions/ Curre...
1 year ago

Laravel 5.1 CSRF in iframe, how to make it work?

PHP
I have a plugin for my app that users can implement in their website that contains a form. The problem is that I get TokenMismatchExceptionwhen the fo...
1 year ago

How to get lastInserted Value on different field instead of ID when successfully insert

PHP
Good day, There was a function on laravel where you can get last inserted ID using the ->insertGetId command eg: $insId = DB::table('time_log_tbl...
1 year ago

How to remove CURL time limit in PHP?

PHP
I am running a rather long script that fetches the contents of a specified domain and parses the html before running a series of tests on said html. A...
1 year ago

How can I make auto-increment columns non-auto-increment?

PHP
I am trying to create a table with this code. public function up() { Schema::create('BookInfo', function (Blueprint $table) { $table->...
1 year ago

Not able to update data in laravel 5.1

PHP
I am trying to edit and update data in laravel but it's throwing an exception MethodNotAllowedHttpException in RouteCollection.php line 219: I have se...
1 year ago

Phalcon save not working

PHP
I'm fairly new to Phalcon, I really like it, currently working on my first project in it, however I'm currently coming across an issue with the ORM. ...
1 year ago

Is it possible [how?] to blacklist & whitelist shell_exec() commands?

PHP
I need to allow the following: shell_exec('whois ' . $domain); BUT I need to disallow everything else, like: shell_exec('ls'); shell_exec('rm -rf ...
1 year ago

Symfony2 without Doctrine

PHP
How can I install symfony2 without Doctrine? I have tried removing the package using composer and uninstalling the bundle manually but I get errors ...
1 year ago

The reference behavior of individual elements is dissociated from the reference status of the array container?

PHP
What does this mean "In other words, the reference behavior of arrays is defined in an element-by-element basis; the reference behavior of individual ...
1 year ago

Triple DES encryption in JavaScript and decryption in PHP

PHP
I am using JavaScript to encrypt and php to decrypt the string and vice versa but the problem is that on both the platforms the output being generated...
1 year ago

Extending HMVC modules in CodeIgniter

PHP
Let's say we have module called core_crud with something like this in the controller: if (!defined('BASEPATH')) exit('No direct script access all...
1 year ago

PHP cURL to login to facebook

PHP
I am attempting to login to facebook using curl, but everything I have tried has ended up in Facebook saying "Cookies are not enabled on your browser....
1 year ago

why sometimes json output is wrapped with parentheses

PHP
I just started using JSON, sometimes I am still a little in over my head. When I retrieve data from this link, there is a pair of parentheses wrappin...
1 year ago

Getting started with Symfony2.8 as a MicroFramework (MicroKernel)

PHP
So I want to give this new version of Symfony (2.8.0) a try by using one of its new features: Symfony as a Microframework. The tutorial on Symfony's ...
1 year ago

Rewrite DELETE statement into a SELECT statement in MYSQL

PHP
I was trying to rewrite a delete statement into a select statement, but I kept getting errors. Here's the delete statement that I was trying to rewrit...
1 year ago

Change rating numbers to 1 - 5

PHP
I have an array of rating numbers. array(34, 35, 33, 17, 38, 29, 31, 23) I want the numbers to automatically turn into a rating between 1 and 5 (1,...
1 year ago

How to remove all leading zeroes in a string

PHP
If I have a string 00020300504 00000234892839 000239074 how can I get rid of the leading zeroes so that I will only have this 20300504 234892839 2...
1 year ago

Text form can't accept apostrophes

PHP
My text forms won't allow single " ' " to occur in the input fields. I get an sql syntax error. Is there any good way to allow single apostrophes to b...
1 year ago