[PHP-WIN] Help please: undefined index in sample code

2003-06-14 Thread Stuart Felenstein
I can't believe Chapter 1 , section 1 and I'm off to a bad start already. Using this form and script, I keep getting "undefined index" for the variables I declare in the script. Running PHP 4.3.2 on XP Pro. Thanks. Stuart Form: Item Quantity Tires Oil Spark Plugs

Re: [PHP-WIN] Help please: undefined index in sample code

2003-06-14 Thread toby z
register globals on or off ? --- Stuart Felenstein <[EMAIL PROTECTED]> wrote: > I can't believe Chapter 1 , section 1 and I'm off to a bad start > already. > Using this form and script, I keep getting "undefined index" for > the variables I declare in the script. Running PHP 4.3.2 on XP > P

Re: [PHP-WIN] Help please: undefined index in sample code

2003-06-14 Thread Stuart Felenstein
Yes, register globals are now on. Though it doesn't apparently matter. Stuart toby z <[EMAIL PROTECTED]> wrote: register globals on or off ? --- Stuart Felenstein wrote: > I can't believe Chapter 1 , section 1 and I'm off to a bad start > already. > Using this form and script, I keep gett

Re: [PHP-WIN] Help please: undefined index in sample code

2003-06-14 Thread Stephen
Which just goes to show some people will say anything... I don't think this has anything to do with register globals (Sorry toby). Undefined index sounds like php is just warning you that you are using a variable without a value. Since you are using a form to send data, this can occur. To be hones

Re: [PHP-WIN] Help please: undefined index in sample code

2003-06-14 Thread Stuart Felenstein
It's more then a warning. The script does not work. All i get back on the screen is: Order ResultsYour order is as follows: ';echo $tireqty.' tires '; echo $oilqty.' bottles of oil '; echo $sparkqty.' spark plugs '; ?> >From what I've read though I agree that global registers is not the pro

[PHP-WIN] Problem in windows

2003-06-14 Thread James Stanley
Hello, I just installed php/mysql on my windows machine, now when I try to run a script I get this: Use of undefined constant s_UID - assumed 's_UID' in c:\inetpub\wwwroot\php_test\inc\session.php And then some Undefined variable: s_UserInfo. Any thought why could this be? Thanks. James. -- P

[PHP-WIN] Pls help- can't load GD2 extension php_gd2.dll in PHP

2003-06-14 Thread Walter Ben
Server : Apache 2PHP 4.3.2 OS : Win XP Pro i can't load GD2 extension php_gd2.dll in PHP , when i start Apache , it always alert "Can't load dynamic library php_gd2.dll" . I'm sure that no problems in my config . When i use other dll file such as php_java.dll, it has no errors and work

[PHP-WIN] absolute include files

2003-06-14 Thread dj dust
hiya I've been tearing my hair out for 2 days now trying to get this to work and I'm sure the answer has gotta be pretty simple... I'm using PHP for the first time and have got some pages uploaded to my live site and they work like a dream - the problem is that they won't work locally using PHPde

Re: [PHP-WIN] Pls help- can't load GD2 extension php_gd2.dll in PHP

2003-06-14 Thread Stephen
>From my php.ini file: ;GD2 is used for image creation extension=php_gd2.dll Are you sure that the php_gd2.dll file is in the extension directory specified? (Below is where my extension directory is, so my php_gd2.dll is in c:\server\PHP\extensions\php_gd2.dll) ; Directory in which the loadable

Re: [PHP-WIN] Pls help- can't load GD2 extension php_gd2.dll in PHP

2003-06-14 Thread Walter Ben
Yes, I am trying to make GD2 work for image creation; and I am sure that the php_gd2.dll file is in the right extension directory specified (since some other .dll (e.g. php_java.dll and php_zip.dll) in some extension directory works when I enable them) I am wondering why some dll files work, but

[PHP-WIN] Php_gd.dll

2003-06-14 Thread Wential
I'm running Windows 2000 Server with PHP 4.3.1; when I try to uncomment extension=php_gd.dll it errors saying that file doesn't exist. I keep getting told the newer versions of PHP came with Gdlib enabled and installed. How do I install it and most importantly find that missing php_gd.dll? Wential

Re: [PHP-WIN] absolute include files

2003-06-14 Thread Dash McElroy
daz, This should be easy enough. First, have you checked to see if register_globals is on or off on your local machine? It defaults to off, so $DOCUMENT_ROOT would become $_SERVER['DOCUMENT_ROOT']. Check a phpinfo() screen and see what variables are different between your host and your local box.

php-windows Digest 14 Jun 2003 19:16:09 -0000 Issue 1776

2003-06-14 Thread php-windows-digest-help
php-windows Digest 14 Jun 2003 19:16:09 - Issue 1776 Topics (messages 20306 through 20317): Help please: undefined index in sample code 20306 by: Stuart Felenstein 20307 by: toby z 20308 by: Stuart Felenstein 20309 by: Stephen 20310 by: Stuart Felenste

[PHP-WIN] Re: absolute include files

2003-06-14 Thread DvDmanDT
Oh, I think you have the register_globals problem... Search the manual for 'register_globals' for more info... "Dj Dust" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] > hiya > > I've been tearing my hair out for 2 days now trying to get this to work and > I'm sure the answer has go

Re: [PHP-WIN] absolute include files

2003-06-14 Thread DvDmanDT
Assuming it's not a downloaded script that is... "Dash McElroy" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] > daz, > > This should be easy enough. First, have you checked to see if > register_globals is on or off on your local machine? It defaults to off, > so $DOCUMENT_ROOT woul

RE: [PHP-WIN] Php_gd.dll

2003-06-14 Thread Wential
I added them to the extensions directory and uncommented them. The result is an unending series of server pop-up errors all begin with "WARNING - Function Registration Failed - duplicate name -" followed by "imagecolorallocate", "imagecolorresolve", "imagecolorset", "gd_info", and a few others. I t

Re: [PHP-WIN] Php_gd.dll

2003-06-14 Thread Stephen
That means that you somehow have got them included twice! Are you trying to use gd and gd2 at the same time? I do not beleve that you can run both GD and GD2, as they use the same functions (hence the pop up error messages) Stephen - Original Message - From: "Wential" <[EMAIL PROTECTED]>

[PHP-WIN] Re: Subject: absolute include files

2003-06-14 Thread Neil Smith
I always use "./includes/blah.php" That seems to work for every top level, with includes in a subdirectory, and use "../includes/blah.php" for subdirectory off main site - I dont go deeper than that but it works fine. Hope it works out Cheers - Neil. At 19:16 14/06/2003 +, you wrote: From:

[PHP-WIN] Re: Help please: undefined index in sample code

2003-06-14 Thread Adam Goossens
Stuart, This problem occurs when you try to access an index in an array that does not exist. First off, make sure that your variables are getting passed to the script via POST. Do this by calling the function print_r(), and passing the $_POST array as an argument to it. print_r($_POST); That