View Single Post
ישן 03-06-07, 19:00   # 13
Tomer
Whatever
 
Tomer's Avatar
 
מיני פרופיל
תאריך הצטרפות: Oct 2005
הודעות: 7,039
שלח הודעה באמצעות MSN אל Tomer Send a message via Skype™ to Tomer

Tomer לא מחובר  

ציטוט:
נכתב במקור על ידי MasterT צפה בהודעה
אפשר לדעת למה?

ו-Tomer, מה הבעייה ביעילות?

יכול להיות שלא הבנתם.

אני מכין עיצוב, מקודד אותו והכל,
ניקח לדוגמה את העיצוב עם פרטים לדוגמה ששמתי:

HTML קוד:
<html>
<head>
All The Properties
<title>HiH-Hosts is good</title>
<head>
<body>
<div class="Logo"> Hosts is Good</div>
<div class="Menu"> Index | Forums</div>
<div class="text"> Welcome </text>
</body>
</html>
אני הופך את זה ל-
HTML קוד:
<html>
<head>
All The Properties
<title><!--title--></title>
<head>
<body>
<div class="Logo"><!--logo--></div>
<div class="Menu"><!--menu--></div>
<div class="text"> <!--text--> </text>
</body>
</html>
ולפני שאני אציג,
$this->tmp = str_replace("<!--logo-->", $row['logo'], $this->tmp);
וככה גם לשאר(כמובן שאפשר גם ב-array).

אשמח לדעת מה הבעייה?
שזה לא יעיל להריץ כלכך הרבה str_replace
__________________
תומר
  Reply With Quote