View Single Post
ישן 22-01-09, 23:13   # 8
Shon12
חבר מתקדם
 
מיני פרופיל
תאריך הצטרפות: Oct 2007
הודעות: 354

Shon12 לא מחובר  

עבדתי על זה איזה 5 דקות...רעיון נחמד:
HTML קוד:
<div id="shon" style="font-size: 11px; margin-bottom: 10px;">
	<?php
	$file = fopen("folder.jpg","w");
	?>
</div>
<script>
	if (document.getElementById('shon').innerHTML.match("Permission")) 
	{
	document.write("folder Not exists!");
	}

	else if (document.getElementById('shon').innerHTML.match("directory")) 
	{
	document.write("<font color='red'>folder exists!</font>");
	}
</script>
בעצם מה שמוביל אותי לגלות אם זה אכן תיקייה או לא, זה השגיאות המוצגות לי.
הנה דוגמא קטנה: http://lasw.gamli.net/2.php
ויש לי תמונה בשם folder.jpg בשרת כמובן.
__________________
Projector Lamps

Last edited by Shon12; 22-01-09 at 23:15..
  Reply With Quote