Follow along with the video below to see how to install our site as a web app on your home screen.
Примечание: This feature may not be available in some browsers.
Warning: copy(mm_spa_photo1.jpg) [function.copy]: failed to open stream: No such file or directory in C:\AppServ\www\lphoto.php on line 29
Я неправильно ветвление сделал. Исправи ошибку, но тутже налез на следующую: Попробовал загрузить файл под експлорером, все получилось, а под FF:
Код:Warning: copy(mm_spa_photo1.jpg) [function.copy]: failed to open stream: No such file or directory in C:\AppServ\www\lphoto.php on line 29
<form action ="lphoto.php" method="POST">
<input type="file" upload name="photo" />
<? echo '<input type="hidden" name="row" value="'.$photo.'" />' ?>
</form>
<?
if ($row == 7) {$row='avatara';}
elseif ($row == 8) {$row='photo1';}
elseif ($row == 9) {$row='photo2';}
elseif ($row == 10) {$row='photo3';}
elseif ($row == 11) {$row='xxxphoto1';}
elseif ($row == 12) {$row='xxxphoto2';}
elseif ($row == 13) {$row='xxxphoto3';}
$db=mysql_connect("localhost","root", "edem");
if (mysql_select_db("edem",$db)) {
$result=mysql_query('ALTER TABLE `info` ORDER BY `id`', $db);
$result=mysql_query("SELECT * FROM info", $db);
while ($myrow = mysql_fetch_row($result)){
$photos=$myrow[1];
}
}
$photos=$photos+1;
$d='UPDATE `users` SET `'.$row.'` = '.$photos.' WHERE `id` = '.$registered.';';
echo "$d <br>";
$result=mysql_query($d, $db);
$d='UPDATE `info` SET `photos` = '.$photos.' WHERE `id` = 0;';
echo "$d <br>";
$result=mysql_query($d, $db);
//copy($photo, 'photo');
copy($photo, './photos/'.$photos.'.jpg');
//unlink("photo");
echo '<br>./photos/'.$photos.'.jpg';
//header('Location: http://localhost/myprofile.php');
?>
UPDATE `users` SET `avatara` = 14 WHERE `id` = 0;
UPDATE `info` SET `photos` = 14 WHERE `id` = 0;
Warning: copy(mm_spa_photo1.jpg) [function.copy]: failed to open stream: No such file or directory in C:\AppServ\www\lphoto.php on line 29
./photos/14.jpg