Posts by Tiago Boeing • 830 points
37 posts
-
1
votes1
answer450
viewsA: Array using useState React.Js Hooks
I made a test in the Codesandbox and apparently it worked, I’m assuming that useEffect is executed only once, with useEffect(() => {}, []). Note to the [] (empty array) as second parameter. I…
-
1
votes1
answer526
viewsA: Receive and treat JSON with PHP
Deducting by print_r which is PHP you are using to get the JSON object... This question was answered in the Stack in English: https://stackoverflow.com/questions/15617512/get-json-object-from-url…
-
1
votes1
answer38
viewsA: Redirect requests with . htaccess
I was able to resolve the issue some time ago, just to offer feedback to the community, follows content from .htaccess: RewriteEngine on RewriteCond %{HTTP_HOST} ^midia\.oregionalsul\.com\.br$ [OR]…
-
3
votes4
answers238
viewsA: Variable feed within variable
I’ll risk an adaptation of the code that may be what you wish. Following the line of Netinho’s reply, I believe I can fix it. If this is it, the credits are from Netinho, because I just adapted his…
-
3
votes1
answer549
viewsQ: Make iframe content responsive (Google DFP)
So I’m having a rather complex problem. Knowing that it is not possible to style with CSS the content of a <iframe>, I know no other way to achieve the desired goal. I even tried with…
-
1
votes1
answer38
viewsQ: Redirect requests with . htaccess
I urgently need a simple and practical way to redirect via . htaccess preferably to an alternate domain of a website. This practice is to adopt SEO measures, since there are several media already…
-
1
votes1
answer417
viewsA: Animated Banner with Google Web Design
Addressing your issue in general terms of front-end development and leaving aside a little the possibilities of the Google Web Design tool. There are several ways to include your page…
-
8
votes2
answers5712
viewsQ: "Search refused" in Registro.br
I’m trying to direct my domain to the nameservers I just set up on Amazon’s Route53 AWS. They work correctly, but I believe they are not responding for other domains besides the root…
-
4
votes2
answers1248
viewsA: Sum values returned from while
You can do VALOR_TOTAL directly via SQL and nicknamed a field, in which case your query would look like this: SELECT id, idJob, pagoA, SUM(valor) AS valorTotal FROM comisao_trabalho WHERE idJob="10"…
-
0
votes1
answer38
viewsA: AWS Route53 white label configuration
I solved the problem alone, I asked two questions because both are isolated topics, but the form of resolution is the same. I answered in my other question that was a problem after this…
-
0
votes1
answer207
viewsA: Nameserver problem: "Missing nameservers reported by Parent"
As this question received no answers, he informed that I was able to solve the problem alone. I share here my solution to other people who are going through the same situation. Problem: "Missing…
-
1
votes1
answer207
viewsQ: Nameserver problem: "Missing nameservers reported by Parent"
I am using Amazon AWS with Route53 tool to manage my DNS zone records. I was able to configure the nameservers listing and their response in ping requests, but when performing a Intodns I come…
-
0
votes1
answer38
viewsQ: AWS Route53 white label configuration
Someone who knows Amazon AWS and has used Route53 knows the right way to set up their own nameservers in the tool? Ex.: ns1.meudominio.com; ns2.meudominio.com; ns3; ns4... etc I followed all the…
-
1
votes2
answers2267
viewsA: Install Image Magick (Imagick)
Issue resolved based on topic (in English): https://stackoverflow.com/a/26265214 Remember that the files should be overwritten where Imagemagick was installed and then the DLL called in php.ini…
-
4
votes2
answers2267
viewsQ: Install Image Magick (Imagick)
I have a local web server that uses Windows Server 2008 R2, IIS7 is the web services manager. I installed an application that needs to convert PDF to JPG, but for this I need the Imagick is…
-
0
votes1
answer851
viewsA: Problems with IIS Windows Server
Follow these steps to solve the problem: Go on the Server Manager type to search in the start menu. Open the tab: Functions >> Remove functions and remove all IIS/Web Server related functions.…
-
1
votes4
answers3752
viewsA: Error inserting Object of class Pdostatement database could not be converted to string
Try something this way since you just want to register. $cnpj = "000001"; $sth = $lokos->prepare("INSERT INTO CLENTES (CNPJ) VALUES (?)"); $sth->execute(array($cnpj)); Remembering that your…
phpanswered Tiago Boeing 830 -
0
votes1
answer214
viewsA: Does nothing when trying to open popup
Popups jQuery Mobile <link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css" /> <script…
-
0
votes1
answer851
viewsQ: Problems with IIS Windows Server
I posted on the other site of the Stackexchange network (Superuser) in English, asking for help on my problem, but no one could solve it. I don’t know if I can post this kind of question here, but…
-
1
votes2
answers372
viewsQ: PHP in_array() function
I’m developing a system that takes the ID’s from categories that are stored in the database, separated by ,, am using explode, turning them into a arrayand soon after I’m using the function…
-
4
votes2
answers1687
viewsA: PHP mail() function
I was able to solve my problem through PHP Mailer. First of all you should download PHP Mailer and unzip it inside your project folder, then don’t forget to include it in your file. php <?php…
-
4
votes2
answers1687
viewsQ: PHP mail() function
I am trying to send an email via PHP with HTML attributes, an email formatted with images and style="" or classes. I tried to use Phpmailer, but without success, so I resorted to the mail() function…
-
1
votes1
answer130
viewsQ: Portfolio organization by categories
Analyzing the MODEL, would like some simple suggestion to classify these blocks by categories dynamically with the same existing effects. I have a table that saves the "product" id and the…
-
-3
votes1
answer1783
viewsQ: Solution for while in HTML structure
Someone has a simple solution to loop while in PHP to the following HTML structure? Basically I want every 3 Ivs to have one <li> separating them so that the slide can function properly, since…
-
2
votes3
answers10283
viewsA: Rename image name uploaded
Adaptation to the class: Way to Solve Extension Related Problem. $nomeimagem = $_FILES['imagemupload']['name']; $ext = strrchr($nomeimagem, '.'); $imagem = time().uniqid(md5()).$ext; File name:…
-
0
votes3
answers10283
viewsQ: Rename image name uploaded
I’m using the resize-class to upload images, resize and other options if necessary. My only problem is that I want to rename the image when uploading, so that there are no images with the same name…
-
4
votes1
answer640
viewsQ: Filter certain elements of an XML
I have the following weather forecast report generated by a third-party API: http://api.openweathermap.org/data/2.5/forecast?q=qTubar%C3%A3o,br&mode=xml If you repair the structure well we have…
-
1
votes3
answers146
viewsQ: Handle single while record
Considering that I am developing a small ranking of simple classification (photo), I need a solution to take the first 3 records of select and apply an individual formatting to them, the others…
-
3
votes2
answers1674
viewsQ: Retrieve XML report data in PHP
I have the following report in the XML link: http://api.openweathermap.org/data/2.5/weather?q=qArmaz%C3%A9m,Br&mode=xml I would just like to treat it in a very simple way, I tried using…
-
0
votes3
answers7057
viewsA: System of infinite categories and subcategories/children
I thank @bfavaretto for the reply that also helped a lot and made me replay the project for being simpler, but I want to share here also the way I had previously solved to receive the answers. In my…
-
7
votes3
answers7057
viewsQ: System of infinite categories and subcategories/children
I’m putting together a system of infinite categories and subcategories, simple to begin with. I found a script on the internet that meets the requirements, but its customization and adaptation to my…
-
-2
votes5
answers5103
viewsA: Mail() function does not send email
I posted the script in a file . rar on Google Drive for you to download. I always use on my websites this script that has validation and check server output (SMTP) to prevent your email from failing…
-
9
votes9
answers37388
viewsA: What should I use in CSS, id, or class?
You can use ID’s for unique parts of the structure of your layout, such as: header, footer, top, menu. However, if you want to use the ID #header for example repeatedly on the page will not be…
-
1
votes3
answers5038
viewsA: Upload Images with PHP - Mysql
I like to use a php class to upload and at the same time resize the image. See if this example is for you. Specifications: Generates thumbnails (in this example one with 640px proportional width)…
-
1
votes5
answers1314
viewsA: PHP connection problem with Mysql
$hostnome = '192.185.176.204'; $usernome = 'tookc892'; $senha = '***'; $dbname = 'nome_banco'; $conexao = mysql_connect("$hostnome", "$usernome", "$senha"); $sel_banco = mysql_select_db("$dbname");…
-
2
votes2
answers24272
viewsA: How to resolve "Cannot Modify header information - headers already sent by" error in PHP?
It depends, if you are editing with Dreamweaver it adds to your files at the time of saving an option called GOOD ENCODING (something of the type), this prevents your scripts in PHP run properly…
-
4
votes8
answers1132
viewsQ: Can you use a variable above when it is declared below?
I have some includes on a PHP page, with inclusion of other pages for user friendly URL, etc. I thought of using Global variables and even constant, but it’s not working. Does anyone know if there…
phpasked Tiago Boeing 830