[PHP-WIN] Help please: undefined index in sample code
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 Script: Bob's Auto Parts - Order Results Bob's Auto Parts Order Results Your order is as follows: '; echo $tireqty.' tires'; echo $oilqty.' bottles of oil'; echo $sparkqty.' spark plugs'; ?>
Re: [PHP-WIN] Help please: undefined index in sample code
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 > Pro. Thanks. > Stuart > > Form: > > > > > Item > Quantity > > > Tires > maxlength="3"> > > > Oil >maxlength="3"> > > > Spark Plugs > maxlength="3"> > > > > > > > > Script: > > > > Bob's Auto Parts - Order Results > > > Bob's Auto Parts > Order Results > //create short variable names > $tireqty = $_POST['tireqty']; > $oilqty = $_POST['oilqty']; > $sparkqty = $_POST['sparkqty']; > ?> > echo 'Your order is as follows: '; > echo $tireqty.' tires'; > echo $oilqty.' bottles of oil'; > echo $sparkqty.' spark plugs'; > ?> > > > Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://uk.messenger.yahoo.com/ -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Help please: undefined index in sample code
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 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 > [input] > maxlength="3"> > > > Oil > [input] > maxlength="3"> > > > Spark Plugs > [input] > maxlength="3"> > > > [input] > Order"> > > > > > Script: > > > > > > > Bob's Auto Parts > Order Results > > //create short variable names > $tireqty = $_POST['tireqty']; > $oilqty = $_POST['oilqty']; > $sparkqty = $_POST['sparkqty']; > ?> > > echo ' Your order is as follows: '; > echo $tireqty.' tires '; > echo $oilqty.' bottles of oil '; > echo $sparkqty.' spark plugs '; > ?> > > > Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://uk.messenger.yahoo.com/
Re: [PHP-WIN] Help please: undefined index in sample code
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 honest, its a fairly pointless warning, so you probably want to ignore it. In your php.ini file search for and find the error_reporting option. I recommend you change your settings to error_reporting = E_ALL & ~E_NOTICE This should solve your problem. - Original Message - From: "Stuart Felenstein" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, June 14, 2003 10:18 AM Subject: Re: [PHP-WIN] Help please: undefined index in sample code > 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 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 > > [input] > maxlength="3"> > > > > > > Oil > > [input] > maxlength="3"> > > > > > > Spark Plugs > > [input] > maxlength="3"> > > > > > > [input] > Order"> > > > > > > > > > > Script: > > > > > > > > > > > > > > Bob's Auto Parts > > Order Results > > > //create short variable names > > $tireqty = $_POST['tireqty']; > > $oilqty = $_POST['oilqty']; > > $sparkqty = $_POST['sparkqty']; > > ?> > > > echo ' > Your order is as follows: > '; > > echo $tireqty.' tires > '; > > echo $oilqty.' bottles of oil > '; > > echo $sparkqty.' spark plugs > '; > > ?> > > > > > > > > > Want to chat instantly with your online friends? Get the FREE Yahoo! > Messenger http://uk.messenger.yahoo.com/ -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Help please: undefined index in sample code
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 problem. Besides >I've tried both ways. Stuart Stephen <[EMAIL PROTECTED]> wrote: 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 honest, its a fairly pointless warning, so you probably want to ignore it. In your php.ini file search for and find the error_reporting option. I recommend you change your settings to error_reporting = E_ALL & ~E_NOTICE This should solve your problem. - Original Message - From: "Stuart Felenstein" To: Sent: Saturday, June 14, 2003 10:18 AM Subject: Re: [PHP-WIN] Help please: undefined index in sample code > Yes, register globals are now on. Though it doesn't apparently matter. > > Stuart > > toby z 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 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 > > [input] > maxlength="3"> > > > > > > Oil > > [input] > maxlength="3"> > > > > > > Spark Plugs > > [input] > maxlength="3"> > > > > > > [input] > Order"> > > > > > > > > > > Script: > > > > > > > > > > > > > > Bob's Auto Parts > > Order Results > > > //create short variable names > > $tireqty = $_POST['tireqty']; > > $oilqty = $_POST['oilqty']; > > $sparkqty = $_POST['sparkqty']; > > ?> > > > echo ' > Your order is as follows: > '; > > echo $tireqty.' tires > '; > > echo $oilqty.' bottles of oil > '; > > echo $sparkqty.' spark plugs > '; > > ?> > > > > > > > > > Want to chat instantly with your online friends? Get the FREE Yahoo! > Messenger http://uk.messenger.yahoo.com/ -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Problem in windows
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. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Pls help- can't load GD2 extension php_gd2.dll in PHP
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 works!!! Any similar cases? Bug of new version? - Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month!
[PHP-WIN] absolute include files
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 PHPdev. Every page on site uses the following include code on every page: the theory is that no matter where you are in the site hierarchy (there's a lot of directories within directories) it should still work. Like I said, it DOES work fine when I upload the pages to my ISP but only the top level files of the site work locally. If you go down into sub-directories I get the following error: "Warning: Failed opening '/include/header.htm' for inclusion (include_path='.;C:/phpdev/php/includes;C:/phpdev/php/class') in c:\phpdev\www\curve-online.co.uk\discography\official.php on line 12" Any idea how I can get my local server working the same as my ISP server? cheers daz -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Pls help- can't load GD2 extension php_gd2.dll in PHP
>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 extensions (modules) reside. extension_dir = c:\server\PHP\extensions - Original Message - From: "Walter Ben" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, June 14, 2003 2:16 PM Subject: [PHP-WIN] Pls help- can't load GD2 extension php_gd2.dll in PHP > > 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 works!!! Any similar cases? Bug of new version? > > > > - > Do you Yahoo!? > SBC Yahoo! DSL - Now only $29.95 per month! -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Pls help- can't load GD2 extension php_gd2.dll in PHP
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_gd2.dll? many thanks. Stephen <[EMAIL PROTECTED]> wrote: >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 extensions (modules) reside. extension_dir = c:\server\PHP\extensions - Original Message - From: "Walter Ben" To: Sent: Saturday, June 14, 2003 2:16 PM Subject: [PHP-WIN] Pls help- can't load GD2 extension php_gd2.dll in PHP > > 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 works!!! Any similar cases? Bug of new version? > > > > - > Do you Yahoo!? > SBC Yahoo! DSL - Now only $29.95 per month! - Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month!
[PHP-WIN] Php_gd.dll
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 -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] absolute include files
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. Just a simple file with only the following line: will suffice. Another thing you could do is to declare a php include directory and stuff all your include files into there. -Dash On Sat, 14 Jun 2003, dj dust wrote: > 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 PHPdev. > > Every page on site uses the following include code on every page: > > include($DOCUMENT_ROOT . "/include/header.htm"); > ?> > > the theory is that no matter where you are in the site hierarchy (there's a > lot of directories within directories) it should still work. > > Like I said, it DOES work fine when I upload the pages to my ISP but only > the top level files of the site work locally. If you go down into > sub-directories I get the following error: > > "Warning: Failed opening '/include/header.htm' for inclusion > (include_path='.;C:/phpdev/php/includes;C:/phpdev/php/class') in > c:\phpdev\www\curve-online.co.uk\discography\official.php on line 12" > > Any idea how I can get my local server working the same as my ISP server? > > cheers > > daz > > > > -- > 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
php-windows Digest 14 Jun 2003 19:16:09 -0000 Issue 1776
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 Felenstein Problem in windows 20311 by: James Stanley Pls help- can't load GD2 extension php_gd2.dll in PHP 20312 by: Walter Ben 20314 by: Stephen 20315 by: Walter Ben absolute include files 20313 by: dj dust 20317 by: Dash McElroy Php_gd.dll 20316 by: Wential 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 --- 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 Script: Bob's Auto Parts - Order Results Bob's Auto Parts Order Results Your order is as follows: '; echo $tireqty.' tires'; echo $oilqty.' bottles of oil'; echo $sparkqty.' spark plugs'; ?> --- End Message --- --- Begin Message --- 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 > Pro. Thanks. > Stuart > > Form: > > > > > Item > Quantity > > > Tires > maxlength="3"> > > > Oil >maxlength="3"> > > > Spark Plugs > maxlength="3"> > > > > > > > > Script: > > > > Bob's Auto Parts - Order Results > > > Bob's Auto Parts > Order Results > //create short variable names > $tireqty = $_POST['tireqty']; > $oilqty = $_POST['oilqty']; > $sparkqty = $_POST['sparkqty']; > ?> > echo 'Your order is as follows: '; > echo $tireqty.' tires'; > echo $oilqty.' bottles of oil'; > echo $sparkqty.' spark plugs'; > ?> > > > Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://uk.messenger.yahoo.com/ --- End Message --- --- Begin Message --- 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 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 > [input] > maxlength="3"> > > > Oil > [input] > maxlength="3"> > > > Spark Plugs > [input] > maxlength="3"> > > > [input] > Order"> > > > > > Script: > > > > > > > Bob's Auto Parts > Order Results > > //create short variable names > $tireqty = $_POST['tireqty']; > $oilqty = $_POST['oilqty']; > $sparkqty = $_POST['sparkqty']; > ?> > > echo ' Your order is as follows: '; > echo $tireqty.' tires '; > echo $oilqty.' bottles of oil '; > echo $sparkqty.' spark plugs '; > ?> > > > Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://uk.messenger.yahoo.com/--- End Message --- --- Begin Message --- 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 honest, its a fairly pointless warning, so you probably want to ignore it. In your php.ini file search for and find the error_reporting option. I recommend you change your settings to error_reporting = E_ALL & ~E_NOTICE This should solve your problem. - Original Message - From: "Stuart Felenstein" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, June 14, 2003 10:18 AM Subject: Re: [PHP-WIN] Help please: undefined index in sample code > 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 getting "undefined index" for > > the variables I declare in the script. Running PHP 4.3.2 on XP > > Pro. Thanks. > > Stuart > > > > Form: > > > > > >
[PHP-WIN] Re: absolute include files
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 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 PHPdev. > > Every page on site uses the following include code on every page: > > include($DOCUMENT_ROOT . "/include/header.htm"); > ?> > > the theory is that no matter where you are in the site hierarchy (there's a > lot of directories within directories) it should still work. > > Like I said, it DOES work fine when I upload the pages to my ISP but only > the top level files of the site work locally. If you go down into > sub-directories I get the following error: > > "Warning: Failed opening '/include/header.htm' for inclusion > (include_path='.;C:/phpdev/php/includes;C:/phpdev/php/class') in > c:\phpdev\www\curve-online.co.uk\discography\official.php on line 12" > > Any idea how I can get my local server working the same as my ISP server? > > cheers > > daz > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] absolute include files
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 would become $_SERVER['DOCUMENT_ROOT']. > > Check a phpinfo() screen and see what variables are different between your > host and your local box. Just a simple file with only the following line: > > > > will suffice. > > Another thing you could do is to declare a php include directory and stuff > all your include files into there. > > -Dash > > On Sat, 14 Jun 2003, dj dust wrote: > > > 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 PHPdev. > > > > Every page on site uses the following include code on every page: > > > > > include($DOCUMENT_ROOT . "/include/header.htm"); > > ?> > > > > the theory is that no matter where you are in the site hierarchy (there's a > > lot of directories within directories) it should still work. > > > > Like I said, it DOES work fine when I upload the pages to my ISP but only > > the top level files of the site work locally. If you go down into > > sub-directories I get the following error: > > > > "Warning: Failed opening '/include/header.htm' for inclusion > > (include_path='.;C:/phpdev/php/includes;C:/phpdev/php/class') in > > c:\phpdev\www\curve-online.co.uk\discography\official.php on line 12" > > > > Any idea how I can get my local server working the same as my ISP server? > > > > cheers > > > > daz > > > > > > > > -- > > 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
RE: [PHP-WIN] Php_gd.dll
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 think you will probably get the idea. -Original Message- From: malte [mailto:[EMAIL PROTECTED] Sent: Saturday, June 14, 2003 5:13 PM To: Wential Subject: Re: [PHP-WIN] Php_gd.dll well, here you got em.. put them in your php extension dir (normally c:\php\extensions\) malte - Original Message - From: "Wential" <[EMAIL PROTECTED]> To: "'malte'" <[EMAIL PROTECTED]> Sent: Saturday, June 14, 2003 10:32 PM Subject: RE: [PHP-WIN] Php_gd.dll > I got the same error. I've searched my entire hard drive for both > php_gd.dll and php_gd2.dll and the don't exist. > > -Original Message- > From: malte [mailto:[EMAIL PROTECTED] > Sent: Saturday, June 14, 2003 4:20 PM > To: Wential > Subject: Re: [PHP-WIN] Php_gd.dll > > > try php_gd2.dll > mfg > malte > - Original Message - > From: "Wential" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Saturday, June 14, 2003 7:45 PM > Subject: [PHP-WIN] Php_gd.dll > > > > 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 > > > > > > -- > > 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
Re: [PHP-WIN] Php_gd.dll
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]> To: "'malte'" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Saturday, June 14, 2003 10:45 PM Subject: RE: [PHP-WIN] Php_gd.dll > 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 think you will probably get the idea. > > -Original Message- > From: malte [mailto:[EMAIL PROTECTED] > Sent: Saturday, June 14, 2003 5:13 PM > To: Wential > Subject: Re: [PHP-WIN] Php_gd.dll > > > well, here you got em.. put them in your php extension dir (normally > c:\php\extensions\) > malte > > - Original Message - > From: "Wential" <[EMAIL PROTECTED]> > To: "'malte'" <[EMAIL PROTECTED]> > Sent: Saturday, June 14, 2003 10:32 PM > Subject: RE: [PHP-WIN] Php_gd.dll > > > > I got the same error. I've searched my entire hard drive for both > > php_gd.dll and php_gd2.dll and the don't exist. > > > > -Original Message- > > From: malte [mailto:[EMAIL PROTECTED] > > Sent: Saturday, June 14, 2003 4:20 PM > > To: Wential > > Subject: Re: [PHP-WIN] Php_gd.dll > > > > > > try php_gd2.dll > > mfg > > malte > > - Original Message - > > From: "Wential" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Saturday, June 14, 2003 7:45 PM > > Subject: [PHP-WIN] Php_gd.dll > > > > > > > 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 > > > > > > > > > -- > > > 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 > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: Subject: absolute include files
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: "dj dust" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Date: Sat, 14 Jun 2003 14:34:25 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Subject: absolute include files 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 PHPdev. Every page on site uses the following include code on every page: the theory is that no matter where you are in the site hierarchy (there's a lot of directories within directories) it should still work. Like I said, it DOES work fine when I upload the pages to my ISP but only the top level files of the site work locally. If you go down into sub-directories I get the following error: "Warning: Failed opening '/include/header.htm' for inclusion (include_path='.;C:/phpdev/php/includes;C:/phpdev/php/class') in c:\phpdev\www\curve-online.co.uk\discography\official.php on line 12" Any idea how I can get my local server working the same as my ISP server? cheers daz -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: Help please: undefined index in sample code
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 will dump the entire contents of the _POST array onto the screen, so you may check exactly what's in there. This may give you a clue as to what is going wrong. I tested your script on my 4.3.2 build, and it worked fine. If $_POST doesn't work, give $HTTP_POST_VARS a try. If that doesn't work, I'm stumped. What web server are you using? -Adam. 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 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 Script: Bob's Auto Parts - Order Results Bob's Auto Parts Order Results //create short variable names $tireqty = $_POST['tireqty']; $oilqty = $_POST['oilqty']; $sparkqty = $_POST['sparkqty']; ?> echo 'Your order is as follows: '; echo $tireqty.' tires'; echo $oilqty.' bottles of oil'; echo $sparkqty.' spark plugs'; ?> -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php