php-windows Digest 20 Dec 2002 16:03:13 -0000 Issue 1496

Topics (messages 17495 through 17501):

Re: Yet another session.save_path issue
        17495 by: Mikey
        17496 by: Clare, Bruce W
        17497 by: Christoph Grottolo

2 dimension Array...
        17498 by: krizz
        17499 by: Dash McElroy
        17500 by: Howard, Robert P

Feliz Natal .:. Happy Christmas
        17501 by: José Moreira

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 ---
> Basic problem: I've edited my session.save_path in php.ini, but the
> application
> still fails in session_start() because it is still using /tmp.
> This is even
> after I stop/restart
> Apache. I know that the updated php.ini file is being read, because my
> changes to the
> include_path were successfully added.
>
> I'm running Apache 2.0.43; PHP 4.3.0RC3 (also tried with an earlier stable
> build).
> on Win2K.
>
> Question: Is there any way for session.save_path to get clobbered
> via an API
> or environment variable?

Not too sure about the API/env variables, but I have the following line in
my php.ini and it works fine - the only difference from yours is that I use
the forward slash...

session.save_path = d:/temp

HTH,

Mikey


--- End Message ---
--- Begin Message ---
>Not too sure about the API/env variables, but I have the following line in
>my php.ini and it works fine - the only difference from yours is that I use
>the forward slash...

>session.save_path = d:/temp

I've tried it like that, also, without the drive letter and various
combinations.

One thing your note reminded me of was to try using double backslashes "\\"
like in C or C++, but that didn't work either.

The only occurence of "tmp" in the entire ini file is in the commented 
variable name: ";upload_tmp_dir =", so the path is coming from another
source besides
the ini.  I've also verified that there are no other php.ini files on my
system.

Thx,
BC
--- End Message ---
--- Begin Message ---
Bruce W Clare wrote:
>> Not too sure about the API/env variables, but I have the following
>> line in my php.ini and it works fine - the only difference from
>> yours is that I use the forward slash...
>
>> session.save_path = d:/temp
>
> I've tried it like that, also, without the drive letter and various
> combinations.
>
> One thing your note reminded me of was to try using double
> backslashes "\\" like in C or C++, but that didn't work either.
>
> The only occurence of "tmp" in the entire ini file is in the commented
> variable name: ";upload_tmp_dir =", so the path is coming from another
> source besides
> the ini.  I've also verified that there are no other php.ini files on
> my system.

Make a script with the only command phpinfo();, call it from the browser and
read in the output which php.ini is read (if any) and what the session path
is set to. It really sounds like an issue with php.ini. And: double check if
you have spelled correctly session.save_path.

Christoph
Christoph


--- End Message ---
--- Begin Message ---
$outputstring is a double dimension string array and should give it's values
as "default value" in the html input text boxes. But it stops the strings in
the first space character. For example if $outputstring[2][1]=="The Cats" it
put in the text box only "The".

Any idea?

$team=0;

while ($team<$NumOfTeams)

{

echo "<input type=\"text\" name=\"teamName[$team]\" value=";

echo $outputstring[$team][1]."\">";

$team+=1;

}


--- End Message ---
--- Begin Message ---
You are missing an opening quote:

echo "<input type=\"text\" 
name=\"teamName[$team]\"value=\"".$outputstring[$team][1]."\">";
                                                          ^^^^

Try that.

-Dash

-shad

No committee could ever come up with anything as revolutionary as a
camel -- anything as practical and as perfectly designed to perform
effectively under such difficult conditions.
                -- Laurence J. Peter

On Fri, 20 Dec 2002, krizz wrote:

> $outputstring is a double dimension string array and should give it's values
> as "default value" in the html input text boxes. But it stops the strings in
> the first space character. For example if $outputstring[2][1]=="The Cats" it
> put in the text box only "The".
>
> Any idea?
>
> $team=0;
>
> while ($team<$NumOfTeams)
>
> {
>
> echo "<input type=\"text\" name=\"teamName[$team]\" value=";
>
> echo $outputstring[$team][1]."\">";
>
> $team+=1;
>
> }
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--- End Message ---
--- Begin Message ---
Try changing your echo string to this:-

echo "<input type='text' name='teamName[$team]'
value='$outputstring[$team][1]'>";

This will make your code eaiser to read as well as showing when you have a
missing Quote as Dash has pointed out;
Regards,
Rob Howard
Database Technician
Canberra Deep Space Communication Complex



-----Original Message-----
From: krizz [mailto:[EMAIL PROTECTED]]
Sent: Friday, 20 December 2002 1:25 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] 2 dimension Array...


$outputstring is a double dimension string array and should give it's values
as "default value" in the html input text boxes. But it stops the strings in
the first space character. For example if $outputstring[2][1]=="The Cats" it
put in the text box only "The".

Any idea?

$team=0;

while ($team<$NumOfTeams)

{

echo "<input type=\"text\" name=\"teamName[$team]\" value=";

echo $outputstring[$team][1]."\">";

$team+=1;

}



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

#####################################################################################
This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal
#####################################################################################
--- End Message ---
--- Begin Message ---

José Moreira

TEGOPI S.A.

http://www.tegopi.pt
----------------<*>---------------
Feliz natal e excelente Ano Novo
Merry Christmas and a joly New Year


--- End Message ---

Reply via email to