Posts by Francisco Cabral • 685 points
15 posts
-
2
votes1
answer76
viewsA: How to use regular expressions?
To use quotation marks on a Regex, you need to use the backslash ( ). I mean, your regex would look like this: (\"PROXY_IP\":\"\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3}\") There are some very good teaching…
-
0
votes2
answers847
viewsA: Nginx does not import phpmyadmin database: "413 Request Entity Too Large"
It is necessary to make changes to the file php.ini upload_max_filesize = <Tamanho Desejado>M Then change the server settings in Nginx. In the file /etc/nginx/conf.d/default.conf or your…
-
0
votes1
answer602
viewsA: Button event in Yii Framework
Initially, you are using a Framework MVC, then take care of direct access to the database on your controller. That said, we can continue. To make your button perform a controller action, you can use…
-
0
votes2
answers1001
viewsA: Find file on server
As the function shell_exec() is very dangerous to the system, here is another function that can solve your problem. For PHP documentation, you can use the command copy(), that it will copy a source…
-
0
votes2
answers480
viewsA: Load checkbox from select
Using jQuery, since it was pointed out that the use of it: <script> $("#div_personalizar").hide(); $('#categorias').change(function(){ var valor = $(this).val(); if(valor){ if(valor == 1 ||…
-
0
votes0
answers596
viewsQ: Error 500 (Internal Server Error) while uploading
While trying to upload a txt file, I am receiving the erro 500. I gave one # chmod -R 777 import to release all permissions. ls -l from the folder where I am trying to save the file: drwxrwxrwx 2…
-
2
votes1
answer5224
viewsQ: Default Timestamp Mysql
How do I put the field value by default timestamp current? Precise alterar my table to add a field timestamp not null that has by default the current, with this I need all previous registrations to…
-
1
votes3
answers1715
viewsA: Create a Trigger that runs whenever a product is deleted
Here is the specification of the creation of the Trigger that you want. This is basically Trigger’s code: DELIMITER // CREATE TRIGGER minhaTrigger BEFORE DELETE ON minhaTabela FOR EACH ROW BEGIN…
-
2
votes1
answer1385
viewsA: How to Make URL Friendly
Amendments made to the config/main.php, you will need to change the settings on the server Nginx. In the archive /etc/nginx/conf.d/default.conf or your server file in the folder…
-
3
votes1
answer4182
viewsA: Get File Size in Bytes in Java Script
Internet Explorer 8 does not support Multiple Files. Only IE 10 on accepts. Documentation. That is why you are giving error when trying to access the position 0. No way to grab, using javascript…
-
1
votes1
answer1385
viewsQ: How to Make URL Friendly
I’m using the Framework Yii and need to create URLs friendly. Example of URL: http://meudominio.com/meuControle/minhaView Which is equivalent to:…
-
28
votes1
answer19729
viewsA: Sending Files on Nginx Error "413 Request Entity Too Large"
It is necessary to make changes to the file php.ini upload_max_filesize = <Tamanho Desejado>M Then change the server settings in Nginx. In the file /etc/nginx/conf.d/default.conf or your…
-
10
votes1
answer19729
viewsQ: Sending Files on Nginx Error "413 Request Entity Too Large"
I’m trying to send a file from 2MB using Nginx, but I keep receiving the 413 arquivo muito grande. Version: Nginx/1.4.6 OS: Ubuntu 14.04 LTS
-
0
votes3
answers306
viewsA: Yii authentication via user module
You can create both, and put an FK on your client by directing to the extension login. It’s not very nice to create a one-to-one relationship, but it solves your problems. When the user logs in,…
yiianswered Francisco Cabral 685 -
2
votes2
answers834
viewsA: Getting data between 3 tables in Yii , cgridview
From what I understand you want to put in the CGridView information from a third table. From what I noticed you have a relationship N to N amid Veículos and Rotas. According to the reference (in…
yiianswered Francisco Cabral 685