bluebubble
01-28-2008, 11:43 AM
i have a web site which has difference languages and many variabls and image locations are codes with location <?php echo $lang?>/image.gif/
As dreamweaver cannot echo the value of $lang it simply can't show the image. Is there any way to show the image? Thanks.
crazylane
01-28-2008, 12:17 PM
If you have a testing server setup you could use the "Live Data View".
killapix
01-28-2008, 12:19 PM
<?php echo "<img src='/image_path/image.gif' />";
should work.?
azizny
01-28-2008, 07:34 PM
Dreamweaver is used to design PHP, not run it.
Peace,
Jay August
01-28-2008, 08:25 PM
Dreamweaver is used to design PHP, not run it.
Peace,
That is incorrect, it can output echo's and includes and it can display dbase/server data in Live Mode, as mentioned above.
larwilliams
01-31-2008, 11:55 AM
Dreamweaver will only run PHP in Live Mode. Othewise, the code above will simply show a ? mark in Design View.
Dreamweaver will only run PHP in Live Mode. Othewise, the code above will simply show a ? mark in Design View.
Not completely true of newer versions. DW will show includes and simple functions in preview. It won't run complicated PHP or connect to a DB unless in live mode.
larwilliams
01-31-2008, 12:26 PM
You are completely right. Perhaps I should have stated my advice more clearly. It will show include() and such in Design View regardless of Live Mode. Complex stuff involving fetching/displaying data (like SQL queries) only works in Live Mode :)