Forum

Php kodunu Asp Nası...
 
Bildirimler
Hepsini Temizle

Php kodunu Asp Nasıl çevirebilirim ?

12 Yazılar
4 Üyeler
0 Likes
393 Görüntüleme
(@hakanozdemir)
Gönderiler: 53
Estimable Member
Konu başlatıcı
 

Merhaba Üstadlar

sitemin iletişim bölümünün yazılımı php ye göre yazılmış. Php serverinde sorunsuz çalışıyor. Aynı bilgileri nasıl Asp çevirebilirim. kod aşağıdaki gibidir.

 

<?php

/* Enter your recieving email and the "do not reply" email for the automated copy that goes to the requesting person */

$recipient_email = "[email protected]";

$donotreply_email = "[email protected]";

$your_name = $_REQUEST['nametxt'];

$email = $_REQUEST['emailtxt'];

$message = $_REQUEST['messagetxt'];

/* Subject of the email YOU recieve */

$subject = 'Web Sitenize Mesaj Gelmistir ' . $your_name;

/* Subject of the email the CUSTOMER recieves */

$subjectnoreply = 'You send a request via YOURWEBSITE.com';

/* Header of the email YOU recieve */

$header = "From: $recipient_email\n" . "MIME-Version: 1.0\n" . "Content-type: text/plain; charset=utf-8\n";

/* Header of the email the CUSTOMER recieves */

$headernoreply = "From: $donotreply_email\nReply-To: $donotreply_email" . "MIME-Version: 1.0\n" . "Content-type: text/plain; charset=utf-8\n";

/* The email you recieve */

$forwardingmessage = "$me

Has received the below message:

--------------------------------------------------

Name: $your_name

Email: $email

Message:

$message

--------------------------------------------------

end of message";

/* The email the CUSTOMER recieves */

$replymessage = "Hi $your_name

Thank you for your email.

We will follow up shortly.

Please DO NOT reply to this email.

Below is a copy of the message you submitted:

--------------------------------------------------

Firma Ado: $your_name

Email: $email

Mesajı:

$message

--------------------------------------------------

Best regards

YOURWEBSITE.com";

mail($recipient_email,$subject,$forwardingmessage,$header);

mail($email,$subjectnoreply,$replymessage,$headernoreply);

?> 

 

 
Gönderildi : 01/10/2012 20:43

(@davuteren)
Gönderiler: 1584
Noble Member
 

tam çevirirmi bilmiyorum ama http://www.me-u.com/php-asp/hosting/asp.php

 
Gönderildi : 02/10/2012 00:53

(@hakanozdemir)
Gönderiler: 53
Estimable Member
Konu başlatıcı
 

Bu site hata verdi abi. Serverimde php sayfası çalıştırabilme gibi lüksüm yokmu. Hata vermeden. Asp ve php ikisi bir arada çalışmaz mı ?

 
Gönderildi : 02/10/2012 02:54

(@hakanozdemir)
Gönderiler: 53
Estimable Member
Konu başlatıcı
 

Site galiba kelimelerin bazısını çevirmiyor.Php ' ye özel gördüğü yerleri.

 

 

Bu kodun aynısını çeviremezmiyiz Asp ye

 

<?php

/* Enter your recieving email and the "do not reply" email for the automated copy that goes to the requesting person */

$recipient_email = "[email protected]";

$donotreply_email = "[email protected]";

$your_name = $_REQUEST['nametxt'];

$email = $_REQUEST['emailtxt'];

$message = $_REQUEST['messagetxt'];

/* Subject of the email YOU recieve */

$subject = 'Web Sitenize Mesaj Gelmiştir ' . $your_name;

/* Subject of the email the CUSTOMER recieves */

$subjectnoreply = 'You send a request via YOURWEBSITE.com';

/* Header of the email YOU recieve */

$header = "From: $recipient_email\n" . "MIME-Version: 1.0\n" . "Content-type: text/plain; charset=utf-8\n";

/* Header of the email the CUSTOMER recieves */

$headernoreply = "From: $donotreply_email\nReply-To: $donotreply_email" . "MIME-Version: 1.0\n" . "Content-type: text/plain; charset=utf-8\n";

/* The email you recieve */

$forwardingmessage = "$me

Has received the below message:

--------------------------------------------------

Name: $your_name

Email: $email

Message:

$message

--------------------------------------------------

end of message";

/* The email the CUSTOMER recieves */

$replymessage = "Hi $your_name

Thank you for your email.

We will follow up shortly.

Please DO NOT reply to this email.

Below is a copy of the message you submitted:

--------------------------------------------------

Firma Ado: $your_name

Email: $email

Mesajı:

$message

--------------------------------------------------

Best regards

YOURWEBSITE.com";

mail($recipient_email,$subject,$forwardingmessage,$header);

mail($email,$subjectnoreply,$replymessage,$headernoreply);

?> 

 
Gönderildi : 02/10/2012 03:27

(@SelimYilmaz)
Gönderiler: 82
Estimable Member
 

anladığım kadarıyla asp kodlarıyla hazırlanmış bir web siten var.

içerisine hazır bir iletişim formu koydun.

formun koldarı php ve sen bunu asp ye çevirmeye çalısıyorsun.

eğer asp derken asp.net kasdediyorsan elimdeki kodlardan işine yarayacak bişeyler bulabilirim.

ha yok asp diyorsan;

php dilini dönüştürücü programlarıyla  dönüştürmeye çalısırsan sanmıyorum ki sağlıklı olsun. teoride olsa bile pratikte bu işini görmez.

iletişim formları bildiğim kadarıyla asp içinde html içinde hazır paylaşılmışlar var internette.

Üstelik bu formlar basit bir kalıp dışında (smtp tanımlaması) ekstra fazla bir çaba harcamadan kodlayabileceğin şeyler.

 

 

<network host="mail.siteadi.com" port="587" userName="[email protected]" password="sifren"  /> 

 
Gönderildi : 02/10/2012 04:00

(@hakanozdemir)
Gönderiler: 53
Estimable Member
Konu başlatıcı
 

Peki kodu oluştururken bilgileri contact xml den çekmesini nasıl ayalayabilirm.

contact.xml aşağıdaki gibi . Bu bilgilere göre nasıl mail.asp formu oluşturabiliriz.

 

 <?xml version='1.0' encoding='utf-8'?>

<contactform 

formwidth="780"

formheight="485"

mailphpurl="mail.php"

imageurl="images/contact.jpg"

imagelink=""

imagetarget="_blank"

imagewidth="320"

imageheight="475"

imagepadding="5"

imagesolidbackgroundcolor="0x1e1a17"

imagesolidbackgroundopacity="0.95"

imagesolidbackgroundrounded="0"

imageshadowopacity="0.3"

imageshadowblur="7"

imageshadowcolor="0x000000"

imageshadowdistance="2"

imageshadowangle="90"

mailphplink="mail.php"

fieldbgcolor="0x1e1a17"

fieldbgopacity="0.8"

fieldbgrounded="0"

fieldfontcolor="0xcccccc"

fieldfontsize="12"

errorbgcolor="0xffffff"

errorbgopacity="0.95"

errorfontcolor="0x333333"

errorfontsize="12"

infobgcolor="0x1e1a17"

infobgopacity="0.95"

btnbgcolor="0x111111"

btnfontcolor="0xaaaaaa"

btnfontsize="12"

fonttype="Arial"

>

<name>

MESAJ Göndermek İçin Firma Adınızı Yazınız.

</name>

<email>

E-Mail Adresinizi Yazınız.

</email>

<message>

Mesajınızı yazınız.

</message>

<sendmail>

Gönder

</sendmail>

<errorname>

Adınızı Yazınız

</errorname>

<erroremail>

Email Adresinizi Boş Bırakmayınız

</erroremail>

<errorfield>

Mesajı boş bırakmayınız

</errorfield>

<finished>

Teşekkürler Mesajınız Alınmıştır.

</finished>

<notfinished>

E mail adresiniz hatalıdır.

</notfinished>

</contactform>

 

 
Gönderildi : 02/10/2012 16:41

(@mutlubenmutlu)
Gönderiler: 297
Reputable Member
 

Selamlar,

IIS ustunde PHP calistirabilirsiniz;

http://www.microsoft.com/web/platform/phponwindows.aspx

 

 
Gönderildi : 02/10/2012 16:47

(@hakanozdemir)
Gönderiler: 53
Estimable Member
Konu başlatıcı
 

Selamlar,

IIS ustunde PHP calistirabilirsiniz;

http://www.microsoft.com/web/platform/phponwindows.aspx

 

 

Peki bunu nereye kurmam gerekiyor. Sunucumuz natro'da ftp içine dosyamı koymam gerekiyor. Tam olarak anlamadım 

 
Gönderildi : 02/10/2012 19:48

(@mutlubenmutlu)
Gönderiler: 297
Reputable Member
 

Hosting sizin yonetiminizde mi? Sunucuya erisiminiz olmasi gerekiyor yapabilmeniz icin

 
Gönderildi : 02/10/2012 20:05

(@davuteren)
Gönderiler: 1584
Noble Member
 

XAMP kurulumunu yaparsanız ücretsiz olarak sisteminizde php çalıştırabilirsiniz.

 
Gönderildi : 03/10/2012 00:46

(@hakanozdemir)
Gönderiler: 53
Estimable Member
Konu başlatıcı
 

Sunucu natro olduğu için söylediğiniz programları kuramıyorum.

Kendi şahsi sitem php. Şirketin sitesinde php çalıştıramadığım için şirketin sitesini kendi siteme yüklesem. Şirketin giriş sitesine intro koyup Benim siteye yönlendirsem sorun çözülecek.

Ama yukarı adrees tagında benim sitenin adresi yazacak bunu nasıl önlerim. Daha önce görmüştüm böyle yapan 

 
Gönderildi : 03/10/2012 13:11

(@davuteren)
Gönderiler: 1584
Noble Member
 

Natro da bildiğim kadarıyla linux ve windows olarak hosting kurulumu yapabiliyorsun panel üzerinden buyüzden hostingi yeniden linux olarak açtığınızda problem düzelir.

 
Gönderildi : 03/10/2012 16:31

Paylaş: