Ik heb hier een php bestand en een Perl bestand. Het is de bedoeling dat via de PHP bestand iets wordt geopent. Als ik het zo doe werkt het:
Code in PHP bestand
Code in Perl bestand YaBB.pl
Maar verander ik dat naar dit, werkt het niet dan laadt hij een of ander pagina in plaats van wat er in plaats van die php tag moet komen:
Code in PHP bestand:
Code in Perl bestand: (Let op laatste regel)
Weet iemand mischien iets? Voor meer uitleg (in engels, sorry) [url=http://boardmod.yabbforum.com/yabb/YaBB.pl?board=troubleshooting;action=display;num=1016235229]Kijk Hier[url]
Code in PHP bestand
code:
1
| <?php virtual("../cgi-bin/yabb/YaBB.pl?board=tynnews&action=news"); ?> |
Code in Perl bestand YaBB.pl
code:
1
2
3
4
5
| if ($action eq 'notify') { require "$sourcedir/Notify.pl"; &Notify; }
elsif ($action eq 'notify2') { require "$sourcedir/Notify.pl"; &Notify2; }
elsif ($action eq 'notify3') { require "$sourcedir/Notify.pl"; &Notify3; }
elsif ($action eq 'notify4') { require "$sourcedir/Notify.pl"; &Notify4; }
elsif ($action eq 'news') { require "$sourcedir/News.pl"; &ShowNews; } |
Maar verander ik dat naar dit, werkt het niet dan laadt hij een of ander pagina in plaats van wat er in plaats van die php tag moet komen:
Code in PHP bestand:
code:
1
| <?php virtual("../cgi-bin/yabb/YaBB.pl?board=tynnews&action=tyn"); ?> |
Code in Perl bestand: (Let op laatste regel)
code:
1
2
3
4
5
6
| if ($action eq 'notify') { require "$sourcedir/Notify.pl"; &Notify; }
elsif ($action eq 'notify2') { require "$sourcedir/Notify.pl"; &Notify2; }
elsif ($action eq 'notify3') { require "$sourcedir/Notify.pl"; &Notify3; }
elsif ($action eq 'notify4') { require "$sourcedir/Notify.pl"; &Notify4; }
elsif ($action eq 'news') { require "$sourcedir/News.pl"; &ShowNews; }
elsif ($action eq 'tyn') { require "$sourcedir/News.pl"; &ShowNews; } |
Weet iemand mischien iets? Voor meer uitleg (in engels, sorry) [url=http://boardmod.yabbforum.com/yabb/YaBB.pl?board=troubleshooting;action=display;num=1016235229]Kijk Hier[url]