Jump to content
Son zamanlarda artan kullanıcı hesap hırsızlıkları sebebiyle tüm kullanıcılara şifre sıfırlama maili gönderilmiştir. Lütfen güveli şifreler seçiniz. Mevcut e-mail adresinize erişemiyorsanız, en aşağıdaki destek linkinden bize ulaşınız. ×

Wordpress 'de Bat Dosyası çalıştırma ?


Recommended Posts

Selamin Aleyküm  Cümleten Sizlere Kücük Bir sorum olacaktır localhost olarak makinama Server yapcam ve sonra Wordpress kurulumu yapcam hazırladığım bir Temada Ben 1 Resime Link vercem Oda Localhost içindeki Bir Bat Dosyasını çalıştırmak istiyorum Bunu nasıl yapabilirim bu konuda bana yardım edebilecek Birisi varmıdır Sayfada ?

Link to comment
Share on other sites

Spoiler

<?php
<script language=JScript>

function launchProgram()
{
 pclose(popen("start /B deneme.bat", "r")); die();
}

</script>
</head>


<body>

<form>
<a href="#" onClick="launchProgram()"> deneme </a>
</form>

?>

Şeklinde yaptım Doğrumudr bilmiyorum ya Bana 1 Sayfa yaparmısız Rica etsem :)

Link to comment
Share on other sites

  • 2 hafta sonra ...

Resim her yüklediğinde bat dosyasını çalıştırmak istiyor isen 
Resimi php ile get_file_contents   oku bu işlemden  önce veya sonra exec ile bat dosyasını çalıştır en son readfile ile get_file_contents ile okuduğun resim ekran yaz.

resim direk part yolunu kullanır isen iş yapmaz php dosyasını yolunu ile resim yüklemen gerekir. 

Link to comment
Share on other sites

Biraz Araştırdım Şöyle Birşey yaptım ama Çalıştıramadım 
İndex php İçine  Altaki Kodu yazdım Sorunsuz Çalıştır 

<?php 
 

$Link='oyn.php';

enho '<a href=" ',Link,' " > Oyun Aç </a>;

?>

Ve Sonra oyn.php İçine Bunu yazdım

<?php 
 

exec( 'c:\\bat\\1.bat');

?>

Bu Şekilde Yaptım İndex Oyun Aç deyince Oyn.php Girmesi lazım orada ise Anladığım kadari ile 1.bat Dosyasın Çalışması lazım Değilmi Bana bu konuda Kim yardım edebilir.

Link to comment
Share on other sites

  • 2 ay sonra...

Kulladığın hosting eğer "exec" komutunu kullanmana izin vermiyorsa çalışmaz. Kaldı ki eğer bir hosting firmasından paket aldıysan zaten çalıştırmana da izin vermezler. Kendine ait bir VDS yada VPS olması gerekir.

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...