php-windows Digest 4 Aug 2003 00:10:18 -0000 Issue 1852

Topics (messages 20995 through 21006):

Re: Apache or IIS
        20995 by: Miha Nedok

apache/php
        20996 by: Jon Phipps
        20999 by: Jon Phipps

Notice: Undefined variable: link in
        20997 by: David Adade
        20998 by: Mikey
        21000 by: DvDmanDT
        21002 by: David Adade
        21003 by: Comex
        21004 by: David Adade
        21005 by: DvDmanDT

how can I get errors to display in a browser?
        21001 by: jsWalter
        21006 by: Sek-Mun Wong

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 ---
Hi !

On Sat, 2 Aug 2003, The.Rock wrote:

> Date: Sat, 2 Aug 2003 13:50:32 -0500
> From: The.Rock <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Re: Apache or IIS
>
> I wouldn't call myself a guru with IIS, but I happen to know a lot about it.
> In my experience with IIS and PHP, the bigger the script the more IIS seems
> to sag. Apache runs better and is more stable I think than IIS. The thing
> about editing a conf file for the configuration is no big deal. If your
> setting this up, its not so much different that you couldn't learn it in a
> short amount of time. Plus there are a few GUI front ends for editing the
> conf file in windows.

Config files are better, you can exactly lookup what you have done ( dont'
have to remember which checkboxes and bla bla bla...). And it's better for
migration on other servers.

But I have to say that I found IIS and PHP very stable on our servers.

>
> The other thing is, I seem to have less problems on Apache than IIS. The
> isapi dll for php in IIS isn't very stable and often time craps out for no
> reasons. Apache may have some issues, but they will be far less than what
> you'll experience in IIS.
>

Apache is really more rock-solid when it comes to performance.

> I'm a windows person, but recently started learning Redhat. You'll find a
> big performance difference if you can run php on a Linux OS. I've got
> several scripts that I have a time function that measures how fast the page
> is created. Its pretty much a night and day difference as far as performance
> is concerned.
>
> Just my 2 cents...
>
>
> "William Harrison" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > Hi,
> >
> > We are planning to use PHP on windows 2000 but which is the better web
> > server to use under this these circumstances IIS or Apache?
> >
> > Thanks
> >
> > Will
> >
> >
> >
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

--- End Message ---
--- Begin Message --- what is the trick to getting apache2 to exec php scripts properly I have managed to get beyond the 500 sever error now they just time out. I want to use php.exe as a cgi, this is on a windows 2k server platform.

I am fairly new to apache so please be as detailed as you think is needed

any help would be appreciated
Jon


--- End Message ---
--- Begin Message --- hmmm talking to myself, have the it figured out. Decided to load as a module instead

Jon Phipps wrote:
what is the trick to getting apache2 to exec php scripts properly I have managed to get beyond the 500 sever error now they just time out. I want to use php.exe as a cgi, this is on a windows 2k server platform.

I am fairly new to apache so please be as detailed as you think is needed

any help would be appreciated
Jon



--- End Message ---
--- Begin Message ---
Hi
I am migrating scripts that are currently working on a linux box to a
windows 2000 box. I get the following errors when I try
to access the scripts

Notice: Undefined variable: link in
D:\inetpub\www.dcomms.net\cgi-bin\adsl\admin\main.php on line 2

Notice: Use of undefined constant main - assumed 'main' in
D:\inetpub\www.dcomms.net\cgi-bin\adsl\admin\AdminMain.php on line 7

Notice: Use of undefined constant middle - assumed 'middle' in
D:\inetpub\www.dcomms.net\cgi-bin\adsl\admin\AdminMain.php on line 8


I have searched the mailing list to no avail can any one help

I am running version 4.31

Thanks in advance




--- End Message ---
--- Begin Message ---
Some code would be good...

> -----Original Message-----
> From: David Adade [mailto:[EMAIL PROTECTED]
> Sent: 03 August 2003 18:16
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Notice: Undefined variable: link in 
> 
> 
> Hi
> I am migrating scripts that are currently working on a linux box to a
> windows 2000 box. I get the following errors when I try
> to access the scripts
> 
> Notice: Undefined variable: link in
> D:\inetpub\www.dcomms.net\cgi-bin\adsl\admin\main.php on line 2
> 
> Notice: Use of undefined constant main - assumed 'main' in
> D:\inetpub\www.dcomms.net\cgi-bin\adsl\admin\AdminMain.php on line 7
> 
> Notice: Use of undefined constant middle - assumed 'middle' in
> D:\inetpub\www.dcomms.net\cgi-bin\adsl\admin\AdminMain.php on line 8
> 
> 
> I have searched the mailing list to no avail can any one help
> 
> I am running version 4.31
> 
> Thanks in advance
> 
> 
> 
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

--- End Message ---
--- Begin Message ---
1. I assume you are using 4.3.1, not 4.31... Not that it really matters
though...
2. It's in your PHP.ini, I think you are used to have error_reporting =
E_ALL & ~E_NOTICE, but you have E_ALL only... This displays Notices...

-- 
// DvDmanDT
MSN: [EMAIL PROTECTED]
Mail: [EMAIL PROTECTED]
"David Adade" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
> Hi
> I am migrating scripts that are currently working on a linux box to a
> windows 2000 box. I get the following errors when I try
> to access the scripts
>
> Notice: Undefined variable: link in
> D:\inetpub\www.dcomms.net\cgi-bin\adsl\admin\main.php on line 2
>
> Notice: Use of undefined constant main - assumed 'main' in
> D:\inetpub\www.dcomms.net\cgi-bin\adsl\admin\AdminMain.php on line 7
>
> Notice: Use of undefined constant middle - assumed 'middle' in
> D:\inetpub\www.dcomms.net\cgi-bin\adsl\admin\AdminMain.php on line 8
>
>
> I have searched the mailing list to no avail can any one help
>
> I am running version 4.31
>
> Thanks in advance
>
>
>



--- End Message ---
--- Begin Message ---
Here goes the code an I am using version 4.3.1

index.html
<?
include("header.php"); // ccs, js, title, meta tags, etc

include("body.php"); // left, right columns, main center content, etc

include("footer.php"); // copyrights, privacy, legal, etc

?>



header.php
<html>

<head>

<link rel="STYLESHEET" type="text/css" href="css/styles.css">

</head>

<title>Dcomms

</title>

<body>


body.php
<?
//MAIN CONTENT INSERTION
include("main.php");
?>


footer.php
 </body>

</html>

main.php
<?
switch($link)
{
 case null: include("AdminMain.php"); break;
case 1000: include("AdminMain.php"); break;
case 1001: include("View.php"); break;
default: include("AdminMain.php");
}
?>

AdminMain.php
<?
include("../lib/mylib.php");
include("../lib/class.FastTemplate.php4");
$tpl = new FastTemplate("templates/");
$tpl->define( array( main   => "main.html",
                     middle => "AdminScreen.html",
                     dropdownrows => "dropdownrows.html",
                     rows  => "PackageRows.html",
                     AddPackageScreen  => "AddPackageScreen.html",
                     ack => "acknowledgement.html"));
$state=$HTTP_GET_VARS['state'];
if(empty($state))  {
$state=$HTTP_POST_VARS['state'];
}
$package_type=$HTTP_GET_VARS['package_type'];
if(empty($package_type))  {
$package_type="1";
}
*******************************


Hope this helps

Regards








"Mikey" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Some code would be good...
>
> > -----Original Message-----
> > From: David Adade [mailto:[EMAIL PROTECTED]
> > Sent: 03 August 2003 18:16
> > To: [EMAIL PROTECTED]
> > Subject: [PHP-WIN] Notice: Undefined variable: link in
> >
> >
> > Hi
> > I am migrating scripts that are currently working on a linux box to a
> > windows 2000 box. I get the following errors when I try
> > to access the scripts
> >
> > Notice: Undefined variable: link in
> > D:\inetpub\www.dcomms.net\cgi-bin\adsl\admin\main.php on line 2
> >
> > Notice: Use of undefined constant main - assumed 'main' in
> > D:\inetpub\www.dcomms.net\cgi-bin\adsl\admin\AdminMain.php on line 7
> >
> > Notice: Use of undefined constant middle - assumed 'middle' in
> > D:\inetpub\www.dcomms.net\cgi-bin\adsl\admin\AdminMain.php on line 8
> >
> >
> > I have searched the mailing list to no avail can any one help
> >
> > I am running version 4.31
> >
> > Thanks in advance
> >
> >
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >



--- End Message ---
--- Begin Message ---
register_globals? just an idea



--- End Message ---
--- Begin Message ---
Thanks
The cured the problem. It is now working.


"Dvdmandt" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> 1. I assume you are using 4.3.1, not 4.31... Not that it really matters
> though...
> 2. It's in your PHP.ini, I think you are used to have error_reporting =
> E_ALL & ~E_NOTICE, but you have E_ALL only... This displays Notices...
>
> --
> // DvDmanDT
> MSN: [EMAIL PROTECTED]
> Mail: [EMAIL PROTECTED]
> "David Adade" <[EMAIL PROTECTED]> skrev i meddelandet
> news:[EMAIL PROTECTED]
> > Hi
> > I am migrating scripts that are currently working on a linux box to a
> > windows 2000 box. I get the following errors when I try
> > to access the scripts
> >
> > Notice: Undefined variable: link in
> > D:\inetpub\www.dcomms.net\cgi-bin\adsl\admin\main.php on line 2
> >
> > Notice: Use of undefined constant main - assumed 'main' in
> > D:\inetpub\www.dcomms.net\cgi-bin\adsl\admin\AdminMain.php on line 7
> >
> > Notice: Use of undefined constant middle - assumed 'middle' in
> > D:\inetpub\www.dcomms.net\cgi-bin\adsl\admin\AdminMain.php on line 8
> >
> >
> > I have searched the mailing list to no avail can any one help
> >
> > I am running version 4.31
> >
> > Thanks in advance
> >
> >
> >
>
>



--- End Message ---
--- Begin Message ---
It's not really fixed, more like hidden..

-- 
// DvDmanDT
MSN: [EMAIL PROTECTED]
Mail: [EMAIL PROTECTED]
"David Adade" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
> Thanks
> The cured the problem. It is now working.
>
>
> "Dvdmandt" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > 1. I assume you are using 4.3.1, not 4.31... Not that it really matters
> > though...
> > 2. It's in your PHP.ini, I think you are used to have error_reporting =
> > E_ALL & ~E_NOTICE, but you have E_ALL only... This displays Notices...
> >
> > --
> > // DvDmanDT
> > MSN: [EMAIL PROTECTED]
> > Mail: [EMAIL PROTECTED]
> > "David Adade" <[EMAIL PROTECTED]> skrev i meddelandet
> > news:[EMAIL PROTECTED]
> > > Hi
> > > I am migrating scripts that are currently working on a linux box to a
> > > windows 2000 box. I get the following errors when I try
> > > to access the scripts
> > >
> > > Notice: Undefined variable: link in
> > > D:\inetpub\www.dcomms.net\cgi-bin\adsl\admin\main.php on line 2
> > >
> > > Notice: Use of undefined constant main - assumed 'main' in
> > > D:\inetpub\www.dcomms.net\cgi-bin\adsl\admin\AdminMain.php on line 7
> > >
> > > Notice: Use of undefined constant middle - assumed 'middle' in
> > > D:\inetpub\www.dcomms.net\cgi-bin\adsl\admin\AdminMain.php on line 8
> > >
> > >
> > > I have searched the mailing list to no avail can any one help
> > >
> > > I am running version 4.31
> > >
> > > Thanks in advance
> > >
> > >
> > >
> >
> >
>
>



--- End Message ---
--- Begin Message ---
I have a test script, with deliberate errors.

The broswer shows nothing, blank, empty.

It used to show errors, now it does not.

No idea what I did to turn it off.

Can someone tell me hoew to turn it back on?

In my php.ini file, it says...

     error_reporting  =  E_ALL

I thought that was what it needed.

I guess not.

Thanks

walter



--- End Message ---
--- Begin Message ---
you want

display_errors = On

Also, E_ALL is probably a little too verbose, you'll find. :-)

"Jswalter" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I have a test script, with deliberate errors.
>
> The broswer shows nothing, blank, empty.
>
> It used to show errors, now it does not.
>
> No idea what I did to turn it off.
>
> Can someone tell me hoew to turn it back on?
>
> In my php.ini file, it says...
>
>      error_reporting  =  E_ALL
>
> I thought that was what it needed.
>
> I guess not.
>
> Thanks
>
> walter
>
>


--- End Message ---

Reply via email to