Hallo zusammen,
wie installiere ich im XAMPP den Perldebugger? bzw. was muß ich in meinem Programm angeben, damit dieser aktiviert werden kann?
Ich habe das Gästebuch von Matt's Script Archiv in XAMPP eingebunden und möchte es austesten.
Er findet die Rücksprungsadresse nicht, (ERROR 404) wenn man darin den Namen oder den Kommentar nicht eingibt.
Dies möchte ich austesten.
Bin neu in Perl...aber habe gute Kenntnisse von CLIST und REXX...alte Skriptsprachen, die aber Perl sehr ähnlich sind. aber in diesem Fall mir nicht nützen.
Ganz abgesehen ist für die weitere Einarbeitung ist so ein Debugger natürlich immer wertvoll.
Die Abfragemöglichkeiten für danach, habe ich in " http://debugger.perl.org/580/perldebug.html" gefunden, aber mit der Initialisierung und Implementierug des Debuggers klappt es bei mir nicht.
Nach der Anpassung der Inputparameter für localhost sieht der Header bis zum Einlesen des Inputs so aus:
#!"C:\xampp\perl\bin\perl.exe"
##############################################################################
# Guestbook Version 2.3.1 #
# Copyright 1996 Matt Wright mattw@scriptarchive.com #
# Created 4/21/95 Last Modified 10/29/95 #
# Scripts Archive at: http://www.scriptarchive.com/ #
##############################################################################
# COPYRIGHT NOTICE #
# Copyright 1996 Matthew M. Wright All Rights Reserved. #
# #
# Guestbook may be used and modified free of charge by anyone so long as #
# this copyright notice and the comments above remain intact. By using this #
# code you agree to indemnify Matthew M. Wright from any liability that #
# might arise from it's use. #
# #
# Selling the code for this program without prior written consent is #
# expressly forbidden. In other words, please ask first before you try and #
# make money off of my program. #
# #
# Obtain permission before redistributing this software over the Internet or #
# in any other medium. In all cases copyright and header must remain intact.#
##############################################################################
# Set Variables
$guestbookurl = "http://localhost/guestbook.html";
$guestbookreal = "C:/xampp/htdocs/guestbook.html";
$guestlog = "C:/xampp/htdocs/guestlog.html";
$cgiurl = "http://localhost/xampp/htdocs/xampp/guestbook.pl";
$date_command = "/usr/bin/date";
# Set Your Options:
$mail = 0; # 1 = Yes; 0 = No
$uselog = 1; # 1 = Yes; 0 = No
$linkmail = 1; # 1 = Yes; 0 = No
$separator = 1; # 1 = <hr>; 0 = <p>
$redirection = 0; # 1 = Yes; 0 = No
$entry_order = 1; # 1 = Newest entries added first;
# 0 = Newest Entries added last.
$remote_mail = 0; # 1 = Yes; 0 = No
$allow_html = 1; # 1 = Yes; 0 = No
$line_breaks = 0; # 1 = Yes; 0 = No
# If you answered 1 to $mail or $remote_mail you will need to fill out
# these variables below:
$mailprog = "C:/xampp/sendmail/sendmail.exe"; # <------das klappt natürlich auch nicht, wenn ich die Variablen $mail=1und $remote_mail =1
# aktiviere....ist aber ein anderes Problem
$recipient = 'erde2000@hotmail.com';
# Done
##############################################################################
# Get the Date for Entry
$date = `$date_command +"%A, %B %d, %Y at %T (%Z)"`; chop($date);
$shortdate = `$date_command +"%D %T %Z"`; chop($shortdate);
# Get the input
read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'});
#-------------------------------------------------------------
.etc etc
Wer kann mir weiterhelfen??
Liebe Grüße
erde