PHP Configuration Problems

Ask a Question related to PHP Development, Design and Development.

  1. #1

    Default PHP Configuration Problems

    Hi

    I have been successfully running db driven websites on my ISPs webserver
    using PHP Version 4.2.3.for a while now.

    I am now experimenting with running mysql/php on my lap-top so I can access
    these sites without being connected to the internet.

    I have downloaded the latest binaries for MySQL and PHP and they are running
    on the laptop with IIS5.1.

    However, when I use the code that was running correctly on my ISPs webserver
    on the LOCALHOST...

    $logged_on_member_id=$_SESSION['s_member_id'];
    $logged_on_member_name=$_SESSION['s_member_name'];

    Throws up the following error messages...

    Notice: Undefined index: s_member_id in membervariables.php on line 2
    Notice: Undefined index: s_member_name in membervariables.php on line 3

    What have I done differently/incorrectly/badly???

    TIA

    Mark





    Mark Guest

  2. Similar Questions and Discussions

    1. Configuration problems with FMS on IIS
      I configured Apache Web Server 2.0 for my comp with WinXP, for test purposes, and here the application works just fine. FMS admin server registers...
    2. Help with XP/IIS/ASP.NET configuration
      I have setup an XP box to run my ASP.NET application. My objective is to run the application on the XP box and have it accessible to the local...
    3. configuration problems of postgresql under windows xp
      Hiya, my team and I have to work with postgresql, apache and the umn mapserver for a student project. The only problem is that not one of us has...
    4. 5.0.7 MMDF Configuration Problems
      I am having some problems trying to configure MMDF on a SCO Openserver 5.0.7 system. Everything I have read indicated that it is simply a matter of...
    5. Inn configuration
      Hi, I want to configure a INN Newsserver 2.3.5 under Solaris 8, but it causes Problems. Does anyone has experience in configuring it. Are there...
  3. #2

    Default PHP Configuration Problems

    Hi

    I have been successfully running db driven websites on my ISPs webserver
    using PHP Version 4.2.3.for a while now.

    I am now experimenting with running mysql/php on my lap-top so I can access
    these sites without being connected to the internet.

    I have downloaded the latest binaries for MySQL and PHP and they are running
    on the laptop with IIS5.1.

    However, when I use the code that was running correctly on my ISPs webserver
    on the LOCALHOST...

    $logged_on_member_id=$_SESSION['s_member_id'];
    $logged_on_member_name=$_SESSION['s_member_name'];

    Throws up the following error messages...

    Notice: Undefined index: s_member_id in membervariables.php on line 2
    Notice: Undefined index: s_member_name in membervariables.php on line 3

    What have I done differently/incorrectly/badly???

    TIA

    Mark





    Mark Guest

  4. #3

    Default Re: PHP Configuration Problems

    If this is bad or not is a matter of taste....
    I usually try to avoid warnings and notices in my code
    which sometimes can result in few lines of code more
    but at least I know exactly what is going on.

    What is different is that your localhost is set to display
    notices and warnings while your ISP is not...

    Check your php.ini directive error_reporting.

    Tomy.

    Mark wrote:
    > Hi
    >
    > I have been successfully running db driven websites on my ISPs
    > webserver using PHP Version 4.2.3.for a while now.
    >
    > I am now experimenting with running mysql/php on my lap-top so I can
    > access these sites without being connected to the internet.
    >
    > I have downloaded the latest binaries for MySQL and PHP and they are
    > running on the laptop with IIS5.1.
    >
    > However, when I use the code that was running correctly on my ISPs
    > webserver on the LOCALHOST...
    >
    > $logged_on_member_id=$_SESSION['s_member_id'];
    > $logged_on_member_name=$_SESSION['s_member_name'];
    >
    > Throws up the following error messages...
    >
    > Notice: Undefined index: s_member_id in membervariables.php on line 2
    > Notice: Undefined index: s_member_name in membervariables.php on line
    > 3
    >
    > What have I done differently/incorrectly/badly???
    >
    > TIA
    >
    > Mark

    Tomislav Petrovic Guest

  5. #4

    Default Re: PHP Configuration Problems

    If this is bad or not is a matter of taste....
    I usually try to avoid warnings and notices in my code
    which sometimes can result in few lines of code more
    but at least I know exactly what is going on.

    What is different is that your localhost is set to display
    notices and warnings while your ISP is not...

    Check your php.ini directive error_reporting.

    Tomy.

    Mark wrote:
    > Hi
    >
    > I have been successfully running db driven websites on my ISPs
    > webserver using PHP Version 4.2.3.for a while now.
    >
    > I am now experimenting with running mysql/php on my lap-top so I can
    > access these sites without being connected to the internet.
    >
    > I have downloaded the latest binaries for MySQL and PHP and they are
    > running on the laptop with IIS5.1.
    >
    > However, when I use the code that was running correctly on my ISPs
    > webserver on the LOCALHOST...
    >
    > $logged_on_member_id=$_SESSION['s_member_id'];
    > $logged_on_member_name=$_SESSION['s_member_name'];
    >
    > Throws up the following error messages...
    >
    > Notice: Undefined index: s_member_id in membervariables.php on line 2
    > Notice: Undefined index: s_member_name in membervariables.php on line
    > 3
    >
    > What have I done differently/incorrectly/badly???
    >
    > TIA
    >
    > Mark

    Tomislav Petrovic Guest

  6. #5

    Default Re: PHP Configuration Problems

    Thanks for your reply Tomy

    This solved many of my problems.

    I also had to set register_globals to ON to get the site working properly.

    I hadn't realised my code was so sloppy

    Thanks again

    Mark


    "Tomislav Petrovic" <t.petrovic@inet.hr> wrote in message
    news:bpfbn6$msn$1@brown.net4u.hr...
    > If this is bad or not is a matter of taste....
    > I usually try to avoid warnings and notices in my code
    > which sometimes can result in few lines of code more
    > but at least I know exactly what is going on.
    >
    > What is different is that your localhost is set to display
    > notices and warnings while your ISP is not...
    >
    > Check your php.ini directive error_reporting.
    >
    > Tomy.
    >
    > Mark wrote:
    > > Hi
    > >
    > > I have been successfully running db driven websites on my ISPs
    > > webserver using PHP Version 4.2.3.for a while now.
    > >
    > > I am now experimenting with running mysql/php on my lap-top so I can
    > > access these sites without being connected to the internet.
    > >
    > > I have downloaded the latest binaries for MySQL and PHP and they are
    > > running on the laptop with IIS5.1.
    > >
    > > However, when I use the code that was running correctly on my ISPs
    > > webserver on the LOCALHOST...
    > >
    > > $logged_on_member_id=$_SESSION['s_member_id'];
    > > $logged_on_member_name=$_SESSION['s_member_name'];
    > >
    > > Throws up the following error messages...
    > >
    > > Notice: Undefined index: s_member_id in membervariables.php on line 2
    > > Notice: Undefined index: s_member_name in membervariables.php on line
    > > 3
    > >
    > > What have I done differently/incorrectly/badly???
    > >
    > > TIA
    > >
    > > Mark
    >
    >

    Mark Guest

  7. #6

    Default Re: PHP Configuration Problems

    Thanks for your reply Tomy

    This solved many of my problems.

    I also had to set register_globals to ON to get the site working properly.

    I hadn't realised my code was so sloppy

    Thanks again

    Mark


    "Tomislav Petrovic" <t.petrovic@inet.hr> wrote in message
    news:bpfbn6$msn$1@brown.net4u.hr...
    > If this is bad or not is a matter of taste....
    > I usually try to avoid warnings and notices in my code
    > which sometimes can result in few lines of code more
    > but at least I know exactly what is going on.
    >
    > What is different is that your localhost is set to display
    > notices and warnings while your ISP is not...
    >
    > Check your php.ini directive error_reporting.
    >
    > Tomy.
    >
    > Mark wrote:
    > > Hi
    > >
    > > I have been successfully running db driven websites on my ISPs
    > > webserver using PHP Version 4.2.3.for a while now.
    > >
    > > I am now experimenting with running mysql/php on my lap-top so I can
    > > access these sites without being connected to the internet.
    > >
    > > I have downloaded the latest binaries for MySQL and PHP and they are
    > > running on the laptop with IIS5.1.
    > >
    > > However, when I use the code that was running correctly on my ISPs
    > > webserver on the LOCALHOST...
    > >
    > > $logged_on_member_id=$_SESSION['s_member_id'];
    > > $logged_on_member_name=$_SESSION['s_member_name'];
    > >
    > > Throws up the following error messages...
    > >
    > > Notice: Undefined index: s_member_id in membervariables.php on line 2
    > > Notice: Undefined index: s_member_name in membervariables.php on line
    > > 3
    > >
    > > What have I done differently/incorrectly/badly???
    > >
    > > TIA
    > >
    > > Mark
    >
    >

    Mark Guest

  8. #7

    Default Re: PHP Configuration Problems

    Mark wrote:
    > Thanks for your reply Tomy
    > This solved many of my problems.
    No problem.
    > I also had to set register_globals to ON to get the site working
    > properly.
    I'd advice against it since it defaults to OFF in new PHP versions
    and ISPs shall probably tend to leave it that way in future.

    Moreover global variables are a BIG NO NO in any structured programing
    language :). Yes, maybe, also a matter of taste :).

    Tomy.


    Tomislav Petrovic Guest

  9. #8

    Default Re: PHP Configuration Problems

    Mark wrote:
    > Thanks for your reply Tomy
    > This solved many of my problems.
    No problem.
    > I also had to set register_globals to ON to get the site working
    > properly.
    I'd advice against it since it defaults to OFF in new PHP versions
    and ISPs shall probably tend to leave it that way in future.

    Moreover global variables are a BIG NO NO in any structured programing
    language :). Yes, maybe, also a matter of taste :).

    Tomy.


    Tomislav Petrovic Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139