Posts by Lucas C.S • 357 points
11 posts
-
1
votes1
answer51
viewsQ: Fill meta Description via javascript Google interprets the code?
I have a JSON {"content":{"description":"Descrição do meu site"}} I wanted to fill the meta name Description via javascript <meta name="description" content="" /> I wonder if Google will read…
-
3
votes2
answers61
viewsQ: Doubt about decrement operator
I have these 2 lines in my function, but what would be the line below? $idade--; Only Return wouldn’t be the same? $idade--; return $idade; I just wanted to understand what this line would be for. I…
-
3
votes3
answers1722
viewsQ: In PHP, does date() take server or user time?
I have a question about date, it takes the time from the server where my site is located or the machine the user is accessing? I’m taking a look at the PHP Manual but I couldn’t figure out which…
-
2
votes2
answers672
viewsA: PHP include problem with characters
Place in the COLLATE of the utf8_unicode_ci database In the database connection script you put this header('Content-Type: text/html; charset=utf-8'); mysql_query("SET NAMES 'utf8'");…
-
0
votes0
answers39
viewsQ: Special Characters
I wonder how I can make to use special characters like ", when I insert one of these in my database it changes to "?" Any hints on how I can do this ? I have no idea about it
-
0
votes1
answer320
viewsQ: Problems in accent display with htmlspecialchars
<?php echo htmlspecialchars ( $exibe_nome [ "nome" ] , ENT_QUOTES , 'UTF-8' ) ; ?> Words that exist in my database with example accent ( No ) are not displayed in my echo if I remove…
-
16
votes4
answers8313
viewsQ: Is using addslashes against SQL injection safe?
Use the addslashes() is it really safe against SQL injection? If not, tell me why. I’ll wear mine like this addslashes() <?php $id = addslashes ( $_GET ["id"] ) ; /* Adicionei as barras */ echo…
-
0
votes4
answers1237
views -
5
votes2
answers2845
viewsQ: @CSS font-face installs the font on the computer or just uses it on the website?
I was told that when I use @font-face on a page and someone accesses it, the operating system downloads and installs the source. It happens that I noticed the following: when creating a file with…
-
1
votes2
answers470
viewsQ: Analysis on AJAX code
I found this code, which is like a Long Polling, and wanted to know if I might have trouble using it. And I also wanted to know the cons of that code if I were to use it. pagina.html => page that…
-
0
votes2
answers225
viewsQ: Transform code to Eval()
I wanted to transform this code to Eval(), because it ta reading only the files like data.php html and php scripts not. // arquivo cujo conteúdo será enviado ao cliente $dataFileName = 'data.php';…