Posts by Andrei • 143 points
12 posts
-
0
votes1
answer36
viewsQ: responsive image - showing a pixel line when you hover your mouse
I’m trying to adjust an image with an edge inside the table, but when resizing the window and passing the mouse a pixel line appears vertically on the right side of the image. I tried to fix…
-
0
votes2
answers73
viewsA: String handling - how to separate decimal number of text in the string?
That’s how it works <?php $host = 'localhost'; $execPing = shell_exec('ping -c 1 ' . $host); $vetExpl = explode("\n", $execPing); $locStr = array_keys(preg_grep('/time=/', $vetExpl))[0];…
-
1
votes2
answers73
viewsQ: String handling - how to separate decimal number of text in the string?
The algorithm below a ping on the host and does all the processing until you get the specific part I want that is the ping rate value <?php $host = 'www.google.com'; $execPing = shell_exec('ping…
-
-4
votes1
answer463
viewsQ: How to delete content from TXT file using PHP?
I am doing a php web project to monitor the network assets in my work I have a file named 'log.txt' at the root of my project which is fed with log information with date, time, ip etc. Line by line.…
-
1
votes1
answer517
viewsA: How to close responsive menu by clicking an item and changing the iframe in an html file?
I solved with this javascript function fechar() { var inputCheckbox = document.getElementById('bt_menu'); if (inputCheckbox.checked === true) { inputCheckbox.checked = false; } } Within the tags…
-
0
votes1
answer517
viewsQ: How to close responsive menu by clicking an item and changing the iframe in an html file?
I’m using a file index.html that on a wide screen appears all menu items, but when resized to a smaller screen (max-width: 640px), the menu bar becomes an icon where when clicked appears the menu…
-
5
votes2
answers1889
viewsQ: Script to select only a checkbox?
I have the following code with a menu like Menu Accordion: function marca() {} body {font-family: Trebuchet MS;margin: 0px;} nav {width: 100%;} p {font-size: 14px;text-align: justify;} .item label…
-
1
votes3
answers174
viewsQ: How do I use the same text in multiple HTML so that I can edit it using CSS?
I have several HTML (over 500 HTML) that will use the same title for everyone, for example: "2017 Projects" will be the title in the 500 files Then I will need to change the title to "Projects 2018"…
-
2
votes1
answer327
viewsQ: Javascript to close menu accordion
I have the following code: * { margin:0; padding: 0; border: 0; font-family: sans-serif; font-size:14px; list-style: none; text-decoration: none; } .nav a, .nav label { display: block; padding:…
-
3
votes2
answers675
viewsQ: Accordion menu with CSS opening more submenus inside a submenu
I know that to assemble a menu of the type accordion is like this: <html> <head> <style> .menu-sanfona li ul{ display:none; } .menu-sanfona li:focus ul{ display:block; }…
-
1
votes0
answers28
viewsQ: NMAP with PHP - Show NMAP output in table within browser
After scanning with NMAP, I am trying to create a table with the following columns: ITEM | PORTA | PROTOCOLO | ESTADO | SERVIÇO where for each column an NMAP result is: item: the vector index port:…
-
1
votes1
answer397
viewsQ: NMAP result using PHP - how to show the NMAP result in a table in the browser?
I am trying to make the output of nmap result appear in the browser in the form of a table. follow the code below: <?php $host = $_POST["host"]; $saida = shell_exec('nmap -P0 ' . $host);…