Posts by Ismael Miguel • 316 points
4 posts
-
2
votes0
answers45
viewsQ: PHP syntax Highlighter - DOM object does not update HTML
I’ve been developing a code to do syntax Highlighting, but the code is failing to update HTML. The code is extensive, and unfortunately all of it is necessary. I have a main file called…
-
1
votes3
answers2472
viewsA: Generate single random value with php
A different way is to split the list of characters and use a lot of str_shuffle. Here’s an example: $id = 'A'.substr( str_shuffle( str_shuffle('ghijkl'). str_shuffle(6543). str_shuffle('ABCDEFGHI').…
-
1
votes4
answers941
viewsA: Time Sync() PHP and Javascript
Not much code required. In fact, with a line you can solve the problem at once: var time=new Date(<?=gmmktime()?>000) //Equivalente a <?php echo gmmktime();?> var time=new…
-
16
votes10
answers34548
viewsA: What is the difference between the == and === Javascript operators?
The operator == converts between types to check. One example is that true==1 and that false=='' will give both true, despite being comparisons of different data types. Using the operator ===, is…