<html>
<body>
<?php
$file=fopen("a.txt","r") or exit("Unable to open file!");
?>
</body>
</html>
--------------------------------------------------------------------------------
<html>
<body>
Warning: fopen(): open_basedir restriction in effect. File(a.txt) is not within the allowed path(s): (/tmp:/in:/etc) in /in/JMKtj on line 5
Warning: fopen(a.txt): Failed to open stream: Operation not permitted in /in/JMKtj on line 5
Unable to open file!
Output for 8.0.13
<html>
<body>
Warning: fopen(a.txt): Failed to open stream: No such file or directory in /in/JMKtj on line 5
Unable to open file!
<html>
<body>
Warning: fopen(): open_basedir restriction in effect. File(a.txt) is not within the allowed path(s): (/tmp:/in:/etc) in /in/JMKtj on line 5
Warning: fopen(a.txt): failed to open stream: Operation not permitted in /in/JMKtj on line 5
Unable to open file!
Output for 7.1.20, 7.2.6
<html>
<body>
Warning: fopen(): open_basedir restriction in effect. File(a.txt) is not within the allowed path(s): (/tmp:/in) in /in/JMKtj on line 5
Warning: fopen(a.txt): failed to open stream: Operation not permitted in /in/JMKtj on line 5
Unable to open file!
Output for 4.3.0 - 4.3.1
<html>
<body>
Warning: fopen(a.txt) [http://www.php.net/function.fopen]: failed to create stream: No such file or directory in /in/JMKtj on line 5
Unable to open file!