Skip to content

Commit

Permalink
[fix] Portando para windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
filipi committed Sep 23, 2024
1 parent 624072b commit e259400
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions web/iniset.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?PHP
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
$delimiter = ";";
$slashPath = "\\";
} else {
$delimiter = ":";
$slashPath = "/";
}
$include_path = $delimiter . "." . $slashPath . "include"
$include_path .= $delimiter . ".." . $slashPath . "include"
$include_path .= $delimiter . ".." . $slashPath .".." . $slashPath . "include"
$myPATH = ini_get('include_path') . $include_path;
ini_set('include_path', $myPATH);
?>

0 comments on commit e259400

Please sign in to comment.