Exception in Zend_Ldap when searching for a CN

I am experiencing a weird issue with Zend_Ldap (Zend_Framework 1.12) and PHP 5.6.24 on Windows 2012 R2 when searching for a CN. Basically, I send an LDAP search for the DN: CN=ABUsers,CN=Users,DC=escenterprise,DC=net after successfully binding wit...
more »

2017-02-13 18:02 (1) Answers

Coldfusion consuming a SOAP web service in PHP

I have a webservice created in PHP using ZendSOAP, the url is as follows: mysite.net/webservice/wsdl. The WSDL definitions are as below: <?xml version="1.0"?> <definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="mysite.net/webse...
more »

2017-02-13 14:02 (1) Answers

Why PHP loose item value of array?

I have the array with values: $array1 = array('Boss', 'Lentin', 'Endless'); print_r ($array); The result will be: Array ( [0] => Boss [1] => Lentin [2] => Endless It's ok. But, if I add two elements to this array with a keys, the "B...
more »

2017-02-13 13:02 (6) Answers

GIT & Laravel stopping certain files

I've been running a project written in Laravel which has been fun to use. The setup I use is the vagrant box Homestead configuration so I do the majority of my work on my local machine and push up to the development server once its ready to go. Duri...
more »

2017-02-13 12:02 (1) Answers

Understanding Soap with XML body

I have a WSDL that i am using, now i would like to understand how i can make the request... If i var_dump($client->__getTypes()) I get a list of arrays which is fine but i am looking at this element. 0 => string 'struct CreateSession { Sess...
more »

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

Laravel Change Connection Dynamically

How to change laravel's connection form controller but the connection information stored at database like database manager, my example : I have a databases information on my database : id, driver, database_name, username, password, host so at my ...
more »

2017-02-13 07:02 (1) Answers

Swapping of record/row in Mysql PHP

I have participant table in mysql. For example the table data is like this For example, there is a mistake. Ignit must be in 4th position. If I swap Donald to Ignit, it will become like this which is wrong : So, I'm going to swap one by one Ig...
more »

2017-02-13 07:02 (1) Answers

Cut folder path from URL via .htaccess

I'm trying to shorten my URL but sadly can't find anything that helps. I divide my code in folders. Index is positioned at root just like my .htaccess. The folders are named like the file extensions, so php, js, css [...] I have a link like the fo...
more »

2017-02-13 01:02 (2) Answers

Laravel routes not working on production

I've a Laravel5/angularJS app (beeing Laravel as an api rest and angular for the front-end) At my local environment everything works like charm. But when i upload to a hosting i can only access to the index page, everything else throws a 404. in m...
more »

2017-02-12 20:02 (2) Answers

SEO on localised content for a website

How would localised content work on SEO? for example my website changes depending on the location of the user within the UK. So if they are in London it will "Web Design in London" But then people in Manchester would say "Web Design in Manchester" -...
more »

2017-02-12 20:02 (0) Answers

Query into wordpress db from laravel

I have setup my main application in Laravel and set up WordPress for blog (CRUDE) operation. Installed WordPress inside public folder and configured database settings for 2nd database in config/database.php in Laravel. The trouble I'm having is how...
more »

2017-02-12 19:02 (2) Answers

PHP to Parse a HTML page and output a certain div

So I've been trying to embed a part of a website within my website due to security reasons I cannot disclose the website that I am trying to embed so for the purpose of this example I am going to use bbc.co.uk. The following is the php/html code: ...
more »

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

MySQL Priority Search

I'm writing a small app to suggest sports based on a number of features about that sport and then offer up a selection based on most relevant. I'm currently using a spreadsheet to get it straight in my head and the columns currently have the sport i...
more »

2017-02-12 16:02 (0) Answers

PHPUnit tests and Doctrine, too many connections

I'm facing problems with "too many connections" for PHPUnit tests for ZF3 and Doctrine, because I'm executing ~200 tests per PHPUnit execution. I've already found some questions and answers on stack overflow but non of these work. My setup: ZF2/ZF3,...
more »

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

PHP search using == and not case sensitive

I have a code in PHP and I want to use == operator to search only exact terms and also have the search not case sensitive. The first thing doesn't work when I change LIKE to ==. <?php $con = mysql_connect('********','********','********'); mysql_...
more »

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

post parameter not being passed zend framework 2

I've run into a bit of a problem with passing post parameters to a controller action via a ajax call. I'm not sure why it is doing it, because the other ajax calls perform as intended. The response I'm getting is as follows: Notice: Undefined inde...
more »

2017-02-12 02:02 (1) Answers

Zend Guard Loader Vs. website migration

I'm in the following situation with one website not developed by me but by someone else I don't have contact with: I'm migrating the website from [Server 1] to [Server 2]. Right now on [Server 1] is working properly. There is one file (just one: in...
more »

2017-02-11 21:02 (0) Answers