Skip to main content
Participating Frequently
June 24, 2011
Question

can you run dreamweaver 11.5 with older versions of php?

  • June 24, 2011
  • 1 reply
  • 1197 views

I believe I understand from this group that dreamweaver 11.5 needs to run with php 5.3.  I have version 5.1.6.  Is there a way to edit a config file and run with an  older version of php?  And is so, could you please name the config file?

Thanks!!

This topic has been closed for replies.

1 reply

Community Expert
June 24, 2011

tx.us-patty wrote:

I believe I understand from this group that dreamweaver 11.5 needs to run with php 5.3.  I have version 5.1.6.  Is there a way to edit a config file and run with an  older version of php?  And is so, could you please name the config file?

Thanks!!

Dreamweaver is not dependant on the PHP version of the server.  PHP 5.3 support was added because people asked for it.  However, because support for a newer version of the language is in there, you should reference the PHP manual from time to time to ensure that the command exists in the older version and that it works in the same way.

I know it's not always feasible but you should consider trying to update your scripts to work with PHP 5.3 because PHP 5.2 (which is newer than yours) reached its end of life back in December.  For all intensive purposes PHP 5.3 was released in June of 2009 which is 5 years ago.  Just something to consider.

So in short yes you are safe and you can run your version of PHP.

Participating Frequently
June 24, 2011

So i have code that was stripped down to 3 print statements.  Inside the print statements there is some html code.  With the dreamweaver 8, i see the output from the html code only as expected.  When I run with dreamweaver 11.5, I see the html code and all the "; print \n that was also in the statements like it is not interpreting the php correctly.  I backed out to dreamweaver 8 and it works again.  I'm at a loss as to why it stopped working with the upgrade.  Here's the code that's run on submit from the html page with the php in bold.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/template.dwt" codeOutsideHTMLIsLocked="false" -->
<!-- DW6 -->
<head>
<!-- Copyright 2005 Macromedia, Inc. All rights reserved. -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<!-- InstanceBeginEditable name="doctitle" -->
<title>Texas Ethics Commission - Results of Query:</title>
<!-- InstanceEndEditable -->
<link rel="stylesheet" href="../3col_leftNav.css" type="text/css" />
<link rel="stylesheet" href="../print.css" type="text/css" media="print" />

<style type="text/css">
<!--
.style2 {
    font-size: 12px;
    color: #000000;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
   
}
.style32 {
    color: #990000;
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
}

.style9 {
    color: #660000;
    font-family: "Times New Roman", Times, serif;
    font-size: small;
}
.style25 {
    color: #000000;
    font-size: 12px;
    font-family: Arial, Helvetica, sans-serif;
}
.style16 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    color: #990000;
    font-weight: bold;
}
   
-->
</style>
<script language="JavaScript">
<!--
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d)&&d.all) x=d.all; for (i=0;!x&&i<d.forms.length;i++) x=d.forms;
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers.document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a)&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
   var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
   if (a.indexOf("#")!=0){ d.MM_p=new Image; d.MM_p[j++].src=a;}}
}

//-->
</script>
<!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable -->
</head>
<body onLoad="MM_preloadImages('../images/texas_banner_r2_c2_f2.jpg','../images/texas_banner_r2_c4_f2.jpg','../images/texas_banner_r2_c6_f2.jpg','../images/texas_banner_r2_c8_f2.jpg','../images/texas_banner_r2_c10_f2.jpg','../images/texas_banner_r2_c12_f2.jpg');">

<div id="masthead">
<!--masthead-->
<table border="0" cellpadding="0" cellspacing="0" width="763">
<!-- fwtable fwsrc="../images/texas_banner.png" fwbase="../images/texas_banner.gif" fwstyle="Dreamweaver" fwdocid = "1577967612" fwnested="0" -->
  <tr>
   <td><img src="../images/spacer.gif" width="178" height="1" border="0" alt=""></td>
   <td><img src="../images/spacer.gif" width="86" height="1" border="0" alt=""></td>
   <td><img src="../images/spacer.gif" width="12" height="1" border="0" alt=""></td>
   <td><img src="../images/spacer.gif" width="91" height="1" border="0" alt=""></td>
   <td><img src="../images/spacer.gif" width="7" height="1" border="0" alt=""></td>
   <td><img src="../images/spacer.gif" width="85" height="1" border="0" alt=""></td>
   <td><img src="../images/spacer.gif" width="9" height="1" border="0" alt=""></td>
   <td><img src="../images/spacer.gif" width="71" height="1" border="0" alt=""></td>
   <td><img src="../images/spacer.gif" width="8" height="1" border="0" alt=""></td>
   <td><img src="../images/spacer.gif" width="59" height="1" border="0" alt=""></td>
   <td><img src="../images/spacer.gif" width="10" height="1" border="0" alt=""></td>
   <td><img src="../images/spacer.gif" width="42" height="1" border="0" alt=""></td>
   <td><img src="../images/spacer.gif" width="105" height="1" border="0" alt=""></td>
   <td><img src="../images/spacer.gif" width="1" height="1" border="0" alt=""></td>
  </tr>

  <tr>
   <td colspan="13"><img name="../images/texas_banner_r1_c1" src="../images/texas_banner_r1_c1.gif" width="763" height="117" border="0" alt=""></td>
   <td><img src="../images/spacer.gif" width="1" height="117" border="0" alt=""></td>
  </tr>
  <tr>
   <td rowspan="3"><img name="../images/texas_banner_r2_c1" src="../images/texas_banner_r2_c1.gif" width="178" height="26" border="0" alt=""></td>
   <td rowspan="2"><a href="../tec/about.htm" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('../images/texas_banner_r2_c2','','../images/texas_banner_r2_c2_f2.gif',1);"><img name="../images/texas_banner_r2_c2" src="../images/texas_banner_r2_c2.gif" width="86" height="23" border="0" alt=""></a></td>
   <td rowspan="3"><img name="../images/texas_banner_r2_c3" src="../images/texas_banner_r2_c3.gif" width="12" height="26" border="0" alt=""></td>
   <td rowspan="2"><a href="../tec/whatsnew.htm" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('../images/texas_banner_r2_c4','','../images/texas_banner_r2_c4_f2.gif',1);"><img name="../images/texas_banner_r2_c4" src="../images/texas_banner_r2_c4.gif" width="91" height="23" border="0" alt=""></a></td>
   <td rowspan="3"><img name="../images/texas_banner_r2_c5" src="../images/texas_banner_r2_c5.gif" width="7" height="26" border="0" alt=""></td>
   <td rowspan="2"><a href="../tec/contact.htm" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('../images/texas_banner_r2_c6','','../images/texas_banner_r2_c6_f2.gif',1);"><img name="../images/texas_banner_r2_c6" src="../images/texas_banner_r2_c6.gif" width="85" height="23" border="0" alt=""></a></td>
   <td rowspan="3"><img name="../images/texas_banner_r2_c7" src="../images/texas_banner_r2_c7.gif" width="9" height="26" border="0" alt=""></td>
   <td rowspan="2"><a href="../tec/sitemap.htm" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('../images/texas_banner_r2_c8','','../images/texas_banner_r2_c8_f2.gif',1);"><img name="../images/texas_banner_r2_c8" src="../images/texas_banner_r2_c8.gif" width="71" height="23" border="0" alt=""></a></td>
   <td rowspan="3"><img name="../images/texas_banner_r2_c9" src="../images/texas_banner_r2_c9.gif" width="8" height="26" border="0" alt=""></td>
   <td rowspan="2"><a href="../tec/links.htm" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('../images/texas_banner_r2_c10','','../images/texas_banner_r2_c10_f2.gif',1);"><img name="../images/texas_banner_r2_c10" src="../images/texas_banner_r2_c10.gif" width="59" height="23" border="0" alt=""></a></td>
   <td colspan="3"><img name="../images/texas_banner_r2_c11" src="../images/texas_banner_r2_c11.gif" width="157" height="1" border="0" alt=""></td>
   <td><img src="../images/spacer.gif" width="1" height="1" border="0" alt=""></td>
  </tr>
  <tr>
   <td rowspan="2"><img name="../images/texas_banner_r3_c11" src="../images/texas_banner_r3_c11.gif" width="10" height="25" border="0" alt=""></td>
   <td><a href="../tec/help.htm" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('../images/texas_banner_r3_c12','','../images/texas_banner_r3_c12_f2.gif',1);"><img name="../images/texas_banner_r3_c12" src="../images/texas_banner_r3_c12.gif" width="42" height="22" border="0" alt=""></a></td>
   <td rowspan="2"><img name="../images/texas_banner_r3_c13" src="../images/texas_banner_r3_c13.gif" width="105" height="25" border="0" alt=""></td>
   <td><img src="../images/spacer.gif" width="1" height="22" border="0" alt=""></td>
  </tr>
  <tr>
   <td><img name="../images/texas_banner_r4_c2" src="../images/texas_banner_r4_c2.gif" width="86" height="3" border="0" alt=""></td>
   <td><img name="../images/texas_banner_r4_c4" src="../images/texas_banner_r4_c4.gif" width="91" height="3" border="0" alt=""></td>
   <td><img name="../images/texas_banner_r4_c6" src="../images/texas_banner_r4_c6.gif" width="85" height="3" border="0" alt=""></td>
   <td><img name="../images/texas_banner_r4_c8" src="../images/texas_banner_r4_c8.gif" width="71" height="3" border="0" alt=""></td>
   <td><img name="../images/texas_banner_r4_c10" src="../images/texas_banner_r4_c10.gif" width="59" height="3" border="0" alt=""></td>
   <td><img name="../images/texas_banner_r4_c12" src="../images/texas_banner_r4_c12.gif" width="42" height="3" border="0" alt=""></td>
   <td><img src="../images/spacer.gif" width="1" height="3" border="0" alt=""></td>
  </tr>
</table>
</div>
<!--end masthead-->
 
<div id="pagecell1">
<!--pagecell-->
<div id="navBar">   
<!--navBar-->
<div id="sectionLinks">   
<!--sectionLinks-->
        <ul>
          <li>
            <div align="left"><a href = "../index.html"><span class="style2">Home</span></a></div>
          </li><li>
              <div align="left"><a href = "../main/search.htm"><span class="style2">Search Campaign Finance and Lobby Reports</span></a></div>
          </li>
          <li>
            <div align="left"><a href = "../main/file.htm"><span class="style2">File Reports Electronically</span></a></div>
          </li>
          <li>

          <div align="left"><a href="../main/forms.htm"><span class="style2">Forms and Instructions </span></a></div>
          </li>
          <li>

          <div align="left"><a href="../main/research.htm"><span class="style2">Opinions, Statutes
                & Rules </span></a></div>
          </li>
          <li>
          <div align="left"><a href="../main/guides.htm"><span class="style2">Publications and Guides</span></a></div>
          </li>         
         
          <li>           
            <div align="left"><a href="../main/training.htm"><span class="style2">Online Ethics Training </span></a>
            </div><hr />
          </li><li><div align="center">
        <span class="style32">Filing Information For:</span>
        <table width="78%" border="0" cellpadding="0">
          <tr>
           
            <th scope="row"><div align="left"><a href="../main/coh.htm"><span class="style25">Candidates and Officeholders</span></a></div></th>
          </tr>
          <tr>
            <th scope="row"><div align="left"><a href="../main/lobbyist.htm"><span class="style25">Lobbyists</span></a></div></th>
          </tr>
          <tr>
            <th scope="row"><div align="left"><a href="../filinginfo/pfsforms&ins.html"><span class="style25">Personal Financial Statement Filers</span></a></div></th>
          </tr>
          <tr>
            <th scope="row"><div align="left"><a href = "../main/pac.htm"><span class="style25">Political Committees</span></a></div></th>
          </tr>
          <tr>
            <th scope="row"><div align="left"><a href = "../main/party.htm"><span class="style25">Political Parties</span></a></div></th>
          </tr>
         
          <tr>
            <th scope="row"><div align="left"><a href = "../main/local.htm"><span class="style25">Local Filers and Filing Authorities</span></a></div></th>
          </tr>
          <tr>
            <th scope="row"><div align="left"><a href = "../main/officers.htm"><span class="style25">State Officers/ Employees </span></a></div></th>
          </tr>
          <tr>
            <th scope="row"><div align="left"><a href = "../main/other.htm"><span class="style25">Other Filers</span></a> </div></th>
          </tr>
        </table>
        </div></li>
       
          <li>

            <div align="left"><a href="../main/enforcement.htm"><span class="style2">Enforcement/Sworn Complaints</span> </a></div>
          </li>
        </ul>       
  </div>
  <!--end sectionLinks--> 
</div>
<!--end navBar-->
<div id="content">
<!-- InstanceBeginEditable name="EditRegion3" -->
<?php
   print "<P align=\"left\"><strong><a href=\"cesearchSimple.html\">New Simple Search</a></strong>";
   print "<br><strong><a href=\"cesearchAdvanced.html\">New Advanced Search</a></strong>\n";
   print "<br> </P>\n";
?>

<!-- InstanceEndEditable -->    </div>
<div id="siteInfo">
  <div align="center"><span class="style9"><a href="http://www.texas.gov">Texas.gov </a>|
      <a href="http://www.texashomelandsecurity.com/">Texas Homeland Security</a> |
      <a href="http://www.tsl.state.tx.us/trail">Statewide Search</a> |
      <a href="../tec/policies.htm">Site Policies</a></span>  </div>
  <!--end siteInfo-->
</div>
<!--end content-->
</div>
<!--end pagecell1-->

<br>

</body>
<!-- InstanceEnd --></html>

Community Expert
June 24, 2011

The PHP looks fine but there are a ton of HTML errors in that document with end tags missing, illegal characters being used. It's possible that witht the code errors that the newer DW is actually rigth in not interpreting the code correctly.  See if fixing up the HTML errors in that document helps out:

http://validator.w3.org/