php-general Digest 27 Jun 2006 01:15:31 - Issue 4207
Topics (messages 238636 through 238673):
Re: Fatal error: Call to a member function fetchRow() on a non-object in
C:\Xampp\xampp\htdocs...
238636 by: Jochem Maas
Re: mysql-* versus db-* statements
238637 by: Jochem Maas
2006/6/26, Ligaya Turmelle [EMAIL PROTECTED]:
Martin Alterisio wrote:
offtopic type=slightly offtopic class=poetic literary
A sad poem of an algorithm where solitude brought excessive use of cpu
cycles and memory allocation for redundant data (it copied over and over
again the same image
Yes, turning off the magic_quotes_runtime directive makes a difference. But
the image is still distorted. All three magic_quotes directives are now set to
the same value in both the servers.
Are there any other settings I should look out for?
Thanks.
Prathap
-- Original Message
Prathaban Mookiah wrote:
Yes, turning off the magic_quotes_runtime directive makes a difference. But
the image is still distorted. All three magic_quotes directives are now set to
the same value in both the servers.
Are there any other settings I should look out for?
Try a CTRL+F5 to make
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
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
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
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
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
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 use
Hi all,
I am using PHP 4.3.2 in Red Hat Entreprise.
I have xml file which have tags as show below:
HardwareVersion![CDATA[�ù?¸€ü÷Œ�ú�ù?à�ù?Ø€�Z4À„�Ï]]/HardwareVersion
I need to lookup for Hardware Version tag in php ,and edit the value
to empty string and save the modified xml
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:
Could someone explain the behaviour of the following code fragments. I have a
serious problem with db-statements.
##
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
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():
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
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',
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',
'$size',
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',
'$ads',
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(.php).
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
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/)
[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, fetchRow() is
[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
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
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 `products`
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
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,
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
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
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)
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
[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
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
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
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
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)
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 executed if
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
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,
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:
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
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.
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 accomplish
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 Mailing
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
$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. For example:
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
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
[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
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
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:
$someBuildinglevel
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
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 $$var2; #
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
{
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
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
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.
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
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
PROTECTED]
Hi,
Is there a function that can detect the OS on which the script is running?
Thank you.
M.
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
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 - server side -
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
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 from
65 matches
Mail list logo