Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Page load images

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!
Before posting, make sure you have read this topic!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
top Posted - 28 April 2012 : 02:40:27
Thank you
Raise the image by date

filename = Year(Now) & Month(Now) & Day(Now) & Hour(Now) & Minute(Now) & Second(Now) & "_" & filename

On this code

Wait for help
<%
Set Upload = Server.CreateObject("Persits.Upload")
Path = Server.MapPath(strScriptYolu &"forum/data/")

Count = Upload.SaveVirtual("/forum/data/")

If Count = 0 Then

	Response.Redirect "outputFile.asp?tab=resim_yukle&hata=1"

Else
	Set File = Upload.Files(1)
	If File.ImageType <> "UNKNOWN" Then

		strKelimeler = Trim(Temizle(Upload.Form("kelimeler")))

		Set jpeg = Server.CreateObject("Persits.Jpeg")
		jpeg.Open(File.Path)
		jpeg.Width = 250
		jpeg.Height = 190
    		jpeg.Save File.Path
		Set jpeg = Nothing

		Set jpeg = Server.CreateObject("Persits.Jpeg")
		jpeg.Open( File.Path )
		jpeg.Width = 100
		jpeg.Height = 76
		SavePath = Path & "\th_" & File.ExtractFileName
		If UCase(Right(SavePath, 3)) <> "JPG" Then
			SavePath = SavePath & ".jpg"
		End If
		jpeg.Save SavePath
		DosyaAdi = File.ExtractFileName
		Set jpeg = Nothing

		kdGenel.Open "SELECT * FROM tblResimler", adoCon, 1, 3
		kdGenel.Addnew
		kdGenel("Resim") = DosyaAdi
		kdGenel("Kucuk") = "th_" & DosyaAdi
		kdGenel("Kelimeler") = strKelimeler
		kdGenel.Update
		kdGenel.Close 

		Response.Redirect "resim_frame.asp?tab=resimler"

  	Else

		Response.Redirect "resim_frame.asp?tab=resim_yukle&hata=1"

	End If
End If
%>



Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000 Version 3.4.07