Posts by Junior • 437 points
6 posts
-
2
votes2
answers465
viewsQ: Is there an alternative to the PHP mysql_connect command?
Everything was working fine until apparently the Nginx installation said my command mysql_connect had the following problem: Warning: mysql_connect() [Function.mysql-connect]: Headers and client…
-
3
votes2
answers181
viewsA: Why does date_diff count my date range wrong?
Just adding the reply from @Kaminary, which was super useful for my system, in the sense that I could fix this bug easily by putting the: $meuTimeZone = new DateTimeZone('America/Sao_Paulo'); Just…
-
7
votes2
answers181
viewsQ: Why does date_diff count my date range wrong?
In that code of mine: date_default_timezone_set('America/Sao_Paulo'); $DataEntrada = new DateTime('19-10-2014');//data no formato d-m-Y $DataSaida = new DateTime('21-10-2014'); $interval =…
-
8
votes2
answers198
viewsQ: What main precautions should I keep in mind for my application to work properly in different browsers?
I program small systems using xhtml, ajax and php. When I mount the code I test the parts in Chrome developer tool (Ctr+I) and in phptester.net. When I finish my application I have to debug…
-
10
votes1
answer1380
viewsQ: Is it good practice not to close the . php file with ? > after an XHR call made from a . html file?
Should I close the PHP tag <?php with the ?>? A friend with more experience recommended me not to close saying that it was a "good programming practice", I never understood why, but I follow…
-
2
votes2
answers1442
viewsA: HTTP requests in C++
You are looking to integrate a code system into different languages. An option for integration of legacy systems is CORBA (Common Object Request Broker Architecture). It is basically a standard for…