🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #12918

Número de línea en PHP

#12918
From: Xavier Montero
Date: Sat, 05 May 2001 13:20
24 lines
1360 bytes
C�mo puedo saber el n�mero de l�nea (run-time) que va
ejecutando el int�rprete? (Alguna variable de entorno
o alguna funci�n)?

Por ejemplo, si un query me falla:

// l�nea 323
$purl="http://mi.casa";
$e = 54;
$query = "INSERT INTO counter VALUES ('$purl', $e)";
mysql_query($query) or die("Error at line " . funcion_desconocida() .
"\nQuery: " . $query);
continua_el_script()
// l�nea 329

Quiero que me reporte:

....
....
Error at line 327
Query: INSERT INTO counter VALUES ('http://mi.casa', 54)

Saludos.
Xavi.
Technical Details
Message-ID: <3AF3FE19.2F24B258@dsitelecom.com>
Path: arc1-ca.pugleaf.net!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!130.133.1.3!fu-berlin.de!newsfeed.bcn.ttd.net!news.bcn.ttd.net!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,302be272cc976dc4,start
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2001-05-06 15:12:18 PST
Path: arc1-ca.pugleaf.net!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!130.133.1.3!fu-berlin.de!newsfeed.bcn.ttd.net!news.bcn.ttd.net!not-for-mail
From: Xavier Montero <xmontero@dsitelecom.com>
Newsgroups: es.comp.os.linux.programacion
Subject: Número de línea en PHP
Date: Sat, 05 May 2001 15:20:25 +0200
Organization: Digital Sound Items
Lines: 24
Message-ID: <3AF3FE19.2F24B258@dsitelecom.com>
NNTP-Posting-Host: 213.96.129.167
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Mailer: Mozilla 4.77 [en] (Windows NT 5.0; U)
X-Accept-Language: en