[PHP] A stupid question...

2002-03-10 Thread Chuck \"PUP\" Payne
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 | | www.magides

[PHP] A stupid question?

2008-01-17 Thread Shelley Shyan
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

[PHP] a stupid question

2003-07-24 Thread Joe
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

[PHP] a stupid question

2004-06-24 Thread Blake Schroeder
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

Re: [PHP] A stupid question?

2008-01-17 Thread Jim Lucas
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

Re: [PHP] A stupid question?

2008-01-17 Thread David Wonderly
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

Re: [PHP] A stupid question?

2008-01-18 Thread Jochem Maas
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 sessi

Re: [PHP] A stupid question?

2008-01-18 Thread Eric Butera
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 c

Re: [PHP] A stupid question?

2008-01-18 Thread Jochem Maas
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 call

Re: [PHP] A stupid question?

2008-01-18 Thread Eric Butera
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

Re: [PHP] A stupid question?

2008-01-18 Thread Jochem Maas
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

Re: [PHP] A stupid question?

2008-01-18 Thread Richard Lynch
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 sta

Re: [PHP] A stupid question?

2008-01-18 Thread Eric Butera
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

RE: [PHP] A stupid question?

2008-01-20 Thread Shelley Shyan
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: &g

Re: [PHP] a stupid question

2003-07-24 Thread Jacob Vennervald Madsen
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 Mail

Re: [PHP] a stupid question

2003-07-24 Thread Joe
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 > >

Re: [PHP] a stupid question

2004-06-24 Thread Ashwin Purohit
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().

Re: [PHP] a stupid question

2004-06-24 Thread Matt Matijevich
[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

Re: [PHP] a stupid question

2004-06-24 Thread Blake Schroeder
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 unsubscrib

Re: [PHP] a stupid question

2004-06-24 Thread David Goodlad
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 aFu

Re: [PHP] a stupid question

2004-06-24 Thread Matt Matijevich
[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/)

RE: [PHP] a stupid question

2004-06-24 Thread Vail, Warren
t;<< } This should allow 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 PR

Re: [PHP] a stupid question

2004-06-24 Thread Michal Migurski
> 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? - mich

Re: [PHP] a stupid question

2004-06-24 Thread Curt Zirzow
* 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: Subject: Calling a function between stri

RE: [PHP] a stupid question

2004-06-25 Thread Alicia Riggs
14-550-7452 -Original Message- 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 functi

Re: [PHP] a stupid question

2004-06-25 Thread Randy C Boland
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";

RE: [PHP] a stupid question

2004-06-25 Thread Philip Olson
>> 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 t

Re: [PHP] a stupid question

2004-06-25 Thread Blake Schroeder
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();

[PHP] A stupid question about classes

2010-05-01 Thread Andre Polykanine
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 vari

Re: [PHP] A stupid question about classes

2010-05-01 Thread Nilesh Govindarajan
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

Re[2]: [PHP] A stupid question about classes

2010-05-01 Thread Andre Polykanine
bber: arthaelon @ jabber.org Yahoo! messenger: andre.polykanine; ICQ: 191749952 Twitter: m_elensule - Original message - From: Nilesh Govindarajan To: php-general@lists.php.net Date: Saturday, May 1, 2010, 8:16:37 PM Subject: [PHP] A stupid question about classes On 05/01/2010 10:23 PM, A

Re[4]: [PHP] A stupid question about classes

2010-05-01 Thread Andre Polykanine
ndre Polykanine Date: Saturday, May 1, 2010, 10:49:49 PM Subject: [PHP] A stupid question about classes On 1 May 2010 20:38, Andre Polykanine wrote: > Hello Nilesh, > > So could you illustrate a bit the __construct() function, please? > Should I pass those variables as parameters of that fu

Re: Re[2]: [PHP] A stupid question about classes

2010-05-01 Thread Richard Quadling
On 1 May 2010 20:38, Andre Polykanine 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! stmp_server = $smtp_server; $t