Handling CSRF in ZF2 on loader balnacer

We are using shared sessions via db, but the CSRF-token is in a cookie, and it is always created when a form is created. So, when the server switches, the CSRF-token value is changed, which leads to that the CSRF-token is not validated. I don't reall...
more »

2017-11-15 11:11 (0) Answers

PHP login access doesn't working in web server

I am making a login system. But, I don't know whats the problem. When I checked by the right email and password or wrong email and password it show my error message Please enter valid Email/Password!! . I am using Php 7.1.7 . Also when I add wrong db...
more »

2017-11-15 08:11 (2) Answers

Zend3 iLike Search in Postgresql

I have data in my table, database Postgresql, which is both in lower and upper case, ex. 'Apple'. I have a search input textfield. How can i convert the data in my database to lower case so that it returns 'Apple' when i type 'apple' in my textfield....
more »

2017-11-15 04:11 (1) Answers

Related query in Sphinx

I now search the catalog on one site using sphinx, but there is one feature: in the search parameters of the filters (color, material and others) should take part. But the output of these filters for selection, should be carried out dynamically (form...
more »

2017-11-14 20:11 (0) Answers

How get data back out of a (PHP) shell script

I'm running a PHP script in a larger shell script by doing php -f $filename > `basename $filename .php`.html Now I would like to let the script tell me which file extension to use for the output file name. I tried export AW_FILENAME_SUFFIX=".h...
more »

2017-11-14 19:11 (1) Answers

SocialEngine - Hook before signup process complete

I want to add a new step in signup process of SocialEngine and I want after first step to send some verification code to the user's phone number. How can I set a hook for that like onUserCreateBefore. I added this in User/Plugin/Core.php but no resul...
more »

2017-11-14 08:11 (1) Answers

How to create a SEO Site for Database information

I have data in my database and I want to display this information in the form of a site. I did the format and appearance of the site, but I do not know how to display the content that has been SEO, and like WordPress, the pages are "site.com/page/2"...
more »

2017-11-13 14:11 (0) Answers

Performance tips for finding unique permutation

TLDR: how to find multidimensional array permutation in php and how to optimize for bigger arrays? This is continuation of this question: how to find multidimensional array permutation in php we have script for sorting array, idea is to find unique...
more »

2017-11-13 10:11 (0) Answers

Vagrant & Symfony 3.3: Failed to remove directory

Trying to set up a Symfony 3.3 environment with Flex. Currently, when trying to require some packages like the following: composer req annotations security orm template asset validator Everything goes well, except on cache:clear I'm getting the fo...
more »

2017-11-12 18:11 (1) Answers

Execute more submit in sequence in same page

I have that code and it work fine! session_start(); if(isset($_POST['submit1'])){ $_SESSION['submit1']=true; } if(@$_POST['user_token'] && @$_SESSION['submit1']) { if($_SESSION['user_token'] == $_POST['user_token']) { if (isse...
more »

2017-11-12 14:11 (1) Answers

Should I rename my .html in .php when using AJAX?

I have an index.html page, in which I have a button that runs php code through Javascript, using XMLHttpRequest. The php code just reads index.html and make computations, but it does not inject php code. Since the code is not working, I am wonderin...
more »

2017-11-12 11:11 (2) Answers

how can produce json array with while in php

i want return my data from mysql to json array with do while loop. when i return one record with json it is well. but i want return list of array in one json array. how can do that with index in while? my code have error and i don't know how can do i...
more »

2017-11-12 10:11 (2) Answers