By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,965 Members | 1,702 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,965 IT Pros & Developers. It's quick & easy.

is there a macromedia dreamweaver equivilant for PHP

P: n/a
I am a begginer with not too much time on my hand. I do some html
pages with Dreamweaver and with some minor Flash actionscript and I
have a minor ability (with the help of lots of tutorials) to do some
PHP.

I love Dreamweaver MX since it realy simplifies the visual part of the
process of making a page and also help with code typos since it
generates alot of the basic code automatically (for example, I don't
have to know how to write a relative link or an absolute link;
Dreamweaver figures taht out for me. Another example, I don't have to
type a link at all, the interface helps me find the target and
generates the link for me).

When I try to build a page with PHP, I have a very hard time getting
the visual part of the page correctly (and make many typo mistakes in
the code. Also, since I am not (and don't have the time to be) an
experienced or a pro, I have hard time remembering attributes in html
and php (which usually, dreamweaver provides automatically).
I WAS WONDERING IF ANYONE HAS SPECIFIC SUGGESTIONS OR KNOWS OF A
PROGRAM SIMILAR TO DREAMWEAVER, BUT MADE FOR PHP RATHER THAN FOR
HTML!!!!!!!
One thing I tried to do to solve this problem was to create part of
the page with dreamweaver and than cut and past the html code into the
php page... this way I dont have to deal with issues such typing the
links correctly, typing the color codes correctly, etc, etc...

the problem is that the quatation marks are different for php and
html. So I spend all of my time fixing quatation mark typos.
Jul 16 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
davidshook wrote:
[...]
the problem is that the quatation marks are different for php and
html. So I spend all of my time fixing quatation mark typos.


How are you inserting your HTML in the PHP files?

Suppose you have
<?php
// ... line x
// ... line y
?>

and want to insert the HTML between line x and line y.

I'd do like this:
<?php
// ... line x
?>
<!-- inserted HTML here, outside the <?php ?> tags -->
<a href="URL">link</a>
<!-- end inserted HTML -->
<?php
// ... line y
?>

so that I wouldn't need to change anything of the HTML.
--
"Yes, I'm positive."
"Are you sure?"
"Help, somebody has stolen one of my electrons!"
Two atoms are talking:
Jul 16 '05 #2

P: n/a
try

http://www.phpide.com/php_coder/home.htm

you have to have php engine installed.. and you can work "side by side" with
dreamweaver

carramba
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.514 / Virus Database: 312 - Release Date: 2003-08-28
Jul 16 '05 #3

P: n/a

"davidshook" <it********@hotmail.com> wrote in message
news:c7**************************@posting.google.c om...
I am a begginer with not too much time on my hand. I do some html
pages with Dreamweaver and with some minor Flash actionscript and I
have a minor ability (with the help of lots of tutorials) to do some
PHP.

I love Dreamweaver MX since it realy simplifies the visual part of the
process of making a page and also help with code typos since it
generates alot of the basic code automatically (for example, I don't
have to know how to write a relative link or an absolute link;
Dreamweaver figures taht out for me. Another example, I don't have to
type a link at all, the interface helps me find the target and
generates the link for me).

When I try to build a page with PHP, I have a very hard time getting
the visual part of the page correctly (and make many typo mistakes in
the code. Also, since I am not (and don't have the time to be) an
experienced or a pro, I have hard time remembering attributes in html
and php (which usually, dreamweaver provides automatically).
I WAS WONDERING IF ANYONE HAS SPECIFIC SUGGESTIONS OR KNOWS OF A
PROGRAM SIMILAR TO DREAMWEAVER, BUT MADE FOR PHP RATHER THAN FOR
HTML!!!!!!!
One thing I tried to do to solve this problem was to create part of
the page with dreamweaver and than cut and past the html code into the
php page... this way I dont have to deal with issues such typing the
links correctly, typing the color codes correctly, etc, etc...

the problem is that the quatation marks are different for php and
html. So I spend all of my time fixing quatation mark typos.


How long have you been using Dreamweaver? I think Dreamweaver MX is an
excellent tool for PHP development - but if you have the money, then take a
look at the Zend Studio (by the people who do the Zend Engine for PHP) at
http://www.zend.com

I've been using Dreamweaver MX for about six months now and have no problems
with it - Fair enough it doesn't have the PHP syntax but it does have Cold
Fusion syntax (which carry some similarities with environment variables).

Do you realise there is a "Code View" and "Design View" - The former shows
you a page where you can insert your PHP code (inside tags) while the latter
is the appearance of the page (as seen through static HTML).

In my templates, I have the following at the very top
<? include_once("$_SERVER[DOCUMENT_ROOT]/../include/standard.fip");
$parentScript=explode(".", "$_SERVER[PHP_SELF]");
$parentScriptName=array_shift($parentScript);
include("$INCLUDE$parentScriptName.php");
?>

standard.php has a set of functions that I use in most of my scripts (things
like cleansing form input and various debug functions that I can easily
remove later).

I write my PHP in to a file with the same name as my html file in a
subfolder called "../include" All my functions are contained there... That
way, my main html file designed by Dreamweaver just needs to call the
function...

For example, I have a file called "../include/countries.php" It has a list
of countries and I use GeoIP to help me determine where a client PC is
calling from (their country). In countries.php, there's a function called
selectFunction(); which creates a select box of every country in the world,
but automatically highlights the country found using GeoIP.

When I design my HTML, all I need to do to display the select pulldown box
is hardcode "selectFunction();"

I think you just need to organise yourself better and if possible, have any
changes to your workspace automatically ftp'd to your PHP/webserver when you
save it on dreamweaver - that way you can test your results instantly.

Jul 16 '05 #4

P: n/a
it********@hotmail.com (davidshook) wrote in message
news:<c7**************************@posting.google. com>...

I WAS WONDERING IF ANYONE HAS SPECIFIC SUGGESTIONS OR KNOWS OF A
PROGRAM SIMILAR TO DREAMWEAVER, BUT MADE FOR PHP RATHER THAN FOR
HTML!!!!!!!


My personal favorite is still EditPlus:

http://www.editplus.com/

But I am atypical in one major respect; I seem to make relatively
small number of mistakes, so I don't really do much debugging, which
EditPlus does not allow you to do.

Here are some of the development environments you might find of
interest:

PHPEdit: http://www.phpedit.com/
Free. Windows only.

ActiveState Komodo: http://www.activestate.com/Products/Komodo/
$29.95 (Personal Edition); 21-day trial license available.
Windows and Linux.

Zend Studio: http://www.zend.com/store/products/zend-studio.php
$195; free Personal Edition available (runs fully finctional
for 21 days, then turns off advanced features).
Windows, Linux, MacOS X.

NuSphere PHPEd: http://www.nusphere.com/products/
$299; trial version available.
Windows and Linux.

Cheers,
NC
Jul 16 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.