Click to See Complete Forum and Search --> : there has to be a better way


kasha
10-15-2007, 09:05 AM
hi everyone, i'm working in Dreamweaver with pages that have php scripts, and each time i want to see a change in my work i have to re-upload the page. is there a way i can view the pages on preview?

MrCoder
10-15-2007, 09:34 AM
Break out of PHP to display HTML.

For example if you were going to do this...

<?php
echo "<a href=\"".$my_src."\">Click here</a>";
?>


Then do this instead..

<a href="<?php echo $my_src; ?>">Click Here</a>

This way dream weaver will be able to display the HTML without the need of server side includes.

patudzu
10-15-2007, 09:38 AM
or <a href="<?= $my_src ?>">Click Here</a>

kasha
10-15-2007, 09:47 AM
cheers all, thanks for the tip.

MrCoder
10-15-2007, 03:11 PM
or <a href="<?= $my_src ?>">Click Here</a>

Only if "short_open_tag" is enabled.