php-windows Digest 6 Dec 2002 11:14:05 -0000 Issue 1473

Topics (messages 17304 through 17311):

Re: Fast Web server
        17304 by: Juan Rosero

IIS fails on require_once
        17305 by: Richard Creech
        17306 by: Christoph Grottolo

Event Viewer Entries
        17307 by: DL Neil
        17308 by: Dash McElroy

hello there.
        17309 by: christopher calicott

mystery line
        17310 by: jpirtle

Re: auto increment
        17311 by: Pat Johnston

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 ---
Radovan,
You won't regret it. Apache 2 is recommended for Windows 2000/NT/XP
environments.

Regards,

geo


"Radovan Radic" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Thanks for the info guys
> I think i will try Apache, i have been using it on Win98, i dont know how
it
> will be on 2000.
>
> Radovan
>
> "Radovan Radic" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Hi
> >
> > Can you tell me your experiences about web servers.
> > I need fast web server which runs on Win2000,  compatible with PHP (i
mean
> > that php works without problems) and is not IIS
> >
> > Thx
> > Radovan
> >
> >
>
>


--- End Message ---
--- Begin Message ---
Hello List,
This line is failing in our script:


require_once("util.php");


Instead of being parsed the text in the file is simply displayed without parsing. 
Other php functions do work. The immediate problem is the requiring of a file is 
simply not being parsed. We are using PHP Version 4.2.3 CGI on IIS and the phpinfo() 
is here:


http://68.16.76.41/powerplatinum/test.php


We've read the manual, searched the archives, made changes to php.ini and still our 
new installation is not working :( 


Any suggestions?


Regards,

Richard Creech,

[EMAIL PROTECTED]
Phone 250.744.3350 Pacific Time
Easily create your own yellow pages
http://phpyellow.com


--- End Message ---
--- Begin Message ---
Hi Richard

Richard Creech wrote:
> Hello List,
> This line is failing in our script:
>
>
> require_once("util.php");
>
>
> Instead of being parsed the text in the file is simply displayed
> without parsing.

Did you put the contents of util.php in <?php ?> tags?

Christoph


--- End Message ---
--- Begin Message ---
PHP v4.2.3 with Apache 1.3.24 under Win2000 Prof SP2
Logging PHP errors: PHP.INI> log_errors = On

Errors are duly logged to Win2000 Application Log as:
The description for Event ID ( 2000 ) in Source ( c-client ) cannot be
found. The local computer may not have the necessary registry information or
message DLL files to display messages from a remote computer. The following
information is part of the event: c-client[908], PHP Parse error: parse
error, unexpected T_ECHO, expecting ',' or ';' in c:\documents and
settings\administrator\my documents\webwork\code\sandpit\demo.php on line 4.

The content (reporting deliberate omitted ";") beginning PHP Parse error: is
what is expected/required.

Preceding content about lost registry/DLL is inappropriate.

Archive (http://marc.theaimsgroup.com/?l=php-windows&m=101283342604163&w=2)
shows error is known 4Feb2002.

However bug report (http://bugs.php.net/bug.php?id=8314) has status of
"bogus" - possibly because yohgaki asked for further information and none
was forthcoming (according to bug log).

Would some other Win users please attempt to replicate fault and advise
success/otherwise (and version info) with a view to re-opening the case?

Please advise,
=dn

--- End Message ---
--- Begin Message ---
Confirmed on Windows 2000 SP2 Apache 2.0.43 PHP 4.3.0 RC2.

-Dash

Event Type:     Information
Event Source:   c-client
Event Category: (6)
Event ID:       2000
Date:           12/5/2002
Time:           2:12:21 PM
User:           N/A
Computer:       DASH
Description:
The description for Event ID ( 2000 ) in Source ( c-client ) cannot be
found. The local computer may not have the necessary registry information or
message DLL files to display messages from a remote computer. The following
information is part of the event: c-client[1864], PHP Notice:  Undefined
offset:  6 in C:\Program Files\Apache Group\Apache2\htdocs\expense.php on
line 373.

-----Original Message-----
From: DL Neil [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, December 05, 2002 2:08 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Event Viewer Entries


PHP v4.2.3 with Apache 1.3.24 under Win2000 Prof SP2
Logging PHP errors: PHP.INI> log_errors = On

Errors are duly logged to Win2000 Application Log as:
The description for Event ID ( 2000 ) in Source ( c-client ) cannot be
found. The local computer may not have the necessary registry information or
message DLL files to display messages from a remote computer. The following
information is part of the event: c-client[908], PHP Parse error: parse
error, unexpected T_ECHO, expecting ',' or ';' in c:\documents and
settings\administrator\my documents\webwork\code\sandpit\demo.php on line 4.

The content (reporting deliberate omitted ";") beginning PHP Parse error: is
what is expected/required.

Preceding content about lost registry/DLL is inappropriate.

Archive (http://marc.theaimsgroup.com/?l=php-windows&m=101283342604163&w=2)
shows error is known 4Feb2002.

However bug report (http://bugs.php.net/bug.php?id=8314) has status of
"bogus" - possibly because yohgaki asked for further information and none
was forthcoming (according to bug log).

Would some other Win users please attempt to replicate fault and advise
success/otherwise (and version info) with a view to re-opening the case?

Please advise,
=dn


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
I have a script in a website that I was working on about a year ago.. it was
working when I left off.  I had a hard drive crash and then subsequently got
REALLY sidetracked and I am just getting back around to finishing the design
of the site and adding new content so I can publish it.

The thing is, when I reinstalled the latest Apache and PHP the other day...
the script is suddenly not working.  Apparently something has changed
between the older and the newer versions that's killed the script.

It is a really simple one.  It looks in a directory where there are images
all of the same size, grabs one at random and sticks it in a table in my
html document.  this just gives the appearance of a little dynamics to the
website. Like I said, it was working great before, but now - nada.

(btw I am on Windows 2000 here)

here are the errors I am getting:

Warning: OpenDir: Invalid argument (errno 22) in
c:\wwwroot\includes\menu_bar.php on line 5

Fatal error: Call to a member function on a non-object in
c:\wwwroot\includes\menu_bar.php on line 6


below is the script and the image line that places the image in the
document:

<?

  $strRealPath = "$DOCUMENT_ROOT/images/random_gen/";
//$DOCUMENT_ROOT.dirname($SCRIPT_NAME)."/";

  $handle = dir($strRealPath);
  while ($strFilename = $handle->read()) {
        if ( ($strFilename != ".") && ($strFilename != "..") ) {
                $aryFileNames[] = $strFilename;
        }
  }

  $strPicFile = $aryFileNames[Rand(0,count($aryFileNames)-1)];

?>

<IMG SRC="/images/random_gen/<?=$strPicFile?>" BORDER=0 alt=""><br>



Does anyone have any ideas what might be the problem?

-=- christopher

--- End Message ---
--- Begin Message ---
Thanks for all your help.  You were all right.  I had a missing } at the
bottom of the script.  I'll count them closer next time.  Thanks again.

God bless us everyone.


--- End Message ---
--- Begin Message ---
Thanks to all who replied to my problem. Much appreciated...

Pat J.


"Cam Dunstan" <[EMAIL PROTECTED]> wrote in message
004001c29c63$23c7fec0$7866a8c0@camhome">news:004001c29c63$23c7fec0$7866a8c0@camhome...
> another gotcha with auto increment fields - you can`t combine contents of
> two tables, each with their own auto incrementing fields which dis-allow
> duplicates - oughta be a law against them.
>
> do a query for the largest (max() function ) in an integer field, add one
> and then INSERT new value.  store the short varchar "rur" in another
field.
> Concat them when presenting to the user.  Split them when the user posts a
> request.   See also str_pad function
>
>
>
>
> ----- Original Message -----
> From: "Ignatius Reilly" <[EMAIL PROTECTED]>
> To: "Win32 list PHP" <[EMAIL PROTECTED]>; "Pat Johnston"
> <[EMAIL PROTECTED]>
> Sent: Thursday, December 05, 2002 11:12 PM
> Subject: Re: [PHP-WIN] auto increment
>
>
> > You can not do it straightforwardly. The required data type does not
exist
> > in MySQL. An auto_increment field is of type INTEGER.
> >
> > Ignatius
> > ____________________________________________
> > ----- Original Message -----
> > From: "Pat Johnston" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, December 05, 2002 12:35 PM
> > Subject: [PHP-WIN] auto increment
> >
> >
> > > Hi
> > > With php, just wondering if anyone knows if I can auto increment a
> number
> > > that has a part string? Is it possible to code this for an ID in MySQL
> > > database?
> > >
> > > ie
> > > rur01
> > > rur02
> > > rur03
> > >
> > >
> > >
> > > --
> > > PHP Windows Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> > >
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>


--- End Message ---

Reply via email to