path.php in Sticky: File attachments is not working
Posted: Wed Jun 17, 2009 9:57 pm
The provided file path.php in the Sticky topic: File attachments not working - READ THIS! ( viewtopic.php?t=2604 ) is not working for me.
to (an extra . before $path) solves the problem .
The complete (working) code in the file is than:
Greetings,
Henrie
Changing line 12:Parse error: syntax error, unexpected T_VARIABLE, expecting ',' or ';' in /volume1/web/path.php on line 12
Code: Select all
echo 'Your root path to HESK is: '$path;
Code: Select all
echo 'Your root path to HESK is: '.$path;
The complete (working) code in the file is than:
Code: Select all
<html>
<head>
<title></title>
</head>
<body>
<?php
$path = substr($_SERVER["SCRIPT_FILENAME"],0,-8);
$path = rtrim($path,'\/');
echo 'Your root path to HESK is: '.$path;
?>
</body>
</html>
Henrie