phpbar.de logo

Mailinglisten-Archive

[php] newbie

[php] newbie

Wolfgang wbh_(at)_euta.net
Wed, 28 Jun 2000 18:06:41 +0200


------ =_NextPart_000_01BFE12B.9D68D600
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

 
Jan wrote:

Was gibt es fur ne Moglichkeit, dass ich meine Scripte auf solche Dummen
Fehler prufen kann? Gibts da irgendwelche Toolz, oder so??

Hi Jan,

Villeicht hilft dir das angehaengte Script weiter. Wenn du dieses mit
include("debug_info.php3") einbindest (Pfad nicht vergessen), gibt dir das 
Script
alle Post,Get und globalen Variablen aus und bricht das Script mit exit ab
(kannst du aber patchen).
Da kannst du zumindest nachschauen was fuern SCH... zur Laufzeit drinsteht.

Viel Spass damit

Gruss Wolfgang

P.S. Das Script schwirrte vor ein paar Tagen schon einmal in der Liste rum.
Jetzt laeufts auch mit Arrays.

--
** Durchgehend geoffnet: http://www.php-center.de **
Die PHP-Liste: mailto:php_(at)_php-center.de
http://infosoc.uni-koeln.de/mailman/listinfo/php


------ =_NextPart_000_01BFE12B.9D68D600
Content-Type: application/octet-stream; name="debug_info.php3"
Content-Transfer-Encoding: base64

PD9waHANCi8vIERlYnVnLWluZm8gb25seSENCg0KLy8gVG8gc2VlIGFsbCBhdmFpbGFibGUgdmFy
aWFibGVzIGluc2VydCB0aGUgbGluZSANCi8vICAgIGluY2x1ZGUgKCJpbmMvZGVidWdfaW5mby5w
aHAzIik7DQovLyBpbiB0aGUgLnBocDMgZmlsZSB3aGVyZSB5b3Ugd2FudCB0byBzZWUgdGhpcyBp
bmZvcw0KDQpmdW5jdGlvbiBwYXJzZV9hcnJheSgkYXJyYXksJG5hbWUgPSAiIil7DQoJZWNobyAi
PHRhYmxlIGJvcmRlciA9XCIxXCIgY2VsbHNwYWNpbmc9XCIwXCIgY2VsbHBhZGRpbmc9XCIyXCI+
XG4iOw0KICAgICAgICBpZigkbmFtZSA8PiAiIikgew0KCSAgIGVjaG8gIjx0cj48dGQgd2lk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