/    Sign up×
Community /Pin to ProfileBookmark

there has to be a better way

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?

to post a comment
PHP

4 Comments(s)

Copy linkTweet thisAlerts:
@MrCoderOct 15.2007 — Break out of PHP to display HTML.

For example if you were going to do this...
[code=php]
<?php
echo "<a href="".$my_src."">Click here</a>";
?>
[/code]


Then do this instead..
[code=php]
<a href="<?php echo $my_src; ?>">Click Here</a>
[/code]

This way dream weaver will be able to display the HTML without the need of server side includes.
Copy linkTweet thisAlerts:
@patudzuOct 15.2007 — or <a href="<?= $my_src ?>">Click Here</a>
Copy linkTweet thisAlerts:
@kashaauthorOct 15.2007 — cheers all, thanks for the tip.
Copy linkTweet thisAlerts:
@MrCoderOct 15.2007 — or <a href="<?= $my_src ?>">Click Here</a>[/QUOTE]

Only if "short_open_tag" is enabled.
×

Success!

Help @kasha spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...