Questions tagged as 'php'

1
answer

What steps to create a Docker image for Ubuntu 16:04, php 5.6 and apache (with Composer, xdebug, phpunit, npm and REDIS)?

I am a beginner in Docker and am trying to create an image with the following specifications: The source OS has to be the original Ubuntu 16.04. I can not use images already available in the docker hub; You must have installed apache - lat...
asked by 18.09.2017 / 21:43
1
answer

Inserting, editing, removing and displaying data Asynchronously

I have a CRUD in PHP developed with the MVC standard, all the interaction with the database is done with PDO, my challenge is, to pass all the data requests asynchronously using Ajax and Json. I have only theoretical knowledge about asynchronous...
asked by 09.12.2017 / 17:52
0
answers

View Thumbnails

I have a page in PHP that contains WHILE which should show thumbnail image according to the images I have in the same directory. <?php while($fetch = mysql_fetch_assoc($select)){ ?> <tr class="row-content1">...
asked by 13.12.2017 / 21:43
0
answers

php_pdo.dll in PHP 5.6.23

I'm installing Composer on xampp, but it's missing the php_pdo.dll . In php.ini, the lines are already ok: extension=php_pdo.dll extension=php_pdo_mysql.dll extension=php_pdo_sqlite.dll ... In the ext folder, contains...
asked by 27.12.2017 / 14:48
0
answers

Misuse of function or logic poorly implemented?

I'm developing an application for lotteries and wrote a function for dozens unfolding. It gets a array() containing N tens and unfolds them in all possible combinations. For example, for the array: $dezenas = array('1','2','3','4',...
asked by 24.12.2017 / 15:09
1
answer

Add Wordpress Filter

I'm trying to add a wordpress filter to the posting area: AndIwantedtoseeonlypoststhathavethisfunctionapplied:functionag_display_custom_meta_box($post){wp_nonce_field('ag_featured_custom_box','ag_featured_custom_box_nonce');$stored=get_post_...
asked by 28.12.2017 / 14:51
1
answer

Only uppercase and lowercase letters and accents in regular expressions [duplicate]

How to create a regular expression in the right way where it accepts only uppercase and lowercase letters, along with accents? This is to validate a string name, I created it as follows: $String = preg_replace("/([^a-zà-úA-ZÀ-Ú ])...
asked by 24.12.2017 / 07:10
0
answers

Sending Push arriving frantically or not arriving

I have a system that sends push notifications to devices that have an application installed. Specifically in iOS is arriving several times (30 and more) the same push. On Android the following error is occurring: https://fcm.googleapis.com/...
asked by 03.10.2017 / 13:34
2
answers

List Tree Categories in Laravel 5.1

I'm starting with Laravel 5.1 and I'm a bit lost yet. I need to list categories, subcategories and "sub-subcategories". Table: Categorias ------------------------ id | int nome | varchar categoria_pai | int Data:...
asked by 11.08.2015 / 19:53
1
answer

CORS related problem [closed]

In recent days I had a problem with the contact form on my site, the error in question is CORS. Well, so far so good, is a problem that surely many of you must have passed. The problem in question is that until sometime ago it was working perfec...
asked by 12.10.2017 / 19:05