PHP includes

Hi all

Can I have asked this question before but I'm still a little confused about PHP includes. I have created a few pages using Dreamweaver Bootstrap. My main NAVIGATION bar was created in an index.html file, but I see that things get complicated if I have to take the NAVIGATION code bar and add it to all the pages. So someone said using PHP include ( <? php include ("name.php");? > ), but the only downfall I see I is .index all pages NEED to be changed to .php. So now that I have met some problems and questions:

QUESTIONS

#1. Is there another option you are using PHP includes to have 1 master NAVBAR, that when I change the main NAVIGATION bar, it changes on all pages?

#2. After you have configured the my site definition with my .php files, I made changes to one of my pages then Dreamweaver prompt me to save. Even if it changes 1 letter. Why does do that? Ideally, I would like to make a few changes before saving the file. Any idea what the problem might be?

Thanks in advance.

iangoulbourne wrote:

QUESTIONS

#1. Is there another option you are using PHP includes to have 1 master NAVBAR, that when I change the main NAVIGATION bar, it changes on all pages?

You can still use jQuery to load the navigation. The load below a file named 'navigation.html' in a

container with the class 'navigation '.

Tags: Dreamweaver

Similar Questions

  • Windows 7: the search does not find the files that should be, directory is indexed and *.php included on the list of extensions

    Windows 7: search does not find the files that should be. I have indexed directory and *.php included on the list of extensions, but search can't find files for Word searches that I know there are files with these words in them.

    If you're frustrated by research (aka Desktop Search), you are not alone. Click the Start button and type find and click the button 'change the way Windows search'. Now click on the Advanced button and select the tab file types scroll down and find your type of file (in your case .php) and make sure the radio button "index properties and the content of the file" is selected for the file type.

    Out the form by clicking on the OK button, but do not close the form when you click the Advanced button.

    Then, you may need to change the indexing locations. If the folder where your files are located is not known for indexing search, then search is not even bother looking for here (a source of frustration for many users). Maybe your files are located on another drive or partition without the knowledge of the indexing engine. Using the options icon and select/deselect expand, make sure that at least the files of interest are included for the indexed locations. I hope this helps.

    samc1

  • Creating a PHP Include to my main Menu

    When a PHP Include is inserted in a Web page, is it necessary for the pages to have the .php extension for example index.php? Please specify.

    ALT-Web Design & Publishing: Inclusions with PHP server-side

    I can analyze includes regular .html files?

    This varies by host site.  Some shared hosting plans allow it, but many do not.  If you are on a dedicated server or VPS plan of accommodation, it is likely that you can analyze files .html as the files .php by a modification (or creating) a .htaccess in the folder file root of your server.  If in doubt, check with your hosting provider.

    Nancy O.

  • How can I say that Dreamweaver folder is the PHP include path?

    My include path on my server is/php/includes.  He is not outside the web root or something like that, it's just convenient to have this folder to store all my common php extracts of I include or require a lot.

    So if I have an include or require the line as 'require 'db.php';' the server knows where to find db.php, Dreamweaver knows that it is a media file, so it adds it at the top of the code for easy access.

    However, in DW CC (2015) it will not wear this file because it is not because he is looking for the file in the directory root, and not in/php/includes.

    So my question is how can I tell Dreamweaver/php/includes is the include path so it will open these related files when I click on them and not forcing me to open the files individually, if I need to watch them or change them?  It's a HUGE pain in the butt when you have a dozen different includes that are all associated with the page you are editing and you must open each individually if you want to watch or change something.  Also, if I move this file in a different directory, Dreamweaver wants to change the relative path where to move, and I want to keep it exactly how it is.

    BTW, of course, I could just include the full path in the code of the page, but why should I?  The server will look in those include paths anyway, why I can not Dreamweaver to look the same on the local side?

    I found a solution, a bit clumsy but better that open them separately.

    By activating dynamically files automatically, when I open a page with includes I get two sets of files included in the related files bar.  The second game is the local version with the right path, the first is the link to the file using the root path (which does not exist of course).  So if I click on the second version of the related file, I can switch to that file and manipulated like any other related file.

    Thanks for the comments, I appreciate the insight.

  • Can't get my (php include) foot to the bottom of the page!

    Hello

    I have a site where I've successfully added the using the header <? PHP include()? >

    I added the <? PHP include()? > tag at the end of my content on the homepage, but it either sticks in the middle of the page that you highlight, or change position (in css) crazy.

    I don't want the footer to include in the class content that's a 800px width. I want that my footer to 100% width at the bottom of the page

    Here's my footer.php:

    <! - start .footer - >

    < link href = "stylesheets/footer.css" rel = "stylesheet" type = "text/css" > "

    < div class = "footer" >

    < br / >

    < table class = "footer" width = "100%" border = "0" >

    < b >

    < td width = "33%" colspan = "3" > < a style = "" color: #CBCBCB "href="main/feedback/feedback.php "> < /a > comment | < a style = "" color: #CBCBCB "href="main/contact/contact.php "> < /a > Contact | < a style = "" color: #CBCBCB "href =" http://eepurl.com/WtSur "> newsletter < /a > |" " < a style = "" color: #CBCBCB "href="main/donate/donate.html "> < /a > gift | < a style = "" color: #CBCBCB ' href = "Files/Terms and Conditions.pdf" > terms and Conditions < /a > < table > "

    < /tr >

    < b >

    < td colspan = "3" > < table >

    < /tr >

    < tr valign = "bottom" >

    < td width = "33 percent" height = "60" >

    <! - PayPal Logo - >

    " < a href =" https://www.PayPal.com/UK/webapps/MPP/PayPal-popup "title ="How PayPal"onClick =" javascript:window.open ('https://www.paypal.com/uk/webapps/mpp/paypal-popup ',' WIPaypal ',' toolbar = no, location = no, directories = no, status = no, menubar = no, scrollbars = yes, resizable = yes, width = 1060, height = 700'); return false; "" > < img src = "https://www.paypalobjects.com/webstatic/mktg/logo/bdg_secured_by_pp_2line.png" border = '0' alt = 'Secured by PayPal' > < /a > < div style = "text-align: Center" > < / div > "

    <! - PayPal Logo - >

    < table >

    < td width = "33%" > < img src = "images/mdjn - logo.png" width = "175" height = "58" / > < br / > < table >

    " < td width ="33% "> < div align ="center"> < a target ="_blank"href =" " https://www.Facebook.com/pages/DJ-direct/179634702105699?Ref=HL " > < img src = images/Facebook.png"" width = "40" height = "40" alt = "facebook" / > < /a > < a target = "_blank" href = " http://plus.google.com/102808919725916371065 " > < img src = "images/Google +.png" width = "40" height = "40" alt = "google +" / > < / has > < / div > < table > .

    < /tr >

    < /table >

    & copy; DJ-live 2014 < br / >

    < / div >

    <! - end .footer - >

    Here is the CSS for the footer:

    @charset "utf-8";

    / * CSS document * /.

    .footer {}

    do-family: "Trebuchet MS", Arial, Helvetica, sans-serif;

    background-color: #2E2E2E;

    color: #A4A4A4;

    text-align: center;

    Width: 100%;

    position: absolute;

    }

    And finally, here is the page I'm trying to add the footer (include) on:

    <! doctype html >

    < html >

    < head >

    < meta charset = "utf-8" >

    < title > welcome < /title >

    < style type = "text/css" >

    {body

    margin: 0;

    padding: 0;

    background-color: #3e3e40;

    position: relative;

    }

    . Happy {}

    Width: 800px;

    height: 120px;

    margin: 0 auto;

    }

    .title {}

    color: white;

    do-family: Verdana, Geneva, without serif.

    text-align: center;

    do-size: 18px;

    Police-weight: 600;

    padding-bottom: 10px;

    }

    . Text {}

    color: white;

    do-family: Verdana, Geneva, without serif.

    text-align: center;

    padding: 10px;

    }

    {.testimonial}

    do-family: "Trebuchet MS", Arial, Helvetica, sans-serif;

    color: #FFF;

    background-color: #575757;

    text-align: left;

    margin-top: 0px;

    margin-bottom: 20px;

    padding: 20px;

    }

    < / style >

    < link href = "stylesheets/header.css" rel = "stylesheet" type = "text/css" > "

    < link href = "stylesheets/footer.css" rel = "stylesheet" type = "text/css" > "

    < / head >

    < body >

    <? PHP include ("_header.php");? >

    < div class = "content" >

    < iframe width = "800" height = "180" src = "" / / www.cincopa.com/media-platform/iframe.aspx?fid=AcGA1sssNofx "frameborder ="0"scrolling allowfullscreen =" "style =" padding-top: 20px; "> < / iframe >

    < div class = "title" >

    At DJ-Direct, we are proud to provide the best service at an affordable price.

    < / div >

    < div class = "text" >

    When you want to organize an important occasion in your life, he must go to a perfect plan. If personal or professional wedding, or a corporate function, of such events memorable, nothing can be left to chance. It is cost-effective to book experts.

    < br > < br >

    Our entertainment, sent through professional DJs, mixing high range and equipment lighting and sound high definition made for a truly spectacular evening.

    < br > < br >

    Our DJs have a large amount of musical experience to create the atmosphere and feeling of any event.

    < br > < br >

    We provide professional shows of lighting and atmospheric effects to give your event that "WOW" factor If you need a great dramatic sountrack'u energy for a 21 or a wedding with lighting and sound for you.

    < br > < br >

    Move forward us and provide a tailored solution.

    < / div >

    < div style = "padding-top: 20px;" padding-bottom: 20px; "> < img src =" images/split.jpg"width ="800"height ="20"> < / div >"

    < div class = "title" > testimonials < / div >

    < div class = 'testimony' >

    < table width = "100%" border = "0" cellspacing = "5" cellpadding = "5" >

    < b >

    < td align = "" width = "85%" > < strong > Oxfam - charity event < facilities > < br / > "

    < em > The Old Queens Head < /em > < table >

    "< td width ="15% "> < img src="images/535px-5_stars.svg.png "width ="155"height ="31"/ > < table >

    < /tr >

    < b >

    < td colspan = "2" > & quot; Without DJ-live, the atmosphere at our charity concert would be the same. With so many different acts of different styles, we couldn't be happier to have the variation of lighting to set the modd. More than 100 paying spectators came to follow the event while he was absolutely necessary to have a professional lighting to ensure the night success. & quot; < br / >

    -Krishna Harilela < table >

    < /tr >

    < /table >

    < / div >

    < div class = 'testimony' >

    < table width = "100%" border = "0" cellspacing = "5" cellpadding = "5" >

    < b >

    < td align = "" width = "85%" > < strong > New Years Eve < facilities > < br / > "

    < em > Planet Hollywood < /em > < table >

    "< td width ="15% "> < img src="images/535px-5_stars.svg.png "width ="155"height ="31"/ > < table >

    < /tr >

    < b >

    < td colspan = "2" > & quot; I just wanted to say what a fantastic job DJ-live has done with the lighting of our Boogie Nights New Years Eve party at Planet Hollywood in London.   They were extremely professional throughout the implementation and in the evening.   They had three different styles of lighting based on three different areas of our restaurant at night. One for the dance floor, one for the bar and one for the dining room and he got the lighting on in each place. We hold many different styles of events at Planet Hollywood and would certainly use DJ-live again. Thanks again and I hope that we will work with you again in a near future & quot; < br / >

    -Alex Garland < table >

    < /tr >

    < /table >

    < / div >

    < div class = 'testimony' >

    < table width = "100%" border = "0" cellspacing = "5" cellpadding = "5" >

    < b >

    < td align = "" width = "85%" > < project strong Kenya > < / strong > < br / > "

    < em > < table > < /em > ACS-Egham international school

    "< td width ="15% "> < img src="images/535px-5_stars.svg.png "width ="155"height ="31"/ > < table >

    < /tr >

    < b >

    < td colspan = "2" > & quot; I was very impressed by the professionalism and technical expertise displayed by DJ-live to dance school. All students truly enjoyed music and features of the setting up of DJ - machine smoke and "lasers" were very popular! A big thanks to DJ-live for their work hard to do such a dance success & quot; < br / >

    -Hazel Caroline < table >

    < /tr >

    < /table >

    < / div >

    < div class = 'testimony' >

    < table width = "100%" border = "0" cellspacing = "5" cellpadding = "5" >

    < b >

    < td align = "" width = "85%" > < strong > Christmas party < facilities > < br / > "

    < em > Stoke Park < /em > < table >

    "< td width ="15% "> < img src="images/535px-5_stars.svg.png "width ="155"height ="31"/ > < table >

    < /tr >

    < b >

    < td colspan = "2" > & quot; I just want to thank DJ-live to support our event. We organized a Christmas party for various companies, and the feedback we received on the DJ was exceptional! They have set up in the ballroom and played fantastic music and their lighting all brought everyone to the dance floor. I will personally make sure to book DJ-live again for our event next Christmas. Thanks DJ-live! & quot; < br / >

    -Hendricks < table >

    < /tr >

    < /table >

    < / div >

    < / div >

    <? PHP include ("_footer.php");? >

    < / body >

    < / html >

    Thanks for any help!

    Max Resnikoff says:

    Now it's just stuck at the bottom of the browser window, not the Web page

    So where in fact do you want to go? If you want to follow the rest of the content of the page then don't add any positioning to the css:

    .footer {}

    do-family: "Trebuchet MS", Arial, Helvetica, sans-serif;

    background-color: #2E2E2E;

    color: #A4A4A4;

    text-align: center;

    Width: 100%;

    }

    And to get rid of the stupid stupid content height: 120px - what you expect the footer to do if you define stupid things like that?

    . Happy {}

    Width: 800px;

    height: 120px;

    margin: 0 auto;

    }

  • PHP include command covers all other content of the page in dreamweaver

    Hello

    I have problems with my php include command.

    I aheader that must be on all pages, but when I include it in a page, it will stop to view the original content of the page.

    To be able to edit pages (not the header include file), I have to comment or remove the php include so that the original content is displayed and can be edited.

    Is there a reason for this?

    <! doctype html >

    <? PHP include ("_header.php");? >

    < html >

    < link href = "stylesheets/main_stylesheet.css" rel = "stylesheet" type = "text/css" > "

    < link href =' http://fonts.googleapis.com/CSS?family=slabo+27px ' rel = "stylesheet" type = "text/css" >

    < head >

    < meta charset = "utf-8" >

    < title > welcome < /title >

    < / head >

    < body >

    It's the body of this page

    < / body >

    < / html >

    Try this:

    Content of the file of the hand:

    It's the body of this page

    _header.php table of contents:


    Home

    Welcome, * username

    Profile

    Calendar

    ACS Egham International School

    Drama database

    ACS Egham International School

  • PHP includes does not - can anyone offer advice?

    I am trying to register a .php in an .php

    It works on all my other files, just not this one.

    and the result is that it does not display the contents of the .php file.

    Under Style Ram VTL

    line include "sheet001.php."

    I am new to this, and I'm totally frustrated

    See highlighted in red below.

    <! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > ""
    "< html xmlns ="http://www.w3.org/1999/xhtml"XML: lang ="FR"lang ="FR"dir ="ltr">"
    "< profile head ="http://gmpg.org/xfn/11">."
    < title > Kira America | Products < /title >
    < meta http-equiv = "Content-Type" content = text/html"; charset = iso-8859-1 "/ >"
    < meta http-equiv = "imagetoolbar" content = "no" / >
    "< link rel ="stylesheet"href="/styles/layout.css "type =" text/css"/ >
    <!--2 column added to the Page and not the Layout.css-> Stylesheet
    "< link rel ="stylesheet"href="/styles/2_column.css "type =" text/css"/ >
    "< link rel ="stylesheet"href="/menus/ajxmenu.css "type =" text/css"/ >
    < link href = "" / default.css "rel ="stylesheet"type =" text/css"/ >"
    "< script src="/menus/ajxmenu.js "type =" text/javascript"> < / script >
    < / head >
    < id body = "top" >
    < div class = "row1 wrapper" >
    <? PHP include 'headnav.php '? >
    < / div >
    <!-- ######################################################################################### ############## -->
    < DIV id = "topnav2" >
    <? PHP include 'topnav.php '? >
    < / DIV >
    <!-- ######################################################################################### ############## -->
    < div class = 'wrapper row3' >
    < div class = "rnd" >
    < div id = "container" class = 'clear' >
    <!-- ######################################################################################### ############## -->
    < div id = "left_column" >
    < DIV id = "lnav" >
    < div id = "content" >
    < h1 class = "title" > Ram Style VTL < / h1 >
    <? PHP include 'sheet001.php '? >
    < / div >
    < / DIV >
    < / div >
    <!-- ############ -->
    <!-- ############ -->
    <!-- ######################################################################################### ############## -->
    < / div >
    < / div >
    < / div >
    <!-- ######################################################################################### ############## -->
    < div class = 'wrapper row4' >
    <? PHP include 'footer.php '? >
    < / div >
    <!-- ######################################################################################### ############## -->
    < / div >
    < / div >
    < / div >
    <!-- ######################################################################################### ############## -->

    <! - LeadFormix - >
    "< a href ="https://www.leadformix.com"title ="Marketing Automation"onclick =" window.open (this.href); return (false); ">
    < script type = "text/javascript" >
    var (("https:" == document.location.protocol) = pkBaseURL? ' ") https://Vlog.leadformix.com/":"https://vlog.leadformix.com/");"
    <!--
    bf_action_name = ";
    bf_idsite = 8509;
    bf_url = pkBaseURL + ' bf/bf.php';
    (function() {}
    LFH var = document.createElement ('script'); LFH.type = ' text/javascript '; LFH. Async = true;
    LFH. SRC = pkBaseURL +' bf/lfx.js;
    var s = document.getElementsByTagName ('head') [0]; s.appendChild (lfh);
    })();
    ->
    < /script >
    "< noscript > < p > Marketing Automation Platform < img src ="https://vlog.leadformix.com/bf/bf.php"style =" border: 0 "alt ="Marketing Automation Tool"/ > < / p >"
    < / noscript >
    < /a >
    <!-/-> LeadFormix
    < / body >
    < / html >

    It's so frustrating...

    You are too busy in your frustration. Therefore, I can't follow your workflow in this last message (like what you mean by "he created rstyle_files and added the 4 files?).

    May not contain any file to include,orTags. It takes just a fragment of code that would be validly placed betweenand. Please try this to see if it improves things.

  • PHP includes the file is not read.

    I made a php include file that contains all of the generic actions mail processing script.  When I deploy my page contact form with appropriately updated code and linking using the include() function code and then provide a path to the file, it does not work.  The end result is that I get an email to my account that I put in place must be sent to me as an alert if there is a problem reading the include file.  I'll give you the coding for the include file and the feedback form page:

    Include a file code:

    <? PHP
    If (isset($_SERVER['SCRIPT_NAME']) & & strpos ($_SERVER ['SCRIPT_NAME'],))
    Inc.php')) "exit";
    Remove characters from exhaust AFTER table
    If (via 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);
    }
    Suppose that there is nothing suspicious
    $suspect = false;

    create a model to identify suspicious phrases
    $pattern = ' / content-Type. Bcc. Cc: / I ';

    function to check suspicious phrases
    function isSuspect ($val, $pattern and $suspect) {}
    If the variable is an array, loop through each element
    and pass it to the same function recursively
    If (is_array ($val)) {}
    {foreach ($val as $item)
    isSuspect ($item, $pattern, $suspect);
    }
    }
    else {}
    If one of the suspicious phrases is found, the Boolean true value
    If (preg_match ($pattern, $val)) {}
    $suspect = true;
    }
    }
    }

    Check the array $_POST and suspicious content subdashboards
    isSuspect ($_POST, $pattern, $suspect);
    If (! empty($_POST['url'])) {}
    $suspect = true;
    }
    If {($suspect)
    $mailSent = false;
    unset ($missing);
    } else {}
    treat the variables of $_POST
    foreach ($_POST as $key = > $value) {}
    assign a temporary variable and strip space if this isn't a table
    $temp = is_array ($value)? $value: trim ($value);
    so empty and if necessary, add to the $missing table
    If (empty ($temp) & & in_array ($key, $required)) {}
    return ($manquant, $key);
    } else if (in_array ($key, $expected)) {}
    Otherwise, assign to a variable of the same name as $key
    ${$key} = $temp;
    }
    }
    }

    validate email address
    If (! empty ($email)) {}
    Regex to identify illegal characters in the e-mail address
    $checkEmail = ' / ^ [^ @] + @[^ \s\r\n\'";,@%]+$/';]
    reject the e-mail address, if it does not
    If (! preg_match ($checkEmail, $email)) {}
    $suspect = true;
    $mailSent = false;
    unset ($missing);
    }
    }

    go forward only if all OK required fields
    If (! $suspect & & empty ($missing)) {}
    Initialize the variable $message
    $message = ";
    loop in the $expected table
    {foreach ($expected as $item)
    assign the value of the current item to $val
    If (isset(${$item}) & &! empty(${$item})) {}
    $val = ${$item};
    } else {}
    If she has no value, set "not chosen".
    $val = "not sΘlectionnΘe";
    }
    If a table, expand under chain comma-gap
    If (is_array ($val)) {}
    $val = implode (', ', $val);
    }
    Add the label and value to the message body
    $message. = ucfirst ($item). ' ': $val\r\n\r\n ";
    }

    the length of the line is limited to 70 characters
    $message = wordwrap ($message, 70);

    Create the Reply-To header
    If (! empty ($email)) {}
    $headers. = "\r\nReply-To: $email";
    }

    Send it
    $mailSent = mail ($ $subject, $message, $headers);
    If {($mailSent)
    $missing is more necessary if the email is sent, so unplugged it
    unset ($missing); ECHO ('please contact Solutions Web common wealth');
    }
    }
    ? >
    < ! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "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 >

    Code of the feedback form page (with the code include line, note the path of the file that I used.  I do indeed follow the include file; process_mail. Inc.php in a folder include in the main public_html directory.  It should work.  "Maybe there is somethiing wrong with my code?) :

    <? PHP
    If (array_key_exists ('Send', $_POST)) {}
    mail processing script
        $to = ' [email protected] '; / / use your own e-mail address
    $subject = "contact form investigation."

    list fields should
    $expected is array ('name', 'email', 'phone', 'Comments');.
    Set required fields
    $required = array ('name', 'email', 'Comments');
    create an empty array for all the missing fields
    $missing = array();
    create additional headers
    $headers = "from: Caleb Wright < . " [email protected] > \r\n";
    $headers. = "content-Type: text/plain;" charset = utf-8\r\n ";
    $headers. = "cc: " [email protected] '; 
    If (! empty ($email)) {}
    $headers. = "\r\nReply-To: $email";
    }
    $process = '.. / includes/process_mail. Inc.php';
    If (file_exists ($process) & & is_readable ($process)) {}
    include ($process);
    } else {}
    $mailSent = false;
    mail ("$ ' server problem","$process cannot be read", $headers);
    }
    }
    ? >
    <! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > ""
    " < html xmlns =" http://www.w3.org/1999/xhtml ">
    < head >
    < name meta = "description" content = "" Common Wealth Web Solutions: Web development, Graphic Design, Media Consultant, Community Engagement "/ >"
    < name meta = "keywords" content = "' Common, wealth, Web, Design, graphic design, development, interactivity, services, fla sh, php, javascript, ajax, professional Solution, Caleb Wright, Peter Wallis, artist, video, multimedia, production, search engine optimization, SEO, video production design" / > "
    < meta http-equiv = "Content-Type" content = text/html"; Charset = UTF-8 "/ >"
    < title > Common Wealth Web Solutions: < /title > Contact form
    < link href = "stylesMain.css" rel = "stylesheet" type = "text/css" / > "
    <!-[if lt IE 7] >
    < link rel = "stylesheet" type = "text/css" href = "PNGfix.css" / > "
    <! [endif]-->
    <!-[if lte IE 7] >
    < style type = "text/css" >
    #hornav ul li {padding: 0 0 0 10px ;}}
    < / style >
    <! [endif]-->
    <!-[if lte IE 6] >
    < style type = "text/css" >
    #wrapper - body, #wrapper - 1, #wrapper-2, #wrapper - 3 {height: 1% ;}}
    < / style >
    <! [endif]-->
    < script type = "text/javascript" src = "scripts.js" > < / script >
    < script src = "Scripts/swfobject_modified.js" type = "text/javascript" > < / script > "
    < script src = "SpryAssets/SpryAccordion.js" type = "text/javascript" > < / script > "
    < style type = "text/css" >
    {#apDiv1}
    position: absolute;
    Width: 1844px;
    height: 43px;
    z-index: 1;
    left: 64px;
    top: 253px;
    }
    {body
    background-color: #FFF;
    }
    < / style >
    < link href = "SpryAssets/SpryAccordion_flexible.css" rel = "stylesheet" type = "text/css" / > "
    < style type = "text/css" >
    a: link {}
    Color: #00F;
    }
    < / style >
    < link href = "contact.css" rel = "stylesheet" type = "text/css" / > "
    < script type = "text/javascript" >

    var _gaq = _gaq. [];
    _gaq.push (['_setAccount ', 'UA-3119473-5']);
    _gaq.push (['_setDomainName ', 'none']);
    _gaq.push (["_setAllowLinker", true]);
    _gaq.push (['_trackPageview ']);

    (function() {}
    GA var = document.createElement ('script'); GA.type = ' text/javascript '; GA. Async = true;
    ga.src = ("https:" == document.location.protocol? ) https://SSL ' : ' http://www ( ') + «.google-analytics.com/ga.js ";
    var s = document.getElementsByTagName ('script') [0]; ParentNode.InsertBefore (ga, s);
    })();

    < /script >
    < script type = "text/javascript" >

    var _gaq = _gaq. [];
    _gaq.push (['_setAccount ', 'UA-3119473-6']);
    _gaq.push (['_setDomainName ', 'none']);
    _gaq.push (["_setAllowLinker", true]);
    _gaq.push (['_trackPageview ']);

    (function() {}
    GA var = document.createElement ('script'); GA.type = ' text/javascript '; GA. Async = true;
    ga.src = ("https:" == document.location.protocol? ) https://SSL ' : ' http://www ( ') + «.google-analytics.com/ga.js ";
    var s = document.getElementsByTagName ('script') [0]; ParentNode.InsertBefore (ga, s);
    })();

    < /script >
    < / head >
    < body >
    < div id = "wrapper" body >
    < div id = "wrapper-1" >
    < div id = "branding" >
    < h1 >
    < object classid = "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width = "700" height = "250" id = 'FlashID' title = "Common Wealth banniΦre" > "
    < param name = "movie" value = "commonwealthbanner.swf" / > "
    < param name = "quality" value = "high" / >
    < param name = "wmode" value = "opaque" / >
    < param name = "swfversion' value ="6.0.65.0"/ >
    <!-this param tag prompts users with Flash Player 6.0 r65 or later to download the latest version of Flash Player. Delete it if you do not want users to display the prompt. ->
    < param name = "expressinstall" value = "Scripts/expressInstall.swf" / > "
    <!-next object tag is for non - IE browsers. Then he hide from IE using IECC. ->
    <!-[if! IE] >->
    < object type = "application/x-shockwave-flash" data = "commonwealthbanner.swf" width = "700" height = "250" > "
    <!-<! [endif]-->
    < param name = "quality" value = "high" / >
    < param name = "wmode" value = "opaque" / >
    < param name = "swfversion' value ="6.0.65.0"/ >
    < param name = "expressinstall" value = "Scripts/expressInstall.swf" / > "
    <!-the browser displays the following alternative content for users of Flash Player 6.0 and higher. ->
    < div >
    < h4 > the content of this page requires a newer version of Adobe Flash Player. < / h4 >
    " < p > < a href =" http://www.Adobe.com/go/getflashplayer_fr "> < 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 >
    < / h1 >
    < div > < / div >
    < / div >
    < div id = "wrapper-2" >
    < div id = "top content" class = "png" > < / div >
    < div id = "wrapper-3" >
    < div id = "content-1" >
    < div class = "content wrap" >
    < div id = "Accordion1" class = "Accordion" tabindex = "0" >
    < div class = "AccordionPanel" >
    < div class = "AccordionPanelTab" > Site Navigation < / div >
    < div class = "AccordionPanelContent" > < a href = "index.php" > Mission < /a > < / div > ""
    < / div >
    < div class = "AccordionPanel" >
    < div class = "AccordionPanelTab" > Services < / div >
    < div class = "AccordionPanelContent" >
    < p > < a href = "Services_Web Design.php" title = "Home" > Web Design < /a > < /p >
    < p > < a href = 'Design.php of Production' video > video Production Design < /a > < /p >
    < p > < a href = "SEO.php ' > Search Engine Optimization < /a > < /p >" "
    < / div >
    < / div >
    < div class = "AccordionPanel" >
    < div class = "AccordionPanelTab" > about us < / div >
    < div class = "AccordionPanelContent" >
    < p > < a href = "AboutCaleb.php" > Caleb Wright < /a > < /p > ""
    < p > Coming Soon... < /p >
    < /P > < p > Peter Wallis
    < / div >
    < / div >
    < div class = "AccordionPanel" >
    < div class = "AccordionPanelTab" > Contact < / div >
    < div class = "AccordionPanelContent" >
    < p > < a href = "Contact Form.php" > form < /a > < /p >
    < / div >
    < / div >
    < / div >
    < p > < / p >
    < / div >
    < / div >
    < div id = "content-2" >
    < div class = "content wrap" >
    Contact us < h1 > < / h1 >
    <? PHP
    If ($_POST & & isset ($missing) & &! empty ($missing)) {}
    ? >
    < class p = 'WARNING' > please fill in the missing elements indicated. < /p >
    <? PHP
    } else if ($_POST & &! $mailSent) {}
    ? >
    < p > < strong > your message has been sent. Thanks for choosing Web Solutions common wealth.
    < facilities > < / p >
    <? PHP}? >
    < p > < / p >
    < form action = "<?" PHP echo $_SERVER ['PHP_SELF'];? ">" method = "post" name = 'Contact us' class = "content-wrap" id = "contact us" >
    < fieldset > < class legend = "AccordionPanelContent" > contact information < / legend > < p >
    < label for = "name" > < span class = "fieldname" > name: </span >
    <? PHP
    If (isset ($missing) & & in_array ('name', $missing)) {? >}
    < span class = "WARNING" > please enter your name < span > <? PHP}? >
    < / label >
    < label for = "name" > < / label >
    < span id = "sprytextfield1" >
    < input name = "name" type = "text" class = "textInput" id = 'name '.
    <? PHP if (isset ($missing)) {}
    "' echo ' value =" ".htmlentities ($_POST ['name'], ENT_COMPAT, ' UTF - 8' UTF - 8') .e. '" ';
    } ? >
    / >
    </span > < / p >
    < class p 'fieldname' = >
    < label for = "email" > Email:? PHP
    If (isset ($missing) & & in_array ('email', $missing)) {? >}
    < span class = "WARNING" > enter your e-mail < span > <? PHP}? >
    < / label >
    < input name = "email" type = "text" class = "textInput" id = "email".
    <? PHP if (isset ($missing)) {}
    "' echo ' value =" ".htmlentities ($_POST ['email'], ENT_COMPAT, ' UTF - 8' UTF - 8') .e. '" ';
    } ? >
    / >
    < /p >
    < p >
    < label class "phone" = "fieldname" = > phone: < br / >
    < / label >

    < input name = "phone" type = "text" class = "textInput" id = "phone".
    <? PHP if (isset ($missing)) {}
    "' echo ' value =" ".htmlentities ($_POST ['Telephone'], ENT_COMPAT, ' UTF - 8' UTF - 8') .e. '" ';
    } ? >
    / >
    < /p >
    < / fieldset >
    < p > < / p >
    < fieldset >
    < class = "AccordionPanelContent" legend > how can we help you? < / legend >
    < label for 'Comments' = > < br / >
    <? PHP
    If (isset ($missing) & & in_array ('Comments', $missing)) {? >}
    Please enter your feedback < span > <? PHP}? >
    < / label >
    < = 'comments' id = cols 'comments' textarea name = "100" rows = "5" > <? PHP
    If (isset ($missing)) {}
    echo htmlentities ($_POST ['comment'] ", ENT_COMPAT, ' UTF-8 ');
    } ? > < / textarea >
    < /p >

    < p >
    < input type = "submit" name = "send" id = "send" value = "Send comments" / >
    < /p >
    < id p = "website" >
    website < label = 'url' >: < / label >
    < /p >
    < / make >
    < / div >
    < / div >
    < div id = "content-bottom" > < / div >
    < / div >
    < div id = "footer" >
    < p > < strong > common wealth Web Solutions < facilities >
    < script type = "text/javascript" >
    <!--
    applesearch.init ();
    ->
    < /script > < strong > © 2011 < facilities > < / p >
    < / div >
    < / div >
    < / div >
    < / div >
    < script type = "text/javascript" >
    var Accordion1 = new Spry.Widget.Accordion ("Accordion1", {useFixedPanelHeights: false, defaultPanel:-1});
    < /script >
    < / body >
    < / html >

    The code immediately preceding is the code with php feedback form page.

    Since your email is a failure I will assume the rest of your script works.  I'm looking specifically at these lines:

      $process = '../includes/process_mail.inc.php';
        if (file_exists($process) && is_readable($process)) {
            include($process);
    

    Things that must be confirmed here are that the path is right and it has the appropriate permissions.  Have you tried to delete this statement 'and' in your 'if' and see if those who operate independently.  I have a feeling that if the path is right that the file does not have the appropriate permissions on your server for access global read which would, "is_readable" fail and thus put an end to your script.

    Can you test those and after return?

  • Problem of layout in the mainContent - PHP include file section

    Hi people, I have a problem with the layout of a page.

    I have included a PHP statement in the mainContent div that appears near the bottom end of the page here:

    http://zazzlefan.com/index2.php

    How can I get this content to keep just below "Featured Sellers - Al Rio Art"?

    My CSS file is a slightly twisted dreamweaver template

    http://zazzlefan.com/twoColFixLtHdr.CSS

    and there is 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;
    }
    Who do it for you?
    Martin
  • Looking for master files using something other than PHP includes

    Hello-

    Apart from using PHP includes, which would be another technology that I can use that allows me to use file extensions HTML, that if I make a change to a file in the same place (assets/dirname/file name), it updates the pages to load?  It has a user-friendly Linux server and no models or CMS stuff.

    ~ Mike

    I think you have two choices... Includes or models. Why not use includes? Its the right way to go.

    Brad Lawryk
    Adobe, Dreamweaver community expert
    Northern British Columbia Adobe User Group, Adobe user group manager

  • CSS and php include

    I have a dreamweaver template which has the following include a php file in the first lines.

    <? PHP
    include '... / public_html/code/db.php ';
    ? >

    The model also includes a couple of format css stylesheets

    < link href = "... rel of the/public_html/CSS/na_style_scr. CSS = "stylesheet" type = "text/css" media = "screen" >

    When I save documents from this model in different folders in the site, the link include has not updated, so I updated the template like below

    <? PHP
    include ("..") /.. ("/ code/db.php");
    ? >

    Now the documents can be saved anywhere on the site and the link is correct, but I view the document in dreamweaver, the file appears as if there is no style sheet. The file is displayed correctly on the testing server.

    Has anyone previously met, or someone can suggest a solution to this?

    Thank you very much

    Patch

    Thanks for these tips.

    I have now found a solution to the problem of Dreamweaver not poster not formatting CSS of the page. Initially, I had my

    <>
    include ("..") ("/ code/db.php");
    ?>

    Code of the first line of thetag.

    In moving it so that it now appears before thetag and manufacturing including the following tag

    The problem now seems to be circumvented.

    Don't know why, but it works, I don't really mind.

    Thanks for the comments.

  • Help PHP include

    I'm trying to get the correct formatting for a php include file. I read that you can put the include as a localhost/filename.php file; However, I tried a few combinations and I can't function.

    At the present time, I have

    <? PHP ("all include path to point to where the file is on my hard drive");? >

    Because the path points to a file on my hard drive, it does not work when I post to my remote host. This will really make a lot of time when I have to change everything to run on the remote server. How can I change the channel above the code to have only localhost\\filename.php; so I can test the functionality on the server I set up on my hard drive, as well as make it work on my remote server, without having to change the path pointing to the file?

    The game, December 27, 2007 00:56:33 + 0000, David powers
    wrote:

    > 9thReg wrote:
    > If I understand this right, I am curious to know how to understand the path where the
    > find the file on my hard drive. And, given that the path will be different on my
    > remote server, he will always find it?
    >
    > That's what relative paths are all on - find a file from a
    > position relative to the current document. Read the PHP manual for
    > Details of how PHP find includes:
    >
    > http://www.php.net/manual/en/function.include-once.php

    I had a lot of problems when I first started using php includes - until
    I discovered this method - with my virtual server on my PC.

    --

    ~ Malcolm N...
    ~

  • PHP includes - Simple Txt file

    I've been playing with using PHP includes / need to fill the content of a page. It would be very useful for all the pages where the content changes often, or eternal sources since I could download the txt files with the same name in a folder and replace existing ones.

    In my tests of this problem is that the text gets spread in the content area a single huge block with no paragraph separations. The original txt file has several separate paragraphs, but it's not the output in design mode or the browser. I checked my CSS as well as for the main content area and are all that I put my padding and styles of police, margins.

    Does anyone know if there is anything else I should do to solve this problem by using CSS or PHP?

    Thank you.

    Try surrounding the call include with a div and give the div of this class.
    Without seeing the page, it is difficult to say, but I suspect the

    class is
    "cancellation" with the first

    tag in the include file.

    destind4film wrote:
    > ok, well the include file is just a txt. But the CSS I am
    > trying to apply is called in the tags p surrounding php
    > statement... If that makes sense...
    >
    > In any case... include does not apply CSS style that he
    > should. This is evident by looking at the page in design mode or in
    > the browser...
    >
    > what is clarify?

  • DWCS # previews only PHP include and nothing else

    Migration of DWCS2 towards my whole site DWCS3 PHP display mode "Code and Design" correctly. They seem to work fine if I make changes in the Code and download. It is very difficult for me to work that way, though.

    When you work in CS2 design mode would not display includes the "PHP" as I expected. Everything works beautifully on download on our server. Now, however after upgrade to CS3, Dreamweaver seems to want to only display the first statement 'PHP include' and nothing else that I did on the page.

    I created a few screenshots to the following address. Comapison between CS2 and CS3 Code and Design views

    Any help would be greatly appreciated. Im sure I must have done something incorect when I built the site initially, but I don't know what. The online site can be accessed at Heart Center of Wyoming

    Please let me know if any other information is required.

    Best regards and thank you.

    Thank you, David.

    I knew it was something basic.

    Best regards.

  • CC of Dreamweaver server goes down with PHP "include".

    I often use php "include_once()" or "require_once()" to incorporate elements such as headers or navigation within my site - so I don't have to edit this central file and turns through my website.

    I started only recently using Dreamweaver CC (2015), after having been a GoLive user since a long time.

    So I am just learning the tricks of the trade with DW (although I used older versions in the past, CS4) by recreating one of my smaller sites - everything worked fine until I added a side menu that I wear using php "include_once()". Now, every time I try and do anything in Live view mode (or simply display it there) - which is connected via a server due to the use of php - I get the rotation of death very much beach ball and have to force quit.

    Any thoughts or ideas would be welcome!

    (I'm on Mac OS 10.11.5, Dreamweaver CC (2015) - last updated)

    Thank you, David. I'm sure that it is set up very well - but I will check it with this link - cheers.

    At the same time - I'm a little embarrassed to say - I made a discovery (should have done so before, but only now isolate pieces of code to see if there is a conflict)... uh, there's a spare part

    tag in the "include" file Took me forever, out and back into various pieces of code... but in the end he cut down to that

    tag seems to have solved the problem.

    It has in fact closed an opening

    Tag, but it had a few links separated by
    Editor of tags in the meantime. Don't know if there is some conflicts I do not understand.

    Thanks for all your suggestions - appreciated!

Maybe you are looking for

  • Mac Pro 2014 Retina screen shows lightning under empty battery but won't turn on

    Screen shows lightning under empty battery, but won't turn on. I had plugged it with two adapters to support different (long and short) that accompanies the retina macbook 17 inches. Ive left plugged in for 24 hours and still will not light. I have t

  • Question about the possible television series total bit rate discrepancy

    Hello, I started recently to buy some from Itunes TV shows when I noticed something I was curious about. I noticed that when I look at the "total sampling rate" for none of them via "My TV Shows" in Itunes, they tend to be a little higher than the sa

  • folder options

    can someone tell me please how to get my files to STAY in the Details view. I found the folder options panel, but it seems to be only a choice of icons or thumbnails Im trying to sort out my files of movies. Everytime I open a new folder, that they g

  • Can't fax with PSC 2410

    I have a PSC 2410 I can't fax. He worked until a few weeks before, but now it makes a light static noise when it is to dial the number. All connections are correct

  • Light is not bright enough

    Got my new Sansa Clip this morning, I plugged it in 10 hours and the battery indicator indicates a full charge.  I adjusted the brightness level as high as possible and there is not enough light to see if I turn off the lights in the room. Also I whe