PHP - FastCGI - $_SERVER['DOCUMENT_ROOT']

I am attempting to host a vendor developed PHP web application in a java System Web Server (Sun Java System Web Server 7.0U5) environment. The application is dependant upon the existance of the $_SERVER['DOCUMENT_ROOT']. It appears that this variable is not present in our environment.
I've researched the issue extensively however I cannot identify how to enable the existance of this variable.
My environment information follow:
java System Web Server (Sun Java System Web Server 7.0U5)
PHP 5.2.6 (Installed using Sun's Coolstack)
FastCGI
FastCGI responder line from obj.conf file:
Service fn="responder-fastcgi" type="magnus-internal/php" app-path="/path/to/coolstack/php5/bin/php-cgi" bind-path="$(lc($urlhost))" app-env="LD_LIBRARY_PATH=/usr/apps/coolstack/php5/lib/php" app-env="DOCUMENT_ROOT=/path/to/virtualhost/documentroot"
Can someone direct me how to make the $_SERVER['DOCUMENT_ROOT'] variable available in my environment?
Thank you in advance.

If you create your testing server in a virtual host, Live View will display your include files correctly. However, includes that use only HTML will not be displayed in Design view.

Similar Messages

  • Need help on lighttpd + php + fastcgi

    I am having one terrible time trying to get the above configured.  Every time I access a .php script I get a "No input file specified" error.  Pulling up .html pages works fine... just not .php.
    The following are installed:
    php 5.2.4-1, lighttpd 1.4.18-1, fcgi 2.4.0-2
    And here is the relevent section of the /etc/lighttpd/lighttpd.conf file:
    server.modules              = (
                                    "mod_rewrite",
                                    "mod_redirect",
                                    "mod_access",
                                    "mod_fastcgi",
                                    "mod_proxy",
                                    "mod_simple_vhost",
                                    "mod_compress",
                                    "mod_accesslog" )
    server.document-root        = "/data/srv/www/"
    static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
    simple-vhost.server-root   = "/data/srv/www/vhosts/"
    simple-vhost.default-host  = "ncc1701a.test.adtran.com"
    simple-vhost.document-root = "/"
    $HTTP["host"] == "ncc1701a.test.xxxxx.com" {
      server.document-root = "/data/srv/www/vhosts/ncc1701a.test.xxxxx.com/"
    server.username             = "lighttpd"
    server.groupname           = "lighttpd"
    fastcgi.server             = ( ".php" =>
                                   ( "localhost" =>
                                       "socket" => "/tmp/php-fastcgi.socket",
                                       "bin-path" => "/usr/bin/php-cgi",
    fastcgi.debug = 1
    All the logs look good (I think)... just cannot get this to work.  If have spent the past six hours reading Google and cannot find anything.  Anyone have any answers?

    Well after about three days of tinkering I finally fixed the problem...
    My original /etc/php.ini did not have the "open_basedir" set... so it was not used.  But when I upgraded the php the new php.ini had a value in it.  Of course that value did not included the path to my scripts... so I added the path to my scripts as follows:
    open_basedir = /data/srv/www/:/tmp/:/usr/share/pear/
    And now everything works fine.

  • PHP FastCGI on SJSWS 6.1 SP8 prevents file_get_contents() to work

    Hi,
    sorry to bother you again, but we discovered another problem with the FastCGI implementation and I just want to verify if someone else can reproduce that. A site is using file_get_contents() to gather information from the same site, but a different PHP file, and display it on the screen.
    I tried both PHP 4.4.7 and 5.2.4 and the problem is always present.
    file a.php contains:
    <?php
    $url="http://servername/b.php";
    $file = file_get_contents($url);
    echo $file;
    ?>file b.php contains:
    <?
    print "Hello World!";
    ?>Expected result is to see "Hello World!" when browsing http://servername/a.php.
    Actual result is: "Warning: file_get_contents(http://servername/b.php) [function.file-get-contents]: failed to open stream: HTTP request failed! in /www/servername/a.php on line 3".
    It works correctly with the browser if I point "a.php" to a "b.php" located on another website, configured with FastCGI or NSAPI. It also works correctly on the PHP command line if the "b.php" is located on the same website or another website.
    With NSAPI PHP, it works perfectly from the browser or the command line, to the same website or another one.
    I'll post that bug to the PHP site, but I would like to know if I'm not the only one with that bug.

    I can't speak to WS6.1 (I'm no longer running it), but WS7.0u1 with PHP 5.2.5-dev (built from the tip to work around another PHP bug) I see "Hello world!" after running the test.
    PHP is compiled with:
    './configure' '--enable-track-vars' '--enable-force-cgi-redirect' '--with-gettext' '--enable-fastcgi' '--with-zlib' '--with-jpeg-dir' '--with-gd' '--with-mysql=/usr/local/mysql/include/'My php.rc looks like:
    session.bug_compat_42 = Off
    session.bug_compat_warn = Off
    magic_quotes_gpc = Off
    memory_limit = 128M
    post_max_size = 128M
    upload_max_filesize = 128M
    fastcgi.logging = true
    log_errors = on
    error_log = /export/WS7/https-www/logs/php_errors
    error_reporting = E_ALL
    ; Maybe this can keep PHP from eating all my resources
    max_execution_time = 30
    set_time_limit = 300
    include_path = /usr/local/lib/php
    extension_dir=/export/WS7/third-party/php/

  • PHP Include not showing in design view

    One of the advantages of Dreamweaver is the ability to see
    the result of your code in the Design view. I am building a
    template set for a web site I'm starting, and will be using the
    template files in various paths and path depths. As a result, I am
    not interested in using relative paths for things like PHP
    includes.
    If I use the following code for an include, the 'main.php'
    file is included in the design view:
    <?php include('/includes/templates/main.php'); ?>
    When uploaded to the Apache server, this does not display
    properly, because it is looking for the file in the user root, not
    the Apache document root.
    The portable code solutions to this would be to use the
    following code:
    <?php
    include($_SERVER['DOCUMENT_ROOT'].'/includes/templates/main.php');
    ?>
    This shows perfectly when uploaded to the Apache server, but
    of course does not show in the Design view of Dreamweaver.
    It is ridiculous to think that someone would want code one
    way to see in the design view, and another for the web server, so I
    am assuming that there is a way to do this so that it works both in
    the desing view and on the web server.
    I have had limited success using:
    <?php virtual('/includes/templates/main.php'); ?>
    which shows up in both the design view and on the web server.
    However, I've experienced problems using virtual calls in scripts
    called by the virtual command. I.e. nested inclusions. It would be
    important to note that PHP's own documentation states "This
    function may be used on PHP files. However, it is typically better
    to use include() or require() for PHP files.", along with other
    warnings.
    So, basically, what I am asking for is a solution to allow
    the following code to work and show the included file in the design
    view:
    <?php
    include($_SERVER['DOCUMENT_ROOT'].'/includes/templates/main.php');
    ?>
    Any suggestions?
    BTW, I have tried setting the PHP include_path to the web
    root so that the first example above would work. Doesn't work. I
    have full, unrestricted access to the server, so if there is
    another setting or configuration change I can make to have the
    include function default to the web root, I'd love to know what it
    is.

    quote:
    Originally posted by:
    Newsgroup User
    It does that with all server-side includes, not just PHP. It
    only shows
    the HTML content of includes. To see dynamic output from a
    server-side
    language, you need to use Live Data view.
    I'm not referencing dynamic output from PHP processing. I am
    referencing includes. When using an include, Dreamweaver shows you
    exactly what it would show you if you were looking at the included
    file itself.
    However, Dreamweaver makes the assumption that <?php
    include('/inc/test.php'); ?> is a path located in the web server
    document root. This is not the same assumption that web servers
    make.
    The Apache web server (at least the several that I use),
    treat this same include as a request for /inc/test.php off of the
    root of the server. To achieve the same include, relative to the
    web document root, the include must be <?php
    include($_SERVER['DOCUMENT_ROOT'].'/inc/test.php'); ?>.
    Unfortunately, Dreamweaver does not understand this basic syntax
    and will not show the included file in the design view.
    The bottom line is that Dreamweaver could make it much
    simpler to build portable code if it understood this syntax on the
    include. You could take place that include in any location on your
    site and it would pull the include from the proper location in both
    your design view and on the web server.
    Keep in mind that we establish a "document_root" when we set
    up a site in Dreamweaver. The information is already there. The
    handling of it just needs to be added to the include parser.

  • PHP include in DW CS3

    If I put a tag like this <?php include ('menu.php'); ?>
    in my file, I can only preview it after putting the file on a
    server. How can I preview it in my local computer without uploading
    the files to a server?
    Thanks

    The use of virtual or a root reference in the include
    function forces Apache
    to look at its root folder for the files. It will not find
    them there, and
    therefore the include will fail. The only way to make this
    work would be to
    set up virtual hosts, in which case the root of the site is
    always the
    virtual root you have specified in the httpd.conf file.
    Your use of the $_SERVER['DOCUMENT_ROOT'] autoglobal will
    work on the
    server, but not within DW (I think).
    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
    ==================
    "polar_bare" <[email protected]> wrote in
    message
    news:glskk4$dnu$[email protected]..
    >I did change the include to: <?php
    virtual('/includes/header.inc.php'); ?>
    > from: iv id="header">
    > <?php include
    ($_SERVER['DOCUMENT_ROOT']."/includes/header.inc.php");
    > ?>
    > and it did display in DW, UNTIL... I save the file.
    >
    > I think it is how my web host is set up. When I changed
    the include
    > to:<?php
    > virtual('/includes/header.inc.php'); ?> and uploaded
    the page, I get an
    > error:
    > Fatal error: Call to undefined function virtual() in
    > /home2/user/public_html/indextest.php on line 35.
    >
    > I searched this forum on how to set the base url for
    includes in php and
    > came
    > up with the method: ?php include
    > ($_SERVER['DOCUMENT_ROOT']."/includes/header.inc.php");
    ?> which works,
    > but
    > design view does not show it. No Big Deal.
    >
    >
    http://www.jhcarpenter.com
    >
    >
    >

  • PHP Include Issue On New Domain

    I have had the site liquidfirefishing.com up and running for some time now.  I am using a PHP include for the header and footer.   I have uploaded the same site to fishlf.com and the header and footer files do not appear, no change to the code.  I receive a warning telling me that there is no such file or directory.  Please look at both links below and let me know what the issue may be.
    http://fishlf.com/about/index.php
    http://www.liquidfirefishing.com/about/index.php
    This is the code I am using for the include.
    <?php   $path = $_SERVER['DOCUMENT_ROOT'];   $path .= "/header.php";   include_once($path);?>

    The header.php file cannot be found in the root directory, hence either place it in the root directory or adjust the path to the correct directory as in
    $path .= "/correctpath/header.php";

  • Problem with php code. Please help!

    Hello!
    I'm using the following syntax to bring content into my
    websites' layout template:
    Code:
    <?php //check in the root folder first
    if(file_exists('./' . $pagename . '.php'))
    include './' . $pagename . '.php';
    //if it wasn't found in the root folder then check in the
    news folder
    elseif(file_exisits('./news/' . $filename . '.php'))
    include './news/' . $pagename . '.php';
    // if it couldn't be found display message
    else
    echo $pagename . '.php could not be found in either the root
    folder or the news folder!';
    } ?>
    What it's essentially saying is, if you can't find the .php
    file in the _root folder, look for it in the /news/ folder.
    It works perfectly if loading something from the _root folder
    but I get an error if I need to bring something from the /news/
    folder.
    Can anyone see any potential problems with my code?
    Thank you very much and I hope to hear from you.
    Take care,
    Mark

    I've never seen the code written like that before, but I'm
    assuming it's
    legal?
    Perhaps try:
    <?php
    $newsroot = $_SERVER['DOCUMENT_ROOT']."/news";
    if (!file_exists("$pagename.php")) {
    elseif (!file_exists("$newsroot/$pagename.php")) {
    else
    Or the other thing you can try is replacing the elseif
    statement with:
    elseif (!file_exists("news/$pagename.php"))
    If not - I'm sure Gary will be on here soon...
    Shane H
    [email protected]
    http://www.avenuedesigners.com
    =============================================
    Proud GAWDS Member
    http://www.gawds.org/showmember.php?memberid=1495
    Delivering accessible websites to all ...
    =============================================
    "Spindrift" <[email protected]> wrote in
    message
    news:e5mled$272$[email protected]..
    > Hello!
    >
    > I'm using the following syntax to bring content into my
    websites' layout
    > template:
    >
    > Code:
    >
    > <?php //check in the root folder first
    > if(file_exists('./' . $pagename . '.php'))
    > {
    > include './' . $pagename . '.php';
    > }
    > //if it wasn't found in the root folder then check in
    the news folder
    > elseif(file_exisits('./news/' . $filename . '.php'))
    > {
    > include './news/' . $pagename . '.php';
    > }
    > // if it couldn't be found display message
    > else
    > {
    > echo $pagename . '.php could not be found in either the
    root folder or
    > the
    > news folder!';
    > } ?>
    >
    > What it's essentially saying is, if you can't find the
    .php file in the
    > _root
    > folder, look for it in the /news/ folder.
    >
    > It works perfectly if loading something from the _root
    folder but I get an
    > error if I need to bring something from the /news/
    folder.
    >
    > Can anyone see any potential problems with my code?
    >
    > Thank you very much and I hope to hear from you.
    >
    > Take care,
    >
    > Mark
    >

  • PHP Include issues

    I'm currently in the process of setting up a new website, and since I'm using several elements that return on every page - I decided to use PHP Include to do this. Problem is that it works for my first pages - but once I go further into detail (read: further into directories), it gets entirely messed up.
    My headers and footers don't show - and my spry menu which is also PHP Included only shows in text.
    Strangely enough it works for my first pages, which are situated one directory away; to illustrate this further I quickly describe how my root folder looks like in the sense of directories:
    ROOT:
    EN (this contains my English pages)
    DK (this contains my Danish pages)
    includes (this contains my PHP Include elements like header, footer, menu)
    images
    I copied off of the internet the following code, to force the line to start checking from the root of the whole folder:
    <?php
        include($_SERVER['DOCUMENT_ROOT']."/includes/header.php");
    ?>
    This seemed to work perfectly for my main pages directly situated in the EN directory, but once I'm a couple of directories deeper into the EN folder - it gets completely mocked up. I'm pretty sure this question has been raised many, many times, and believe me, I've looked around.
    I read a lot about config.php - but because of the fact my knowledge in the terrain of PHP is fairly limited - this subject seems truly like Chinese to me. If someone has a guide for dummies out there - that would be great. Otherwise, my question is this:
    How can I make sure my PHP includes show correctly and ACT correctly (in the case my menu) website-wide?
    Thank you in advance for the help!!

    I've never quite gotten to grips with the way 'includes' work. They are a great asset to use but a pain the butt to manage unless you set up a virtual server locally.
    I now always tend to use the full url to the include like:
    For local development:
    <?php include ('http://localhost/myWebFolder/includes/topNavigation.php'); >?
    Then once I'm ready to take it to remote I do a site wide find and replace:
    <?php include ('http://www.myWebSite.com/includes/topNavigation.php'); >?
    Problem runs deeper than that though because if you bring in an 'include file to a document where the 'includes' folder is NOT in the same dircetory the links (if you have links) will be broken.
    Typical example:
    index.php gets the navigation 'include file' from the 'includes' folder sitting directly in the site root folder.
    about.php which is in a directory named 'pages' also calls in the 'include file' from the 'includes' folder BUT it can't link back to the index.php page because the links don't have ../ they have index.php.
    So now for any links included in the 'includes file' you also have to use the full url.

  • PHP require_once code is not working any more

    Before updating to Dreamweaver CC14 (from CS5.5), my php "require_once" files were working fine. When I imported the "ste" file into CC2014, and upload the files as usual, I get this error:
    Warning: require_once(/var/chroot/home/content/d/m/w/dmwebcreation/html/includes/_footer.php) [function.require-once]: failed to open stream: No such file or directory in /home/content/d/m/w/dmwebcreation/html/dmweb-2/index.php on line 15
    Fatal error: require_once() [function.require]: Failed opening required '/var/chroot/home/content/d/m/w/dmwebcreation/html/includes/_footer.php' (include_path='.:/usr/local/php5_3/lib/php') in /home/content/d/m/w/dmwebcreation/html/dmweb-2/index.php on line 15
    This is the php code that I am using in order to have these files added to any page and any directory.
    <?php
       $path = $_SERVER['DOCUMENT_ROOT'];
       $path .= "/includes/_footer.php";
       require_once($path);
    ?>
    This is the location for my test file:    http://dm-webcreation.com/dmweb-2/index.php
    I have Dreamweaver CC 2014 set up as "Links Relative to SITE ROOT" ... so that these files brought in from any files in any direction.
    Has something changed in CC 2014?

    I am using "Links Relative to Site Root" because of my "includes" files which I need to have relative to the site root so that it will not matter where I place the main files, I can still use the "includes" files as "templates" (for my menu, header, footer, copyright line, etc.) inside any file in any directory. The idea for using this "links relative to site root" coding came from: http://css-tricks.com/php-include-from-root/
    You will see that it is not just the php include file that is giving me problem, but even the image I placed on the page will not show up online.
    Interestingly, this webpage shows up without problem on my localhost testing server, but (as of this past week) it does not show up properly online.
    I have a virtual host set up as a localhost testing server in the C:\xampp\apache\conf\extra\httpd-vhosts.conf  file like this:
    The setup uses http://site1 as my local host like this:
         <VirtualHost *:80>
           DocumentRoot "c:/users/...../documents/@Websites/dm-webcreation"
           ServerName site1
         </VirtualHost>
    I manage several websites in the same hosting online, so I use "site1" as one website, and "site2" as another website for the local host testing server. In my remote hosting, I host all each website in a different directory of my main hosting (dm-webcreation.com) and point each website's domain name to that directory.
    And this works correctly on my localhost for the website. Both the image file and the php include file show up perfectly.
    My remote server is set up like this Dreamweaver CC2014:
         FTP Address: dm-webcreation.com
          Root Directory:  /dmweb-2/
         Web URL: www.dm-webcreation.com
    My testing server is set up like this in Dreamweaver CC2014 (this matches my VirtualHost set up):
         Server Folder: C:\Users\.....\documents\@Websites\dm-webcreation\
         Web URL: http://site1/
    I do receive this Dreamweaver error when saving the testing server set up:
    The URL prefex "/" of your testing server does not match the URL prefix "/dmweb-2/" of your site. Since you are using site relative links it is possible that your links will display  incorrectly at runtime...
    The strange thing is that I have three websites that were all set up the same way and they all worked fine until I imported them into this new version of Dreamweaver CC2014.
    That's why I am so puzzled. I have created this simple page (www.z.dm-webcreation.com/dmweb-2) just to try to discover what has changed.
    The other websites have the exact same "link relative to site root" in them, but they work without any problem. (www.airpyramid.com , www.leofenton.com ,  www.dev.casacristianavida.com ).
    Either something in my hosting has changed or Dreamweaver's Site Manager works differently...
    I AM REALLY PUZZLED!!

  • PHP Code disappearing

    Hi
    My DW CS4 has started to not show php includes in the code view (or design view for that matter!)
    They take this form usually -
          <?php include($_SERVER['DOCUMENT_ROOT'].'/php-include/nav-left.php'); ?>
    However, they are all missing! Is there a setting that has inadvertently changed?
    Thanks
    Graham

    Dreamweaver is not capable of interpreting $_SERVER['DOCUMENT_ROOT']. You need to use document-relative links for include files.

  • Header already sent

    Hello,
    Please excuse me. I know this has been discussed before. I am trying to make a simple user registration form. When the submit botton is pressed I always seem to get
    "Warning: Cannot modify header information - headers already sent in C:\xampp\htdocs\cdlist\Untitled-1.php on line 45"
    The main code is:
    <?php virtual('/cdlist/Connections/cdlist.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    $editFormAction = $_SERVER['PHP_SELF'];
    if (isset($_SERVER['QUERY_STRING'])) {
      $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
    if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
      $insertSQL = sprintf("INSERT INTO users (username) VALUES (%s)",
                           GetSQLValueString($_POST['name'], "text"));
      mysql_select_db($database_cdlist, $cdlist);
      $Result1 = mysql_query($insertSQL, $cdlist) or die(mysql_error());
      $insertGoTo = "yes.php";
      if (isset($_SERVER['QUERY_STRING'])) {
        $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
        $insertGoTo .= $_SERVER['QUERY_STRING'];
      header(sprintf("Location: %s",$insertGoTo));
    ?>
    <!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>
    <form id="form1" name="form1" method="POST" action="<?php echo $editFormAction; ?>">
      <table width="500" border="1">
        <tr>
          <td>cd name
            <label>
              <input type="text" name="name" id="name" />
              <input type="submit" name="button" id="button" value="Submit" />
          </label></td>
        </tr>
        <tr>
          <td>cd type 
            <label>
              <input type="text" name="type" id="type" />
              <input type="reset" name="button2" id="button2" value="Reset" />
          </label></td>
        </tr>
      </table>
      <input type="hidden" name="MM_insert" value="form1" />
    </form>
    </body>
    </html>
    The associated file for the main page cdlist.php is :
    <?php
    # FileName="Connection_php_mysql.htm"
    # Type="MYSQL"
    # HTTP="true"
    $hostname_cdlist = "localhost";
    $database_cdlist = "one_stop";
    $username_cdlist = "root";
    $password_cdlist = "enterprise";
    $cdlist = mysql_pconnect($hostname_cdlist, $username_cdlist, $password_cdlist) or trigger_error(mysql_error(),E_USER_ERROR);
    ?>
    The page that should come up is given by
    <!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>
    yes it was inserted
    </body>
    </html>
    I really have tried to find the solution and I really don't understand why this doesn't work. Please, any help would be really appreciated.
    Thanks

    <?php include($_SERVER['DOCUMENT_ROOT'].'/cdlist/Connections/cdlist.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    $editFormAction = $_SERVER['PHP_SELF'];
    if (isset($_SERVER['QUERY_STRING'])) {
      $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
    if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
      $insertSQL = sprintf("INSERT INTO users (username) VALUES (%s)",
                           GetSQLValueString($_POST['name'], "text"));
      mysql_select_db($database_cdlist, $cdlist);
      $Result1 = mysql_query($insertSQL, $cdlist) or die(mysql_error());
      $insertGoTo = "yes.php";
      if (isset($_SERVER['QUERY_STRING'])) {
        $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
        $insertGoTo .= $_SERVER['QUERY_STRING'];
      header(sprintf("Location: %s",$insertGoTo));
    ?>
    <!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>
    <form id="form1" name="form1" method="POST" action="<?php echo $editFormAction; ?>">
      <table width="500" border="1">
        <tr>
          <td>cd name
            <label>
              <input type="text" name="name" id="name" />
              <input type="submit" name="button" id="button" value="Submit" />
          </label></td>
        </tr>
        <tr>
          <td>cd type 
            <label>
              <input type="text" name="type" id="type" />
              <input type="reset" name="button2" id="button2" value="Reset" />
          </label></td>
        </tr>
      </table>
      <input type="hidden" name="MM_insert" value="form1" />
    </form>
    </body>
    </html>
    Thanks for the reply David. Here is Untitled-1.php. As you can can see I have edited the first line to the suggested include code.

  • ANNC: divaFreeTools: a Free  Dreamweaver Extension

    I've just uploaded a new, free DW Extension that is actually
    an array of
    seven Utilities. Murray - #4 is the one you asked for. If
    anyone has
    need for another utility, email me!
    Hope you find them useful.
    Available here:
    http://divahtml.com/products/divaFreeTools/free_dreamweaver_tools.php
    The tools are:
    1) Set spacer image Alt attributes to alt=""
    Finds all (gif) spacer images and adds an empty alt tag. So
    <img src="shim.gif"/>
    becomes
    <img src="shim.gif" alt=""/>
    This is useful to hide these meaningless images from Screen
    Readers, (and to help your page pass HTML Validation.)
    2) Set (non-spacer) image Alt attributes
    Finds all non-spacer images (with options to display those
    that
    have no alt attribute and/or have a blank alt, and/or have a
    existing
    alt value), and adds alt values of your choice (or removes
    the alt
    attribute entirely.) Titles too. You can edit the list of
    spacer image
    filenames that divaTools will look for.
    3) Set tag Titles
    Finds any html tag you request (with options to display
    those that
    have no title attribute and/or have a blank title, and/or
    have a
    existing title value), and add title values of your choice
    (or remove
    the title attribute entirely.)
    4) Dreamweaver's OpenBrowserWindow
    Copies the filename that would open in a popup to the link's
    href. So
    <a href="#" onClick="MM_openBrWindow('Z.htm')">
    becomes
    <a href="Z.htm" onClick="MM_openBrWindow('Z.htm');return
    false)">
    And then optionally removes the behavior, leaving:
    <a href="Z.htm">.
    Now you can use divaPOPgold or divaPOP on the page!
    5) Valley Web Design's JustSo PictureWindow3
    Same as above for JustSo PictureWindow3 behaviors.
    6) Adjust gallery width in JustSo PhotoAlbum3 tables
    Ever wanted to change the number of columns in a JustSo
    PhotoAlbum
    gallery table? Instead of recreating the whole thing, now you
    can use
    this quick and easy tool to instantly modify the number of
    table columns.
    7) Convert Library --> Server Side Include Statements
    To ease one of the steps in ridding your site of DW Library
    items,
    <!-- #BeginLibraryItem "/Library/Z.lbi" -->
    <p>This is in an .lbi file</p>
    <!-- #EndLibraryItem -->
    becomes, depending your selection of ApacheSSI, ASP or PHP
    <!--#include virtual="/Library/Z.htm" -->
    or
    <?php
    include($_SERVER['DOCUMENT_ROOT'].'/Library/Z.htm');?>
    E. Michael Brandt
    www.divahtml.com
    www.divahtml.com/products/scripts_dreamweaver_extensions.php
    Standards-compliant scripts and Dreamweaver Extensions
    www.valleywebdesigns.com/vwd_Vdw.asp
    JustSo PictureWindow
    JustSo PhotoAlbum, et alia

    And you TRUSTED HIS ADVICE? <shaking head>
    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
    ==================
    "E Michael Brandt" <[email protected]> wrote
    in message
    news:[email protected]...
    > I've just uploaded a new, free DW Extension that is
    actually an array of
    > seven Utilities. Murray - #4 is the one you asked for.
    If anyone has need
    > for another utility, email me!
    >
    > Hope you find them useful.
    >
    > Available here:
    >
    http://divahtml.com/products/divaFreeTools/free_dreamweaver_tools.php
    >
    > The tools are:
    >
    > 1) Set spacer image Alt attributes to alt=""
    >
    > Finds all (gif) spacer images and adds an empty alt tag.
    So
    >
    > <img src="shim.gif"/>
    >
    > becomes
    >
    > <img src="shim.gif" alt=""/>
    >
    > This is useful to hide these meaningless images from
    Screen Readers,
    > (and to help your page pass HTML Validation.)
    >
    >
    > 2) Set (non-spacer) image Alt attributes
    >
    > Finds all non-spacer images (with options to display
    those that have
    > no alt attribute and/or have a blank alt, and/or have a
    existing alt
    > value), and adds alt values of your choice (or removes
    the alt attribute
    > entirely.) Titles too. You can edit the list of spacer
    image filenames
    > that divaTools will look for.
    >
    >
    > 3) Set tag Titles
    >
    > Finds any html tag you request (with options to display
    those that
    > have no title attribute and/or have a blank title,
    and/or have a existing
    > title value), and add title values of your choice (or
    remove the title
    > attribute entirely.)
    >
    >
    > 4) Dreamweaver's OpenBrowserWindow
    >
    > Copies the filename that would open in a popup to the
    link's href. So
    >
    > <a href="#" onClick="MM_openBrWindow('Z.htm')">
    >
    > becomes
    >
    > <a href="Z.htm"
    onClick="MM_openBrWindow('Z.htm');return false)">
    >
    > And then optionally removes the behavior, leaving:
    >
    > <a href="Z.htm">.
    >
    > Now you can use divaPOPgold or divaPOP on the page!
    >
    >
    >
    > 5) Valley Web Design's JustSo PictureWindow3
    >
    > Same as above for JustSo PictureWindow3 behaviors.
    >
    >
    > 6) Adjust gallery width in JustSo PhotoAlbum3 tables
    >
    > Ever wanted to change the number of columns in a JustSo
    PhotoAlbum
    > gallery table? Instead of recreating the whole thing,
    now you can use this
    > quick and easy tool to instantly modify the number of
    table columns.
    >
    >
    > 7) Convert Library --> Server Side Include Statements
    >
    > To ease one of the steps in ridding your site of DW
    Library items,
    >
    > <!-- #BeginLibraryItem "/Library/Z.lbi" -->
    > <p>This is in an .lbi file</p>
    > <!-- #EndLibraryItem -->
    >
    > becomes, depending your selection of ApacheSSI, ASP or
    PHP
    >
    > <!--#include virtual="/Library/Z.htm" -->
    > or
    > <?php
    include($_SERVER['DOCUMENT_ROOT'].'/Library/Z.htm');?>
    >
    >
    > --
    >
    >
    > E. Michael Brandt
    >
    > www.divahtml.com
    >
    www.divahtml.com/products/scripts_dreamweaver_extensions.php
    > Standards-compliant scripts and Dreamweaver Extensions
    >
    > www.valleywebdesigns.com/vwd_Vdw.asp
    > JustSo PictureWindow
    > JustSo PhotoAlbum, et alia
    >
    > --

  • You Cannot Perform... intermittent issue

    Here's an odd one:
    We have an issue that has come up with a client using that is
    using Contribute 3.11 on a site that has been built with
    Dreamweaver templates (no template nesting) and PHP includes (no
    editable regions within the include files). It seems similar to the
    issues others have had with users being unable to copy and paste
    content from Word or a text file into Contribute, but with a few
    twists.
    The issue is that we have a user on a Windows XP SP3 machine
    running Contribute 3.11 who occasionally gets the "You cannot
    Perform" error when trying to copy and paste additional content in
    from either Word (using either paste as plain text or straight copy
    and paste) or Notepad. (using either paste as plain text or
    straight copy and paste).
    * the template is very simple: a few template properties and
    only one editable region (and no nesting). And it validates as
    fully compliant XHTML 1.0 Transitional markup.
    * includes are done using the following php syntax, i.e.:
    <?php
    require_once($_SERVER['DOCUMENT_ROOT'].'/includes/en/navMain.php');?>
    * the problem is intermittent, and so far only occurs on just
    this one user's machine.
    Even weirder, here's a workaround (that seems to work so
    far):
    * Once the problem starts, trying to CTRL-P/CTRL-V,
    CTRL-P/CTRL-Shift-V or selecting Edit > Paste / Edit > Paste
    Text Only DOES NOT WORK. However, right-clicking with the mouse and
    select Paste does!
    Very odd. Anyone else able to repeat this specific scenario?
    Thanks,
    Sean

    Hi
    How did u create an interface with name beginning with IF_EX*, the standard interfaces for BADI should have a name like that.
    If you've create a custom interface it should be called Z*.
    Max

  • Fails to open connection stream

    Ok, so have a page that works wonderfully where it currently sits (off the HTTP_ROOT).
    It includes the line:
    <?php require_once('/Connections/imaging101.php'); ?>
    I decided I wanted to move this page, along with a few others that are all "admin only" to an "admin" directory.  I moved the pages and DW automatically updated the above string to:
    <?php require_once('../Connections/imaging101.php'); ?>
    I expected this to work, but it does not... I constantly get the error:
    Warning: require_once(Connections/imaging101.php) [function.require-once]: failed to open stream:
    No such file or directory in
    /home/content/d/j/m/djmikewatt/html/sites/imaging101/includes/left_pane.php
    on line 1
    Fatal error: require_once() [function.require]: Failed opening required
    'Connections/imaging101.php' (include_path='.:/usr/local/php5/lib/php') in
    /home/content/d/j/m/djmikewatt/html/sites/imaging101/includes/left_pane.php
    on line 1
    I tried adjusting the string to things like:
    <?php require_once($_SERVER['HTTP_HOST'].'/Connections/imaging101.php'); ?>
    <?php require_once($_SERVER['DOCUMENT_ROOT'].'[path from root]/Connections/imaging101.php'); ?>
    None of this works. I don't know what is wrong.  If the page works off the root, and then is places one level deep ([root]/admin/) shouldn't simply adding the ".." in front of the path do the trick? (../Connections/imaging101.php)
    Am I missing something else here?

    Thread moved to Dreamweaver Application Development forum, which deals with server-side issues.
    The PHP include and require commands use document-relative paths or look for files in your PHP include_path. They do not understand links relative to the site root. It would appear that the previous location of your include file just happened to translate correctly to the location of the include file. Now that you have moved it, PHP can't find it.
    The reason $_SERVER['HTTP_HOST'] doesn't work is because most hosts turn off the inclusion of files through a URL. In fact, it's the default setting in PHP since 5.2.
    I don't know why  $_SERVER['DOCUMENT_ROOT'] doesn't work, but it's not supported on all servers, so that might be the problem.
    There are two simple ways to solve this problem:
    Use an absolute path, starting with /home/content/ etc.
    Use set_include_path() to add the folder where the file resides in your include_path.

  • Performing a Find/Replace for an entire Folder of html files

    Hello,
    I have been working away on adding an include to my html pages and getting the code all set up for a header and footer. With lots of help from kind people on this forum I finally have it working!
    Now I want to add this to an entire folder of 500 or so HTML pages.
    Can someone walk me through how to do this?
    I also want to eliminate some stupid code that I put in years ago to prevent right clicking.
    Perhaps this is a multi step job? First get rid of old code. Then add new header. Then add new footer???
    Here is the fully functioning page with the new code:
    http://www.glennbartley.com/naturephotography/birds/ACORN%20WOODPECKER.html
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title>ACORN WOODPECKER</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>
    <body bgcolor="#000000" text="#CCCCCC" link="#CCCCCC" vlink="#CCCCCC" alink="#999999">
    <div align="center">
    <?php $filepath = $_SERVER['DOCUMENT_ROOT'] . '/naturephotography/Header-Test.html'; include($filepath); ?>
    </div>
    <h1 align="center"><strong><font color="#999999" size="5" face="Arial Narrow">ACORN WOODPECKER</font></strong></h1>
    <p align="center"><font color="#009900" face="Arial, Helvetica, sans-serif"><strong>NORTH AMERICA</strong></font></p>
    <p align="center"><img src="../GB Collection/Acorn Woodpecker - 01.jpg" alt="Acorn Woodpecker" width="530" height="775"> </p>
    <p align="center"><img src="../GB Collection/Acorn Woodpecker - 02.jpg" alt="Acorn Woodpecker" width="530" height="775"></p>
    <p align="center"><img src="../GB Collection/Acorn Woodpecker - 03.jpg" alt="Acorn Woodpecker" width="530" height="775"></p>
    <p align="center"><img src="../GB Collection/Acorn Woodpecker - 04.jpg" alt="Acorn Woodpecker" width="530" height="775"></p>
    <p align="center"><img src="../GB Collection/Acorn Woodpecker - 05.jpg" alt="Acorn Woodpecker" width="530" height="775"></p>
    <p align="center"><img src="../GB Collection/Acorn Woodpecker - 06.jpg" alt="Acorn Woodpecker" width="775" height="530"></p>
    <p align="center"><img src="../GB Collection/Acorn Woodpecker - 07.jpg" alt="Acorn Woodpecker" width="530" height="775"></p>
    <p align="center"><img src="../GB Collection/Acorn Woodpecker - 08.jpg" alt="Acorn Woodpecker" width="530" height="775"></p>
    <div align="center"><?php $filepath = $_SERVER['DOCUMENT_ROOT'] . '/naturephotography/Footer-Test.html'; include($filepath); ?>
    </div>
    </body>
    </html>
    And an example of one of the existing pages:
    http://www.glennbartley.com/naturephotography/birds/COMMON%20LOON.html
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <!-- prevent right-click -->
    <SCRIPT LANGUAGE='JavaScript' type='text/javascript' >
    <!--
    document.oncontextmenu = function(){return false}
    if(document.layers) {
    window.captureEvents(Event.MOUSEDOWN);
    window.onmousedown = function(e){
    if(e.target==document)return false;
    else {
    document.onmousedown = function(){return false}
    //-->
    </SCRIPT>
    <title>COMMON LOON</title>
    <meta name="description" content="Photographs of Common Loon in Ontario. Nature Wildlife and Landscape Photography. Bird Photography">
    <meta name="keywords" content="Loon, Common Loon, bird photography, birds of Ontario, nature photography">
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <script language="JavaScript" type="text/JavaScript">
    <!--
    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[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    //-->
    </script>
    </head>
    <body bgcolor="#000000" text="#CCCCCC" link="#CCCCCC" vlink="#CCCCCC" alink="#999999">
    <h1 align="center"><font color="#999999" size="5" face="Arial Narrow"><strong>COMMON
      LOON</strong></font></h1>
    <p align="center"><img src="../GB Collection/_Update - Aug 24, 2011/Common Loon - 19.jpg" width="775" height="530"></p>
    <p align="center"><img src="../GB Collection/_Update - Aug 24, 2011/Common Loon - 20.jpg" width="775" height="530"></p>
    <p align="center"><img src="../GB Collection/_Update - Aug 24, 2011/Common Loon - 21.jpg" width="530" height="775"></p>
    <p align="center"><img src="../GB Collection/_Update - Aug 24, 2011/Common Loon - 22.jpg" width="775" height="530"></p>
    <p align="center"><img src="../GB Collection/_Update - Aug 24, 2011/Common Loon - 23.jpg" width="775" height="530"></p>
    <p align="center"><img src="../GB Collection/_Update - Aug 24, 2011/Common Loon - 24.jpg" width="775" height="530"></p>
    <p align="center"><img src="../GB Collection/UPDATE - NOV 2012/NORTH AMERICA/Common Loon - 53.jpg" width="775" height="530"></p>
    <p align="center"><img src="../GB Collection/UPDATE - NOV 2012/NORTH AMERICA/Common Loon - 54.jpg" width="775" height="530"></p>
    <p align="center"><img src="../GB Collection/UPDATE - NOV 2012/NORTH AMERICA/Common Loon - 55.jpg" width="775" height="530"></p>
    <p align="center"><img src="../GB Collection/UPDATE - NOV 2012/NORTH AMERICA/Common Loon - 56.jpg" width="775" height="530"></p>
    <p align="center"><img src="../GB Collection/UPDATE - NOV 2012/NORTH AMERICA/Common Loon - 57.jpg" width="775" height="530"></p>
    <p align="center"><img src="../GB Collection/UPDATE - NOV 2012/NORTH AMERICA/Common Loon - 58.jpg" width="775" height="530"></p>
    <p align="center"><img src="../GB Collection/_Update - Aug 24, 2011/Common Loon - 25.jpg" width="530" height="775"></p>
    <p align="center"><img src="../GB Collection/_Update - Aug 24, 2011/Common Loon - 26.jpg" width="775" height="530"></p>
    <p align="center"><img src="../GB Collection/_Update - Aug 24, 2011/Common Loon - 27.jpg" width="775" height="530"></p>
    <p align="center"><img src="../GB Collection/_Update - Aug 24, 2011/Common Loon - 28.jpg" width="775" height="530"></p>
    <p align="center"><img src="../GB Collection/_Update - Aug 24, 2011/Common Loon - 29.jpg" width="775" height="530"></p>
    <p align="center"><img src="../GB Collection/_Update - Aug 24, 2011/Common Loon - 30.jpg" width="530" height="775"></p>
    <p align="center"><img src="../GB Collection/_Update - Aug 24, 2011/Common Loon - 31.jpg" width="775" height="530"></p>
    <p align="center"><img src="../GB Collection/_Update - Aug 24, 2011/Common Loon - 32.jpg" width="775" height="530"></p>
    <p align="center"><img src="../GB Collection/_Update - Aug 24, 2011/Common Loon - 33.jpg" width="775" height="530"></p>
    <p align="center"><img src="../GB Collection/_Update - Aug 24, 2011/Common Loon - 34.jpg" width="775" height="530"></p>
    <p align="center"><img src="../GB Collection/_Update - Aug 24, 2011/Common Loon - 35.jpg" width="775" height="530"></p>
    <p align="center"><img src="../GB Collection/_Update - Aug 24, 2011/Common Loon - 36.jpg" width="775" height="530"></p>
    <p align="center"><img src="../GB Collection/_Update - Aug 24, 2011/Common Loon - 37.jpg" width="775" height="530"></p>
    <p align="center"><img src="../GB Collection/_Update - Aug 24, 2011/Common Loon - 38.jpg" width="775" height="530"></p>
    <p align="center"><img src="../GB Collection/_Update - Aug 24, 2011/Common Loon - 39.jpg" width="530" height="775"></p>
    <p align="center"><img src="../GB Collection/_Update - Aug 24, 2011/Common Loon - 40.jpg" width="775" height="530"></p>
    <p align="center"><img src="../GB Collection/_Update - Aug 24, 2011/Common Loon - 41.jpg" width="775" height="530"></p>
    <p align="center"><img src="../GB Collection/_Update - Aug 24, 2011/Common Loon - 42.jpg" width="775" height="530"></p>
    <p align="center"><img src="../GB Collection/_Update - Aug 24, 2011/Common Loon - 43.jpg" width="775" height="530"></p>
    <p align="center"><img src="../GB Collection/_Update - Aug 24, 2011/Common Loon - 44.jpg" width="775" height="530"></p>
    <p align="center"><img src="../GB Collection/_Update - Aug 24, 2011/Common Loon - 45.jpg" width="775" height="530"></p>
    <p align="center"><img src="../GB Collection/_Update - Aug 24, 2011/Common Loon - 46.jpg" width="530" height="775"></p>
    <p align="center"><img src="../GB Collection/_Update - Aug 24, 2011/Common Loon - 47.jpg" width="775" height="530"></p>
    <p align="center"><img src="../GB Collection/_Update - Aug 24, 2011/Common Loon - 48.jpg" width="775" height="530"></p>
    <p align="center"><img src="../GB Collection/_Update - Aug 24, 2011/Common Loon - 49.jpg" width="775" height="530"></p>
    <p align="center"><img src="../GB Collection/_Update - Aug 24, 2011/Common Loon - 50.jpg" width="775" height="530"></p>
    <p align="center"><img src="../GB Collection/_Update - Aug 24, 2011/Common Loon - 51.jpg" width="775" height="530"></p>
    <p align="center"><img src="../GB Collection/_Update - Aug 24, 2011/Common Loon - 52.jpg" width="775" height="530"></p>
    <p align="center"><img src="../GB Collection/Common Loon - 01.jpg" width="775" height="530"></p>
    <p align="center"><img src="../GB Collection/Common Loon - 14.jpg" width="775" height="530"></p>
    <p align="center"><img src="../GB Collection/Common Loon - 11.jpg" width="775" height="530"></p>
    <p align="center"><img src="../GB Collection/Common Loon - 02.jpg" width="775" height="530"></p>
    <p align="center"><img src="../GB Collection/Common Loon - 03.jpg" width="775" height="530"></p>
    <p align="center"><img src="../GB Collection/Common Loon - 04.jpg" width="775" height="530"></p>
    <p align="center"><img src="../GB Collection/Common Loon - 05.jpg" width="1010" height="530"></p>
    <p align="center"><img src="../GB Collection/Common Loon - 06.jpg" width="775" height="530"></p>
    <p align="center"><img src="../GB Collection/Common Loon - 07.jpg" width="775" height="530"></p>
    <p align="center"><img src="../GB Collection/Common Loon - 08.jpg" width="775" height="530"></p>
    <p align="center"><img src="../GB Collection/Common Loon - 09.jpg" width="775" height="530"></p>
    <p align="center"><img src="../GB Collection/Common Loon - 10.jpg" width="775" height="530"></p>
    <p align="center"><img src="../GB Collection/Common Loon - 12.jpg" width="775" height="530"></p>
    <p align="center"><img src="../GB Collection/Common Loon - 13.jpg" width="775" height="530"></p>
    <p align="center"><img src="../GB Collection/Common Loon - 15.jpg" width="775" height="530"></p>
    </body>
    </html>

    Hello,
    Thank you for the info. I did as you described and it worked like a charm.
    I have removed the old code and added in teh header.
    I'm kind of stumped as to how to put in the footer though as there isnt really anything to "find"?
    How can I replace something at the very end of the document??
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title>AMERICAN AVOCET</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>
    <body bgcolor="#000000" text="#CCCCCC" link="#CCCCCC" vlink="#CCCCCC" alink="#999999">
    <div align="center">
    <?php $filepath = $_SERVER['DOCUMENT_ROOT'] . '/naturephotography/Header-Test.html'; include($filepath); ?>
    </div>
    <h1 align="center"><font color="#999999" size="5" face="Arial Narrow"><strong>AMERICAN
      AVOCET</strong></font></h1>
    <p align="center"><img src="../GB Collection/American Avocet - 21.jpg" alt="American Avocet Image" width="775" height="530"></p>
    <p align="center"><img src="../GB Collection/American Avocet - 22.jpg" alt="American Avocet Image" width="775" height="530"></p>
    <p align="center"><img src="../GB Collection/American Avocet - 23.jpg" alt="American Avocet Image" width="775" height="530"></p>
    <p align="center"><img src="../GB Collection/American Avocet - 18.jpg" alt="American Avocet Image" width="775" height="530"></p>
    <p align="center"><img src="../GB Collection/American Avocet - 19.jpg" alt="American Avocet Image" width="775" height="530"></p>
    <p align="center"><img src="../GB Collection/American Avocet - 20.jpg" alt="American Avocet Image" width="530" height="775"></p>
    <p align="center"><img src="../GB Collection/American Avocet-11.jpg" alt="American Avocet Image" width="775" height="530"></p>
    <p align="center"><img src="../GB Collection/American Avocet-12.jpg" alt="American Avocet Image" width="775" height="530"></p>
    <p align="center"><img src="../GB Collection/American Avocet-09.jpg" alt="AMERICAN AVOCET" name="Avocet" width="775" height="530" id="Avocet"></p>
    <p align="center"><img src="../GB Collection/American Avocet-17.jpg" width="775" height="530"></p>
    <p align="center"><img src="../GB Collection/American Avocet-16.jpg" width="775" height="530"></p>
    <p align="center"><img src="../GB%20Collection/Avocet%20-%20CRW_5390-02.jpg" width="775" height="530">
    </p>
    <p align="center"><img src="../GB Collection/American Avocet-15.jpg" width="775" height="530"></p>
    <p align="center"><img src="../GB Collection/American Avocet-14.jpg" width="775" height="530"></p>
    <p align="center"><img src="../GB Collection/American Avocet-13.jpg" width="775" height="530"></p>
    <p align="center"><img src="../GB Collection/American Avocet-10.jpg" width="775" height="530"></p>
    <p align="center"><img src="../GB Collection/American Avocet-08.jpg" width="775" height="530"></p>
    <p align="center"><img src="../GB Collection/American Avocet-07.jpg" width="775" height="530"></p>
    <p align="center"><img src="../GB Collection/American Avocet-06.jpg" width="775" height="530"></p>
    <p align="center"><img src="../GB Collection/American Avocet-05.jpg" width="775" height="530"></p>
    <p align="center"><img src="../GB Collection/American Avocet-04.jpg" width="775" height="530"></p>
    <p align="center"><img src="../GB Collection/American Avocet-03.jpg" width="775" height="530"></p>
    <p align="center"><img src="../GB Collection/American Avocet-02.jpg" width="775" height="530"></p>
    <p align="center">  </p>
    <p align="center">  </p>
    </body>
    </html>

Maybe you are looking for