On 2/26/2013 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($mdb2))
{
Perhaps he could share all relevant code, since at this time we are mostly
guessing.
Declaration/assignment of a lot of variables isn't included in the snippets.
HTH
Kind regards/met vriendelijke groet,
Serge Fonville
http://www.sergefonville.nl
Convince Microsoft!
They need to add TRUNCATE
-Original Message-
From: Jim Giner [mailto:jim.gi...@albanyhandball.com]
Sent: 27 February 2013 12:28
2 - you have a couple indices wrapped in curly braces, not parens.
Is
that some new kind of syntax I'm not aware of?
No, that's some old kind of syntax you have no reason to be
Hello everyone,
Just a basic question.
I have my class starting like this:
Class OireMail {
// these are required
public $smtp_server=;
public $domain=;
public $from=;
public $login=;
public $pass=;
And then go the function themselves.
I was told that it's better to put the initial variables in
On 05/01/2010 10:23 PM, Andre Polykanine wrote:
Hello everyone,
Just a basic question.
I have my class starting like this:
Class OireMail {
// these are required
public $smtp_server=;
public $domain=;
public $from=;
public $login=;
public $pass=;
And then go the function themselves.
I was told
: arthaelon @
jabber.org
Yahoo! messenger: andre.polykanine; ICQ: 191749952
Twitter: m_elensule
- Original message -
From: Nilesh Govindarajan li...@itech7.com
To: php-general@lists.php.net php-general@lists.php.net
Date: Saturday, May 1, 2010, 8:16:37 PM
Subject: [PHP] A stupid question about
On 1 May 2010 20:38, Andre Polykanine an...@oire.org wrote:
Hello Nilesh,
So could you illustrate a bit the __construct() function, please?
Should I pass those variables as parameters of that function? And what
if I need to change their values?)
Thanks!
?php
// The generic class which can
...@googlemail.com
To: Andre Polykanine an...@oire.org
Date: Saturday, May 1, 2010, 10:49:49 PM
Subject: [PHP] A stupid question about classes
On 1 May 2010 20:38, Andre Polykanine an...@oire.org wrote:
Hello Nilesh,
So could you illustrate a bit the __construct() function, please?
Should I pass those
Regards,
Shelley
-Original Message-
From: Eric Butera [mailto:[EMAIL PROTECTED]
Sent: Saturday, January 19, 2008 12:03 AM
To: Jochem Maas
Cc: php-general@lists.php.net
Subject: Re: [PHP] A stupid question?
On Jan 18, 2008 10:49 AM, Jochem Maas [EMAIL PROTECTED] wrote:
Eric Butera
Shelley Shyan schreef:
Hi all,
Maybe this is a somehow stupid question.
I want to know how php could know whether session_start() has been called, that
is, whether session has been started.
you can do it by checking the return value of session_id() if it's empty you
can be pretty
sure
On Jan 18, 2008 9:31 AM, Jochem Maas [EMAIL PROTECTED] wrote:
Eric Butera schreef:
On Jan 17, 2008 9:54 PM, Shelley Shyan [EMAIL PROTECTED] wrote:
Hi all,
Maybe this is a somehow stupid question.
I want to know how php could know whether session_start() has been called,
that is,
Eric Butera schreef:
On Jan 18, 2008 9:31 AM, Jochem Maas [EMAIL PROTECTED] wrote:
Eric Butera schreef:
On Jan 17, 2008 9:54 PM, Shelley Shyan [EMAIL PROTECTED] wrote:
Hi all,
Maybe this is a somehow stupid question.
I want to know how php could know whether session_start() has been called,
On Jan 18, 2008 10:49 AM, Jochem Maas [EMAIL PROTECTED] wrote:
Eric Butera schreef:
On Jan 18, 2008 9:31 AM, Jochem Maas [EMAIL PROTECTED] wrote:
Eric Butera schreef:
On Jan 17, 2008 9:54 PM, Shelley Shyan [EMAIL PROTECTED] wrote:
Hi all,
Maybe this is a somehow stupid question.
Eric Butera schreef:
On Jan 17, 2008 9:54 PM, Shelley Shyan [EMAIL PROTECTED] wrote:
Hi all,
Maybe this is a somehow stupid question.
I want to know how php could know whether session_start() has been called, that
is, whether session has been started.
I Googled, but got little help.
Thank
if (session_id()){
//no session yet
}
else{
//we have lift-off!
}
On Thu, January 17, 2008 8:54 pm, Shelley Shyan wrote:
Hi all,
Maybe this is a somehow stupid question.
I want to know how php could know whether session_start() has been
called, that is, whether session has been started.
On Jan 17, 2008 9:54 PM, Shelley Shyan [EMAIL PROTECTED] wrote:
Hi all,
Maybe this is a somehow stupid question.
I want to know how php could know whether session_start() has been called,
that is, whether session has been started.
I Googled, but got little help.
Thank you for help!
Any
Hi all,
Maybe this is a somehow stupid question.
I want to know how php could know whether session_start() has been called, that
is, whether session has been started.
I Googled, but got little help.
Thank you for help!
Any tip is greatly appreciated.
Regards,
Shelley
Shelley Shyan wrote:
Hi all,
Maybe this is a somehow stupid question.
I want to know how php could know whether session_start() has been called, that
is, whether session has been started.
I Googled, but got little help.
Thank you for help!
Any tip is greatly appreciated.
Regards,
Shelley
On Fri, 2008-01-18 at 10:54 +0800, Shelley Shyan wrote:
Hi all,
Maybe this is a somehow stupid question.
I want to know how php could know whether session_start() has been called,
that is, whether session has been started.
I Googled, but got little help.
Thank you for help!
Any
Do phpinfo() for that, you will find that information there.
/Peter
Phpu [EMAIL PROTECTED] skrev i meddelandet
news:[EMAIL PROTECTED]
Hi,
If i have a php and mysql website...how many connections support mysql at
one time ?
Thanks
--
PHP General Mailing List (http://www.php.net/)
To
* Phpu [EMAIL PROTECTED]:
If i have a php and mysql website...how many connections support mysql =
at one time ?
Depends on your mysql setup; you'll have to look at the mysql
configuration file (/etc/my.cnf on most *nices).
--
Matthew Weier O'Phinney | mailto:[EMAIL PROTECTED]
-
From: Blake Schroeder [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 24, 2004 4:45 PM
To: PHP List
Subject: [PHP] a stupid question
Hey
I cant figureout the syntax please help
echo Some text.aFunction().some more text;
The function is not working.
Thanks
-B
--
PHP General Mailing List
That would work if aFunction was a variable - more less. It would
display the inner single quotes, so you'd really want:
echo some text $aFunction some more text;
However, aFunction is, ironically, a function, so it needs to be a
function call.
echo some text . aFunction() . some more text;
On
I cant figureout the syntax please help
echo Some text.aFunction().some more text;
The function is not working.
Your problem is the paren's
echo 'some text' $aFunction 'some more text';
You need double quotes for the entire string, but single
quotes around the text so it knows it
Everyone
Thank you for all the great feedback. Since my function doesnt return
data it just echos it to the browser.
When I use this format it does not display correctly
echo some text . aFunction() . some more text;
If I use the orginal code it displays fine.
echo Some text;
aFunction();
echo
Hey
I cant figureout the syntax please help
echo Some text.aFunction().some more text;
The function is not working.
Thanks
-B
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Maybe it has to be Some text.aFunction();.sometext; with the
semicolon after the function.
I don't really know, just guessing.
On Thu, 24 Jun 2004 16:44:53 -0500, Blake Schroeder [EMAIL PROTECTED] wrote:
Hey
I cant figureout the syntax please help
echo Some text.aFunction().some more
[snip]
echo Some text.aFunction().some more text;
[/snip]
Have you checked to see if aFunction() is returning anything?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
The following code works:
echo Some text;
aFunction();
echo Some more text;
-B
Matt Matijevich wrote:
[snip]
echo Some text.aFunction().some more text;
[/snip]
Have you checked to see if aFunction() is returning anything?
.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
Perhaps using:
$ret = aFunction();
var_dump($ret);
Then you'll see if aFunction() is returning anything.
Dave
On Thu, 24 Jun 2004 16:48:18 -0500, Matt Matijevich
[EMAIL PROTECTED] wrote:
[snip]
echo Some text.aFunction().some more text;
[/snip]
Have you checked to see if aFunction() is
[snip]
echo Some text;
aFunction();
echo Some more text;
[/snip]
What is printed out?
if aFunction() is returning the string test then this code: echo
Some text.aFunction().some more text; should print out:
Some texttestsome more text
--
PHP General Mailing List (http://www.php.net/)
To
Echo some string value.aFunction().another string value;
To work,
Good luck,
Warren Vail
-Original Message-
From: Matt Matijevich [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 24, 2004 3:00 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [PHP] a stupid question
[snip]
echo
Maybe it has to be Some text.aFunction();.sometext; with the
semicolon after the function.
I don't really know, just guessing.
Yeesh, that's not even remotely valid PHP. Why would that have been posted
as advice?
-
michal
* Thus wrote Blake Schroeder:
Hey
I cant figureout the syntax please help
echo Some text.aFunction().some more text;
The function is not working.
For future reference, to make you're post not a stupid question it
would look more like:
snip
Subject: Calling a function between strings
I
when you are working with classes and objects in php, and you are coding
inside a class, you must use the $this variable to access the members of the
class, for example:
class test {
//Class vars (something like properties)
var $a;
var $b;
var $c;
var $sum;
//Class
as Chris W. Parker noticed, there is a little mistake in the example above
posted by me, it says:
//Class function
function set() {
$sum = $this-a . $this-b . $this-c;
}
and it should say:
//Class function
function set() {
$this-sum = $this-a . $this-b . $this-c;
}
sorry :P
luis.
Luis
Luis Mirabal mailto:[EMAIL PROTECTED]
on Wednesday, March 17, 2004 3:18 PM said:
as Chris W. Parker noticed, there is a little mistake in the example
above posted by me, it says:
i'd like to thank the academy, my parents, God, my cat, and all of those
that voted for me!
thank you!
kisses
how to check the filetype of remote file
because is_dir(), is_file() can't work on remote file
thx a lot
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Download it and then check it. But if you need to check a lot of files
that's probably to slow.
Jacob Vennervald
On Thu, 2003-07-24 at 06:03, Joe wrote:
how to check the filetype of remote file
because is_dir(), is_file() can't work on remote file
thx a lot
--
PHP General Mailing
thx
Jacob Vennervald Madsen [EMAIL PROTECTED] ¼¶¼g©ó¶l¥ó·s»D
:[EMAIL PROTECTED]
Download it and then check it. But if you need to check a lot of files
that's probably to slow.
Jacob Vennervald
On Thu, 2003-07-24 at 06:03, Joe wrote:
how to check the filetype of remote file
because
All single quotes around variables or escape characters are written out man!
it's as simple as that.
example you have a variable named $hey and you want to output $hey, you
can't it's gonna replace the content of that string with the value of $hey.
When you put stuff inside ' ' they are not
Chris Boget schrieb:
Why is it that \n gets translated to a _new line_ when in
double quotes whereas it's displayed as the literal when
in single quotes? I checked out the docs but couldn't
come up with a definitive answer. If someone could point
me to the right page in the docs that
I never saw that is it really working? it is supposed to be $_GLOBAL['lala']
too.. but..
--
Nicos - CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com - Hébergement de sites Internet
Alex Shi [EMAIL PROTECTED] a écrit dans le message de news:
[EMAIL PROTECTED]
I have almost two years of
I checked the code again...it is $Globals{'lala'}...
[EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I never saw that is it really working? it is supposed to be
$_GLOBAL['lala']
too.. but..
--
Nicos - CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com -
It looks like that some yrs ago, the variable $GLOBALS contains all the
variable of the page so thats like describing the variable of the page.
I'm not sure too, I've never tested/used it.
--
Nicos - CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com - H¨¦bergement de sites Internet
Alex Shi
Message -
From: Alex Shi [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, September 06, 2002 1:28 PM
Subject: [PHP] Re: stupid question
I checked the code again...it is $Globals{'lala'}...
[EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I n
Correction:
/* Get the first character of a string */
$str = 'This is a test.';
$first = $str{0};
$first will be 'T'
--
Nicos - CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com - Hébergement de sites Internet
Alex Shi [EMAIL PROTECTED] a écrit dans le message de news:
[EMAIL PROTECTED]
I
Liam, when you want to post a new message to the list don't just hit the
reply button and change the subject. If you do that you message appears
in the thread of the message you replied to.
It really messes things up for people who follow message threads. And
worse you might not get any
Ok, point taken.
Sorry, I didn't know.
Also, thanks for the help, I got it :-)
- Original Message -
From: Jean-Christian Imbeault [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 15, 2002 1:52 PM
Subject: [PHP] Re: stupid question
Liam, when you want to post a new
[EMAIL PROTECTED] (Liam Mackenzie) wrote:
I have a script that outputs this:
0.023884057998657
What's the command to make it shrink down to this:
0.023
round()
--
Henrik Hansen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
I not a newie but I am not a pro at mysql either. I want to do a query by
letter(a, b, c..ect.). Is there a simple way to do it. I am writing in PHP.
So can someone please so me the how.
| Chuck Payne |
| Magi Design and Support |
|
Thanks for everyone's comments. If I understand what you are saying it
should be possible to fill the content of a layer by issuing some sort of
server include command.. (?) So, for example, rather than have a something
that looks like this:
div id=haiti style=position:absolute; left:752px;
52 matches
Mail list logo