Re: [PHP] Stupid question

2013-02-28 Thread Daniel Brown
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

Re: [PHP] Stupid question

2013-02-27 Thread Curtis Maurand
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

Re: [PHP] Stupid question

2013-02-27 Thread tamouse mailing lists
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

Re: [PHP] Stupid question

2013-02-27 Thread Sebastian Krebs
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

Re: [PHP] Stupid question

2013-02-26 Thread 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_buffering' => false, >> ); >> $dbh =& MDB2::factory($dsn,

Re: [PHP] Stupid question

2013-02-26 Thread Jim Lucas
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

Re: [PHP] Stupid question

2013-02-26 Thread Serge Fonville
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

Re: [PHP] Stupid question

2013-02-26 Thread Curtis Maurand
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

Re: [PHP] Stupid question

2013-02-26 Thread Ashley Sheridan
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

Re: [PHP] Stupid question

2013-02-26 Thread Daniel Brown
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

Re: [PHP] Stupid question of the day (Editing text file in $HOME via web)

2006-11-01 Thread Richard Lynch
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.

Re: [PHP] Stupid question of the day (Editing text file in $HOME via web)

2006-10-31 Thread Google Kreme
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

Re: [PHP] Stupid question of the day (Editing text file in $HOME via web)

2006-10-31 Thread Richard Lynch
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

Re: [PHP] Stupid question of the day (Editing text file in $HOME via web)

2006-10-31 Thread Ed Lazor
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

Re: [PHP] stupid question...compiling php

2006-08-07 Thread Andrew Kreps
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

Re: [PHP] stupid question...compiling php

2006-08-07 Thread Jochem Maas
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

Re: [PHP] stupid question...compiling php

2006-08-07 Thread blackwater dev
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

Re: [PHP] stupid question...compiling php

2006-08-07 Thread Jochem Maas
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

Re: [PHP] stupid question about a class

2004-12-08 Thread Richard Lynch
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

RE: [PHP] stupid question about a class

2004-12-08 Thread Stefan
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 >

Re: [PHP] Stupid question

2004-12-04 Thread Greg Donald
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

Re: [PHP] Stupid question

2004-12-04 Thread Raditha Dissanayake
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

RE: [PHP] Stupid question

2004-03-17 Thread Robert Cummings
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 | :---

Re: [PHP] Stupid question

2004-03-17 Thread Ben Ramsey
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

RE: [PHP] Stupid question

2004-03-17 Thread Jeff McKeon
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 > > >

Re: [PHP] Stupid question

2004-03-17 Thread Ben Ramsey
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

Re: [PHP] Stupid question

2004-03-17 Thread noginn
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

Re: [PHP] Stupid question

2004-03-17 Thread Aaron Gould
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

Re: [PHP] Stupid question

2004-03-17 Thread Robert Cummings
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

Re: [PHP] Stupid question perhaps?

2003-03-27 Thread Justin French
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,

RE: [PHP] Stupid question perhaps?

2003-03-27 Thread Bryan Lipscy
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

Re: [PHP] Stupid question perhaps?

2003-03-27 Thread Tom Tsongas
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--

Re: [PHP] Stupid question perhaps?

2003-03-27 Thread Evan Nemerson
-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

Re: [PHP] Stupid question perhaps?

2003-03-27 Thread Andrew Powell
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

Re: [PHP] Stupid Question

2003-03-07 Thread Liam Gibbs
> 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

Re: [PHP] Stupid question, sorry...

2003-02-06 Thread Jason Sheets
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

Re: [PHP] stupid question (Back Function)

2003-01-13 Thread David T-G
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

RE: [PHP] stupid question (Back Function)

2003-01-13 Thread Sean Malloy
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

Re: [PHP] stupid question

2002-08-15 Thread Michael Sims
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

RE: [PHP] stupid question

2002-08-14 Thread César Aracena
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

Re: [PHP] stupid question

2002-08-14 Thread Chris Shiflett
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

Re: [PHP] stupid question

2002-08-14 Thread Chris Shiflett
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

Re: [PHP] stupid question

2002-08-14 Thread Adam Williams
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

RE: [PHP] stupid question

2002-08-14 Thread César Aracena
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

RE: [PHP] Stupid question

2002-05-02 Thread Pushkar Pradhan
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

RE: [PHP] Stupid question

2002-05-02 Thread Robert V. Zwink
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

RE: [PHP] Stupid question

2002-05-02 Thread Dan Hardiker
>> 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() >

RE: [PHP] Stupid question

2002-05-02 Thread Craig Vincent
> 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 Question

2002-02-28 Thread PHP List
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

RE: [PHP] Stupid Question

2002-02-28 Thread DARCY,MATTHEW (Non-HP-UnitedKingdom,ex2)
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

Re: [PHP] Stupid Question

2002-02-28 Thread Greg Donald
> 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

RE: [PHP] Stupid Question

2002-02-28 Thread DARCY,MATTHEW (Non-HP-UnitedKingdom,ex2)
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

RE: [PHP] Stupid Question

2002-02-28 Thread Jackson Miller
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

Re: [PHP] Stupid Question

2002-02-28 Thread Greg Donald
> 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. -

Re: [PHP] Stupid question alert

2002-01-04 Thread Bogdan Stancescu
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