php-general Digest 10 Dec 2005 20:04:17 -0000 Issue 3843

Topics (messages 227254 through 227277):

Re: how to pass an array to Java script
        227254 by: Robert Cummings
        227266 by: David Dorward

simple-ish question but something i never knew
        227255 by: matt VanDeWalle
        227256 by: Robert Cummings
        227257 by: Michael Hulse
        227258 by: Aaron Koning
        227259 by: Robert Cummings
        227260 by: Michael Hulse
        227261 by: Michael Hulse
        227262 by: Aaron Koning
        227263 by: Robert Cummings
        227264 by: Robert Cummings
        227265 by: matt VanDeWalle
        227269 by: Zareef Ahmed
        227270 by: Robert Cummings
        227271 by: Zareef Ahmed
        227275 by: Robert Cummings
        227276 by: Zareef Ahmed

Re: CSS and TablesL
        227267 by: Leonard Burton
        227268 by: Lists

OO XML Parser
        227272 by: mail
        227274 by: Robert Cummings

href links not working in XP
        227273 by: Marlin Unruh

Accessing photos outside the web folder
        227277 by: Ken Tozier

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 ---
On Fri, 2005-12-09 at 23:30, Johny John wrote:
> Hi,
>          How to pass an array (from php )  to java script and display it
> using javascript?...

This might be helpful:

http://www.interjinn.com/jinnDoc/interjinn.class.JinnJavaScriptService.phtml#method.createDeclaration

Cheers,
Rob.
-- 
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for       |
| creating re-usable components quickly and easily.          |
`------------------------------------------------------------'

--- End Message ---
--- Begin Message ---
Johny John wrote:
>          How to pass an array (from php )  to java script 

http://www.json.org/ is a good choice.

PHP implementations include http://mike.teczno.com/json.html and
http://www.aurore.net/projects/php-json/

>          and display it using javascript?...

That depends on how you want to display it (and if you just want to display
it, why aren't you rendering HTML with the PHP in the first place?).

-- 
David Dorward       <http://blog.dorward.me.uk/>   <http://dorward.me.uk/>
                     Home is where the ~/.bashrc is

--- End Message ---
--- Begin Message --- I am wanting to forward a user on a signup or similar page (based on a few of their answers) and so far i have it split into basically a two-step process where i have on the first part, an option list with 4 choices, they hit continue or some such labled link, and then having passed all the session variables and making the decision in the next script it would forward them to the right page automatically, do I have to use meta tags to do this or is there some simple way e.g, "url=http://rightpage.php?SID"; of course without the "'s except for in the actual url I could have probably done this "switch on the fly" like some pages do but I was told that requires java and i don't have or want to use java lol
matt
if possible i want to keep my webpages java free

--- End Message ---
--- Begin Message ---
On Sat, 2005-12-10 at 02:07, matt VanDeWalle wrote:
> I am wanting to forward a user on a signup or similar page (based on a few 
> of their answers) and so far i have it split into  basically a two-step 
> process where i have on the first part, an option list with 4 choices, 
> they hit continue or some such labled link, and then having passed all the 
> session variables and making the decision in the next script it would 
> forward them to the right page automatically, do I have to use meta tags 
> to do this  or is there  some simple way e.g, 
> "url=http://rightpage.php?SID"; of course without the "'s except for in the 
> actual url
> I could have probably done this "switch on the fly" like some pages do but 
> I was told that requires java and i don't have or want to use java lol
> matt
> if possible i want to keep my webpages java free

header( 'Location: http://www.somewhere.com/the/page/to/load.php' );

The parameter to the Location header should be a full URL, although many
browsers tolerate relative.

Cheers,
Rob.
-- 
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for       |
| creating re-usable components quickly and easily.          |
`------------------------------------------------------------'

--- End Message ---
--- Begin Message ---
On Dec 9, 2005, at 11:07 PM, matt VanDeWalle wrote:
I am wanting to forward a user on a signup or similar page (based on a few of their answers) and so far i have it split into basically a two-step process where i have on the first part, an option list with 4 choices, they hit continue or some such labled link, and then having passed all the session variables and making the decision in the next script it would forward them to the right page automatically, do I have to use meta tags to do this or is there some simple way e.g, "url=http://rightpage.php?SID"; of course without the "'s except for in the actual url

Well, off the top of my head, you could have your "next script" do some checking (if/switch statement) and then use a header-redirect that would be based-upon one of the four user choices?

[PAGE 01] ---> [NEXT SCRIPT] (what did user choose? Using $_REQUEST) ---> header refresh ---> ([URL 01] || [URL 02] || [URL 03] || .... ) ---> [URL --]

Just point your form to the script that does the checking, and then use:

header("Refresh: 0; URL=http://www.yourDomain.com/index.php?page=$var";);

Does that make sense?

Of course, how you do the refresh all depends on how your site is setup...

I am sure there are better ways though...   :)

Micky
--
¸.·´¯`·.¸¸><(((º>`·.¸¸.·´¯`·.¸¸><((((º>
·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸><((((º>
`·.¸¸><((((º>¸.·´¯`·.¸¸><((((º>

--- End Message ---
--- Begin Message ---
I have found that using the header function doesn't actually redirect the
page, it pulls the content into the page that the function is called from
(which works good for somethings, but can get confusing with post variables
and such). Its been my experience that meta tags work better.

Aaron

On 12/9/05, Robert Cummings <[EMAIL PROTECTED]> wrote:
>
> On Sat, 2005-12-10 at 02:07, matt VanDeWalle wrote:
> > I am wanting to forward a user on a signup or similar page (based on a
> few
> > of their answers) and so far i have it split into  basically a two-step
> > process where i have on the first part, an option list with 4 choices,
> > they hit continue or some such labled link, and then having passed all
> the
> > session variables and making the decision in the next script it would
> > forward them to the right page automatically, do I have to use meta tags
> > to do this  or is there  some simple way e.g,
> > "url=http://rightpage.php?SID"; of course without the "'s except for in
> the
> > actual url
> > I could have probably done this "switch on the fly" like some pages do
> but
> > I was told that requires java and i don't have or want to use java lol
> > matt
> > if possible i want to keep my webpages java free
>
> header( 'Location: http://www.somewhere.com/the/page/to/load.php' );
>
> The parameter to the Location header should be a full URL, although many
> browsers tolerate relative.
>
> Cheers,
> Rob.
> --
> .------------------------------------------------------------.
> | InterJinn Application Framework - http://www.interjinn.com |
> :------------------------------------------------------------:
> | An application and templating framework for PHP. Boasting  |
> | a powerful, scalable system for accessing system services  |
> | such as forms, properties, sessions, and caches. InterJinn |
> | also provides an extremely flexible architecture for       |
> | creating re-usable components quickly and easily.          |
> `------------------------------------------------------------'
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--- End Message ---
--- Begin Message ---
On Sat, 2005-12-10 at 02:35, Aaron Koning wrote:
> I have found that using the header function doesn't actually redirect the
> page, it pulls the content into the page that the function is called from
> (which works good for somethings, but can get confusing with post variables
> and such). Its been my experience that meta tags work better.

I'm not sure I understand what you mean. if the header function is used
then the redirect will occur before any content is sent to the browser.
if used properly then an exit(); will follow the header statement.
Additionally the OP said that all of the data was passed to the session,
so it will exist when the visitor gets to the target.

Maybe you meant something entirely different though :)

Cheers,
Rob.
-- 
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for       |
| creating re-usable components quickly and easily.          |
`------------------------------------------------------------'

--- End Message ---
--- Begin Message ---
On Dec 9, 2005, at 11:35 PM, Aaron Koning wrote:
I have found that using the header function doesn't actually redirect the page, it pulls the content into the page that the function is called from (which works good for somethings, but can get confusing with post variables
and such). Its been my experience that meta tags work better.

Ah, good point... would it be possible for you to give us an example?

Thanks  :)
Cheers,
Micky
--
¸.·´¯`·.¸¸><(((º>`·.¸¸.·´¯`·.¸¸><((((º>
·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸><((((º>
`·.¸¸><((((º>¸.·´¯`·.¸¸><((((º>

--- End Message ---
--- Begin Message ---
On Dec 9, 2005, at 11:35 PM, Aaron Koning wrote:
Its been my experience that meta tags work better.

I guess what you are saying is that this:

<meta http-equiv="refresh" content="0;url=https://www.theNewUrl/forward.html";>

Is better than this:

header("Refresh: 0; URL=https://www.theNewUrl/forward.html";);

--- End Message ---
--- Begin Message ---
My experience was with the Location keyword, it might work better with the
Redirect keyword in the header function. I stopped using header and Location
after a few problems and <meta> has never failed for me. MHO.

Aaron

On 12/9/05, Michael Hulse <[EMAIL PROTECTED]> wrote:
>
> On Dec 9, 2005, at 11:35 PM, Aaron Koning wrote:
> > Its been my experience that meta tags work better.
>
> I guess what you are saying is that this:
>
> <meta http-equiv="refresh"
> content="0;url=https://www.theNewUrl/forward.html";>
>
> Is better than this:
>
> header("Refresh: 0; URL=https://www.theNewUrl/forward.html";);
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--- End Message ---
--- Begin Message ---
On Sat, 2005-12-10 at 02:55, Michael Hulse wrote:
> On Dec 9, 2005, at 11:35 PM, Aaron Koning wrote:
> > Its been my experience that meta tags work better.
>
> header("Refresh: 0; URL=https://www.theNewUrl/forward.html";);

I didn't know you could do that *lol*. Either way, I think the example I
gave is better. Why stop at an intermediate page? The location header is
immediate.

Cheers,
Rob.
-- 
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for       |
| creating re-usable components quickly and easily.          |
`------------------------------------------------------------'

--- End Message ---
--- Begin Message ---
On Sat, 2005-12-10 at 03:01, Aaron Koning wrote:
> My experience was with the Location keyword, it might work better with the
> Redirect keyword in the header function. I stopped using header and Location
> after a few problems and <meta> has never failed for me. MHO.

What kind of problems did you have? I've never experience a problem with
the location header, but would be interested to know of any gotchas that
I've just been fortunate enough to miss over the years.

Cheers,
Rob.
-- 
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for       |
| creating re-usable components quickly and easily.          |
`------------------------------------------------------------'

--- End Message ---
--- Begin Message ---
hello again,
I tried the meta tag stuff and well where i had it it didn't redirect or refresh, it just litterally echo'd the meta stuff so maybe i read the manual page wrong but it either does that, or presents me with a blank page and i know the pages i have it go to aren't blank :p so i guess i'm doing the meta tag slightly wrong or not in the right place but i guess actually if the form passed the variable i could go ahead and just substitute the "url=http://whatever.com/page/to/load.php".etc, to having the url equal to the variable being passed..yes i'm a moron at times :p and its not my usual time to be up but maybe that has something to do with it anyway i will do some reading when my mind is switched on lol
matt


On Sat, 10 Dec 2005, Robert Cummings wrote:

On Sat, 2005-12-10 at 03:01, Aaron Koning wrote:
My experience was with the Location keyword, it might work better with the
Redirect keyword in the header function. I stopped using header and Location
after a few problems and <meta> has never failed for me. MHO.

What kind of problems did you have? I've never experience a problem with
the location header, but would be interested to know of any gotchas that
I've just been fortunate enough to miss over the years.

Cheers,
Rob.
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for       |
| creating re-usable components quickly and easily.          |
`------------------------------------------------------------'

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


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

----- Original Message ----- 
From: "Robert Cummings" <[EMAIL PROTECTED]>
To: "Aaron Koning" <[EMAIL PROTECTED]>
Cc: "PHP-General" <[email protected]>
Sent: Saturday, December 10, 2005 3:07 AM
Subject: Re: [PHP] simple-ish question but something i never knew


> On Sat, 2005-12-10 at 03:01, Aaron Koning wrote:
> > My experience was with the Location keyword, it might work better with
the
> > Redirect keyword in the header function. I stopped using header and
Location
> > after a few problems and <meta> has never failed for me. MHO.
>

> What kind of problems did you have? I've never experience a problem with
> the location header, but would be interested to know of any gotchas that
> I've just been fortunate enough to miss over the years.

I do not think that using meta is better than header but  header has one
problem ( but in my view it is  feature) normally.
for eaxample:

<?php
session_start();

$_SESSION['somevar']="anything";
header("location:url");
?>


In this script  session variable will not be set and will not available on
other
pages, because sessions also works with headers and headers executed (sent)
in
reverse order.
Am I correct?

Aaron, you was having problems with sessions na ?

Zareef Ahmed



>
> Cheers,
> Rob.
> -- 
> .------------------------------------------------------------.
> | InterJinn Application Framework - http://www.interjinn.com |
> :------------------------------------------------------------:
> | An application and templating framework for PHP. Boasting  |
> | a powerful, scalable system for accessing system services  |
> | such as forms, properties, sessions, and caches. InterJinn |
> | also provides an extremely flexible architecture for       |
> | creating re-usable components quickly and easily.          |
> `------------------------------------------------------------'
>
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

====================================================
PHP Expert Consultancy in Development  http://www.indiaphp.com
Yahoo! : consultant_php MSN : [EMAIL PROTECTED]

>

--- End Message ---
--- Begin Message ---
On Sat, 2005-12-10 at 10:45, Zareef Ahmed wrote:
> ----- Original Message ----- 
> From: "Robert Cummings" <[EMAIL PROTECTED]>
> To: "Aaron Koning" <[EMAIL PROTECTED]>
> Cc: "PHP-General" <[email protected]>
> Sent: Saturday, December 10, 2005 3:07 AM
> Subject: Re: [PHP] simple-ish question but something i never knew
> 
> 
> > On Sat, 2005-12-10 at 03:01, Aaron Koning wrote:
> > > My experience was with the Location keyword, it might work better with
> the
> > > Redirect keyword in the header function. I stopped using header and
> Location
> > > after a few problems and <meta> has never failed for me. MHO.
> >
> 
> > What kind of problems did you have? I've never experience a problem with
> > the location header, but would be interested to know of any gotchas that
> > I've just been fortunate enough to miss over the years.
> 
> I do not think that using meta is better than header but  header has one
> problem ( but in my view it is  feature) normally.
> for eaxample:
> 
> <?php
> session_start();
> 
> $_SESSION['somevar']="anything";
> header("location:url");
> ?>

Shouldn't be a problem if you change it to:

<?php
session_start();

$_SESSION['somevar']="anything";
session_write_close();

header("location:url");

?>

I generally wrap redirection in a function, that way any shutdown
routines can be performed transparently -- and also the URL can be
reworked from relative to absolute.

Cheers,
Rob.
-- 
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for       |
| creating re-usable components quickly and easily.          |
`------------------------------------------------------------'

--- End Message ---
--- Begin Message ---
----- Original Message ----- 
From: "Robert Cummings" <[EMAIL PROTECTED]>
To: "Zareef Ahmed" <[EMAIL PROTECTED]>
Cc: "Aaron Koning" <[EMAIL PROTECTED]>; "PHP-General"
<[email protected]>
Sent: Saturday, December 10, 2005 11:03 AM
Subject: Re: [PHP] simple-ish question but something i never knew


> On Sat, 2005-12-10 at 10:45, Zareef Ahmed wrote:
> > ----- Original Message ----- 
> > From: "Robert Cummings" <[EMAIL PROTECTED]>
> > To: "Aaron Koning" <[EMAIL PROTECTED]>
> > Cc: "PHP-General" <[email protected]>
> > Sent: Saturday, December 10, 2005 3:07 AM
> > Subject: Re: [PHP] simple-ish question but something i never knew
> >
> >
> > > On Sat, 2005-12-10 at 03:01, Aaron Koning wrote:
> > > > My experience was with the Location keyword, it might work better
with
> > the
> > > > Redirect keyword in the header function. I stopped using header and
> > Location
> > > > after a few problems and <meta> has never failed for me. MHO.
> > >
> >
> > > What kind of problems did you have? I've never experience a problem
with
> > > the location header, but would be interested to know of any gotchas
that
> > > I've just been fortunate enough to miss over the years.
> >
> > I do not think that using meta is better than header but  header has one
> > problem ( but in my view it is  feature) normally.
> > for eaxample:
> >
> > <?php
> > session_start();
> >
> > $_SESSION['somevar']="anything";
> > header("location:url");
> > ?>
>
> Shouldn't be a problem if you change it to:
>
> <?php
> session_start();
>
> $_SESSION['somevar']="anything";
> session_write_close();
>
> header("location:url");
>
> ?>
Yes indeed, but normally people do not know about this.
Alternatively we can reverse the script, I mean,  we can write the header
line as first line of script.


Zareef Ahmed


>
> I generally wrap redirection in a function, that way any shutdown
> routines can be performed transparently -- and also the URL can be
> reworked from relative to absolute.
>
> Cheers,
> Rob.
> -- 
> .------------------------------------------------------------.
> | InterJinn Application Framework - http://www.interjinn.com |
> :------------------------------------------------------------:
> | An application and templating framework for PHP. Boasting  |
> | a powerful, scalable system for accessing system services  |
> | such as forms, properties, sessions, and caches. InterJinn |
> | also provides an extremely flexible architecture for       |
> | creating re-usable components quickly and easily.          |
> `------------------------------------------------------------'
>
>

====================================================
PHP Expert Consultancy in Development  http://www.indiaphp.com
Yahoo! : consultant_php MSN : [EMAIL PROTECTED]

--- End Message ---
--- Begin Message ---
On Sat, 2005-12-10 at 11:08, Zareef Ahmed wrote:
>
> Yes indeed, but normally people do not know about this.
> Alternatively we can reverse the script, I mean,  we can write the header
> line as first line of script.

Maybe so, but if you don't know to plug the power saw in, you're not
going to get much sawing done either.

Cheers,
Rob.
-- 
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for       |
| creating re-usable components quickly and easily.          |
`------------------------------------------------------------'

--- End Message ---
--- Begin Message ---
----- Original Message ----- 
From: "Robert Cummings" <[EMAIL PROTECTED]>
To: "Zareef Ahmed" <[EMAIL PROTECTED]>
Cc: "Aaron Koning" <[EMAIL PROTECTED]>; "PHP-General"
<[email protected]>
Sent: Saturday, December 10, 2005 11:40 AM
Subject: Re: [PHP] simple-ish question but something i never knew


> On Sat, 2005-12-10 at 11:08, Zareef Ahmed wrote:
> >
> > Yes indeed, but normally people do not know about this.
> > Alternatively we can reverse the script, I mean,  we can write the
header
> > line as first line of script.
>
> Maybe so, but if you don't know to plug the power saw in, you're not
> going to get much sawing done either.

I agree.  I was just informing the group about the problem Aaron may have
with header function.

Zareef Ahmed

>
> Cheers,
> Rob.
> -- 
> .------------------------------------------------------------.
> | InterJinn Application Framework - http://www.interjinn.com |
> :------------------------------------------------------------:
> | An application and templating framework for PHP. Boasting  |
> | a powerful, scalable system for accessing system services  |
> | such as forms, properties, sessions, and caches. InterJinn |
> | also provides an extremely flexible architecture for       |
> | creating re-usable components quickly and easily.          |
> `------------------------------------------------------------'
>
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

====================================================
PHP Expert Consultancy in Development  http://www.indiaphp.com
Yahoo! : consultant_php MSN : [EMAIL PROTECTED]


>

--- End Message ---
--- Begin Message ---
Since we are talking CSS and Tables one of the first things I do when
I come across a site that is blatantly using CSS is to resize the
text.  I find that in about 80% of the cases the pages are not
designed to handle resizing the text, which is a big pain.

This is why I tend to stay with tables in a lot of my deisgn.  I have
done a few CSS things here and there but it takes too long to do it
properly.  That is one thing I notice is convieniently left out of the
tutorials.  If they don't know about ctl+ why would I waste time
reading their tutorial?  When I come across a tutorial on replacing
tables with CSS I look to see if it mentions the user resizing the
text.  If I cannot find that I close the tab.

What is the surefire way to have divs and spans that will resize along
with the text?

Thanks,
--
Leonard Burton, N9URK
[EMAIL PROTECTED]

"You must understand, if you are on a plane you must behave yourself."

"The prolonged evacuation would have dramatically affected the
survivability of the occupants."

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

On Dec 10, 2005, at 7:43 AM, Leonard Burton wrote:

That is one thing I notice is convieniently left out of the
tutorials.  If they don't know about ctl+ why would I waste time
reading their tutorial?  When I come across a tutorial on replacing
tables with CSS I look to see if it mentions the user resizing the
text.

font size in CSS is a big problem, but not really its fault. Just another problem dealing with various browsers and the PC/Mac thing. I use styleswitcher to allow for resizing. It changes style sheets, so other stuff can grow with the fonts.

The time consuming part of CSS is also about cross browser as well. If I just had to do a site for my mac, it would be a breeze. But I'd heard other browsers are used.

I still prefer pure CSS lay-outs though. I think in the long run, they save time, and they just look so damn pretty as it keeps code so clean.
-dg

--- End Message ---
--- Begin Message ---
Hi!

I've been playing around a bit with the XML parser in PHP, but I couldn't 
figure out, how to get it object oriented.

I would like to do something like this:

class MyParser {

private function xml_start_element(...) {
}

private function xml-stop_element(...) {
}

public function parse() {
[start stuff]
xml_set_element_handler($parser, "xml_start_element", "xml_stop_element"); 
//can't find function
[end stuff]
}

}

This ends up in an error, which says it can't find the function 
"xml_start_element()" since it doesn't take the member fuction as an argument. 
I've tried some stuff like setting "$this->start" as callback, but it didn't 
work either.

Has anyone of you a solution to this problem? I just can't find any myself.

thanks,
Norbert 
             

--- End Message ---
--- Begin Message ---
On Sat, 2005-12-10 at 11:25, mail wrote:
>
> xml_set_element_handler($parser, "xml_start_element", "xml_stop_element"); 
> //can't find function

use array notation for object method handlers:

xml_set_element_handler
(
    $parser,
    array( $this, 'xml_start_element' ),
    array( $this, 'xml_stop_element' )
);

Cheers,
Rob.
-- 
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for       |
| creating re-usable components quickly and easily.          |
`------------------------------------------------------------'

--- End Message ---
--- Begin Message --- I apologize because I posted this question earlier under Re: [PHP] href difference between OS's, and am still struggling with the problem. I think I have fished all the way around the lake, with no results.

I cannot get href links to local files to work on an XP machine. The exact script that is creating the links works perfectly on two W2K machines. On the XP machine if I right click and select print, the given file will load in the application as desired, but a print dialog box is also opened. If I right click and select open nothing happens, same as if I just left click the link. I have added an AddType in the Apache conf file, but no change. I have looked at the IE security settings, nothing. The file mime type is set because I can use the file explorer and clicking on a desired file and the application will run and load the file for editing.

--

Regards,
 Marlin Unruh
 Sunco Systems Inc.
 (308) 326-4400

--- End Message ---
--- Begin Message --- I'm writing a content management application which saves file paths in a database and allows users to search the database for those files. Problem I'm having is that although the PHP script that handles the database queries works fine, when the search results get to the browser, all the paths are off limits.

I can't just move the photos inside the web folder as we're talking tens of thousands of images that are already organized into a folder structure that must be maintained as is.

Is there a way to allow the web page to see these photos?

The images are stored on a Windows box and all the web server stuff is on a G5 Macintosh running OS 10.4 3 (in case that has any bearing on the matter).

Thanks for any help

Ken

--- End Message ---

Reply via email to