Re: [PHP-WIN] Fatal error, but include_path seems correct?
hay rod im sorry im lost . from what i understand . u want to point ur url to www.myserver.com/phpMyAdmin254 :S well . u can give the ip instead of localhost or www.myserver.com/phpMyAdmin254 like $cfgPmaAbsoluteUri = 'xxx.yyy.z.a'; or even with a port as i do since im runnin both iis n apache on ma machine -> $cfgPmaAbsoluteUri = 'xxx.yyy.z.a:8095/myadmin/'; or even ur machine name -> $cfgPmaAbsoluteUri = 'http://shagg:8095/myadmin/'; im sorry if i havent answerd ur question . :$ ping me again if yes . toby --- Roderick Martin <[EMAIL PROTECTED]> wrote: > Toby, > > Maybe this is something. > > $cfg['PmaAbsoluteUri'] is set to > "http://www.myserver.com/phpMyAdmin254"; (of course, myserver being > my > real server) > $cfg['Servers'][$i]['host'] = 'localhost'; > > Both of these were set this way already (before your suggestion). > > Now, mysql runs locally in a console with its setting pointing to > "localhost". Might the problem be that PmaAbsoluteUri is not set to > the > "localhost" equivalent, but the "external" URL? > > If so, how do I figure out where "http://localhost/"; points to so I > can > complete the path? I tried entering "http://localhost/"; in IE on > the > source computer, but I got an error. > > thanks!!! > > On Nov 13, 2003, at 11:54 PM, toby z wrote: > > > hay rod > > > > locate $cfgPmaAbsoluteUri in ur phpmyadmin config.inc file > > and put the path by which ur trying to access myadmin . like > > > > 'http://localhost/myadmin/'; > > > > then > > $cfgServers[$i]['host'] = 'localhost'; > > > > and 3rd u need-not include path to myadmin in ur > include_path in > > php.ini :) > > > > good luck > > > > toby > > > > configurtion is a rather hair-tearing and mind-repairing process > > > bare with it :) > > > > --- Roderick Martin <[EMAIL PROTECTED]> wrote: > Tried > it. > > Same error message... > >> > >> Fatal error: Failed opening required > >> './libraries/grab_globals.lib.php' > >> (include_path='.;c:\php4\pear;D:\Netscape\SuiteSpot\docs;D: > >> \Netscape\SuiteSpot\docs\phpMyAdmin254') > >> ind:/Netscape/SuiteSpot/docs/phpMyAdmin254/index.php on line 9 > >> > >> On Nov 13, 2003, at 10:15 AM, Eric COLINET wrote: > >> > >>> Try : > >>> D: \Netscape\SuiteSpot\docs\phpMyAdmin254 > >>> Instead of : > >>> D: \Netscape\SuiteSpot\docs\phpMyAdmin254\libraries > >>> for your include path. > >>> > >>> Eric > >>> > >>> At 16:34 13/11/2003, Roderick Martin wrote: > My setup: > PHP 4.0.6 > Windows NT 4.0 > Netscape-Enterprise/3.6 SP3 > > Installed phpMyAdmin to the root of the server, which is > d:/Netscape/SuiteSpot/docs/phpMyAdmin254/ > > I get the error: Fatal error: Failed opening required > './libraries/grab_globals.lib.php' > (include_path='.;c:\php4\pear;D:\Netscape\SuiteSpot\docs;D: > \Netscape\SuiteSpot\docs\phpMyAdmin254\libraries') > ind:/Netscape/SuiteSpot/docs/phpMyAdmin254/index.php on line 9 > > As you can see, I've added the path to phpMyAdmin in my > >> include_path, > but it still errors out. > > Yes, there is a /libraries folder containing > >> grab_globals.lib.php. > > Any suggestions? > >>> > >>> -- > >>> PHP Windows Mailing List (http://www.php.net/) > >>> To unsubscribe, visit: http://www.php.net/unsub.php > >>> > >>> > >> > > > > > ___ > > > _ > > Want to chat instantly with your online friends? Get the FREE > Yahoo! > > Messenger http://mail.messenger.yahoo.co.uk > > > > -- > > PHP Windows Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://mail.messenger.yahoo.co.uk -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
php-windows Digest 15 Nov 2003 07:30:09 -0000 Issue 2000
php-windows Digest 15 Nov 2003 07:30:09 - Issue 2000 Topics (messages 22096 through 22101): Re: Fatal error, but include_path seems correct? 22096 by: Roderick Martin 22101 by: toby z script to update file names 22097 by: dsig.teleport.com 22099 by: Luis Moreira Re: MS-SQL / FreeTDS - charsets ? 22098 by: Frank M. Kromann NewComer Code 22100 by: Rocco CAstoro 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 --- Toby, Maybe this is something. $cfg['PmaAbsoluteUri'] is set to "http://www.myserver.com/phpMyAdmin254"; (of course, myserver being my real server) $cfg['Servers'][$i]['host'] = 'localhost'; Both of these were set this way already (before your suggestion). Now, mysql runs locally in a console with its setting pointing to "localhost". Might the problem be that PmaAbsoluteUri is not set to the "localhost" equivalent, but the "external" URL? If so, how do I figure out where "http://localhost/"; points to so I can complete the path? I tried entering "http://localhost/"; in IE on the source computer, but I got an error. thanks!!! On Nov 13, 2003, at 11:54 PM, toby z wrote: hay rod locate $cfgPmaAbsoluteUri in ur phpmyadmin config.inc file and put the path by which ur trying to access myadmin . like 'http://localhost/myadmin/'; then $cfgServers[$i]['host'] = 'localhost'; and 3rd u need-not include path to myadmin in ur include_path in php.ini :) good luck toby configurtion is a rather hair-tearing and mind-repairing process bare with it :) --- Roderick Martin <[EMAIL PROTECTED]> wrote: > Tried it. Same error message... Fatal error: Failed opening required './libraries/grab_globals.lib.php' (include_path='.;c:\php4\pear;D:\Netscape\SuiteSpot\docs;D: \Netscape\SuiteSpot\docs\phpMyAdmin254') ind:/Netscape/SuiteSpot/docs/phpMyAdmin254/index.php on line 9 On Nov 13, 2003, at 10:15 AM, Eric COLINET wrote: Try : D: \Netscape\SuiteSpot\docs\phpMyAdmin254 Instead of : D: \Netscape\SuiteSpot\docs\phpMyAdmin254\libraries for your include path. Eric At 16:34 13/11/2003, Roderick Martin wrote: My setup: PHP 4.0.6 Windows NT 4.0 Netscape-Enterprise/3.6 SP3 Installed phpMyAdmin to the root of the server, which is d:/Netscape/SuiteSpot/docs/phpMyAdmin254/ I get the error: Fatal error: Failed opening required './libraries/grab_globals.lib.php' (include_path='.;c:\php4\pear;D:\Netscape\SuiteSpot\docs;D: \Netscape\SuiteSpot\docs\phpMyAdmin254\libraries') ind:/Netscape/SuiteSpot/docs/phpMyAdmin254/index.php on line 9 As you can see, I've added the path to phpMyAdmin in my include_path, but it still errors out. Yes, there is a /libraries folder containing grab_globals.lib.php. Any suggestions? -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php ___ _ Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://mail.messenger.yahoo.co.uk -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php --- End Message --- --- Begin Message --- hay rod im sorry im lost . from what i understand . u want to point ur url to www.myserver.com/phpMyAdmin254 :S well . u can give the ip instead of localhost or www.myserver.com/phpMyAdmin254 like $cfgPmaAbsoluteUri = 'xxx.yyy.z.a'; or even with a port as i do since im runnin both iis n apache on ma machine -> $cfgPmaAbsoluteUri = 'xxx.yyy.z.a:8095/myadmin/'; or even ur machine name -> $cfgPmaAbsoluteUri = 'http://shagg:8095/myadmin/'; im sorry if i havent answerd ur question . :$ ping me again if yes . toby --- Roderick Martin <[EMAIL PROTECTED]> wrote: > Toby, > > Maybe this is something. > > $cfg['PmaAbsoluteUri'] is set to > "http://www.myserver.com/phpMyAdmin254"; (of course, myserver being > my > real server) > $cfg['Servers'][$i]['host'] = 'localhost'; > > Both of these were set this way already (before your suggestion). > > Now, mysql runs locally in a console with its setting pointing to > "localhost". Might the problem be that PmaAbsoluteUri is not set to > the > "localhost" equivalent, but the "external" URL? > > If so, how do I figure out where "http://localhost/"; points to so I > can > complete the path? I tried entering "http://localhost/"; in IE on > the > source computer, but I got an error. > > thanks!!! > > On Nov 13, 2003, at 11:54 PM, toby z wrote: > > > hay rod > > > > locate $cfgPmaAbsoluteUri in ur phpmyadmin config.inc file > > and put the path by which ur trying to access myadmin . like > > > > 'http://localhost/myadmin/'; > > > > then
Re: [PHP-WIN] NewComer Code
I'm afraid not... this function doesn't return string. Your function prints string... If you want your function to return string, try below example: function table4Strings( $string1, $string2, $string3, $string4 ) { return "$string1$string2$string3$string4"; } and use it: echo table4Strings(1, 2, 3, 4); HTH Piotr Rocco CAstoro wrote: > Would this be the best and most efficent way to create a function that > accepts four string variables and returns a string that contains an HTML > table element, enclosing each of the variables in its own cell : > > function table4Strings( $string1, $string2, $string3, $string4 ) > { > print ""; > print ""; > print "$string1"; > print "$string2"; > print "$string3"; > print "$string4"; > print ""; > print ""; > } > table4Strings(1, 2, 3, 4); > ?> > > Thanks much, reading Sams teach yourself PHP4 in 24 Hours.. Pretty > informative.. > > -- > 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] NewComer Code
Thank you very much, this was exactly the help I was looking for! "Piotr Pluciennik" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'm afraid not... > this function doesn't return string. Your function prints string... > > If you want your function to return string, try below example: > > function table4Strings( $string1, $string2, $string3, $string4 ) > { > return " border=1>$string1$string2$string3$string4 "; > > } > > and use it: > > echo table4Strings(1, 2, 3, 4); > > HTH > Piotr > > Rocco CAstoro wrote: > > > Would this be the best and most efficent way to create a function that > > accepts four string variables and returns a string that contains an HTML > > table element, enclosing each of the variables in its own cell : > > > > > function table4Strings( $string1, $string2, $string3, $string4 ) > > { > > print ""; > > print ""; > > print "$string1"; > > print "$string2"; > > print "$string3"; > > print "$string4"; > > print ""; > > print ""; > > } > > table4Strings(1, 2, 3, 4); > > ?> > > > > Thanks much, reading Sams teach yourself PHP4 in 24 Hours.. Pretty > > informative.. > > > > -- > > 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 15 Nov 2003 19:46:54 -0000 Issue 2001
php-windows Digest 15 Nov 2003 19:46:54 - Issue 2001 Topics (messages 22102 through 22104): Re: NewComer Code 22102 by: Piotr Pluciennik 22103 by: Rocco CAstoro GD Lib 22104 by: S F Alim 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'm afraid not... this function doesn't return string. Your function prints string... If you want your function to return string, try below example: function table4Strings( $string1, $string2, $string3, $string4 ) { return "$string1$string2$string3$string4"; } and use it: echo table4Strings(1, 2, 3, 4); HTH Piotr Rocco CAstoro wrote: > Would this be the best and most efficent way to create a function that > accepts four string variables and returns a string that contains an HTML > table element, enclosing each of the variables in its own cell : > > function table4Strings( $string1, $string2, $string3, $string4 ) > { > print ""; > print ""; > print "$string1"; > print "$string2"; > print "$string3"; > print "$string4"; > print ""; > print ""; > } > table4Strings(1, 2, 3, 4); > ?> > > Thanks much, reading Sams teach yourself PHP4 in 24 Hours.. Pretty > informative.. > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php --- End Message --- --- Begin Message --- Thank you very much, this was exactly the help I was looking for! "Piotr Pluciennik" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'm afraid not... > this function doesn't return string. Your function prints string... > > If you want your function to return string, try below example: > > function table4Strings( $string1, $string2, $string3, $string4 ) > { > return " border=1>$string1$string2$string3$string4 "; > > } > > and use it: > > echo table4Strings(1, 2, 3, 4); > > HTH > Piotr > > Rocco CAstoro wrote: > > > Would this be the best and most efficent way to create a function that > > accepts four string variables and returns a string that contains an HTML > > table element, enclosing each of the variables in its own cell : > > > > > function table4Strings( $string1, $string2, $string3, $string4 ) > > { > > print ""; > > print ""; > > print "$string1"; > > print "$string2"; > > print "$string3"; > > print "$string4"; > > print ""; > > print ""; > > } > > table4Strings(1, 2, 3, 4); > > ?> > > > > Thanks much, reading Sams teach yourself PHP4 in 24 Hours.. Pretty > > informative.. > > > > -- > > PHP Windows Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php --- End Message --- --- Begin Message --- Hi all, I m running PHP 4.3.3 on IIS 5.0, and I believe that I don't have GD library installed or it's not working, and im totally new to this, so if any kind enuff to tell me where shall I look and how can I install (if its not there). Thanks in advance. Regards, S F Alim. --- End Message ---
[PHP-WIN] GD Lib
Hi all, I m running PHP 4.3.3 on IIS 5.0, and I believe that I don't have GD library installed or it's not working, and im totally new to this, so if any kind enuff to tell me where shall I look and how can I install (if its not there). Thanks in advance. Regards, S F Alim.
Re: [PHP-WIN] script to update file names
Could you explain that query a little more please? Tryst -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Object Oriented
I'm reading Sams teach yourself PHP4 in 24 Hours, printed in 2000, and It seems to be out of date with the current versions of PHP because when i try to do the example: "; print "\$obj2 is a ".gettype($obj2).""; ?> It says Fatal error: Cannot instantiate non-existent class: first_class in C:\Program Files\Apache Group\Apache2\htdocs\Hour8-1.php on line 2 Why is this? Thanks -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-WIN] Object Oriented
You need to include the class in the script for it to work. You are calling a class that isn't on the file. Bye! MG29 -Mensaje original- De: Rocco CAstoro [mailto:[EMAIL PROTECTED] Enviado el: Sábado, 15 de Noviembre de 2003 08:07 p.m. Para: [EMAIL PROTECTED] Asunto: [PHP-WIN] Object Oriented I'm reading Sams teach yourself PHP4 in 24 Hours, printed in 2000, and It seems to be out of date with the current versions of PHP because when i try to do the example: "; print "\$obj2 is a ".gettype($obj2).""; ?> It says Fatal error: Cannot instantiate non-existent class: first_class in C:\Program Files\Apache Group\Apache2\htdocs\Hour8-1.php on line 2 Why is this? Thanks -- 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] Object Oriented
Thanks Much "Gaguwd" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > You need to include the class in the script for it to work. You are calling > a class that isn't on the file. > > Bye! > MG29 > > -Mensaje original- > De: Rocco CAstoro [mailto:[EMAIL PROTECTED] > Enviado el: Sábado, 15 de Noviembre de 2003 08:07 p.m. > Para: [EMAIL PROTECTED] > Asunto: [PHP-WIN] Object Oriented > > > I'm reading Sams teach yourself PHP4 in 24 Hours, printed in 2000, and It > seems to be out of date with the current versions of PHP because when i try > to do the example: > > $obj1 = new first_class(); > $obj2 = new first_class(); > print "\$obj1 is a ".gettype($obj1).""; > print "\$obj2 is a ".gettype($obj2).""; > ?> > > It says Fatal error: Cannot instantiate non-existent class: first_class in > C:\Program Files\Apache Group\Apache2\htdocs\Hour8-1.php on line 2 > > Why is this? Thanks > > -- > 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] PHP in general
I'm learning PHP for reasons I dont know... I just feel that with my passion for code and computers, that I will be able to use this information to create great things... I guess my question is, what all is PHP used for anyways? -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-WIN] PHP in general
Well, it depends on what you want to make. PHP has almost no limits. Since it works with FTP, MySQL and many other external languages, protocols and the like, your imagination is the limit. So, it's used for many things. There are blog scripts, guestbooks, counters, database managers, portal managers, forum managers, email systems, RPG games, and lots of etc. Hope it helps... Bye! MG29 -Mensaje original- De: Rocco CAstoro [mailto:[EMAIL PROTECTED] Enviado el: Sábado, 15 de Noviembre de 2003 09:14 p.m. Para: [EMAIL PROTECTED] Asunto: [PHP-WIN] PHP in general I'm learning PHP for reasons I dont know... I just feel that with my passion for code and computers, that I will be able to use this information to create great things... I guess my question is, what all is PHP used for anyways? -- 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 in general
Yes it does, But IM lost in a space full of variables and strings and I dont know what half of them mean, I dont wanna give up but this book SUCKS "Gaguwd" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Well, it depends on what you want to make. PHP has almost no limits. > Since it works with FTP, MySQL and many other external languages, protocols > and the like, your imagination is the limit. > > So, it's used for many things. There are blog scripts, guestbooks, counters, > database managers, portal managers, forum managers, email systems, RPG > games, and lots of etc. > > Hope it helps... > > Bye! > MG29 > > -Mensaje original- > De: Rocco CAstoro [mailto:[EMAIL PROTECTED] > Enviado el: Sábado, 15 de Noviembre de 2003 09:14 p.m. > Para: [EMAIL PROTECTED] > Asunto: [PHP-WIN] PHP in general > > > I'm learning PHP for reasons I dont know... I just feel that with my passion > for code and computers, that I will be able to use this information to > create great things... I guess my question is, what all is PHP used for > anyways? > > -- > 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 in general
ok, this is gunna be annoying but does anyone know why i get this error: Fatal error: Call to undefined function: addrow() in C:\Program Files\Apache Group\Apache2\htdocs\Hour8-7MainExample.php on line 63 when trying to execute this code: A Class with a Constructor headers = $headers; $this->cols = count ( $headers ); } //The addROw() Method -- function addRow( $row ) { if ( count ($row) != $this->cols ) return false; array_push($this->table_array, $row); return true; } //The addRowAssocArray() Method function addRowAssocArray( $row_assoc ) { $row = array(); foreach ( $this->headers as $header ) { if ( ! isset( $row_assoc[$header] )) $row_assoc[$header] = ""; $row[] = $row_assoc[$header]; } array_push($this->table_array, $row); return true; } // function output() { print ""; foreach ( $this->headers as $header ) print "$header "; print "\n"; foreach ( $this->table_array as $y ) { foreach ( $y as $xcell ) print "$xcell "; print "\n"; } print ""; } $test = new table( array("a", "b", "c") ); $test->addRow( array(1,2,3) ); $test->addRow( array(4,5,6) ); $test->addRowAssocArray (array ( b=>0, a=>6, c=>3 ) ); $test->output(); ?> thanks "Rocco Castoro" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Yes it does, But IM lost in a space full of variables and strings and I dont > know what half of them mean, I dont wanna give up but this book SUCKS > "Gaguwd" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Well, it depends on what you want to make. PHP has almost no > limits. > > Since it works with FTP, MySQL and many other external languages, > protocols > > and the like, your imagination is the limit. > > > > So, it's used for many things. There are blog scripts, guestbooks, > counters, > > database managers, portal managers, forum managers, email systems, RPG > > games, and lots of etc. > > > > Hope it helps... > > > > Bye! > > MG29 > > > > -Mensaje original- > > De: Rocco CAstoro [mailto:[EMAIL PROTECTED] > > Enviado el: Sábado, 15 de Noviembre de 2003 09:14 p.m. > > Para: [EMAIL PROTECTED] > > Asunto: [PHP-WIN] PHP in general > > > > > > I'm learning PHP for reasons I dont know... I just feel that with my > passion > > for code and computers, that I will be able to use this information to > > create great things... I guess my question is, what all is PHP used for > > anyways? > > > > -- > > 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 in general
I don't really support PHP books, since they seem to be made for economical purposes only. I recommend to look on the web for tutorials, made by and for programmers (advanced or novice). They are simple, free and useful. I know it might be tedious for some people to read on the PC, but think about your pockets and the knowledge you'll gain with a simple tutorial from Mr. Nobody, than with the book of Mr. (insert any PHP book writer here). I'm not against anyone in particular, just dislike programming books. We have thousands of mini-books on the web, why buy a "big" one? So, visit www.google.com and search around, you'll come up with lots of tutorials. Also, an advice, when you learn the basics, put yourself a goal. Like, do a PHP project script and then look for especific topics about PHP. Don't try to learn ALL the language just because. The basics are: variables, control structures (if-else, while, for, switch, foreach, etc.), functions and object oriented programming. With that, you'll be able to go anywhere. Oh, and download a copy of the PHP Manual at www.php.net. You can study from there too, though it's worst than the book if you don't know how to program at all. That's all for now, hope all this is useful to you! :D MG29 -Mensaje original- De: Rocco CAstoro [mailto:[EMAIL PROTECTED] Enviado el: Sábado, 15 de Noviembre de 2003 10:11 p.m. Para: [EMAIL PROTECTED] Asunto: Re: [PHP-WIN] PHP in general Yes it does, But IM lost in a space full of variables and strings and I dont know what half of them mean, I dont wanna give up but this book SUCKS "Gaguwd" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Well, it depends on what you want to make. PHP has almost no limits. > Since it works with FTP, MySQL and many other external languages, protocols > and the like, your imagination is the limit. > > So, it's used for many things. There are blog scripts, guestbooks, counters, > database managers, portal managers, forum managers, email systems, RPG > games, and lots of etc. > > Hope it helps... > > Bye! > MG29 > > -Mensaje original- > De: Rocco CAstoro [mailto:[EMAIL PROTECTED] > Enviado el: Sábado, 15 de Noviembre de 2003 09:14 p.m. > Para: [EMAIL PROTECTED] > Asunto: [PHP-WIN] PHP in general > > > I'm learning PHP for reasons I dont know... I just feel that with my passion > for code and computers, that I will be able to use this information to > create great things... I guess my question is, what all is PHP used for > anyways? > > -- > 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] PHP CODE ERROR?
Can Anyone tell my why this error is produced: Fatal error: Call to undefined function: addrow() in C:\Program Files\Apache Group\Apache2\htdocs\Hour8-7MainExample.php on line 63 >From this code: headers = $headers; $this->cols = count ( $headers ); } //The addROw() Method -- function addRow( $row ) { if ( count ($row) != $this->cols ) return false; array_push($this->table_array, $row); return true; } //The addRowAssocArray() Method function addRowAssocArray( $row_assoc ) { $row = array(); foreach ( $this->headers as $header ) { if ( ! isset( $row_assoc[$header] )) $row_assoc[$header] = ""; $row[] = $row_assoc[$header]; } array_push($this->table_array, $row); return true; } // function output() { print ""; foreach ( $this->headers as $header ) print "$header "; print "\n"; foreach ( $this->table_array as $y ) { foreach ( $y as $xcell ) print "$xcell "; print "\n"; } print ""; } $test = new table( array("a", "b", "c") ); $test->addRow( array(1,2,3) ); $test->addRow( array(4,5,6) ); $test->addRowAssocArray (array ( b=>0, a=>6, c=>3 ) ); $test->output(); ?> Thanks Alot guys your MUCHos HHelpos -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php