Posts by Marcos Grzeça • 46 points
4 posts
-
1
votes1
answer40
viewsA: Insert only if date is not duplicated - Python
Create a unique key: CREATE TABLE faltantes ( UNIQUE KEY(nome,data) );
-
0
votes1
answer157
viewsA: Print document to printer without user interaction
Not possible using Javascript and PHP only. In Firefox, there is a forever print configuration when invoked the window.print() method. - Access about:config - Create a new Boolean preference with…
-
0
votes1
answer46
viewsA: What is the advantage of having a single instance when using the Singleton standard in web development?
The Singleton standard helps increase system performance in a web application, especially in connections to external databases or sources. Instead of creating a connection each time with the…
-
2
votes2
answers903
viewsA: How to force the download of an AWS Bucket S3 object with PHP?
Unfortunately there is no parameter to force the download. What you can do is: Create your own url, for example, download.php, capture the Amazon object and use source code similar to the one below…