php-windows Digest 25 May 2002 09:31:36 -0000 Issue 1161

Topics (messages 13971 through 13974):

Re: Varying Results Creating Table
        13971 by: Nicole Amashta

Re: CGI-Trouble with Win2000
        13972 by: Flint Doungchak

need help with parser ...... ! ! ! !
        13973 by: toby z

Re: [PHP] Passing Variables
        13974 by: Jorg Zimmermann

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 ---
At a quick glance over your code, I don't see any reason why it should 
cause those errors (based off the simple data you used).

Sorry I couldn't help. Hope you get it figured out.

Nicole
www.aeontrek.com

PS. I do this daily with PHP on windows2k and Apache webserver. I don't 
get any problems with dynamically generating tables from data pulled 
from a database. I use versions of PHP 4.0.6 and later.

=========================
Tim Greenleaf wrote:
> Thanks Hugh.....
> 
> This script seems to work much better but there are still random errors.
> The script I posted had errors just about everytime while this one has
> errors less frequently.  I am going to change versions of PHP and see if
> that makes any difference....But I think for now I am sticking with ASP if
> developing on Windows.
> 
> Thanks again.
> 
> 
> Tim
> 
> 
> "Hugh Bothwell" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 
>>Try this:
>>
>><html>
>>  <head>
>>    <title>PHP Test</title>
>>    <style type='text/css'>
>>    <!--
>>      th {
>>        font-family: Verdana, Arial, sans-serif;
>>        font-size: 12px;
>>        font-weight: 700;
>>        background-color: #ffcc00;
>>        text-align: center;
>>      }
>>      td {
>>        font-family: Verdana, Arial, sans-serif;
>>        font-size: 10px;
>>        background-color: #ffffff;
>>      }
>>      .ctr {
>>        text-align: center;
>>      }
>>    -->
>>    </style>
>>  </head>
>><body>
>>    <table border='2' cellspacing='0' cellpadding='3'
> 
> bordercolor='#C0C0C0'
> 
>>        width='97%' id='AutoNumber2' style='border-collapse: collapse'
>>        bgcolor='#FFFFFF'>
>>      <tr>
>>        <th width='4%'>&nbsp;</th>
>>        <th width='28%'>Name</th>
>>        <th width='13%'>Phone</th>
>>        <th width='29%'>E-mail</th>
>>        <th width='22%'>Department</th>
>>        <th width='4%'>&nbsp;</th>
>>      </tr>
>><?php
>>    $row['name'] = "Fred Flintstone";
>>    $row['phone'] = "233-7625";
>>    $row['email'] = '[EMAIL PROTECTED]';
>>    $row['dept'] = 'Aggragate Extraction';
>>
>>    for ($i = 0; $i < 650; $i++)
>>        echo
>>            "<tr>"
>>                ."<td class='ctr'>$i</td>"
>>                ."<td>{$row['name']}</td>"
>>                ."<td>{$row['phone']}</td>"
>>                ."<td><a
>>href='mailto:{$row['email']}'>{$row['email']}</a></td>"
>>                ."<td>{$row['dept']}</td>"
>>                ."<td>&nbsp;</td>"
>>            ."</tr>";
>>?>
>>    </table>
>></body>
>></html>
>>
>>
> 
> 

--- End Message ---
--- Begin Message ---
Jan,
 
We have witnessed the same problem, even outside of frames, and no one has really been 
able to tell us what the problem is. I have posted several notes and haven't seen 
anything. We notice that it happens in MS-SQL environments and not in MySQL 
environments. Can you confirm or deny this?
 
In any case, the way we work around it is to customize the 500 error and write a 
javascript refresh right to the error page. That seems to do the trick.
 
Anyway, if you hear anything, let me know.
 
Thanks,
 
-Flint

        -----Original Message----- 
        From: Jan Schmitz [mailto:[EMAIL PROTECTED]] 
        Sent: Thu 5/23/2002 12:09 PM 
        To: [EMAIL PROTECTED] 
        Cc: 
        Subject: [PHP-WIN] CGI-Trouble with Win2000
        
        

        Hi,
        
        we've a lot of trouble using PHP on IIS5/Win2000sp2-Server.
        The machine is a 2xPIII(1,3Ghz), 1280MB RAM, really fast.
        The problem is that sometimes the IIS doesn't execute the php.exe, instead
        it shows a "CGI Application error - wrong or incomplete header data...."
        This problem only occurs on this fast server and only with a website that
        uses frames.
        I suppose that the IIS launches different threads to render the frames and
        isn't able to do the IO to the php.exe for every thread.
        To test this we wrote a little script wich shows 12 Frames, filled with a
        little PHP-Skript that only shows one line of text.
        On the slow machine theres no problem.
        On the fast machine, same software, we get the cgi-error in round about
        every 50th or 60th frame (refresh..)
        
        Thanks for any hint.
        
        Regards,
        
        Jan Schmitz
        
        
        
        
        
        --
        PHP Windows Mailing List (http://www.php.net/)
        To unsubscribe, visit: http://www.php.net/unsub.php
        
        

--- End Message ---
--- Begin Message ---
guyz ....

i didnt do anything about xml support when i installed
php .... (on xp, iis 5.1) :$
and now i NEED to .....
i think i need to add this line to php.ini
" --with-xml "

or do i ????

or should  i do someting else ?????
as i have downloaded the expat parser toolkit
& this line of code i think will enable the expat
parser or will it ????

guyz .... pleeeeeeeez tell me sumthin ..... ! ! ! ! 

thnx a milllllion .....

toby .....


__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
--- End Message ---
--- Begin Message ---
jay is almostt right, you justneed to add some spaces where you concentate
text and variables
like $sql = "select COUNT " . $this . " from " . $table . " group by " .
$this . ";

jorg

"Jay Blanchard" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
002001c20267$52703e90$8102a8c0@niigziuo4ohhdt">news:002001c20267$52703e90$8102a8c0@niigziuo4ohhdt...
> [snip]
> me.php
> <?php
> $db=mysql_connect('localhost','','');
> mysql_select_db($database,$db);
> $sql="select COUNT($this) from $table group by  $this";
> ................
> ?>
> [/snip]
>
> <?php
> $db=mysql_connect('localhost','','');
> mysql_select_db($database,$db);
> $sql="select COUNT" . $this . " from" . $table . " group by" .  $this . ";
> ................
> ?>
>
> Note the concatenation operators, HTH!
>
> Jay
>


--- End Message ---

Reply via email to