php-windows Digest 26 May 2007 19:05:12 -0000 Issue 3239

Topics (messages 27971 through 27981):

Re: LAST_INSERT_ID  & LAST_UPDATE_ID
        27971 by: Stut
        27980 by: Stut

IE ignoring background image
        27972 by: Alf Stockton
        27973 by: Bill Bolte
        27975 by: Niel Archer

Retrieve all SESSION variables.
        27974 by: Alf Stockton
        27976 by: Stut
        27977 by: Jarrett Meyer
        27978 by: Alf Stockton
        27979 by: Stut

Virus left 3 desktops folders in directory tree of WinXP sp2
        27981 by: Chetanji

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 ---
sam rumaizan wrote:
What I want to do is:

1-user has 10 columns (fields).
2- User updated one of these fields using CONCAT_WS(adding new data to previous data). 3- When user views any of his information he sees only the last updated part of the data.


So, timestamp/datetime field  is not going to work.

Indeed not, in fact what you need to do is add another table. Those 10 columns should be in a separate table. With a timestamp. Each bit of added data should create a row in that table. Then you can get the last bit of data added to each field for each user.

This is called database normalisation, and I suggest you look it up on Wikipedia or Google.

-Stut

--- End Message ---
--- Begin Message ---
sam rumaizan wrote:
You mean Normalization

Not in my part of the world. England. You know, where English came from.

And quit with the bold!! It's not big, it's not clever and it puts *'s all over your email!

-Stut

*/Stut <[EMAIL PROTECTED]>/* wrote:

    sam rumaizan wrote:
     > What I want to do is:
     >
     > 1-user has 10 columns (fields).
     > 2- User updated one of these fields using CONCAT_WS(adding new
    data to
     > previous data).
     > 3- When user views any of his information he sees only the last
    updated
     > part of the data.
     >
     >
     > So, timestamp/datetime field is not going to work.

    Indeed not, in fact what you need to do is add another table. Those 10
    columns should be in a separate table. With a timestamp. Each bit of
    added data should create a row in that table. Then you can get the last
    bit of data added to each field for each user.

    This is called database normalisation, and I suggest you look it up on
    Wikipedia or Google.

    -Stut




------------------------------------------------------------------------
Ready for the edge of your seat? Check out tonight's top picks <http://us.rd.yahoo.com/evt=48220/*http://tv.yahoo.com/> on Yahoo! TV.

--- End Message ---
--- Begin Message ---
I have the following line coded into my style.css

body {font-family: verdana,arial,helvetica,sans-serif; background-color: #b4d9fb; background-image: url("../images/background.png"); background-repeat: no-repeat; background-position: top center}

and IE7 is not displaying the background image.
I have also tried the URL("http://localhost/Events/background.png";) but it still fails.

Please tell me how I should fix this.

--
Regards,
Alf Stockton            www.stockton.co.za

If one cannot enjoy reading a book over and over again, there is no use
in reading it at all.
                -- Oscar Wilde
My email disclaimer is available at www.stockton.co.za/disclaimer.html

--- End Message ---
--- Begin Message ---
Your 2 paths are different. Which is the correct path?
"/events/background.png" or "/images/background.png"? Once you solve
that, you'll probably see why the image isn't showing in either place.

-----Original Message-----
From: Alf Stockton [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 25, 2007 7:21 AM
To: php windows
Subject: [PHP-WIN] IE ignoring background image

I have the following line coded into my style.css

body {font-family: verdana,arial,helvetica,sans-serif; background-color:

#b4d9fb; background-image: url("../images/background.png"); 
background-repeat: no-repeat; background-position: top center}

and IE7 is not displaying the background image.
I have also tried the URL("http://localhost/Events/background.png";) but 
it still fails.

Please tell me how I should fix this.

-- 
Regards,
Alf Stockton            www.stockton.co.za

If one cannot enjoy reading a book over and over again, there is no use
in reading it at all.
                -- Oscar Wilde
My email disclaimer is available at www.stockton.co.za/disclaimer.html

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

--- End Message ---
--- Begin Message ---
Alf,

this is NOT a PHP question.  Please stop asking questions that are so
obviously off-topic on this list.  There are plenty of resources on the
web for this kind of problem.

http://www.blooberry.com/indexdot/css/syntax/unit/url.htm

Niel

--- End Message ---
--- Begin Message --- Is there a method whereby one can retrieve all php SESSION variables on a Windows server.
I have tried:-

<?php
        session_start();
        foreach($_SESSION as $key => $val)
                {
        echo $key . " : " . $val . "<br>";
                }
?>

but this appears to only return current user variables.

--
Regards,
Alf Stockton            www.stockton.co.za

Let us endeavor so to live that when we come to die even the undertaker will be
sorry.
                -- Mark Twain, "Pudd'nhead Wilson's Calendar"
My email disclaimer is available at www.stockton.co.za/disclaimer.html

--- End Message ---
--- Begin Message ---
Alf Stockton wrote:
Is there a method whereby one can retrieve all php SESSION variables on a Windows server.
I have tried:-

<?php
    session_start();
    foreach($_SESSION as $key => $val)
        {
        echo $key . " : " . $val . "<br>";
          }
?>

but this appears to only return current user variables.

Shocking that. You think maybe there's some security-related reasoning behind that?

Seriously tho, if you really really really need to do this, and I can't think of a single good reason you would, you need to be looking at where PHP is storing the session data as it provides no way to access other users session data due to the aforementioned security-related reasoning.

-Stut

--- End Message ---
--- Begin Message ---
I think Stut is being a little sarcastic. :)

The
original question is correct: The method below ( foreach ($_SESSION as
$k => $v) ... ) will only tell you the current session variables for
the current user. That is intentional in the design of the $_SESSION
variable.

It will not tell you all of the possible session
variables or what another user may have as their session variables.
(i.e. if you haven't logged on to a page, you may not have a
$_SESSION["logon_timestamp"] key, even though it is a key that some
future page may care about.

You need to find how the sessions
are stored (file or DB) and look there. You can then parse the hash to
look at all of the available sessions.

(sorry for the previous message... need to check the "To" before hitting 
"Send".)

jm 
----
Jarrett M. T. Meyer
http://jarrettmeyer.blogspot.com
http://www.jarrettmeyer.com

No trees were harmed during this transmission; however, several electrons were 
terribly inconvenienced.

----- Original Message ----
From: Stut <[EMAIL PROTECTED]>
To: Alf Stockton <[EMAIL PROTECTED]>
Cc: php windows <[EMAIL PROTECTED]>
Sent: Friday, May 25, 2007 11:50:27 AM
Subject: Re: [PHP-WIN] Retrieve all SESSION variables.

Alf Stockton wrote:
> Is there a method whereby one can retrieve all php SESSION variables on 
> a Windows server.
> I have tried:-
> 
> <?php
>     session_start();
>     foreach($_SESSION as $key => $val)
>         {
>         echo $key . " : " . $val . "<br>";
>           }
> ?>
> 
> but this appears to only return current user variables.

Shocking that. You think maybe there's some security-related reasoning 
behind that?

Seriously tho, if you really really really need to do this, and I can't 
think of a single good reason you would, you need to be looking at where 
PHP is storing the session data as it provides no way to access other 
users session data due to the aforementioned security-related reasoning.

-Stut

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

--- End Message ---
--- Begin Message ---
Stut wrote:
Alf Stockton wrote:
Is there a method whereby one can retrieve all php SESSION variables on a Windows server.
I have tried:-

<?php
    session_start();
    foreach($_SESSION as $key => $val)
        {
        echo $key . " : " . $val . "<br>";
          }
?>

but this appears to only return current user variables.

Shocking that. You think maybe there's some security-related reasoning behind that?

Try sysadmin wants to know who is doing what.

--
Regards,
Alf Stockton            www.stockton.co.za

O, it is excellent
To have a giant's strength; but it is tyrannous
To use it like a giant.
                -- Shakespeare, "Measure for Measure", II, 2
My email disclaimer is available at www.stockton.co.za/disclaimer.html

--- End Message ---
--- Begin Message ---
Alf Stockton wrote:
Stut wrote:
Alf Stockton wrote:
Is there a method whereby one can retrieve all php SESSION variables on a Windows server.
I have tried:-

<?php
    session_start();
    foreach($_SESSION as $key => $val)
        {
        echo $key . " : " . $val . "<br>";
          }
?>

but this appears to only return current user variables.

Shocking that. You think maybe there's some security-related reasoning behind that?

Try sysadmin wants to know who is doing what.

Tell "sysadmin" to consider what he actually wants to know and whether there is a better way to get that information. Reading the raw sessions rarely gives you information you couldn't get from server logs or a little added logging in the app.

-Stut

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

I need help in deleting these extra two desktops.
I have Administrator Privledges but when attempting to delete these extra
Desktop folders I get the error...

"Desktop is a Windows system folder and is required for Windows to run
properly.  It cannot be deleted."  

This is causing quite a headache.  This may not be the correct forum to beg
an answer for this but...

Normal desktop is C:\DocumentsandSettings\Ahis\Desktop;

As well there is C:\DocumentsandSettings\All Users\Desktop;

And finally C:\DocumentsandSettings\All Users\Desktop\Shared
Documents\Desktop;

This situation is causing the whole workstation to act peculiar and no work
is being done by the user.

May the answer equal the frustration in relief it brings.

Blessings,
Chetan

-- 
View this message in context: 
http://www.nabble.com/Need-help-tf3702819.html#a10819125
Sent from the Php - Windows mailing list archive at Nabble.com.

--- End Message ---

Reply via email to