Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Seperate PHP code page

Guest
Sep 24, 2009 Sep 24, 2009

Is it possible to store PHP code in a seperate file in dreamweaver?  The same way that Visual Studio has a code behind page.  I just think it is much easier to work with the code when it is not mixed in with the html.

TOPICS
Server side applications
477
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Sep 24, 2009 Sep 24, 2009

This thread has been moved to the Dreamweaver Application Development forum, which deals with PHP and other server-side issues.

PHE Admin wrote:

Is it possible to store PHP code in a seperate file in dreamweaver?  The same way that Visual Studio has a code behind page.  I just think it is much easier to work with the code when it is not mixed in with the html.

Yes. Dreamweaver has full support for PHP includes. However, if you want to use Dreamweaver server behaviors, Dreamweaver automatically inse

...
Translate
LEGEND ,
Sep 24, 2009 Sep 24, 2009
LATEST

This thread has been moved to the Dreamweaver Application Development forum, which deals with PHP and other server-side issues.

PHE Admin wrote:

Is it possible to store PHP code in a seperate file in dreamweaver?  The same way that Visual Studio has a code behind page.  I just think it is much easier to work with the code when it is not mixed in with the html.

Yes. Dreamweaver has full support for PHP includes. However, if you want to use Dreamweaver server behaviors, Dreamweaver automatically inserts them above the DOCTYPE declaration. You would need to move the code manually to external files. Once moved, you would not be able to use the Dreamweaver dialog boxes to edit the server behaviors. However, if you're happy coding yourself, that shouldn't make any difference.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines