RE: [PHP] newbie question about code

2010-09-10 Thread Bob McConnell
Did you mean to say That is a method call.? Bob McConnell - From: Joshua Kehn That is a function call. In Java: class Code { public static void function do_command(){ } } Code.do_command(); Regards, -Josh Joshua Kehn |

Re: [PHP] newbie question about code

2010-09-10 Thread Joshua Kehn
Bob- Yes, yes I did. And note that my Java code is incorrect, that should simply be public static void, no function. This is what I get for taking a week to code everything in Node.js. Regards, -Josh Joshua Kehn | josh.k...@gmail.com

Re: [PHP] newbie question about code

2010-09-10 Thread a...@ashleysheridan.co.uk
: [PHP] newbie question about code To: PHP General list php-general@lists.php.net I'm looking at someone's code to learn and I'm relatively new to programming. In the code I see commands like: $code-do_command(); I'm not really sure what that means. How would that look in procedural style

Re: [PHP] newbie question about code

2010-09-10 Thread a...@ashleysheridan.co.uk
Node.js, wouldn't that be javascript rather than java? :P Thanks, Ash http://www.ashleysheridan.co.uk - Reply message - From: Joshua Kehn josh.k...@gmail.com Date: Fri, Sep 10, 2010 19:32 Subject: [PHP] newbie question about code To: Bob McConnell r...@cbord.com Cc: Adam Williams

Re: [PHP] newbie question about code

2010-09-10 Thread Joshua Kehn
, Ash http://www.ashleysheridan.co.uk - Reply message - From: Joshua Kehn josh.k...@gmail.com Date: Fri, Sep 10, 2010 19:32 Subject: [PHP] newbie question about code To: Bob McConnell r...@cbord.com Cc: Adam Williams adam_willi...@bellsouth.net, PHP General list php-general

Re: [PHP] newbie question about code

2010-09-10 Thread tedd
At 2:27 PM -0400 9/10/10, Joshua Kehn wrote: Adam- That is a function call. In Java: class Code { public static void function do_command(){ } } Code.do_command(); Regards, -Josh Not just Java, but does I've seen this in several languages. Javascript is one. But realize that Java is

Re: [PHP] newbie question about code

2010-09-10 Thread Adam Richardson
This is what I get for taking a week to code everything in Node.js. It is a Friday, so I'll let my curiosity get the best of me and ask a follow-up on something non-PHP. What insights/impressions do you have regarding Node.js after a week of working with it? Thanks, Adam -- Nephtali:

Re: [PHP] newbie question about code

2010-09-10 Thread chris h
I would check this out to give you a decent understanding of php's oop. http://php.net/manual/en/language.oop5.php Chris. On Fri, Sep 10, 2010 at 2:27 PM, Adam Williams adam_willi...@bellsouth.netwrote: I'm looking at someone's code to learn and I'm relatively new to programming. In the

Re: [PHP] newbie question about code

2010-09-10 Thread Joshua Kehn
Adam- It is unique. I'm writing code that really can't be done any other way. How it handles events, sockets, etc is exceptional. The best part is everything now is JavaScript. The server (Node.js) is written in JavaScript. MongoDB is JavaScript. The frontend used to manage the WebSocket is

Re: [PHP] newbie question about code

2010-09-10 Thread Adam Richardson
On Fri, Sep 10, 2010 at 3:03 PM, Joshua Kehn josh.k...@gmail.com wrote: Adam- It is unique. I'm writing code that really can't be done any other way. How it handles events, sockets, etc is exceptional. The best part is everything now is JavaScript. The server (Node.js) is written in

[PHP] newbie sequel question: how do we search for multiple things on 1 field like:

2010-06-18 Thread Dave
SELECT * FROM contacts WHERE state = 'CA' and name = 'bob' or name = 'sam' or name = 'sara' -- Thanks - Dave -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] newbie sequel question: how do we search for multiple things on 1 field like:

2010-06-18 Thread Rick Dwyer
SELECT * FROM contacts WHERE state = 'CA' and (name = 'bob' or name = 'sam' or name = 'sara') --Rick On Jun 18, 2010, at 4:30 PM, Dave wrote: SELECT * FROM contacts WHERE state = 'CA' and name = 'bob' or name = 'sam' or name = 'sara' -- Thanks - Dave -- PHP General Mailing

Re: [PHP] newbie sequel question: how do we search for multiple things on 1 field like:

2010-06-18 Thread Daniel Brown
On Fri, Jun 18, 2010 at 16:30, Dave deal...@gmail.com wrote: SELECT * FROM contacts WHERE state = 'CA' and   name = 'bob' or name = 'sam' or name = 'sara' We begin by asking on the right list (my...@lists.mysql.com, CC'd by courtesy). You're on the right track though. Try a

Re: [PHP] newbie sequel question: how do we search for multiple things on 1 field like:

2010-06-18 Thread deal...@gmail.com
Thanks Daniel and Rick! I will start using this... We begin by asking on the right list (my...@lists.mysql.com, CC'd by courtesy). Thanks, Dave deal...@gmail.com [db-10] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] newbie sequel question: how do we search for multiple things on 1 field like:

2010-06-18 Thread Daniel Brown
On Fri, Jun 18, 2010 at 17:06, deal...@gmail.com deal...@gmail.com wrote: I will start using this...   We begin by asking on the right list (my...@lists.mysql.com, CC'd by courtesy). It was just an end-of-the-week jab, Dave. I mean, that's the correct list to use, but the response

Re: [PHP] Hello everybody - php newbie from switzerland

2010-04-22 Thread Per Jessen
Dan Joseph wrote: On Wed, Apr 21, 2010 at 8:38 PM, David McGlone da...@dmcentral.net wrote: Are we gonna have to have a discussion on the use of threading? LOL We just might. Personally, I use it to sow holes in the toe of my socks. My newsreader supports threading. -- Per

Re: [PHP] Hello everybody - php newbie from switzerland

2010-04-21 Thread David McGlone
On Wed, 2010-04-21 at 00:08 +0200, Nick Balestra wrote: Hello everybody, I am NIck, from Locarno (southern switzerland) i am getting into php development for my own start-up company, maybe there are other people near me that would be nice to know for networking and alike. I will post here

Re: [PHP] Hello everybody - php newbie from switzerland

2010-04-21 Thread tedd
At 12:08 AM +0200 4/21/10, Nick Balestra wrote: Hello everybody, I am NIck, from Locarno (southern switzerland) i am getting into php development for my own start-up company, maybe there are other people near me that would be nice to know for networking and alike. I will post here all my

Re: [PHP] Hello everybody - php newbie from switzerland

2010-04-21 Thread Michiel Sikma
On 21 April 2010 18:02, tedd tedd.sperl...@gmail.com wrote: Welcome Nick. Do you own a bank? :-) Cheers, tedd C'mon, this is the PHP list, not COBOL :) But yes, welcome to the list. Frequenting a list is one of the best things you can do when learning a language. Don't be afraid to

Re: [PHP] Hello everybody - php newbie from switzerland

2010-04-21 Thread Brandon Rampersad
What's wrong with asking if PHP supports threading? On Wed, Apr 21, 2010 at 5:33 PM, Michiel Sikma mich...@thingmajig.orgwrote: On 21 April 2010 18:02, tedd tedd.sperl...@gmail.com wrote: Welcome Nick. Do you own a bank? :-) Cheers, tedd C'mon, this is the PHP list, not

Re: [PHP] Hello everybody - php newbie from switzerland

2010-04-21 Thread Dan Joseph
On Wed, Apr 21, 2010 at 6:21 PM, Brandon Rampersad brandon.add...@gmail.com wrote: What's wrong with asking if PHP supports threading? Nothing? PHP itself does not. You can check out fork though. I've never personally used it with PHP, but I did for a Perl project years ago. I guess it

RE: [PHP] Hello everybody - php newbie from switzerland

2010-04-21 Thread Tommy Pham
-Original Message- From: Dan Joseph [mailto:dmjos...@gmail.com] Sent: Wednesday, April 21, 2010 4:49 PM To: php-general@lists.php.net Subject: Re: [PHP] Hello everybody - php newbie from switzerland On Wed, Apr 21, 2010 at 6:21 PM, Brandon Rampersad brandon.add...@gmail.com

Re: [PHP] Hello everybody - php newbie from switzerland

2010-04-21 Thread David McGlone
On Wed, 2010-04-21 at 18:21 -0400, Brandon Rampersad wrote: What's wrong with asking if PHP supports threading? Nothing really, I was just kidding. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Hello everybody - php newbie from switzerland

2010-04-21 Thread Dan Joseph
On Wed, Apr 21, 2010 at 8:09 PM, David McGlone da...@dmcentral.net wrote: On Wed, 2010-04-21 at 18:21 -0400, Brandon Rampersad wrote: What's wrong with asking if PHP supports threading? Nothing really, I was just kidding. -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Hello everybody - php newbie from switzerland

2010-04-21 Thread David McGlone
On Wed, 2010-04-21 at 20:12 -0400, Dan Joseph wrote: On Wed, Apr 21, 2010 at 8:09 PM, David McGlone da...@dmcentral.net wrote: On Wed, 2010-04-21 at 18:21 -0400, Brandon Rampersad wrote: What's wrong with asking if PHP supports threading? Nothing really, I was just kidding. --

Re: [PHP] Hello everybody - php newbie from switzerland

2010-04-21 Thread Dan Joseph
On Wed, Apr 21, 2010 at 8:38 PM, David McGlone da...@dmcentral.net wrote: Are we gonna have to have a discussion on the use of threading? LOL We just might. Personally, I use it to sow holes in the toe of my socks. -- -Dan Joseph www.canishosting.com - Unlimited Hosting Plans start @

[PHP] Hello everybody - php newbie from switzerland

2010-04-20 Thread Nick Balestra
Hello everybody, I am NIck, from Locarno (southern switzerland) i am getting into php development for my own start-up company, maybe there are other people near me that would be nice to know for networking and alike. I will post here all my questions if i don't find any answer already on this

Re: [PHP] Hello everybody - php newbie from switzerland

2010-04-20 Thread Dan Joseph
On Tue, Apr 20, 2010 at 6:08 PM, Nick Balestra n...@beyounic.com wrote: I am NIck, from Locarno (southern switzerland) i am getting into php development for my own start-up company, maybe there are other people near me that would be nice to know for networking and alike. I will post here all

Re: [PHP] Newbie Question about Conditionals

2010-03-31 Thread Richard Quadling
On 31 March 2010 05:45, Matty Sarro msa...@gmail.com wrote: That explains it perfectly, thanks you! On Wed, Mar 31, 2010 at 12:40 AM, Tommy Pham tommy...@gmail.com wrote: On Tue, Mar 30, 2010 at 9:22 PM, Matty Sarro msa...@gmail.com wrote: Hey all! This is probably my second post on the

Re: [PHP] Newbie Question about Conditionals

2010-03-31 Thread Matty Sarro
After looking up the === operator, I see exactly what you mean. Thanks for your help everyone. I think the confusion was that I was always under the impression that assignment is either true or false; I would never have guessed it was equal to the value assigned. Your examples really helped to

[PHP] Newbie Question about Conditionals

2010-03-30 Thread Matty Sarro
Hey all! This is probably my second post on the list, so please be gentle. Right now I am running through the Heads First PHP and MySQL book from O'Reilly. It's been quite enjoyable so far, but I have some questions about some of the code they're using in one of the chapters. Basically the code

Re: [PHP] Newbie Question about Conditionals

2010-03-30 Thread Tommy Pham
On Tue, Mar 30, 2010 at 9:22 PM, Matty Sarro msa...@gmail.com wrote: Hey all! This is probably my second post on the list, so please be gentle. Right now I am running through the Heads First PHP and MySQL book from O'Reilly. It's been quite enjoyable so far, but I have some questions about

Re: [PHP] Newbie Question about Conditionals

2010-03-30 Thread Matty Sarro
That explains it perfectly, thanks you! On Wed, Mar 31, 2010 at 12:40 AM, Tommy Pham tommy...@gmail.com wrote: On Tue, Mar 30, 2010 at 9:22 PM, Matty Sarro msa...@gmail.com wrote: Hey all! This is probably my second post on the list, so please be gentle. Right now I am running through

[PHP] Newbie needs help

2010-01-07 Thread John Taylor-Johnston
$content = ... a bunch of text with some !--protected--protected information!--/protected-- with some more text with some more !--protected--tabletrtdmore protected text/td/tr/table!--/protected-- and even !--protected--bsome protected contentb!--/protected--; I want to replace any content

Re: [PHP] Newbie needs help

2010-01-07 Thread viraj
try http://www.php.net/manual/en/function.preg-replace-callback.php. you need to read a bit on 'regular expressions' http://www.gskinner.com/RegExr/ will be handy in crafting a suitable regex to capture your 'tags' ~viraj On Thu, Jan 7, 2010 at 2:16 PM, John Taylor-Johnston

Re: [PHP] Newbie needs help

2010-01-07 Thread John Taylor-Johnston
Great. Ok. Thanks. [I'm a top quoter)]. I'll look at it. This was my dirty way of hacking it: if (($current_user-id == 0) ($user_ID == 0)) { $content = str_replace('!--protected--', 'bProtected !--', $content); $content = str_replace('!--/protected--', '-- Content/b a href=/wp-login.php[Log

Re: [PHP] Newbie: Array of objects iteration

2009-10-11 Thread Tommy Pham
- Original Message From: MEM tal...@gmail.com To: Tommy Pham tommy...@yahoo.com; php-general@lists.php.net Sent: Sat, October 10, 2009 2:49:23 AM Subject: RE: [PHP] Newbie: Array of objects iteration MEM, http://www.php.net/language.oop5.reflection Regards, Tommy

RE: [PHP] Newbie: Array of objects iteration

2009-10-10 Thread MEM
MEM, http://www.php.net/language.oop5.reflection Regards, Tommy And brand new world opens in from of my eyes... O.O. I will search more info on this on the net... just for the records, as properties names is concern, I couldn't find any better I suppose:

Re: [PHP] Newbie: Array of objects iteration

2009-10-10 Thread Torben Wilson
2009/10/10 MEM tal...@gmail.com: MEM, http://www.php.net/language.oop5.reflection Regards, Tommy And brand new world opens in from of my eyes... O.O. I will search more info on this on the net... just for the records, as properties names is concern, I couldn't find any better I

Re: [PHP] Newbie: Array of objects iteration

2009-10-09 Thread Fernando Castillo Aparicio
;-) De: MEM tal...@gmail.com Para: php-general@lists.php.net Enviado: jue,8 octubre, 2009 22:59 Asunto: [PHP] Newbie: Array of objects iteration Hello all, I'm grabbing all records from a table using: $records = $stmt-fetchAll(PDO::FETCH_OBJ); return $records; In order

Re: [PHP] Newbie: Array of objects iteration

2009-10-09 Thread Lester Caine
Fernando Castillo Aparicio wrote: I think you are just looking for the key in the wrong place. Try: foreach ( $records as $record ) { foreach( $record as $column=$value ) { echo $column is $value\n; } } You've got the columns names in each record, not in the global

RE: [PHP] Newbie: Array of objects iteration

2009-10-09 Thread MEM
07:23 To: php-general@lists.php.net Subject: Re: [PHP] Newbie: Array of objects iteration Fernando Castillo Aparicio wrote: I think you are just looking for the key in the wrong place. Try: foreach ( $records as $record ) { foreach( $record as $column=$value ) { echo

Re: [PHP] Newbie: Array of objects iteration

2009-10-09 Thread Fernando Castillo Aparicio
De: MEM tal...@gmail.com Para: Lester Caine les...@lsces.co.uk; php-general@lists.php.net Enviado: vie,9 octubre, 2009 12:40 Asunto: RE: [PHP] Newbie: Array of objects iteration @LinuxManMikeC and all @All Thanks. I was more or less aware of that possibility

RE: [PHP] Newbie: Array of objects iteration

2009-10-09 Thread MEM
Correct about my example, although I'm not sure if you get each record as an array or as an object. Anyway, you can iterate both. And if you want to get the column names, I suppose you could use array_keys() on the first record if you receive an array, or maybe get_object_vars() if it's an

RE: [PHP] Newbie: Array of objects iteration

2009-10-09 Thread MEM
Right now, I have something like this: foreach ($objRecord as $record) { //we will have a new line. $xls_file .=\n; foreach ($record as $column=$value) { $xls_file .= $value.\t; } } The only thing I need now, is to put on top, the

RE: [PHP] Newbie: Array of objects iteration

2009-10-09 Thread MEM
Dear all, it's done. Can I call your help for the remain issues please, I'm sure they are easy to explain, and at some extend, common: http://pastebin.com/m691d3e66 Instead of saving to the database, if I do a print_r or a var_dump, I get the charsets quite ok. However, they do not appear

RE: [PHP] Newbie: Array of objects iteration

2009-10-09 Thread MEM
Done. print utf8_decode($xls_file); Regards, Márcio -Original Message- From: MEM [mailto:tal...@gmail.com] Sent: sexta-feira, 9 de Outubro de 2009 18:19 To: 'MEM'; 'Fernando Castillo Aparicio'; 'Lester Caine'; 'php- gene...@lists.php.net' Subject: RE: [PHP] Newbie: Array

Re: [PHP] Newbie: Array of objects iteration

2009-10-09 Thread Tommy Pham
- Original Message From: MEM tal...@gmail.com To: MEM tal...@gmail.com; Fernando Castillo Aparicio f_c_a_1...@yahoo.es; Lester Caine les...@lsces.co.uk; php-general@lists.php.net Sent: Fri, October 9, 2009 6:22:05 AM Subject: RE: [PHP] Newbie: Array of objects iteration Right

[PHP] Newbie: Array of objects iteration

2009-10-08 Thread MEM
Hello all, I'm grabbing all records from a table using: $records = $stmt-fetchAll(PDO::FETCH_OBJ); return $records; In order to display the values we can do: foreach ($records as $record) { echo $record-id; echo $record-name; }

[PHP] newbie: how to return one iteration *per unique date (DAY!)* in a timestamp column?

2009-08-02 Thread Govinda
Hi all I posted this on the PHP-db list, but it is sunday.. and with so little traffic today, perhaps no one will mind if I post this here too? (with hoped I'll get a quicker pointer?). I'm translating some code from another server-side language into PHP, and I need something that

[PHP] Newbie: can't access a return value.

2009-08-01 Thread MEM
Hi all, When I do this: $associacao_dao-listar($limit, $offset); I can var_dump the correct $limit. I can var_dump the correct $offset. I CAN'T access the object that I was hoping to get, called $records. After this, I was hoping to do var_dump($records); and see the stdClass object. Here

Re: [PHP] Newbie: can't access a return value.

2009-08-01 Thread TG
Try: $records = $associacao_dao-listar($limit, $offset); -TG - Original Message - From: MEM tal...@gmail.com To: php-general@lists.php.net Date: Sat, 1 Aug 2009 17:13:09 +0100 Subject: [PHP] Newbie: can't access a return value. Hi all, When I do this: $associacao_dao-listar($limit

Re: Fwd: [PHP] newbie: problem with $_Post[]

2009-07-28 Thread A.a.k
Hello Richard, that is exactly what I was looking for. thanks alot Paul, I didn't know its possible to use error_reporting(), that's a good hint thanks. btw if you guys know any simple php application that I can study and learn faster than going through books please let me know. I tried

[PHP] newbie: problem with $_Post[]

2009-07-27 Thread A.a.k
Hello I have a very simple test form named pass.php : form action=pass.php method=POST username : input type=text name=user br / password : input type=password name=pass br / input type=submit value=gop /form ?php $user=$_POST['user']; $pass=$_POST['pass']; if(($user==myname)($pass=mypass))

Re: [PHP] newbie: problem with $_Post[]

2009-07-27 Thread Bastien Koert
On Mon, Jul 27, 2009 at 10:31 PM, A.a.kblue...@gmail.com wrote: Hello I have a very simple test form named pass.php  : form action=pass.php method=POST username : input type=text name=user br / password : input type=password name=pass br / input type=submit value=gop /form ?php

Fwd: [PHP] newbie: problem with $_Post[]

2009-07-27 Thread Richard S. Crawford
form action=pass.php method=POST username : input type=text name=user br / password : input type=password name=pass br / input type=submit value=gop /form ?php $user=$_POST['user']; $pass=$_POST['pass']; if(($user==myname)($pass=mypass)) echo access granted; else echo access denied;

Re: Fwd: [PHP] newbie: problem with $_Post[]

2009-07-27 Thread Paul M Foster
On Mon, Jul 27, 2009 at 09:01:16PM -0700, Richard S. Crawford wrote: form action=pass.php method=POST username : input type=text name=user br / password : input type=password name=pass br / input type=submit value=gop /form ?php $user=$_POST['user']; $pass=$_POST['pass'];

Re: [PHP] newbie - Is there a calendar module for date entry?

2009-07-22 Thread Ashley Sheridan
On Tue, 2009-07-21 at 22:17 -0300, Jonathan Tapicer wrote: On Tue, Jul 21, 2009 at 10:06 PM, c...@hosting4days.comc...@hosting4days.com wrote: newbie ... - is there a calendar module for date fields? - so that a small calendar pops up - then you can click on a date, to add to a

Re: [PHP] newbie - Is there a calendar module for date entry?

2009-07-22 Thread דניאל דנון
Check jQuery UI On 7/22/09, c...@hosting4days.com c...@hosting4days.com wrote: newbie ... - is there a calendar module for date fields? - so that a small calendar pops up - then you can click on a date, to add to a field - like google or yahoo calendars has...? BTW: I saw this - but it

Re: [PHP] newbie - Is there a calendar module for date entry?

2009-07-22 Thread Andrew Ballard
On Wed, Jul 22, 2009 at 3:50 AM, Ashley Sheridana...@ashleysheridan.co.uk wrote: On Tue, 2009-07-21 at 22:17 -0300, Jonathan Tapicer wrote: On Tue, Jul 21, 2009 at 10:06 PM, c...@hosting4days.comc...@hosting4days.com wrote: newbie ... - is there a calendar module for date fields? - so

Re: [PHP] newbie - Is there a calendar module for date entry?

2009-07-22 Thread Ashley Sheridan
On Wed, 2009-07-22 at 08:59 -0400, Andrew Ballard wrote: On Wed, Jul 22, 2009 at 3:50 AM, Ashley Sheridana...@ashleysheridan.co.uk wrote: On Tue, 2009-07-21 at 22:17 -0300, Jonathan Tapicer wrote: On Tue, Jul 21, 2009 at 10:06 PM, c...@hosting4days.comc...@hosting4days.com wrote: newbie

Re: [PHP] newbie - Is there a calendar module for date entry?

2009-07-22 Thread Andrew Ballard
On Wed, Jul 22, 2009 at 9:02 AM, Ashley Sheridana...@ashleysheridan.co.uk wrote: Sorry, my bad, I misread the URL. Having a lot of stress here at the moment getting my laptop fixed :-/ Isn't that called withdrawal? ;-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] newbie - Is there a calendar module for date entry?

2009-07-22 Thread Ashley Sheridan
On Wed, 2009-07-22 at 09:08 -0400, Andrew Ballard wrote: On Wed, Jul 22, 2009 at 9:02 AM, Ashley Sheridana...@ashleysheridan.co.uk wrote: Sorry, my bad, I misread the URL. Having a lot of stress here at the moment getting my laptop fixed :-/ Isn't that called withdrawal? ;-) Not

Re: [PHP] newbie - Is there a calendar module for date entry?

2009-07-22 Thread c...@hosting4days.com
On Jul 21, 2009, at 6:17 PM, Jonathan Tapicer wrote: That is javascript thing, not PHP. The Yahoo UI has a nice one, here you have an example: http://developer.yahoo.com/yui/examples/calendar/ calcontainer_clean.html, and here the module reference: http://developer.yahoo.com/yui/calendar/

Re: [PHP] newbie - Is there a calendar module for date entry?

2009-07-22 Thread Ashley Sheridan
On Wed, 2009-07-22 at 08:41 -0700, c...@hosting4days.com wrote: On Jul 21, 2009, at 6:17 PM, Jonathan Tapicer wrote: That is javascript thing, not PHP. The Yahoo UI has a nice one, here you have an example: http://developer.yahoo.com/yui/examples/calendar/ calcontainer_clean.html,

Re: [PHP] newbie - Is there a calendar module for date entry?

2009-07-22 Thread Paul M Foster
On Wed, Jul 22, 2009 at 08:41:23AM -0700, c...@hosting4days.com wrote: snip Another newbie question: storing dates and times... I'm trying to build a simple notepad page where I can attach a date and even time field. So this Tigra or yahoo calendar will be great date picker helper. This

[PHP] newbie question - php parsing

2009-07-22 Thread Sebastiano Pomata
Hi all, A little doubt caught me while I was writing this snippet of code for a wordpress template: ?php if (the_title('','',FALSE) != 'Home') { ? h2 class=entry-header?php the_title(); ?/h2 ?php } ? I always thought that php was called only between the ?php ? tags, and I'm pretty sure that's

Re: [PHP] newbie - Is there a calendar module for date entry?

2009-07-22 Thread phphelp -- kbk
Here is a simple but effective one, which has the advantage of optionally doing datetime. -- -- http://www.rainforestnet.com If anyone knows of others that do both date and datetime, I'd love to see them. Ken -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] newbie - Is there a calendar module for date entry?

2009-07-21 Thread c...@hosting4days.com
newbie ... - is there a calendar module for date fields? - so that a small calendar pops up - then you can click on a date, to add to a field - like google or yahoo calendars has...? BTW: I saw this - but it doesn't seem to be the right thing ( more meant for Converter issues) for what

Re: [PHP] newbie - Is there a calendar module for date entry?

2009-07-21 Thread Jonathan Tapicer
On Tue, Jul 21, 2009 at 10:06 PM, c...@hosting4days.comc...@hosting4days.com wrote: newbie ... - is there a calendar module for date fields? - so that a small calendar pops up - then you can click on a date,  to add to a field - like google or yahoo calendars has...? BTW: I saw this - but

Re: [PHP] Newbie: Composition by Association - Pagination Class general question.

2009-07-19 Thread Stuart
2009/7/19 MEM tal...@gmail.com: Pagination is the generically applicable class - it should know nothing about what specifically it's paginating. Ok... but I need to grab values of my DAO classes, I mean, even if we paginate images on a directory or records on a database table, the pagination

[PHP] Newbie: Composition by Association - Pagination Class general question.

2009-07-19 Thread MEM
Hello, I have a Animals DAO class that I'd like to apply a pagination class to it. Between this two classes, there will be a composition relation (more precisely, an association one). My question is: Is a Pagination that has a Animal. OR Is a Animal that has a pagination? Should we create on

RE: [PHP] Newbie: Composition by Association - Pagination Class general question.

2009-07-19 Thread MEM
Pagination is the generically applicable class - it should know nothing about what specifically it's paginating. Ok... but I need to grab values of my DAO classes, I mean, even if we paginate images on a directory or records on a database table, the pagination should have a $limit, and a

Re: [PHP] Newbie: Composition by Association - Pagination Class general question.

2009-07-19 Thread Stuart
2009/7/19 MEM tal...@gmail.com: Hello, I have a Animals DAO class that I'd like to apply a pagination class to it. Between this two classes, there will be a composition relation (more precisely, an association one). My question is: Is a Pagination that has a Animal. OR Is a Animal that has

RE: [PHP] Newbie: Composition by Association - Pagination Class general question.

2009-07-19 Thread MEM
I don't know how your other classes are arranged, myPDO.class.php - Singleton. Makes the connection to the database possible. generalDAO.class.php - Abstract DAO Class, grabs the myPDO instance and could have other methods on the future that are shared for all the DAO classes.

Re: [PHP] Newbie: Composition by Association - Pagination Class general question.

2009-07-19 Thread Stuart
2009/7/19 MEM tal...@gmail.com: I don't know how your other classes are arranged, myPDO.class.php - Singleton. Makes the connection to the database possible. generalDAO.class.php - Abstract DAO Class, grabs the myPDO instance and could have other methods on the future that are shared for

RE: [PHP] Newbie: Composition by Association - Pagination Class general question.

2009-07-19 Thread MEM
I would say your pagination logic belongs in myPDO.class.php. Where I have this functionality it's as simple as two arguments to the method that gets data, $page and $perpage. Setting both to false would retrieve all rows. Interesting but, still no clue, on this side, about how to

Re: [PHP] Newbie: Composition by Association - Pagination Class general question.

2009-07-19 Thread Stuart
2009/7/19 MEM tal...@gmail.com: I would say your pagination logic belongs in myPDO.class.php. Where I have this functionality it's as simple as two arguments to the method that gets data, $page and $perpage. Setting both to false would retrieve all rows. Interesting but, still no clue, on

Re: [PHP] Shared memory - linx and PHP newbie

2009-05-22 Thread Richard W
Thanks Daniel for your suggestions. What I have found are: 1) I'm assuming the key is good. A value of 1947143245 is returned. 2) I have set the permission of the shared memory (program.SCShared) to 777 octal (full read/write/execute access). The group and owner of the file is my login

[PHP] Shared memory - linx and PHP newbie

2009-05-21 Thread Richard W
Hi I have a query regarding shared memory created under Linux and then accessing it by PHP script. For my application, I have created a shared memory block in Debian Linux using the shm_open(..), ftruncate(...) and mmap(...) function calls. The shared memory block is of size 6304 bytes long. It

Re: [PHP] Shared memory - linx and PHP newbie

2009-05-21 Thread Daniel Brown
On Thu, May 21, 2009 at 10:15, Richard W rw180...@gmail.com wrote: Any help will be greatly appreciated, especially answering 2) as to why I can't read the data. Are you certain that the problem lies within the shmop reading? Check to see if the file is actually being accessed properly,

[PHP] Newbie - Setting Up Some Basic Sendmail Scripts

2009-05-05 Thread revDAVE
[Newbie] Hi folks, I'm trying to set up some basic php send mail scripts - and I'm curious of the best way to go... I checked these basics out: http://us.php.net/manual/en/function.mail.php And got this code below going, but I'll bet I need a bit more - like adding authentication - smtp -

Re: [PHP] Newbie - Setting Up Some Basic Sendmail Scripts

2009-05-05 Thread Bastien Koert
On Tue, May 5, 2009 at 1:20 PM, revDAVE c...@hosting4days.com wrote: [Newbie] Hi folks, I'm trying to set up some basic php send mail scripts - and I'm curious of the best way to go... I checked these basics out: http://us.php.net/manual/en/function.mail.php And got this code below

Re: [PHP] Newbie - Setting Up Some Basic Sendmail Scripts

2009-05-05 Thread Tom Worster
On 5/5/09 1:41 PM, Bastien Koert phps...@gmail.com wrote: On Tue, May 5, 2009 at 1:20 PM, revDAVE c...@hosting4days.com wrote: And got this code below going, but I'll bet I need a bit more - like adding authentication - smtp - port - sending user / pass etc. Any hints how to get this to

Re: [PHP] Newbie - Setting Up Some Basic Sendmail Scripts

2009-05-05 Thread revDAVE
On 5/5/2009 10:41 AM, Bastien Koert phps...@gmail.com wrote: Thanks Bastien - I'll check them out... use phpmailer or pear mailer On 5/5/2009 10:59 AM, Tom Worster f...@thefsb.org wrote: use phpmailer or pear mailer agree. php's interface is a bit basic. and if you compile php with

Re: [PHP] Newbie - Setting Up Some Basic Sendmail Scripts

2009-05-05 Thread Tom Worster
On 5/5/09 2:07 PM, revDAVE c...@hosting4days.com wrote: I'm working with php 5 so is the 1.2.0b1 (beta) safe to use or should I go with the older stable 1.1.14? i don't know if the beta is safe but i always use the most recent stable release of whatever-it-may-be unless i have a compelling

Re: [PHP] Newbie - Setting Up Some Basic Sendmail Scripts

2009-05-05 Thread Sudheer Satyanarayana
And got this code below going, but I'll bet I need a bit more - like adding authentication - smtp - port - sending user / pass etc. Any hints how to get this to the next level? Hi Dave, As others have said, it is convenient to use a library/framework to send mails from your PHP script

[PHP] Newbie: handling instance values on a attribute of the same class.

2009-04-09 Thread MEM
Hi all, Ok. Here is a code that I'm studying: class Connection extends PDO { private $dsn = 'mysql:dbname=testes;host=127.0.0.1'; private $user = 'root'; private $password = ''; public $handle = null; function __construct( ) { try { if (

[PHP] Newbie Help - No .php file extension

2009-02-09 Thread Hibbert Miller
Hello,I have been asked to install an existing PHP/MySQL application on a system using Windows Vista. I have installed PHP 5.2.8, MySQL 5.1.31 and IIS 7.0. PHP is working as expected (I created a test page which displays the output from phpinfo()). The application in question posts to a login

Re: [PHP] Newbie Help - No .php file extension

2009-02-09 Thread Thijs Lensselink
Hibbert Miller wrote: Hello,I have been asked to install an existing PHP/MySQL application on a system using Windows Vista. What application are we talking about here? Is it a known Open/Closed source application? Is it supposed to run on windows? I have installed PHP 5.2.8, MySQL 5.1.31

[PHP] Newbie: can I store flash file into Mysql DB

2008-10-29 Thread vuthecuong
technically can I store flash file into Mysql DB using PHP? what point should I pay attention for that? Thank you -- View this message in context: http://www.nabble.com/Newbie%3A-can-I-store-flash-file-into-Mysql-DB-tp20224150p20224150.html Sent from the PHP - General mailing list archive at

Re: [PHP] Newbie: can I store flash file into Mysql DB

2008-10-29 Thread Stut
On 29 Oct 2008, at 10:20, vuthecuong wrote: technically can I store flash file into Mysql DB using PHP? Yes. what point should I pay attention for that? The blob field type. But I would recommend against it. Why not store the files on disk and only store the filenames in the DB? -Stut

Re: [PHP] Newbie: can I store flash file into Mysql DB

2008-10-29 Thread vuthecuong
Stut wrote: On 29 Oct 2008, at 10:20, vuthecuong wrote: technically can I store flash file into Mysql DB using PHP? Yes. what point should I pay attention for that? The blob field type. But I would recommend against it. Why not store the files on disk and only store the

Re: [PHP] Newbie: can I store flash file into Mysql DB

2008-10-29 Thread Stut
On 29 Oct 2008, at 10:32, vuthecuong wrote: Stut wrote: On 29 Oct 2008, at 10:20, vuthecuong wrote: technically can I store flash file into Mysql DB using PHP? Yes. what point should I pay attention for that? The blob field type. But I would recommend against it. Why not store the

Re: [PHP] Newbie: can I store flash file into Mysql DB

2008-10-29 Thread vuthecuong
Stut wrote: On 29 Oct 2008, at 10:32, vuthecuong wrote: Stut wrote: On 29 Oct 2008, at 10:20, vuthecuong wrote: technically can I store flash file into Mysql DB using PHP? Yes. what point should I pay attention for that? The blob field type. But I would recommend against it.

Re: [PHP] Newbie: can I store flash file into Mysql DB

2008-10-29 Thread Bastien Koert
On Wed, Oct 29, 2008 at 6:20 AM, vuthecuong [EMAIL PROTECTED] wrote: technically can I store flash file into Mysql DB using PHP? what point should I pay attention for that? Thank you -- View this message in context:

Re: [PHP] Newbie: can I store flash file into Mysql DB

2008-10-29 Thread Lupus Michaelis
Bastien Koert a écrit : We used to do that here, and there was significant performance impact after the database got to be about 12Gb, with minor impact showing after only a few Gb. I ended up having to write a script that stripped all the data from the Db into the file system. What engine

Re: [PHP] Newbie: can I store flash file into Mysql DB

2008-10-29 Thread Bastien Koert
On Wed, Oct 29, 2008 at 9:29 PM, Lupus Michaelis [EMAIL PROTECTED][EMAIL PROTECTED] wrote: Bastien Koert a écrit : We used to do that here, and there was significant performance impact after the database got to be about 12Gb, with minor impact showing after only a few Gb. I ended up

Re: [PHP] newbie - PHP escaping trigger happy

2008-09-02 Thread seungp
IIRC. That's covered under magic quotes . You should be able to turn that off via a config switch in php.ini or .htaccess. -Original Message- From: Govinda [EMAIL PROTECTED] Date: Mon, 1 Sep 2008 20:21:10 To: PHP-General Listphp-general@lists.php.net Subject: [PHP] newbie - PHP

Re: [PHP] newbie - PHP escaping trigger happy

2008-09-02 Thread Govinda
You guys got me on the right track, but: On my Mac OS10.5.4/Apache2/webmin local (dev) setup (of which I know very little) I managed to find php.ini.default, make a copy while renaming to php.ini, open the copy (php.ini), and change that on to an off (the only one of the 3 that was on).

<    1   2   3   4   5   6   7   8   9   10   >