我应该如何为PHP中的fopen()方法设置相对路径?
当我做简单的fopen('asd.txt')时,它可以工作。但是当我做fopen('x / a.txt')它就死了:
case 'programme=a-level&division=firm-wide':
$fp = fopen("a-level/firm-wide.html", 'a') or die("Unable to open file!");
break;
case 'programme=a-level&division=sales-and-trading':
$fp = fopen("a-level/sales-and-trading.html", 'a') or die("Unable to open
file!");
break;
case 'programme=a-level&division=investment-banking':
$fp = fopen("a-level/investment-banking.html", 'a') or die("Unable to open file!");
break;