php-windows Digest 3 Mar 2002 20:02:00 -0000 Issue 1027

Topics (messages 12414 through 12425):

Re: Warning: Undefined variable
        12414 by: alain samoun
        12415 by: crizz
        12417 by: alain samoun
        12424 by: Mike Flynn

cannot write to mySQL database
        12416 by: pilotdave
        12418 by: alain samoun
        12419 by: pilotdave
        12420 by: alain samoun

include_once support
        12421 by: crizz
        12422 by: Rasmus Lerdorf

Counter in PHP and System Variables
        12423 by: Wayne Hinch

Re: error query
        12425 by: Mark Sweeney

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
Crizz:
Obviously you don't want to do that at this point - No error reporting for a
novice - can be challenging...
Show us your script and we may be able to help. (Sorry I did not see your
previous post(s)...)
A+
Alain


-----Original Message-----
From: crizz [mailto:[EMAIL PROTECTED]]
Sent: Saturday, March 02, 2002 7:32 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] Warning: Undefined variable


Ok, I changed error_reporting to "no". But now I take no notice about errors
at all. Any convinience mode for a novice?


"Dl Neil" <[EMAIL PROTECTED]> wrote in message
121301c1c250$9afa6d40$c200a8c0@jrbrown">news:121301c1c250$9afa6d40$c200a8c0@jrbrown...
> crizz,
>
> > I'm really newbye in PHP and just installed php on my IIS on my XP.
> All
> > sample scripts I tried returns me error messages about "Warning:
> Undefined
> > variable"
> > It's probably something with the configuration, right?
>
>
> You got it!
> Check out php.ini (in Windows folder).
> There is a load of 'documentation' in amongst the settings/definitions.
> There are a number of 'levels' for error reporting, so you can dial it
> back a notch if you want.
>
> Regards,
> =dn
>



--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---
--- Begin Message ---
No, now it's ok, my scripts works . It doesn't show any Warnings, but the
bad is that it will probably, won't show any error when exist, right. So,
I'd like a good value for error_reporting, show I'll know my mistake without
having all silly wanrings destroying the look of the page.

Thanks for your immediate help,
crizz
"Alain Samoun" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED].;
> Crizz:
> Obviously you don't want to do that at this point - No error reporting for
a
> novice - can be challenging...
> Show us your script and we may be able to help. (Sorry I did not see your
> previous post(s)...)
> A+
> Alain
>
>
> -----Original Message-----
> From: crizz [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, March 02, 2002 7:32 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] Warning: Undefined variable
>
>
> Ok, I changed error_reporting to "no". But now I take no notice about
errors
> at all. Any convinience mode for a novice?
>
>
> "Dl Neil" <[EMAIL PROTECTED]> wrote in message
> 121301c1c250$9afa6d40$c200a8c0@jrbrown...">news:121301c1c250$9afa6d40$c200a8c0@jrbrown...;
> > crizz,
> >
> > > I'm really newbye in PHP and just installed php on my IIS on my XP.
> > All
> > > sample scripts I tried returns me error messages about "Warning:
> > Undefined
> > > variable"
> > > It's probably something with the configuration, right?
> >
> >
> > You got it!
> > Check out php.ini (in Windows folder).
> > There is a load of 'documentation' in amongst the settings/definitions.
> > There are a number of 'levels' for error reporting, so you can dial it
> > back a notch if you want.
> >
> > Regards,
> > =dn
> >
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


--- End Message ---
--- Begin Message ---
You should go back to php.ini and reverse your error setting to where it
was. The lines that report an error can be individually preceded with the
"@" character, it will then cut the error reporting for these lines.
A+
Alain


-----Original Message-----
From: crizz [mailto:[EMAIL PROTECTED]]
Sent: Saturday, March 02, 2002 7:59 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] Warning: Undefined variable


No, now it's ok, my scripts works . It doesn't show any Warnings, but the
bad is that it will probably, won't show any error when exist, right. So,
I'd like a good value for error_reporting, show I'll know my mistake without
having all silly wanrings destroying the look of the page.

Thanks for your immediate help,
crizz
"Alain Samoun" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Crizz:
> Obviously you don't want to do that at this point - No error reporting for
a
> novice - can be challenging...
> Show us your script and we may be able to help. (Sorry I did not see your
> previous post(s)...)
> A+
> Alain
>
>
> -----Original Message-----
> From: crizz [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, March 02, 2002 7:32 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] Warning: Undefined variable
>
>
> Ok, I changed error_reporting to "no". But now I take no notice about
errors
> at all. Any convinience mode for a novice?
>
>
> "Dl Neil" <[EMAIL PROTECTED]> wrote in message
> 121301c1c250$9afa6d40$c200a8c0@jrbrown">news:121301c1c250$9afa6d40$c200a8c0@jrbrown...
> > crizz,
> >
> > > I'm really newbye in PHP and just installed php on my IIS on my XP.
> > All
> > > sample scripts I tried returns me error messages about "Warning:
> > Undefined
> > > variable"
> > > It's probably something with the configuration, right?
> >
> >
> > You got it!
> > Check out php.ini (in Windows folder).
> > There is a load of 'documentation' in amongst the settings/definitions.
> > There are a number of 'levels' for error reporting, so you can dial it
> > back a notch if you want.
> >
> > Regards,
> > =dn
> >
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>



--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---
--- Begin Message ---
Duh, just let him know the proper setting:

error_reporting  =  E_ALL & ~E_NOTICE

That will keep everything but minor warnings.  That's what most people use.

-Mike

At 07:40 PM 3/2/02 -0800, alain samoun wrote:
>Crizz:
>Obviously you don't want to do that at this point - No error reporting for a
>novice - can be challenging...
>Show us your script and we may be able to help. (Sorry I did not see your
>previous post(s)...)
>A+
>Alain

--- End Message ---
--- Begin Message ---
I am just setting up my first php/mySQL/Apache website running on a win98
machine.  I got it working so it can read data from the database, however it
seems to be unable to write to the database. I can send queries to it.  I am
getting the feeling that its a problem with write permission somehow.  I
know very little about mySQL and Apache so I'm not sure what might need to
be changed.  Any ideas?

Thanks,

Dave


--- End Message ---
--- Begin Message ---
You probably have Mysql set as 'Read Only' Look at the doc.
A+
Alain


-----Original Message-----
From: pilotdave [mailto:[EMAIL PROTECTED]]
Sent: Saturday, March 02, 2002 5:06 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] cannot write to mySQL database


I am just setting up my first php/mySQL/Apache website running on a win98
machine.  I got it working so it can read data from the database, however it
seems to be unable to write to the database. I can send queries to it.  I am
getting the feeling that its a problem with write permission somehow.  I
know very little about mySQL and Apache so I'm not sure what might need to
be changed.  Any ideas?

Thanks,

Dave



--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---
--- Begin Message ---
I don't think that's it.  Here's more info if it helps...  I can input data
from the mysql command line, just not through web pages.  I have tried a
number of different scripts and they all work to view data from the
database, but none seem to be able to send data back to the database.  I get
no error messages but the scripts stop working at "if ($submit)" or "if
(($REQUEST_METHOD=='POST')) "  I guess.  Could it be set as readonly?  I
cant find where that would be set.  Any help would be very appreciated.
Thanks,

Dave


> You probably have Mysql set as 'Read Only' Look at the doc.
> A+
> Alain
>
>
> -----Original Message-----
> From: pilotdave [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, March 02, 2002 5:06 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] cannot write to mySQL database
>
>
> I am just setting up my first php/mySQL/Apache website running on a win98
> machine.  I got it working so it can read data from the database, however
it
> seems to be unable to write to the database. I can send queries to it.  I
am
> getting the feeling that its a problem with write permission somehow.  I
> know very little about mySQL and Apache so I'm not sure what might need to
> be changed.  Any ideas?
>
> Thanks,
>
> Dave
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


--- End Message ---
--- Begin Message ---
I think that I remember that you can set the grant tables to user, host and
db, as I said, read the Mysql doc, a book that I found helpful when I
started was MySQL by Paul Dubois.
Bye now, I have to go to movie with my girlfriend ;)
A+
Alain


-----Original Message-----
From: pilotdave [mailto:[EMAIL PROTECTED]]
Sent: Saturday, March 02, 2002 9:01 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] cannot write to mySQL database


I don't think that's it.  Here's more info if it helps...  I can input data
from the mysql command line, just not through web pages.  I have tried a
number of different scripts and they all work to view data from the
database, but none seem to be able to send data back to the database.  I get
no error messages but the scripts stop working at "if ($submit)" or "if
(($REQUEST_METHOD=='POST')) "  I guess.  Could it be set as readonly?  I
cant find where that would be set.  Any help would be very appreciated.
Thanks,

Dave


> You probably have Mysql set as 'Read Only' Look at the doc.
> A+
> Alain
>
>
> -----Original Message-----
> From: pilotdave [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, March 02, 2002 5:06 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] cannot write to mySQL database
>
>
> I am just setting up my first php/mySQL/Apache website running on a win98
> machine.  I got it working so it can read data from the database, however
it
> seems to be unable to write to the database. I can send queries to it.  I
am
> getting the feeling that its a problem with write permission somehow.  I
> know very little about mySQL and Apache so I'm not sure what might need to
> be changed.  Any ideas?
>
> Thanks,
>
> Dave
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>



--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---
--- Begin Message ---
Is php/4.1.1 supports include_once?


--- End Message ---
--- Begin Message ---
Sure

On Sun, 3 Mar 2002, crizz wrote:

> Is php/4.1.1 supports include_once?
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

--- End Message ---
--- Begin Message ---
Hi,
 
I'm currently doing an assignment at university.
 
Is it possible that a hit counter can be created using php if so how can
this be done?
 
Lastly how can I show the what browser the client is using in their
browser?
 
Cheers
 
Wayne
--- End Message ---
--- Begin Message ---
I seem to have isolated my problem. My code will only work with non-numerical tables 
for some reason, which is kind of a pain.

Is there any way to use php to connect to a mysql table that has a numerical value as 
its name (1,2,3 etc)?

Thanks,

mark
--- End Message ---

Reply via email to