SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Addict
    Join Date
    Jun 2001
    Location
    Malaysia
    Posts
    352
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to design webpages.. and then incl. PHP?

    hey guys...

    yes it's me again one more question:

    I plan to use Dreamweaver to generate a webpage with graphics, mouseovers and the lot. Can i Copy and Paste PHP code sections directly into my webpage in Dreamweaver, and then save the file as a PHP?

    Then how do you guys do it.. like... creating your forum main page for instance! With all the "links" above the page.. you can't have coded it by hand!

    Any other suggestions on designing a normal webpage, and then including PHP portions would be greatly appreciated!

  2. #2
    SitePoint Member
    Join Date
    Jun 2001
    Location
    CA
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Can i Copy and Paste PHP code sections directly into my webpage in Dreamweaver, and then save the file as a PHP?
    Yes, as long as the php code is inside <?php ?> tags

    How to include somthing like the links above on each page, it's simple, just go:

    <?php include("filename.php"); ?>

    where filename.php has the code for the links or whatever. And the links appear on each page, then to edit the links, just change the code in filename.php and the change is show across all the pages.
    Last edited by Ripped_Edge; Jun 26, 2001 at 21:47.
    Ripped_Edge
    ripped_edge@hotmail.com
    http://www.452productions.com
    World Domination on a Global Scale (TM)

  3. #3
    SitePoint Addict
    Join Date
    Jun 2001
    Location
    Malaysia
    Posts
    352
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    great! So i can include <?php ?> codes into dreamweaver huh..

  4. #4
    Node mutilating coot timnz's Avatar
    Join Date
    Feb 2001
    Location
    New Zealand
    Posts
    516
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes you can. But I would recommend just using the PHP to include another PHP file with all your PHP stuff in that. Best to keep the two languages separate.

  5. #5
    SitePoint Addict
    Join Date
    Jun 2001
    Location
    Malaysia
    Posts
    352
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yeah... good idea.

    thanks guys!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •