php-windows Digest 22 Sep 2003 14:49:15 -0000 Issue 1922

Topics (messages 21476 through 21490):

Re: Automatic load .php page
        21476 by: Mike Brum
        21477 by: John Ellingsworth

Auto load data
        21478 by: ascll

Re: generate img with fonts...
        21479 by: toby z

MySQL question
        21480 by: Disko_kex
        21481 by: Sek-Mun Wong
        21482 by: Ignatius Reilly

PHP randomly is not parsing a valid script
        21483 by: Francesco
        21484 by: Francesco
        21485 by: Svensson, B.A.T. (HKG)
        21486 by: Francesco
        21487 by: Mike Brum
        21488 by: Svensson, B.A.T. (HKG)

R: [PHP-WIN] PHP randomly is not parsing a valid script
        21489 by: Francesco.Marsan.bmg.com
        21490 by: Svensson, B.A.T. (HKG)

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 ---
That depends on you actual code.

There's the header(location: http://url.to.page/); command that you could
use, but if you're already starting a session, I believe that you can't use
the header() command since the session already sends the header.

Though you could always include(); the member_area.php page at the point
that you print "Please click here..." or simply hard-code the
member_area.php code there as well.

There's a ton of different options, but without knowing your code, we have
no way of knowing the best one for the situation.

-M

-----Original Message-----
From: ascll [mailto:[EMAIL PROTECTED] 
Sent: Sunday, September 21, 2003 10:38 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Automatic load .php page


Greetings,

Instead of using:

<p>Please click here to go to <a href = "member_area.php">member
area</a>.</p>

in my login.php page to go to "member_area.php" once the user was
authenticated, could I just make this AUTO?

Thanks in advance.

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

--- End Message ---
--- Begin Message ---
You could just add this to the authentication page:

<HEAD>
<META HTTP-EQUIV=Refresh CONTENT="2; URL=member_area.php">
</HEAD>
<B>Logging you in, hang tight!</b>

You could just set the time to zero and it will auto send to the next page,
and leave out the text.

Thanks,

John Ellingsworth
http://mail.med.upenn.edu/~jellings/




-----Original Message-----
From: ascll [mailto:[EMAIL PROTECTED]
Sent: Sunday, September 21, 2003 10:38 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Automatic load .php page


Greetings,

Instead of using:

<p>Please click here to go to <a href = "member_area.php">member
area</a>.</p>

in my login.php page to go to "member_area.php" once the user was
authenticated, could I just make this AUTO?

Thanks in advance.

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

--- End Message ---
--- Begin Message ---
Greetings,

I'm designing a table with 21 columns and 3 rows (1-row column header, 2-row
data) store in .php file, and each cell of this table storing a value, that
I stored it using MySQL database. Now, I want all the values (just the
values, but NOT the table) shown on this page automatic update every
1-second.

So, I use "create_table.php" to create the table and automatic load
"get_data.php" every 1-second to retrieve data from database. Once the
"get_data.php" loaded, my IE only show those data and the table disappeared.

Please help. Thanks in advance.


========== start create_table.php ============

<html>
<head>
<title>Member Area</title>
<META HTTP-EQUIV=Refresh CONTENT="5; URL=get_data.php">
</head>
<body>
<center>

<table bgcolor="#EEEEEE" border="0" width="95%"><tr><td>
    <table bgcolor="#B6C7E5" border="0" width="100%"><tr><td>
      <table bgcolor="#FFFFFF" border="0" width="100%"><tr><td>

        <table border=0 bgcolor="#F7F7FF" width="100%">
          <tr><th colspan=21><font size=+1>RACING RESULT</font></td></tr>
          <tr bgcolor="#FFFFFF"><th colspan=21></tr>

          <tr>
          <td width="20%">1st row</td><td width="4%">1</td><td
width="4%">2</td><td width="4%">3</td><td width="4%">4</td>
          <td width="4%">5</td><td width="4%">6</td><td width="4%">7</td><td
width="4%">8</td><td width="4%">9</td>
          <td width="4%">10</td><td width="4%">11</td><td
width="4%">12</td><td width="4%">13</td><td width="4%">14</td>
          <td width="4%">15</td><td width="4%">16</td><td
width="4%">17</td><td width="4%">18</td><td width="4%">19</td><td
width="4%">20</td>
          </tr>

          <tr>
          <td width="20%">2nd row</td><td width="4%">' . $myWin1 . '</td><td
width="4%">' . $myWin2 . '</td><td width="4%">' . $myWin3 . '</td>
          <td width="4%">' . $myWin4 . '</td><td width="4%">' . $myWin5 .
'</td><td width="4%">' . $myWin6 . '</td><td width="4%">' . $myWin7 . '</td>
          <td width="4%">' . $myWin8 . '</td><td width="4%">' . $myWin9 .
'</td><td width="4%">' . $myWin10 . '</td><td width="4%">' . $myWin11 .
'</td>
          <td width="4%">' . $myWin12 . '</td><td width="4%">' . $myWin13 .
'</td><td width="4%">' . $myWin14 . '</td><td width="4%">' . $myWin15 .
'</td>
          <td width="4%">' . $myWin16 . '</td><td width="4%">' . $myWin17 .
'</td><td width="4%">' . $myWin18 . '</td><td width="4%">' . $myWin19 .
'</td>
          <td width="4%">' . $myWin20 . '</td>
          </tr>

          <tr>
          <td width="20%">3rd row</td><td width="4%">' . $myPlace1 .
'</td><td width="4%">' . $myPlace2 . '</td><td width="4%">' . $myPlace3 .
'</td>
          <td width="4%">' . $myPlace4 . '</td><td width="4%">' . $myPlace5
. '</td><td width="4%">' . $myPlace6 . '</td><td width="4%">' . $myPlace7 .
'</td>
          <td width="4%">' . $myPlace8 . '</td><td width="4%">' . $myPlace9
. '</td><td width="4%">' . $myPlace10 . '</td><td width="4%">' . $myPlace11
. '</td>
          <td width="4%">' . $myPlace12 . '</td><td width="4%">' .
$myPlace13 . '</td><td width="4%">' . $myPlace14 . '</td><td width="4%">' .
$myPlace15 . '</td>
          <td width="4%">' . $myPlace16 . '</td><td width="4%">' .
$myPlace17 . '</td><td width="4%">' . $myPlace18 . '</td><td width="4%">' .
$myPlace19 . '</td>
          <td width="4%">' . $myPlace20 . '</td>
          </tr>

        </table>
      </td></tr></table>
    </td></tr></table>
    </td></tr></table>
</center>
</body>
</html>

========== end create_table.php ============


========== start get_data.php ============

<?php
$result = @mysql_query('SELECT `myWin1`, `myWin2`, `myWin3`, `myWin4`,
`myWin5`, `myWin6`, `myWin7`, `myWin8`, `myWin9`, `myWin10`, `myWin11`,
`myWin12`, `myWin13`, `myWin14`, `myWin15`, `myWin16`, `myWin17`, `myWin18`,
`myWin19`, `myWin20`, `myPlace1`, `myPlace2`, `myPlace3`, `myPlace4`,
`myPlace5`, `myPlace6`, `myPlace7`, `myPlace8`, `myPlace9`, `myPlace10`,
`myPlace11`, `myPlace12`, `myPlace13`, `myPlace14`, `myPlace15`,
`myPlace16`, `myPlace17`, `myPlace18`, `myPlace19`, `myPlace20` FROM
Testing');
if (!$result) {
die('<p>Error performing query: ' . mysql_error() . '</p>');
}


while ( $row = mysql_fetch_array($result) )
{
  $myWin1 = $row['0'];
  $myWin2 = $row['1'];
  $myWin3 = $row['2'];
  $myWin4 = $row['3'];
  $myWin5 = $row['4'];
  $myWin6 = $row['5'];
  $myWin7 = $row['6'];
  $myWin8 = $row['7'];
  $myWin9 = $row['8'];
  $myWin10 = $row['9'];
  $myWin11 = $row['10'];
  $myWin12 = $row['11'];
  $myWin13 = $row['12'];
  $myWin14 = $row['13'];
  $myWin15 = $row['14'];
  $myWin16 = $row['15'];
  $myWin17 = $row['16'];
  $myWin18 = $row['17'];
  $myWin19 = $row['18'];
  $myWin20 = $row['19'];
  $myPlace1 = $row['20'];
  $myPlace2 = $row['21'];
  $myPlace3 = $row['22'];
  $myPlace4 = $row['23'];
  $myPlace5 = $row['24'];
  $myPlace6 = $row['25'];
  $myPlace7 = $row['26'];
  $myPlace8 = $row['27'];
  $myPlace9 = $row['28'];
  $myPlace10 = $row['29'];
  $myPlace11 = $row['30'];
  $myPlace12 = $row['31'];
  $myPlace13 = $row['32'];
  $myPlace14 = $row['33'];
  $myPlace15 = $row['34'];
  $myPlace16 = $row['35'];
  $myPlace17 = $row['36'];
  $myPlace18 = $row['37'];
  $myPlace19 = $row['38'];
  $myPlace20 = $row['39'];


echo('<tr><td width="20%">2nd row</td><td width="4%">' . $myWin1 . '</td><td
width="4%">' . $myWin2 . '</td><td width="4%">' . $myWin3 . '</td>
<td width="4%">' . $myWin4 . '</td><td width="4%">' . $myWin5 . '</td><td
width="4%">' . $myWin6 . '</td><td width="4%">' . $myWin7 . '</td>
<td width="4%">' . $myWin8 . '</td><td width="4%">' . $myWin9 . '</td><td
width="4%">' . $myWin10 . '</td><td width="4%">' . $myWin11 . '</td>
<td width="4%">' . $myWin12 . '</td><td width="4%">' . $myWin13 . '</td><td
width="4%">' . $myWin14 . '</td><td width="4%">' . $myWin15 . '</td>
<td width="4%">' . $myWin16 . '</td><td width="4%">' . $myWin17 . '</td><td
width="4%">' . $myWin18 . '</td><td width="4%">' . $myWin19 . '</td>
<td width="4%">' . $myWin20 . '</td></tr>');



echo('<tr><td width="20%">3rd row</td><td width="4%">' . $myPlace1 .
'</td><td width="4%">' . $myPlace2 . '</td><td width="4%">' . $myPlace3 .
'</td>
<td width="4%">' . $myPlace4 . '</td><td width="4%">' . $myPlace5 .
'</td><td width="4%">' . $myPlace6 . '</td><td width="4%">' . $myPlace7 .
'</td>
<td width="4%">' . $myPlace8 . '</td><td width="4%">' . $myPlace9 .
'</td><td width="4%">' . $myPlace10 . '</td><td width="4%">' . $myPlace11 .
'</td>
<td width="4%">' . $myPlace12 . '</td><td width="4%">' . $myPlace13 .
'</td><td width="4%">' . $myPlace14 . '</td><td width="4%">' . $myPlace15 .
'</td>
<td width="4%">' . $myPlace16 . '</td><td width="4%">' . $myPlace17 .
'</td><td width="4%">' . $myPlace18 . '</td><td width="4%">' . $myPlace19 .
'</td>
<td width="4%">' . $myPlace20 . '</td></tr>');

}
?>

========== end get_data.php ============

--- End Message ---
--- Begin Message ---

 --- Comex <[EMAIL PROTECTED]> wrote: 
> > ofcourse u can ....
> Yes, but it would take less time to not use PHP.


are u tellin me or askin ?????

:S 


toby

________________________________________________________________________
Want to chat instantly with your online friends?  Get the FREE Yahoo!
Messenger http://mail.messenger.yahoo.co.uk

--- End Message ---
--- Begin Message ---
Hi
 
SELECT RegDate FROM table WHERE month(RegDate) = ’10’  // this is
working
 
SELECT RegDate FROM table WHERE day(RegDate) = ’2’  // why isn´t this
working?

--- End Message ---
--- Begin Message ---
of course this is a php newsgroup :)

try DAYOFMONTH

DAY is only available in mysql 4.1.1

"Disko_kex" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Hi

SELECT RegDate FROM table WHERE month(RegDate) = '10'  // this is
working

SELECT RegDate FROM table WHERE day(RegDate) = '2'  // why isn´t this
working?

--- End Message ---
--- Begin Message ---
One possible reason why it does not work is that the DAY() function does not
exist.

Use DATE_FORMAT() instead.

Ignatius
_________________________
----- Original Message -----
From: "Disko_kex" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 22, 2003 10:47 AM
Subject: [PHP-WIN] MySQL question


Hi

SELECT RegDate FROM table WHERE month(RegDate) = '10'  // this is
working

SELECT RegDate FROM table WHERE day(RegDate) = '2'  // why isn´t this
working?

--- End Message ---
--- Begin Message ---
My platform: W2000 Server SP4 with latest MS vulnerability patches applied.
Apache 1.3.22, PHP 4.2.2.

Since a couple of weeks I have this very nasty problem: Intermittently PHP
is not parsing a valid script. It spits out an error regarding some syntax
error in the code, but the code is in fact perfectly ok. In fact if I reload
the page the script executes normally.

This happens (unfortunately) quite often now, albeit randomly. I would say
that in 10-15% of script executions it happens.

Anyone has a clue of what might be wrong?

Thanks in advance

Francesco

--- End Message ---
--- Begin Message ---
My platform: W2000 Server SP4 with latest MS vulnerability patches applied.
Apache 1.3.22, PHP 4.2.2.

Since a couple of weeks I have this very nasty problem: Intermittently PHP
is not parsing a valid script. It spits out an error regarding some syntax
error in the code, but the code is in fact perfectly ok. In fact if I reload
the page the script executes normally.

This happens (unfortunately) quite often now, albeit randomly. I would say
that in 10-15% of script executions it happens.

Anyone has a clue of what might be wrong?

Thanks in advance

Francesco

--- End Message ---
--- Begin Message ---
There might be a lot of reasons, but a some brains storm ideas might be:

a) New type of data (well formed or not) is feed to the script,
   and it cant handle this type of format.

b) New functionality has been added and these function can't handle
   either valid or invalid data formats

c) Old functions has been changed and trigger an error when certain
   kind of data is feed to them.

d) time out problems

e) solar activities

f) hacking activities has compromised parts of the system

g) data has, become inconsistent in the db by some reason

I would suggest that you insert debug code in your scripts that
validates data and in addition prints out a trace of function calls,
to be able to get an answer on the following question:


   Does the error always emerge when this particular part of
   code is executed, or does it happen only in certain cases?


If it happens in only certain cases try to isolate the set of
data that causes the error to emerge, and then back track to
the particular code segment that causes the script to fault.

If it always happens review your (entire) code carefully once
again, that is including the full call stack.

Kind regards,

        //Anders

On Mon, 2003-09-22 at 13:05, Francesco wrote:
> My platform: W2000 Server SP4 with latest MS vulnerability patches applied.
> Apache 1.3.22, PHP 4.2.2.
> 
> Since a couple of weeks I have this very nasty problem: Intermittently PHP
> is not parsing a valid script. It spits out an error regarding some syntax
> error in the code, but the code is in fact perfectly ok. In fact if I reload
> the page the script executes normally.
> 
> This happens (unfortunately) quite often now, albeit randomly. I would say
> that in 10-15% of script executions it happens.
> 
> Anyone has a clue of what might be wrong?
> 
> Thanks in advance
> 
> Francesco

--- End Message ---
--- Begin Message ---
Unfortunately it cannot be a data problem, because PHP finds syntax errrors
every time in some other part of the code. And not just in one script, also
in many others. Also in a distributed application (an evaluation versione of
WebEdition CMS) I got those "false" syntax errors. Every time, it is
sufficient to reload the page (F5 in IE) and the script executes normally.
This happens not only from my client PC but also from other clients. I am
sure it has not been hacked (it's an Intranet). So it is looks really like a
problem of PHP-Apache itself.



"B.A.T. Svensson" <[EMAIL PROTECTED]> ha scritto nel messaggio
news:[EMAIL PROTECTED]
> There might be a lot of reasons, but a some brains storm ideas might be:
>
> a) New type of data (well formed or not) is feed to the script,
>    and it cant handle this type of format.
>
> b) New functionality has been added and these function can't handle
>    either valid or invalid data formats
>
> c) Old functions has been changed and trigger an error when certain
>    kind of data is feed to them.
>
> d) time out problems
>
> e) solar activities
>
> f) hacking activities has compromised parts of the system
>
> g) data has, become inconsistent in the db by some reason
>
> I would suggest that you insert debug code in your scripts that
> validates data and in addition prints out a trace of function calls,
> to be able to get an answer on the following question:
>
>
>    Does the error always emerge when this particular part of
>    code is executed, or does it happen only in certain cases?
>
>
> If it happens in only certain cases try to isolate the set of
> data that causes the error to emerge, and then back track to
> the particular code segment that causes the script to fault.
>
> If it always happens review your (entire) code carefully once
> again, that is including the full call stack.
>
> Kind regards,
>
> //Anders
>
> On Mon, 2003-09-22 at 13:05, Francesco wrote:
> > My platform: W2000 Server SP4 with latest MS vulnerability patches
applied.
> > Apache 1.3.22, PHP 4.2.2.
> >
> > Since a couple of weeks I have this very nasty problem: Intermittently
PHP
> > is not parsing a valid script. It spits out an error regarding some
syntax
> > error in the code, but the code is in fact perfectly ok. In fact if I
reload
> > the page the script executes normally.
> >
> > This happens (unfortunately) quite often now, albeit randomly. I would
say
> > that in 10-15% of script executions it happens.
> >
> > Anyone has a clue of what might be wrong?
> >
> > Thanks in advance
> >
> > Francesco

--- End Message ---
--- Begin Message ---
If you're positive that it's the server(s), then why not take another
machine, install PHP & Apache, port the code and confirm that it's
code-independant?

-M

-----Original Message-----
From: Francesco [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 22, 2003 8:09 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] PHP randomly is not parsing a valid script


Unfortunately it cannot be a data problem, because PHP finds syntax errrors
every time in some other part of the code. And not just in one script, also
in many others. Also in a distributed application (an evaluation versione of
WebEdition CMS) I got those "false" syntax errors. Every time, it is
sufficient to reload the page (F5 in IE) and the script executes normally.
This happens not only from my client PC but also from other clients. I am
sure it has not been hacked (it's an Intranet). So it is looks really like a
problem of PHP-Apache itself.



"B.A.T. Svensson" <[EMAIL PROTECTED]> ha scritto nel messaggio
news:[EMAIL PROTECTED]
> There might be a lot of reasons, but a some brains storm ideas might 
> be:
>
> a) New type of data (well formed or not) is feed to the script,
>    and it cant handle this type of format.
>
> b) New functionality has been added and these function can't handle
>    either valid or invalid data formats
>
> c) Old functions has been changed and trigger an error when certain
>    kind of data is feed to them.
>
> d) time out problems
>
> e) solar activities
>
> f) hacking activities has compromised parts of the system
>
> g) data has, become inconsistent in the db by some reason
>
> I would suggest that you insert debug code in your scripts that 
> validates data and in addition prints out a trace of function calls, 
> to be able to get an answer on the following question:
>
>
>    Does the error always emerge when this particular part of
>    code is executed, or does it happen only in certain cases?
>
>
> If it happens in only certain cases try to isolate the set of data 
> that causes the error to emerge, and then back track to the particular 
> code segment that causes the script to fault.
>
> If it always happens review your (entire) code carefully once again, 
> that is including the full call stack.
>
> Kind regards,
>
> //Anders
>
> On Mon, 2003-09-22 at 13:05, Francesco wrote:
> > My platform: W2000 Server SP4 with latest MS vulnerability patches
applied.
> > Apache 1.3.22, PHP 4.2.2.
> >
> > Since a couple of weeks I have this very nasty problem: 
> > Intermittently
PHP
> > is not parsing a valid script. It spits out an error regarding some
syntax
> > error in the code, but the code is in fact perfectly ok. In fact if 
> > I
reload
> > the page the script executes normally.
> >
> > This happens (unfortunately) quite often now, albeit randomly. I 
> > would
say
> > that in 10-15% of script executions it happens.
> >
> > Anyone has a clue of what might be wrong?
> >
> > Thanks in advance
> >
> > Francesco

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

--- End Message ---
--- Begin Message ---
In that case; has anybody changes the server settings? 
You might want to review all relevant settings of the server.

Kind regards,

        //Anders


On Mon, 2003-09-22 at 14:08, Francesco wrote:
> Unfortunately it cannot be a data problem, because PHP finds syntax errrors
> every time in some other part of the code. And not just in one script, also
> in many others. Also in a distributed application (an evaluation versione of
> WebEdition CMS) I got those "false" syntax errors. Every time, it is
> sufficient to reload the page (F5 in IE) and the script executes normally.
> This happens not only from my client PC but also from other clients. I am
> sure it has not been hacked (it's an Intranet). So it is looks really like a
> problem of PHP-Apache itself.
> 
> 
> 
> "B.A.T. Svensson" <[EMAIL PROTECTED]> ha scritto nel messaggio
> news:[EMAIL PROTECTED]
> > There might be a lot of reasons, but a some brains storm ideas might be:
> >
> > a) New type of data (well formed or not) is feed to the script,
> >    and it cant handle this type of format.
> >
> > b) New functionality has been added and these function can't handle
> >    either valid or invalid data formats
> >
> > c) Old functions has been changed and trigger an error when certain
> >    kind of data is feed to them.
> >
> > d) time out problems
> >
> > e) solar activities
> >
> > f) hacking activities has compromised parts of the system
> >
> > g) data has, become inconsistent in the db by some reason
> >
> > I would suggest that you insert debug code in your scripts that
> > validates data and in addition prints out a trace of function calls,
> > to be able to get an answer on the following question:
> >
> >
> >    Does the error always emerge when this particular part of
> >    code is executed, or does it happen only in certain cases?
> >
> >
> > If it happens in only certain cases try to isolate the set of
> > data that causes the error to emerge, and then back track to
> > the particular code segment that causes the script to fault.
> >
> > If it always happens review your (entire) code carefully once
> > again, that is including the full call stack.
> >
> > Kind regards,
> >
> > //Anders
> >
> > On Mon, 2003-09-22 at 13:05, Francesco wrote:
> > > My platform: W2000 Server SP4 with latest MS vulnerability patches
> applied.
> > > Apache 1.3.22, PHP 4.2.2.
> > >
> > > Since a couple of weeks I have this very nasty problem: Intermittently
> PHP
> > > is not parsing a valid script. It spits out an error regarding some
> syntax
> > > error in the code, but the code is in fact perfectly ok. In fact if I
> reload
> > > the page the script executes normally.
> > >
> > > This happens (unfortunately) quite often now, albeit randomly. I would
> say
> > > that in 10-15% of script executions it happens.
> > >
> > > Anyone has a clue of what might be wrong?
> > >
> > > Thanks in advance
> > >
> > > Francesco

--- End Message ---
--- Begin Message ---
I ported all the code/data to a twin machine I have. And there everything
works fine - no problems - as was also in my production machine, before the
problems started to appear.

The *only* difference between the 2 machines is that one has W2000 Server
Italian version, and the other one the English version. For the rest, they
have the same software mounted.

I have no clue of what happened. Also I don't know which config params to
look at, because the error I'm getting is so weird. Unfortunately it would
be a big work to reinstall my production machine from start. Any clue
someone?

-----Messaggio originale-----
Da: Svensson, B.A.T. (HKG) [mailto:[EMAIL PROTECTED] 
Inviato: lunedě 22 settembre 2003 15.02
A: Francescofrancescomarsanbmgc
Cc: [EMAIL PROTECTED]
Oggetto: Re: [PHP-WIN] PHP randomly is not parsing a valid script

In that case; has anybody changes the server settings? 
You might want to review all relevant settings of the server.

Kind regards,

        //Anders


On Mon, 2003-09-22 at 14:08, Francesco wrote:
> Unfortunately it cannot be a data problem, because PHP finds syntax
errrors
> every time in some other part of the code. And not just in one script,
also
> in many others. Also in a distributed application (an evaluation versione
of
> WebEdition CMS) I got those "false" syntax errors. Every time, it is
> sufficient to reload the page (F5 in IE) and the script executes normally.
> This happens not only from my client PC but also from other clients. I am
> sure it has not been hacked (it's an Intranet). So it is looks really like
a
> problem of PHP-Apache itself.
> 
> 
> 
> "B.A.T. Svensson" <[EMAIL PROTECTED]> ha scritto nel messaggio
> news:[EMAIL PROTECTED]
> > There might be a lot of reasons, but a some brains storm ideas might be:
> >
> > a) New type of data (well formed or not) is feed to the script,
> >    and it cant handle this type of format.
> >
> > b) New functionality has been added and these function can't handle
> >    either valid or invalid data formats
> >
> > c) Old functions has been changed and trigger an error when certain
> >    kind of data is feed to them.
> >
> > d) time out problems
> >
> > e) solar activities
> >
> > f) hacking activities has compromised parts of the system
> >
> > g) data has, become inconsistent in the db by some reason
> >
> > I would suggest that you insert debug code in your scripts that
> > validates data and in addition prints out a trace of function calls,
> > to be able to get an answer on the following question:
> >
> >
> >    Does the error always emerge when this particular part of
> >    code is executed, or does it happen only in certain cases?
> >
> >
> > If it happens in only certain cases try to isolate the set of
> > data that causes the error to emerge, and then back track to
> > the particular code segment that causes the script to fault.
> >
> > If it always happens review your (entire) code carefully once
> > again, that is including the full call stack.
> >
> > Kind regards,
> >
> > //Anders
> >
> > On Mon, 2003-09-22 at 13:05, Francesco wrote:
> > > My platform: W2000 Server SP4 with latest MS vulnerability patches
> applied.
> > > Apache 1.3.22, PHP 4.2.2.
> > >
> > > Since a couple of weeks I have this very nasty problem: Intermittently
> PHP
> > > is not parsing a valid script. It spits out an error regarding some
> syntax
> > > error in the code, but the code is in fact perfectly ok. In fact if I
> reload
> > > the page the script executes normally.
> > >
> > > This happens (unfortunately) quite often now, albeit randomly. I would
> say
> > > that in 10-15% of script executions it happens.
> > >
> > > Anyone has a clue of what might be wrong?
> > >
> > > Thanks in advance
> > >
> > > Francesco

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

--- End Message ---
--- Begin Message ---
Would it be possible to post a snippet of the error message?

On Mon, 2003-09-22 at 15:19, [EMAIL PROTECTED] wrote:
> I ported all the code/data to a twin machine I have. And there everything
> works fine - no problems - as was also in my production machine, before the
> problems started to appear.
> 
> The *only* difference between the 2 machines is that one has W2000 Server
> Italian version, and the other one the English version. For the rest, they
> have the same software mounted.
> 
> I have no clue of what happened. Also I don't know which config params to
> look at, because the error I'm getting is so weird. Unfortunately it would
> be a big work to reinstall my production machine from start. Any clue
> someone?
> 
> -----Messaggio originale-----
> Da: Svensson, B.A.T. (HKG) [mailto:[EMAIL PROTECTED] 
> Inviato: lunedì 22 settembre 2003 15.02
> A: Francescofrancescomarsanbmgc
> Cc: [EMAIL PROTECTED]
> Oggetto: Re: [PHP-WIN] PHP randomly is not parsing a valid script
> 
> In that case; has anybody changes the server settings? 
> You might want to review all relevant settings of the server.
> 
> Kind regards,
> 
>       //Anders
> 
> 
> On Mon, 2003-09-22 at 14:08, Francesco wrote:
> > Unfortunately it cannot be a data problem, because PHP finds syntax
> errrors
> > every time in some other part of the code. And not just in one script,
> also
> > in many others. Also in a distributed application (an evaluation versione
> of
> > WebEdition CMS) I got those "false" syntax errors. Every time, it is
> > sufficient to reload the page (F5 in IE) and the script executes normally.
> > This happens not only from my client PC but also from other clients. I am
> > sure it has not been hacked (it's an Intranet). So it is looks really like
> a
> > problem of PHP-Apache itself.
> > 
> > 
> > 
> > "B.A.T. Svensson" <[EMAIL PROTECTED]> ha scritto nel messaggio
> > news:[EMAIL PROTECTED]
> > > There might be a lot of reasons, but a some brains storm ideas might be:
> > >
> > > a) New type of data (well formed or not) is feed to the script,
> > >    and it cant handle this type of format.
> > >
> > > b) New functionality has been added and these function can't handle
> > >    either valid or invalid data formats
> > >
> > > c) Old functions has been changed and trigger an error when certain
> > >    kind of data is feed to them.
> > >
> > > d) time out problems
> > >
> > > e) solar activities
> > >
> > > f) hacking activities has compromised parts of the system
> > >
> > > g) data has, become inconsistent in the db by some reason
> > >
> > > I would suggest that you insert debug code in your scripts that
> > > validates data and in addition prints out a trace of function calls,
> > > to be able to get an answer on the following question:
> > >
> > >
> > >    Does the error always emerge when this particular part of
> > >    code is executed, or does it happen only in certain cases?
> > >
> > >
> > > If it happens in only certain cases try to isolate the set of
> > > data that causes the error to emerge, and then back track to
> > > the particular code segment that causes the script to fault.
> > >
> > > If it always happens review your (entire) code carefully once
> > > again, that is including the full call stack.
> > >
> > > Kind regards,
> > >
> > > //Anders
> > >
> > > On Mon, 2003-09-22 at 13:05, Francesco wrote:
> > > > My platform: W2000 Server SP4 with latest MS vulnerability patches
> > applied.
> > > > Apache 1.3.22, PHP 4.2.2.
> > > >
> > > > Since a couple of weeks I have this very nasty problem: Intermittently
> > PHP
> > > > is not parsing a valid script. It spits out an error regarding some
> > syntax
> > > > error in the code, but the code is in fact perfectly ok. In fact if I
> > reload
> > > > the page the script executes normally.
> > > >
> > > > This happens (unfortunately) quite often now, albeit randomly. I would
> > say
> > > > that in 10-15% of script executions it happens.
> > > >
> > > > Anyone has a clue of what might be wrong?
> > > >
> > > > Thanks in advance
> > > >
> > > > Francesco

--- End Message ---

Reply via email to