Toon posts:

[PHP & Perl] Verwijzing naar bestand.

Pagina: 1
Acties:
  • 210 views sinds 30-01-2008

Verwijderd

Topicstarter
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:
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]

  • Juup
  • Registratie: Februari 2000
  • Niet online
Ik snap er geen hout van. Probeer het probleem eens te isoleren in een paar regels php code en vraag het dan nog eens...

Een wappie is iemand die gevallen is voor de (jarenlange) Russische desinformatiecampagnes.
Wantrouwen en confirmation bias doen de rest.


Verwijderd

je zou het met fopen() kunnen doen, dat werkt bij mij altijd wel :? aan je perl code is geloof ik niet echt iets fout.

  • dusty
  • Registratie: Mei 2000
  • Laatst online: 21-02 00:06

dusty

Celebrate Life!

dubbelpost

Back In Black!
"Je moet haar alleen aan de ketting leggen" - MueR


Dit topic is gesloten.