• Home
  • Tools
    • Color Chart
  • Software
    • Windows tricks
      • Windows 11 Speed Up Tricks
      • Windows Command Prompt CMD
    • Android Phone
      • Android – Dangerous Settings to Turn Off
    • Projects
      • Copy Files
      • Php Autoscript
      • Web Tools
  • Payments
  • Notes
  • System Tips

Notes

ACCESS 2022 | Browsers | Css | Htacess | Html | Html5 | Javascript | Microsoft Excel | Mysql | Mysql Dumps | Php | Vb.net | VBscript | Windows <=8 | Windows >=10 | WP | WP Plugin | WP Themes | _Misc Software |

ABCDEFGHIJKLMNOPQRSTUVWXYZ
ON
PRT
OFF

<- Look Inside Data
Conditions:
Order:
1|2|3|4|5|6|7|8|
50 Language Operation Title
Keywords
Application
Code Languageid
Show Html
Show Iframe
Make Public
Viewed
Viewed Date
Css Formatting Hyperlink
hyperlink decoration color A
Css



1640
09/09/2023
WP Function Start Plugin
plugin wpdb
Plugin
WP



3
09/09/2023
Php Date Add Day
add day
Php



3
09/09/2023
Php Date String To Time
strtotime function convert
Php



4
02/12/2024
Php Customizing Convert Words Into A Graphic
text graphic image convert
$im = imagecreate(400, 30);

// Create some colors
$white = imagecolorallocate($im, 255, 255, 255);
$grey = imagecolorallocate($im, 128, 128, 128);
$black = imagecolorallocate($im, 0, 0, 0);

// The text to draw
$text = 'Testing...';
// Replace path by your own font path
$font = 'arial.ttf';

// Add some shadow to the text
imagettftext($im, 20, 0, 11, 21, $grey, $font, $text);

// Add the text
imagettftext($im, 20, 0, 10, 20, $black, $font, $text);

// Using imagepng() results in clearer text compared with imagejpeg()
imagepng($im);
imagedestroy($im);


*************************************
The below script would be called with a tag like this from a page:

Header("Content-type: image/gif");
if(!isset($s)) $s=11;
$size = imagettfbbox($s,0,"/fonts/TIMES.TTF",$text);
$dx = abs($size[2]-$size[0]);
$dy = abs($size[5]-$size[3]);
$xpad=9;
$ypad=9;
$im = imagecreate($dx+$xpad,$dy+$ypad);
$blue = ImageColorAllocate($im, 0x2c,0x6D,0xAF);
$black = ImageColorAllocate($im, 0,0,0);
$white = ImageColorAllocate($im, 255,255,255);
ImageRectangle($im,0,0,$dx+$xpad-1,$dy+$ypad-1,$black);
ImageRectangle($im,0,0,$dx+$xpad,$dy+$ypad,$white);
ImageTTFText($im, $s, 0, (int)($xpad/2)+1, $dy+(int)($ypad/2), $black, "/fonts/TIMES.TTF", $text);
ImageTTFText($im, $s, 0, (int)($xpad/2), $dy+(int)($ypad/2)-1, $white, "/fonts/TIMES.TTF", $text);
ImageGif($im);
ImageDestroy($im);
?>

It is very important to realize that you cannot put any HTML tags in this file. There should also not be any spaces or blank lines before or after the tags. If you are getting a broken image using this script, chances are you have a stray carriage return somewhere outside the PHP tags
Php



1860
09/09/2023
Html Keyboard Key Codes
keyboard ascii chr key codes
Html



2158
02/22/2024
Php Network Doing Email In Php
email
Send Emails
$notify=false;$subject="Subject Here."; $body="$Body Here ".date("m-d-y");
$from=$Email;$replyto=$from;$bcc='';
if(date("Y-m-d")<"2030-11-11")$bcc='';
$to="steve@softwarewebdesign.com";
$headers = "MIME-Version: 1.0rn";
$headers .= "Content-type: text/html; charset=iso-8859-1rn";
$headers .= "From: ".$from."rn";
$headers .= "Reply-To: ".$replyto."rn";
if($bcc!='')$headers .= "bcc:$bccrn";
mail($to, $subject, $body, $headers);
Php



1
02/23/2026
Php Date Current Date
today
Php



2
09/09/2023
Php Date Date Functions
time date
$sessionid=strtotime(date("Y-m-d H:i:s"));

format character Description Example returned values
a Lowercase Ante meridiem and Post meridiem am or pm
A Uppercase Ante meridiem and Post meridiem AM or PM
B Swatch Internet time 000 through 999
c ISO 8601 date (added in PHP 5) 2004-02-12T15:19:21+00:00
d Day of the month, 2 digits with leading zeros 01 to 31
D A textual representation of a day, three letters Mon through Sun
F A full textual representation of a month, such as January or March January through December
g 12-hour format of an hour without leading zeros 1 through 12
G 24-hour format of an hour without leading zeros 0 through 23
h 12-hour format of an hour with leading zeros 01 through 12
H 24-hour format of an hour with leading zeros 00 through 23
i Minutes with leading zeros 00 to 59
I (capital i) Whether or not the date is in daylights savings time 1 if Daylight Savings Time, 0 otherwise.
j Day of the month without leading zeros 1 to 31
l (lowercase 'L') A full textual representation of the day of the week Sunday through Saturday
L Whether it's a leap year 1 if it is a leap year, 0 otherwise.
m Numeric representation of a month, with leading zeros 01 through 12
M A short textual representation of a month, three letters Jan through Dec
n Numeric representation of a month, without leading zeros 1 through 12
O Difference to Greenwich time (GMT) in hours Example: +0200
r RFC 2822 formatted date Example: Thu, 21 Dec 2000 16:01:07 +0200
s Seconds, with leading zeros 00 through 59
S English ordinal suffix for the day of the month, 2 characters st, nd, rd or th. Works well with j
t Number of days in the given month 28 through 31
T Timezone setting of this machine Examples: EST, MDT ...
U Seconds since the Unix Epoch (January 1 1970 00:00:00 GMT) See also time()
w Numeric representation of the day of the week 0 (for Sunday) through 6 (for Saturday)
W ISO-8601 week number of year, weeks starting on Monday (added in PHP 4.1.0) Example: 42 (the 42nd week in the year)
Y A full numeric representation of a year, 4 digits Examples: 1999 or 2003
y A two digit representation of a year Examples: 99 or 03
z The day of the year (starting from 0) 0 through 365
Z Timezone offset in seconds. The offset for timezones west of UTC is always negative, and for those east of UTC is always positive. -43200 through 43200


Unrecognized characters in the format string will be printed as-is. The Z format will always return 0 when using gmdate().

Example 1. date() examples
****************************************
a "am" or "pm"
A "AM" or "PM"
B Swatch Internet time
d day of the month, 2 digits with leading zeros; i.e. "01" to "31"
D day of the week, textual, 3 letters; i.e. "Fri"
F month, textual, long; i.e. "January"
g hour, 12-hour format without leading zeros; i.e. "1" to "12"
G hour, 24-hour format without leading zeros; i.e. "0" to "23"
h hour, 12-hour format; i.e. "01" to "12"
H hour, 24-hour format; i.e. "00" to "23"
i minutes; i.e. "00" to "59"
I (capital i) "1" if Daylight Savings Time, "0" otherwise.
j day of the month without leading zeros; i.e. "1" to "31"
l (lowercase 'L') day of the week, textual, long; i.e. "Friday"
L boolean for whether it is a leap year; i.e. "0" or "1"
m month; i.e. "01" to "12"
M month, textual, 3 letters; i.e. "Jan"
n month without leading zeros; i.e. "1" to "12"
r RFC 822 formatted date; i.e. "Thu, 21 Dec 2000 16:01:07 +0200" (added in PHP 4.0.4)
s seconds; i.e. "00" to "59"
S English ordinal suffix, textual, 2 characters; i.e. "th", "nd"
t number of days in the given month; i.e. "28" to "31"
T Timezone setting of this machine; i.e. "MDT"
U seconds since the epoch
w day of the week, numeric, i.e. "0" (Sunday) to "6" (Saturday)
Y year, 4 digits; i.e. "1999"
y year, 2 digits; i.e. "99"
z day of the year; i.e. "0" to "365"
Z timezone offset in seconds (i.e. "-43200" to "43200"). The offset for timezones west of UTC is always negative, and for those east of UTC is always positive
Php



2090
09/09/2023
Mysql Date Select The MAX Date Of Each ID
max date unique group
Php
Mysql



2
09/09/2023
Php Archive Code Zoom Backup Code
zoom format html_entity_decode
Codezoom.php
Php



0
12/28/2022
Php Language Empty
strip tag
Developer
Php



2
09/09/2023
WP Archive Saved Android Video Text
android
 











00:00:00 hidden setting in gallary app
00:13:13 settings -> search for gallery -> Gallery App info -> Mobile data ->
turn off Allow background data usage
00:33:02 <- Battery -> Restricted
00:39:09 <- Appear on top or draw on top -> Allow permission - off
00:46:24 Open gallery app -> 3bar menu rigth corner ->
00:58:00 Settings -> About Gallery -> Tap on version# 5times fast
01:06:22 <- Gallery labs -> Samsungs hidden tool list ->
01:21:05 When receiving Samsung update
01:28:14 Enabled trackers to turn off
01:35:28 SETTINGS -> Google Services -> All Services ->
01:58:09 personalize using shared data -> turn all 3 or 4 listed off
02:07:26 SETTINGS -> Apps -> 3dots right -> Special Access ->
-- usage dat access -> Google ->
02:23:27 Disable all 3 Google entities
02:30:07 3 setting to always turn off ->
02:43:20 SETTINGS -> privacy & security -> more privacy settings ->
--- Personal data intelegence -> Turn off
03:18:08 <- usage & diagnostics -> turn off
03:35:03 END
[video width="720" height="486" mp4="https://softwarewebdesign.com/SWDHome/wp-content/uploads/2025/12/android20251230.mp4"][/video]

video
00:00:00 Dangerous setting to turn off on Android phone
00:03:28 Open Settings
00:06:00 Click on about phone
00:08:07 Next Software Information
00:09:29 Next Build Number (click 7 times) Developer Mode activated
00:12:12 Go back main settings
00:16:26 Click Developer options on bottom
00:21:09 Go System Tracing
00:23:13 Turn off Trace Debugable Applications
00:28:27 Next Per-CPU buffer size
00:31:23 Use 8192 KB
00:34:17 Clear saved traces
00:41:18 Secret Wi-Fi menu-
- Developer options->Wi-Fi non-persistent MAC->ON
01:33:17 Getting rid of ads
Settings-> Connection - more connection settings->private DNS->private DNS provider->
dns.adguard.com->save
02:33:21 Google reporting - Settings app->Usage & diagnostics (turn off)->
02:49:02 Google reporting 2
- Settings app->digital wellbeing & parental controls->3 dots top->
- Settings->usage data access->settings->turn off access
03:10:11 Google reporting 3
- Settings app->digital wellbeing->customization services->switch off
03:29:07 Secret codes -
- *#62# forwarded calls
03:48:05 Secret codes -
- ##21# call forwarding unconditionally erasure
04:13:01 Secret codes -
- *#06# phone info
04:22:04 parasitic setting -
04:54:20 - Settings app->digital wellbeing & parental controls->3 dots top->
- Settings->usage data access->Settings->allow permissions->OFF
05:22:08 Spying on your phone
05:34:15 Check tracking -
- Settings app->search (spy glass)->type; tracker->unknown tracker alerts->allow alerts-
- manual scan->view report
05:59:13 trackers2
- Settings app-> Security & privacy->permission used 24 hr->three dots -
- Show system apps->permissions tab->physical activity->customization service->See all custom {link}
some apps may require permissions to work
06:41:19 Creation of the developer menu in settings- repeat
07:14:13 END
 

[video width="480" height="720" mp4="https://softwarewebdesign.com/SWDHome/wp-content/uploads/2025/12/AndroidDangerousSettings.mp4"][/video]

 
WP



5
12/22/2022
Vb.net Files Create A Copy Or Move A File In A Different Directory
copy files move files
File Management
' Copy the file to a new location without overwriting existing file.
My.Computer.FileSystem.CopyFile(
"C:UserFilesTestFilestestFile.txt",
"C:UserFilesTestFiles2testFile.txt")

' Copy the file to a new folder, overwriting existing file.
My.Computer.FileSystem.CopyFile(
"C:UserFilesTestFilestestFile.txt",
"C:UserFilesTestFiles2testFile.txt",
Microsoft.VisualBasic.FileIO.UIOption.AllDialogs,
Microsoft.VisualBasic.FileIO.UICancelOption.DoNothing)

' Copy the file to a new folder and rename it.
My.Computer.FileSystem.CopyFile(
"C:UserFilesTestFilestestFile.txt",
"C:UserFilesTestFiles2NewFile.txt",
Microsoft.VisualBasic.FileIO.UIOption.AllDialogs,
Microsoft.VisualBasic.FileIO.UICancelOption.DoNothing)

==================
overwrite defaults to false need to add ",true" inside the function

The My.Computer.FileSystem.MoveFile method can be used to move a file to another folder. If the target structure does not exist, it will be created.

To move a file
Use the MoveFile method to move the file, specifying the file name and location for both the source file and the target file. This example moves the file named test.txt from TestDir1 to TestDir2. Note that the target file name is specified even though it is the same as the source file name.

VB

Copy
My.Computer.FileSystem.MoveFile("C:TestDir1test.txt",
"C:TestDir2test.txt")
To move a file and rename it
Use the MoveFile method to move the file, specifying the source file name and location, the target location, and the new name at the target location. This example moves the file named test.txt from TestDir1 to TestDir2 and renames it nexttest.txt.

VB

Copy
My.Computer.FileSystem.MoveFile("C:TestDir1test.txt",
"C:TestDir2nexttest.txt",
FileIO.UIOption.AllDialogs,
FileIO.UICancelOption.ThrowException)
Vb.net



0
12/10/2023
Php Formatting Html_entity_decode
decode format
Restoring Html Saves
Php



2
09/09/2023
Php Formatting Htmlentities
html convert format
Html, Php Saves
Php



2
09/09/2023
Mysql Dumps Archive Database: `softwax3_myfiles
file contact
Mysql Dumps



3
09/09/2023
Mysql Dumps Archive Database: `softwax3_codeSaver`
code language operation
Backup
Mysql Dumps



3
09/09/2023
Php Database Find Orphans
left join orphan delete
Php



2
09/09/2023
Php Function Ziping And Unziping Server Folders Using Php
zip unzip directory folder backup mysql backup directory
// I use a browser script that send the proper data to back up since if have multiple accounts. I separate the small files in one zip and large files in another. Under case 1. you will notice mp3 and zip this prevents bloated zips which may fail. Video and music should be done seperately from the rest of the files. I included a mysql backup that gets the data and makes a .sql file if you give it database information.

class Utils
{
public static function listDirectory($dir)
{
$result = array();
$root = scandir($dir);
foreach($root as $value) {
if($value === '.' || $value === '..') {
continue;
}
if(is_file("$dir$value")) {
$result[] = "$dir$value";
continue;
}
if(is_dir("$dir$value")) {
$result[] = "$dir$value/";
}
foreach(self::listDirectory("$dir$value/") as $value)
{
$result[] = $value;
}
}
return $result;
}
}

/*
use if you need to rename or auto download
$file = '/path/to/zip/file.zip';
$file_name = basename($file);
header("Content-Type: application/zip");
header("Content-Disposition: attachment; filename=" . $file_name);
header("Content-Length: " . filesize($file));
readfile($file);
exit;
*/


$project=$_GET["pr"];$projectid=$_GET["id"];$PHPfolder=$_GET["fo"];$PHPdatabase=$_GET["db"];$user=$_GET["us"]; $password=$_GET["pa"];$return1=$_GET["re"];
$exportstring="pr=$project&fo=$PHPfolder&db=$PHPdatabase&us=$user&pa=$password&re=$return1&id=$projectid";
$server="localhost";
$AC=$_GET["L"];
$topDir=dirname(__FILE__);
$folder0="/".$PHPfolder;
$source_dir = $topDir.$folder0."/";
if(strlen($PHPfolder)==1)$source_dir = $topDir."/"; // For those sites where zipdemo is in their root
if(is_dir($topDir."/BACKED")==false){ mkdir($topDir."/BACKED", 0777); }
if($AC=="" && strlen($PHPdatabase)>1){
mysql_connect($server,$user,$password);
mysql_select_db($PHPdatabase);
$backupFile =$source_dir.$PHPdatabase.".sql";
$result .= "# MySQL Data Backup of ".$PHPdatabase."\n";
$result .= "# This was generated on " . date("m/d/Y") . "\n\n";

$tables = mysql_list_tables($PHPdatabase);
for($i = 0; $i < mysql_num_rows($tables); $i++){
$table = mysql_tablename ($tables, $i);
if(substr($table,0,7)!="tblStat"){
$result .= "# Start of $table \n";
$result .= "TRUNCATE TABLE $table;\n";
$query = mysql_query("select * from $table");
$num_fields = mysql_num_fields($query);
$result .= "$table fields (\n";
for($ii = 0; $ii < $num_fields; $ii++) {
$result.= mysql_field_name($query,$ii)."-".mysql_field_type($query,$ii)."(".mysql_field_len($query,$ii).")".mysql_field_flags($query,$ii)."\n";
}
$result.=");\n";
$numrow = mysql_num_rows($query);

while( $row = mysql_fetch_array($query, MYSQL_NUM))
{
$result .= "INSERT INTO ".$table." VALUES(";
for($j=0; $j<$num_fields; $j++)
{
$row[$j] = addslashes($row[$j]);
$row[$j] = str_replace("\n","\\n",$row[$j]);
$row[$j] = str_replace("\r","",$row[$j]);
if (isset($row[$j]))
$result .= "\"$row[$j]\"";
else
$result .= "\"\"";
if ($j<($num_fields-1))
$result .= ", ";
}
$result .= ");\n";
}
}
if ($i+1 != mysql_num_rows($tables))
$result .= "\n";
}
$ID++;

// ===================

$fp = fopen($backupFile, "w");
fwrite($fp, $result);
// Move to the start of the file
fclose($fp);
}
//echo $topDir."/BACKED".$folder0."L.zip"; echo $exportstring;exit;
switch($AC){
case 1:
$zip_file = $topDir."/BACKED/".$project."L.zip";
$fi0=$_GET["fi0"];
$exportstring.="&fi0=$fi0&fi1=/BACKED/".$project."L.zip";
break;
default:
$zip_file = $topDir."/BACKED/".$project.".zip";
$exportstring.="&fi0=/BACKED/".$project.".zip";
break;
}
//echo $zip_file;exit;
$file_list = Utils::listDirectory($source_dir);
//echo "shit2";exit;
$zip = new ZipArchive();
if ($zip->open($zip_file, ZIPARCHIVE::CREATE) === true) {
foreach ($file_list as $file) {
if ($file !== $zip_file) {
switch($AC){
case 1:
if(filesize($file)>= 250000 && strpos($file,".zip")==0 && strpos($file,".mp3")==0) $zip->addFile($file, substr($file, strlen($source_dir)));
break;
default:
if(filesize($file)<= 250000) $zip->addFile($file, substr($file, strlen($source_dir)));
break;
}
}
//$i++;if($i==10)break;
}
$zip->close();
}
if($AC==""){ header("location:zipdemo.php?$exportstring&L=1");exit; }
else{ header("location:http://$return1?$exportstring"); exit; }
?>

This script includes header files which may hiccup if error reporting is set to show warnings. The one below will handle warnings.

class Utils
{
public static function listDirectory($dir)
{
$result = array();
$root = scandir($dir);
foreach($root as $value) {
if($value === '.' || $value === '..') {
continue;
}
if(is_file("$dir$value")) {
$result[] = "$dir$value";
continue;
}
if(is_dir("$dir$value")) {
$result[] = "$dir$value/";
}
foreach(self::listDirectory("$dir$value/") as $value)
{
$result[] = $value;
}
}
return $result;
}
}

/*
$file = '/path/to/zip/file.zip';
$file_name = basename($file);
header("Content-Type: application/zip");
header("Content-Disposition: attachment; filename=" . $file_name);
header("Content-Length: " . filesize($file));
readfile($file);
exit;
*/
$project=$_GET["pr"];$projectid=$_GET["id"];$PHPfolder=$_GET["fo"];$PHPdatabase=$_GET["db"];$user=$_GET["us"]; $password=$_GET["pa"];$return1=$_GET["re"];
$project="Peak_Wellness";$PHPdatabase="the1324812461410";$user="the1324812461410";$password="v4K#htNPNfeG";
$return1="www.softwarewebdesign.com/SWD/EMAIL/backmeup.php";$projectid=27;
$exportstring="pr=$project&fo=$PHPfolder&db=$PHPdatabase&us=$user&pa=$password&re=$return1&id=$projectid";
$server="the1324812461410.db.11744884.hostedresource.com";
$AC=$_GET["L"];
$topDir=dirname(__FILE__);
$folder0="/".$PHPfolder;
$source_dir = $topDir."/"; //.$folder0."/";
if(is_dir($topDir."/BACKED")==false){ mkdir($topDir."/BACKED", 0777); }
if($AC=="" && strlen($PHPdatabase)>1){
mysql_connect($server,$user,$password);
mysql_select_db($PHPdatabase);
$backupFile =$source_dir.$PHPdatabase.".sql";
$result .= "# MySQL Data Backup of ".$PHPdatabase."\n";
$result .= "# This was generated on " . date("m/d/Y") . "\n\n";

$tables = mysql_list_tables($PHPdatabase);
for($i = 0; $i < mysql_num_rows($tables); $i++){
$table = mysql_tablename ($tables, $i);
if(substr($table,0,7)!="tblStat"){
$result .= "# Start of $table \n";
$result .= "TRUNCATE TABLE $table;\n";
$query = mysql_query("select * from $table");
$num_fields = mysql_num_fields($query);
$result .= "$table fields (\n";
for($ii = 0; $ii < $num_fields; $ii++) {
$result.= mysql_field_name($query,$ii)."-".mysql_field_type($query,$ii)."(".mysql_field_len($query,$ii).")".mysql_field_flags($query,$ii)."\n";
}
$result.=");\n";
$numrow = mysql_num_rows($query);

while( $row = mysql_fetch_array($query, MYSQL_NUM))
{
$result .= "INSERT INTO ".$table." VALUES(";
for($j=0; $j<$num_fields; $j++)
{
$row[$j] = addslashes($row[$j]);
$row[$j] = str_replace("\n","\\n",$row[$j]);
$row[$j] = str_replace("\r","",$row[$j]);
if (isset($row[$j]))
$result .= "\"$row[$j]\"";
else
$result .= "\"\"";
if ($j<($num_fields-1))
$result .= ", ";
}
$result .= ");\n";
}
}
if ($i+1 != mysql_num_rows($tables))
$result .= "\n";
}
$ID++;

// ===================

$fp = fopen($backupFile, "w");
fwrite($fp, $result);
// Move to the start of the file
fclose($fp);
}
//echo "Done sql";exit;
//echo $topDir."/BACKED".$folder0."L.zip"; echo $exportstring;exit;
switch($AC){
case 1:
$zip_file = $topDir."/BACKED/".$project."L.zip";
$fi0=$_GET["fi0"];
$exportstring.="&fi0=$fi0&fi1=/BACKED/".$project."L.zip";
break;
default:
$zip_file = $topDir."/BACKED/".$project.".zip";
$exportstring.="&fi0=/BACKED/".$project.".zip";
break;
}
//echo $zip_file;exit;
$file_list = Utils::listDirectory($source_dir);
//echo "shit2";exit;
$zip = new ZipArchive();
if ($zip->open($zip_file, ZIPARCHIVE::CREATE) === true) {
foreach ($file_list as $file) {
if ($file !== $zip_file) {
switch($AC){
case 1:
if(filesize($file)>= 250000 && strpos($file,".zip")==0 && strpos($file,".mp3")==0) $zip->addFile($file, substr($file, strlen($source_dir)));
break;
default:
if(filesize($file)<= 250000) $zip->addFile($file, substr($file, strlen($source_dir)));
break;
}
}
//$i++;if($i==10)break;
}
$zip->close();
}
/*
if($AC==""){ header("location:zipdemo.php?$exportstring&L=1");exit; }
else{ header("location:http://$return1?$exportstring"); exit; }
*/
if($AC==""){ echo "Continue"; exit; }
else{ echo "Continue"; exit; }

?>

To unzip an archive just upload the archive and this script into the directory and run. Do this for both zips to get the complete archive.

UNZIP SCRIPT

$topDir=dirname(__FILE__)."/";
//echo $topDir;exit;
$zip = new ZipArchive;
if ($zip->open('SUBWAYL.zip') === TRUE) {
$zip->extractTo($topDir);
$zip->close();
echo 'ok';
} else {
echo 'failed';
}
?>
Php



1767
09/09/2023
Javascript Controls List Box Controls Another Listbox And Fills In A Text Box
list box text box onchange header dropdown
Search & PHPScript 2025/12
Javascript



2
09/09/2023
Php Database Delete
left join delete orphans
Php



2
09/09/2023
WP Themes Archive Software Web Design Home Page Code
page plugin ??
Executive Pro
WP Themes



1
12/22/2022
_Misc Software Object How To Save A Microsoft Publisher File As An Image File
jpg png
Publisher 365
1.
Launch Publisher. Click the “File†tab and click “Open.â€


2.
Browse to the location on your computer where your Microsoft Publisher file is currently saved. Double-click the file to open it.

3.
Click the “File†tab and click “Export†from the menu that appears.

4.
Select “Change File Type†under the heading “File Types.â€

5.
Click an image file format from the list displayed under the heading “Image File Types.†Available formats include PNG, JPEG, GIF, TIFF and BMP.

6.
Click the “Save†button. Publisher saves a copy of your file in your chosen image format.
_Misc Software



2
09/09/2023
Browsers Security Remove Free.instantgreenapp.com From Edge
instantgreenapp.com popups
Edge
1. In Edge, go to Settings and more

2. Select Settings > Cookies and site permissions.

3. Under All permissions, select Pop-ups and redirects.

4. Turn ON the Block toggle.




Remove Free.instantgreenapp.com from Edge
Open Microsoft Edge.
Click on the three dots in the top right corner to expand the Edge menu.
Scroll down to Settings.
In the left menu, click on Site permissions.
Click on Notifications.
Click on the three dots on the right of the Free.instantgreenapp.com domain and click Remove.
? See the next step: Malwarebytes.
Browsers



0
01/06/2024
Mysql Database Query Language
num show
Developer
1. Using the SHOW TABLES Command:

You can use the SHOW TABLES command to list all tables in a specific database and then check if your table is among them.

SHOW TABLES LIKE 'your_table_name';
Mysql



0
03/14/2025
Vb.net Files File Drag Drop Listview
drag drop file 3rd party
Developer
12/31/25 ai search
To programmatically
drag multiple files from your VB.NET application and drop them onto a third-party application, you must prepare a DataObject in a standard format that other Windows programs can understand. The standard format for files is DataFormats.FileDrop.
Initiating the Drag Operation
In your VB.NET application, for the control you want to initiate the drag from (e.g., a Button or a ListView item), use the DoDragDrop method within a mouse event (like MouseDown):
vb.net
WEBTOOLS USING File1 control

Private Sub File1_MouseDown(sender As Object, e As MouseEventArgs) Handles File1.MouseDown
' Create a StringCollection to hold the paths of the files you want to drag.
Dim filePaths As New System.Collections.Specialized.StringCollection

' Add the full, qualified paths of the files to the collection.
' This example uses a single file for brevity; you can add multiple paths here.
For Each Item As String In File1.SelectedItems
Try
filePaths.Add(Path.TREE2 + "" + Item.ToString)
Catch ex As Exception
Continue For
End Try
Next

'filePaths.Add(Path.Combine(Application.StartupPath, "TestData1.txt"))
'filePaths.Add(Path.Combine(Application.StartupPath, "TestData2.txt"))
' ... add all other file paths ...

' Create a DataObject and set the FileDrop list.
Dim data As New DataObject()
data.SetFileDropList(filePaths)

' Initiate the drag-and-drop operation, allowing "Copy" or "All" effects.
' Using DragDropEffects.Copy is standard for file drag-and-drop between apps.
File1.DoDragDrop(data, DragDropEffects.Copy)
End Sub
===========

Imports System.IO
Imports System.Windows.Forms

Public Class Form1
Private originalSelection As List(Of Integer)

Public Sub New()
InitializeComponent()

' Example setup
ListBox1.SelectionMode = SelectionMode.MultiExtended
ListBox1.AllowDrop = False ' We are dragging out, not in

' Add some example file paths
ListBox1.Items.Add("C:TempFile1.txt")
ListBox1.Items.Add("C:TempFile2.txt")
ListBox1.Items.Add("C:TempFile3.txt")
End Sub

' Capture selection before mouse down
Private Sub ListBox1_MouseDown(sender As Object, e As MouseEventArgs) Handles ListBox1.MouseDown
originalSelection = New List(Of Integer)(ListBox1.SelectedIndices.Cast(Of Integer)())
End Sub


' Start drag without losing selection
Private Sub ListBox1_MouseMove(sender As Object, e As MouseEventArgs) Handles ListBox1.MouseMove
If e.Button = MouseButtons.Left AndAlso originalSelection IsNot Nothing AndAlso originalSelection.Count > 0 Then
' Restore original selection in case it changed
ListBox1.ClearSelected()
For Each idx In originalSelection
ListBox1.SelectedIndices.Add(idx)
Next

' Prepare file drop list
Dim files As New List(Of String)
For Each idx In originalSelection
Dim path As String = ListBox1.Items(idx).ToString()
If File.Exists(path) Then
files.Add(path)
End If
Next

If files.Count > 0 Then
Dim data As New DataObject(DataFormats.FileDrop, files.ToArray())
ListBox1.DoDragDrop(data, DragDropEffects.Copy)
End If
End If
End Sub
End Class


===========
Compatibility with Third-Party Applications
When dragging between different applications, you must use the standard Windows drag-and-drop formats (like DataFormats.FileDrop). Most third-party applications that support receiving files via drag-and-drop will be listening for this standard format in their own DragEnter and DragDrop event handlers.

The crucial step is creating a DataObject and using SetFileDropList() to ensure the data is provided in a standard, interoperable format.
The third-party application must have its AllowDrop property set to True for the target control to accept drops.
Some older or specific third-party applications might expect different data formats (like a MemoryStream or specific custom formats), but the file path array is the most common and widely supported method.

For more information on programmatically simulating a drop to a third-party application without a user's manual mouse action (which is complex and often requires Windows API calls), refer to resources on programmatic drag-and-drop on Microsoft Learn.


o programmatically drag a file from your VB.NET application and drop it onto a
third-party application, you need to initiate a standard OLE drag-and-drop operation from your VB.NET application.
The third-party application, if built to accept standard Windows file drops (like Windows Explorer or Notepad), will handle the drop automatically.
Step-by-Step Implementation
The key is to create a DataObject containing the file path(s) in the DataFormats.FileDrop format and then call the DoDragDrop method.
1. Set up the UI (e.g., a Button or a ListView)
You'll need a control in your application from which the drag operation will start. A Button or ListView item's MouseDown event is a good place to initiate this.
2. Implement the MouseDown event
In the MouseDown event of your source control, you will:

Specify the full path of the file(s) you want to drag.
Create a DataObject.
Set the data using DataFormats.FileDrop.
Call DoDragDrop to start the operation.

Here is a VB.NET code snippet (for Windows Forms) that initiates a drag operation with a single file:
vb.net

Imports System.IO
Imports System.Collections.Specialized ' Required for StringCollection

Private Sub YourControl_MouseDown(sender As Object, e As MouseEventArgs) Handles YourControl.MouseDown
' Only start the drag if the left mouse button is pressed
If e.Button = Windows.Forms.MouseButtons.Left Then
' Define the path(s) to the file(s) you want to drag.
' Use StringCollection for multiple files, or a String array for one or more.
Dim filePaths As New StringCollection()
' Example: Add a specific file from your application's startup path
Dim filePath As String = Path.Combine(Application.StartupPath, "YourFileName.txt")

' Ensure the file exists before attempting to drag it
If File.Exists(filePath) Then
filePaths.Add(filePath)

' Create a DataObject and set the file drop list
Dim data As New DataObject()
data.SetFileDropList(filePaths)

' Start the drag-and-drop operation, allowing Copy effects
Me.DoDragDrop(data, DragDropEffects.Copy)
Else
MessageBox.Show("File not found: " & filePath)
End If
End If
End Sub


Considerations for Third-Party Applications

Standard Formats: By using DataFormats.FileDrop and a StringCollection of paths, your application adheres to the standard Windows OLE drag-and-drop contract, ensuring compatibility with most third-party applications that support file drops (e.g., Windows Explorer, email clients, specific document management systems).
Permissions (UIPI): Be aware of User Interface Privilege Isolation (UIPI). If your VB.NET application is running with Administrator privileges, it will not be able to drag and drop files into a third-party application running as a standard (non-administrator) user (e.g., dragging from an elevated Visual Studio instance to a normal Windows Explorer window). If this is an issue, run both applications at the same privilege level.
Programmatic Drop (Advanced): If the target application does not support standard drag-and-drop or you need to automate the "drop" part of the process without user interaction (e.g., navigating to a specific folder within the target app first), this becomes significantly more complex, often requiring Windows API calls (SendMessage, WM_DROPFILES) or UI automation tools, which are beyond basic drag-and-drop functionality. The simple DoDragDrop method handles the initiation of the drag, but the target controls the drop



Re: Need help dragging File FROM ListView to Explorer (and other places)
Use the listview mousedown event. If the left button is held down and you have files selected, use

Code:
listviewname.dodragdrop(dataformats.filedrop, new string() {“file1.extâ€, etc})
The dataformats and the string array of filenames are the important parts. Windows explorer will recognise your files. All of your previous code was what you’d use to enable dropping in your listview. You might want to keep your listview’s allowdrop property, and handle dragover, so you can see that something is being dragged above your listview. Don’t handle the dragdrop event if you don’t want files dropped in your listview

=================================

Private Sub ListView1_DragDrop1(ByVal sender As Object, ByVal e As System.Windows.Forms.DragEventArgs) Handles ListView1.DragDrop

If e.Data.GetDataPresent(DataFormats.FileDrop) Then

Dim MyFiles() As String
Dim i As Integer

' Assign the files to an array.
MyFiles = e.Data.GetData(DataFormats.FileDrop)
' Loop through the array and add the files to the list.
For i = 0 To MyFiles.Length - 1

Dim lvitem As New ListViewItem

lvitem.Text = System.IO.Path.GetFileNameWithoutExtension(MyFiles(i)) 'File Name "Notepad"
lvitem.SubItems.Add(My.Computer.FileSystem.GetFileInfo(MyFiles(i)).Extension) 'Just the extension, soon to be type
lvitem.SubItems.Add(((My.Computer.FileSystem.GetFileInfo(MyFiles(i)).Length) / 1000) & " KB") 'File Size e.g. "2,400KB"
lvitem.SubItems.Add(My.Computer.FileSystem.GetFileInfo(MyFiles(i)).DirectoryName) 'Path
ListView1.Items.Add(lvitem)

Next
End If

End Sub

3rd party


To programmatically simulate a drag-and-drop operation in VB.NET, where files are dropped into a third-party application, you can use the DoDragDrop method in combination with the Windows API for more advanced scenarios. Below is an example of how you can achieve this:

Example: Drag and Drop Files to a Third-Party Application

Imports System.Runtime.InteropServices
Imports System.Windows.Forms

Public Class DragDropHelper


Private Shared Function FindWindow(lpClassName As String, lpWindowName As String) As IntPtr
End Function


Private Shared Function SendMessage(hWnd As IntPtr, Msg As Integer, wParam As IntPtr, lParam As IntPtr) As IntPtr
End Function

Private Const WM_DROPFILES As Integer = &H233

Public Shared Sub DragAndDropFile(filePath As String, targetWindowTitle As String)
' Find the target window by its title
Dim targetWindowHandle As IntPtr = FindWindow(Nothing, targetWindowTitle)

If targetWindowHandle = IntPtr.Zero Then
MessageBox.Show("Target application window not found.")
Return
End If

' Create a DataObject containing the file path
Dim dataObject As New DataObject(DataFormats.FileDrop, New String() {filePath})

' Simulate the drag-and-drop operation
Clipboard.SetDataObject(dataObject, True)
SendMessage(targetWindowHandle, WM_DROPFILES, IntPtr.Zero, IntPtr.Zero)
End Sub

End Class

Another example using file explorer


Private Sub Form1_MouseDown(sender As Object, e As MouseEventArgs) Handles Me.MouseDown
Dim data As New DataObject()
Dim filePaths As New StringCollection

filePaths.Add(Path.Combine(Application.StartupPath, "TestData.txt"))
data.SetFileDropList(filePaths)
DoDragDrop(data, DragDropEffects.Copy)
End Sub
Vb.net



1
01/03/2026
_Misc Software Customizing Setting NMEA Settings 1200 Monitor
1200 20/20 NMEA
Linking 20/20
1200 MONITOR NMEAS SETTINGS
1. press the 3 square-4 square button top
2. Click on GNS position output settings
3.click on configuration. you can add a new profile here we called our 2025
4. Our guy had us turn port 2 on set baud rate 38400
5. Next turn the CGA->on, RMC->on, VTG->on
6. Click on each of the + signs and set each value to 5hz
_Misc Software



0
04/09/2025
Vb.net Controls DoEvents In .NET
doevents
Developer
18

Application.DoEvents()
Vb.net



0
12/14/2023
Css Formatting Bullets And Numbering
bullets li ul ol
Css



2134
09/09/2023
_Misc Software Ini Creating A .user.ini File For Linux
user ini
Developer
_Misc Software



0
05/04/2025
Javascript Form Input - First Caps
capital first onblur
Javascript



1596
09/09/2023
VBscript Function Open An Application Like Notepad And File Using Your Browser
load application
VBscript



1547
09/09/2023
Javascript Archive Gps Google Map Copy
gps
Google Map Calculations Backup
Javascript



1
02/20/2026
Javascript Object .select(); Clipboard
Clipboard object of document.getElementById().select;
Javascript



0
07/29/2022
WP Database Database Access
database
WP



2
09/09/2023
Php Function Protecting Passwords
Encrypt Decrypt security password
Security Code App
Php



3
02/22/2024
Php Files Activate75.php
activate security
Developer
//require_once($_SERVER['DOCUMENT_ROOT']."/activate75.php");

if($bypass!=true){
$appid="636390303046554890";
$user='softwax3_build99';$password='Web2Build.now';$database='softwax3_SoftwareUsers';
$connection = swd_mysql("localhost", $user,$password,$database);
//if($appid>"636390303046554897"){$qu=new mysqli_swd();}else{$qu=new dbase();}
$qu=new mysqli_swd();
$sql="SELECT lock_device,security_level FROM users WHERE device_name='".$_COOKIE["machine_id"]."'";
$qu->dbsql($sql);
if($qu->num==0 || $qu->data1[0]==1) { echo "You are locked out";exit; }
$_SESSION['LEVEL']=$qu->data1[1]; $LEVEL=$qu->data1[1];
define('SWD_AUTHENTICATE', true);define('SWD_KEY', 'JesusIsLord');
}
if($bypass==true){define('SWD_AUTHENTICATE', true);}

?>
Php



0
05/11/2025
Php Formatting Remove Ascii > 127
ascii remove delete
String Cleanup
Php



0
03/07/2024
Php Variables Using Arrays
array
Php



2
09/09/2023
Php Files Download Files While Changing Name
download header
$filename = "theDownloadedFileIsCalledThis.mp3";
$myFile = "/absolute/path/to/my/file.mp3";

$mm_type="application/octet-stream";

header("Cache-Control: public, must-revalidate");
header("Pragma: hack"); // WTF? oh well, it works...
header("Content-Type: " . $mm_type);
header("Content-Length: " .(string)(filesize($myFile)) );
header('Content-Disposition: attachment; filename="'.$filename.'"');
header("Content-Transfer-Encoding: binaryn");

readfile($myFile);
Php



1402
09/09/2023
Php Formatting Strip Html Tags
strip html
Library
$text = '

Test paragraph.

Other text';
echo strip_tags($text);
echo "n";

// Allow

and
echo strip_tags($text, '

');

// as of PHP 7.4.0 the line above can be written as:
// echo strip_tags($text, ['p', 'a']);
?>




The strip_tags() function strips a string from HTML, XML, and PHP tags.

Note: HTML comments are always stripped. This cannot be changed with the allow parameter.

Note: This function is binary-safe.

Syntax
strip_tags(string,allow)
Parameter Values
Parameter Description
string Required. Specifies the string to check
allow Optional. Specifies allowable tags. These tags will not be removed
Technical Details
Return Value: Returns the stripped string

Example
Strip the string from HTML tags, but allow <b> tags to be used:

<?php
echo strip_tags("Hello <b><i>world!</i></b>","<b>");
?>
Php



4
09/09/2023
Php Files Create Directory File List After Database Backup
file list database backup example
Backup Sites
Php



0
12/19/2025
Php Formatting Physically Resize An Image
resize image
/*
* File: SimpleImage.php
* Author: Simon Jarvis
* Copyright: 2006 Simon Jarvis
* Date: 08/11/06
* Link: http://www.white-hat-web-design.co.uk/articles/php-image-resizing.php
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details:
* http://www.gnu.org/licenses/gpl.html
*
*/

class SimpleImage {

var $image;
var $image_type;

function load($filename) {
$image_info = getimagesize($filename);
$this->image_type = $image_info[2];
if( $this->image_type == IMAGETYPE_JPEG ) {
$this->image = imagecreatefromjpeg($filename);
} elseif( $this->image_type == IMAGETYPE_GIF ) {
$this->image = imagecreatefromgif($filename);
} elseif( $this->image_type == IMAGETYPE_PNG ) {
$this->image = imagecreatefrompng($filename);
}
}
function save($filename, $image_type=IMAGETYPE_JPEG, $compression=75, $permissions=null) {
if( $image_type == IMAGETYPE_JPEG ) {
imagejpeg($this->image,$filename,$compression);
} elseif( $image_type == IMAGETYPE_GIF ) {
imagegif($this->image,$filename);
} elseif( $image_type == IMAGETYPE_PNG ) {
imagepng($this->image,$filename);
}
if( $permissions != null) {
chmod($filename,$permissions);
}
}
function output($image_type=IMAGETYPE_JPEG) {
if( $image_type == IMAGETYPE_JPEG ) {
imagejpeg($this->image);
} elseif( $image_type == IMAGETYPE_GIF ) {
imagegif($this->image);
} elseif( $image_type == IMAGETYPE_PNG ) {
imagepng($this->image);
}
}
function getWidth() {
return imagesx($this->image);
}
function getHeight() {
return imagesy($this->image);
}
function resizeToHeight($height) {
$ratio = $height / $this->getHeight();
$width = $this->getWidth() * $ratio;
$this->resize($width,$height);
}
function resizeToWidth($width) {
$ratio = $width / $this->getWidth();
$height = $this->getheight() * $ratio;
$this->resize($width,$height);
}
function scale($scale) {
$width = $this->getWidth() * $scale/100;
$height = $this->getheight() * $scale/100;
$this->resize($width,$height);
}
function resize($width,$height) {
$new_image = imagecreatetruecolor($width, $height);
imagecopyresampled($new_image, $this->image, 0, 0, 0, 0, $width, $height, $this->getWidth(), $this->getHeight());
$this->image = $new_image;
}
}
?>
============
Save the above file as SimpleImage.php and take a look at the following examples of how to use the script.

The first example below will load a file named picture.jpg resize it to 250 pixels wide and 400 pixels high and resave it as picture2.jpg

include('SimpleImage.php');
$image = new SimpleImage();
$image->load('picture.jpg');
$image->resize(250,400);
$image->save('picture2.jpg');
?>
If you want to resize to a specifed width but keep the dimensions ratio the same then the script can work out the required height for you, just use the resizeToWidth function.

include('SimpleImage.php');
$image = new SimpleImage();
$image->load('picture.jpg');
$image->resizeToWidth(250);
$image->save('picture2.jpg');
?>
You may wish to scale an image to a specified percentage like the following which will resize the image to 50% of its original width and height

include('SimpleImage.php');
$image = new SimpleImage();
$image->load('picture.jpg');
$image->scale(50);
$image->save('picture2.jpg');
?>
You can of course do more than one thing at once. The following example will create two new images with heights of 200 pixels and 500 pixels

include('SimpleImage.php');
$image = new SimpleImage();
$image->load('picture.jpg');
$image->resizeToHeight(500);
$image->save('picture2.jpg');
$image->resizeToHeight(200);
$image->save('picture3.jpg');
?>
The output function lets you output the image straight to the browser without having to save the file. Its useful for on the fly thumbnail generation

header('Content-Type: image/jpeg');
include('SimpleImage.php');
$image = new SimpleImage();
$image->load('picture.jpg');
$image->resizeToWidth(150);
$image->output();
?>
The following example will resize and save an image which has been uploaded via a form

if( isset($_POST['submit']) ) {
include('SimpleImage.php');
$image = new SimpleImage();
$image->load($_FILES['uploaded_image']['tmp_name']);
$image->resizeToWidth(150);
$image->output();
} else {
?>


}
?>
Php



1189
09/09/2023
WP Plugin Plug-in Scriptures
show table of records
Custom
WP Plugin



1
12/22/2022
WP Plugin Plug-in Keep Colorado Free
wordpress admin plugin shortcode membership form
Custom
WP Plugin



3
12/22/2022
WP Files WPfunctions.php
function mysql plugin
WP



0
07/29/2022
Php Archive Software Web Activation.php
reg75
Reg75.php
Php



2
01/30/2023
Php Function Deletefile.php
delete exist file
Backup File Info
Php



0
05/18/2025
Php Function SESSION VARIABLES NOT WORKING
DEBUG $_SESSION
HEMPDBASE
Php



0
03/02/2024

Software Web Design