This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
cern:index [2023/09/28 16:18] – iwn | cern:index [2023/10/04 16:10] (current) – iwn | ||
---|---|---|---|
Line 2: | Line 2: | ||
<file bash index.php> | <file bash index.php> | ||
- | <?php | ||
<?php | <?php | ||
preg_match(" | preg_match(" | ||
$pwd = preg_replace(" | $pwd = preg_replace(" | ||
- | $pwd = $pwd.preg_replace(" | + | $pwd = $pwd.preg_replace(" |
$pwdshort = preg_replace(" | $pwdshort = preg_replace(" | ||
if(!chdir($pwd)) { // try to go to directory | if(!chdir($pwd)) { // try to go to directory | ||
$msg = "Could not find " | $msg = "Could not find " | ||
+ | $msg .= "Could not find $pwd..."; | ||
+ | print_r($_SERVER); | ||
echo $msg; throw new Exception($msg); | echo $msg; throw new Exception($msg); | ||
} | } |