-
خطا در ارسال فايل
[PHP]function create_asx($video_virtual,$video_upload_name,$file _location,$file_name,$video_id,$site_name,$site_ur l,$video_title,$video_caption,$upload_by)
{
$file=$file_location."/".$file_name;
//print "File = $file";
$fp=fopen($file, "w");
fwrite($fp,"<asx version=\"3.0\">");
fwrite($fp,"\n");
fwrite($fp,"<abstract>$video_caption Video! را کلیک کنید تا ببینید $site_name</abstract>");
fwrite($fp,"\n");
fwrite($fp,"<title>ارائه شده توسط $site_name</title>");
fwrite($fp,"\n");
fwrite($fp,"<moreinfo href=\"$site_url\" target=\"_blank\"></moreinfo>");
fwrite($fp,"\n");
fwrite($fp,"<entry>");
fwrite($fp,"\n");
fwrite($fp,"<title>$video_title by $upload_by</title>");
fwrite($fp,"\n");
fwrite($fp,"<moreinfo href=\"$site_url/view_video.php?id=$video_id\" target=\"_blank\"></moreinfo>");
fwrite($fp,"\n");
$year=date("Y");
fwrite($fp,"<copyright>همه حقوق ، مادي و تجاری و کپی رایت متعلق به اين وب سايت است.</copyright>");
fwrite($fp,"\n");
fwrite($fp,"<author>$upload_by.</author>");
fwrite($fp,"\n");
fwrite($fp,"<ref href=\"$site_url/$video_virtual/$video_upload_name\"/>");
fwrite($fp,"\n");
fwrite($fp,"</entry></asx>");
fwrite($fp,"\n");
return $file_name;
}
[/PHP]
از خط 5 به بعد براي همه خط ها خطا مي گيره آيا نوشتن دستورات غلط است يا چيزي بايد اصلاح بشه
-
سئوالتون واضح نیست. چه اروری میده ؟
-
خطا:fopen(/C:/HostingSpaces/icanoonc1/icanoon.com/wwwroot/videos/2010194-1.asx) [
[ برای مشاهده لینک ، با نام کاربری خود وارد شوید یا ثبت نام کنید ]
]: failed to open stream: Invalid argument in C:\HostingSpaces\wwwroot\classes\videos.class.php on line 250