RE: [PHP] newbee

2003-01-09 Thread Larry Brown
Just a thought, set your form to use the get method so that you can see
exactly what the php page is receiving.  Then before any of your existing
code put the first line to "echo $variable;" without the quotes and using
one of the variables being sent and visible in the url.  The page should
then at least show that one variable.  If that doesn't work there is some
problem with the install I would imagine.

Larry S. Brown
Dimension Networks, Inc.
(727) 723-8388

-Original Message-
From: Hendrik van Niekerk [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 09, 2003 12:58 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] newbee

Joseph

I can get the errors to go away but then my example just shows a blank page!
The variable are not being passed through to the .php doc

hendrik

"Joseph W. Goff" <[EMAIL PROTECTED]> wrote in message
003201c2b803$ada54f60$bdcaa8c0@jg42000">news:003201c2b803$ada54f60$bdcaa8c0@jg42000...
> This is because of the default error reporting setting in the newer
version
> of php.  This was not the case when your book was written.
> In your php.ini file set error reporting = E_ALL & ~E_NOTICE and you will
> quit getting the 'Undefined Variable' notices.
> - Original Message -
> From: "Hendrik van Niekerk" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, January 09, 2003 10:50 AM
> Subject: [PHP] newbee
>
>
> > Hi
> >
> > I'm very new to PHP. (have just bought the book "PHP and MySQL Web
> > Deelopment") SAMS authors Luke Welling and Laura Thompson
> >
> > I working with the examples in the book.
> >
> > I have loaded MySQL, Apache and PHP onto a NT server. All the test
passed
> as
> > per the examples in the book.
> >
> > Working with the the first example in chapter one.
> >
> > I have the HTML document that when the quantities are entered the
> > "processorder.php" should be called to show the results and do some
calcs.
> >
> > what happens is that the php file is called but I get an error message:
> >
> > "Warning: Undefined variable typeqty in C:\apache
> > group\apache\htdocs\processorder.php on line 23"
> >
> > this varialbe is defined in the html document exactly as in the php
> > document.
> >
> > now this warning is repeated for all the variables that should have been
> > passed to the php for processing.
> >
> > What am I missing ?
> >
> >
> > thank you in advance
> >
> >
> > Hendrik van Niekerk
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>



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



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




Re: [PHP] newbee

2003-01-09 Thread Hendrik van Niekerk
Prolem solved. Thanks to all those that assisted me.

Hendrik

"Joseph W. Goff" <[EMAIL PROTECTED]> wrote in message
004c01c2b813$33f181b0$bdcaa8c0@jg42000">news:004c01c2b813$33f181b0$bdcaa8c0@jg42000...
> Without seeing some code I would guess that it is register globals issue.
> It falls into the same explanation as the previous problem.  You can fix
> this in one of two ways.
> 1) use the super globals
> instead of $typeqty use $_POST['typeqty'] or $_GET['typeqty'] depending on
> how it is passed.
> 2) turn register globals on in the php.ini file.
>
> - Original Message -
> From: "Hendrik van Niekerk" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, January 09, 2003 11:58 AM
> Subject: Re: [PHP] newbee
>
>
> > Joseph
> >
> > I can get the errors to go away but then my example just shows a blank
> page!
> > The variable are not being passed through to the .php doc
> >
> > hendrik
> >
> > "Joseph W. Goff" <[EMAIL PROTECTED]> wrote in message
> > 003201c2b803$ada54f60$bdcaa8c0@jg42000">news:003201c2b803$ada54f60$bdcaa8c0@jg42000...
> > > This is because of the default error reporting setting in the newer
> > version
> > > of php.  This was not the case when your book was written.
> > > In your php.ini file set error reporting = E_ALL & ~E_NOTICE and you
> will
> > > quit getting the 'Undefined Variable' notices.
> > > - Original Message -
> > > From: "Hendrik van Niekerk" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Thursday, January 09, 2003 10:50 AM
> > > Subject: [PHP] newbee
> > >
> > >
> > > > Hi
> > > >
> > > > I'm very new to PHP. (have just bought the book "PHP and MySQL Web
> > > > Deelopment") SAMS authors Luke Welling and Laura Thompson
> > > >
> > > > I working with the examples in the book.
> > > >
> > > > I have loaded MySQL, Apache and PHP onto a NT server. All the test
> > passed
> > > as
> > > > per the examples in the book.
> > > >
> > > > Working with the the first example in chapter one.
> > > >
> > > > I have the HTML document that when the quantities are entered the
> > > > "processorder.php" should be called to show the results and do some
> > calcs.
> > > >
> > > > what happens is that the php file is called but I get an error
> message:
> > > >
> > > > "Warning: Undefined variable typeqty in C:\apache
> > > > group\apache\htdocs\processorder.php on line 23"
> > > >
> > > > this varialbe is defined in the html document exactly as in the php
> > > > document.
> > > >
> > > > now this warning is repeated for all the variables that should have
> been
> > > > passed to the php for processing.
> > > >
> > > > What am I missing ?
> > > >
> > > >
> > > > thank you in advance
> > > >
> > > >
> > > > Hendrik van Niekerk
> > > >
> > > >
> > > >
> > > > --
> > > > PHP General Mailing List (http://www.php.net/)
> > > > To unsubscribe, visit: http://www.php.net/unsub.php
> > > >
> > >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>



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




Re: [PHP] newbee

2003-01-09 Thread Joseph W. Goff
Without seeing some code I would guess that it is register globals issue.
It falls into the same explanation as the previous problem.  You can fix
this in one of two ways.
1) use the super globals
instead of $typeqty use $_POST['typeqty'] or $_GET['typeqty'] depending on
how it is passed.
2) turn register globals on in the php.ini file.

- Original Message -
From: "Hendrik van Niekerk" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 09, 2003 11:58 AM
Subject: Re: [PHP] newbee


> Joseph
>
> I can get the errors to go away but then my example just shows a blank
page!
> The variable are not being passed through to the .php doc
>
> hendrik
>
> "Joseph W. Goff" <[EMAIL PROTECTED]> wrote in message
> 003201c2b803$ada54f60$bdcaa8c0@jg42000">news:003201c2b803$ada54f60$bdcaa8c0@jg42000...
> > This is because of the default error reporting setting in the newer
> version
> > of php.  This was not the case when your book was written.
> > In your php.ini file set error reporting = E_ALL & ~E_NOTICE and you
will
> > quit getting the 'Undefined Variable' notices.
> > - Original Message -
> > From: "Hendrik van Niekerk" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, January 09, 2003 10:50 AM
> > Subject: [PHP] newbee
> >
> >
> > > Hi
> > >
> > > I'm very new to PHP. (have just bought the book "PHP and MySQL Web
> > > Deelopment") SAMS authors Luke Welling and Laura Thompson
> > >
> > > I working with the examples in the book.
> > >
> > > I have loaded MySQL, Apache and PHP onto a NT server. All the test
> passed
> > as
> > > per the examples in the book.
> > >
> > > Working with the the first example in chapter one.
> > >
> > > I have the HTML document that when the quantities are entered the
> > > "processorder.php" should be called to show the results and do some
> calcs.
> > >
> > > what happens is that the php file is called but I get an error
message:
> > >
> > > "Warning: Undefined variable typeqty in C:\apache
> > > group\apache\htdocs\processorder.php on line 23"
> > >
> > > this varialbe is defined in the html document exactly as in the php
> > > document.
> > >
> > > now this warning is repeated for all the variables that should have
been
> > > passed to the php for processing.
> > >
> > > What am I missing ?
> > >
> > >
> > > thank you in advance
> > >
> > >
> > > Hendrik van Niekerk
> > >
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


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




Re: [PHP] newbee

2003-01-09 Thread Hendrik van Niekerk
Joseph

I can get the errors to go away but then my example just shows a blank page!
The variable are not being passed through to the .php doc

hendrik

"Joseph W. Goff" <[EMAIL PROTECTED]> wrote in message
003201c2b803$ada54f60$bdcaa8c0@jg42000">news:003201c2b803$ada54f60$bdcaa8c0@jg42000...
> This is because of the default error reporting setting in the newer
version
> of php.  This was not the case when your book was written.
> In your php.ini file set error reporting = E_ALL & ~E_NOTICE and you will
> quit getting the 'Undefined Variable' notices.
> - Original Message -
> From: "Hendrik van Niekerk" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, January 09, 2003 10:50 AM
> Subject: [PHP] newbee
>
>
> > Hi
> >
> > I'm very new to PHP. (have just bought the book "PHP and MySQL Web
> > Deelopment") SAMS authors Luke Welling and Laura Thompson
> >
> > I working with the examples in the book.
> >
> > I have loaded MySQL, Apache and PHP onto a NT server. All the test
passed
> as
> > per the examples in the book.
> >
> > Working with the the first example in chapter one.
> >
> > I have the HTML document that when the quantities are entered the
> > "processorder.php" should be called to show the results and do some
calcs.
> >
> > what happens is that the php file is called but I get an error message:
> >
> > "Warning: Undefined variable typeqty in C:\apache
> > group\apache\htdocs\processorder.php on line 23"
> >
> > this varialbe is defined in the html document exactly as in the php
> > document.
> >
> > now this warning is repeated for all the variables that should have been
> > passed to the php for processing.
> >
> > What am I missing ?
> >
> >
> > thank you in advance
> >
> >
> > Hendrik van Niekerk
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>



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




RE: [PHP] Newbee observation

2003-01-09 Thread Larry Brown
Better yet a script should be run to have all the e-mails listed by the time
they were received at the server instead of what time the e-mail was
submitted.  That should take care of it I would think.

Larry S. Brown
Dimension Networks, Inc.
(727) 723-8388

-Original Message-
From: Tom Ray [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 09, 2003 12:07 PM
To: Hendrik van Niekerk; [EMAIL PROTECTED]
Subject: Re: [PHP] Newbee observation

Mail servers play a part in this too. Maybe the admins should pack up
their servers and send them back too :)

-Original Message-
From: "Hendrik van Niekerk" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Date: Thu, 9 Jan 2003 11:11:30 -0600
Subject: [PHP] Newbee observation

> Why does the webmaster not reject messages that are dates > today's
> date eq
> there are numerous messages that have dates with year 2010 and up. A
> moron
> who does not have the correct computer date on his machine should pack
> it up
> and send it back to the company that sold it to them.
>
> JMHO
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php


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



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




Re: [PHP] Newbee observation

2003-01-09 Thread Tom Ray
Mail servers play a part in this too. Maybe the admins should pack up
their servers and send them back too :)

-Original Message-
From: "Hendrik van Niekerk" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Date: Thu, 9 Jan 2003 11:11:30 -0600
Subject: [PHP] Newbee observation

> Why does the webmaster not reject messages that are dates > today's
> date eq
> there are numerous messages that have dates with year 2010 and up. A
> moron
> who does not have the correct computer date on his machine should pack
> it up
> and send it back to the company that sold it to them.
> 
> JMHO
> 
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php


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




Re: [PHP] newbee

2003-01-09 Thread Joseph W. Goff
This is because of the default error reporting setting in the newer version
of php.  This was not the case when your book was written.
In your php.ini file set error reporting = E_ALL & ~E_NOTICE and you will
quit getting the 'Undefined Variable' notices.
- Original Message -
From: "Hendrik van Niekerk" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 09, 2003 10:50 AM
Subject: [PHP] newbee


> Hi
>
> I'm very new to PHP. (have just bought the book "PHP and MySQL Web
> Deelopment") SAMS authors Luke Welling and Laura Thompson
>
> I working with the examples in the book.
>
> I have loaded MySQL, Apache and PHP onto a NT server. All the test passed
as
> per the examples in the book.
>
> Working with the the first example in chapter one.
>
> I have the HTML document that when the quantities are entered the
> "processorder.php" should be called to show the results and do some calcs.
>
> what happens is that the php file is called but I get an error message:
>
> "Warning: Undefined variable typeqty in C:\apache
> group\apache\htdocs\processorder.php on line 23"
>
> this varialbe is defined in the html document exactly as in the php
> document.
>
> now this warning is repeated for all the variables that should have been
> passed to the php for processing.
>
> What am I missing ?
>
>
> thank you in advance
>
>
> Hendrik van Niekerk
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


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




Re: [PHP] NEWBEE - How do I preload 25< gifs?

2001-03-15 Thread Visa Kopu

In article <98p4a1$mbn$[EMAIL PROTECTED]>,
 [EMAIL PROTECTED] ("Lars Falsig") wrote:

> I need to preload lots of graphics for user-controlled animation, changing
> graphics fast.
> Include() and/or require() works to slow.
> 
> Any suggestions?

You can't do that with PHP as it's *server-side* scripting language. 
Image caching must be done client-side, using for example JavaScript.

Try this in the HEAD section of your HTML page:





- Visa

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]