Questions tagged as 'php'

2
answers

Group keys in an array

How to group identical keys and values in an array? There may be N arrays inside the array, you can not add the same keys. For example: [attributes] => Array ( [0] => Array ( [title] => C...
asked by 16.09.2014 / 17:13
2
answers

Save the IP of the visitor in a text file, but how can I not save it again if it is already there and how to read it?

I used the answer to this question to save the IP in a text file: How to save the IP of who visited my site in a text file? This is what I want to create a "like" button for students to enjoy those they think are the best teachers. But...
asked by 11.09.2014 / 15:24
1
answer

Read Remote file through FTP with PHP

Hello, I would like your help to solve the following problem. And if possible help me understand what happens Code:      $FTP_HOST = "ftp.exemplo.com"; $FTP_USER = "usuario"; $FTP_PASS = "senha"; $cHandle = ftp_connect($FTP_HOST) or die("O...
asked by 31.07.2014 / 00:14
1
answer

Phalcon PHP installation

Hello, I'm trying to install Phalcon PHP Framework in XAMPP under Windows as per the tutorial of that link: link , but following the steps of the tutorial, after I put the Phalcon dll in the PHP extensions folder, when restarting Apache, it...
asked by 01.07.2014 / 15:53
1
answer

Problem with SQL query assembly

I have a table of "disciplines", a table of "students" and a table "students Disciplines", where these students can be enrolled in one or more subjects. These disciplines are shown as checkboxes on the search screen to serve as filters. Now I ne...
asked by 08.06.2014 / 20:53
1
answer

Edit url friendly user profile

Good I have the friendly url routes in the htacess file I am viewing the users by url so by the profile file link But I wanted to now edit the profile of this user that is another file edit_profile.php but I wanted the url to look lik...
asked by 14.02.2015 / 17:57
1
answer

image extension verification for uploading with php

Hello, I created a registration page where the user can insert a profile image, everything works normal, except when I check the file extension (I am new to php) and I use this algorithm: if(!preg_match("/^image\/(pjpeg|jpeg|png|gif|bmp)$/",...
asked by 16.02.2015 / 18:57
1
answer

How to handle a Fatal Error

How to get a fatal error so that it does not terminate the application? This should be limited to only part of the code (this will not risk the application)? Example: I would like all fatal error messages generated within this block not t...
asked by 10.02.2015 / 17:30
2
answers

WooCommerce register

Hello, I'm doing a project for an online store using Wordpress + WooCommerce. The problem is the following on the Checkout page, by default woocommerce adds several fill fields, such as: Address information, billing address record, delivery a...
asked by 11.01.2015 / 21:49
1
answer

Problem with filters and routes in laravel

Hi. I'm creating an api in laravel. And I have a problem with the routes and filters for access. I have the levels of client, operator and administrator. I have routes that are common for client, operator and administrator, I have routes f...
asked by 15.01.2015 / 22:44