Ask a Question related to PHP Development, Design and Development.
-
Mark #1
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
-
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... -
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... -
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... -
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... -
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... -
Mark #2
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
-
Tomislav Petrovic #3
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
-
Tomislav Petrovic #4
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
-
Mark #5
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
-
Mark #6
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
-
Tomislav Petrovic #7
Re: PHP Configuration Problems
Mark wrote:
No problem.> Thanks for your reply Tomy
> This solved many of my problems.
I'd advice against it since it defaults to OFF in new PHP versions> I also had to set register_globals to ON to get the site working
> properly.
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
-
Tomislav Petrovic #8
Re: PHP Configuration Problems
Mark wrote:
No problem.> Thanks for your reply Tomy
> This solved many of my problems.
I'd advice against it since it defaults to OFF in new PHP versions> I also had to set register_globals to ON to get the site working
> properly.
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



Reply With Quote

