Some php + berkeley db questions

I have some questions about using php with bdb.
First, I compiled Berkeley db and then linked php to it using the configure directive.
Then I accessed bdb through the php standard dba_* APIs. This works, but it seems like locking is broken. The php documentation (and common sense) says that calls to dba_open() with a write lock will block when another such call has succeeded in another process. But my tests show many concurrent processes all getting write locks no problem.
So then I compiled the native php_db4 extension that ships with bdb. I tried to use the API documented here:
http://www.oracle.com/technology/documentation/berkeley-db/db/ref/ext/php.html
Can anybody direct me to a more complete (and more correct) fuller documented version of this API? For instance, the put method is not shown in the Db4 class, but it does exist.
I'm trying to infer how the php API works from the C API docs, but it's not very easy, particularly when it comes to error codes returned. Is there a db_strerror in the php?
I can get the simple demos that come in the db4 php dir to work, but what I need is a locking environment, much like the one documented here:
http://www.oracle.com/technology/documentation/berkeley-db/db/ref/cam/intro.html
However, when I try to open the DBENV with the DB_INIT_CDB and DB_INIT_MPOOL flags, as directed, the call fails in the php. I cannot figure out why or how to get an errorr code or message I can debug?
Any help will be much appreciated. If you could just point me at any real-world examples of php and berkeley db that would be a great start.

Hi,
From what I'm aware of, there is no extra documentation on php & BDB (maybe just php.net :) ). Also, I don't know if is there anyone who published his source code.
What kind of application do you want to build? I think that a good option for the moment is to try to use BDB XML version ( Berkeley DB XML and http://www.oracle.com/technology/products/berkeley-db/xml/index.html ), since there are many cases there in which the BDB XML product is used via PHP, and this is why you can have a better support. I think that you can try to achieve the same approach using XML, please let me know if you agree or not.
BDB XML's PHP API's are mapped over C++ API, and you'll have the ability to use XML and XQuery rather than tables and SQL.
If you can point me with a specific issue in PHP APIs for BDB, and provide me with test cases, I can try to work them out. Also, in the next weeks, I 'll try to have a look on PHP APIs in my spare time, and maybe I'll be able to work on supporting the latest BDB APIs. If there is somebody working on a PHP app and is willing to help on testing and maintaining the PHP APIs, please post here.
Regards,
Bogdan Coman, Oracle

Similar Messages

  • Browsers won't open some php testing server files

    Running DW 8, OS 10.4.10, Apache virtual testing server with
    php local site.
    I've Firefox and Safari as primary and secondary browsers.
    When working on a
    page, if I select 'preview in primary browser', Firefox opens
    the page with
    my virtual url...no problem. Lately, some php files will not
    open. Firefos
    give a dialog to open the file in default (DW) or save to
    disk. This is very
    frustrating since one file it does this to is a login page.
    Safari does the
    same thing!
    I have select the file in question in the finder (extension:
    ,php) and
    through the Get Info and told Mac OS to open this file with
    Firefox and all
    .php extensions. Rebuilt prebinding so all php files in the
    Finder show a
    Firefox icon, but still neither Firefox nor Safari will open
    them. They
    don't recognize the
    <meta http-equiv="Content-Type" content="text/html;
    charset=ISO-8859-1" />
    Metatag. The really frustrating thing is that only some files
    behave this
    way. Most of the others work fine and I can't see anything in
    the headers
    that would cause one to open and not another. Has anyone ever
    run across the
    behavior before and if so, what was the cause?
    Thanks,
    Charles Newbury

    On 10/14/07 10:18 AM, in article
    [email protected], "Joe
    Makowiec"
    <[email protected]> wrote:
    > On 14 Oct 2007 in macromedia.dreamweaver, Charles
    Newbury wrote:
    >
    >> Running DW 8, OS 10.4.10, Apache virtual testing
    server with php
    >> local site.
    >>
    >> I've Firefox and Safari as primary and secondary
    browsers. When
    >> working on a page, if I select 'preview in primary
    browser', Firefox
    >> opens the page with my virtual url...no problem.
    Lately, some php
    >> files will not open. Firefos give a dialog to open
    the file in
    >> default (DW) or save to disk. This is very
    frustrating since one
    >> file it does this to is a login page. Safari does
    the same thing!
    >
    > What happens on the actual server?
    >
    >> I have select the file in question in the finder
    (extension: ,php)
    >> and through the Get Info and told Mac OS to open
    this file with
    >> Firefox and all .php extensions. Rebuilt prebinding
    so all php files
    >> in the Finder show a Firefox icon, but still neither
    Firefox nor
    >> Safari will open them. They don't recognize the
    >>
    >
    > Are you sure that your local server is running? Also,
    I'm no Mac
    > maven, but I'm given to understand that the version of
    Apache which
    > comes installed on Macs is on the underpowered side, and
    should be
    > replaced with a version downloaded from somewhere?
    True, I'm running Apache 1.3, but I'm leery of trying to
    upgrade to a newer
    version for fear of messing up everything that already works.
    Had a real
    headache getting MySQL 5, PHP 5 and phpMyAdmin all up and
    running with DW 8.
    Fortunately I had David Powers book that gave pretty much
    idiot proof
    instructions on how to install all this stuff. I'd never been
    able to do it
    left to my own devices. Another caveat is that my webhost,
    like most, is
    behind the upgrade curve: they run MySQL 4.1 and phpMyAdmin
    2,8 so if I
    upgrade too much there may be compatibility issues.
    Another oddity, renaming that file from .php to .html
    extension causes it
    to open fine in Firefox and Safari. I don't think it's kosher
    to keep it
    that way since it does contain DW8's login php scripts.
    Again, there's no
    problem with other .php files.

  • When I upgraded to Fire Fix 7X or higher some PHP pages I programmed do not work properly. Please see details below.

    I have some PHP pages I have programmed that do database inserts and updates. I am using Dreamweaver and an extention package called InterAkt MXKollection to enhance some features on the web page. In particular some fields on the page use what is called KTML Rich Text Editors. In Firefox versions 3X to 6X all the fields work for an UPDATE post to the database. When I upgraded to Fire Fix 7X or higher only the first RTE field posts any changes and the rest of the form fields do not post any changed content. I know this is a browser issue because it all works in IE 7 and 8 and when I uninstall Fire Fox 7X (and higher) and revert back to the earlier Fire Fox versions (6X and below) the page works correctly. Also there is a dependent dropdown menu set on the page and it too breaks from FF V7X and on. It seems that something in the browser is not allowing all the functions in my page to take place in the newer versions. I can provide proof if needed.

    Hi!
    We focus in end-user help. If you are having development questions, you will have better support in http://developer.mozilla.org

  • HT201272 I have recently picked up an Apple TV. When I go to the movies tab, there are less movies available there than there are in my i-Tunes account. I've done some looking around at questions from others, but haven't found an answer that works for me.

    I have recently picked up an Apple TV. When I go to the movies tab, there less movies available there than what is available in my i-Tunes library. I have 38 movies showing in my library but only 23 are showing in the Movies tab on the Apple TV. After researching this a little, there are only 23 movies showing under Purchased in the Quicklinks of my i-Tunes account. The majority of my collection are digital copy downloads that came from DVD purchases. Some of the missing movies were added in the past couple of months, the rest are a year-or-so old. I have done some looking around at questions from others, but I have not found an answer that will fix my situation. How do I update my library to get ALL of my movies to reflect that they were "Purchased"(as it says they were in their Properties)?

    Biggles Lamb wrote:
    Chill out guys, getting personal will never ever change another persons view, right or wrong, they are entitled to them .
    The pros and cons of to CC or not to CC have been done to death
    Its a fact the CC model will work for some, especially newbies and small businesses.
    The risks associated with the CC model have been well documented.
    For long term users of CS perpetuals its generally a large hike up in cost compared to the upgrade system.
    Then there are the....... Adobe can rot it hell...... group who will never subscribe
    To each their own, you do the math to suit your cashflow whatever that is and then make an informed decision
    To those on the CC model, I'd like to offer some practical advice.........do not allow automatic updates.........make regular backups............develop an exit strategy of alternatives for when you can no longer afford the subscription costs............never ever assume that the Adobe update is bug free
    Enjoy your cloud
    Col
    Thank you for that post, and the advice. I just happen to be one of those who it does work for. I've been around long enough to know that CC isn't going to work for everyone(the large publishing/radio/web company I work for isn't upgrading to CC because of the costs involved). But it does for me as I potentially venture out into the full-time freelancing world and away from the more structured big office environment. I can't make decisions based on what is best for anyone else, or what will hurt or help Adobe. Just what affects me, and that's all.
    Brent

  • Macbook pro starts up but i see picture of some files and a question mark

    So I was on my laptop today and it just outta nowhere froze , the song i was listening stopped and i couldn't change the page, i could move the trackpad but nothing else.
    so i clicked on the off button and turned it off.
    then i tried to turn it on again but while loading it just stayed blank and this picture of some files and a question mark on them appeared, i have no idea what's going on.
    I turned it off again and turned it back on and the little apple appeared and it was loading but then a sign appeared like one of prohibited (the one that's a circle and has a slash across it) and idk what to do! i'm so frustrated all my school files are there and idk why this happened in the first place.
    i turned it off and just put it to charge.
    lately i've been using it a lot and i had a few things on when it froze , so im just gonna leave it off for a while but what can i do?
    how do u solve this? has anyone had this happened to their macbook pro already? i bought it just last year idk why this is happening.

    The folder and question mark means it cannot find a valid OSX Boot Volume, you need to Boot from your original install DVD (hold c at start) and then run Disc Utility from the top menu bar and run both 'Repair Disc' and 'Repair Permissions'. If it still doesn't boot from the internal hard drive then you need to boot from that install DVD again and do an archive (re)install of the operating system. (Your User data will be saved that way)

  • Why do some graphics only have question marks on my iPad?

    Why do some graphics only have question marks on my iPad?

    On web pages and in the ap store.  In place of the graphic there's a little box with a question mark in it.
    I can't even connect to a web page right now.  I've got three bars on the wifi icon but safari just keeps trying until it says it can't connect to the server.  Same with the ap store, I've been trying all afternoon to download a new ap with no success.  It came right through on my iphone on the same wifi network.  Had the same problem on my home network.   I'm new to apple and I've only had the iphone and the ipad for a little over a week, but all this seems to have started after the most recent software update.
    Is this all related?

  • Probably a simple Apache2 html/php root links question

    Alright I need some basic help here...
    I remember awhile back ago I could use / to specify the root of the web server in a php file. So say I wanted to link to an image at /wwwroot/images/image.gif from an index.php file in /wwwroot/pages/stuff/index.php, all I needed was
    <img src="/wwwroot/images/image.gif">
    vs.
    <img src="http://website.com/wwwroot/images/image.gif">.
    The top old method does not seem to work anymore, the image isn't found unless I do a complete URL link. I tried googling for this but its not coming up with anything relevant to my question. Is there an option in the httpd.conf file, or a different character instead of /?
    Thanks for any help 

    Actually, OP wants to set opacity for non-disabled items Also, if you use jQuery you also don't need to use this "each"-construction as that is totally unnecessary. You can simply chain the "css" part to the returned array, like this
    $('input.popup_lov:not(:disabled)').css('opacity','100');
    I don't think you need to use jQuery here though. You can use css to override the default style by using that selector and adapting it to your theme or adding important to the rule.
    Eggsample:
    In theme 24 the opacity is set to 0.75 through this rule (note: formlayout for the region template):
    table.formlayout td.lov input.popup_lov
    To override this style you would need a selector that has more specificity ("weight") than this selector. Eg
    table.formlayout td.lov input.popup_lov:not(:disabled)
    Or in this case I'd say that using !important can be feasible as that'll cover the use of the popup lov everywhere.
    input.popup_lov:not(:disabled){
    opacity: 1 !important;

  • Another "Can't get PHP to start" question

    First:
    machine = Dual 2.7 GHz PowerPC G5
    OS = 10.5.1
    I have followed the instructions about editing the httpd.conf
    and PHP still just shows the source code rather than the web page.
    One thing I don't understand is that the httpd.conf refers to
    LoadModule php4_module libexec/httpd/libphp4.so
    rather than version 5 which everyone else seems to have.
    Any how, I uncommented that line along with the AddModule line.
    I copied the php.ini.default to php.ini like some suggestions say.
    When I restart the server and load a simple php page I don't see
    any problems mentioned in the Apache error_log or access_log.
    I would welcome any suggestions about where to look. When I
    created the php.ini I turned on logging but have no idea where
    the log would be located. Since I just see the code I am guessing
    that I haven't actually turned on php in Apache, so there probably
    is no log.
    Neil M.

    I seem to have enabled php. I noticed that some of the
    paths didn't make sense so I went to /etc/apache2 instead
    of the httpd directory and found a different httpd.conf.
    Uncommenting that php reference was what did it.
    I guess I missed something in the various instruction
    notes. Or is this unique to this version of the OS.
    Anyway it works now.
    NM.

  • Need some info on general question

    Hello everybody!
    This question for those who already works as a Java professional. I just don't have a clear picture of how can you apply java programming language in real working environment, in theory I can imagine, but I need a solid understanding so that I would spend all the time moving in right direction. Do they use Java for writing some applications for some, let's say, financial institutions. I can write simple application which will connect to some RDBMS (SQLServer,Oracle, whatever you have) and perform extracting, changing, deleting information, but I can do all this stuff only on my user computer, I am just college student. How do you implement this in real environment, do you have first to install Java Runtime Environment on all user computers and install those java applications which will be working with database? What about middle-tier concept, what this all about? I happend to have interview in one company but I failed to answer on middle-tier topic. As I understand it's better to change some procedure in one place than changing apps on all user computers, how you deal whith this, this is so far not clear for me. I have never seen how users launch their apps in financial institutions (exe. files - popular question on this forum), how does this system works, or may be they use for this purpose different language like C++. What about internet, they say java was created whith internet in mind... Oh my god, I have so many questions on how you can use Java in real world, not just for fun. Hope somebody can explain it to me in plain English.
    Thanks in advance.

    Here is a real world example (its a project I've been working on for about a year).
    Its a 3-tier client server system. This means there are 3 parts of the system:
    1. SQL Server database on a remote server
    2. Middleware java application running on the server
    3. psion netBook clients (handheld devices) running a Java application
    The actual system itself is used for remotely capturing dental information on the netBooks. At the end of the day the user can dial-up to the server where the database resides and update the database with info captured on the netBook. The user can also download a group of patients from the server to the netBook client.
    The purpose of having a middle tier (or middleware), is so that any server-side changes will not impact on the client side, and vice versa (at least thats always been my understanding).
    To create this architecture I used the JDBC API (for database processing, middle tier), and the RMI API (for networking, middle tier and client tier). Alternatively I could have used CORBA instead of RMI.
    I beleive (although I'm no expert on this), that servlets can be used to create a similar kind of thing through a web interface (i.e. a database on the web server can be updated through a web page). Hopefully someone can confirm this for you.
    And of course there are applets, that are simply java appications running on a web browser.
    I would imagine that the majority of industry work done in Java is with client server apps either with servlets (web) or a backend on a server somewhere.
    If anyone would like to correct me please do...think I've got most of this right.

  • Some very "newbie" networking questions -- trying to get started

    Hello all. Since this forum is so friendly for issues related to Arch, I thought I'd post my semi-arch related question.
    I'm trying to create a network for my house, consisting of about 3 computers. I have a book reference, TCP/IP Network Administration from O'reilly, but I think I need a bit of a "kick-start" in order to get to a level in which I can comfortably understand the book (if that makes sense).
    I've got internet access working by connecting to a router and having everything configured by DHCP (ie, in rc.conf, eth0="dhcp"). What's bothering me (and I don't even know if it should) is that the other computers on the physical network are not visible to me.
    IE, when I try to connect to them with their host name, it doesn't recognise them. My understanding of that is that either I need to manually set the hostnames of the other computers on the network in /etc/hosts, or use something like a DNS server on one of the computers in the network in order to recognize the others.
    My other doubt is that I think I've got a dynamic IP address (though it might be static, I'm not quite sure). Does that change things?
    I don't expect you guys to completely run through me setting up the network (that's what the book is for!) but some basic advice on either my misconceptions (I'm sure I have plenty) or related in general to my situation would be awsome and highly appreciated. I'd also be happy to provide any additional info that would be helpful.
    Thanks in advance.

    ralvez wrote:
    My set up is simple.
    I have a Linux router running on an old Pentium machine. It has two cards, one configured for the private network (with an address like 192.168.1.1) and the second card set up to take addresses from DHCP ( since that's how Rogers sends you the public address).
    In that machine I run my firewall, SmoothWall (smoothwall.org) and have enabled NAT so the machines in the inside network can go to the Internet.
    I have Samba set up in another machine to share files (that's an Arch system) with static IP, my daughter's machine (another Arch system), my system (obviously another Arch with static IP) and my wife's machine with Windows XP system (static IP too).
    So, the key concept here  are:
    1. Use static IPs for the private network
    2. Use DHCP for Rogers
    3. Use NAT in your router so all the machines can go to the Internet but no one from the Internet can get to them.
    Hope this helps.
    R
    p.s. feel free to contact me off the list if you need further details/help.
    Aha! So, for example, the network 192.168.0.0 where mask is 255.255.255.0 is a private network set up by my router, right?
    So the addresses in 192.168.0.0 never change, but the public IP address of the hosts do change?
    Does that mean that if, for example, I have a host called 192.168.0.32 that its address never changes? Can I simply add that to all the other hosts' /etc/hosts file and it won't change?
    All I was ever concerned about was allowing hosts in the network to contact each other via hostname. If that never changes then I'm all set.
    BTW, thanks for your continuing help!
    Last edited by Jessehk (2007-08-10 16:33:57)

  • Just some few Arch Linux questions

    Hi, I am new to Arch Linux and am looking for some advice and answers.
    Here are the questions:
    1. Does the update command (I think its called pacman and it updates many things with one command in terminal) update the Arch Linux base, the DE that is installed, the apps that are installed and artwork on Arch Linux?
    2. Is Arch Linux User friendly once installed (When I say user friendly, I mean something like Ubuntu)?
    3. Does the drivers (Wireless card drivers, graphics card drivers, printer drivers and audio card drivers) come pre-installed once Arch Linux is installed like Ubuntu?
    4. What is the stablility and speed of Arch Linux compared to Ubuntu?
    That is all I need to know.
    Cheers,
    molom

    molom wrote:Hi, I am new to Arch Linux and am looking for some advice and answers.
    Here are the questions:
    1. Does the update command (I think its called pacman and it updates many things with one command in terminal) update the Arch Linux base, the DE that is installed, the apps that are installed and artwork on Arch Linux?
    pacman is the package manager for Arch. It will install single package, batches of packages, update the installed packages and several other things. Yes, one command 'pacman -Syu will update all the installed packages to the most recent available in the repositories. It will not update your artwork, ut everything else will be updated if you so desire.
    molom wrote:2. Is Arch Linux User friendly once installed (When I say user friendly, I mean something like Ubuntu)?
    Once you have installed the base systen, updated and then installed whatever desktop environment or window manager you want, whatever programs you want, etc., it will be as user friendly as you have made it.
    molom wrote:3. Does the drivers (Wireless card drivers, graphics card drivers, printer drivers and audio card drivers) come pre-installed once Arch Linux is installed like Ubuntu?
    As others have said, the install process does a fairly good job of detecting your hardware and installing the necessary modules, but it is up to you to install drivers for your nVidia / ATI video card if you want accelerated graphics. You'll have to install your printer (generally via cups, which you must also install). You'll have to install alsa and you may have to configure your sound.
    molom wrote:4. What is the stablility and speed of Arch Linux compared to Ubuntu?
    Arch is what you make it. You can have a rock solid stable system, or you can opt to be bleeding edge and risk the occasional package breaking.
    molom wrote:So when you say 'pkgs', do you also mean the desktop environment as well. For example, I have E17 installed and I use the 'pacman -Syu' command, will it update the version of E17 on my PC to the current version of E17?
    A package is a piece of software. E17 is a package, or perhaps a meta package made up of a bunch of packages. alsa is a package. gnome network-manager is a package. Anything that is installed on your system is managed and updated by pacman.
    molom wrote:Is there something similar to synaptic in Arch Linux?
    pacman is the Arch package manager. It does not need a gui front end, though there are a few third party front ends that have been written. I do not know if they are still active.
    molom wrote:
    I'm really eager into knowing about Arch Linux.
    Cheers,
    molom
    Then I also suggest as other have, that you avail yourself of the wiki, especially the beginner's guide which answers several of the questions you've asked.
    Arch Linux is what you make of it, but you have to do the making. Heck, that's 95% of the fun!

  • Some weblogic real time questions....

    Hi All,
    Have some weblogic related real time questions. I am posting them below. I would appreciate you kind replies to them.
    if two managed servers is there Same Domain is configured in both servers, but one physical server is crashed then how can you create a domain with the same configuration?
    Give me the real time scenario to configure weight based algorithm in a cluster?
    if some servers in cluster are running some of them are down is it deployment is possible?
    Is it possible two different versions of the same application deploy at the same time?
    how to recover password in weblogic?
    how to recover boot.properties?
    how to recover serializedini.dat, if the file is corrupted.>
    How admin server knows that the managed server is down?
    what you can do if multicast buffer is full and how you know that?
    What is the Max amount of information that can be saved in a session object?
    how do u differentiate a out of memory and memory leak issue?
    Thanks,

    request you to please get in touch with the oracle consultant group they would help much better ...

  • Some very, VERY basic questions from a newbie.

    Hi all.
    After an intense week of trial and error I'd came to the
    point where to create and apply a template to my project. Only to
    see that everything screwed up big time. So, I now belive I better
    start over and get it right from the beginning. Therefore I need to
    know;
    (I am using ISS 5 as webserver on my local machine.)
    1.
    Where to put up my site "mysite.com". Like this,
    "inetpub\wwwroot\mysite\index.html" or just like
    "inetpub\wwwroot\index.html"?
    2.
    Can I use a index.php insead of index.html as the default
    page when uploading all to the real internet? See, when I type
    http://localhost/index.php in
    Firefox and IE it tries to download the file but When using Opera
    it shows properly.
    3.
    When creating a site I shall use links that are relative to
    siteroot yes? What exactly is my siteroot(depending on the answers
    in Q. 1?)(Better safe than sorry this time :) ).
    4.
    Depending on Q. 1 again. What will my links look like? I
    will use "graphics" as my picture folder containing several
    subfolders. Will it be like
    "../graphics/subfolder_name/picture_name.gif",
    "/graphics/subfold..." or simply just
    "graphics/sub...". or should it be something else?
    This problem I have is why I decided to start over. For
    example, in one file I have that is based on my template I have
    them here pictures;
    graphics/sitegraphics/logo_<?php echo
    $row_recordset_site['site_name']; ?>.jpeg
    graphics/sharkr/btnread0.gif
    graphics/shark_small.gif
    The first one shows up nicely both in DW and in browser.
    The second one shows up only in DW.
    The third one doesnt show up at all.
    They are all located in the same(and only) editfield
    5.
    When creating a new page based on the template, should I
    create it directly from the template rather than applying the
    template to the page when its done. I have only done the later, and
    that showed to be rather unsuccessful :(
    Thats all for now. I now this dynamic templateusing
    websitebuilding is way over y head, but what the heck :)
    I thank you in advance
    /konfjuusd

    You're still very confused.
    The root of your site is the first folder that contains all
    of the files in
    your site, but NO files for another site.
    > Ok, Then if I use the C:\Inetpub\wwwroot\mysite\ layout
    and chose wwwroot
    > as
    > my root folder
    You wouldn't. You'd choose 'layout' as the root (assuming
    that this is the
    folder that contains all of your site files).
    Look - my sites are like this -
    C:/Documents and Settings/..../MyCompanyName/Client1/site
    C:/Documents and Settings/..../MyCompanyName/Client2/site
    C:/Documents and Settings/..../MyCompanyName/Client3/site
    C:/Documents and Settings/..../MyCompanyName/Client4/site
    C:/Documents and Settings/..../MyCompanyName/Client5/site
    In each case, the root folder of the site is "site" and it's
    the one under
    the respective client name.
    > And this would work both from the templatefile and the
    html-files, so that
    > they will NOT look any different from templates and
    files?
    Any link in a template file MUST work from that template
    file. If that's
    the case, then they are sure to work in your child pages. in
    other words,
    ALL links in a template file MUST look like this -
    <img src="../whatever... (because you have to go UP one
    level from the
    template file to reach the root of the site, which contains
    all of your
    site's files/folders), or like this -
    <img src="/whatever... (because the ROOT of the site is
    always the root of
    the site).
    A document relative path is like what would happen when you
    get a call from
    a friend coming to your house looking for directions - you
    start by saying
    "where are you"? They tell you, and you say "OK - go 3
    traffic lights, turn
    right, and I'm 4th on the right". Your directions are
    dependent on where
    they are at the time you state them.
    A root relative path is like when you say to that friend -
    "OK - wherever
    you are, get to the town square, and with the clock on your
    right do the
    following....". Your directions are dependent on some fixed
    location, and
    will work no matter where your friend is when he/she calls.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "konfjuusd" <[email protected]> wrote in
    message
    news:[email protected]...
    >>
    2.
    > > Can I use a index.php insead of index.html as the
    default page when
    > > uploading
    > > all to the real internet? See, when I type
    http://localhost/index.php in
    > > Firefox and IE it tries to download the file but
    When using Opera it
    > > shows
    > > properly.
    >
    > Are you building PHP pages? Why do you want to use
    'index.php'? If you
    > are
    > building PHP pages, then you would need a webserver (for
    local testing)
    > that
    > knows PHP - like Apache.
    >
    > Yes, I am building PHP pages. Why use index.php? Because
    my index page
    > would
    > consist of PHP code. When renaming the extension .php to
    .html neither DW
    > or
    > the browser treat them as files containing PHP. I am
    using the built in
    > version
    > of ISS version 5 as my webserver.
    >
    >
    >
    > ____________
    >
    > >
    3.
    > > When creating a site I shall use links that are
    relative to siteroot
    > > yes?
    >
    > Depends on how you are creating your pages. In general,
    either will work.
    >
    > > What exactly is my siteroot(depending on the
    answers in Q. 1?)(Better
    > > safe
    > > than
    > > sorry this time :) ).
    >
    > It's the 'top-level' of your site, i.e., its the place
    where all files
    > that
    > contribute to your site can be found either at that
    level or below that
    > level. In other words, it's the root of the tree that
    represents the
    > folder
    > hierarchy of your site. You will find the path to the
    root folder of your
    > site in your 'Local root folder" field of your site's
    definition.
    >
    > I've put it up like this;
    > C:\Inetpub\wwwroot\mysite\
    >
    > So if I understand you right both the wwwroot and the
    mysite folders can
    > be
    > root folders?
    >
    >
    >
    > _____________
    >
    > >
    4.
    > > Depending on Q. 1 again. What will my links look
    like? I will use
    > > "graphics"
    > > as my picture folder containing several subfolders.
    Will it be like
    > > "../graphics/subfolder_name/picture_name.gif",
    > > "/graphics/subfold..." or simply just
    > > "graphics/sub...". or should it be something else?
    >
    > Assuming 'graphics' is the name of a folder at the root
    level of your
    > site,
    > a page that is also at the root level of the site could
    link into it like
    > this -
    >
    > <img src="graphics/whatever/whatever.gif" (that's a
    document relative link
    > since it starts the path at the current file's location
    and therefore it
    > depends on the location of the file CONTAINING the link)
    >
    > or this -
    >
    > <img src="/graphics/whatever/whatever.gif" (that's a
    root relative link
    > since it starts the path at the root "/" and will work
    no matter where the
    > location of the file containing the link would be in
    your site)
    >
    > Ok, Then if I use the C:\Inetpub\wwwroot\mysite\ layout
    and chose wwwroot
    > as
    > my root folder and uses siteroot relative links the
    links will start with
    > the
    > "slash"-sign followed by mysite like this right?
    > /mysite/filename (or path to filename).
    > And this would work both from the templatefile and the
    html-files, so that
    > they will NOT look any different from templates and
    files?
    >
    > I'm sorry for going on like a senile, but its the
    linkissues that is
    > causing
    > me problems all the time. Just want to be 100% sure so
    the whole thing
    > doesnt
    > fall to peices again in another week.
    >
    > Thanks once again Murray, you're doing a great job
    >

  • Some DSC developing relating questions

    Hi,
    I am new with DSC and have some questions relating to building the custom periodic I/O DSC server:
    1. After building the custom VI and implementing it as an I/O DSC server, I found there are some mistakes inside the custom VI. I would like to modify it and rebuild it. But all of the shared variables are bound to this server. What I did is I deleted and removed these variables and rebuild them again. It takes a lot of time when I want to  modify this custom VI. Is there anyway to avoid it?
    2. To communicate with the custom VI, I use some controls and indicators. But to program a VI sometime I need to initialize or change the value of controls. But the guidelines for creatin a data access VI, I cannot use the local variables, property nodes, or control references for those controls need to be public. I would like to know if there is any solution to program effectively in my situations?
    Thank you,
    Thang

    Hi - I'd like to clarify the issue you are having in question #1.
    Here's what I think you are doing:
    1.  You write a VI with some controls and indicators wired to the VI's connector pane.
    2.  You use the DSC "create periodic I/O wizard" to create the server VIs.
    3.  You open an empty project and right-click "My Computer" and select "New->I/O Server".  You then select "Custom VI - Periodic" from the list and click "Continue".
    4.  You see the name of the VI you created in step 2 under "configuration name" pulldown and click "OK".  A new library appears in the Project Explorer called "Untitled Library 1". 
    5.  You click the "plus" and see a globe on a hand icon with the name "Custom VI - Periodic1" or something similar related to your VI name.
    6.  You right-click on "Untitled Library 1" and select "create bound variables".  You then navigate down through the tree structure to your server inputs and outputs and select them and add them and then click OK.
    7.  The Multiple Variable Editor pops up showing the new variables.  You click "done" and see the new variables listed in your project explorer window.
    8.  You use these variables on your Client front panel by dragging them from project explorer onto your VI front panel where they work ok.
    9.  You want to make changes to the VI server, and rebuild it, and update your Client VI.  Rebuilding the VI server is no problem.   I don't think you will have any problems as long as you haven't added or changed any variable names.   If this is what your question #1 is about, then there are several different ways to deal with this using the multiple variable editor, or the front panel mass binding editor.

  • Some general portal caching questions

    Hi experts,
    I have some general questions regarding caching functions in portal.
    1. In System administration->Navigation I can activate navigation cache. By default there are 3 connectors: Collaboration Connector, ROLES and gpn.
    I guess Collaboration Connector caches Collaboration Content and Roles caches the content of the Role-based navigation? Is that correct? What is gpn-connector?
    2. This cache does only cache the navigation structures? Not the iviews and the content?
    3. For some iViews and pages I can activate caching in PCD with certain cache levels. That caching is not related to navigation caching?
    4. I can't activate caching for web dynpro Java iviews and web dynpro java proxy pages. Is that corect? If not how can I achieve that. Those settings are deactivated for me, so I can't activate them.
    5. In Visual Admin I can activate navigation cache under com.sap.portal.prt.sapj2ee. Is this option related to the setting I can set under system administration->navigation in portal? Because I avtivated the option in portal but in VA it still showed it as not activated.
    I crawled some documentation but couldn't find exact information.
    Thanks and regards
    Manuel

    Hi,
    1. GPN is Guided Procedures Navigation connector
    2. Yes only Navigation nodes are cached (TopLevel and Detailed Navigation nodes)
    3. Here it is PCD Caching, which has nothing to do with Navigation caching
    4.  I never tried this, but It looks like what you say is true.
    5. What you see in VA is old caching mechanism. So this is obsolete and can be ignored.
        So you should only use the options from system administration->navigation
    Changes in the Navigation Cache
    Regards,
    Praveen Gudapati

Maybe you are looking for