Posts by Rose • 775 points
31 posts
-
-4
votes1
answer90
viewsQ: How to prevent index.php main file from being deleted?
php admin.: $file = $_GET['apagar']; if (!unlink($file)) { echo ("arquivo nao encontrado"); } else { echo ("arquivo deletado"); } <script>function del(){return…
-
-2
votes3
answers923
viewsQ: Focus item on Listbox with Delphi
The following code only works if you type the full string, I would like to modify the code to also focus on the listbox when part of the text is typed autocomplete style procedure…
-
0
votes1
answer93
viewsQ: How to ignore a specific file in directory?
The code below counts all files in my directory, but I want to ignore the file index.php $i=0; foreach (glob ("*.*") as $file){ $a[$i] = $file; $i++; } echo count($a);…
-
0
votes1
answer1721
viewsQ: How to find private bitcoin address key?
How do I get the private key from the data below? KEY PUBLIC: 04f2327c57013916e94041ee3ee6f7fcb3dd9cc92c1b7900f51ddfa277eac6b1e175d825d8ce295502cee0f912a18c15cdf2051a16b1d658c64d3b4b3aa4536cf5…
-
0
votes2
answers111
viewsQ: Javascript regular expression does not work within the form tag
function celular(){var celular=document.getElementById("celular").value; var ExpReg = /^[0-9]{11}$/; if(ExpReg.test(celular)){ alert("Sim passou no teste."); return…
-
3
votes2
answers865
viewsQ: How to view image without an extension via direct link in the browser?
Example - http://meusite/imagem/001 Result I do not want, I want to view the image. ÿØÿà�JFIF��H�H��ÿÛ�C� ÿÛ�C ÿÀ�p�"�ÿÄ������������…
-
2
votes1
answer212
viewsQ: Grab file name that does not have extension using foreach (glob())
How to Get Only Files without Extension? examples 1bdfe4baf9061c3667ded70d8f66142c 2a0daf2d8d5b7ea1813c7a84b146d092 91e3b288eab8d59598a52221296f8995 $f=glob("*"); foreach ($f as $arquivo) { echo…
-
-2
votes1
answer169
viewsQ: Rename file after 1 minute
How can I rename the file after 1 minute? The idea is to rename the file when the song is over. Part of my code: echo'<embed src="arquivo.mp3" width="1" height="1"…
-
-1
votes1
answer863
viewsQ: How to display an image with file_get_contents
I want to display the image after deleting from the server, also do not know if this is the way to go. I tried it, unsuccessfully: if (file_exists('carro.jpg')) { $imagem =…
-
0
votes1
answer54
viewsQ: Page does not load on screen size
I want to change the code to open the screen size. I am using: import flash.geom.Rectangle; import flash.media.StageWebView; var webView:StageWebView = new StageWebView(); webView.stage =…
-
0
votes1
answer207
viewsQ: Value coding format (input)
Problem: I am passing the value of an input to a frame but the encoding format is not as it should be - charset=ISO-8859-1 Trying that: <meta http-equiv="Content-Type" content="text/html;…
-
0
votes3
answers114
viewsQ: "content: attr" does not validate in W3C
How to resolve this error on the line table td:before {content: attr(db); which makes it worthless in the W3C? <!DOCTYPE html> <style type="text/css"> table {width:100%; border-collapse:…
-
13
votes2
answers8777
viewsQ: Delete Javascript and Render Lock CSS?
Analyzing link in Pagespeed occurred the following warning Delete Javascript and CSS from blocking rendering content above the edge Basic layout <!DOCTYPE html> <html lang=pt-br>…
-
7
votes2
answers813
viewsQ: How to prevent the page from opening outside an iframe?
Cannot open link in iframe if (self != top) { top.location.replace(window.location.href) } I need something in javascript that is contrary to this. I want my URL to work only within an iframe…
-
2
votes1
answer92
viewsQ: Is it possible to use Setoutputfilter DEFLATE without caching copy?
I know that the SetOutputFilter DEFLATE has the function of compressing the file to be received by the browser. I used this in my . htaccess to reduce file load time data.js <FilesMatch…
-
-1
votes2
answers77
viewsQ: Does not redirect in Firefox
The following code is not working in Firefox. <script> function go(){ document.write('<p align="center">AGUARDE O ENCERRAMENTO...</p>'); } setInterval("go();", 3000);…
-
2
votes0
answers704
viewsQ: How to obtain data from the IRS?
On the website cadastral situation it is possible to consult CPF/CNPJ without going through captcha, also does not ask for date of birth. As this is possible?…
-
3
votes1
answer3316
viewsQ: Validate CPF with date of birth
On the site R7 in the part of e-mail registration a validation is made in the number of the CPF that is related to the date of birth how to do something similar in my form? I took a look at the code…
-
1
votes1
answer4198
viewsQ: How to call a file in Node.js
I want to know what I call a.js file if anyone can explain step by step thank you. As far as I understand to call an external file I have to create a kind of package that proceeds?
-
2
votes2
answers81
viewsQ: Does page title and random post affect position in search results?
I have a theme with a single page and several updates are made per day on this page including the title, wanted to be well placed in search results know that there are several techniques for it... I…
-
6
votes3
answers6367
viewsQ: How to disable Developer Tools options in Chrome
Supposedly Facebook uses a code similar to the one on the link http://snapbuilder.com/code_snippets/snippet.php?sid=174&printable=1 to disable and put a warning to your users. Since the above…
-
0
votes2
answers1226
viewsQ: Put pointer on second line to write?
Writing a text in the file $fn = fopen('teste.txt', 'a'); fwrite($fn, '-meu texto aqui'); fclose($fn); Reading the second line of the file $fn = "teste.txt"; $nr_linha = 1; $f_contents = file ($fn);…
-
1
votes1
answer509
viewsQ: Take combobox selectedIndex and switch to input?
In the following example I take the value of the description in Alert; I need to take this text from the drop-down box in the value of an input field... how to adapt this? I have to send this…
javascriptasked Rose 775 -
1
votes1
answer563
viewsQ: How to check if a name is in the database?
I want to check if a name exists in the database; if there is no registration. Using the code below I can register several users with the same name. php. $user = $_POST['user']; $pass =…
-
1
votes1
answer201
viewsQ: How do I limit sending data from a form?
I want to prevent a user sending data more than 5 times a day; I have no way to use database would have to be written to a file txt.
-
0
votes1
answer11355
viewsQ: Is there any way to check if a cell phone number is valid?
I searched search sites and couldn’t find anything that could help; I needed to prevent residential numbers from being typed in the input the ideal would be to use only javascript for this.
-
1
votes2
answers1688
viewsQ: Handling $_GET with line break
I’m using the GD Library, I have the code below and I want to put a line break $texto = "primeira linha\nsegunda linha";, but it needs to go through $get. What I mean by go through $get is that if…
-
3
votes3
answers3185
viewsQ: How to create random audio playlist?
I need something like this function next() { Url = new Array; Url[0] = "/mp3/001.mp3"; Url[1] = "/mp3/002.mp3"; Url[2] = "/mp3/003.mp3"; Url[3] = "/mp3/004.mp3"; Link = Math.floor(Math.random() *…
-
11
votes12
answers5446
viewsQ: How to remove accent in upload with php?
Part of the file is working. The problem is that when I send a file with accent. Example: send a file with the name ação-íaaa.jpg it looks like this on the server ação-Ãaaa.jpg. So I wanted to…
-
2
votes1
answer672
viewsQ: How to use regular expression in input?
I would like to put in the input onkeyup an expression using html or js an example onkeyup='this.value=this.value.replace(/[^0-9]*/g,"")' this only accepts numbers I want to adapt this…
-
10
votes2
answers4983
viewsQ: How do I let the bottom of the page degrade with Javascript?
It would be something like the image below; I have no idea how to do this. I don’t want to use image, I want to generate with code.…