php-windows Digest 13 May 2005 02:43:55 -0000 Issue 2667

Topics (messages 25997 through 26004):

Breadcrumb trial as sessions
        25997 by: S.D.Price
        25999 by: S.D.Price
        26001 by: Murray . PlanetThoughtful
        26002 by: S.D.Price
        26003 by: Leif Gregory

Re: ODBC - What Perl can and PHP not
        25998 by: Robert Twitty

Re: covert binary data with php
        26000 by: Louis Solomon \[SteelBytes\]
        26004 by: Wu, Jin Yong

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [email protected]


----------------------------------------------------------------------
--- Begin Message ---
Hi can anyone help, I would like to develop a PHP breadcrumb trail for
navigation. The examples I have seen on the web look at the location of
the page the user is on, attempt to break up the URL and use breadcrumb
links to point the user to each folder level.

Problem:

1. I need to have a flat folder structure if a user goes down a level
the file will probably be in the same folder and will not be an index
file.

2. The development server url will be totally different form the live
url, so the breadcrumb trail won't work properly on both.

Would it be possible to create a breadcrumb trail for the users session,
recording the pages they were on as they move through the site, anyone
know how this could be done? 

I know this isn't a consistent navigation, but if you have top level
links, search/sitemap/a-z index support - isn't it acceptable to have
one navigation interface which is customised to the users unique visit?


Thanks
Steven Price 
Web Developer




--- End Message ---
--- Begin Message ---

>  -----Original Message-----
> From:         S.D.Price  
> Sent: 12 May 2005 12:41
> To:   [email protected]
> Subject:      Breadcrumb trial as sessions
> 
> 
> Hi can anyone help, I would like to develop a PHP breadcrumb trail for
> navigation. The examples I have seen on the web look at the location
> of the page the user is on, attempt to break up the URL and use
> breadcrumb links to point the user to each folder level.
> 
> Problem:
> 
> 1. I need to have a flat folder structure if a user goes down a level
> the file will probably be in the same folder and will not be an index
> file.
> 
> 2. The development server url will be totally different form the live
> url, so the breadcrumb trail won't work properly on both.
> 
> Would it be possible to create a breadcrumb trail for the users
> session, recording the pages they were on as they move through the
> site, anyone know how this could be done? 
> 
> I know this isn't a consistent navigation, but if you have top level
> links, search/sitemap/a-z index support - isn't it acceptable to have
> one navigation interface which is customised to the users unique
> visit?
> 
> 
> Thanks
> Steven Price 
> Web Developer
> 
> 
> 

--- End Message ---
--- Begin Message ---
> 1. I need to have a flat folder structure if a user goes down a level
> the file will probably be in the same folder and will not be an index
> file.
> 
> 2. The development server url will be totally different form the live
> url, so the breadcrumb trail won't work properly on both.
> 
> Would it be possible to create a breadcrumb trail for the users session,
> recording the pages they were on as they move through the site, anyone
> know how this could be done?
> 
> I know this isn't a consistent navigation, but if you have top level
> links, search/sitemap/a-z index support - isn't it acceptable to have
> one navigation interface which is customised to the users unique visit?

Breadcrumbs usually (or, at least, usually as I've seen them) represent
'specialization of information' (my own term -- there's probably a better
'official' term out there).

By that I mean they represent a conceptual path to content. For example, in
a site that reviews technology, a breadcrumb trail, when reading an article
about Redhat, might look like:

Home / Articles / Tech Articles / Linux Articles / Redhat Articles / Article
About Current Release Of Redhat

Even if the user clicked on a link on the main page that took them straight
to the article about the current release of Redhat, the breadcrumb trail
above remains relevant, since they've expressed an interest in Redhat, which
implies an interest in Linux, which falls within the broader scope of
technology articles etc. In this sense, the breadcrumb trail for each 'page'
can usually be almost entirely derived from the way in which you categorize
/ organize your content, and shouldn't require sessions to implement (well,
or at least, I've never had to use sessions to implement a breadcrumb trail
previously).

>From what you've written, though, it sounds like what you're trying to
implement is a 'page visited trail', though I think this would eventually
get confusing, particularly if a user visited a page, hit the back button,
went back to the article, clicked on a link that took them to some entirely
different part of the site and so on. It raises questions like, 'if a user
visits the same page or content 3 times, do I show that link 3 times in
their page trail? Is it more or less confusing, one way or the other?' You'd
have to take into account the fact that people often follow non-linear /
erratic pathways, and you might end up representing something like:

Home / Article / Home / Tech Articles / Home / Product Reviews / Monitor
Reviews / Home / Product Reviews / Search / Search Results / Article About
New Game / Home

Personally, I'd find that of little benefit as a user, but that's just me.

Murray

--- End Message ---
--- Begin Message ---
You are right Murray, I din't think it through properly. Probably why I
haven't seen any examples of this.

Steven

-----Original Message-----
From: Murray @ PlanetThoughtful [mailto:[EMAIL PROTECTED] 
Sent: 12 May 2005 15:20
To: 'S.D.Price'; 'php-windows'
Subject: RE: [PHP-WIN] Breadcrumb trial as sessions


> 1. I need to have a flat folder structure if a user goes down a level 
> the file will probably be in the same folder and will not be an index 
> file.
> 
> 2. The development server url will be totally different form the live 
> url, so the breadcrumb trail won't work properly on both.
> 
> Would it be possible to create a breadcrumb trail for the users 
> session, recording the pages they were on as they move through the 
> site, anyone know how this could be done?
> 
> I know this isn't a consistent navigation, but if you have top level 
> links, search/sitemap/a-z index support - isn't it acceptable to have 
> one navigation interface which is customised to the users unique 
> visit?

Breadcrumbs usually (or, at least, usually as I've seen them) represent
'specialization of information' (my own term -- there's probably a
better 'official' term out there).

By that I mean they represent a conceptual path to content. For example,
in a site that reviews technology, a breadcrumb trail, when reading an
article about Redhat, might look like:

Home / Articles / Tech Articles / Linux Articles / Redhat Articles /
Article About Current Release Of Redhat

Even if the user clicked on a link on the main page that took them
straight to the article about the current release of Redhat, the
breadcrumb trail above remains relevant, since they've expressed an
interest in Redhat, which implies an interest in Linux, which falls
within the broader scope of technology articles etc. In this sense, the
breadcrumb trail for each 'page' can usually be almost entirely derived
from the way in which you categorize / organize your content, and
shouldn't require sessions to implement (well, or at least, I've never
had to use sessions to implement a breadcrumb trail previously).

>From what you've written, though, it sounds like what you're trying to
implement is a 'page visited trail', though I think this would
eventually get confusing, particularly if a user visited a page, hit the
back button, went back to the article, clicked on a link that took them
to some entirely different part of the site and so on. It raises
questions like, 'if a user visits the same page or content 3 times, do I
show that link 3 times in their page trail? Is it more or less
confusing, one way or the other?' You'd have to take into account the
fact that people often follow non-linear / erratic pathways, and you
might end up representing something like:

Home / Article / Home / Tech Articles / Home / Product Reviews / Monitor
Reviews / Home / Product Reviews / Search / Search Results / Article
About New Game / Home

Personally, I'd find that of little benefit as a user, but that's just
me.

Murray

--- End Message ---
--- Begin Message ---
Hello S.D.Price,

Thursday, May 12, 2005, 5:41:10 AM, you wrote:
SDP> Hi can anyone help, I would like to develop a PHP breadcrumb
SDP> trail for navigation. The examples I have seen on the web look at
SDP> the location of the page the user is on, attempt to break up the
SDP> URL and use breadcrumb links to point the user to each folder
SDP> level.

I feel your pain! I'm in the same boat. A particular training website
I developed has pretty much all the files in the same folder
(view_course.php, register.php, index.php, etc...)

All the breadcrumbs I've tried just show:   Home | Current Page

Since they can navigate around to various pages that's no help. i.e.
from index.php they go to view course, then click to view location
info with maps. They should be able to go back to the view course but
they can't with current breadcrumbs because they never left the
folder.

I'd be willing to work with you on a session based version which I've
given some thought to previously in terms of making the session
variable an array where we can push / pop but also scan the array
looking to see if something matches the current page. If so, and this
is where it breaks down, either truncate the array at that point
(which means if they click back it probably isn't the "back" they
wanted), or to insert the page they just left before the page they're
currently on in the array. Neither is really great though.


-- 
Leif (TB lists moderator and fellow end user).

Using The Bat! 3.5 Return RC8 under Windows XP 5.1
Build 2600 Service Pack 2 on a Pentium 4 2GHz with 512MB


 <[email protected]>

--- End Message ---
--- Begin Message ---
iOther than the fact that the PHP odbc extension uses ODBC 2 instead of
ODBC 3, I don't know of any other reason why it should not work. Try using
ODBTP and the odbtp extension available at http://odbtp.sourceforge.net.
It uses ODBC 3.

-- bob

On Thu, 12 May 2005, Markus Tacker wrote:

>
>   Hoi all,
>
>   I am a bit curious about that issue.
>   I have a ODBC datasource with an AcuODBC driver. I can connect to it with
>   various windows query tools, excel etc.
>   But PHP fails to connect as the driver complains about a missing license 
> file.
>   So i tried it with Perl DBI::ODBC and it worked. So I am wondering about the
>   difference the way PHP and all others talk to windows ODBC?
>
>   Any hints?
>
> --
>
>   mit freundlichen Gr��en  |  Jabber: [EMAIL PROTECTED]
>   m.tacker                 |  ICQ:    9170 9561
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--- End Message ---
--- Begin Message ---
show us your code


-- 
Louis Solomon
www.SteelBytes.com

"Burkhard Herre" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> hello
>
> i have a problem with reading binary data from a file.
> i read byte by byte with fread...
>
> now i want to convert the 1. byte in an ascii sign.
>
> and the next step is to read 2 bytes and convert the 2 bytes input into 1 
> sign in ascii...(16 bit)
>
> and so on.
>
> but php convert always 1 byte to 1 sign.
>
>
> thnak you 

--- End Message ---
--- Begin Message ---
Did you use the function ORD() for conversion? The function only convert the
first byte into ASCII.
If you want to convert multi-bytes, you should use UNPACK(). About the use
of UNPACK(), you can link
here: http://us4.php.net/manual/en/function.unpack.php

Yong from Xerox,China
2005/5/13

-----Original Message-----
From: Burkhard Herre [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 12, 2005 4:58 PM
To: [email protected]
Subject: [PHP-WIN] covert binary data with php


hello

i have a problem with reading binary data from a file.
i read byte by byte with fread...

now i want to convert the 1. byte in an ascii sign.

and the next step is to read 2 bytes and convert the 2 bytes input into 
1 sign in ascii...(16 bit)

and so on.

but php convert always 1 byte to 1 sign.


thnak you

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---

Reply via email to