[PHP] start a session crash

2002-02-06 Thread Pablo Petek

Hello,

when i start a session 
?php 
session_start(); 
? 
at the begining of the documente *.php i receive this:

in a dialog box:

PHP provocó un error de página no válida en el 
módulo PHP4TS.DLL de 0177:10054363.
Registros:
EAX=0028 CS=0177 EIP=10054363 EFLGS=00010206
EBX=00760050 SS=017f ESP=0063fa48 EBP=100a01d0
ECX=0015 DS=017f ESI=00760050 FS=5db7
EDX=00763080 ES=017f EDI=10129020 GS=
Bytes en CS:EIP:
,02x ,02x ,02x ,02x ,02x ,02x ,02x ,02x ,02x ,02x ,02x ,02x ,02x ,02x ,02x ,02x 
Volcado de pila:
,08x ,08x ,08x ,08x ,08x ,08x ,08x ,08x ,08x ,08x ,08x ,08x ,08x ,08x ,08x ,08x 

in the Browser:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to 
complete your request. 
Please contact the server administrator, [EMAIL PROTECTED] and inform them of 
the time the error occurred, and anything you might have done that may have caused the 
error. 

More information about this error may be available in the server error log. 





Apache/1.3.22 Server at mailserver.lhhost.com Port 80

IN THE ERROR LOG
[Tue Feb 05 22:08:18 2002] [error] [client 127.0.0.1] Premature end of script headers: 
c:/php/php.exe

¿anyone recognize the problem?
Thanks Thanks !
Pablo.
 



[PHP] form summary !!

2002-02-06 Thread Pablo Petek

Hello, well, here i have my first project and my first problem

i write 2 litlte pages. The error consists that if the first item is not selected, 
receptor.php dont print nothing

page 1

?
$articulo[0]=Xinna;
$precio[0]=0; 
$articulo[1]=joelllis; 
$precio[1]=1; 
$articulo[2]=marcantonia; 
$precio[2]=2; 
$articulo[3]=Trivol;
$precio[3]=3;
?

form method=post action=receptor.php
?for ($contador=0; $articulo[$contador]!=;$contador++):
 print INPUT TYPE='checkbox' NAME='seleccion[$contador]' VALUE='$articulo
 [$contador]';
 print $articulo[$contador];
 print  $ ;
 print $precio[$contador];
 print br;
endfor;?

input type=submit value=Ordenar
/form
--
// page receptor.php

?
$articulo[0]=Xinna;
$precio[0]=0; 
$articulo[1]=joelllis; 
$precio[1]=1; 
$articulo[2]=marcantonia; 
$precio[2]=2; 
$articulo[3]=Trivol;
$precio[3]=3;
?

?
for ($contador=0; isset ($seleccion[$contador]); ++$contador):
 print $seleccion[$contador];
 print $contador;
 print $articulo[$contador];
 print  $ ;
 print $precio[$contador];
 print br;
endfor;

?