Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]Problem ze skryptem uploadu downloadu plików
gsmfun
post
Post #1





Grupa: Zarejestrowani
Postów: 5
Pomógł: 0
Dołączył: 20.12.2009

Ostrzeżenie: (0%)
-----


Na poczatek witam wszystkich. Jakis czas temu zakupilem serwer na netmark.pl tam zaczalem sobie grzebac z takim domowym hostingiem(glownie szukalem skryptów z progress barem ) zainstalowalem skrypt w php z uzyciem perla. wybieram plik klikne upload ii zwraca mi blad

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

dodam adres strony mcht.pl/mfh

Ten post edytował gsmfun 20.12.2009, 21:26:39
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
gsmfun
post
Post #2





Grupa: Zarejestrowani
Postów: 5
Pomógł: 0
Dołączył: 20.12.2009

Ostrzeżenie: (0%)
-----


fakt juz to naprawilem. a sproobuj uploadowac wiekszy plik ok 15 mb . sprawdz czy ci pojdzie . bo ja mam slaby transfer wysylania . zoabczymy czy blad wyskoczy . pozdro


//edit sprzed chwili

probowalem wrzucic plik nawet 1mb

otrzymale mstrone z bledem ktora nastepnie odswiezylem 2 krotnie i otrzymalem blad

Warning: fopen(/home/mchtpl/public_html/mfh/temp/9c360b1f12f42e8dc1138cc0dac690e1.params) [function.fopen]: failed to open stream: No such file or directory in /home/mchtpl/public_html/mfh/upload.php on line 196

ERROR: Can't open /home/mchtpl/public_html/mfh/temp/9c360b1f12f42e8dc1138cc0dac690e1.params

katalog temp jest z atrybuutami 777


kod z upload.php

function getPostData($up_dir, $tmp_sid){
$param_array = array();
$buffer = "";
$key = "";
$value = "";
$paramFileName = $up_dir . $tmp_sid . ".params";
$fh = fopen($paramFileName, 'r') or kak("<font color='red'>ERROR</font>: Can't open $paramFileName"); //// linijka 196

while(!feof($fh)){
$buffer = fgets($fh, 4096);
list($key, $value) = explode('=', trim($buffer));
$value = str_replace("~EQLS~", "=", $value);
$value = str_replace("~NWLN~", "\r\n", $value);

if(isset($key) && isset($value) && strlen($key) > 0 && strlen($value) > 0){
if(preg_match('/(.*)\[(.*)\]/i', $key, $match)){ $param_array[$match[1]][$match[2]] = $value; }
else{ $param_array[$key] = $value; }
}
}

fclose($fh);

/////////////////////////////////////////////////////////////////////////////////
// If you suspect there is something wrong with your .param file, simply comment
// out this for loop. The .param file will be left in your temp directory.
/////////////////////////////////////////////////////////////////////////////////
for($i = 0; $i < 5; $i++){
if(unlink($paramFileName)){ break; }
else{ sleep(1); }
}

return $param_array;

//jesli bedzie trzeba to nawet zaplace przelewem za pomoc w doprowadzeniu tego skryptu do porządku

Ten post edytował gsmfun 23.12.2009, 15:54:47
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 9.10.2025 - 03:24