User Profile

Collapse

Profile Sidebar

Collapse
willlen
willlen
Last Activity: Nov 10 '08, 09:50 PM
Joined: Oct 15 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • willlen
    replied to Cannot redeclare foo() error
    in PHP
    Programs are big. I post part of the code:
    sql.inc
    Code:
    <?php
    include_once(dirname(__FILE__) . "/sqlconf.php");
    require_once(dirname(__FILE__) . "/adodb/adodb.inc.php");
    
    if (!defined('ADODB_FETCH_ASSOC')) define('ADODB_FETCH_ASSOC', 2);
    $database = NewADOConnection("mysql");
    $database->PConnect($host, $login, $pass, $dbase);
    $GLOBALS['adodb']['db'] = $database;
    ...
    See more | Go to post
    Last edited by Markus; Oct 17 '08, 09:45 PM. Reason: added # tags

    Leave a comment:


  • willlen
    replied to Cannot redeclare foo() error
    in PHP
    Thank you Marcus for reply.
    But I declared function only once.
    I did search for "function sqlConnect" and got only one file: sql.inc.
    No other declaration for this function.
    Willlen
    See more | Go to post

    Leave a comment:


  • willlen
    started a topic Cannot redeclare foo() error
    in PHP

    Cannot redeclare foo() error

    Hello, I got message:
    Fatal error: Cannot redeclare sqlconnect() (previously declared in E:\Program Files\Apache Group\Apache2\h tdocs\openemr-2.9.0\library\s ql.inc:33) in E:\program files\apache group\Apache2\h tdocs\openemr-2.9.0\library\s ql.inc on line 36


    File sql.inc:
    Code:
    <?php
    ...
    function sqlConnect($login,$pass,$dbase,$host,$port = '3306')
    {
      return $GLOBALS['dbh'] = $database->_connectionID;
    ...
    See more | Go to post
    Last edited by Markus; Oct 17 '08, 06:40 PM. Reason: added # tags

  • willlen
    replied to session_start error
    in PHP
    Thank you vetrib2w for such quick and helpful reply.
    I did what you suggested and it really works.
    Thanks again.
    But I do not understand why worning appears if I print something before
    START_SESSION() .
    See more | Go to post

    Leave a comment:


  • willlen
    started a topic session_start error
    in PHP

    session_start error

    I got message:
    Warning: session_start() [function.sessio n-start]: Cannot send session cookie - headers already sent by (output started at E:\Program Files\Apache Group\Apache2\h tdocs\openemr-2.9.0\interface \login\login_fr ame.php:4) in E:\Program Files\Apache Group\Apache2\h tdocs\openemr-2.9.0\interface \globals.php on line 3

    Warning: session_start() [function.sessio n-start]: Cannot send session cache limiter - headers already...
    See more | Go to post
No activity results to display
Show More
Working...