On Wed, Feb 27, 2013 at 9:14 PM, Curtis Maurand wrote:
>
> Well that means the docs on the PEAR MDB2 website are incorrect and should
> be fixed. Thanks for the lesson.
If there's an issue with the docs, you're right, they should
definitely be fixed. We'd appreciate it very much if you coul
On 2/27/2013 6:32 PM, tamouse mailing lists wrote:
On Wed, Feb 27, 2013 at 2:42 AM, Sebastian Krebs wrote:
2013/2/27 tamouse mailing lists
Well, *I* have a stupid question: is $lhv =& expr the same as $lhv = &expr
??
Yes :) Because an operator "=&" doesn't exists, thus the lexer will split
t
On Wed, Feb 27, 2013 at 2:42 AM, Sebastian Krebs wrote:
> 2013/2/27 tamouse mailing lists
>> Well, *I* have a stupid question: is $lhv =& expr the same as $lhv = &expr
>> ??
>
> Yes :) Because an operator "=&" doesn't exists, thus the lexer will split
> them into the tokens "= &", or "= WHITESPAC
2013/2/27 tamouse mailing lists
> On Tue, Feb 26, 2013 at 4:41 PM, Jim Lucas wrote:
> > On 02/26/2013 01:27 PM, Curtis Maurand wrote:
> >>
> >> I have the following:
> >>
> >> $dsn = "mysqli://$username:$password@$hostname2/$database";
> >> $options = array(
> >> 'debug' => 3,
> >> 'result_buffe
On Tue, Feb 26, 2013 at 4:41 PM, Jim Lucas wrote:
> On 02/26/2013 01:27 PM, Curtis Maurand wrote:
>>
>> I have the following:
>>
>> $dsn = "mysqli://$username:$password@$hostname2/$database";
>> $options = array(
>> 'debug' => 3,
>> 'result_buffering' => false,
>> );
>> $dbh =& MDB2::factory($dsn,
On 02/26/2013 01:27 PM, Curtis Maurand wrote:
I have the following:
$dsn = "mysqli://$username:$password@$hostname2/$database";
$options = array(
'debug' => 3,
'result_buffering' => false,
);
$dbh =& MDB2::factory($dsn, $options);
if (PEAR::isError($mdb2))
{
die($mdb2->getMessage());
}
funct
Hi,
I'm getting: Call to undefined method MDB2_Error::fetchrow()
Have your checked if $dbh->query() throws an error?
It seems $result is a different type than expected.
HTH
Kind regards/met vriendelijke groet,
Serge Fonville
http://www.sergefonville.nl
Convince Microsoft!
They need to add T
On 2/26/2013 4:33 PM, Daniel Brown wrote:
On Tue, Feb 26, 2013 at 4:27 PM, Curtis Maurand wrote:
I have the following:
$dsn = "mysqli://$username:$password@$hostname2/$database";
$options = array(
'debug' => 3,
'result_buffering' => false,
);
$dbh =& MDB2::factory($dsn, $option
Daniel Brown wrote:
>On Tue, Feb 26, 2013 at 4:27 PM, Curtis Maurand
>wrote:
>> I have the following:
>>
>> $dsn = "mysqli://$username:$password@$hostname2/$database";
>> $options = array(
>> 'debug' => 3,
>> 'result_buffering' => false,
>> );
>> $dbh =& MDB2::factory($dsn, $option
On Tue, Feb 26, 2013 at 4:27 PM, Curtis Maurand wrote:
> I have the following:
>
> $dsn = "mysqli://$username:$password@$hostname2/$database";
> $options = array(
> 'debug' => 3,
> 'result_buffering' => false,
> );
> $dbh =& MDB2::factory($dsn, $options);
> if (PEAR::isError($m
On Tue, October 31, 2006 9:42 pm, Google Kreme wrote:
>> My first guess would be to check out the various "panel" solutions
>> for
>> having a web interface that webhosts provide to edit what is
>> essentially a simple text file, which configures the web server,
>> mail
>> server, ftp server, etc.
On 31 Oct 2006, at 09:20 , Ed Lazor wrote:
On Oct 30, 2006, at 11:34 PM, Google Kreme wrote:
So, do I whack up something where I just load the file into a HTML
Textarea and then write it back (simple enough, though possibly
rather dangerous), or is there something straightforward I should
g
On Tue, October 31, 2006 1:34 am, Google Kreme wrote:
> So, do I whack up something where I just load the file into a HTML
> Textarea and then write it back (simple enough, though possibly
> rather dangerous), or is there something straightforward I should go
> ahead and use that might find use els
On Oct 30, 2006, at 11:34 PM, Google Kreme wrote:
So, do I whack up something where I just load the file into a HTML
Textarea and then write it back (simple enough, though possibly
rather dangerous), or is there something straightforward I should
go ahead and use that might find use elsewhe
I'll bet your hosting environment has not installed the php sources.
If the server is shared with other clients, you'll probably need to
download the source and compile php in your user space and run it as a
CGI (if your host allows this configuration). Hopefully they have
some allowances for thi
blackwater dev wrote:
> Ok, doing that now and it's taking a while.
it might take forever. I made a thinko, it should have been:
php -i | grep configure
(it should be pretty much instantaneous)
I can do phpinfo but that
> tells
> me the config line and where the ini files are, not necessarily
Ok, doing that now and it's taking a while. I can do phpinfo but that tells
me the config line and where the ini files are, not necessarily where the
configure stuff is to recompile...correct?
On 8/7/06, Jochem Maas <[EMAIL PROTECTED]> wrote:
blackwater dev wrote:
> Ok,
>
> I am using a hosted
blackwater dev wrote:
> Ok,
>
> I am using a hosted server and php is installed from the linux distro. I
> usually have all the stuff in a php file somewhere so I can just go back
> ./configure, etc. I can't seem to find the configure for php on this
> box so
> I can recompile but I know it is t
Richard Kurth wrote:
>
> I have a stupid question but I can not figure it out
> I am using a class that creates the select statement for mysql.
> I am ale to add all the data with out any problem. But when I run the
> class to get the results. I can only see the results by running echo in
> front o
In your class function you should move your query to a variable e.g. $query
Then:
return $query;
And in your main program:
$whatever = $q->getQuery();
__
Stefan
> -Ursprüngliche Nachricht-
> Von: Richard Kurth [mailto:[EMAIL PROTECTED]
> Gesendet: Mittwoch, 8. Dezember 2004 19:21
>
On Sun, 5 Dec 2004 02:48:09 +0200, Phpu <[EMAIL PROTECTED]> wrote:
> If i have a php and mysql website...how many connections support mysql at one
> time ?
The number of connections allowed is controlled by the max_connections
system variable. Its default value is 100. If you need to support more
Phpu wrote:
Hi,
If i have a php and mysql website...how many connections support mysql at one time ?
Sorry people in this list do not know how to configure mysql
Thanks
--
Raditha Dissanayake.
--
http://www.radinks.com/print/car
On Wed, 2004-03-17 at 16:08, Jeff McKeon wrote:
>
> Ewe... OOP
That should read:
$this->ewww( 'OOP' )
:)
--
..
| InterJinn Application Framework - http://www.interjinn.com |
:---
With PHP 5 looming on the horizon (and even many already using it), it'd
be a good idea to go ahead and learn OOP now. ;-)
Jeff McKeon wrote:
Ewe... OOP
Ok, I guess I'll have to learn OOP.
Thanks for the info!
Jeff
--
Regards,
Ben Ramsey
http://benramsey.com
http://www.phpcommunity
Ewe... OOP
Ok, I guess I'll have to learn OOP.
Thanks for the info!
Jeff
> -Original Message-
> From: Jordan S. Jones [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 17, 2004 4:02 PM
> To: Jeff McKeon
> Subject: Re: [PHP] Stupid question
>
>
>
If you were going to call that function you would use $this->testfunc();
You're on the right track. If you're going to call that function (or
"method") from within the class, then you use the $this. Also, you can
use $this to access member variables from within the class. Outside of
the clas
Jeff McKeon wrote:
I've been using PHP for about 6 months and I'm ok with it but I'm now
starting to get into more advanced stuff and inheriting project that
other people have coded. One of the major stumpers I have is any line
of code that contains:
$this->
What does this do? I know it has som
Jeff McKeon wrote:
$this->
What does this do? I know it has something to do with classes but can't
quite get my head around it.
You might want to check out this:
http://ca.php.net/oop
--
Aaron Gould
Parts Canada - Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscrib
On Wed, 2004-03-17 at 15:55, Jeff McKeon wrote:
> I've been using PHP for about 6 months and I'm ok with it but I'm now
> starting to get into more advanced stuff and inheriting project that
> other people have coded. One of the major stumpers I have is any line
> of code that contains:
>
> $this
PHP and Apache 2 don't boogie.
A lot has changed in PHP over those versions... did you read the
relase/upgrade notes across those versions?? I assume quite a lot of your
issues are in relation to the register_globals directive in php.ini, which
now defaults to off, not on. If you switch it back,
Anything in the apache error_log?
-Original Message-
From: Tom Tsongas [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 27, 2003 10:58 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Stupid question perhaps?
I just recently upgraded to PHP 4.3.1 and Apache 2.0.44. I had been
previously running
Thx for the feedback everyone.
Based on what most have told me, I think I will defer to an older Apache
version (1.3.x) and use that with the latest PHP. Not enough time to
experiment with getting newer Apache to work with newest PHP.
- Tom
Evan Nemerson wrote:
-BEGIN PGP SIGNED MESSAGE--
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
register globals is of in newer versions of php. you can re-enable it in the
php.ini.. See
http://www.php.net/manual/en/configuration.directives.php#ini.register-globals
On Thursday 27 March 2003 10:57 am, Tom Tsongas wrote:
> I just recently upgra
Tom:
The install.txt file that came with PHP 4.3.1 states:
At this time, support for Apache 2 is experimental. It's
highly recommended you use PHP with Apache 1.3.x and not
Apache 2.
aap
Tom Tsongas wrote:
> I just recently upgraded to PHP 4.3.1 and Apache 2.0.44. I had been
> previou
> How do you make a command not return a warning... I thought it was the
> @ sign, but i think i'm wrong, and everything i've tried hasn't worked,
> i want this for a switch command if that matters.
It's the @ sign. Put it right before the command, as in @fopen(). Show us
the line that is giving y
Because PHP performs evaluation on the contents of double quotes and
does not evaluate the contents of single quotes. This is covered in the
PHP manual in the Variables section at
http://www.php.net/manual/en/language.variables.php.
Jason
On Thu, 2003-02-06 at 08:27, Chris Boget wrote:
> Why is
Remon, et al --
...and then Remon Redika said...
%
% hi everyone,
Hi!
%
% It's Possible We used Php Scripting to Back the client Browser
Well, yes and no. There was just a new 'crumb' class released (see
http://www.phpclasses.org/browse.html/package/934.html
for more) which will let y
You could grab the referring page and send the user back to it, but some
proxies/software stop your browser from sending that information, so it
might not work in all situations
Back
however, quoting the docs on using the referrer:
This is set by the user agent (client browser). Not all user age
Liam MacKenzie wrote:
>>Ok, I'm having a blonde day...
>>
>>If $idx == 1, 4 or 9 I don't want it to echo $results.
>>I have this, what's the syntax to put multiple values in there?
>>
>>
>>if ($idx != "1") {
>>echo"$results";
>>}
Another way to do it is by using in_array(), like so:
if (!in_arr
You got a point there... unless you change the operator from != to ==
right? Missed that.
> -Original Message-
> From: Chris Shiflett [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 15, 2002 1:00 AM
> To: César Aracena
> Cc: 'Liam MacKenzie'; [EMAIL PROTE
César Aracena wrote:
>Just usa an OR concatenator like:
>
>If ($idx != '1' OR $idx != '4' OR $idx != '9'){
>echo $results;
>}
>
Actually, this statement will always evaluate to true. I think you mean
to use &&.
Chris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: h
There are other ways of doing this, but I think you might be looking for
the logical AND operator (&&).
if ($idx != "1" && $idx != "4" && $idx != "9")
Happy hacking.
Chris
Liam MacKenzie wrote:
>Ok, I'm having a blonde day...
>
>If $idx == 1, 4 or 9 I don't want it to echo $results.
>I have
if ( ($idx != "1") || ($idx != "4") || ($idx != "9") )
{
echo "$results";
}
Adam
On Thu, 15 Aug 2002, Liam MacKenzie wrote:
> Ok, I'm having a blonde day...
>
> If $idx == 1, 4 or 9 I don't want it to echo $results.
> I have this, what's the syntax to put multipl
Just usa an OR concatenator like:
If ($idx != '1' OR $idx != '4' OR $idx != '9'){
echo $results;
}
Remember that if you are echoing just $result, it should not be enclosed
into double quotes... just a tip.
> -Original Message-
> From: Liam MacKenzie [mailto:[EMAIL PROTECTED]]
> Sent: Th
gt;
>
> Robert V. Zwink
> http://www.zwink.net
>
>
> -Original Message-----
> From: Craig Vincent [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 02, 2002 5:54 AM
> To: Liam MacKenzie; [EMAIL PROTECTED]
> Subject: RE: [PHP] Stupid question
>
>
>
> > I
To: Liam MacKenzie; [EMAIL PROTECTED]
Subject: RE: [PHP] Stupid question
> I have a script that outputs this:
> 0.023884057998657
>
> What's the command to make it shrink down to this:
> 0.023
>
>
> I thought it was eregi() something, but I forgot. sorry
It depends
>> I have a script that outputs this:
>> 0.023884057998657
>>
>> What's the command to make it shrink down to this:
>> 0.023
>>
>> I thought it was eregi() something, but I forgot. sorry
>
> It depends on what you need.
>
> If you want to round the number off to 3 decimal points use the round()
>
> I have a script that outputs this:
> 0.023884057998657
>
> What's the command to make it shrink down to this:
> 0.023
>
>
> I thought it was eregi() something, but I forgot. sorry
It depends on what you need.
If you want to round the number off to 3 decimal points use the round()
function.
RE: [PHP] Stupid QuestionThanks for all the responses.
Just to be clear, I have php installed as a module, so I have to re-compile apache.
- Original Message -
From: Adam Plocher
To: 'PHP List'
Sent: Thursday, February 28, 2002 9:46 AM
Subject: RE: [PHP] Stupi
28, 2002 5:44 PM
To: Jackson Miller; PHP List; php
Subject: Re: [PHP] Stupid Question
> I thought that you do have to recompile if you are running PHP as a
module,
> but not if you are running PHP as CGI. I could be wrong.
No, you do not have to recompile apache. I did this on all three
> I thought that you do have to recompile if you are running PHP as a
module,
> but not if you are running PHP as CGI. I could be wrong.
No, you do not have to recompile apache. I did this on all three of my
machines:
./configure --with-apxs=/usr/sbin/apxs --with-mysql
make
make install
/usr/s
Subject: RE: [PHP] Stupid Question
I thought that you do have to recompile if you are running PHP as a module,
but not if you are running PHP as CGI. I could be wrong.
-Jackson
-Original Message-
From: Greg Donald [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 28, 2002 12:28 PM
To: PHP
I thought that you do have to recompile if you are running PHP as a module,
but not if you are running PHP as CGI. I could be wrong.
-Jackson
-Original Message-
From: Greg Donald [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 28, 2002 12:28 PM
To: PHP List; php
Subject: Re: [PHP
> Yes, this is probably in the manual, but I can't find it.
>
> If I want to upgrade from 4.0.6 to 4.1.2, do I have to re-compile apache
as
> well?
No. I just upgraded 3 machines this morning, and left Apache the same on
all of them.
-
Your question is not stupid - it's just uninformed, and that's easily
understandable if you never used PHP.
The concept is dynamically creating the page SERVER-SIDE. That is, use some
databases or some nifty code to dynamically build a page using specific
parameters. Unforunately for you, this me
55 matches
Mail list logo