NYCPHP Meetup

NYPHP.org

HELP!!!!

Phil Powell soazine at erols.com
Fri May 10 19:46:38 EDT 2002


I don't know how categorize this one so I'll just shout out a plea for HELP!!!!!!!!

I have the following .php file, menubar_functions.php, resting in the docroot:

<?

 // 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;
 }

?>

I have a file called chat_login.php that is resting in $DOCUMENT_ROOT/chat folder.

I can't call menubar_function.php 's function PRODUCE_MENUBAR (Fatal error) from my file chat_login.php.

What on earth do I do??!?!

Phil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20020510/50408302/attachment.html>


More information about the talk mailing list