[php] cgi script aanroepen in php

Pagina: 1
Acties:

  • SideBuster
  • Registratie: Februari 2001
  • Laatst online: 03-01-2025

SideBuster

Deka Dirk AH Yeah Vomar Ald!!!

Topicstarter
Momenteel gebruik ik de volgende code:
<?exec('perl bestand.cgi');?>

Maar deze werkt niet.
Iemand anders een idee?

V*k voor de frisdrank daar op de hoek... | Specs


  • RdeTuinman
  • Registratie: Mei 2001
  • Laatst online: 16-08 07:25
Draait PHP in safe-mode misschien? (zie phpinfo())

Of anders complete paden opgeven voor perl en het cgi-bestandje...

  • SideBuster
  • Registratie: Februari 2001
  • Laatst online: 03-01-2025

SideBuster

Deka Dirk AH Yeah Vomar Ald!!!

Topicstarter
Als ik complete paden opgeef krijg ik de message: Unable to fork

V*k voor de frisdrank daar op de hoek... | Specs


  • Erik Jan
  • Registratie: Juni 1999
  • Niet online

Erik Jan

Langzaam en zeker

En wat voor error krijg je als het gewoon zoals in je eerste post doet?

This can no longer be ignored.


  • SideBuster
  • Registratie: Februari 2001
  • Laatst online: 03-01-2025

SideBuster

Deka Dirk AH Yeah Vomar Ald!!!

Topicstarter
Dan komt er helemaal geen error en blijft het gedeelte blanco

V*k voor de frisdrank daar op de hoek... | Specs


  • Infinitive
  • Registratie: Maart 2001
  • Laatst online: 10-08 15:15
al naar permissies gekeken? Mag de user die je webserver gebruikt voor exec wel bij perl komen?

Maar ik denk dat het al eerder fout gaat, omdat je iets als "unable to fork" krijgt.

Misschien dat er iets bij de user-comments op: http://www.php.net/manual/en/function.exec.php staat.

[edit] Ik lees daar:
RE: Executing Perl scripts from PHP...

Things to check if your perl scripts won't execute from PHP:

1) Is the Perl script owned and executable by the Apache user? (wwwrun,
for example)

2) Did you specify the full path the the perl script when you passed it to
exec(), shell_exec(), etc?

putStr $ map (x -> chr $ round $ 21/2 * x^3 - 92 * x^2 + 503/2 * x - 105) [1..4]

Pagina: 1