php-windows Digest 9 Jan 2004 23:18:06 -0000 Issue 2075

Topics (messages 22530 through 22539):

Re: binary search in php
        22530 by: Stuart

Re: 500 internal PHP errors - custom error reporting
        22531 by: Cristian MARIN

php.ini & smtp (php 4.3.4)
        22532 by: Igor Pustylnick
        22533 by: Humberto Silva
        22534 by: Igor Pustylnick
        22535 by: Igor Pustylnick
        22537 by: hubo

Re: Problem with notices
        22536 by: user.domain.invalid

Session Variables Problem (Missing)
        22538 by: Brad Lawryk
        22539 by: hubo

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 --- Stuart wrote:
Idur wrote:
1. How to searching data in array using "binary search methode" and update the data when found it.
because the data, that i have to process is big, with more than 12000 lines.
2. How did i found tutorial about binary search in php.....???

A quick Google found this: http://www.mwc.edu/inte/cpsc/03/about.html

Or try this for a PHP example: http://www.rci.rutgers.edu/~jfulton/binary_search/


--
Stuart

--- End Message ---
--- Begin Message ---
Hello,

    You just have to add this line for each error number you want to overwrite into 
the httpd.conf (there are some commented ones coming with the default apache 
configuration)

    ErrorDocument 500 "The server made a boo boo." 

if you want to have a text displayed when this error appeared or:

    ErrorDocument 500 d:/www/internal_error.html

for serving a static page or 

    ErrorDocument 500 http://server_name/page_name.html

for serving an URL

Regards,
Cristian MARIN

-- 
-------------------------------------------------
Cristian MARIN - Developer
InterAKT Online (www.interakt.ro)
Tel:         +4021 312.53.12
Tel/Fax:  +4021 312.51.91
[EMAIL PROTECTED]
  "Jim Macdiarmid" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
  In ASP/IIS 5.0, there is a way to have a custom error page displayed
  that will show current environment variables, etc. Is there a way to do
  this with PHP/Apache 2?
   
  Thanks in advance,
  Jim
   

--- End Message ---
--- Begin Message ---
I'm trying to change values in php.ini corresponding to SMTP and
sendmail_to. whatever I change these values to doesn't seen to reflect in
phpinfo() and other programs.
Is it a bug or I need to look at something else as well?
Regards,
Igor

--- End Message ---
--- Begin Message ---
Restart apache ... 

-----Original Message-----
From: Igor Pustylnick [mailto:[EMAIL PROTECTED] 
Sent: sexta-feira, 9 de Janeiro de 2004 18:36
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] php.ini & smtp (php 4.3.4)


I'm trying to change values in php.ini corresponding to SMTP and
sendmail_to. whatever I change these values to doesn't seen to reflect
in
phpinfo() and other programs.
Is it a bug or I need to look at something else as well? Regards, Igor

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

--- End Message ---
--- Begin Message ---
restarted 3 times

"Humberto Silva" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Restart apache ...

-----Original Message-----
From: Igor Pustylnick [mailto:[EMAIL PROTECTED]
Sent: sexta-feira, 9 de Janeiro de 2004 18:36
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] php.ini & smtp (php 4.3.4)


I'm trying to change values in php.ini corresponding to SMTP and
sendmail_to. whatever I change these values to doesn't seen to reflect
in
phpinfo() and other programs.
Is it a bug or I need to look at something else as well? Regards, Igor

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

--- End Message ---
--- Begin Message ---
restarted 3 times. Nothing changes

"Humberto Silva" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Restart apache ...

-----Original Message-----
From: Igor Pustylnick [mailto:[EMAIL PROTECTED]
Sent: sexta-feira, 9 de Janeiro de 2004 18:36
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] php.ini & smtp (php 4.3.4)


I'm trying to change values in php.ini corresponding to SMTP and
sendmail_to. whatever I change these values to doesn't seen to reflect
in
phpinfo() and other programs.
Is it a bug or I need to look at something else as well? Regards, Igor

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

--- End Message ---
--- Begin Message ---
Do you really mean "sendmail_to" and not "sendmail_from"?
Does it make sense to set a global "sendmail_to" in your php.ini?



"Igor Pustylnick" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
> I'm trying to change values in php.ini corresponding to SMTP and
> sendmail_to. whatever I change these values to doesn't seen to reflect in
> phpinfo() and other programs.
> Is it a bug or I need to look at something else as well?
> Regards,
> Igor
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--- End Message ---
--- Begin Message --- Choinet wrote:
I just tested notice generation on PHP-GTK 1.0.0 on
Windows by using an undefined variable.


$var = fopen($_GET['test'], 'r');

I have error_reporting set to

error_reporting = E_ALL & ~E_NOTICE

 in php.ini, and any notices are suppressed in my
custom error log set in php.ini unless I specify
error_reporting(E_ALL); earlier in the script. As far
as I know, the default PHP-GTK configuration works
fine, so I would look towards the script itself.

Do you recall what changes have occurred when the
notices were initially being written to the error log?
Do you have any error tracking functions/classes in
your application that may be sending notices to the
log?

Also, do you run this script via command line?


Sorry for the delay on this response. We've been socked in with an ice storm and no power for a few days.


I think I can track the problem back to an attempt to run the new PHP-Gtk release (1.0.0), which is listed on the site. Everything ran okay, but that's when we started seeing the problem with the error file.
We decided that the new release wasn't buying us anything we needed, so we backed it all out and returned to the 0.5.2 version. None of the files from the 1.0.0 are there, but the notice problem is.


We run the app from a bat file, using the PHP/Gtk wrapper. The command is as follows:

cd c:\PM\php4
    php_gtk.exe "c:\PM\PracticePlus\PMMain.php"

Everything works just fine, except for the notices. The PMMain.php is a simplistic API, with just a few lines: the dll check, some globals, some includes and a call to the main logon screen. The very first notice occurs with the logon screen, when we do a check on a variable that may or may not exist.

thanks,
Madeleine D.

--- End Message ---
--- Begin Message ---
I am new to PHP moving over from ASP and one of things I relied on heavily
was session variables. It seems that everytime a new page is opened it
starts a new session.

I have set up a simple test site you can see whats happening - easier than
to explain.

http://www.cflsquad.com/index.php

Use
Username: testuser
Password: testpassword

the next page after log in should read "You are logged in as: testuser".
What tells me is that the session variable is resetting to a new on each
page is that the 'testuder' text doesn't show becuase the session var is
being read. These exact same pages work fine oon a Linux server so I know
its a Windows Server issue. The odd thing is that the session ID is passed
and saved but the session variable that is created on log in is not passed.
Again, it woks just fine on a Linux server - just not Windows.

I have changed the path in the php.ini file as many have suggested fixes the
problem but it hasn't made a difference for me.

Thanks

--
Brad Lawryk
Williams Lake TimberWolves
www.wltimberwolves.com

--- End Message ---
--- Begin Message ---
To be sure that there is no coding error, just try this simple code:
'============ Begin ==============
<?
session_start();
if (isset($_SESSION["test"])){
 echo $_SESSION["test"];
}
else {
 echo "new session";
 $_SESSION["test"]="session variable saved";
}
?>
'============== End ==============
I have got no problem about the session variables on my W2K system with both
IIS and Apache installed.

By the way, since the php.ini is the same both for IIS and Apache, both
servers share the same session (and the session variables).

"Brad Lawryk" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
> I am new to PHP moving over from ASP and one of things I relied on heavily
> was session variables. It seems that everytime a new page is opened it
> starts a new session.
>
> I have set up a simple test site you can see whats happening - easier than
> to explain.
>
> http://www.cflsquad.com/index.php
>
> Use
> Username: testuser
> Password: testpassword
>
> the next page after log in should read "You are logged in as: testuser".
> What tells me is that the session variable is resetting to a new on each
> page is that the 'testuder' text doesn't show becuase the session var is
> being read. These exact same pages work fine oon a Linux server so I know
> its a Windows Server issue. The odd thing is that the session ID is passed
> and saved but the session variable that is created on log in is not
passed.
> Again, it woks just fine on a Linux server - just not Windows.
>
> I have changed the path in the php.ini file as many have suggested fixes
the
> problem but it hasn't made a difference for me.
>
> Thanks
>
> --
> Brad Lawryk
> Williams Lake TimberWolves
> www.wltimberwolves.com
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--- End Message ---

Reply via email to