
Ayuda php (fopen)
Publicado por Coajin (8 intervenciones) el 11/02/2017 06:03:46
Cual es el problema en este codigo? ayuda pls
Me sale este error: "Warning: fopen(prueba.txt): failed to open stream: No such file or directory in C:\xampp\htdocs\tuto\Notas9.php on line 11"
Me sale este error: "Warning: fopen(prueba.txt): failed to open stream: No such file or directory in C:\xampp\htdocs\tuto\Notas9.php on line 11"
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<!DOCTYPE php>
<html lang="es">
<head>
<meta charset="UTF-8">
<title>Notas 9: Archivos en PHP</title>
</head>
<body>
<?php
//Permisos simples: W = Escribir, r = Leer, a = agregar
//fopen (nombre,modo)
$archivo = fopen("prueba.txt", "W");
?>
</body>
</html>
Valora esta pregunta


0