Re: [PHP] A Good OOP Tutorial/Read?

2013-05-16 Thread Francisco C Soares
than php.net/oop5. Try, Tente, http://www.killerphp.com/tutorials/object-oriented-php/ Success! Sucesso! ___ Francisco C Soares ( *Junior* ) 403790c89847cdbe5a262146de8fb93139c4 BLOG dotjunior.blogspot.com http://dotjunior.blogspot.com/

[PHP] Re: Date validation

2011-05-20 Thread Jo�o C�ndido de Souza Neto
What about using this: $date = DateTime::createFromFormat(Y-m-d, 2011-05-20); -- João Cândido de Souza Neto Geoff Lane ge...@gjctech.co.uk escreveu na mensagem news:11565581.20110520132...@gjctech.co.uk... Hi All, I'm scratching my head trying to remember how I validated string

Re: [PHP] Re: Date validation

2011-05-20 Thread Jo�o C�ndido de Souza Neto
If you look carefully, you´ll notice that I´m using the DateTime object (default from PHP 5.2.0 or higher) not the function date. -- João Cândido de Souza Neto Peter Lind peter.e.l...@gmail.com escreveu na mensagem news:banlktinjonyvfnqjqtfqtdmu_r2-cfp...@mail.gmail.com... On 20 May 2011

[PHP] Re: Array Search

2011-03-25 Thread Jo�o C�ndido de Souza Neto
It´s a job to array_key_exists function. -- João Cândido de Souza Neto Ethan Rosenberg eth...@earthlink.net escreveu na mensagem news:0lim00hi3ihny...@mta4.srv.hcvlny.cv.net... Dear List - Here is a code snippet: $bla = array(g1 = $results[7][6], h1 =

Re: [PHP] First PHP job

2011-01-11 Thread Jo�o C�ndido de Souza Neto
It must be a big joke!!! -- João Cândido de Souza Neto Robert Cummings rob...@interjinn.com escreveu na mensagem news:4d2c997d.3010...@interjinn.com... On 11-01-11 12:15 PM, David Harkness wrote: On Tue, Jan 11, 2011 at 4:19 AM, Jay Blanchardjblanch...@pocket.comwrote: I am always

[PHP] Re: Stripping carriage returns

2011-01-11 Thread Jo�o C�ndido de Souza Neto
What about trying str_replace(PHP_EOL, , $content); -- João Cândido de Souza Neto Richard S. Crawford rich...@underpope.com escreveu na mensagem news:aanlktimzfk+ku6dkvjmhekbsycuosn2tv+0txfsn9...@mail.gmail.com... I'm retrieving CLOB data from an Oracle database, and cleaning up the HTML in

Re: [PHP] HTML id attribute and arrays

2010-12-19 Thread Martin C
How should I follow the HTML specification while having the passed parameters automatically converted to arrays in PHP? The name attribute, not the id attribute, is used as the key when submitting form values. The name and id attributes do not have to be the same. Thank you, I thought it

Re: [PHP] HTML id attribute and arrays

2010-12-19 Thread Martin C
How should I follow the HTML specification while having the passed parameters automatically converted to arrays in PHP? The name attribute, not the id attribute, is used as the key when submitting form values. The name and id attributes do not have to be the same. Thank you, I thought it

Re: [PHP] HTML id attribute and arrays

2010-12-19 Thread Martin C
The name and id attributes do not have to be the same. Thank you, I thought it should be the same You're probably thinking of: http://www.w3.org/TR/html401/struct/links.html#h-12.2.3 The id and name attributes share the same name space. This means that they cannot both define an anchor with

[PHP] HTML id attribute and arrays

2010-12-17 Thread Martin C
Hi, PHP converts x[a]=b parameter of the HTTP request as an array named x with its item named a set to value b. So, it seems possible to have the following (X)HTML code: input type=text name=x[a] id=x[a] value=b / Unfortunatelly, HTML specification does not allow neither [ nor ] inside the

[PHP] Re: How does one reply to messages on this list?

2010-12-16 Thread Jo�o C�ndido de Souza Neto
As I use outlook, I just hit Reply to Group. -- João Cândido de Souza Neto Sam Smith a...@itab.com escreveu na mensagem news:aanlktikarnvhn-gzexe8qedngeewgqqgs7cpchzav...@mail.gmail.com... If I just hit 'Reply' I'll send my reply to the individual who created the message. If I hit 'Reply

[PHP] Re: use of ini vs include file for configuration

2010-11-11 Thread Jo�o C�ndido de Souza Neto
Agreed. -- João Cândido de Souza Neto Tamara Temple tamouse.li...@gmail.com escreveu na mensagem news:977f087c-bb11--b851-21616ae9e...@gmail.com... I'm curious what the lists' opinions are regarding the use of an .ini file versus an include configuration file in PHP code are? I can

[PHP] Re: which one is faster

2010-10-05 Thread Jo�o C�ndido de Souza Neto
=h1wzobgoko7byngo0p...@mail.gmail.com... $a = 'hey'; $b = 'done'; $c = $a.$b; $c = $a$b; which one is faster for echo $c. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: json_encode() behavior and the browser

2010-09-01 Thread Jo�o C�ndido de Souza Neto
It can have something to do with your browser codification (UTF8, ISO-8859-???). -- João Cândido de Souza Neto Christoph Boget cbo...@hotmail.com escreveu na mensagem news:aanlkti=45-heto2myhq116gv6bfxvdba_yxfzjnqk...@mail.gmail.com... I'm curious if the behavior of json_encode() is

Re: [PHP] Re: json_encode() behavior and the browser

2010-09-01 Thread Jo�o C�ndido de Souza Neto
http://www.w3.org/TR/html4/charset.html I hope it can help you. PS: json_decode works only in utf8. -- João Cândido de Souza Neto Christoph Boget cbo...@hotmail.com escreveu na mensagem news:aanlktikpqdckrq7ctjwccgspz-c4fxpcnxxn_u48+...@mail.gmail.com... You should set the charset of your

Re: [PHP] Re: json_encode() behavior and the browser

2010-09-01 Thread Jo�o C�ndido de Souza Neto
Are you setting the charset in your html head? If not, its using the charset set in your browser, which can be different from one to another. In this case, you must set if via meta tag to avoid it. -- João Cândido de Souza Neto Christoph Boget cbo...@hotmail.com escreveu na mensagem

Re: [PHP] Re: json_encode() behavior and the browser

2010-09-01 Thread Jo�o C�ndido de Souza Neto
Sorry about the error: In this case, you must set IT via meta tag to avoid it. -- João Cândido de Souza Neto João Cândido de Souza Neto j...@consultorweb.cnt.br escreveu na mensagem news:16.27.07419.e0e5e...@pb1.pair.com... Are you setting the charset in your html head? If not, its using

Re: [PHP] Re: json_encode() behavior and the browser

2010-09-01 Thread Jo�o C�ndido de Souza Neto
In this case, you are right. It has nothing to do with the browser. You´ll need a more detailed debug so you can see excatly what´s happening. -- João Cândido de Souza Neto Christoph Boget cbo...@hotmail.com escreveu na mensagem

[PHP] Re: Removing link on the fly, but leave link text

2010-08-31 Thread Jo�o C�ndido de Souza Neto
Try this: $pattern = array( /a [^]/, //a/ ); preg_replace($pattern, , $text); -- João Cândido de Souza Neto Karl DeSaulniers k...@designdrumm.com escreveu na mensagem news:007bc8e1-b2c8-4dd5-9d18-eb07b0d55...@designdrumm.com... Hi, Say I have some text. $text = 'You can logon

Re: [PHP] Variable in variable.

2010-08-26 Thread Jo�o C�ndido de Souza Neto
Really cool... Thanks and fogive me by my mistake. hehe -- João Cândido de Souza Neto Robert Cummings rob...@interjinn.com escreveu na mensagem news:4c76743a.2060...@interjinn.com... On 10-08-26 09:54 AM, João Cândido de Souza Neto wrote: I know that in PHP I can use this: $var1 = text;

[PHP] Re: Upload using FTP commands

2010-08-26 Thread Jo�o C�ndido de Souza Neto
A form sendind a file has nothing to do with FTP functions of PHP. You´ll still need to change de upload_max_filesize and so on in order to send such files to the server. -- João Cândido de Souza Neto Matthew Croud m...@obviousdigital.com escreveu na mensagem

Re: [PHP] Fatal error: Call to undefined method

2010-08-20 Thread Jo�o C�ndido de Souza Neto
Try this: ?php class PropertyMgmt { function PropertyMgmt() { global $complexes; /* yes I know using globals is dangerous, I will fix this soon! :-) */ } public function get_complexes() { /* null */ } } // end class -- João Cândido de Souza Neto TransientSeeker

[PHP] hash problem.

2010-07-29 Thread Jo�o C�ndido de Souza Neto
I´ve got the setting in my /etc/login.defs file as bellow: # Use MD5 or DES to encrypt password? Red Hat use MD5 by default. MD5_CRYPT_ENAB no ENCRYPT_METHOD SHA512 So, when I try to get this: echo hash(sha512, $_POST[password]); It does not match the password the user´s got in /etc/shadow

[PHP] Re: Regular Expression to get the whole Comma Separated String in Array Key

2010-06-30 Thread Jo�o C�ndido de Souza Neto
Not tested, but I think it should work: preg_match_all('/(\d+),/', $postText, $matches); -- João Cândido de Souza Neto Gaurav Kumar kumargauravjuke...@gmail.com escreveu na mensagem news:aanlktikdb_ismnkpomicxzsfzixg4dedznunrcimj...@mail.gmail.com... Hi All, Need help in resolving the

Re: [PHP] file_get_contents limit

2010-06-29 Thread Jo�o C�ndido de Souza Neto
The characters are stripped off of the end of the file after that point. -- João Cândido de Souza Neto Ashley Sheridan a...@ashleysheridan.co.uk escreveu na mensagem news:1277841481.2253.39.ca...@localhost... On Tue, 2010-06-29 at 16:53 -0300, Jo?o C?ndido de Souza Neto wrote: Ive got

[PHP] Re: stripping first comma off and everything after

2010-06-18 Thread Jo�o C�ndido de Souza Neto
Why not this? $var = explode(,,$entries[$i][dn]); $var = $var[0]; Adam Williams adam_willi...@bellsouth.net escreveu na mensagem news:4c1bcf62.5070...@bellsouth.net... I'm querying data and have results such as a variable named $entries[$i][dn]:

[PHP] Re: Test [don't read]

2010-06-07 Thread Jo�o C�ndido de Souza Neto
I couldn´t resist. tedd tedd.sperl...@gmail.com escreveu na mensagem news:p0624080cc832e662f...@[192.168.1.102]... -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: Test [don't read]

2010-06-07 Thread Jo�o C�ndido de Souza Neto
I couldn´t resist. tedd tedd.sperl...@gmail.com escreveu na mensagem news:p0624080cc832e662f...@[192.168.1.102]... -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: what's the point of _autoload?

2010-05-14 Thread Jo�o C�ndido de Souza Neto
I use this in a different way so I think it can be useful for everyone avoiding long and complex codes. I´ve got a file called classes.php that looks like: ?php $Classes = new stdClass(); $Classes-Smarty = BASE_PATH.includes/Smarty/Smarty.class.php; $Classes-Mail =

[PHP] Getting source from remote file

2010-05-06 Thread Auto-Deppe C . Hänsel
Hi guys and girls, okay, this is a dumbnut question I wouldn't bother asking but I really did hit a spot now where I am totally wedged up in my head and can't think straight anymore... so the, I bet easy, answer to my question escapes me. What I am trying to do is the following: Read the

RE: [PHP] Getting source from remote file

2010-05-06 Thread Auto-Deppe C . Hänsel
On 6 May 2010 10:55, Peter Lind peter.e.l...@gmail.com wrote: You could parse the document with the DOM classes. Load as a DOMDocument, then grab what's needed with the relevant methods (you can use xpath to single out your divs with the right classes). http://dk2.php.net/domdocument

[PHP] Re: Math Question....

2010-04-22 Thread Jo�o C�ndido de Souza Neto
for ($g = $maxpergroup; $g 0; $g++) { if ($items mod $g 0) continue; $Groups = $items div $g; } Maybe it can helps you. Dan Joseph dmjos...@gmail.com escreveu na mensagem news:q2oa20394491004220707x980cef5ej2b310c97d1230...@mail.gmail.com... Howdy, This is a math question, but I'm

RE: [PHP] Re: imagecopyresize

2010-04-06 Thread Auto-Deppe C . Hänsel
-Original Message- From: Karl DeSaulniers [mailto:k...@designdrumm.com] Sent: Tuesday, April 06, 2010 10:39 AM To: na...@alienworkers.com Cc: php-general@lists.php.net Subject: [PHP] Re: imagecopyresize Sweet deal. Thanks Nadim. I think I got my script to work finally, but if it

[PHP] Audiobooks for Developers

2010-03-31 Thread Auto-Deppe C . Hänsel
Good day all, since I am driving 2 hrs each day listening to either my radio or the songs on my USB drive, I was wondering whether there are some web dev related audio books for download out there. I have been searching the big G for this stuff, but haven't found anything. Do you guys know of

RE: [PHP] Audiobooks for Developers

2010-03-31 Thread Auto-Deppe C . Hänsel
Have you consider getting an ebook (preferably PDF as Windows' Narrator, if you're using Windows, works really well with Acrobat) on the subject you're interested then use a TTS, like Windows' Narrator, and record it on your system as an alternative solution? Using this approach would be more

RE: [PHP] Audiobooks for Developers

2010-03-31 Thread Auto-Deppe C . Hänsel
-Original Message- From: Bob McConnell [mailto:r...@cbord.com] Sent: Wednesday, March 31, 2010 2:52 PM To: php-general@lists.php.net Subject: RE: [PHP] Audiobooks for Developers From: Auto-Deppe C. Hänsel since I am driving 2 hrs each day listening to either my radio

Re: [PHP] Microsoft outlook takes out all stressed letters on subject.

2010-03-05 Thread Jo�o C�ndido de Souza Neto
Yes, it does. Thanks. João Cândido Bob McConnell r...@cbord.com escreveu na mensagem news:ff8482a96323694490c194babeac24a0058c5...@email.cbord.com... From: João Cândido de Souza Neto When I send an e-mail from PHP (not using the mail function) everithing works fine, but when such e-mail´s

[PHP] JPGraph error.

2010-02-26 Thread Jo�o C�ndido de Souza Neto
Hey guys. In my system we´ve got an option of getting charts of some data and it´s many options. My problem is that it works fine on my test server but in my client´s server it gives me the following error as you can see. *** glibc detected *** /var/www/html/bin/httpd: munmap_chunk(): invalid

[PHP] PLEASE, PLEASE, PLEASE - HELP ME GET OFF THIS LIST

2010-02-23 Thread William C. Schnute
PLEASE, PLEASE, PLEASE - HELP ME GET OFF THIS LIST --- YOU PEOPLE ARE DRIVING ME CRAZY1 Please unsubscribe: m...@honeyflowfarm.com, wschn...@mail.honeyflowfarm.com or anyone else @honeyflowfarm.com or wschn...@gm.com PLEASE At 08:32 AM 2/23/2010, you wrote:

Re: [PHP] Force-Saving an Audio File

2009-12-09 Thread c...@hosting4days.com
Thanks Gaurav Shawn, I'll check into your suggestions. Thanks, c...@hosting4days.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Force-Saving an Audio File

2009-12-08 Thread c...@hosting4days.com
); exit(); ? Thanks, c...@hosting4days.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Best way to read first 20 characters of a string?

2009-12-02 Thread Jo�o C�ndido de Souza Neto
Have you tried tha substr PHP function? Chris Payne chris_pa...@danmangames.com escreveu na mensagem news:554f315f0912020711m5e0cc2e8qd6a1926a80590...@mail.gmail.com... Hi everyone, I'm pulling data from a mysql database, but need only the first 20 characters of each string for a short

[PHP] Re: [php] INSERT and immediately UPDATE

2009-10-28 Thread Jo�o C�ndido de Souza Neto
Use mysql_insert_id() instead of the select you´re using now. Allen McCabe allenmcc...@gmail.com escreveu na mensagem news:657acef20910281221y5ab6ab7t4882f4f00da2c...@mail.gmail.com... Hey everyone, I have an issue. I need my (employee) users to be able to insert shows into the our MySQL

[PHP] Plotting a Line Graph It seems that the google charts work from a url - so 500 points would be way to long for any url - so I guess that option is out.

2009-10-16 Thread c...@hosting4days.com
help - dave Thanks, c...@hosting4days.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Plotting a Line Graph

2009-10-16 Thread c...@hosting4days.com
Jim Lucas wrote: I would recommend http://www.rgraph.net/ It was written and is currently maintained by a member of this list. Jim Lucas Hi Jim, rgraph looks cool... most demos I see show just a few points - do you think this could display 500 points? (I'm looking through their docs

[PHP] Re: ternary operator sintax help

2009-10-06 Thread Jo�o C�ndido de Souza Neto
?= (isset($erros['anexo']) ? 'div class=mensagemErro'.$erros['anexo'].'/div' :''); ? MEM tal...@gmail.com escreveu na mensagem news:002401ca46b4$ed6ad6a0$c84083...@com... Hello all, I'm trying to display a div, only when some php value is set. Since this will be near html, I'd like to keep it

[PHP] Parse Question Using list()

2009-10-01 Thread c...@hosting4days.com
'; // this shows the whole line ok echo c1 is $col1 and c2 is $col2 and c3 is $col3.'br'; // this shows just 1st char of each field } ? Thanks, c...@hosting4days.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Parse Question Using list()

2009-10-01 Thread c...@hosting4days.com
for sql import Q: any way to turn this auto reformat off in excel and keep it the way I had it? (I saw nothing in pref's) Thanks, c...@hosting4days.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Insert Symbol into Mysql

2009-09-16 Thread Jo�o C�ndido de Souza Neto
If he´s really using a any other charset instead of utf8 table, why not using utf8_decode and utf8_decode in his php files to solve this? Ashley Sheridan a...@ashleysheridan.co.uk escreveu na mensagem news:1253101315.2275.4.ca...@localhost... On Wed, 2009-09-16 at 17:00 +0530, Samrat Kar

[PHP] Mail Command Body Issue - Trying to use 'do while' loop

2009-09-12 Thread c...@hosting4days.com
\n; //optional headerfields $fullto = $recipientname . . $recipient . ; //$fullto = $recipientname . . $recipient . ., .$recip2; ini_set('sendmail_from', 't...@test.com'); mail($fullto, $subject, $mail_body, $header); //mail command :) ? Thanks, c...@hosting4days.com -- PHP General

Re: [PHP] Mail Command Body Issue - Trying to use 'do while' loop

2009-09-12 Thread c...@hosting4days.com
On Sep 12, 2009, at 3:47 PM, c...@hosting4days.com wrote: I'm having a problem with mail body issue trying to use 'do while' loop in the $mail_body var. this line: do { echo $row_get1['name'] } while ($row_get1 = mysql_fetch_assoc ($get1)) will show ok when it's on the page elsewhere

[PHP] Odd Endless Loop with Explorer 8 (pc)

2009-09-12 Thread c...@hosting4days.com
this? Thanks, c...@hosting4days.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Odd Endless Loop with Explorer 8 (pc)

2009-09-12 Thread c...@hosting4days.com
On Sep 12, 2009, at 7:57 PM, kranthi wrote: ?php echo 'meta http-equiv=refresh content=0;page2.php'; ? may b u should have ?php echo 'meta http-equiv=refresh content=0;url=page2.php'; ? Thanks kranthi HallMarc Websites url= ... - that did the trick! Thanks, c...@hosting4days.com

Re: [PHP] Creating alphanumeric id for a table

2009-09-11 Thread Jo�o C�ndido de Souza Neto
I don´t know if it´d be the right way, but what about using trigger in this case? aveev nashrullah_a...@yahoo.com escreveu na mensagem news:25391939.p...@talk.nabble.com... I want to create user generated id like this : AAA0001 AAA0002 ... AAA0009 AAA0010 where the id consists of 3

[PHP] Re: ini files as config - hidden

2009-08-14 Thread Jo�o C�ndido de Souza Neto
I think a good solution is to put the ini file out of your html folder so only your scripts can read it. ? danondan...@gmail.com escreveu na mensagem news:907722000908141031v5b020fe0m5a3cc8a9dc196...@mail.gmail.com... I'm building a little framework for my self, The configuration of

Re: [PHP] Re: ini files as config - hidden

2009-08-14 Thread Jo�o C�ndido de Souza Neto
A long time ago I worked in many shared servers, nowadays I´m not working with web sites, only systems, so my customers always has their own server. The question is: 1) The ini file you mentioned has ini extension? if yes, it must be out of the document root because if someone types its

Re: [PHP] Re: ini files as config - hidden

2009-08-14 Thread Jo�o C�ndido de Souza Neto
It´s a cool solution as well. Martin Scotta martinsco...@gmail.com escreveu na mensagem news:6445d94e0908141103l6710c766wcc89f05111a65...@mail.gmail.com... 2009/8/14 Ben Dunlap bdun...@agentintellect.com 2009/8/14 João Cândido de Souza Neto j...@consultorweb.cnt.br: I think a good solution

[PHP] Re: Making several variables into 1 variable

2009-07-28 Thread Jo�o C�ndido de Souza Neto
Why not this: $pastDate = date(d/m/y, strtotime(-30 days)); Miller, Terion tmil...@springfi.gannett.com escreveu na mensagem news:c6946809.4183%kmille...@springfi.gannett.com... I need to take this: $pastDays = strtotime(-30 days); $past_day = date(d, $pastDays); $past_month = date(m,

[PHP] Re: Argh Date problems

2009-07-28 Thread Jo�o C�ndido de Souza Neto
In mySql you have date_format which I think´ll solve your problem. Miller, Terion tmil...@springfi.gannett.com escreveu na mensagem news:c694bead.41f4%kmille...@springfi.gannett.com... Well I was going along smoothly from this morningbut it came down to having to change the field type to

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/

[PHP] Re: newbie question - php parsing

2009-07-22 Thread Jo�o C�ndido de Souza Neto
You made a mistake in your code: ?php the_title(); ? must be: ?php echo the_title(); ? -- João Cândido de Souza Neto SIENS SOLUÇÕES EM GESTÃO DE NEGÓCIOS Fone: (0XX41) 3033-3636 - JS www.siens.com.br Sebastiano Pomata lafayett...@gmail.com escreveu na mensagem

[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

[PHP] Exception not being caught

2009-07-15 Thread Weston C
So, I've got a little piece of code designed to play with catching the exception that's thrown when an object doesn't have a __toString method. ?php class A { } $a = new A(); // Ayn would be proud, right? try { echo a is ,$a,\n; } catch(Exception $e) { echo

[PHP] mod primary key field - newbie question

2009-07-13 Thread c...@hosting4days.com
newbie question ... I have a MySQL table where I want to update (renumber) the primary numeric key field. - I successfully turned field off as a primary key index and UN auto incremented it - then created new sequential numbers for it - then turned back on primary key index and re added

[PHP] Add BCC parameter to mail()

2009-07-05 Thread c...@hosting4days.com
); //mail command :) ? Thanks, c...@hosting4days.com

[PHP] Re: Push an Array, Comma separated.

2009-06-30 Thread Jo�o C�ndido de Souza Neto
May be array_merge($array, explode(,, $string)). -- João Cândido de Souza Neto SIENS SOLUÇÕES EM GESTÃO DE NEGÓCIOS Fone: (0XX41) 3033-3636 - JS www.siens.com.br Louie Miranda lmira...@gmail.com escreveu na mensagem news:5016fc50906300125s12389ae1v3323c63c30343...@mail.gmail.com... GPS

[PHP] Re: Scope woe

2009-06-30 Thread Jo�o C�ndido de Souza Neto
I think the best way is passing the object instance as a parameter to the messwithotherthings method. -- João Cândido de Souza Neto SIENS SOLUÇÕES EM GESTÃO DE NEGÓCIOS Fone: (0XX41) 3033-3636 - JS www.siens.com.br Luke l...@blog-thing.com escreveu na mensagem

[PHP] Re: Same Page, Fundamentally Different Behavior OR is Firefox broken?

2009-06-12 Thread Manuel C.
Matt Neimeyer a écrit : I'm at a complete loss... So I'm hoping someone can point me in the right direction to even start looking. We have an application written in PHP that lets users send out emails. The basic process is as follows. 1. Go to start screen. (This resets anything currently in

[PHP] socket_write return wrong data length

2009-06-09 Thread Manuel C.
Hi all, I'm writting a little telnet client, but I've a problem with the socket_write function public function send($data){ $datalen = strlen($data); $datawritten = 0; do { $datawritten =

Re: [PHP] Not a regular file?

2009-06-04 Thread Jo�o C�ndido de Souza Neto
I´m not sure, nut I think you cant put a file into a ftp server using http, you must use the $_SERVER[DOCUMENT_ROOT] to get the file you want to put. -- João Cândido de Souza Neto SIENS SOLUÇÕES EM GESTÃO DE NEGÓCIOS Fone: (0XX41) 3033-3636 - JS www.siens.com.br Miller, Terion

Re: [PHP] Using File_exists?

2009-06-03 Thread Jo�o C�ndido de Souza Neto
Try to define $FilePath as follows: $FilePath = $_SERVER[document_root]./HarrisAutomate/output/WebImagesHiRes/$ImageName; In this way it should work. -- João Cândido de Souza Neto SIENS SOLUÇÕES EM GESTÃO DE NEGÓCIOS Fone: (0XX41) 3033-3636 - JS www.siens.com.br Miller, Terion

Re: [PHP] Using File_exists?

2009-06-03 Thread Jo�o C�ndido de Souza Neto
Sorry, I forgot only a single detail. It´s DOCUMENT_ROOT instead of document_root. Have you tried it? -- João Cândido de Souza Neto SIENS SOLUÇÕES EM GESTÃO DE NEGÓCIOS Fone: (0XX41) 3033-3636 - JS www.siens.com.br Miller, Terion tmil...@springfi.gannett.com escreveu na mensagem

Re: [PHP] Using File_exists? (RESOLVED)

2009-06-03 Thread Jo�o C�ndido de Souza Neto
Exactly. -- João Cândido de Souza Neto SIENS SOLUÇÕES EM GESTÃO DE NEGÓCIOS Fone: (0XX41) 3033-3636 - JS www.siens.com.br Shawn McKenzie nos...@mckenzies.net escreveu na mensagem news:95.f5.19828.e94d6...@pb1.pair.com... João Cândido de Souza Neto wrote: The var $_SERVER[DOCUMENT_ROOT] in

[PHP] Re: PHP, OOP and AJAX

2009-05-28 Thread Jo�o C�ndido de Souza Neto
Julian, could you please show us an example of this problem? -- João Cândido de Souza Neto SIENS SOLUÇÕES EM GESTÃO DE NEGÓCIOS Fone: (0XX41) 3033-3636 - JS www.siens.com.br Julian Muscat Doublesin opensourc...@gmail.com escreveu na mensagem

[PHP] Re: mysql create table with date or timestamp

2009-05-28 Thread Jo�o C�ndido de Souza Neto
not null, imepriimek varchar(50), when date, action varchar(30), onfile varchar(100) unique id(iddiary) ); To get formated date you should use: select date_format(when, %T%W%e%c%y) from diary; To put data in this field you can use: insert into diary (when) values (str_to_date(10:55

Re: [PHP] Re: mysql create table with date or timestamp

2009-05-28 Thread Jo�o C�ndido de Souza Neto
TABLE diary ( iddiary int auto_increment not null, imepriimek varchar(50), when date, action varchar(30), onfile varchar(100) unique id(iddiary) ); To get formated date you should use: select date_format(when, %T%W%e%c%y) from diary; To put data in this field you can use: insert

[PHP] Re: table-less layouts; Ideas welcome

2009-05-21 Thread Weston C
On Thu, 2009-05-21 at 09:54 -0400, tedd wrote: My thoughts are -- my understanding the reason why tables have received such bad-press is that designers have abused tables in holding designs together with nested tables AND in doing so made it difficult for the visually disabled to pull content

[PHP] Problems working with HTML using PHP's XML tools (placing mixed text/html into xpath-specified nodes...)

2009-05-21 Thread Weston C
Is there a straightforward way (or, heck, any way) of placing mixed html/text content into xpath-specified nodes using any of PHP's XML tools? So far, I've tried SimpleXML and the DOM and things aren't coming out well. SimpleXML: /* $filename contains path to valid XML file, $xpathxpr

Re: [PHP] Re: table-less layouts; Ideas welcome

2009-05-21 Thread Weston C
On Thu, May 21, 2009 at 12:10 PM, tedd tedd.sperl...@gmail.com wrote: Could you be certain that your algorithm would figure out which way it needs to present the text to a blind person? My own experience browsing the web with Lynx (which for the most part, tends to ignore table layout, giving

[PHP] Re: Boolean Parameter to 3 Options?

2009-04-29 Thread Jo�o C�ndido de Souza Neto
Why not this: function doFooBar($doFoo = 0) { switch ($doFoo) { case 2: echo Did Baz; break; case 1: echo Did Foo; break; default: echo Did Bar; break; } } I think in this way you can avoid future

[PHP] Re: Strange result, 1 shows up

2009-04-16 Thread Jo�o C�ndido de Souza Neto
Try using only: include('box.inc.php'); instead of echo include('box.inc.php'); Gary gwp...@ptd.net escreveu na mensagem news:63.c9.24434.0b377...@pb1.pair.com... When I insert this code into a page, I get a 1 show up. Can anyone explain that and tell me how to get rid of it? Thanks for

[PHP] Re: multi-dimensional arrays

2009-04-13 Thread Jo�o C�ndido de Souza Neto
I think the best way would be: $arrays = explode(PHP_EOL, $field); foreach ($arrays as $array) { $array = explode( , $array); } Not tested, but should work. Andres Gonzalez and...@packetstorm.com escreveu na mensagem news:49e38a9e.3090...@packetstorm.com... Hi, I am learning PHP and

Re: [PHP] Multithreading in PHP

2009-03-17 Thread Jo�o C�ndido de Souza Neto
My suggestion is that you can start a second ajax as soon as the response about validating data is returned to process everithing you need and so your user wont wait until the process is finished. João Cândido Manoj Singh manojsingh2...@gmail.com escreveu na mensagem

[PHP] Re: PDO DBLIB does not support transaction

2009-02-17 Thread Jo�o C�ndido de Souza Neto
I´ve just solved it by myself by creating methods which executes BEGIN TRANSACTION, COMMIT TRANSACTION and ROLLBACK TRANSACTION directly. João Cândido de Souza Neto j...@consultorweb.cnt.br escreveu na mensagem news:1f.00.36931.96bba...@pb1.pair.com... Hi, I´m using PDO dblib to connect to

Re: [PHP] sprintf thousand separator.

2009-02-11 Thread Jo�o C�ndido de Souza Neto
Chris, Thanks for your answer, but my real problem is to get thousand separator in jpgraph class which uses sprintf to display almost everithing; chris smith dmag...@gmail.com escreveu na mensagem news:3c1395330902110457i18cec69cy9818e08cdd3ff...@mail.gmail.com... 2009/2/11 João Cândido de

Re: [PHP] sprintf thousand separator.

2009-02-11 Thread Jo�o C�ndido de Souza Neto
No, I can´t, because if I do it how can jpgrhph render without numeric data? hehehe Richard Heyes rich...@php.net escreveu na mensagem news:af8726440902110523x63ce5485p6534d10063eb4...@mail.gmail.com... Thanks for your answer, but my real problem is to get thousand separator in jpgraph

Re: [PHP] sprintf thousand separator.

2009-02-11 Thread Jo�o C�ndido de Souza Neto
Ok, thanks. I´ll try to do it. As soon as I get it I´ll let you know. Thanks guys. Bruno Fajardo bsfaja...@gmail.com escreveu na mensagem news:eeb6980b0902110534p22a8c75eqd98cceaf3a150...@mail.gmail.com... Can you extend the JPGraph class, intercepting the desired method, formatting the

Re: [PHP] Architecture patterns in PHP

2008-12-28 Thread Michael C. Yates
be cool. Thanks Michael C. Yates -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Architecture patterns in PHP

2008-12-27 Thread Michael C. Yates
Hey, How do you structure your web applications? I am thinking in terms of separating presentation and logic. How is that done in PHP? And how many architecture patterns are there? Thanks Micheal C. Yates -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Architecture patterns in PHP

2008-12-27 Thread Michael C. Yates
dude, whatever Daniel Brown wrote: On Sat, Dec 27, 2008 at 18:40, Michael C. Yates quw...@gmail.com wrote: [snip!] Micheal C. Yates You mis-spelled your name, Michael. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] gethostbyaddr and IPv6

2008-11-22 Thread Glen C
On 11/22/2008 02:17 AM, Lars Torben Wilson wrote: 2008/11/21 Glen Carreras[EMAIL PROTECTED]: On 11/22/2008 12:10 AM, Lars Torben Wilson wrote: Hi Glen, Works for me. IPv6 support was added in 2001. You didn't say what version of PHP you are having this problem with, so it's hard to say why

[PHP] gethostbyaddr and IPv6

2008-11-21 Thread Glen C
() [a href='function.gethostbyaddr'function.gethostbyaddr/a]: Address is not in a.b.c.d form in C:\www\tests\saved\host.php on line 7 Google has not been my friend in this matter... Any insight? Thanks, Glen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Manual Coding vs. CMS Systems

2008-08-28 Thread Auto-Deppe, C. Haensel
Hi all! And again, a slightly off topic subject for you all from yours truly :o) I have a customer (helicopter company) who is willing to give me some free flights for a small website. Now, I have been talking to my sister in law who is a designer (note: designer, not coder). She said I should

RE: [PHP] Manual Coding vs. CMS Systems

2008-08-28 Thread Auto-Deppe, C. Haensel
-:- -Original Message- -:- From: Jochem Maas [mailto:[EMAIL PROTECTED] -:- Sent: Thursday, August 28, 2008 1:46 PM -:- To: [EMAIL PROTECTED] -:- Cc: php-general@lists.php.net -:- Subject: Re: [PHP] Manual Coding vs. CMS Systems -:- -:- Auto-Deppe, C. Haensel schreef: -:- Hi all

[PHP] make install doesn't seem to work on downgrade on OS X -- anyone else seen this?

2008-08-19 Thread Weston C
I recently downgraded from a build of 5.3 to 5.2.6 on OS X, and had a bit of time figuring out what was going on when make install didn't seem to actually copy the CLI binary and Apache SO to their target spots. Has anyone else seen this problem? What category would a bug report for this be

Re: [PHP] make install doesn't seem to work on downgrade on OS X -- anyone else seen this?

2008-08-19 Thread Weston C
On Tue, Aug 19, 2008 at 9:43 AM, Jason Pruim [EMAIL PROTECTED] wrote: Is there a particular reason you are downgrading? I'm pretty happy with some of the features in 5.3, but have been asked to work with a codebase that turned out to have some issues under 5.3 that didn't show up under 5.2.x.

[PHP] Echo in __GET()

2008-08-05 Thread Tyler C.
Is the a way to have an array, or use __get() to provide different data if you are echoing a variable, rather than if you are using it in a 'if' statement? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Memory Management

2008-08-03 Thread Chacha C
is it possible because you can assign $func = foo and call $func() and it will call foo(), maybe that its creating an endless loop of assigning the function to itself? On Sun, Aug 3, 2008 at 11:17 AM, brian [EMAIL PROTECTED] wrote: Waynn Lue wrote: I've been running the script below: ?php

[PHP] PHP 5 auto-htmlentitizing strings?

2008-08-02 Thread Weston C
I just switched over an app from PHP 4 to PHP 5, and one of the weird things I'm noticing initially is that some of the html output seems to be html entitized. For example, a link that was showing up in html output as: a href=http://metaphilm.com/philm.php?id=29_0_2_0;Is Tyler Durden Hobbes?/a

Re: [PHP] Re: Exposing PHP/errors on production vs. dev

2008-08-02 Thread Chacha C
Somehow .. I feel this isn't PHP Related. On Sat, Aug 2, 2008 at 11:08 AM, Robert Cummings [EMAIL PROTECTED]wrote: On Sat, 2008-08-02 at 14:01 -0400, Daniel Brown wrote: On Sat, Aug 2, 2008 at 1:58 PM, Robert Cummings [EMAIL PROTECTED] wrote: Sorry, I hired a profession for the chair

  1   2   3   4   5   6   7   >