Layout problem in mainContent section - PHP include file

Hi folks - I have a problem with the layout of a page.
I've included a PHP statement in the mainContent div that shows up way down at the end of the page here:
http://zazzlefan.com/index2.php
How can I get that content to fit just below "Featured Sellers - Al Rio Art"?
My CSS file is a slightly tweaked dreamweaver template
http://zazzlefan.com/twoColFixLtHdr.css
and there's a "zstore.css" file that controls the PHP include here:
http://zazzlefan.com/css/zstore.css
Can anyone help? Thanks in advance if you can.
Terry

.centerGrids {
margin-left:auto;
margin-right:auto;
overflow:hidden;
Does that do it for you?
Martin

Similar Messages

  • Problems using a php include file with an Add-on Domain.

    Hello,
    I am having an issue getting a php include file to work with a new add-on domain I am working on getting up and running.
    This include file is one that supplies the rest of the php code to a contact form page.  It works as it should for my original domain, same file no difference.  I made sure that the files hosted on the remote server had all read, write, execute permissions turned on.
    I have tried putting the include file in several different locations as a test, such as:
    I don't remember the exact name of the include file at the moment, as I'm at work so I will designate it below as 'includefile.php'.
    file path for add-on domain - ../public_html/lorentzpainting/includes/includefile.php
    alternatives I tried moving the file to - ../public_html/lorentzpainting/includefile.php
    When none of those options worked, I tried just pointing the path towards other places on the server that have the include file such as:
    ../public_html/includes/includefile.php
    ../public_html/includefile.php
    What can I do here?  Should I just give up on using the include and put all the code back in the page?  Doesn't seem like it should be this complicated, it works perfectly fine for my other site.. and still does.
    Thanks ahead of time to those who may assist me.

    here is the contents of the include file:
    <?php
    if (isset($_SERVER['SCRIPT_NAME']) && strpos($_SERVER['SCRIPT_NAME'],
    '.inc.php')) exit;
    // remove escape characters from POST array
    if (PHP_VERSION < 6 && get_magic_quotes_gpc()) {
      function stripslashes_deep($value) {
        $value = is_array($value) ? array_map('stripslashes_deep', $value) : stripslashes($value);
        return $value;
      $_POST = array_map('stripslashes_deep', $_POST);
      // assume that there is nothing suspect
        $suspect = false;
        // create a pattern to locate suspect phrases
        $pattern = '/Content-Type:|Bcc:|Cc:/i';
          // function to check for suspect phrases
      function isSuspect($val, $pattern, &$suspect) {
        // if the variable is an array, loop through each element
        // and pass it recursively back to the same function
        if (is_array($val)) {
          foreach ($val as $item) {
            isSuspect($item, $pattern, $suspect);
        else {
          // if one of the suspect phrases is found, set Boolean to true
          if (preg_match($pattern, $val)) {
            $suspect = true;
    //check the $_POST array and any subarrays for suspect content
    isSuspect($_POST, $pattern, $suspect);
        if (!empty($_POST['url'])) {
            $suspect = true;
        if ($suspect) {
            $mailSent = false;
            unset($missing);
        } else {
        //process the $_POST variables
        foreach ($_POST as $key => $value) {
            // assign to temporary variable and strip whitespace if not an array
            $temp = is_array($value) ? $value : trim($value);
            // if empty and required, add to $missing array
            if (empty($temp) && in_array($key, $required)) {
                array_push($missing, $key);
            } elseif (in_array($key, $expected)) {
                // otherwise, assign to a variable of the same name as $key
                ${$key} = $temp;
        //validate the email address
        if (!empty($email)) {
            // regex to identify illegal characters in email address
    $checkEmail = '/^[^@]+@[^\s\r\n\'";,@%]+$/';
    //reject the email address if it doesn't match
    if (!preg_match($checkEmail, $email)) {
        $suspect = true;
        $mailSent = false;
        unset($missing);
    //go ahead only if all required fields OK
        if (!$suspect && empty($missing)) {
    //initialize the $message variable
            $message = '';
    // loop through the $expected array
            foreach($expected as $item) {
    // assign the value of the current item to $val
                if (isset(${$item}) && !empty(${$item})) {
                    $val = ${$item};
                } else {
    // if it has no value, assign 'Not selected'
                    $val = 'Not selected';
    // if an array, expand as comma-sparated string
                if (is_array($val)) {
                    $val = implode(',', $val);
    // add label and value to the message body
      $message .= ucfirst($item).": $val\r\n\r\n";
    //limit line length to 70 characters
        $message = wordwrap($message, 70);
    //create Reply-To header
        if (!empty($email)) {
            $headers .= "\r\nReply-To: $email";
    // send it
        $mailSent = mail($to, $subject, $message, $headers);
        if ($mailSent) {
    // $missing is no longer needed if the email is sent, so unset it
            unset($missing); echo('Thank you for contacting Common Wealth Web Solutions');
    ?>
    <!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">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Untitled Document</title>
    </head>
    <body>
    </body>
    </html>

  • PHP Include File works but doesn't line up with the Rest of Page

    Hi,
    I am having a serious problem. I have removed my header image and have decided to replace it with a php include file so if any changes needs to be made, it can all be done in the php file in case such as links.
    When I include the php file, it includes the file but for some reason the banner goes in one direction and the body goes in the other. Help me as I am not sure what I am doing wrong.
    Example Page (with the include file): http://www.specialist-events.com/events2.php
    This is how a page looks without the PHP Include File: http://www.specialist-events.com/events1.php
    Please can someone tell me what I am doing wrong.
    Thanks
    Junior

    Hi Nancy,
    Just to confirm what you are telling me I should do.
    Change the code in the web page to:
    <div id="header">
    <!--#include virtual="Includes/HeadMenu.ssi" -->
    <!--end header --> </div>
    so inside the layer 1 of the page, put the following code should be
    <div id="layer1">
    <!--#include virtual="includes/banner.php" -->
    <!--end header --> </div>
    and in the php file. Not sure how this will work as you are mapping areas of the image for links.
    But I assume inside the map area, you would have something like <<a class="intro" href="http://www.specialist-events.com/index.html">home</a>
    <div id="menu">
    <a href="#content">skip menu &gt;</a>
    <a class="intro" href="index.shtml">home</a>
    <a class="gallery" href="gallery.shtml">gallery</a>
    <a class="tools" href="tools.shtml">tools</a>
    <a class="portfolio" href="portfolio.shtml">portfolio</a>
    <a class="fees" href="Fees.shtml">fees</a>
    <a class="links" href="links.php">links</a>
    <a class="contact" href="contact.shtml">contact</a>
    </div> <!--end menu -->
    Am I correct

  • Where to put PHP included files?

    I'm trying to transfer website from my PC to MAC,
    hoping that I can finish it without changing any code.
    But many of my php files have "require()" function,
    and I can't find the php included files' folder.
    Please help~~

    I have a webpage on http://mysite.com/myproject
    All my project files are in /Library/WebServer/Documents/myproject
    (index.html, test.php, etc.)

  • PHP include file not displaying in preview window

    Hi all,
    Hopefully I can explain this clearly. I have a website that
    uses a sidebar that's common to all pages. In order to include this
    "sidebar", I use:
    <?php require_once "sidebar.php ?>
    Now, originally on the page the whole sidebar html/php code
    was in the page, but I cut it all and replaced it to include the
    "sidebar.php" page. This way, when I change anything in the
    sidebar, it cascades to all of the pages.
    When I replace the original sidebar code that's in each page
    with the "php require_once", close the file, and open it back up
    again, the sidebar shows up as a small yellow "php" icon. It
    doesn't let me "preview" it live anymore.
    Is there any way to view what the php include file
    has?

    PREFERENCES | Invisible Elements > Server-side includes
    (enable)
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "vooboo13" <[email protected]> wrote in
    message
    news:fi1m9b$261$[email protected]..
    > Hi all,
    >
    > Hopefully I can explain this clearly. I have a website
    that uses a sidebar
    > that's common to all pages. In order to include this
    "sidebar", I use:
    >
    > <?php require_once "sidebar.php ?>
    >
    > Now, originally on the page the whole sidebar html/php
    code was in the
    > page,
    > but I cut it all and replaced it to include the
    "sidebar.php" page. This
    > way,
    > when I change anything in the sidebar, it cascades to
    all of the pages.
    >
    > When I replace the original sidebar code that's in each
    page with the "php
    > require_once", close the file, and open it back up
    again, the sidebar
    > shows up
    > as a small yellow "php" icon. It doesn't let me
    "preview" it live anymore.
    >
    > Is there any way to view what the php include file has?
    >

  • How  to show  php 'include' file in Design View?

    Is it possible (in design view MX04) to show a php include
    file?
    It shows if it's <?php include('myPage.inc'); ?>
    but if its got the .php ext, <?php include('myPage.php');
    ?>
    its doesnt show.
    Any way of making it show?
    Cheers.
    Os.

    > Is it possible (in design view MX04) to show a php
    include file?
    Yes.
    Does the include file *also* contain PHP code?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Osgood" <[email protected]> wrote in
    message
    news:e791va$css$[email protected]..
    > Is it possible (in design view MX04) to show a php
    include file?
    >
    > It shows if it's <?php include('myPage.inc'); ?>
    >
    > but if its got the .php ext, <?php
    include('myPage.php'); ?>
    >
    > its doesnt show.
    >
    > Any way of making it show?
    >
    >
    > Cheers.
    >
    > Os.
    >

  • Problem with ssi and php includes

    Hello Everyone,
    I’m a little confused and I hope someone here can shed some light on my problem. I teach web design (Macromedia Studio 8) at the high school level and I’m having trouble using .php includes and server side includes on our Mac OSX 10.4 server with WebObjects 5.2.
    The Problem – Dreamweaver correctly inserts the code….
    <?php
    include ('assets/includes/header.html');
    ?>
    but when the same index.php file is uploaded to the server and then downloaded to another workstation the code is changed. The php include is removed and replaced with the actual html from the header.html file.
    Does anyone know what causes this?
    Thank you for your help.
    Todd
    www.mrbenrud.com
      Mac OS X (10.4.4)  

    If I understand your post correctly, what you are experiencing is exactly what PHP is supposed to do.
    I am guessing that you are expecting a user to be able to see the programmer's php code just as is the case with html, where one can simply see the code by control clicking the page in Safari and selecting "View Source", for example.
    However, for security reasons PHP will never allow this behavior via http 'get' functions. Imagine, a php page which includes php code that accessess a highly sensitive database and thus were to allow any client to see the exact architecture of the database. For these reasons the server is the only one able to parse through the PHP code and generates html code from it, which is sent to the client.
    Remember, PHP stands for hypertext preprocessor, that is the server processes php code before hypertext is generated and sent to the client.
    The include function is a php function and thus will not be displayed as part of the generated html.
    The only way to allow your students for example, to see the PHP code is to serve the folder containing the web site being served via another protocol such as AFP, SMB, and FTP.
    I hope this addresses your concerns.
    Best,
    Max

  • Problems centering text in an includes file.

    I am trying to create an includes file (footer.php) to be displayed in a template file (index.dwt.php).  Am having troubles trying to get it to center the text when it's drawn in and displayed in the templates page.  It always comes in left justified for some reason.  Any help would be appreciated. Thanks.
    Bob Green

    How are you doing the footer?
    If your CSS has a rule that will center text in the footer that is in a paragraph, then you must make your text file for your include have the HTML:
    If your css says:
    footer p {
         text-align: center;
    And your text file for the include is:
    <p>&copy; 2013 big business, inc., All Rights Reserved</p>
    Then the text should be centered. But if it doesn't have the opening and closing paragraph marks, then it won't.
    Simple things like that may cause peoblems for includes.

  • Php include file getting called multiple times

    I have created a form in file career.php. To carry out the validation user_registration.php is called at the beginning of the file.
    user_registration.php in turn calls library.php. Issue is that library.php is getting called multiple times.
    I have attached phperror.log which confirms the same.
    career.php
    <?php
    session_start();
    require_once('phpScript/user_registration.php');
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    user_registration.php
    <?php // This file is used for validating user form data. It calls process_upload.php to validate file uploaded by user
    $errors = array();  
    $messages = array();
    $testing = TRUE;
    error_log("Enter- user_registration.php. Testing mode $testing", 0);
    try {
              error_log("user_registration.php: Entered try catch block",0);
    require_once('library.php');
              error_log("Successfully called library.php",0);
              $public_key = '6LeDsNUSAAAAAIoaYuNhGm2zx_qgBECiybUWUkt6';
              $private_key = '6LeDsNUSAAAAACuvmJrec-_5seLdmhqUMngt8AiU';
              $recaptcha = new Zend_Service_ReCaptcha($public_key, $private_key);
              if(isset($_POST['submit'])) {          // Only execute if form is submitted by user
                error_log("user_registration.php. Submit button pressed by user", 0);
                require_once('Zend/Mail.php');
                $mail = new Zend_Mail('UTF-8');
                if (isset($_POST['name'])) {
                        $val = new Zend_Validate_Regex('/^\p{L}+[-\'\p{L} ]+$/u');
                        if (!$val->isValid($_POST['name'])) {
                          $errors['name'] = "Please enter your name, no numbers permitted";
    error_log("Exit- user_registration.php.", 0);
    library.php
    <?php
    error_log("Enter- library.php. Testing mode $testing", 0);
    if ($testing)  // If true then go to testing mode
              $library = '/Applications/MAMP/htdocs/mgtools-india/ZendFramework/library';
              set_include_path(get_include_path() . PATH_SEPARATOR . $library);
    require_once('Zend/Loader/Autoloader.php');
    try {
    Zend_Loader_Autoloader::getInstance();
    error_log("Exit- library.php. Testing mode $testing", 0);
    phperror.log
    Marker - 12-Oct-2012 10:27:26 AM
    [12-Oct-2012 04:57:33 UTC] Enter- user_registration.php. Testing mode 1
    [12-Oct-2012 04:57:33 UTC] user_registration.php: Entered try catch block
    [12-Oct-2012 04:57:33 UTC] Enter- library.php. Testing mode 1
    [12-Oct-2012 04:57:33 UTC] Exit- library.php. Testing mode 1
    [12-Oct-2012 04:57:33 UTC] Successfully called library.php
    [12-Oct-2012 04:57:36 UTC] Enter- user_registration.php. Testing mode 1
    [12-Oct-2012 04:57:36 UTC] Entered try catch block
    [12-Oct-2012 04:57:36 UTC] Enter- library.php. Testing mode 1
    [12-Oct-2012 04:57:36 UTC] Exit- library.php. Testing mode 1
    [12-Oct-2012 04:57:36 UTC] Successfully called library.php
    [12-Oct-2012 04:58:38 UTC] Enter- user_registration.php. Testing mode 1
    [12-Oct-2012 04:58:38 UTC] Entered try catch block
    [12-Oct-2012 04:58:38 UTC] Enter- library.php. Testing mode 1
    [12-Oct-2012 04:58:38 UTC] Exit- library.php. Testing mode 1
    [12-Oct-2012 04:58:38 UTC] Successfully called library.php
    [12-Oct-2012 04:58:38 UTC] user_registration.php. Submit button pressed by user
    [12-Oct-2012 04:58:39 UTC] user_registration.php, Processing enquiry form
    [12-Oct-2012 04:58:39 UTC] Enter- process_upload.php. Testing mode 1
    [12-Oct-2012 04:59:01 UTC] Exit- user_registration.php.
    I am not able to understand why user_registration.php and library.php are executing again and again.
    I ran this test on local testing server MAMP.
    The results are the same on remote server also.
    Please guide.

    I'm not sure what's happening there. The important question is whether the code is executed successfully.
    Since you're using the Zend Framework, it might be better to ask in a dedicated ZF forum.

  • Inserting swfs in ASP include files, CS4?

    I'm having a problem inserting SWFs into ASP include files in CS4 and am wondering if there's a solution other than going back to CS3.
    I've been adding pages to this site on a daily basis and at some point a few years ago we needed to start using ASP includes. The C-wrapper is in the ASP file and the content is in the included file.
    Unfortunately, the way CS4 insists on adding SWFs leads to broken pages. The error in Firefox is:
    Active Server Pages error 'ASP 0139'
    Nested Object
    /MySite/MyFolder/MyTopic/include/includedFile.htm, line 93
    An object tag cannot be placed inside another object tag.
    So, MyFile.ASP uses include/includeFile.htm. The SWF is inserted into includeFile.htm. DWCS4 uses this code:
    <object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="510" height="384">
          <param name="movie" value="/MySite/MyFolder/MyTopic/images/oneOfMany.swf" />
          <param name="quality" value="high" />
          <param name="wmode" value="opaque" />
          <param name="swfversion" value="9.0.45.0" />
          <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
          <param name="expressinstall" value="/Scripts/expressInstall.swf" />
          <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
          <!--[if !IE]>-->
          <object type="application/x-shockwave-flash" data="/MySite/MyFolder/MyTopic/images/oneOfMany.swf" width="510" height="384">
            <!--<![endif]-->
            <param name="quality" value="high" />
            <param name="wmode" value="opaque" />
            <param name="swfversion" value="9.0.45.0" />
            <param name="expressinstall" value="/Scripts/expressInstall.swf" />
            <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
            <div>
              <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
              <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
            </div>
            <!--[if !IE]>-->
          </object>
          <!--<![endif]-->
        </object>
    I understand the problem with nested objects. I think what I'd really like is to keep CS4 but go back to the method CS3 was using to insert SWF files. This current method is especially difficult because when I change it and later reopen the file DW wants to "correct" it.
    Any helpful hints would be appreciated.
    Rob Mack

    Okay, my solution was to go find the old CS3 code and make a snippet out of it. This way I always have a piece of code that works -sort of- and at least it stays consistant. It's a little more work now but if the old CS3 code for a swf is present then CS4 won't complain.
    It seems to me that hard coding this into the CS4 product makes it kind of inflexible.
    Here is the CS3 code. It works in a file that will later be included in an ASP file. The CS4 code quoted previously doesn't work.
    <script type="text/javascript">
    AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','wid th','510','height','384','src','/MySite/MyFolder/MyTopic/images/oneOfMany','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movi e','/MySite/MyFolder/MyTopic/images/oneOfMany' ); //end AC code
        </script>
          <noscript>
          <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="510" height="384">
            <param name="movie" value="/MySite/MyFolder/MyTopic/images/oneOfMany.swf" />
            <param name="quality" value="high" />
            <embed src="/MySite/MyFolder/MyTopic/images/oneOfMany.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="510" height="384"></embed>
          </object>
        </noscript>
    Rob Mack

  • Dreamweaver CS3 - PHP Include error

    Just upgraded to DW CS3 and found that any page containing a
    PHP include no longer shows up correctly in design view. Only the
    contents of the included file are shown, not the entire page.
    We currently have to comment out ALL PHP included files to
    edit the page, and then uncomment them again before posting to the
    server.
    Is there any work around or setting that can change the way
    the PHP include files are handled??

    Hi David,
    Thank you for following up. I'm really confused why PHP
    includes which have worked in all previous versions of DW, parses
    correctly on the server, and renders correctly in all browsers
    suddenly won't show up in my design view in Dreamweaver after the
    CS3 upgrade.
    One of our PHP includes: <? include 'header.php'; ?>
    The pages render correctly in the browser, but when I open
    them in DW CS3, only the contents of the header are visible -- no
    other page elements. We have to comment out the includes to see the
    page contents.
    In DW8, the contents of the include were hidden and the page
    contents visible.
    In CS3, the contents of the include are visible and the page
    contents hidden.
    The PHP include syntax hasn't changed -- the way Dreamweaver
    shows the code has. Is there a preference or setting that can
    change the view to hide includes?

  • Include files above docroot

    I keep reading everywhere that for security reasons, my PHP include files should not be accessible under the docroot directory, but I try as I might, nothing I do allows me to do this. I created an "includes" directory one level above the docroot and PHP cannot find it!
    I tried adding this directive to the httpd/sites file for the specific site:
    phpadminvalue include_path(.....proper path...)
    and that didn't work either. When I do phpinfo(), it does not show the above path as one of those to use for includes! Is there a setting somewhere that is causing the path to be ignored?
    I'm sure this is something simple that many of you know how to do, but I'm just spinning my wheels.
    TIA

    Yes, using phpadminvalue in your httpd_yoursite.conf file or .htaccess file can override the settings in php.ini. Some say it's a bug, some say it's how its supposed to be.
    So make sure that you have the include directory set up in only one of the config files. If the include files in question are only being used for one site on your server, you may not want it configured in php.ini.
    Also, remember to restart the web server every time you change something for PHP. PHP does not reload until the HTTPd mother process reloads.
    Extended Keyboard Server   Mac OS X (10.4.1)  

  • Problem with a flash banner in a php includes

    I am creating a site that has many pages and I made an includes file for the header of the page that contains my navigation bar, i then made a template of the page to use for all my pages.
    Now I have created a flash banner that i want to play in the header of all my pages but i´m having problems getting it to show on all the pages.
    Firstly I added the flash swf into my includes file and inserted the flash into the includes file page using insert flash from the dreamweaver menu (code below):
    <?php $currentPage=basename ($_SERVER['SCRIPT_NAME']);?>
    <script src="../Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
    <div id ="adBanner">
      <script type="text/javascript">
    AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','wid th','468','height','60','title','advertise','src','advertise_banner','quality','high','plu ginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveF lash','movie','advertise_banner' ); //end AC code
    </script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="468" height="60" title="advertise">
        <param name="movie" value="advertise_banner.swf" />
        <param name="quality" value="high" />
        <embed src="advertise_banner.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="468" height="60"></embed>
      </object></noscript>
    </div>
    <div id ="NavBar">
        <p> </p>
        <p> </p>
        <p> </p>
        <p> </p>
        <p> </p>
        <p> </p>
        <p><a href="index.php" <?php if ($currentPage == 'index.php') {echo 'id="here"';}?>>Home</a></p>
        <p><a href="about.php" <?php if ($currentPage == 'about.php') {echo 'id="here"';}?>>About Us</a></p>
      <p><a href="contact.php" <?php if ($currentPage == 'contact.php') {echo 'id="here"';}?>>Contact Us</a></p>
      <p><a href="advertise.php?ad=y" <?php if ($currentPage == 'advertise.php') {echo 'id="here"';}?>>Advertise</a></p>
      <p> </p>
        </div>
    Great the flash ad works when I load the includes page in a browser and when i look at all my other pages that have the link to the includes file the flash file shows as a grey box with F in the center, however if i load any of these pages into a browser the flash ad does not show.
    I also tried doing exactly the same, adding the flash to the header of my template and saving it. However this did not update all of the pages that use the template, the flash ad would play in the browser if I load the template in the browser. (in this instance the actual swf file was in my templates folder with the template page).
    The final thing i tried was just to add the flash to one of my pages just to see if it would work when i loaded the page into a browers, it didn´t and i don´t understand why as it worked on the includes page and template page. (the swf file in this case was in the file along with all the pages of my site).
    It doesn´t seem that i have a problem with the actual flash banner, i just cannot seem to put it in the pages that i want to.
    Any help or input in this matter will be greatly appreciated.
    Thank you in advance.

    I don't know if this will be of any help but I have a flash rotator that I use on a few pages setup in a seperate file as well, here is the code from my include file
      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="884" height="402" id="myFlashContent">
        <param name="movie" value="/Image-Rotator-V2.swf" />
        <!--[if !IE]>-->
        <object type="application/x-shockwave-flash" data="/Image-Rotator-V2.swf" width="884" height="402">
        <!--<![endif]-->
         <a href="http://www.adobe.com/go/getflashplayer">
          <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
         </a>
        <!--[if !IE]>-->
        </object>
        <!--<![endif]-->
      </object>
    I also added the following to the head section of the page the flash is used on.
    <script src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js" type="text/javascript"></script>
    Regards
    Richard

  • Using Spry Navigation with php includes in a Dreamweaver dwt file

    I am working on a large site and am attempting to set up templates in Dreamweaver, which will include the navigation as an includes file with php.  First of all, wondering if it is possible?  Second, how do I address the problem of my pages being at different levels within the site?  Very new to php coding, but my pages that are not connected to a template are working properly. 
    Thanks for your help.
    Kim

    Yeah!  David!  I don't know what you get paid, but it is not enough.  After replacing the file, it is working.  I did change the links in my index page and took off the /.  But the menu is now showing on all the pages now that were having issues.  I probably corrupted it somehow.  I really appreciate your help with this.  What a way to spend the holiday.  I guess we are making it true to its name.  This has definitely been laborous.  If there is such a word.
    Send me your address and i will mail you some of the best chocolate chip cookies.
    Kim
    P.S.  Can I take my links down up there?

  • Looking to reference files using something other than PHP includes

    Hello -
    Aside from using PHP includes, what would be another technology that I can use that allows me to use HTML file extensions, that if I make a change to a file in one location (assets/dirname/filename), it updates dependant pages?  It's got a be Linux server friendly, and no templates or CMS stuff.
    ~Mike

    No problem Mike,
    Shouldn't matter if the pages are static or dynamic for includes to be useful. Some of the most common uses are headers, footers and menus for sites that have many pages, static, synamic or both.
    For example; if you have a phone number in your footer and have 100 pages, it would be crazy to change 100 pages. Just change one small file and upload and your done.
    Stick with the includes, you'll be glad you did
    Brad Lawryk
    Adobe Community Expert, Dreamweaver
    Adobe Usergroup Manager, Northern British Columbia Adobe User Group

Maybe you are looking for

  • EJB 3.0 Stateful session bean shared between Servlet's

    Hello I have a bit of a noob question regarding Stateful sessions beans. I am wanting to know if there is a way that I can share an instance of a session bean between multiple HttpServlet instances? I am sending XML messages from a mobile J2ME applic

  • ABAP - BDC transaction not saving changes to records

    I am trying to write my first ABAP code using BDC recording.  Essentially I would like to flag the "Final Delivery" field (EKPO-EGLKZ) for a range of documents by recording transaction MASS. The code runs without errors - but the changes are not save

  • Satellite 1130-Z31: Cannot get 1600x900 on second monitor

    I have a Toshiba Satellite 1130-Z31 (old one, but still works well). Now i have attached a second monitor with a native resolution of 1600x900 pixels. I have set the resolution of the second monitor to 1600x900, this is accepted. However, the image o

  • Database creation in Oracle 8i

    Hi, How do we create a database in Oracle 8i using GUI,is there any gui interface like dbca? Regards, Cherry

  • Data guard monitoring shell script

    uname -a Linux DG1 2.6.18-164.el5 #1 SMP Thu Sep 3 03:28:30 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux SQL> select * from v$version; BANNER Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production PL/SQL Release 11.2.0.1.0 - Producti