NYCPHP Meetup

Fw: Help! Live Function Cannot Be Accessed!!!!

Phil Powell soazine at erols.com
Mon Sep 9 02:52:04 EDT 2002


----- Original Message ----- 
From: Phil Powell 
To: talk at nyphp.org 
Sent: Monday, September 09, 2002 2:35 AM
Subject: Help! Live Function Cannot Be Accessed!!!!


This is live and I can't figure out what is going on with it, suddenly, it stopped working!!!! 

Warning: Unable to access ./menubar_functions.php in /users/ppowell/web/repository.php on line 88

Fatal error: Failed opening required 'menubar_functions.php' (include_path='.:/usr/local/lib/php') in /users/ppowell/web/repository.php on line 88

Here is the code in repository.php:

<?

  require("menubar_functions.php");
  echo PRODUCE_MENUBAR();

?>

here is menubar_functions.php:

<?

 // This function is the PHP version of the TCL proc PRODUCE_MENUBAR which 
 // will produce the menubar for all PHP files
 //
 // Syntax: echo PRODUCE_MENUBAR() 
 //


 function PRODUCE_MENUBAR() {
  global $HTTP_HOST;
  $tcl = (preg_match("/\\bdyndns\\b/i", $HTTP_HOST)) ? "tclsh83" : "tclsh";
  $path = (preg_match("/\\bdyndns\\b/i", $HTTP_HOST)) ? "cgi-bin" : "cgi-bin/cgiwrap/ppowell";
  $fileID = fopen("http://$HTTP_HOST/$path/menubar.cgi", "r");
  $menubar = fread($fileID, 1000000);
  fclose($fileID);
  return $menubar;
 }

?>

Does anyone have any insight? I'm completely out of ideas

Thanx
Phil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20020909/89cfab69/attachment.html>


More information about the talk mailing list