Posts by jcbrtl • 541 points
11 posts
-
0
votes2
answers57
viewsA: Loop(repeat) HTML/PHP
Use the printf in a loop for: <?php for ($i=0;$i<count($nova);$i++) { printf('<a href="https://www.comprasnet.gov.br/pregao/fornec/Acompanhar1.asp?prgCod=%s&pagina=1&botao=T"…
-
3
votes1
answer214
viewsA: Checking crashed tables in Mysql with PHP
There is the program mysqlcheck for this task. For example, to search for errors in tables of all databases (check in, or -c, is the default operation and can be omitted): $ mysqlcheck -u usuario -p…
-
0
votes2
answers150
viewsA: Mysql problems connecting to a python database
Is the user configured correctly? Try to reset his password. I will leave here a reference that can be useful to you. Accessing the system as root: If you have root access: Start a customer (with…
-
1
votes1
answer262
viewsA: Command to open the terminal in a specified folder
Assuming your script is sh file., if you rotate $ ./arquivo.sh the contents will be executed in a new shell, in which there is also a $PWD variable with the current directory of the script. When…
-
2
votes1
answer400
viewsA: Exporting html to PDF with html2pdf background-size does not work
Edition in 4/7/19. The implementation https://github.com/spipu/html2pdf, in fact, practically ignores the property background-size, and that’s not their first problem with CSS. You can contribute to…
-
0
votes2
answers983
viewsA: How to force dowload a pdf?
See the attribute download of HTML element a: <a href="pdfs/regulamento_interno_do_alojamento_ibc.pdf" download>Descarregue o regulamento</a> I recommend generating a link valid for user…
-
13
votes1
answer794
viewsA: Permission PHP file
The most important thing, generally, is not to set up unnecessary possession and permissions for the functioning of the cron on your operating system. Use the minimum privilege principle. For…
-
1
votes1
answer46
viewsA: Text not inserting line break
Unless the text in the database is already marked with HTML, you will have this "casing" on the screen. If you want to display the text in its original spacing and line layout, even if it is not…
-
0
votes3
answers1353
viewsA: File link for viewing / downloading / printing
The following is a possible example to print a file (yes! -- it can be .pdf, .jpg, etc.; externalPage.html, in this case), extracted from MDN: <!doctype html> <html> <head>…
-
5
votes2
answers1586
viewsA: Is it good practice to have all sizes of favicons, and include all rel links in HTML?
it is even a good practice to include all these images in the / and all these Rels and meta links in the HTML code of all pages of the site At the main favicon, it is better for compatibility…
-
2
votes2
answers1359
viewsA: Should I commit my virtualenv to Github?
In general, do not upload dependency content that can easily be downloaded. Try to write a README.Md clarifying, describing the procedures for obtaining the modules on which the program depends, its…