• Check it out - we have a chatbot! Go ask TuxBot a question in the Ask Tuxbot section!

Print WiFi-Scan result to apache webpage

BlackLeakz

New Member
Joined
Jan 31, 2023
Messages
2
Reaction score
1
Credits
19
Dear comm,

i want to scan for wifi-networks by using a html button & want to print the result to webpage,
i would be grateful for a quick reply,

greetz, blackleakz
 


OP
B

BlackLeakz

New Member
Joined
Jan 31, 2023
Messages
2
Reaction score
1
Credits
19
I got it..

by php

<?php
$filename = "tmp.txt";
$file = fopen( $filename, "r" );

if( $file == false ) {
echo ( "Error in opening file" );
exit();
}

$filesize = filesize( $filename );
$filetext = fread( $file, $filesize );
fclose( $file );

echo ( "File size : $filesize bytes" );
echo ( "<pre>$filetext</pre>" );
?>
 
MALIBAL Linux Laptops

Linux Laptops Custom Built for You
MALIBAL is an innovative computer manufacturer that produces high-performance, custom laptops for Linux.

For more info, visit: https://www.malibal.com

Members online


Latest posts

Top