/    Sign up×
Community /Pin to ProfileBookmark

Help – editing getting a bit difficult.

With the increasing complexity of the sites I support, it is getting a bit difficult to edit things now.
For some time I have been using elements of simple PHP in web pages, mostly just embedded in the html; to do simple things. But as per normal, this is getting more complex with time, and the latest changes mean that it will just not be possible to WYSIWYG edit the web pages because there is so much php that editors are now just not displaying anything correctly.
Is it possible to install a PHP interpreter in an editor? I normally modify the code itself and so could use notepad, but for quickly modifying things I very often use more complex editors like Fronpage and Dreamweaver for their WYSIWYG interfaces. This is not an option, I must be able to use these editors. And of course it is these interfaces that are not functioning correctly with the php.

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@MrCoderJan 30.2007 — At the company where I work it is required that all pages that the designers will edit should be displayed correct within dreamweaver.

You can achive this by breaking out of PHP to display HTML.

Try not to use echo for any HTML markup, only for text data.

For example..

[code=php]
echo "<td>".$myData."</td>";
[/code]


Will break Dreamweaver, where as..

[code=php]
<td><?php echo $myData; ?></td>
[/code]


Wont break within dreamweaver.
×

Success!

Help @SuzanneB 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.25,
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,
)...