Questions tagged as 'php'

1
answer

Configure PHP INI to load default PHP file

How do I configure php.ini to load a PHP file that contains some generic functions where I use all my root projects? I read something about include_path , but I did not understand it and I believe it does not suppress what I need!     
asked by 21.01.2015 / 12:05
1
answer

How to give line break in an XML Feed according to page width?

I have a table with 15 items and must be done to break the columns when the total size of the items reach the full width of the table. Ex: What's happening: |--- WIDTH 300px ---| 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 What do I...
asked by 14.10.2015 / 18:17
1
answer

Print form with: 1.photo uploaded in post 2. id auto increment generated in form insert. In PHP has it?

At the moment of registering the form, the user will put the photo, so that's fine. My problem is that I need to print this form already with the photo and the id auto increment of the bank. The idea was to register the data 60 fields...
asked by 10.08.2015 / 03:46
2
answers

Problem with accentuation in .js after concat and uglify in Gulp

I'm trying to optimize the website of the organ where I work and I'm having problems after concatenating and minifying the javascripts. Our Apache server uses ISO-8859-1 and all of my files in PHPStorm are configured on the same charset. A...
asked by 10.08.2015 / 16:26
1
answer

What tools do you use to create web games? [closed]

I would like your help on the following questions: 1. What is the best option for web game development? 2. HTML5 with Canvas, Javascript and PHP? What do you think of this combination? 3. Is Python an option? I'm really unsure...
asked by 02.12.2015 / 19:25
1
answer

Validate if entry is actually CNPJ

I have a form and I need to block the CPF entry on this one. <div id="document" class="form-group"> <input type="text" name="document" class="form-control" placeholder="CNPJ da Empresa" /> <label for="document...
asked by 09.12.2015 / 19:12
1
answer

Error Object of class stdClass could not be converted to string

Well I'm with an 'X' object that one of its properties is a JSON. In this JSON it contains the column name and column value respectively. But I can have several 'X' objects, and so on. Today I'm doing it as follows: PHP: public function...
asked by 05.12.2015 / 17:14
2
answers

Save array of images in different columns

Good evening. I would like to count on your help in solving a problem that has been grinding my molecule for a few days and I still can not find a solution. I have the following code to send to the 4-photo server: if(isset($_POST['su...
asked by 11.12.2015 / 05:11
2
answers

Sanitize email address

Assuming the following email address: $email = "zuúl@ so.pt"; I tried to clean it using: filter_var($email, FILTER_SANITIZE_EMAIL); // [email protected] I've also tried: preg_replace('/[[:punct:]]/', '', $email); // zuúl sopt The idea is...
asked by 21.10.2014 / 15:03
1
answer

Get value of the week that will start a month

I want to get the value of the week, which will start a certain month. It works for the current month, but I want it for the remaining months. This is the code I used to calculate, what day is today. $day = date("d"); $numjour = date("N",time(...
asked by 28.11.2014 / 16:16