php-windows Digest 19 Mar 2002 16:08:59 -0000 Issue 1053

Topics (messages 12671 through 12683):

Session-trouble bigtime
        12671 by: Martin
        12672 by: Mike Flynn

Undefines constant
        12673 by: Leo Sten
        12674 by: Dan Zarrella
        12675 by: Dan Zarrella
        12676 by: Dan Zarrella
        12677 by: Dan Zarrella
        12679 by: Dan Zarrella

Re: [PHP-DB] RE: [PHP-WIN] Stange 'page-loading' effect
        12678 by: Jonathan Hilgeman

Re: FastCGI ISAPI/NSAPI Update
        12680 by: Shane Caraveo

how and where to turn autocommit off ?
        12681 by: Sviss Cobazor

Re: Ongoing php.ini and/or system problems
        12682 by: C vd Veen

PHP 4.1.2 problems
        12683 by: Steve

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 ---
Hmm I have registred the Session $Namn
by the following snippet:

<< File1 >>
<?
session_register("Namn");
$Namn = "sweden";
echo"ett litet test med sessioner";
?>

And when I goes to:
<< File2 >>
<?
session_start() ;
session_register("Namn");
echo"Hejsan $Namn !";
?>

Nothings happening...
My Session in php.ini looks like this:


[Session]
; Handler used to store/retrieve data.
session.save_handler = files

; Argument passed to save_handler.  In the case of files, this is the path
; where data files are stored. Note: Windows users have to change this
; variable in order to use PHP's session functions.
session.save_path = /tmp

; Whether to use cookies.
session.use_cookies = 1


; Name of the session (used as cookie name).
session.name = PHPSESSID

; Initialize session on request startup.
session.auto_start = 0

; Lifetime in seconds of cookie or, if 0, until browser is restarted.
session.cookie_lifetime = 0

; The path for which the cookie is valid.
session.cookie_path = /

; The domain for which the cookie is valid.
session.cookie_domain =

; Handler used to serialize data.  php is the standard serializer of PHP.
session.serialize_handler = php

; Percentual probability that the 'garbage collection' process is started
; on every session initialization.
session.gc_probability = 1

; After this number of seconds, stored data will be seen as 'garbage' and
; cleaned up by the garbage collection process.
session.gc_maxlifetime = 1440

; Check HTTP Referer to invalidate externally stored URLs containing ids.
session.referer_check =

; How many bytes to read from the file.
session.entropy_length = 0

; Specified here to create the session id.
session.entropy_file =

;session.entropy_length = 16

;session.entropy_file = /dev/urandom

; Set to {nocache,private,public} to determine HTTP caching aspects.
session.cache_limiter = nocache

; Document expires after n minutes.
session.cache_expire = 180

; use transient sid support if enabled by compiling with --enable-trans-sid.
session.use_trans_sid = 1

url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"




The tmp map is also set and the session is created...but the browser cant
reach it!!!!
please help me!!
best regards
--
Martin Eriksson
webdesigner & Utvecklare
----------------------------------------------------------------
[EMAIL PROTECTED]
http://www.svensk-design.com


--- End Message ---
--- Begin Message ---
At 03:58 PM 3/18/2002 +0100, Martin wrote:
>Hmm I have registred the Session $Namn
>by the following snippet:
>
><< File1 >>
><?
>session_register("Namn");
>$Namn = "sweden";
>echo"ett litet test med sessioner";
>?>

Should there be a session_start() here?  You have session.auto_start set to 
0 in your PHP.INI, so I'm not sure if this will actually start the session.

>And when I goes to:
><< File2 >>
><?
>session_start() ;
>session_register("Namn");
>echo"Hejsan $Namn !";
>?>

You don't register the variable again once you've started the session.  You 
can get rid of the 'session_register("Namn");' here.

-Mike

--- End Message ---
--- Begin Message ---
Hello!
I have just installed php4 on my server, I'm running IIS on windows 2000.
When I run some scripts that I know work on other servers I get the error:

"Warning: Use of undefined constant" and then the constant name etc.

Please help me!

Best Regards/
Leo Sten
--- End Message ---
--- Begin Message ---
I've seen this a few times, mostly having to do with arrays and thier 
indexes, namely associative arrays. $foo[bar]; is enough to cause that 
error, it should be $foo['bar']; try that. -dan

_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com

--- End Message ---
--- Begin Message ---
have you checked things like register_globals since the default settings 
have changed in the new version of php, paste your settings please -dan

_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com

--- End Message ---
--- Begin Message ---
create a file that says only this:

//start
<?php
phpinfo();
?>
//end

then copy and paste the first section.




_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com

--- End Message ---
--- Begin Message ---
ok register globals is on, i can't see anything else of the top of my head, 
can you paste the line that php is giving and error and the error message in 
one or two of the scripts so that i can see what is throwing the error.


>From: "Leo Sten" <[EMAIL PROTECTED]>
>To: "Dan Zarrella" <[EMAIL PROTECTED]>
>Subject: RE: [PHP-WIN] Undefines constant
>Date: Mon, 18 Mar 2002 16:56:48 -0500
>
>There's alot of info... I saved it to a htm file on this adress:
>http://home.technotranceradio.net/phpinfo.htm
>
>/Leo
>
>-----Original Message-----
>From: Dan Zarrella [mailto:[EMAIL PROTECTED]]
>Sent: den 18 mars 2002 11:47
>To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
>Subject: RE: [PHP-WIN] Undefines constant
>
>
>create a file that says only this:
>
>//start
><?php
>phpinfo();
>?>
>//end
>
>then copy and paste the first section.
>
>
>
>
>_________________________________________________________________
>Join the world’s largest e-mail service with MSN Hotmail.
>http://www.hotmail.com
>




_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx

--- End Message ---
--- Begin Message ---
try making this change::(i think the error was being generated my the use of 
the cancatenation operator with and empty variable.



$myLine = " ";
while(!feof($myFile)) {
$myLine.=fgets($myFile,255);
}
fclose($myFile);




>From: "Leo Sten" <[EMAIL PROTECTED]>
>To: "Dan Zarrella" <[EMAIL PROTECTED]>
>Subject: RE: [PHP-WIN] Undefines constant
>Date: Mon, 18 Mar 2002 17:09:13 -0500
>
>oh... i forgot.
>this is the error message:
>
>"Warning: Undefined variable: myLine in E:\WWW\TechnoTrance Radio v5.0\on
>the net\PlayingNow.php on line 56"
>
>/Leo
>
>-----Original Message-----
>From: Dan Zarrella [mailto:[EMAIL PROTECTED]]
>Sent: den 18 mars 2002 11:55
>To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
>Subject: RE: [PHP-WIN] Undefines constant
>
>
>ok register globals is on, i can't see anything else of the top of my head,
>can you paste the line that php is giving and error and the error message 
>in
>one or two of the scripts so that i can see what is throwing the error.
>
>
> >From: "Leo Sten" <[EMAIL PROTECTED]>
> >To: "Dan Zarrella" <[EMAIL PROTECTED]>
> >Subject: RE: [PHP-WIN] Undefines constant
> >Date: Mon, 18 Mar 2002 16:56:48 -0500
> >
> >There's alot of info... I saved it to a htm file on this adress:
> >http://home.technotranceradio.net/phpinfo.htm
> >
> >/Leo
> >
> >-----Original Message-----
> >From: Dan Zarrella [mailto:[EMAIL PROTECTED]]
> >Sent: den 18 mars 2002 11:47
> >To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> >Subject: RE: [PHP-WIN] Undefines constant
> >
> >
> >create a file that says only this:
> >
> >//start
> ><?php
> >phpinfo();
> >?>
> >//end
> >
> >then copy and paste the first section.
> >
> >
> >
> >
> >_________________________________________________________________
> >Join the world’s largest e-mail service with MSN Hotmail.
> >http://www.hotmail.com
> >
>
>
>
>
>_________________________________________________________________
>MSN Photos is the easiest way to share and print your photos:
>http://photos.msn.com/support/worldwide.aspx
>
>
>--
>PHP Windows Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>




_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com

--- End Message ---
--- Begin Message ---
You should check your error logs after getting the server not found error.
There will frequently be PHP error messages stored in there that might help
discern the problem. You can also set "checkpoints" in your code that write
out "Passed this part, passed this part, etc" to a temporary debugging file
(whatever you want to call it), so you can determine where the script failed
if you don't get any help from the logfiles).

- Jonathan

-----Original Message-----
From: alain samoun [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 15, 2002 9:19 AM
To: George Pitcher; [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [PHP-DB] RE: [PHP-WIN] Stange 'page-loading' effect


You probably have an error in your code, difficult to help without at least
a snippet of it.
A+
Alain


-----Original Message-----
From: George Pitcher [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 15, 2002 4:14 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [PHP-WIN] Stange 'page-loading' effect


Hi all,

I have a part of my development site where the user hits a button, sending a
stream of values to a response page.

However, on testing, the response page comes up with 'server not found' but
when I refresh that error page, it loads the correct page but without any of
the transferred values.

Any ideas as to where it going wrong?

I'm using PHP-4.1.1, Apache (console) on Win 2000Pro.

Regards

George

George Pitcher is Technical Manager for the HERON Project
at Napier University, Edinburgh.




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


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
This doesn't seem to have gone through, so here it is again.
Shane

----- Original Message -----
From: "Shane Caraveo" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Sunday, March 17, 2002 9:01 PM
Subject: FastCGI ISAPI/NSAPI Update


> An update with several important fixes, and some good new features.
>
> Available at http://www.caraveo.com/fastcgi/
> Also available is the fastcgi executable for PHP 4.1.2.
>
> Changes:
>
> 03/17/2002
> * Special thanks to Jim Hurd for serveral fixes
>
> * fixed post handling
>
> * fixed socket connection error handling
>
> * fixed cleanup post temp files after request
>
> * fixed header support for setting redirects or http error status
>
> * implemented asynchronous read ahead of large post data (over 48K) in
IIS.
>  (read ahead exists for NSAPI also, just not asynchronous)
>
> * implemented security impersonation for IIS on NT based systems. This
> feature enables FastCGI servers to impersonate the security level of the
> calling client. In effect, requests run this way will have the security
> level of the authenticated IIS user (anonymous user by default). In
essence,
> it provides the same level of security that you would get running a cgi
> executable. To have your FastCGI applications support this feature, you
must
> currently link against the FastCGI library provided in the source
download.
> This feature is supported only for fastcgi servers executed by this
library
> (ie, using pipes).  The php fastcgi executable provided on this page
> supports this feature, you must set fastcgi.impersonate=1 in php.ini.
>
> * HTTP/1.1 Keep Alive support under IIS. The fastcgi server must send a
> content-length to have the fastcgi module signal IIS for keep alive.
>
>
> Regards,
> Shane Caraveo


--- End Message ---
--- Begin Message ---
Hi NG.

I just wanted to know if anyone could tell me how and where i can set
autocommit = 0 for my mysqld-max. I want this setting for all queries, how
and where do I do this?
Can I set it for the whole server so nothing happens with
(update,delete,insert) unless I use begin and commit?

Please help...

~ Sviss




--- End Message ---
--- Begin Message ---
Try to configure the PHP.INI file with a handy program like PHPconfig from
AnalogX http://www.analogx.com, you find it underneath - software - network
utilities-
most likely you have set extra .dll's enabled with which the PHP version on
your machine does not work.
I run Windows 98 1st edition and got it all to work!

C vd veen

"Belgarius" <[EMAIL PROTECTED]> schreef in bericht
000201c1cc88$b2a28b20$[EMAIL PROTECTED]">news:000201c1cc88$b2a28b20$[EMAIL PROTECTED]...
> Greetings...
>
>    I've encountered a problem that I've not been able to find a cure for,
> regardless of several pointers found in the archives.  Basically, if I
place
> php.ini into my Windows folder, it's parsed properly, or so I am assuming
> since the sendmail_from and SMTP values, as well as the path to the ini
> file, are correctly displayed using phpinfo.  The problem is, once the ini
> file is parsed, PHP basically stops working.
>    A bit of background.  I'm running 98SE (I know, bad choice, but
> unavoidable at present)
> with php 4.1.1, and using OmniHTTPd as my webserver.  Ironic that the docs
> mention Omni as the easiest of all setups for PHP.  PHP was installed by
> Omni on a prior release, being version 4.04pl1, or some such.  I've left
it
> as is, outside of making the needed settings to Omni to show it the exe
> location, and setting the mime types.  No problems.  Recently, I had
> occasion to look into the mail() functions, as a user informed me that he
> was having problems.  That's when I hit the roadblock, head on.
>    I have a single instance of php.ini on my system at any given time;
I've
> even gone so far as to rename those in the pear folders.  If I place this
> file into my Windows folder, phpinfo reveals my desired settings, which
are
> simply the suggested settings, with my SMTP and sendmail_from entries,
> however, visiting any of the user sites (subdomains, with user folders,
> etc.) that uses PHP returns pages of error texts, and cease working.
> Removing the file from the Windows folder restores things to as is.  As is
> consists of an upgrades install in the /php folder underneath the Omni
> installation.  There is no php.ini file in this folder, yet, under Omni,
PHP
> runs without it, on a set of seeming defaults.
>    I've also encountered similar problems with Apache.  It parses the
file,
> as long as it's told where to look for the ini file, with no problems.
> Phpinfo under it returns the desired settings, but, alas, the functions
are
> missing, and again the errors appear.
>    From what I've gathered, there aren't supposed to be any copies of
> php.ini outside of the one contained in the Windows folder.  In my case,
> placing the file there results in the desired settings being parsed (or
> indication thereof in showing desired as opposed to "default" when calling
> phpinfo)  If the file is present, it no longer works, outside of seeing my
> settings.  If the file isn't present, with Omni at least, PHP functions
seem
> to work within whatever default settings it come out of the box.  Omni is
> set to look for the executable in it's path, and mime types have been
added
> for php* extensions.  For whatever reason, once the ini file is parsed, it
> stops working.  Which makes me think...
>    There is no doubt some glaringly obvious setting in the ini file that I
> have overlooked, or have set incorrectly, but I'm dipped if I can find it.
> If this has any bearing, I'd be interested in knowing where to look
further
> into it.  My OS resides on the C drive, while the servers and associated
> go-withs reside on the E drive.  Any insights would be most gratefully
> accepted.
>
> [EMAIL PROTECTED]
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.338 / Virus Database: 189 - Release Date: 3/14/02
>


--- End Message ---
--- Begin Message ---
I just updated my php instalation to 4.1.2 (the one witht he forced
redirect enabled). The problem i have is since i upgraded it on the
weekend....it will not include files using either include or require, it
keeps telling me that it can;t open them and it shows for some strange
unknown reason to me that they werent in my "C:\php4\pear" directory
which A: I don;t got a directory called php4 and B: before I upgraded my
include and require files always loaded.

Can anyone PLEASE tell me how I can get it so my includes will include
from their directory instead of some phantom directory? Or still have
the binary for php 4.1.1 or 4.1.0 that they can send me 

Thanx
--- End Message ---

Reply via email to