[PHP] ��Ң�¶١ Licensed Windows XP Pro, win 98, 98 se, Office XP Small, Office

2006-06-26 Thread paisarn
àÃÒ¢Ò¶١ Licensed Windows XP Pro, win 98, 98 se, Office XP Small, Office XP Professional, Office Pro 2003 ¶Ù¡ÁÒ¡ ¢Í§á·éá¹è¹Í¹ 100 % µÔ´µèÍ Paisarn 06-5881135 - Windows 95 ẺÁÕ CD ¤ÃºªØ´ 200 bath - Windows 98 book+COA only 800 bath - Windows 98 boo

Re: [PHP] Fatal error: Call to a member function fetchRow() on a non-object in C:\Xampp\xampp\htdocs...

2006-06-26 Thread Chris
[EMAIL PROTECTED] wrote: Hello I am pleased if someone could explain me the behaviour since is wrong the following function call: ($row = & $result->fetchRow(DB_FETCHMODE_ASSOC, $_SESSION["searchFormVars"]["offset"]+$rowCounter)); as you will find them on the bottom of the email. By the way,

Re: [PHP] Fatal error: Call to a member function fetchRow() on a non-object in C:\Xampp\xampp\htdocs...

2006-06-26 Thread Jochem Maas
[EMAIL PROTECTED] wrote: > Hello > > I am pleased if someone could explain me the behaviour since is wrong the > following function call: ($row = & $result->fetchRow(DB_FETCHMODE_ASSOC, > $_SESSION["searchFormVars"]["offset"]+$rowCounter)); I'll explain your behaviour: you repeatedly ask the s

Re: [PHP] Question regarding OS

2006-06-26 Thread Jochem Maas
Mayank Maheshwary wrote: > Hi, > > Is there a function that can detect the OS on which the script is running? yes. php_uname() read about it here http://php.net/manual/en/function.php-uname.php and then read 10 pages either side just for fun :-) > > Thank you. > > M. > -- PHP General Mail

[PHP] Fatal error: Call to a member function fetchRow() on a non-object in C:\Xampp\xampp\htdocs...

2006-06-26 Thread j . kuehne
Hello I am pleased if someone could explain me the behaviour since is wrong the following function call: ($row = & $result->fetchRow(DB_FETCHMODE_ASSOC, $_SESSION["searchFormVars"]["offset"]+$rowCounter)); as you will find them on the bottom of the email. By the way, fetchRow() is a method fro

Re: [PHP] uploading...

2006-06-26 Thread Chris
BBC wrote: OK John I'm sorry if my question was not specific - The out put error was: "Fatal error: call to a member function an o non object in /url/data.php on line 34" - And the lines are: 34. $db->query("INSERT INTO `products` $db isn't an object. Does it connect to the database w

Re: [PHP] Question regarding OS

2006-06-26 Thread tedd
At 11:46 AM +1000 6/27/06, Ligaya Turmelle wrote: >Mayank Maheshwary wrote: >>Hi, >> >>Is there a function that can detect the OS on which the script is running? >> >>Thank you. >> >>M. >> >The OS of the server maybe $_SERVER['SERVER_SOFTWARE'] - *shrug* >The OS of the client is not available - ser

Re: [PHP] Question regarding OS

2006-06-26 Thread Ligaya Turmelle
Mayank Maheshwary wrote: Hi, Is there a function that can detect the OS on which the script is running? Thank you. M. The OS of the server maybe $_SERVER['SERVER_SOFTWARE'] - *shrug* The OS of the client is not available - server side - remember. -- life is a game... so have fun. -- PHP

[PHP] Question regarding OS

2006-06-26 Thread Mayank Maheshwary
Hi, Is there a function that can detect the OS on which the script is running? Thank you. M.

[PHP] Re: PHP 5, Windows, and MySQL

2006-06-26 Thread Jo�o C�ndido de Souza Neto
I've got it running fine on my windows. Mysql 5.0.19 PHP 5.1.4 I just activate php_mysql.dll and php_mysqli.dll. Which versions of php and mysql are you using? ""Beauford"" <[EMAIL PROTECTED]> escreveu na mensagem news:!&!AAAYAFzLTDhDwWBHpzgX5w1qDiPigAAAEJiz/[EMAIL PROTECT

Re: [PHP] If statement question

2006-06-26 Thread Larry Garfield
On Monday 26 June 2006 13:10, Alex Major wrote: > Hi list. > Basically, I'm still learning new things about php and I was wondering if > things inside an if statement get 'looked at' by a script if the condition > is false. > For example, would this mysql query get executed if $number = 0 ? > > If

Re: [PHP] uploading...

2006-06-26 Thread BBC
OK John I'm sorry if my question was not specific - The out put error was: "Fatal error: call to a member function an o non object in /url/data.php on line 34" - And the lines are: 34. $db->query("INSERT INTO `products` 35. (`code`,`size`,`description`,`material`,`ads`,`price`,`new`,`cate

RE: [PHP] PHP 5, Windows, and MySQL

2006-06-26 Thread Beauford
>From what I have been reading this is a known issue with PHP5. There is something in the php_mysql.dll which is not compatible. I wasted 3 hours today trying all the tips and tricks I could find, but the bottom line is that it won't work. This was my reason for posting to this group to see if

Re: [PHP] Preventing double-clicks APPEARS TO WORK FINE

2006-06-26 Thread tedd
Hi gang: I don't know who originally asked, but if you generate and use a token with a session, you can prevent double posting (clicking). tedd -- http://sperling.com http://ancientstones.com http://earthsto

Re: [PHP] templating

2006-06-26 Thread Jochem Maas
I just wanted to add that Richards technique is a good way to go. I often use something very similar, the only difference being that I make the head() and foot() function methods in class (an instance of the class being created by the global include file for the given site e.g: class Page {

Re: [PHP] Re: A variable inside a variable?

2006-06-26 Thread Jo�o C�ndido de Souza Neto
Please excuse-me. That $ was putted by mistake. I´sorry... <[EMAIL PROTECTED]> escreveu na mensagem news:[EMAIL PROTECTED] > You were on the right track, but this isn't going to work.. for a couple > reasons: > > $var = 1; # this is fine > $var2 = "$var"; # $var2 == 1 at this point > echo $$

Re: [PHP] Preventing double-clicks APPEARS TO WORK FINE

2006-06-26 Thread Lester Caine
Jay Blanchard wrote: [snip] JavaScript can't be used for such things, or at least it can't be relied upon. What if the user has disabled JavaScript? Or what if the user has specifically disabled the JavaScript behaviour you are relying on? [/snip] Egg Zachary. That was why I wanted a PHP met

Re: [PHP] A variable inside a variable?

2006-06-26 Thread Jochem Maas
Alex Major wrote: > Thanks for your help with my other question, heres a new one for you. > > I need to nest a variable, inside another variable. For example: > > $($buildingname)level > > How (if at all) is this possible? it's possible but probably an array is a better solution: $someBuilding

Re: [PHP] PHP 5, Windows, and MySQL

2006-06-26 Thread Tom Chubb
I use apache2triad (http://apache2triad.net/) which is an AMP package with PHP 5. I vaguely remember the first time I installed it (on Win XP Pro though) I got similar problems with MySQL. I uninstalled it and reinstalled as I wasn't sure if I accidentally clicked a dialog box without reading what

RE: [PHP] Preventing double-clicks APPEARS TO WORK FINE

2006-06-26 Thread Jay Blanchard
[snip] JavaScript can't be used for such things, or at least it can't be relied upon. What if the user has disabled JavaScript? Or what if the user has specifically disabled the JavaScript behaviour you are relying on? [/snip] Egg Zachary. That was why I wanted a PHP method. Since the SESSION da

Re: [PHP] Re: A variable inside a variable?

2006-06-26 Thread tg-php
You were on the right track, but this isn't going to work.. for a couple reasons: $var = 1; # this is fine $var2 = "$var"; # $var2 == 1 at this point echo $$var2; # you're going to echo $1 Putting $var in double quotes makes PHP evaluate it before assigning it to $var2, so you won't get $var b

Re: [PHP] A variable inside a variable?

2006-06-26 Thread tg-php
I've never found a use for it myself, but yes.. php provides for 'variable variables': http://us3.php.net/manual/en/language.variables.variable.php $a = 'varname'; $varname = 'test'; echo $$a; > test -TG = = = Original message = = = Thanks for your help with my other question, heres a new o

[PHP] Re: A variable inside a variable?

2006-06-26 Thread Jo�o C�ndido de Souza Neto
$var=1; $var2="$var"; echo $$var2; It´ll echo the $var´s value. Hope it´ll help you. "Alex Major" <[EMAIL PROTECTED]> escreveu na mensagem news:[EMAIL PROTECTED] > Thanks for your help with my other question, heres a new one for you. > > I need to nest a variable, inside another variable. Fo

Re: [PHP] Preventing double-clicks APPEARS TO WORK FINE

2006-06-26 Thread Adam Zey
John Meyer wrote: Jay Blanchard wrote: [snip] I am going to do some thinking (typing) out loud here because I need to come up with a solution to double-clicking on a form button issue. [/snip] Isn't there a javascript method that you could use to accomplish the same thing? Either that, or o

RE: [PHP] A variable inside a variable?

2006-06-26 Thread Jim Moseby
> > Thanks for your help with my other question, heres a new one for you. > > I need to nest a variable, inside another variable. For example: > > $($buildingname)level > > How (if at all) is this possible? http://us3.php.net/manual/en/language.variables.variable.php JM -- PHP General Mail

Re: [PHP] Preventing double-clicks APPEARS TO WORK FINE

2006-06-26 Thread Larry Garfield
On Mon, June 26, 2006 2:05 pm, John Meyer said: > Jay Blanchard wrote: >> [snip] >> I am going to do some thinking (typing) out loud here because I need to >> come up with a solution to double-clicking on a form button issue. >> [/snip] >> > > Isn't there a javascript method that you could use to a

Re: [PHP] A variable inside a variable?

2006-06-26 Thread Brad Bonkoski
This might help... http://www.php.net/manual/en/function.array.php -B Alex Major wrote: Thanks for your help with my other question, heres a new one for you. I need to nest a variable, inside another variable. For example: $($buildingname)level How (if at all) is this possible? Thanks. Ale

[PHP] Re: A variable inside a variable?

2006-06-26 Thread Adam Zey
Alex Major wrote: Thanks for your help with my other question, heres a new one for you. I need to nest a variable, inside another variable. For example: $($buildingname)level How (if at all) is this possible? Thanks. Alex. Why? What are you doing that requires that that cannot be done with

[PHP] A variable inside a variable?

2006-06-26 Thread Alex Major
Thanks for your help with my other question, heres a new one for you. I need to nest a variable, inside another variable. For example: $($buildingname)level How (if at all) is this possible? Thanks. Alex. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.

Re: [PHP] Preventing double-clicks APPEARS TO WORK FINE

2006-06-26 Thread John Meyer
Jay Blanchard wrote: [snip] I am going to do some thinking (typing) out loud here because I need to come up with a solution to double-clicking on a form button issue. [/snip] Isn't there a javascript method that you could use to accomplish the same thing? Either that, or on the first click,

Re: [PHP] If statement question

2006-06-26 Thread Robert Cummings
On Mon, 2006-06-26 at 14:10, Alex Major wrote: > Hi list. > Basically, I'm still learning new things about php and I was wondering if > things inside an if statement get 'looked at' by a script if the condition > is false. > For example, would this mysql query get executed if $number = 0 ? > > If

Re: [PHP] If statement question

2006-06-26 Thread Martin Marques
On Mon, 26 Jun 2006 19:10:59 +0100, Alex Major <[EMAIL PROTECTED]> wrote: > Hi list. > Basically, I'm still learning new things about php and I was wondering if > things inside an if statement get 'looked at' by a script if the condition > is false. > For example, would this mysql query get execut

[PHP] Re: If statement question

2006-06-26 Thread Adam Zey
Alex Major wrote: Hi list. Basically, I'm still learning new things about php and I was wondering if things inside an if statement get 'looked at' by a script if the condition is false. For example, would this mysql query get executed if $number = 0 ? If ($number == 1) { mysql_query($blah) }

[PHP] If statement question

2006-06-26 Thread Alex Major
Hi list. Basically, I'm still learning new things about php and I was wondering if things inside an if statement get 'looked at' by a script if the condition is false. For example, would this mysql query get executed if $number = 0 ? If ($number == 1) { mysql_query($blah) } I know that's not

[PHP] Re: PHP 5, Windows, and MySQL

2006-06-26 Thread Adam Zey
Beauford wrote: Aside from my previous gd problems, here's another problem. It appears that PHP5 (for Windows anyways) does not support MySQL (which in itself is riduculous), but here's my problem. I have a script I just downloaded that works perfectly on Linux/Apche/MySQL/PHP5, but when I run it

Re: [PHP] PHP 5, Windows, and MySQL

2006-06-26 Thread Robert Cummings
On Mon, 2006-06-26 at 13:50, Beauford wrote: > Aside from my previous gd problems, here's another problem. It appears that > PHP5 (for Windows anyways) does not support MySQL (which in itself is > riduculous), but here's my problem. I have a script I just downloaded that > works perfectly on Linux/

RE: [PHP] Preventing double-clicks APPEARS TO WORK FINE

2006-06-26 Thread Jay Blanchard
[snip] I am going to do some thinking (typing) out loud here because I need to come up with a solution to double-clicking on a form button issue. [/snip] Because the data is contained in session variables this became an easy issue once I logiced it out /* * we have to find out if a double click

[PHP] PHP 5, Windows, and MySQL

2006-06-26 Thread Beauford
Aside from my previous gd problems, here's another problem. It appears that PHP5 (for Windows anyways) does not support MySQL (which in itself is riduculous), but here's my problem. I have a script I just downloaded that works perfectly on Linux/Apche/MySQL/PHP5, but when I run it on Windows 2000 w

[PHP] Preventing double-clicks

2006-06-26 Thread Jay Blanchard
I am going to do some thinking (typing) out loud here because I need to come up with a solution to double-clicking on a form button issue. The steps are; 1. Fill out form 2. Click 'Submit' 3. Data gets stored (including unique data and time stamp data in this casewhich should work out well) I

[PHP] Re: Strip outgoing whitespace in html

2006-06-26 Thread Adam Zey
Christopher J. Bottaro wrote: Opps, we just found mod_tidy. :) Christopher J. Bottaro wrote: I'm wondering if there's a convenient way to globally add a final step for apache w/php that will remove unnecessary whitespace from text/html before it gets sent to the client. Some sort of global co

[PHP] Re: Strip outgoing whitespace in html

2006-06-26 Thread Christopher J. Bottaro
Opps, we just found mod_tidy. :) Christopher J. Bottaro wrote: > I'm wondering if there's a convenient way to globally add a final step for > apache w/php that will remove unnecessary whitespace from text/html before > it gets sent to the client. Some sort of global config like thing would be >

[PHP] Strip outgoing whitespace in html

2006-06-26 Thread Christopher J. Bottaro
I'm wondering if there's a convenient way to globally add a final step for apache w/php that will remove unnecessary whitespace from text/html before it gets sent to the client. Some sort of global config like thing would be ideal. For what it's worth we're using the smarty template engine too, but

Re: [PHP] uploading...

2006-06-26 Thread John Meyer
BBC wrote: "Fatal error: call to a member function an o non object in /url/data.php on line 34" and the syntax is in line 34, so what can I do..? Could you point out which line is line 34? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] uploading...

2006-06-26 Thread BBC
"Fatal error: call to a member function an o non object in /url/data.php on line 34" and the syntax is in line 34, so what can I do..? Please give us output of the error that mysql returns. cheers, BBC wrote: hi all... I have the problem about this syntax: $db->query("INSERT INTO `product

Re: [PHP] mail() returns false but e-mail is sent ?

2006-06-26 Thread Adam Zey
Leonidas Safran wrote: Hello, Show us the full context of the code. The example you give us will work fine but that doesn't tell us what's really going on in your code. Here is the function I use to allow french special characters in the subject line (copied from german university tutorial

Re: [PHP] mysql-* versus db-* statements

2006-06-26 Thread Jochem Maas
[EMAIL PROTECTED] wrote: > ... >> $link = mysql_connect("localhost", "root", "040573"); what was your IP address again? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Fatal error: Call to a member function fetchRow() on a non-object in C:\Xampp\xampp\htdocs...

2006-06-26 Thread Jochem Maas
[EMAIL PROTECTED] wrote: > Hello > > I am pleased if someone could explain me since is wrong the following > function call: ($row = & $result->fetchRow(DB_FETCHMODE_ASSOC, > $_SESSION["searchFormVars"]["offset"]+$rowCounter)); > as you will find them on the bottom of the email. By the way, fetc

[PHP] Re: issue with Apache/PHP loadmodule

2006-06-26 Thread David Powers
Alain Roger wrote: I have the following lines in my http.conf from apache 2.2 configuration file. # - for PHP LoadModule php5_module "c:\PHP\php5apache2.dll" php5apache2.dll doesn't support Apache 2.2. Use Apache 2.0. -- David Powers -- PHP General Mailing List (http://www.php.net/)

[PHP] issue with Apache/PHP loadmodule

2006-06-26 Thread Alain Roger
Hi, I did this installation i do not know how many times...it worked till now. But it seems that today, i forget something and i'm lost :-( I have the following lines in my http.conf from apache 2.2 configuration file. # - for PHP LoadModule php5_module "c:\PHP\php5apache2.dll" AddType

[PHP] Fatal error: Call to a member function fetchRow() on a non-object in C:\Xampp\xampp\htdocs...

2006-06-26 Thread j . kuehne
Hello I am pleased if someone could explain me since is wrong the following function call: ($row = & $result->fetchRow(DB_FETCHMODE_ASSOC, $_SESSION["searchFormVars"]["offset"]+$rowCounter)); as you will find them on the bottom of the email. By the way, fetchRow() is an object from class DB(.p

Re: [PHP] uploading...

2006-06-26 Thread Jochem Maas
BBC wrote: > hi all... > I have the problem about this syntax: > >$db->query("INSERT INTO `products` > > (`code`,`size`,`description`,`material`,`ads`,`price`,`new`,`categorynr`) >VALUES >('$code', > '$size', > '$description', > '$material', >

Re: [PHP] uploading...

2006-06-26 Thread cajbecu
Please give us output of the error that mysql returns. cheers, BBC wrote: > hi all... > I have the problem about this syntax: > >$db->query("INSERT INTO `products` > > (`code`,`size`,`description`,`material`,`ads`,`price`,`new`,`categorynr`) >VALUES >('$code', > '$

[PHP] uploading...

2006-06-26 Thread BBC
hi all... I have the problem about this syntax: $db->query("INSERT INTO `products` (`code`,`size`,`description`,`material`,`ads`,`price`,`new`,`categorynr`) VALUES ('$code', '$size', '$description', '$material', '$ads', '$price',

Re: [PHP] mysql-* versus db_* statements

2006-06-26 Thread David Tulloh
It's currently a little bit late in the US and you only waited 2 hours since your last post. While this is an international list the majority of the posters are US based. Not getting a response within two hours at this time is not unusual and you should probably be more patient. As for your prob

[PHP] Re: XML

2006-06-26 Thread weetat
Hi all , Can I edit the xml file before doing xml parsing ? My xml file is around 16MB size. Anyone have any ideas how to do that? Thanks weetat wrote: Add on : I got this error when i using xmldocfile() function to read the xml file , Warning: xmldocfile(): /home/gvintranet/datacraft/h

[PHP] Re: XML

2006-06-26 Thread weetat
Add on : I got this error when i using xmldocfile() function to read the xml file , Warning: xmldocfile(): /home/gvintranet/datacraft/htdocs/uploads/test_cdata.xml:99: in /home/gvintranet/datacraft/htdocs/admin/test_writexml.php on line 6 Warning: xmldocfile(): error: in /home/gvintranet

[PHP] mysql-* versus db_* statements

2006-06-26 Thread j . kuehne
Could someone explain the behaviour of the following code fragments. I have a serious problem with db-statements. ##

RE: [PHP] Only see class member variables, not parent class member variables

2006-06-26 Thread Peter Lauri
Thanks. I will ignore it, it is not a big deal in my Development. Was more curious if where was an easy way :) I am using PHP4 -Original Message- From: Jochem Maas [mailto:[EMAIL PROTECTED] Sent: Monday, June 26, 2006 3:50 PM To: Peter Lauri Cc: php-general@lists.php.net Subject: Re: [PH

[PHP] XML

2006-06-26 Thread weetat
Hi all, I am using PHP 4.3.2 in Red Hat Entreprise. I have xml file which have tags as show below: I need to lookup for Hardware Version tag in php ,and edit the value to empty string and save the modified xml file. Any one have any ideas how to do this? -- PHP General Mailing L

Re: [PHP] Only see class member variables, not parent class member variables

2006-06-26 Thread Jochem Maas
Peter Lauri wrote: > Hi, > > I have a class B that extends A. When I do print_r($object_b) it outputs all > member variables from A and B. I just want to see the variables from B > excluding the one that B inherits from A, how can I do that? This is just > for development; I will of course need to

[PHP] Re: login problem

2006-06-26 Thread Barry
suresh kumar schrieb: Hi, I am facing one problem.i previously mailed ,but there is no response,its running out of time. There are responses. You should read them! And we are here not for coding stuff for you, you totally misunderstand what this mailing list is for. I told you last ti

Re: [PHP] login problem

2006-06-26 Thread kartikay malhotra
Dear SK, alternately, close previously opened A/C and allow current one. this is similar to wat yahoo messenger does and is a good safety measure. 1. If u use this technique, ur problem of shutdown would be solved. 2. Alternately, maintain sessions (using session ID) in PHP. 2a. Or just monito

[PHP] mysql-* versus db-* statements

2006-06-26 Thread j . kuehne
Original Message Subject: Re: [PHP-DEV] mysql-* versus db_* statements (26-Jun-2006 9:21) From:[EMAIL PROTECTED] To: [EMAIL PROTECTED] Please user php-general@lists.php.net for such questions. Thank you. On 26.06.2006 11:10, [EMAIL PROTECTED] wrote: > require_once "DB

Re: [PHP] mail() returns false but e-mail is sent ?

2006-06-26 Thread Leonidas Safran
Hello, > Show us the full context of the code. The example you give us will work fine > but that doesn't tell us what's really going on in your code. Here is the function I use to allow french special characters in the subject line (copied from german university tutorial http://www-cgi.uni-reg

Re: [PHP] Array to String

2006-06-26 Thread Jochem Maas
weetat wrote: > Hi all, > > I have the error below in my PHP version 4.3.2: > > PHP Notice: Array to string conversion in /data/html/library/config.php > on line 45 > > If i have turned "on" the magic_quotes in php.ini, it is ok . > Any ideas? > > It cause by the code below: > > if (!get_ma