Jump to content
php.lv forumi

Nestrada bilzu ielades skripts


shurix

Recommended Posts

Taatad probleema taaad, ka uz localhost apache servera skripts stradaa, bet uz nano hostinga nee. Paradaas shis kluudas pazinojums "Pievieno taču bildi!" Iedomajos ka varetu but kaut kas ar php versijaam.

IF (filesize($_FILES["userfile"]["tmp_name"]) < "1048576")
{	
	$imagename = basename($_FILES['bilde']['name']);
	$newimage = "bildes/orginals/" . rand(1, 99999999) . $imagename;
	$result = @move_uploaded_file($_FILES['bilde']['tmp_name'], $newimage);
	IF(empty($result)) {
	echo "Pievieno taču bildi! <a href = 'java script:history.back()'> << Atpakaļ</a>"; }
	else 
	{

Link to comment
Share on other sites

×
×
  • Create New...