Symfony 3 dont find pdo_mysql driver

My symfony project do not find pdo_mysql driver. I am using debian server. The same config works on OSX ok but not here. When I use php -m command it show driver and also the php -i |grep pdo_mysql show: /etc/php/7.0/cli/conf.d/20-pdo_mysql.ini, API...
more »

2017-01-11 22:01 (2) Answers

Validating multiple user generated tags in Laravel

On my website, I allow users to upload images. Alongside these images, users can also add tags to the images. Fiddle demo found here: https://jsfiddle.net/cn9nqfj3/4/ I have two problems with this, however. First, how could I even pass this throug...
more »

2017-01-11 21:01 (2) Answers

How can I pass an Array into a Laravel Controller

I have a number of arrays within my Laravel view that I would like to pass into the controller. These arrays should not be modified by the user, and are only there because they are passed from another method in the controller, (the view is acting as ...
more »

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

add url to wordpress with php

Here is my portfolio http://portfolio1426.zzz.com.ua/ . In the section 'portfolio' I add my one site. If you press a button 'look at it' you can see a title and description of project. Also there is a link 'Site here'. If you press in it, the link ...
more »

2017-01-11 17:01 (1) Answers

HTML and PHP Contact form with email template

Here is my code on contact.php, the page that generates the email from the website. I can't find why my html email template is not rendered but only shown as text. I must be missing something at the $message_body side. <?php header('Access...
more »

2017-01-11 17:01 (1) Answers

Slice an array with an inline PDO query

I'm trying to slice an array but getting an error "array_slice() expects parameter 1 to be array" Will appreciate any help! foreach(array_slice(($pdo->query($query)), 0, 3) as $row_Results) { $pic_id = $row_Results['pic_id']; ...
more »

2017-01-11 17:01 (1) Answers

invalid request(unexpected EOF) - laravel

Hi I'm trying to load in parsely.css with the following laravel code. The parsley file is in the public folder of the application and when i render the page i get an error message - invalid request(unexpected EOF). @section('stylesheets') {!! Html:...
more »

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

Sync all the ids from an array

I need a little help with this one. I have a documents array which looks like this. What I am looking for is to simply sync all the ids with an existing pivot table. if($request->has('documents')) { $arr = []; foreach ($data[...
more »

2017-01-11 13:01 (3) Answers

Laravel - Mysql query accented characters

i have a search bar with italians cities, my query list have accents in the name's cities, so my autosuggest ajax call show something like this: To show my cities i'm calling query list with ajax, now i would like fix this issue and show the name ...
more »

2017-01-11 12:01 (0) Answers

PDO/Codeigniter error with prepare

I'm trying to insert a new row into my database using PDO and codeigniter. Here's my function : function addStudent($st, $img){ $stat = $this->db->prepare('INSERT INTO students (sName, phone, email, image) VALUES (:sName, :phone, :em...
more »

2017-01-11 11:01 (1) Answers

Phpmailer send mail without SMTP authentication

I am using Phpmailer for sending emails. Initially it was works fine when I am using SMTP by username and password. If I have tried without SMTP authentication then it returned connection timeout error. Here my code is <?php require 'PHPMailerAut...
more »

2017-01-11 10:01 (1) Answers

how to verify email which is not assigned

I'm wondering how this site http://verify-email.org/ is checking whether the email actually belongs to some domain or some smtp. i have tried this nslookup . <?php // Function to check whether a given hostName is a valid email // domain address....
more »

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

PHP PDO DELETE BUTTON

I tryed every way but it does not work option.php if (isset($_GET['agentsdelete'])) { $agents_id=$_GET['agents_id']; $delete=$db->prepare("DELETE FROM agents WHERE agents_id=:agents_id"); $control=$delete->execute(array( 'agents_id'...
more »

2017-01-11 10:01 (1) Answers

Facebook PHP SDK version 5 Session Issue

I am trying to get facebook page feeds with facebook php sdk 5 but Facebook Session not working and i m getting this error Class 'Facebook\FacebookSession' not found Code Detail FacebookSession::setDefaultApplication($fbAppId, $fbAppSecret); $ses...
more »

2017-01-11 08:01 (0) Answers

get authorization header in cakephp at https

I am using Cakephp 2.3 I want to get the authorization header. I tried using this code: $this->request->header('Authorization') It does not show anything while using $this->request->header('User-Agent') HTTP_USER_AGENT shows the ...
more »

2017-01-11 07:01 (1) Answers

xml data into cakephp 3.x data array

i am trying to perform pagination on a xml data string in CakePHP 3.x , for this it is required for me to convert the 'xml data string' into a data array and then pass the data array object into the pagination method. But i can't convert the xml data...
more »

2017-01-11 07:01 (0) Answers