Re: [PHP] I am RTFM, but still stumbling on how to get built-in functions parsed in heredoc

2009-07-11 Thread Daniel Brown
On Sat, Jul 11, 2009 at 14:15, Eddie Drapkin wrote: > [snip!] > which would be cast to a string (as an undefined constant) and then [snip!] That's exactly the point I was waiting for someone to make. I wanted someone to question why it was a Bad Idea[TM] to leave the key unquoted and typecast

Re: [PHP] mysql_real_escape_string wants a string or a "resource"?

2009-07-11 Thread Daniel Brown
On Sat, Jul 11, 2009 at 17:46, Stuart wrote: > > You're looking at the documentation for mysqli_real_escape_string but > using mysql_real_escape_string - notice the i in mysqli in the first > function name. For the longest time, we were having a problem in the docs where some mirrors were erro

Re: [PHP] I am RTFM, but still stumbling on how to get built-in functions parsed in heredoc

2009-07-11 Thread Daniel Brown
On Sat, Jul 11, 2009 at 17:37, tedd wrote: > > I'm sure some clever person could come up with something better. Probably not. Now, on to NOWDOC -- daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.net/ Check out our great hosting and dedi

Re: [PHP] mysql_real_escape_string wants a string or a "resource"?

2009-07-11 Thread Daniel Brown
On Sat, Jul 11, 2009 at 17:51, Govinda wrote: > > as in a db connection That's essentially a resource in reference to an object. -- daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.net/ Check out our great hosting and dedicated server deals at ht

Re: [PHP] I am RTFM, but still stumbling on how to get built-in functions parsed in heredoc

2009-07-11 Thread Daniel Brown
On Sat, Jul 11, 2009 at 19:46, Zareef Ahmed wrote: > I always said :  Being good and Being FORCED to be good  are two different > things... and PHP normally don't force us to be good that why PHP is the > most popular programming language with a large code base which WORKS but > not as per the stan

Re: [PHP] PHP/mysql equivalent of PEAR's tableInfo()??

2009-07-11 Thread Daniel Brown
On Sat, Jul 11, 2009 at 19:57, Govinda wrote: > I have been using PEAR's tableInfo() to remind myself about the columns in > the table..  but now I want to see as much data as possible about the table > and its contents *without* using PEAR.   (I.e. just using built in stuff for > mysqli.) Thi

Re: [PHP] A prepared statements question

2009-07-11 Thread Daniel Brown
[Redirected to PHP-DB: php...@lists.php.net] On Sun, Jul 12, 2009 at 00:31, Jason Carson wrote: > Hello everyone, > > I am having a problem getting my prepared statements working. Here is my > setup... > >    index.php -> authenticate.php -> admin.php > > 1)index.php has a login form on it so

Re: [PHP] RFC/Survey for Our Newer Folks (Including Lurkers)

2009-07-12 Thread Daniel Brown
On Sun, Jul 12, 2009 at 09:45, Ashley Sheridan wrote: > > Yeah, I'll put it down to old age and not my reading laziness! You're just lucky Tedd got to you first, Ash. I was going to fairy-slap you for messing up the rotation! You've been here, what, about a year now? ;-P And here's hop

Re: [PHP] I am RTFM, but still stumbling on how to get built-in functions parsed in heredoc

2009-07-12 Thread Daniel Brown
On Sun, Jul 12, 2009 at 03:08, Eddie Drapkin wrote: > > Two things: > 1) I've never head of an email list changing their rules to cater to a > fringe crowd, like Nokia 6020 users. > 2) Why does every thread lately degrade into chatter about top/bottom > posting? *looks RIGHT AT D. Brown* Re: (

[PHP] Establishing PHP Session From a Different Host

2009-07-12 Thread Daniel Kolbo
Hello, How does one continue a php session on a different domain (domain B) than the domain (domain A) that started the session? That is, I want to hand-off a session to another domain, but I do not see how to do this as one cannot set a cookie for another domain (for valid reasons). I was think

Re: [PHP] Establishing PHP Session From a Different Host

2009-07-12 Thread Daniel Brown
On Sun, Jul 12, 2009 at 12:37, Daniel Kolbo wrote: > Hello, > > How does one continue a php session on a different domain (domain B) > than the domain (domain A) that started the session? Simple answer: you don't. Extended answer: you can, but only if the domains r

Re: [PHP] Establishing PHP Session From a Different Host

2009-07-12 Thread Daniel Kolbo
Daniel Brown wrote: > On Sun, Jul 12, 2009 at 12:37, Daniel Kolbo wrote: >> Hello, >> >> How does one continue a php session on a different domain (domain B) >> than the domain (domain A) that started the session? > > Simple answer: you don't. > &g

Re: [PHP] PHP/mysql equivalent of PEAR's tableInfo()??

2009-07-12 Thread Daniel Brown
Top-posting. This would be an excellent question for Prune (CC'd) to field, based on the error message. Prune? On Sun, Jul 12, 2009 at 17:49, Govinda wrote: >> On Sat, Jul 11, 2009 at 19:57, Govinda >> wrote: >>> >>> I have been using PEAR's tableInfo() to remind myself about the co

Re: [PHP] A prepared statements question

2009-07-12 Thread Daniel Brown
2009/7/12 Eddie Drapkin : > > This is just my opinion, of course :) Which is welcome. Preferrably, on the php-db@ list, but welcome nonetheless. ;-P -- daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.net/ Check out our great hosting and dedica

Re: [PHP] mod primary key field - newbie question

2009-07-13 Thread Daniel Brown
On Mon, Jul 13, 2009 at 17:35, c...@hosting4days.com wrote: > newbie question ... I have a MySQL table where I want to update (renumber) > the primary numeric key field. The response you received from Floyd was accurate, but next time, please keep these kinds of questions on the appropriate li

Re: [PHP] IP to geo-location advice

2009-07-15 Thread Daniel Brown
On Wed, Jul 15, 2009 at 08:14, Patrick wrote: > > Could anyone give me some advice on the best way to do IP to > geo-location with php using open source code? Advice: RTFM. ;-P http://php.net/geoip -- daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www

Re: [PHP] I have an idea

2009-07-15 Thread Daniel Brown
On Wed, Jul 15, 2009 at 15:30, Ashley Sheridan wrote: > Done! In order to never lose, don't play ;) That's what I had expected. ;-P About eleven years ago, a co-worker and I each wanted the same day off. I had seniority, but decided to play fair with him and give him a shot. I told him

Re: [PHP] Add php.net to my browser search box

2009-07-16 Thread Daniel Brown
On Thu, Jul 16, 2009 at 11:59, Martin Scotta wrote: > Hi all! > > I'd like to add php.net to my browser search box. > Most browser can do it by "looking" at some XML provided by the site. I had written one about two and a half years ago. It's the dumbest, simplest thing, and yet it's now been

[PHP] Internal PHP caching methodology

2009-07-16 Thread Daniel Kolbo
Hello, Call me a dreamer...but I got to ask. Is there any software for helping speed up PHP by utilizing internal PHP caching? I am not talking about the external php cache/header control. Smarty caching doesn't give me the control I need either. I would like to cache to a finer level than pag

[PHP] Re: [HEADSUP] rsync going temporarily down

2009-07-16 Thread Daniel Brown
2009/7/16 José Miguel Santibáñez A. : > > Hi, here (http://cl.php.net) we lost all documentation... > > I'll try a re-sync manually, but nothing happenes... Just a heads-up for those of you reading the newsgroup in real-time and emailing me directly or contacting off the PHP General list, do n

Re: [PHP] Add php.net to my browser search box

2009-07-16 Thread Daniel Brown
On Thu, Jul 16, 2009 at 20:24, Eric Butera wrote: > > Interesting content on that site, Dan! One of those situations where I bought a domain name with the intent and desire to do something, and wound up converting it to personal usage. In this case, doing nothing but putting up random crap to

Re: [PHP] php.net down?

2009-07-16 Thread Daniel Kolbo
Thijs Lensselink wrote: > Anybody noticed php.net is down? > > It's responding to pings. But no pages load. > > I noticed this -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php.net down?

2009-07-16 Thread Daniel Brown
On Thu, Jul 16, 2009 at 21:55, Michael A. Peters wrote: > > They probably just have their asp.net module misconfigured. IIS crashed. We tried to CTRL+ALT+DEL, but it didn't work. We've been on the phone with Tech Support for nine hours, and hope to be able to install Service Pack 31 next wee

Re: [PHP] Internal PHP caching methodology

2009-07-17 Thread Daniel Kolbo
Eric Butera wrote: > On Thu, Jul 16, 2009 at 5:50 PM, Daniel Kolbo wrote: >> Hello, >> >> Call me a dreamer...but I got to ask. >> >> Is there any software for helping speed up PHP by utilizing internal PHP >> caching? >> >> I am not talking a

Re: [PHP] Internal PHP caching methodology

2009-07-18 Thread Daniel Kolbo
Daniel Kolbo wrote: > Eric Butera wrote: >> On Thu, Jul 16, 2009 at 5:50 PM, Daniel Kolbo wrote: >>> Hello, >>> >>> Call me a dreamer...but I got to ask. >>> >>> Is there any software for helping speed up PHP by utilizing internal PHP >&g

Re: [PHP] This is the kind of [expletives deleted] answer that is certain to prevent bugs being reported.

2009-07-24 Thread Daniel Brown
On Fri, Jul 24, 2009 at 13:18, Per Jessen wrote: > > As for being aggressive - well, being fobbed off with an RTFM when > > 1) I've spent some time and effort in testing, documenting and reporting > the bug, and > 2) the behaviour is at best undocumented, > > well, yes, it p.. me off.  It's jus

Re: [PHP] This is the kind of [expletives deleted] answer that is certain to prevent bugs being reported.

2009-07-24 Thread Daniel Brown
On Fri, Jul 24, 2009 at 15:25, Per Jessen wrote: > Daniel Brown wrote: >>     In reality, those are canned responses.  Jani didn't type that up >> himself, he just selected it from a drop-down that we have. > > In all honesty, that only makes it worse.  To make an eff

[PHP] prepending concatenating assignment operator

2009-07-24 Thread Daniel Kolbo
Hello, I know the appending concatenating assignment operator: $str_name = "Foobar"; $str_name .= " Sr"; echo $str_name;//Foobar Sr But is there a shortcut assignment operator for prepending concatenation? $str_name = "Foobar"; //$str_name =. "Mr "; // i know this is not allowed, but is there so

Re: [PHP] Question on code profiling

2009-07-24 Thread Daniel Kolbo
Andrew Ballard wrote: > On Thu, Jul 23, 2009 at 11:31 PM, Andrew Ballard wrote: >> From what I can tell, the numbers I see in WinCacheGrind >> look like they are off by about a factor of 10 pretty >> uniformly. >> >> Andrew >> > > Apparently the difference is indeed WinCacheGrind, as a number of >

[PHP] OOP Design Software

2009-07-26 Thread Daniel Kolbo
Hello, Is there an objected oriented programming software that can help me keep track of my methods and properties of my objects. My memory is not what it used to be, and i'd like to have a quick 'overview' or layout of all the objects I have to work with. Maybe the software would even let make

Re: [PHP] OOP Design Software

2009-07-26 Thread Daniel Kolbo
Caner BULUT wrote: > Hi Daniel, > > You can use Eclipse with plugin PDT or Zend Studio. They can track your > classes and methods. They can remember your methods and classes also they > have code completion abilities. > > Thanks > Caner. > > -Original Mes

[PHP] Expand Variables in String

2009-07-29 Thread Daniel Kolbo
Hello, Is it possible to force a string to expand variable names after the string has been set and before the variable's been defined without having to do a string replace or preg_replace? for example, "; $var = "Variable Contents"; echo $str.""; $str_expanded = $str;//would like this to expand $

Re: [PHP] Expand Variables in String

2009-07-29 Thread Daniel Kolbo
e string, if you are sure the $str has no " inside you > can omit it. > > Jonathan > > On Wed, Jul 29, 2009 at 5:43 PM, Daniel Kolbo wrote: >> Hello, >> >> Is it possible to force a string to expand variable names after the >> string has been set and before th

Re: [PHP] preg_match too greedy

2009-07-29 Thread Daniel Kolbo
Jim Lucas wrote: > Ben Dunlap wrote: >> Jim Lucas wrote: I expected 'no match' but get 'match'. >> [8<] >>> cut/paste your code and it works for me. >> Works for me as well. I get 'no match' from PHP 5.1.2, 5.2.6, and 5.2.8. What >> version do you have? > > PHP 5.2.5 with Suhosin-Patch 0.9.6.

Re: [PHP] preg_match too greedy

2009-07-29 Thread Daniel Kolbo
b wrote: > On 07/29/2009 07:48 PM, Daniel Kolbo wrote: >> >> code works (no match) for me too on php 5.2.6 build date May 2 2008 >> 18:01:20 with dumbdows NT. >> >> preg_match fails but for a reason other than what I think you may be >> expecting. It fails

Re: [PHP] regex - filtering out chinese utf8 characters

2009-07-30 Thread Daniel Kolbo
Merlin Morgenstern wrote: > Hi there, > > I am trying to filter out content that is not ascii. Can I do this with > regex? For example: > > $regex = '[AZ][09]'; > if (preg_match($regex, $text)) { > return TRUE; > } > else { > return FALSE; > } > > The reason I

[PHP] PHPGitAdmin Project Brainstorm

2009-08-02 Thread Daniel Kolbo
Hello, I had a thought today while walking...why do all ideas come while walking under the sun rather than slouching in front of the LCD's glow? Wouldn't it be cool to develop an application that allowed one to manage Git via PHP? I'm thinking, sorta like how the PHPMyAdmin project helps people

[PHP] Re: Dan Brown

2009-08-03 Thread Daniel Brown
ALL: It's far easier to drop a line to the mailing lists and BCC a few others than to write back to many individually. Thanks for the concern and well-wishes from the many who wrote to me during the last 10 days. It's very, very kind of you, and much appreciated. I'm honored that yo

Re: [PHP] Re: file upload question

2009-08-03 Thread Daniel Echalar
i add me to the question. 2009/8/3 Peter Ford > seb wrote: > > Hey all, > > > > i am using move_upload function to upload files to the server, but i > > want to add a feature that will allow files to be archived that have > > been uploaded already. > > > > so, the problem is: > > > > i upload a

Re: [PHP] Re: Dan Brown

2009-08-03 Thread Daniel Brown
On Mon, Aug 3, 2009 at 13:54, tedd wrote: > > I had that happen a few years ago. I had/have a $20k insurance policy on my > office computers and data. However, I was very surprised to find that it > didn't cover flooding. > > Since then I keep a HD backup of everything in a waterproof safe inside a

Re: [PHP] HELP - Parse Error

2009-08-04 Thread Daniel Brown
On Tue, Aug 4, 2009 at 13:47, Allen McCabe wrote: [snip="everything"] Looks like you're missing a closing bracket here: if(!empty($_POST['EMailAddress'])) { $EMailAddress = $_POST['EMailAddress']; } else { $EMailAddress = " "; // <--- Right here -- daniel.br...@parasane.net || danbr...@

Re: [PHP] Need a Linux copy of the php.ini file

2009-08-04 Thread Daniel Brown
On Tue, Aug 4, 2009 at 15:19, Bastien Koert wrote: > Trying to install php at amazon and have a version with no 'dymanic > modules'. Does anyone have a list of those modules? > > I specificially need > > curl > mysql > mysqli You have a shell with me, right? Use these instructions to copy it,

[PHP] Warning: OutsourcingRoom.com

2009-08-04 Thread Daniel Brown
Just as a heads-up, in case you guys weren't yet aware (cross-posting): Elance.com was the victim of an SQL injection attack earlier this summer (they apparently missed our billions of threads on sanity). According to their folks, only names, company names, phone numbers, and email address

Re: [PHP] php external interfaces

2009-08-08 Thread Daniel Echalar
well i know the command shell_exec(), that work like console, just put de command as paramether. More info in php documentation. For COM objects for example, $word = new COM("word.application") or die("Unable to instantiate application object"); $wordDocument = new COM("word.doc

Re: [PHP] Can php be cause a strain on a web server

2009-08-09 Thread Daniel Brown
On Sat, Aug 8, 2009 at 11:08, Jerry Wilborn wrote: > You're going to have to be more > specific.  There are very few problems where this is absolutely no solution. And you're going to have to read what he said again and understand the context of the question and answer. It requires no more sp

Re: [PHP] Can php be cause a strain on a web server

2009-08-09 Thread Daniel Brown
On Sun, Aug 9, 2009 at 15:03, Jerry Wilborn wrote: > You seem nice. I have my moments. -- daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.net/ Check out our great hosting and dedicated server deals at http://twitter.com/pilotpig -- PHP General

[PHP] to a css file requires .css ???

2009-08-16 Thread Daniel Kolbo
Hello, I realize this is more of an html question than a php, but I was hoping someone here would know what's going on. I am linking to a stylesheet and it is requiring me to use *.css extension. I want to use a .php extension (and have the php engine generate css). However, whenever i use a .php

Re: [PHP] to a css file requires .css ???

2009-08-16 Thread Daniel Kolbo
Daniel Kolbo wrote: > Hello, > > I realize this is more of an html question than a php, but I was hoping > someone here would know what's going on. > > I am linking to a stylesheet and it is requiring me to use *.css > extension. I want to use a .php extension (and have

Re: [PHP] security question of ZCE exam

2009-08-25 Thread Daniel Brown
On Tue, Aug 25, 2009 at 00:07, Augusto Flavio wrote: > > Answers: (choose 2) >    Error messages will contain sensitive session information >    Error messages can contain cross site scripting attacks >    Security risks involved in logging are handled by PHP > X    Error messages give the percepti

[PHP] Re: classes and objects: php5. The Basics

2007-01-16 Thread Daniel Kullik
play_errors', 'on'); Regards, Daniel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Array to Object

2007-02-13 Thread Daniel Kullik
Eli wrote: Hi, Having this array: $arr = array( 'my var'=>'My Value' ); Notice the space in 'my var'. Converted to object: $obj = (object)$arr; How can I access $arr['my var'] in $obj ? -thanks! print $obj->{'my var'}; $obj->{'my var'} = 'My New Value'; print $obj->{'my var'};

[PHP] Firefox Extension (Firefox 2.x.x.x)

2007-03-28 Thread Daniel Brown
Hope it saves everyone a microsecond or two. We now return you to your regularly-scheduled, SPAM-filled inbox. -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107

[PHP] Form Handler Script Security Discussion

2007-03-29 Thread Daniel Brown
ecurely when inserting it into a database or processing it on anything more than a bare, basic level. -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107

[PHP] IP Geolocation Scripts

2007-03-29 Thread Daniel Brown
Does anyone have any recommendations for existing open source PHP scripts that use IP Geolocation? I was looking into creating a hook to use hostip.info's API, but it's still too new, and I've already had to add three IP address and a netblock. -- Daniel P. Brown [office] (570

[PHP] Debugging Extensions (APD, etc.)

2007-04-05 Thread Daniel Brown
are being called and output a log of this information, as well as code execution times so I can see exactly how many cycles are being wasted and reduce it. -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107

Re: [PHP] PHP & Text Messaging

2007-04-19 Thread Daniel Brown
the community. Thanks in advance, ~Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Daniel P. Brown [office] (570-) 587-7080 Ext

Re: [PHP] PHP & Text Messaging

2007-04-20 Thread Daniel Brown
munity. >> Thanks in advance, >> ~Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107

Re: [PHP] running linux

2007-04-20 Thread Daniel Brown
inux on it or have it running window and emulate a lixux environment. Is this possible? What is the easiest way to get linux to run on a windows machine? Is it any easier to do this on a mac? Ross -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub

Re: [PHP] IRC and English

2009-08-31 Thread Daniel Brown
On Mon, Aug 31, 2009 at 21:06, Paul M Foster wrote: > I'm sorry, but is anyone else annoyed by people who attempt to use IRC > jargon on mailing lists? For example, substituting "u" for "you". Oddly > enough, I'm seeing this primarily in foreign language posters, not in > native English speakers. I

Re: [PHP] IRC and English

2009-09-01 Thread Daniel Brown
On Tue, Sep 1, 2009 at 13:36, Ashley Sheridan wrote: > I'll second that, I've not once seen you use txt spk, 744t speak, or any > other abominable mess that passes for language these days! 744t speak is that like 733t speak 2.0? ;-P -- daniel.br...@parasane.net || danbr...@php.net http

[PHP] Fwd: Current PHP Global Network Statistics

2009-09-01 Thread Daniel Brown
your development box(es)? Please share your thoughts with the class. ;-P -- Forwarded message -- From: Daniel Brown Date: Tue, Sep 1, 2009 at 14:05 Subject: Current PHP Global Network Statistics To: PHP Mirrors List    ALL:    As you may now already know, after completing the

Re: [PHP] Fwd: Current PHP Global Network Statistics

2009-09-01 Thread Daniel Brown
On Tue, Sep 1, 2009 at 15:10, Eddie Drapkin wrote: > > Why is 5.1.6 such a popular release for the PHP mirrors? It's a common distro release, particular for RPM's (CentOS, Fedora, RHEL). In fact, that's why I set that as the minimum version in the requirements during the upgrade operation:

Re: [PHP] IRC and English

2009-09-01 Thread Daniel Brown
On Tue, Sep 1, 2009 at 17:02, Jessi Berkelhammer wrote: > As a monolingual North American, I am also very uncomfortable with this > thread. > > A rant about abbreviations/IRC jargon is an appropriate discussion for list, > but criticizing how non-native English speakers write English is not. This >

Re: [PHP] PHP6 Stable Release Schedule

2009-09-04 Thread Daniel Brown
On Fri, Sep 4, 2009 at 17:42, Bobby Pejman wrote: > Hi, > > Does anyone know when the stable release of PHP6 be ready for download?  I > hear there's a lot of goodies in version 6 including built-in Caching. > Yum.  Also, will PHP ever implement the Strict mode similar to Perl's 'using > Strict'?

Re: [PHP] PHP GURU NEEDED

2009-09-14 Thread Daniel Brown
On Mon, Sep 14, 2009 at 15:50, mm w <0xcafef...@gmail.com> wrote: > Hello, Jerome > > I would like to apologize because this kind of behavior is not a good > point for the image of the community, > > folks please, if your are interested in this position, just send your > resume and your references

Re: [PHP] PHP GURU NEEDED

2009-09-14 Thread Daniel Brown
On Mon, Sep 14, 2009 at 15:56, mm w <0xcafef...@gmail.com> wrote: > Hello Daniel > > How Andrea showed up, seriously you can be a good coder but you cannot > be without a minimum of social skills and education, I have the > feeling to be a Circus. Honestly, my opinio

Re: [PHP] Web Site Directory Layout

2009-09-25 Thread Daniel Brown
On Fri, Sep 25, 2009, Caner Bulut wrote: > > Is there a stable or standart directory layout for PHP project (like web > sites)?. The very plain, simple answer is: no. There are similarities between projects, and common, logical reasons for doing them but nothing that would quite earn th

Re: [PHP] Web Site Directory Layout

2009-09-25 Thread Daniel Brown
On Fri, Sep 25, 2009 at 19:30, Caner Bulut wrote: > > I will be out of office between 18th - 28th of June. That's fantastic. Have a nice ten-day vacation nine months from now. Thanks for letting us know so far in advance! ;-P -- daniel.br...@parasane.net || danbr...@php.net http://www.p

Re: [PHP] nl2br() question

2009-09-26 Thread Daniel Brown
On Sat, Sep 26, 2009 at 11:22, tedd wrote: > Hi gang: > > The manual says: > >   http://www.php.net/nl2br > > That I could use the function like so (Example #2): > >   $new = nl2br($string, false); > > But when I do, I get: > >   Warning: Wrong parameter count for nl2br() in /home... > > What's up

Re: [PHP] Converting print_r() output to an array

2009-09-30 Thread Daniel Brown
On Wed, Sep 30, 2009 at 23:07, James Colannino wrote: > Hey everyone, I was pretty sure there was an easy built-in solution for > what I want to do, but I've been googling around with no luck. > Basically, I just want to take a string containing the output of > print_r() and convert it back into a

Re: [PHP] POST without POSTing

2009-09-30 Thread Daniel Brown
On Wed, Sep 30, 2009 at 23:29, Paul M Foster wrote: > > I'm not sure how to do this. Please no exotic external libraries my > shared hosting provider doesn't include. RTFM will be fine; just tell me > which Fine Manual to Read. Nothing too exotic at all, Paul. Check out cURL: http://php

Re: [PHP] POST without POSTing

2009-09-30 Thread Daniel Brown
On Thu, Oct 1, 2009 at 00:16, Paul M Foster wrote: > > However, assuming it *wasn't*, I've found the following example from a > google search (thank goodness for google's "hinting" or I couldn't have > found it): > > $fp = fsockopen("www.site.com", 80); > fputs($fp, "POST /script.php HTTP/1.0 > Ho

Re: [PHP] POST without POSTing

2009-09-30 Thread Daniel Brown
On Thu, Oct 1, 2009 at 00:41, Paul M Foster wrote: > > fsockopen() appears to be part of the standard network functions in PHP, > like the header() function. Do you mean that many hosts support the > function (as part of PHP) but don't support its use with external hosts? > Is there a way to deter

Re: [PHP] POST without POSTing

2009-10-01 Thread Daniel Brown
On Thu, Oct 1, 2009 at 16:14, Paul M Foster wrote: > > Okay, I've figured out how to shove the data through cURL to the > receiving URL, but then it occurred to me that the client browser must > go there *as well*. > > Will curl_exec() do that on its own, or is there a parameter I need to > feed i

Re: [PHP] Whacky increment/assignment logic with $foo++ vs ++$foo

2009-10-02 Thread Daniel Brown
On Fri, Oct 2, 2009 at 17:28, Daevid Vincent wrote: > > Personally I've never (in almost 20 years) done an assignment like "$foo = > $foo++" as I always use just "$foo++" or "$foo += 1" or something, hence the > reason today is the day a co-worker stumbled upon this and was as confused > as I was

Re: [PHP] Whacky increment/assignment logic with $foo++ vs ++$foo

2009-10-02 Thread Daniel Brown
On Fri, Oct 2, 2009 at 17:42, Daniel Brown wrote: > >     but rather by something just slightly more advanced: > > $num = file_get_contents('visitcount.txt'); > if(isset($_GET['countme'])) { >    echo "You are visitor #".++$num."\n&q

Re: [PHP] Whacky increment/assignment logic with $foo++ vs ++$foo

2009-10-03 Thread Daniel Brown
On Sat, Oct 3, 2009 at 10:49, tedd wrote: > > That's absolutely true. > > The problem here is in the statement of: > > $num = $num++; Yeah, I understood Daevid's email a bit better *after* I sent mine. Then I was hoping no one noticed. -- daniel.br...@parasane.net || danbr...@php.net http

Re: [PHP] strtotime strangeness

2009-10-05 Thread Daniel Brown
On Sun, Oct 4, 2009 at 17:00, Floyd Resler wrote: > Sorry to hear that!  I live in Cincinnati so I normally don't get to watch > the Colts play when they are on at the same time as the Bengals.  But this > week I did and, best of all, they won! Yeah, well, the Browns sure didn't, so bite me.

Re: [PHP] strtotime strangeness

2009-10-05 Thread Daniel Brown
On Mon, Oct 5, 2009 at 12:15, Jim Lucas wrote: > > You stated that you are running PHP 5.2.10 , too bad the function recommend > (locale_get_default()) is only available in PHP 5.3 or newer. That's my fault entirely, not Floyd's. I didn't look to see what version of PHP he was running. --

Re: [PHP] PHPNW09

2009-10-06 Thread Daniel Brown
On Tue, Oct 6, 2009 at 11:34, Ashley Sheridan wrote: > > No, it is a little far out for me. Is there something similar in > Londinium? Best way to keep informed is through php.net. Don't make our efforts be in vain! ;-P -- daniel.br...@parasane.net || danbr...@php.net http://www.parasane

Re: [PHP] PHPNW09

2009-10-06 Thread Daniel Brown
On Tue, Oct 6, 2009 at 11:34, David Otton wrote: > Is anyone from the list heading to PHPNW this weekend? Coincidentally, the PHPNW UG meeting is listed for tomorrow, but I have no listing for a conference this weekend. If you're in contact with any of those folks, Dave, you can ask them to

Re: [PHP] Whacky increment/assignment logic with $foo++ vs ++$foo

2009-10-06 Thread Daniel Brown
On Tue, Oct 6, 2009 at 14:46, Israel Ekpo wrote: > > Speaking of starting a conversation, what do you think about the "goto" > construct introduced just recently? Better yet: what do you all think of folks hijacking threads? -- daniel.br...@parasane.net || danbr...@php.net http://www.paras

[PHP] Re: JM.PHP.NET

2009-10-06 Thread Daniel Brown
On Tue, Oct 6, 2009 at 14:56, Dan Papakonstantino wrote: > Hello Dan, > > Sorry for the misunderstanding however, we are web developers as well as > hardware and software developers. You may have overlooked our web based > timesheet application called SonicWeb. Please review the following link o

[PHP] Web Service Server in PHP

2009-10-21 Thread Daniel Echalar
Hi, Does anybody knows a web services server based on PHP? The only one a see is Nusoap, but even for this one i can't find the webpage to see the documentation. by the way, i'm trying to develop an application using web services in PHP, any start point suggestion will be appreciated. thanks fo

[PHP] Two Parser Passes

2009-10-31 Thread Daniel Kolbo
Hello, Is it possible to get a list (array) of classes not found in a script before the fatal error exits the parser. I realize that PHP parses the script twice. It would be nice at the end of the first parsing pass to check to see which classes haven't been defined (yet), so that I could define

Re: [PHP] Two Parser Passes

2009-10-31 Thread Daniel Kolbo
Steve wrote: > Daniel Kolbo wrote: >> Hello, >> >> Is it possible to get a list (array) of classes not found in a script >> before the fatal error exits the parser. I realize that PHP parses the >> script twice. It would be nice at the end of the first pars

[PHP] Classes and Functions

2009-11-01 Thread Daniel Kolbo
a function def) to add that file to the tracking object...but it would be nice if i didn't have to modify my existing code to see which objects and functions a script actually used, or at least, requested and loaded into memory. Thanks in advance, Daniel Kolbo ` -- PHP General Mai

[PHP] PHP internal memory

2009-11-27 Thread Daniel Kolbo
Hello PHP-hipsters, I am not sure how to phrase these questions so please bare with me. I am thinking about performance of a single web server running Apache (non-cluster) with php as a module. I have a web app that requires the same php objects(classes) for each http request. First, I would li

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

2009-12-02 Thread Daniel Brown
On Wed, Dec 2, 2009 at 10:11, Chris Payne wrote: > Hi everyone, > > I'm pulling data from a mysql database, but need only the first 20 > characters of each string for a short description, what is the best > method to just grab the first 20 characters from a string regardless > of whether they are

Re: [PHP] Open source project management tool - PHP

2009-12-17 Thread Daniel González
gt; > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > -- > Devendra Jadhav > देवेंद्र जाधव > -- - Daniel González Cerviño FreelanceMadrid.es Mail : daniel.gonza...@freelancemadrid.es Tel (+34) 653 96 50 48 -

[PHP] OOP Design Question

2009-12-20 Thread Daniel Kolbo
Hello PHPers, I have a collection of about 60 objects (class definitions). They are all very similar. They all share a substantial % of the same core. But they all have slight variations as well. The approach I took was to make an abstract core class, and each of the 60 objects extends that co

[PHP] efficiency of include()

2009-12-20 Thread Daniel Kolbo
Hello PHPers, This is a two part question: 1) Is it faster to include one file with lots of code, or many separate smaller individual files? Assume the one massive file is merely the concatenation of all the smaller individual files. (I am assuming the one massive file would be faster..., but i

Re: [PHP] efficiency of include()

2009-12-20 Thread Daniel Kolbo
Larry Garfield wrote: > On Sunday 20 December 2009 10:45:45 am Daniel Kolbo wrote: >> Hello PHPers, >> >> This is a two part question: >> >> 1) Is it faster to include one file with lots of code, or many separate >> smaller individual files? As

Re: [PHP] Checking for internet connection.

2009-12-22 Thread Daniel Brown
On Sat, Dec 19, 2009 at 19:13, Angus Mann wrote: > Hi all. > > I'w writing a PHP app that is designed to run over a LAN, so internet > connection for the server is not really essential. Some users may > deliberately not connect it to the internet as a security precaution. > > But I'd like the app

Re: [PHP] Checking for internet connection.

2009-12-23 Thread Daniel Egeberg
On Wed, Dec 23, 2009 at 14:35, Bob McConnell wrote: > I don't keep copies of every message in any of the > dozens of mailing lists and news groups I follow, so there is no simple > way to go back through the conversation to figure out where it all came > from. Fortunately, other people keep compl

Re: [PHP] Tracking file download progress

2009-12-24 Thread Daniel Egeberg
ut that doesn't mean the client has downloaded all of it. It may for instance be that the client didn't finish downloading or that it is downloading slower than you are sending. -- Daniel Egeberg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Tracking file download progress

2009-12-24 Thread Daniel Egeberg
end variable. Would it work? Oh, I see now. Sorry. I had this in my bookmarks: http://www.swfupload.org/ I don't know if it's any good, but you can check it out. -- Daniel Egeberg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] strtotime - assumptions about default formatting of dates

2009-12-24 Thread Daniel Egeberg
us > strtotime() interprets dates according to the rules of the current timezone. The specific rules are outlined in GNU's manual: http://www.gnu.org/software/tar/manual/html_node/Date-input-formats.html -- Daniel Egeberg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Multiple Inheritance Concern

2009-12-25 Thread Daniel Kolbo
Hello PHPers, I've learned that php doesn't support multiple inheritance, b/c if you need multiple inheritance usually it is a sign you've got a design imperfection...or so they say. Well, I'm using a framework (Codeigniter), and i'm extending the core libraries. The trouble is, I want to also e

Re: [PHP] Multiple Inheritance Concern

2009-12-25 Thread Daniel Kolbo
Daniel Kolbo wrote: > Hello PHPers, > > I've learned that php doesn't support multiple inheritance, b/c if you > need multiple inheritance usually it is a sign you've got a design > imperfection...or so they say. > > Well, I'm using a framework

<    11   12   13   14   15   16   17   18   19   20   >