PHP, ASP, CFM Server Behavior Code Output in DW 8- CS3- CS4
Is there any major differences in the SB code output in CS4 vs CS3 or 8? I am debating buying CS4, but have heard code is essentially the same output when using the PHP, CFM and ASP server behaviors. I essentially only use DW for the pre-built SB dynamic functions as I write my own HTML and CSS. I can hand code if needed in DW8, but wanted to check with the experts on the code output of both versions. Is there any major difference?
Thanks David. I may wait for CS5 then to see if any new features in Server Behaviors set of actions. I should hand code more, but the DW server behaviors are great for a quick basic website. I just worry they wont work completely with new versions of CFM and PHP to come.
Similar Messages
-
Problems with PHP and MySQLi server behaviors
Hi,
I'm a graphic and Web-designer with some knowledge of PHP and MySQL and I've been using Dreaweaver since very early ages in creating dynamic web projects and use the Bindings and Server behaviors quite a lot. But recently PHP has deprecated MySQL_connect since 2012 and it seems Dreamweaver isnt suporting the alternative MYSQLi server behaviors which will be the future of accessing Databases in MySQL along side with other options. Without this feature Dreamweaver is not of any use to us web-designers, since there are many Free great Editing software out there... Is the Dreamweaver team solving this problem? Or are you really planning on dropping this software? I've been using CS5.5 for a while and was planning on updating but this is a key feature and without it its not worth the investment.
Kind regards.
Eddyheduino wrote:
Hi,
I'm a graphic and Web-designer with some knowledge of PHP and MySQL and I've been using Dreaweaver since very early ages in creating dynamic web projects and use the Bindings and Server behaviors quite a lot. But recently PHP has deprecated MySQL_connect since 2012 and it seems Dreamweaver isnt suporting the alternative MYSQLi server behaviors which will be the future of accessing Databases in MySQL along side with other options. Without this feature Dreamweaver is not of any use to us web-designers, since there are many Free great Editing software out there... Is the Dreamweaver team solving this problem? Or are you really planning on dropping this software? I've been using CS5.5 for a while and was planning on updating but this is a key feature and without it its not worth the investment.
Kind regards.
Eddy
There are no plans that I know of to introduce a new set of mysqli server behaviours into DW from Adobe. They have left that to thrid party developers to bring out extensions which replace them.
What the server behaviours could do was very limiting anyway so I suspect any replacement mysqli behaviours would also be very limiting. I personally jumped into thre code and started to write my own mysqli connection files and query strings by watching a few simple tutorials on youtube - it isnt that difficult.
Look for 'php academy' on youtube - they have about 9 simple to follow tutorials on getting started with mysqli. -
Restrict Access to Page Using a password.php Instead of Server Behavior
I previously used "log in" and "restrict access to page" server behaviors for my client portal when I only had one client. I had my username and password stored in mySQL database. I recently have gained more clients that all needed to be redirected to their own customized landing page when logged in. Because of this, I used a password.php to store the usernames and passwords and to redirect to different pages. Now, I am wondering how I can restrict access to these pages (i.e. someone won't be able to access the pages by typing the url) since I will not be connecting to a database anymore.
I'm also confused by your statements.
>Now, I am wondering how I can restrict access to these pages
>(i.e. someone won't be able to access the pages by typing the url)
>since I will not be connecting to a database anymore.
It doesn't matter where you store the credentials - database or php file - the techniques for restricting access will be similar. I really don't understand why you moved away from the database when you got more clients. The more data you need to manage, the more reason to store it in a database.
After logging in, most sites direct users to the same page, yet pull user specific data from the database. If for some reason you can't do this and need to built individual pages for each client, then store the 'landing' page for the client in the php file or database. Restrict access to each page by comparing the logged in name with an allowed login name. Or a more dynamic approach would be to dynamically pass the page name to a database query that validates that it's ok for the logged in user to access.
Also, these questions are more appropriate for the app dev forum. -
ASP: BEHAVIORS/SERVER-BEHAVIORS MM-DMWR MX 2004
ASP: BEHAVIORS/SERVER-BEHAVIORS MM-DMWR MX 2004
I use dmwr mx 2004, well What statement I use to include a
webpage in an email body ?
Like for writting html email the statement:
myMail.HTMLBody = "<h1>This is a message.</h1>"
also how setup except from the message, the confirmation page
(page like email page) that shows on browser after submit/send form
data ?
asp vars how setup to show on this webpage ? I just assign to
vars the data in the email processor file ?
var1 = request.form("field1") and so on
and also how the email come , to a fixed email (mine) and to
user email (who submitted form) from the "email" html field ?
HOW TO DO THESE WITH BEHAVIORS ASP ?siegler wrote:
> From a trusted source I heard that Adobe rather pushes
PHP and CF development
> than ASP or ASP.NET server behaviors since their close
relations over the years
> with Apple.
Believe what or whom you like. Since Adobe's acquisition of
Macromedia,
it owns CF, so it would be strange for a company not to
promote its own
product. However, I see no evidence of PHP development being
"pushed" in
favour of any other server-side technology.
> I mean I hardly seen any extensions being made available
on the development of
> ASP.NET or .NET2.0
Adobe doesn't produce extensions. Third party developers do.
> I also see no books appear from any of the former MM
developers about ASP.NET
> and application with Dreamweaver.
Publishers decide what they think the market is interested
in. FWIW, my
publisher released three Dreamweaver 8 books - mine on PHP,
another on
ASP, and a third on static website development. A deliberate
decision
was taken not to do one on CF because sales of the MX 2004/CF
book were
poor, in spite of being written by some highly respected
names. I don't
know the background to the decision not to do one on ASP.NET,
but I
suspect it's because my publisher was releasing a truckload
of ASP.NET
2.0 books at the same time.
> Is Adobe trying to deliberately alienate themselves
since they are owners of
> MM and distance themselves from ASP and or ASP.NET
development under pressure
> of Apple? I mean the ties are very close.....
>
> Care to comment?
Unless it comes from an Adobe source, anything written here
is pure
speculation.
David Powers, Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/ -
Parse errors from server behaviors
I have created an input form for a mysql/php database set up on my testing server with a set of fields in a repeat region. All the fields are properly displayed when I switch to LiveView or browser preview. I am, however, having the following problem with server behaviors:
If I add “Display Total Records” at the bottom, it displays just fine, but if I try to add the behaviors for previous page, next page, starting record number or ending record number, I get this:
Parse error: syntax error, unexpected ';' in C:\XAMPP\htdocs\LEAP\admin.php on line 81
Lines 81-84 read:
$totalPages_VolApp = ceil($totalRows_VolApp/$maxRows_VolApp = 10;
$pageNum_VolApp = 0;
if (isset($_GET['pageNum_VolApp'])) {
$pageNum_VolApp = $_GET['pageNum_VolApp'];
I also cannot switch the repeat region to “show all records.” This results in a similar syntax error.
What is a parse error? What problem is indicated? thanks.What is a parse error? What problem is indicated? thanks.
It's an error in code. The error is in the following line:
$totalPages_VolApp = ceil($totalRows_VolApp/$maxRows_VolApp = 10;
That line is nonsense in PHP terms. It has almost certainly been created as a result of not removing server behavior code correctly when making changes to a page. You can't edit PHP code simply by selecting dynamic text in Design view and deleting it. To remove a server behavior cleanly, you need to select its name in the Server Behaviors panel and click the minus button.
The code you have posted here looks so badly corrupted, I suggest you start the page again. -
Is there any way to add dynamic parameter in sql without breaking Server Behavior
Hello, i'm building multiple language site.. i would like to know if there is possible way to add dynamic parameter in my query, without break the server behavior.
For example:
mysql_select_db($database_dxc_conn, $dxc_conn);
$query_Recordset1 = "SELECT article.articleName, article.articleDesc FROM article";
$Recordset1 = mysql_query($query_Recordset1, $dxc_conn) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
will become something like this:
$additionalSQL=", article.articleName_en";
mysql_select_db($database_dxc_conn, $dxc_conn);
$query_Recordset1 = "SELECT article.articleName, article.articleDesc $additionalSQL FROM article";
$Recordset1 = mysql_query($query_Recordset1, $dxc_conn) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
this is just an example, my real scenarion is far more complicated than this... however this kind of approach break the server behavior and force to do hand-coding...
i would like to know if there's better way to do such thing like this...viktor.iwan wrote:
Hello, i'm building multiple language site.. i would like to know if there is possible way to add dynamic parameter in my query, without break the server behavior.
Server behaviors are simply bits of boilerplate code automatically generated by Dreamweaver. Editing the code doesn't "break" it (unless your edits are badly written). However, once you edit the code, Dreamweaver no longer recognizes it, so you lose the ability to drag recordset results from the Bindings panel.
If you want to edit server behavior code, the best way to handle it is to lay out your page as you want, using the Bindings panel. Once everything has been done, only then edit the server behavior code. -
DW CS3 - Server Behaviors effects blind - it blinks when loading
Hi,
I use a window xp operating system. I created a floating div on an html page, and inside the div I inserted a table with 2 columns. In the left column I inserted a photo and in the right a link to 'enter' the site. I gave the photo a server behavior effect to 'blind down' the photo on upload. The issue is that when the page first uploads, the photo blinks for a split second, before it begins to start the 'blind down' effect. It looks bad that when a user gets to the page for the first time that same photo blinks quickly before it starts the effect. How do I stop it from blinking before it starts the effect?
This is the link to the website. Click on the 'showdown racing' box to see the effect blink : http://mysticdesignworks.com/index.html
Thanks!BiggestDave wrote:
> Site definitions are setup as per instruction, however,
when opening the
> send.php or view.php pages, the server behavior is lost
in the applications
> tab. If I try to set them up on that tab again, it takes
me to a new site def.
> session.
The video tutorial I have created at the following location
shows how to
define up a PHP site in Dreamweaver:
http://experts.na3.acrobat.com/phplocalsitewin/
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of
ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/ -
I have set up the PHP tutorial from
http://www.adobe.com/devnet/dreamweaver/articles/setting_up_php.html.
Site definitions are setup as per instruction, however, when
opening the send.php or view.php pages, the server behavior is lost
in the applications tab. If I try to set them up on that tab again,
it takes me to a new site def. session.
If I create a new PHP page, the behaviors are there, I can
create a connCafeTownsend DB connection, but when I add a RS, the
Site def. is gone again.BiggestDave wrote:
> Site definitions are setup as per instruction, however,
when opening the
> send.php or view.php pages, the server behavior is lost
in the applications
> tab. If I try to set them up on that tab again, it takes
me to a new site def.
> session.
The video tutorial I have created at the following location
shows how to
define up a PHP site in Dreamweaver:
http://experts.na3.acrobat.com/phplocalsitewin/
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of
ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/ -
I'm using windows DW 2014.1 cc. I'm following lynda.com tutorials to build a website database with PHP and MySQL. I learned I have to download Adobe Extension Mngr to active DATABASE, BINDING, SERVER BEHAVIOR panels, which I've done. BUT NOW I'VE BEEN ADVISED NOT TO USE THESE TOOLS for new development. If this is the truly the case, then WHAT TOOLS DO I USE to develop a website that has a database?
then WHAT TOOLS DO I USE to develop a website that has a database?
Besides the tools you would already need for a system using server behaviors (web server, PHP, MySQL, phpMyAdmin) the only extra tool you need is your own brain.
A lot of people are disappointed by the lack of database tools in DW now, but really it's much better this way. You can never achieve better than a rinky-dink dynamic website using server behaviors. The code Dreamweaver dynamic behaviors create is really terrible. (I'm not insulting the fine folks who wrote the feature. It's just a consequence of automated code.) You can write better, simpler, more maintainable code yourself, and over time you will improve. With server behaviors you cannot improve. you get stuck in database kindergarten. -
Server behaviors missing? Code still there
Occasionally, while working on dynamic pages, I make some
changes. After
uploading the page, I often find that the page works but when
I edit the
page, I find that parts of it are missing. The code is still
there but
the item is no longer in the "server behavior" window.
Is there an easy way to get this stuff back so that I can see
it in the
window?
This seems to happen more often these days (these days being
since
8.0.2) This is probably anecdotal but it is happening more
often.
Ideas welcome
ThanksIts difficult to say whats patterened, as it depends on the
server behavior.
Typically you would have something like
SELECT * FROM tablename WHERE id = 1
It would look for SELECT and FROM to find the behavior, as
the rest of the
SQL statement are parameters that can be altered. This is a
very simplified
example, but you get the idea.
Changing code that can't be changed as a parameter in the
dialog boxes, or
changing the order of code will cause DW to "lose" the
behavior.
Gareth
http://www.phploginsuite.co.uk/
PHP Login Suite V2 - 34 Server Behaviors to build a complete
Login system. -
Update record server behavior preventing passage of form parameter in php
I have a multi-page survey set up in php. I am trying to pass a form variable to the next page, but the 'update record' server behavior is preventing me from passing the variable to the next page. I have tried including the variable as a parameter in the url, but this is not working either. Please help.
Can you not pass it onto the next page using a SESSION?
As an example say you want to pass the information from a form field with the name 'company' to another page.
At the top of the page that the form is submitted to you start a SESSION - <?php session_start(); ?> - then you collect the information from the form as normal BUT using a SESSION variable - $_SESSION['company']
The resulting php code might look like below:
<?php
session_start();
$_SESSION['company'] = $POST['company'];
?>
Then you can pass the SESSION variable on to as many page as you like:
So for instance the next page in the chain needs <?php session_start(); ?> at the top again to initiate a SESSION.
Then the resulting code may look like below. The information from the form field 'company' is being passed from page to page.
<?php session_start(); ?>
<?php
if(isset($_SESSION['company'])) {
echo $_SESSION['company'];
else {
echo "Company name is not set";
?> -
Asp server behavior in dreamweaver 5
HI
Is there any way to get extentions for recordset server behavior and insert record behavior for asp for dreamweaver 5Yes it is the current version. Any help would be greatly appreciated.
Thank you -
Php form - server behavior form not there!
I figured this out....form name is different than form ID.
When I go into the server behavior in the authenticate user -
login user the form name I have labeled in the properties windows
in not showing up. It only says <unnamed>, however it is
named login_form. Any ideas? I am stumped.
I finally figured out the mysql stuff, to get stuck on this
small detail.A.Translator wrote:
> The form on this page returns a 'form is not filled in
properly'
> response
http://www.spinsister.nl/zandbak/Rood/contact.htm
This is the line that's causing the trouble:
> $comments = $_POST['comments'] ;
Change it to this:
$comments = $_POST['opmerkingen'];
Then it should work.
David Powers
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "Foundation PHP 5 for Flash" (friends of ED)
http://foundationphp.com/ -
CS6 Dreamweaver using PHP & MySQL - Delete Record Server Behavior?
When I try to insert the Delete Record server behavior. I get an error message about a DeleteRecord.js file, which seems to be missing or defective. I cannot use the server behavior. I have a file that I developed using CS5, and it does indeed delete the record, but does not proceed to the destination I want. I cannot change that except in the server behavior, so I'm stuck. I have noticed that server behaviors seem to disappear without apparent cause, as it seems to have in this case. I will appreciate any suggestions! Is there any way to embed a call to a target page manually? All is working WITHOUT the server behavior appearing, but I want to go to a confirmation display page that shows the record is indeed deleted, and we just return to the (now blank) delete confirmation page. That'll drive a user bonkers!
Thanks!
Delete Record in CS6 Dreamweaver using PHP & MySQL?Well, your error message is self-explanatory.
DW stores ServerBehaviors in 'Configuration' folder in installation directory. If one of the behavior JS files is missing/ corrupt, you'll see the error message you just did.
I've uploaded a functional, proper version of DeleteRecord.js onto my site for you to download. Here's the link:
http://www.sudarshan.me/adobeforum/dw/app/behavior-js/DeleteRecord.zip
Download this file, extract it and put DeleteRecord.js file in your installation directory as follows. If prompted, 'replace' your local copy:
Mac: Applications > Adobe Dreamweaver CS6 > Configuration > ServerBehaviors > PHP_MySQL
Windows: C:\Users\Your User Name\AppData\Roaming\Adobe\Dreamweaver CS6\[language]\Configuration\ServerBehaviors\PHP_MySQL
It should work as expected.
If that still doesn't solve the problem, reset your DW preferences and cache and try doing it. Follow the instructions here to reset cache: http://forums.adobe.com/thread/494811
Let us know how it goes.
-ST -
Is the "PHP Email Server Behaviors Pack" extension legit?
There are two comments for the extension PHP Email Server
Behaviors Pack V1.1.1, both of which indicate that this is not a
legit product.
Has anyone purchased this extension and had success with it?
davidThe responses on the Exchange indicate that the users there
bought it and
got no product. You will notice it didn't have company
approval. I would
stay away from it, if it were me. There is an email address
listed on the
product page for support .. you might try writing to them and
asking some
questions.
Nancy
"elvis is dead" <[email protected]> wrote in
message
news:fjs2f0$pqc$[email protected]..
> There are two comments for the extension PHP Email
Server Behaviors Pack
> V1.1.1, both of which indicate that this is not a legit
product.
>
> Has anyone purchased this extension and had success with
it?
>
> david
>
Maybe you are looking for
-
Format of WCS template file for mac-address filtering
I am looking for the format of the template file used for WCS Mac-address filtering. I need to know how the fields are delimited within the file.
-
How do I connect speakers to my Mac Mini
I am a new Mac user switching from a PC and I am wondering if there is a way to connect my 5.1 surround sound system to the Mac Mini?
-
Is there a way to lock my MAC so it can't be opened without a special password?
Is there a way to lock my MAC so it can't be opened without a special password?
-
Referencing templates with Parameters
Hi All, I need to access templates based on the language type. For example, If I have the parameter selected as Japanese then I need to select the template which is a template in Japanese. Is there any way that we have a parameter list with all the l
-
Automatically Cancel Message after error detected in Mapping
Hello experts, I have a message mapping that does some validation on data from sender (file) and if not valid, the mapping errors out as I generate an alert. Production support then manually cancels the message from SXMB_MONI. My question is: Is ther