الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

كيفيه استدعاد exe file من داخل php

مغلق
بدأه jareh alzaman في 17 يناير 2006 · 5 رد · 2,349 مشاهدة · في منتدى تطوير المواقع بـ PHP
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

السلام عليكم

اخوتي ارجو ممن يعرف الكود الذي من خلاله استطيع استدعاد ملف exe وتشغيله من داخل صفحه Php

ان يكتبه لي ولكم جزيل الشكر

#2

اسف لو بتاخر قليلا فى الردود خلال الأيام الأخيرة :rolleyes:

انت تقصد exec و اخواتها

PHP Manual.Programe Execution Functions

Web Citizen

ShrefInLife.gif

__________

General blog : Shref In Life

#3

انصحك ايضا بهذا الرابط

http://www.php.net/system

لامر system وكنت قد شاهدة فيديو لموقع hak5 وهم يربطون الاضاءة في الغرفة بالويب من خلال ال php عن طريق امر system

#4

أخي undefinedmatrix ممكن اللينك لهذا الفيديو محتاجه في مشروع للجامعة

#5

اولا المشروع كان كالاتي يربطون الاضائة وايضا كاميرا بالويب من خلال ال php طبعا بالتحكم بامر system وكان يطفيء النور ويضيئه من الموبايل من خلال الويب وايضا يشاهد الغرفة ولا اتذكر حقا هل التحكم في الاضاءة وايضا الكاميرا في مشروع واحد او مشروعين.\

المهم

هذه هي المادة

VLC remote over cell phone

 Requirements: VLC 0.8.x Apache 1.3.x or 2.x (or other webserver that speaks to PHP, in this example running on port 81) PHP (Tested with 5.x, should work with older versions)

 Add the following files to your HTDOCS dir:

 index.html

  <a href="vlc.php">Start VLC</a><br />
  <a href="http://YOUR IP ADDRESS OR DNS:8080/">Remote</a>

 vlc.php

  <?php
  system("(start c:\vlc\vlc.exe h:\media --intf=http --fullscreen) >nul");
  ?>

 Open the VLC\http directory and replace index.html with this code:

  <?xml version="1.0" encoding="iso-8859-1" ?>
  <!DOCTYPE html PUBLIC "-//W3C//DTD  XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml10/DTD/xhtml10transitional.dtd">

  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
  <head>
	 <title>VLC media player</title>
	 <vlc id="if" param1="url_param"/>
		 <meta http-equiv="refresh" content="0;URL=/" />
	 <vlc id="end" />

	 <vlc id="control" param1="stop,pause,previous,next,add,sout,play,delete,empty,seek,fullscreen,keep,vol
 me,sort,move" />
	 <vlc id="set" param1="sout" param2="string" />
  </head>
  <body>

		 <form method="get" action="">
			 <input type="submit" name="control" value="stop" />
			 <input type="submit" name="control" value="pause" />
			 <input type="submit" name="control" value="previous" />
			 <input type="submit" name="control" value="next" />
			 <input type="submit" name="seek_value" value="-1min"/><input type="hidden" name="control" value="seek"/>
			 <input type="submit" name="seek_value" value="+1min"/><input type="hidden" name="control" value="seek"/>
		 </form><a href="/admin/?control=shutdown">X</a>

		<form method="get" action="">
				 <table>
				   <vlc id="rpn" param1="0"/>
				   <vlc id="foreach" param1="pl" param2="playlist" /> 
				   <tr class="<vlc id="if" param1="pl.index 2 % 0 =" />ligne1<vlc id="else" />ligne2<vlc id="end" />">
					  <td>
						<vlc id="if" param1="pl.current" />
						  <strong>
						<vlc id="end" />
						<a href="?control=play&item=<vlc id="value" param1="pl.index" />"> 
						<vlc id="value" param1="pl.index" /> - <vlc id="value" param1="pl.uri" /><vlc id="if"  param1="pl.uri value pl.name value strcmp"/>  (<vlc id="value" param1="pl.name" />)<vlc id="end"/></a>
						<vlc id="if" param1="pl.current" />
						  </strong>
						<vlc id="end" />
					  </td>
					</tr>
					<vlc id="rpn" param1="1 +"/>
					<vlc id="end" />
					<vlc id="if" param1="0 ="/>
					<tr class="ligne1">
					  <td>empty playlist</td>
					</tr>
					<vlc id="end"/>
				  </table>
		</form>

	  <script language="javascript" type="text/javascript">
		got_time = <vlc id="value" param1="stream_time" />;
		hours = Math.floor(got_time/ 3600);
		minutes = Math.floor((got_time/60) % 60);
		seconds = got_time % 60;
		if ( hours < 10 ) hours = "0" + hours;
		if ( minutes < 10 ) minutes = "0" + minutes;
		if ( seconds < 10 ) seconds = "0" + seconds;
		document.getElementById('time').innerHTML = hours+":"+minutes+":"+seconds;
		got_length = <vlc id="value" param1="stream_length" />;
		hours = Math.floor(got_length/ 3600);
		minutes = Math.floor((got_length/60) % 60);
		seconds = got_length % 60;
		if ( hours < 10 ) hours = "0" + hours;
		if ( minutes < 10 ) minutes = "0" + minutes;
		if ( seconds < 10 ) seconds = "0" + seconds;
		document.getElementById('length').innerHTML = hours+":"+minutes+":"+seconds;
		got_volume = <vlc id="value" param1="volume" />;
		document.getElementById( 'volume').innerHTML = Math.ceil(got_volume * 100/1024) + " %";
	  </script>
  </body>
  </html>

 Make the necessary changes to firewall / router configuration so that you can connect to the Apache and VLC web servers remotely. In our example Apache is running on port 81 while vlc web server runs on port 8080.

وهذه هي الحلقة التاسعة في الموسم الاول من موقع http://www.hak5.org

ويمكنك التصفح وانزال الفيديو بجودة عالية طبعا او المشاهدة من youtube ايضا فهم يضعون المواد به ايضا

http://wiki.hak5.org/wiki/Episode_1x09

رابط الشرح السابق

وهذا رابط الفيديو مباشر وموجود امتدادات اخري في الموقع

http://media.libsyn.com/media/hak5xvid/hak5-ep9-xvid.avi

هذا للعمل مع الكاميرا ولو تريد الاخر للتحكم في مفتاح الغرفة قل لي وانا ابحث لك عنه

واخيرا ابرأ الي الله من النساء في الفيديو او اي موسيقي به وارسلت لك الرابط لهدف التعلم فقط.

وربنا يقويك علي انهاء المشروع ولنا الحلاوة.

تم تعديل هذه المشاركة بواسطة undefinedmatrix في 8 يوليو 2007 في 02:44

#6

بعد بحث وجدت لك ايضا التحكم في اضاءة الغرفة

من هنا

http://wiki.hak5.org/wiki/Episode_1x01

الدرس الاول الموسم الاول

;-)

هذا الموضوع مغلق.

مواضيع مشابهة