php-general Digest 1 Sep 2003 12:12:22 -0000 Issue 2271

Topics (messages 161327 through 161359):

Re: Simple File Error
        161327 by: Seth Willits
        161329 by: Catalin Trifu
        161341 by: Seth Willits

Re: Foring a file download *and* page reload
        161328 by: Jean-Christian IMbeault

Cookie, how to name
        161330 by: John Taylor-Johnston
        161331 by: John Taylor-Johnston
        161334 by: Chris Shiflett

parent classes
        161332 by: Cristiano Duarte
        161333 by: daniel.electroteque.org
        161351 by: Catalin Trifu

Re: WYSIWYG online editor for Macintosh?
        161335 by: Joel Rees
        161336 by: Justin French

[Newbie Guide] For the benefit of new members
        161337 by: tech.leatherlink.net

Re: Help me!
        161338 by: Maxim Maletsky

cookie crumbles
        161339 by: John Taylor-Johnston
        161344 by: Jaap van Ganswijk

Re: manual/eng
        161340 by: php.sati.bps.metta.lk

Refresh a frame based on a condition in another frame?
        161342 by: Ronald van Raaphorst
        161343 by: Raditha Dissanayake
        161346 by: Ronald van Raaphorst

Unique yet Eerie
        161345 by: Mohamed S.
        161348 by: Catalin Trifu
        161355 by: Jason Wong

Tracking Bandwidth usage....
        161347 by: Binay Agarwal

Optionally force refresh in another frame
        161349 by: Ronald van Raaphorst
        161354 by: Catalin Trifu

session variables
        161350 by: Diana Castillo
        161353 by: Binay Agarwal

wrong headers from server
        161352 by: Paul Chvostek

objects in header / sharing data among frames
        161356 by: Ronald van Raaphorst
        161358 by: Ronald van Raaphorst

Sharing data among frames ?
        161357 by: Ronald van Raaphorst

reinstalling php with imap
        161359 by: Merlin

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 Sunday, August 31, 2003, at 04:38 PM, Catalin Trifu wrote:

    Does the user under wich the Apache server runs (implicitly PHP)
has write access to those directories ?

Hmm... I don't know. Not exactly sure how Apache runs under OS X. I see a handful of httpd processes which are under the user 'www' and one other that is under 'root'.



Seth Willits
------------------------------------------------------------------------ ---
President and Head Developer of Freak Software - http://www.freaksw.com
Q&A Columnist for REALbasic Developer Magazine - http://www.rbdeveloper.com
Webmaster for REALbasic Game Central - http://www.freaksw.com/rbgames


"Rather fail with honor than succeed by fraud."
-- Sophocles
------------------------------------------------------------------------ ---

--- End Message ---
--- Begin Message ---
    Hi,

    The user root is the which starts the main apache process,
the others are the actual servers spawn by the first one. So
the user under which apache runs is www.
    This means that you need to grand write access to those
directory to the user www, and or the group (www i suppose)

Cheers,
Catalin

FYI:
    To find out the user used by apache you can look in httpd.conf and
look for the directive User

"Seth Willits" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Sunday, August 31, 2003, at 04:38  PM, Catalin Trifu wrote:
>
> >     Does the user under wich the Apache server runs (implicitly PHP)
> > has write access to those directories ?
>
> Hmm... I don't know. Not exactly sure how Apache runs under OS X. I see
> a handful of httpd processes which are under the user 'www' and one
> other that is under 'root'.
>
>
> Seth Willits
> ------------------------------------------------------------------------ 
> ---
> President and Head Developer of Freak Software - http://www.freaksw.com
> Q&A Columnist for REALbasic Developer Magazine -
> http://www.rbdeveloper.com
> Webmaster for REALbasic Game Central - http://www.freaksw.com/rbgames
>
> "Rather fail with honor than succeed by fraud."
>          -- Sophocles
> ------------------------------------------------------------------------ 
> ---

--- End Message ---
--- Begin Message --- On Sunday, August 31, 2003, at 05:01 PM, Catalin Trifu wrote:

Hi,

    The user root is the which starts the main apache process,
the others are the actual servers spawn by the first one. So
the user under which apache runs is www.
    This means that you need to grand write access to those
directory to the user www, and or the group (www i suppose)

With some help from a friend, I chmod'ed my site folder and it all works well now.



Thanks,



Seth Willits
------------------------------------------------------------------------ ---
President and Head Developer of Freak Software - http://www.freaksw.com
Q&A Columnist for REALbasic Developer Magazine - http://www.rbdeveloper.com
Webmaster for REALbasic Game Central - http://www.freaksw.com/rbgames


"Information is free. Intelligence is a gift."
-- Seth Willits
------------------------------------------------------------------------ ---

--- End Message ---
--- Begin Message ---
Marek Kilimajer wrote:
> 
> But because explorer does not support multipart/mixed and it is still 
> the major browser (thought not for long ;), do it this way. Output 
> header('Refresh: 0; url=download.zip'); first and then load the html 
> page with new data blocks.

Sorry if the solution is obvious but I can't understand what you mean by
using a refresh header. Where and when should I use the header? Can you
give a short example?

Thanks,

Jean-Christian Imbeault

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

--
John Taylor-Johnston
-----------------------------------------------------------------------------
"If it's not open-source, it's Murphy's Law."

  ' ' '   Collège de Sherbrooke:
 ô¿ô   http://www.collegesherbrooke.qc.ca/languesmodernes/
   -     Université de Sherbrooke:
          http://compcanlit.ca/
          819-569-2064

--- End Message ---
--- Begin Message ---
Sorry, hit sent by accident :)

I have a cookie:

if (!isset($_COOKIE["weather_htm"]))

But I want the name of the cookie to include $StudentId like this:

if (!isset($_COOKIE["weather_htm".$StudentId]))

Of course, the line does not read the cookie.

What is the problem with my syntax please?

John

--- End Message ---
--- Begin Message ---
--- John Taylor-Johnston <[EMAIL PROTECTED]> wrote:
> if (!isset($_COOKIE["weather_htm".$StudentId]))

$_COOKIE["weather_htm$StudentId"]

Hope that helps.

Chris

=====
Become a better Web developer with the HTTP Developer's Handbook
http://httphandbook.org/

--- End Message ---
--- Begin Message ---
I want to iterate through parents of some class.
The function get_parent_class is not enough since it retrieves only the
first parent of an instance.
Is there a way to retrieve the parents of a class without having an instance
of this class ? And if I have an instance, can I retrieve all parent
classes?

Cristiano Duarte.

--- End Message ---
--- Begin Message ---
I think i know what you mean, when you are using a sub class and you want
to use functions of a base class i find i have to do this to make it work
in the sub class constructor

parent::HTTP_Register;

> I want to iterate through parents of some class.
> The function get_parent_class is not enough since it retrieves only the
> first parent of an instance.
> Is there a way to retrieve the parents of a class without having an
> instance of this class ? And if I have an instance, can I retrieve all
> parent classes?
>
> Cristiano Duarte.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---
--- Begin Message ---
        Hi,

    If I'm not mistaking here, you can not find the parent(s)
of a class  without an instance and it is quite logical.
    Since PHP is not a compiled language, the parent
is available only at runtime.

Cheers,
Catalin


"Cristiano Duarte" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I want to iterate through parents of some class.
> The function get_parent_class is not enough since it retrieves only the
> first parent of an instance.
> Is there a way to retrieve the parents of a class without having an
instance
> of this class ? And if I have an instance, can I retrieve all parent
> classes?
>
> Cristiano Duarte.

--- End Message ---
--- Begin Message ---
> The client is using OS9
> and OSX so I need to find something that works with both. It's looking
> like Java at this moment in time. 

You will need to be aware -- Java on Mac OS 9 is somewhat limited. Look
up MRJ on Apple's tech pages. You will definitely want to test
separately on Mac OS 9 and keep track of any system extensions you have
to load to get things to work.

-- 
Joel Rees, programmer, Systems Group
Altech Corporation (Alpsgiken), Osaka, Japan
http://www.alpsgiken.co.jp
----------------------

"When software is patentable, anything is patentable." 
(http://swpat.ffii.org)

--- End Message ---
--- Begin Message --- I think this is at the point where you might need to cut your losses, and look for a good, lightweight WYSIWYG editor application for OS9 (free/share ware) that you can load on their systems... they can simply cut-and-paste from the textarea to their editor and back.

This way the OS X (OSX has been out for maybe 3 years now?) get full use of an in-line editor, and the OS9 machines get a reasonable solution with a few extra keystrokes.

Justin


On Monday, September 1, 2003, at 12:21 PM, Joel Rees wrote:


The client is using OS9
and OSX so I need to find something that works with both. It's looking
like Java at this moment in time.

You will need to be aware -- Java on Mac OS 9 is somewhat limited. Look up MRJ on Apple's tech pages. You will definitely want to test separately on Mac OS 9 and keep track of any system extensions you have to load to get things to work.

--- End Message ---
--- Begin Message ---
=========================================================
This message is for the benefit of new subscribers and those new to PHP.  
Those who  do not want to be bothered just filter out the [Newbie Guide] 
mails. Please feel free to add more points and send to the list.
==========================================================
1. If you have any queries/problems about PHP try http://www.php.net/manual/en 
first. You can download a copy and use it offline also.

2. If you can not get answer here try http://www.google.com next. Try 
searching for "php YOUR QUERY" and you may be lucky to get an answer within 
the first 10 results.

3. Glancing through the list archive at 
http://marc.theaimsgroup.com/?l=php-general , you can find many of the 
common topics discussed repeatedly and can get your answer from those 
discussions. 

4. If you are stuck with a script and do not understand what is wrong, instead 
of posting the whole script, try doing some research yourself. One useful 
trick is to print the variable/sql query using print or echo command and 
check whether you get what you expected. 

After diagnosing the problem, send the details of your efforts (following 
steps 1,2 & 3) and ask for help in the list.

5. Provide a clear descriptive subject line. Avoid general subjects like 
"Help!!", "A Question" etc.  Especially avoid blank subjects. 

6. When you want to start a new topic, open a new mail and enter the mailing 
list address [EMAIL PROTECTED] instead of replyting to an existing 
thread and replacing the subject and body with your message.

7. PHP is a server side scripting language. Whatever processing PHP does takes 
place BEFORE the output reaches the client. Therefore, it is not possible to 
access the users'  computer related information (OS, screen size etc) using 
PHP. You need to go for Java Script and ask the question in a Java Script 
list.

8. It's always a good idea to post back to the list once you've solved
your problem. People usually add [SOLVED] to the subject line of their
email when posting solutions. By posting your solution you're helping
the next person with the same question. [contribued by Chris W Parker]

9. Ask smart questions http://catb.org/~esr/faqs/smart-questions.html
[contributed by Jay Blanchard)

Hope you have a good time programming with PHP.

Best regards,

-- 
Ma Siva Kumar,
================================================
INTEGRATED MANAGEMENT TOOLS FOR LEATHER INDUSTRY
BSG LeatherLink,
Chennai.
Ph: +91 44 55191757
URL : http://www.leatherlink.net

--- End Message ---
--- Begin Message ---
First of all, this question is better being asked on
[EMAIL PROTECTED] and [EMAIL PROTECTED] We are the official
library maintainers, not the customer support. I forward this mail to
these lists.

Secondly, to create multiple connections OCI8 via PHP you should be
using OCINLogon().

Maxim Maletsky
[EMAIL PROTECTED]



On Sun, 31 Aug 2003 22:32:21 +0800 (CST)
Zhixiang Wang <[EMAIL PROTECTED]> wrote:

> Dear Maxim Maletsky:
>     Recently I install oracle 9.2.0.1 on RedHat Linux 9.0. It seems working well! 
> But I encountered many problems, please help me!
>     The parameter is here:
>     ORACLE HOST IP=192.168.1.1
>     ORACLE SID=ora9i
>     ORACLE database name=oracledb
>     First, I can't use "ocm login -idora9i" to start OMS. On Linux I can't start up 
> a KDE or GNOME X-Windows interface to manage Oracle!But I can connect oracle by 
> using oracle client on Windows 2000 from "standalone" but not "enterprise management 
> server". On oracle client I can only connect to oracle database using system/[EMAIL 
> PROTECTED] But I can't use SQLPLUS on Linux to connect by using system/[EMAIL 
> PROTECTED] and I can using "system/******" to connect to oracle database! 
>      Second, I can connect oracle database by using PHP with famous example: 
> ocilogon("scott","tiger") only once!!! If I want to connect to oracle with OCI8 I 
> must reboot oracle database on Linux. But I can connect oracle using another famouse 
> example: ora_logon("scott""tiger") for many and many times!!! I had test to using 
> ocilogon("scott","tiger","oracledb") but failed!
>     Yours sincerely
>                 Zhixiang Wang
>                2003.8.31
>         
>     
> 
> 
> 
> ---------------------------------
> Do You Yahoo!?
> ÆôÓõçÓÊÕʺţ¬Áì»áÑÅ»¢Í¨[ÉíÁÙÆä¾³ÁĵçÓ°]µÄ¶¯¸Ð÷ÈÁ¦£¬»¹ÓÐÍøÂçÉãÏñÍ·+ÑÅ»¢Í¨ÊÕÒô»úµÈÄãÀ´ÄÃ

-- 
Maxim Maletsky <[EMAIL PROTECTED]>

--- End Message ---
--- Begin Message ---
I create this cookie, using Javascript::

testals.flsh.usherb.ca FALSE / FALSE 1062433227 weather.htm99999995 1

If the browser is reloaded, I want php to read the cookie and do my else statement.
Even after a browser shut-down and restart, I cannot get PHP to read the cookie (first 
part of my if statement).

If I use phpinfo(), it does confirm that:

_COOKIE["weather.htm99999995"] = 1

What weird quirk have I missed this time?


<?php

$StudentId = "weather.htm99999995";

if (!isset($_COOKIE["weather.htm$StudentId"]))
{
echo "Cookie not found, not reading weather.htm$StudentId<br>";
echo "\$_COOKIE[\"weather.htm$StudentId\"]".
$_COOKIE["weather.htm$StudentId"]."-<hr>";

}else{
echo "cookie found, yay! ".$_COOKIE["weather.htm$StudentId"]."-<hr>";
#phpinfo();
}
?>

--- End Message ---
--- Begin Message ---
At 2003-09-01 00:49 -0400, John Taylor-Johnston wrote:
>I create this cookie, using Javascript::
>
>testals.flsh.usherb.ca FALSE / FALSE 1062433227 weather.htm99999995 1
>
>If the browser is reloaded, I want php to read the cookie and do my else statement.
>Even after a browser shut-down and restart, I cannot get PHP to read the cookie 
>(first part of my if statement).
>
>If I use phpinfo(), it does confirm that:
>
>_COOKIE["weather.htm99999995"] = 1
>
>What weird quirk have I missed this time?
>
>
><?php
>
>$StudentId = "weather.htm99999995";

Remove 'weather.htm' from this string.

>if (!isset($_COOKIE["weather.htm$StudentId"]))
>{
>echo "Cookie not found, not reading weather.htm$StudentId<br>";
>echo "\$_COOKIE[\"weather.htm$StudentId\"]".
>$_COOKIE["weather.htm$StudentId"]."-<hr>";
>
>}else{
>echo "cookie found, yay! ".$_COOKIE["weather.htm$StudentId"]."-<hr>";
>#phpinfo();
>}
>?>

Greetings,
Jaap

--- End Message ---
--- Begin Message ---
On Sun, Aug 31, 2003 at 02:38:45PM +0300, Paul Marinas wrote:

Hi all,

Thanks to all of you that answered
That was nice and will get me started.

regards
Metta

> try http://www.php.net/download-docs.php
> u have a link there for diferent languages

-- 
A saying of the Buddha from http://metta.lk/ 
Whosoever rejects the words of the noble, righteous Arahants, such a fool, because of 
his false views, brings forth on his head ruin and destruction, like the banana-tree 
which dies when it has borne fruit. 
Random Dhammapada Verse 164  
 

--- End Message ---
--- Begin Message ---
Hi all,

I have header, a menu and a content frame.
The header should not be refreshed.
The menu dislays a menu (menu.php?menuid=x) from a mysql menu database, and
should be refreshed  based on a condition.
The content frame (content.php?[article=x | table=y]) displays either an
article or some database content and should always be refreshed.

Depending on a condition in the content (checked my content.php), I want the
menu to be refreshed or not, i.e. I want the menu to select another topic.

How do I do this? I don't want the complete page or the menu to be refreshed
if it's not necessary, and on the other hand, when content.php notices
another menu item should be selected, it has to be renewed...

Any help is greatly appreciated
Ronald

--- End Message ---
--- Begin Message --- Hi,

It's not very clear from your message what you are trying to do. If you are trying to just reload some of the frames instead of the whole
frameset look at the 'target' attribute for 'A' element in html.



Ronald van Raaphorst wrote:


Hi all,

I have header, a menu and a content frame.
The header should not be refreshed.
The menu dislays a menu (menu.php?menuid=x) from a mysql menu database, and
should be refreshed  based on a condition.
The content frame (content.php?[article=x | table=y]) displays either an
article or some database content and should always be refreshed.

Depending on a condition in the content (checked my content.php), I want the
menu to be refreshed or not, i.e. I want the menu to select another topic.

How do I do this? I don't want the complete page or the menu to be refreshed
if it's not necessary, and on the other hand, when content.php notices
another menu item should be selected, it has to be renewed...

Any help is greatly appreciated
Ronald





--
http://www.raditha.com/php/progress.php
A progress bar for PHP file uploads.

--- End Message ---
--- Begin Message ---
Hi,

Thanks for the response, I'll try to explain better:

I have 2 frames: a Menu and a Content frame.
I have 2 menu's: one for support and one for sales

If the content frame displays a support article, the support menu should  be
displayed.
If the content frame displays a sales article, the sales menu should be
displayed.
If the sales menu is already displayed, I don't want it to be refreshed,
because it's not necessary. It's already there!

So, based on a condition in the Content frame (evaluated by content.php) I
want to refresh (or not) the of the menu frame (controlled by menu.php).

I hope this is more clear.

Ronald


"Raditha Dissanayake" <[EMAIL PROTECTED]> schreef in bericht
news:[EMAIL PROTECTED]
> Hi,
>
> It's not very clear from your message what you are trying to do. If you
> are trying to just reload some of the frames instead of the whole
> frameset look at the 'target' attribute for 'A' element in html.
>
>
> Ronald van Raaphorst wrote:
>
> >Hi all,
> >
> >I have header, a menu and a content frame.
> >The header should not be refreshed.
> >The menu dislays a menu (menu.php?menuid=x) from a mysql menu database,
and
> >should be refreshed  based on a condition.
> >The content frame (content.php?[article=x | table=y]) displays either an
> >article or some database content and should always be refreshed.
> >
> >Depending on a condition in the content (checked my content.php), I want
the
> >menu to be refreshed or not, i.e. I want the menu to select another
topic.
> >
> >How do I do this? I don't want the complete page or the menu to be
refreshed
> >if it's not necessary, and on the other hand, when content.php notices
> >another menu item should be selected, it has to be renewed...
> >
> >Any help is greatly appreciated
> >Ronald
> >
> >
> >
>
>
> -- 
> http://www.raditha.com/php/progress.php
> A progress bar for PHP file uploads.

--- End Message ---
--- Begin Message ---
I'm have a strange problem. I've encoutered a few before, but nothing like
this:

New machine with php4.2.2 on RedHat with Apache2.0

All my forms use POST method. But I noticed that some scripts when i submit
the form, i get wierd data.

For example:
say i have <input type=hidden name="example" value="val">

then what i will get for $example is the string "valexample=val" instead of
just "val"!!! even the $_POST[example] variable gives the same thing...

magic quotes and globals are ON.

If i put it to GET, then it works fine. But i don't want to put GET!
Especially that you can't use get for file uploads.

Also, i think this is screwing up my uploads! I uploaded a text file and saw
that it inserted a bunch of text right in the middleof the file!!

Something like:
-----------------------------7d3323a150580
Content-Disposition: form-data; name="userfile"; filename="C:\Documents and
Settings\file.txt"
Content-Type: text/plain


So something is causing my php to insert the name of the variable and other
stuff into the variable itself..ANY IDEAS?

--- End Message ---
--- Begin Message ---
        Hi,

    I have been using PHP for some time now and I, for one,
never had such problems. I'm pretty sure the problem is elsewhere.
    For instance, when creating the HTML form, you have to make
sure everything is quoted perfectly:
    <FORM actip="script.php" method="POST">
        <INPUT type="hidden" name="example" value="some_val">
    </FORM>
    And then in PHP, you have to quote indexes of an associative array:
    $_POST["example"].
    When uploading files, remeber to use the
    <form enctype="multipart/form-data" ...


Cheers,
Catalin

"Mohamed S." <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I'm have a strange problem. I've encoutered a few before, but nothing like
> this:
>
> New machine with php4.2.2 on RedHat with Apache2.0
>
> All my forms use POST method. But I noticed that some scripts when i
submit
> the form, i get wierd data.
>
> For example:
> say i have <input type=hidden name="example" value="val">
>
> then what i will get for $example is the string "valexample=val" instead
of
> just "val"!!! even the $_POST[example] variable gives the same thing...
>
> magic quotes and globals are ON.
>
> If i put it to GET, then it works fine. But i don't want to put GET!
> Especially that you can't use get for file uploads.
>
> Also, i think this is screwing up my uploads! I uploaded a text file and
saw
> that it inserted a bunch of text right in the middleof the file!!
>
> Something like:
> -----------------------------7d3323a150580
> Content-Disposition: form-data; name="userfile"; filename="C:\Documents
and
> Settings\file.txt"
> Content-Type: text/plain
>
>
> So something is causing my php to insert the name of the variable and
other
> stuff into the variable itself..ANY IDEAS?

--- End Message ---
--- Begin Message ---
On Monday 01 September 2003 15:54, Mohamed S. wrote:
> I'm have a strange problem. I've encoutered a few before, but nothing like
> this:
>
> New machine with php4.2.2 on RedHat with Apache2.0
>
> All my forms use POST method. But I noticed that some scripts when i submit
> the form, i get wierd data.
>
> For example:
> say i have <input type=hidden name="example" value="val">
>
> then what i will get for $example is the string "valexample=val" instead of
> just "val"!!! even the $_POST[example] variable gives the same thing...

I believe this is a known problem with that version of PHP. Upgrade to a newer 
version. Also if you don't have any particular reason to use Apache 2.x then 
you ought to use Apache 1.3.x instead.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
An adequate bootstrap is a contradiction in terms.
*/

--- End Message ---
--- Begin Message ---
Hi All,

I need to track the bandwidth usage of the different sites hosted on a server. How can 
i achieve this using PHP,Apache,mysql under Linux environment.

Please suggest me as it is urgently needed by client.

Thanks 

Binay

--- End Message ---
--- Begin Message ---
Hi all,

I have 3 frames:
Top, Menu (menu.php?menuid=x) and Content ( Content.php?[ table=y |
article=z])

Menu.php displays a menu, and the selected item=x
Content.php displays either a mysql table or an article.

Now I don't want to refresh the menu frame when the topic is the same for
another article, or table.
But on some occasions, I want to menu to select another topic, based on a
condition evaluated by Content.php.
How can I optionally tell the menu frame to refresh?

TIA
Ronald

--- End Message ---
--- Begin Message ---
        Hi,

    JavaScript reload() function.
    If you have <FRAME name="menu"
    from the content frame do something like this:
    document.top.menu.reload() (can't remember exactly)

Cheers,
Catalin

"Ronald Van Raaphorst" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi all,
>
> I have 3 frames:
> Top, Menu (menu.php?menuid=x) and Content ( Content.php?[ table=y |
> article=z])
>
> Menu.php displays a menu, and the selected item=x
> Content.php displays either a mysql table or an article.
>
> Now I don't want to refresh the menu frame when the topic is the same for
> another article, or table.
> But on some occasions, I want to menu to select another topic, based on a
> condition evaluated by Content.php.
> How can I optionally tell the menu frame to refresh?
>
> TIA
> Ronald

--- End Message ---
--- Begin Message ---
I am having a weird problem, when I close all my browser windows and restart
my application, the session variable which I set comes back suddenly, but
only when I call a certain class .
As far as I know the session variables should disappear when I close the
browser.  Why would they suddenly come back?
thank you

--- End Message ---
--- Begin Message ---
Check out session.cookie_lifetime .. 
if lifetime =0 then session should disappear once you close the browser else it will 
stay the time specified in lifetime options.

Hope this helps and let me know.

Binay

"Diana Castillo" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> I am having a weird problem, when I close all my browser windows and restart
> my application, the session variable which I set comes back suddenly, but
> only when I call a certain class .
> As far as I know the session variables should disappear when I close the
> browser.  Why would they suddenly come back?
> thank you


--- End Message ---
--- Begin Message ---
This may be a curl question, but it may not....

I have a script through which I'm trying to push all images.  The push
happens using mod_rewrite:

 RewriteRule ^/(.+\.(gif|jpg|jpeg|png))(\?.*)?\$ /inc/script.php?f=$1 [NC,L,PT]

Oddly, when hitting the script from a command line, I get different
results depending on how it's called:

 > curl -D- http://hostname/test.jpg | grep Content-
 Content-Type: text/html
 > curl -I http://hostname/test.jpg | grep Content-
 Content-Type: image/jpeg

What's going on here?

-- 
  Paul Chvostek                                             <[EMAIL PROTECTED]>
  Operations / Abuse / Whatever
  it.canada, hosting and development                   http://www.it.ca/

--- End Message ---
--- Begin Message ---
Hi all,

I want to share data between two frames. My object should be a php script
(if possible).
The object should know (using a session variable) which id is currently
displayed in each frame.
This way, the object can decide if the frame should be refreshed or not,
because it knows what ID already is being displayed.
Are there any examples on how to do this? Am I looking in the wrong
direction? Is there another solution?

Ronald


>From the www.w3.org specification on
http://www.w3.org/TR/1998/REC-html40-19980424/present/frames.html#sharing-frame-data

Sharing data among frames

Authors may share data among several frames by including this data via an
OBJECT element. Authors should include the OBJECT element in the HEAD
element of a frameset document and name it with the id attribute. Any
document that is the contents of a frame in the frameset may refer to this
identifier.
The following example illustrates how a script might refer to an OBJECT
element defined for an entire frameset:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN"
"http://www.w3.org/TR/REC-html40/frameset.dtd";>
<HTML>
    <HEAD>
        <TITLE>This is a frameset with OBJECT in the HEAD</TITLE>
        <!-- This OBJECT is not rendered! -->
        <OBJECT id="myobject" data="data.bar"></OBJECT>
     </HEAD>
    <FRAMESET>
        <FRAME src="bianca.html" name="bianca">
    </FRAMESET>
</HTML>

<!-- In bianca.html -->
<HTML>
    <HEAD>
        <TITLE>Bianca's page</TITLE>
    </HEAD>
    <BODY>
        ...the beginning of the document...
        <P>
        <SCRIPT type="text/javascript">
        parent.myobject.myproperty
        </SCRIPT>
        ...the rest of the document...
    </BODY>
</HTML>

--- End Message ---
--- Begin Message ---
Oeps, sent twice...

Sorry

--- End Message ---
--- Begin Message ---
Hi all,

I want to share data between two frames. My object should be a php script
(if possible).
The object should know (using a session variable) which id is currently
displayed in each frame.
This way, the object can decide if the frame should be refreshed or not,
because it knows what ID already is being displayed.
Are there any examples on how to do this? Am I looking in the wrong
direction? Is there another solution?

Ronald


>From the www.w3.org specification on
http://www.w3.org/TR/1998/REC-html40-19980424/present/frames.html#sharing-frame-data

Sharing data among frames

Authors may share data among several frames by including this data via an
OBJECT element. Authors should include the OBJECT element in the HEAD
element of a frameset document and name it with the id attribute. Any
document that is the contents of a frame in the frameset may refer to this
identifier.
The following example illustrates how a script might refer to an OBJECT
element defined for an entire frameset:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN"
"http://www.w3.org/TR/REC-html40/frameset.dtd";>
<HTML>
    <HEAD>
        <TITLE>This is a frameset with OBJECT in the HEAD</TITLE>
        <!-- This OBJECT is not rendered! -->
        <OBJECT id="myobject" data="data.bar"></OBJECT>
     </HEAD>
    <FRAMESET>
        <FRAME src="bianca.html" name="bianca">
    </FRAMESET>
</HTML>

<!-- In bianca.html -->
<HTML>
    <HEAD>
        <TITLE>Bianca's page</TITLE>
    </HEAD>
    <BODY>
        ...the beginning of the document...
        <P>
        <SCRIPT type="text/javascript">
        parent.myobject.myproperty
        </SCRIPT>
        ...the rest of the document...
    </BODY>
</HTML>






--- End Message ---
--- Begin Message --- Hi there,

I would like to upgrade to the latest php version.

My old version was build with imap a year ago. Now I found, that the directory which contained the imap files:
'--with-imap=/home/sw/horde/imap-2002.RC2' '
does not longer exist. So I guess I have to rebuild the c-client library?
Is there a way around this? I am getting errors I cant solve while installing the c-client. The old c-client should be anywhere on the system, since php is running fine at the moment, right?


Can anybody give me an advice how to solve this dilema?

Thanx,

Merlin
--- End Message ---

Reply via email to