[PHP] Re: [PHP-DEV] Fatal error: Call to a member function on a non-object

2008-11-17 Thread Jochem Maas
please don't post this kind of question to internals. use [EMAIL PROTECTED] Christopher Vogt schreef: > Hej, > > I use PHP 5.2.6. I am refactoring some code to use more > object-orientation. I encounter a problem, where the new object-oriented > version results in a fatal error, where the old arr

Re: [PHP] mySQL query question

2008-11-13 Thread Jochem Maas
Michael S. Dunsavage schreef: > okay I want to pull an integer from a database called confirm_number, > add 1 and repost it back to the database > > > here's the code I'm using. > > > $queryconfirm="SELECT confirm_number from contacts ORDER BY contact DESC > LIMIT 1"; > $confirmresult=$querycon

Re: [PHP] Strange results

2008-11-13 Thread Jochem Maas
Craige Leeder schreef: > Micah Gersten wrote: >> >> I think you meant this: >> echo "-" & $fpType & "- is equal to " & self::mciInput & ""; >> to be >> echo "-" . $fpType . "- is equal to " . self::mciInput . ""; >> > And this is how you know you've been doing too much ASP, lol yeah, I'm with I

Re: [PHP] PECL HTTP Extension

2008-11-13 Thread Jochem Maas
[EMAIL PROTECTED] schreef: >> try the full path like so: >> >> extension=/usr/lib/php/extensions/no-debug-non-zts-20060613/http.so > > Wishful thinking. > > For reasons beyond my ken, php.ini ONLY accepts paths relative to your > extensions_dir setting. that's funny, because very often I've bee

Re: [PHP] PECL HTTP Extension

2008-11-12 Thread Jochem Maas
Rui Quelhas schreef: > Hi guys. I'm running PHP 5.2.6 (cli) on Mac OS X 10.5.5 and i've tried > to install and configure the http pecl extension like the tutorial in > your web site, i've used pecl to install it, i've also tried to compile > it manually. Everything got installed correctly, there i

Re: [PHP] Managed VPS recommendations

2008-11-10 Thread Jochem Maas
Larry Garfield schreef: ... I believe "that guy" Dan Brown might have something up your alley, although he might fall over on the 'douchebag' requirement ;-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP - Web/list Question...

2008-11-09 Thread Jochem Maas
Stut schreef: > On 9 Nov 2008, at 20:30, Robert Cummings wrote: > Agreed, but IMHO lack of URL-sharing is just one of many reasons to > avoid sessions if possible. > >> Taking further context though on my stream of responses... you did say: >> >>Seriously? You'd rather use sessions than

Re: [PHP] It's Sunday, and I'm bored...

2008-11-09 Thread Jochem Maas
Govinda schreef: > > On Nov 9, 2008, at 12:28 PM, Richard Heyes wrote: >> >> Subversion, or svn for short. Helps you maintain code bases. Far >> better than regular backups (though by no means a replacement). > > I looked it over briefly and it looks smart for serious collaborated > efforts.. bu

Re: [PHP] Image Manipulation

2008-11-09 Thread Jochem Maas
Ron Piggott schreef: > Is there a way to find out the number of pixels wide and high an image > is in PHP? > > Is there a way to resize an image using PHP? heh Ron, you've been around this list long enough to know that you should STFW and RTFM before posting questions. http://www.google.

Re: [PHP] PCRE regex result is different between Linux & Windows.

2008-11-07 Thread Jochem Maas
ClapClap schreef: > Hi, > > [I precede you, sorry for language mistakes...] php or english? :-) > > I have done a pretty regex which can normally strip all the empties HTML regexp's are never pretty IMHO ;-) I'm just going to start asking a whole stack of questions in the hope something sti

Re: [PHP] object persistence within a session

2008-11-07 Thread Jochem Maas
Stan schreef: > If this is the wrong forum, please point me at the correct forum. > > I am new to PHP but have 40 years experience programming. cool. we're you around when they programmed with Rocks[tm]? :-) (stick around a while and you'll get to know that inside joke) > My initial effort inclu

Re: [PHP] basic php question...

2008-11-04 Thread Jochem Maas
Boyd, Todd M. schreef: >> -Original Message- >> From: Wolf [mailto:[EMAIL PROTECTED] >> Sent: Tuesday, November 04, 2008 2:30 PM >> To: php-general@lists.php.net >> Subject: Re: [PHP] basic php question... >> >> >> Richard Heyes <[EMAIL PROTECTED]> wrote: users who browse without

Re: [PHP] wget --spider and ignore_user_abort(TRUE)

2008-11-04 Thread Jochem Maas
Martino Dell'Ambrogio schreef: > On Tue, 04 Nov 2008 11:59:20 +, Richard Heyes wrote: > >>> I need the PHP script to keep running until the end) >> Until the end of what? Time? > Until the end of the script. > >> If you want your HTTP request to finish and >> a script to continue regardless t

Re: [PHP] take me off the list

2008-11-03 Thread Jochem Maas
Stut schreef: > On 3 Nov 2008, at 00:52, Dennison, Deborah wrote: ... > Sort out who you are > and the world might start to make sense. that deserve's it's own T-shirt :) > -Stut > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: PreReq Index

2008-10-31 Thread Jochem Maas
Craige Leeder schreef: > I forgot to mention, the calls to setPreReq() would occur in each file > in place of an include() to get prerequisite components. IE: try autoload()ing. what your trying to do is reinvent a wheel ... and chances are yours will be less round. > > html.php : > Ember::setPr

Re: [PHP] Reg Ex

2008-10-31 Thread Jochem Maas
Eric Butera schreef: > On Fri, Oct 31, 2008 at 9:09 AM, Warren Windvogel > <[EMAIL PROTECTED]> wrote: >> Eric Butera wrote: >>> Who says every file will have an extension? Who says they're all .+3 >>> chars? When I first started php I tried that and it failed in a lot >>> of places. >> I've also

Re: [PHP] Recursive Directory Listing

2008-10-30 Thread Jochem Maas
he open/close tags. have a hunt around here: http://www.php.net/~helly/php/ext/spl/ > > Again, thanks for the point in the right direction! > > > > On Thu, Oct 30, 2008 at 1:30 PM, Jochem Maas <[EMAIL PROTECTED]> wrote: >> Joe Schaeffer schreef: >>> New to PH

Re: [PHP] Recursive Directory Listing

2008-10-30 Thread Jochem Maas
Joe Schaeffer schreef: > New to PHP development, new to the list; searched the archives but > didn't find an answer (or at least nothing i could successfully > adapt). > > I have a (readable) directory structure like so: > > ../navigation > /cats > /dogs > /beagles > /coll

Re: [PHP] General Mysql Connect

2008-10-30 Thread Jochem Maas
Ashley Sheridan schreef: > On Wed, 2008-10-29 at 20:28 -0500, Micah Gersten wrote: >> Ashley Sheridan wrote: >>> On Wed, 2008-10-29 at 20:12 -0500, Micah Gersten wrote: >>> Waynn Lue wrote: >> With MySQL, you can change the DB from query to query with >> mysql_select_db.

Re: [PHP] Re: ZendOptimizer + APC

2008-10-24 Thread Jochem Maas
t and switch job on > unsuspecting webmasters. Bleh... ah ... hmm. well ... yes. :-/ thanks for the info. > On Thu, Oct 23, 2008 at 4:44 AM, Jochem Maas <[EMAIL PROTECTED]> wrote: >> Nathan Nobbe schreef: >>> On Wed, Oct 22, 2008 at 4:39 PM, Martin Zvarík <[EMAI

Re: [PHP] what's the difference in the following code?

2008-10-23 Thread Jochem Maas
Chris Shiflett schreef: > On Oct 17, 2008, at 1:58 PM, Lamp Lists wrote: > >> I'm reading "Essential PHP Security" by Chris Shiflett. >> >> on the very beginning, page 5 & 6, if I got it correct, he said this >> is not good: >> >> $search = isset($_GET['search']) ? $_GET['search'] : ''; >> >> and

Re: [PHP] Politics

2008-10-23 Thread Jochem Maas
Amy schreef: > prints mosfet customercontrol universally lastinfirstout unixlike techie > perversities agreement > going by the last 4 words she must be talking about Cummings ... we all agree his doll fetish is rather perverse and he's definitely unixlike -- PHP General Mailing List (http://

Re: [PHP] class constructor overloading

2008-10-23 Thread Jochem Maas
Alain Roger schreef: > thanks a lot, this is exactly what i needed. > if the construct of based class A accept arguments, i guess that construct > of class B must have the sames. > moreover, i guess that something like that must be written: I guess you find guessing preferable to RTFM and/or tryin

Re: [PHP] Re: ZendOptimizer + APC

2008-10-23 Thread Jochem Maas
Nathan Nobbe schreef: > On Wed, Oct 22, 2008 at 4:39 PM, Martin Zvarík <[EMAIL PROTECTED]> wrote: > >> Jochem Maas napsal(a): napsal(a) ... that's even weirder than my 'schreef' :-) >>> anyone know whether running ZendOptimizer + APC simultaneously

Re: [PHP] Inheritance of class methods

2008-10-23 Thread Jochem Maas
Alain Roger schreef: > Hi, > > i have the following classes: > class A > { > public function EchoMe($txt) > { > echo $txt; > } > } > > class B extends A > { > ... > } > > in theory i can write something like that: > > $b = new B(); > $b->EchoMe("test"); > > and i should get echo "t

Re: [PHP] Half way

2008-10-22 Thread Jochem Maas
Ian schreef: > On 22 Oct 2008 at 6:34, Ron Piggott wrote: > >> I am tweaking a blog application I have programmed. I am trying to >> display a Google ad half through the blog entry, at the first available >> . >> >> The code I use so far is: >> >> $half_way = strlen( nl2br(stripslashes($entry)))

Re: [PHP] Re: Question about __destruct()

2008-10-22 Thread Jochem Maas
Stut schreef: > On 22 Oct 2008, at 00:22, Jochem Maas wrote: >> Stut schreef: >>> I use destructors to update dirty objects in memcache. >> >> care to eloborate ... sounds interesting. > > Nothing complicated. The core objects in my application are all cached &

Re: [PHP] ZendOptimizer + APC

2008-10-22 Thread Jochem Maas
Nathan Nobbe schreef: > On Tue, Oct 21, 2008 at 10:35 AM, Jochem Maas <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > anyone know whether running ZendOptimizer + APC simultaneously still > causes allsorts > of problems ... I know it did in

Re: [PHP] ZendOptimizer + APC

2008-10-22 Thread Jochem Maas
Sancar Saran schreef: > On Tuesday 21 October 2008 19:35:53 Jochem Maas wrote: >> anyone know whether running ZendOptimizer + APC simultaneously still causes >> allsorts of problems ... I know it did in the past but I can't find any >> very recent stuff about the issue

Re: [PHP] Re: Question about __destruct()

2008-10-21 Thread Jochem Maas
Stut schreef: > On 21 Oct 2008, at 22:08, Jochem Maas wrote: >> Mike van Riel schreef: >>> Dan Joseph wrote: >>>> Hi, >>>> >>>> I want to make sure I completely understand __destruct() and when its >>>> hit... >>>> >

Re: [PHP] Re: Question about __destruct()

2008-10-21 Thread Jochem Maas
Mike van Riel schreef: > Dan Joseph wrote: >> Hi, >> >> I want to make sure I completely understand __destruct() and when its >> hit... >> >> Understand that it will run if all references to a particular object are >> removed, but is that also true when a page ends its execution? >> >> Example, I c

[PHP] ZendOptimizer + APC

2008-10-21 Thread Jochem Maas
anyone know whether running ZendOptimizer + APC simultaneously still causes allsorts of problems ... I know it did in the past but I can't find any very recent stuff about the issues online. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Politics

2008-10-21 Thread Jochem Maas
Amy schreef: > representations emphasizing leksr matching thirds painfully wakesleep > ekswiezeezeewie accompanied > incidently. the word politics ... seemingly a combination of 'poli' (aka many) and 'tics' (aka 'bloodsucking wotsits') ... all too apt. -- PHP General Mailing List (http://www.

Re: [PHP] Remote Developer Wanted

2008-10-21 Thread Jochem Maas
Daniel Brown schreef: > On Tue, Oct 21, 2008 at 12:03 PM, Jochem Maas <[EMAIL PROTECTED]> wrote: >> and rob myself of the sport? your no fun since your married Shirley ;-) > > Coincidentally, that's exactly what my wife says. your wife calls you Shirley? your d

Re: [PHP] Remote Developer Wanted

2008-10-21 Thread Jochem Maas
Jay Moore schreef: > Jay Moore wrote: >> Daniel Brown wrote: >>> On Tue, Oct 21, 2008 at 11:31 AM, Robert Cummings >>> <[EMAIL PROTECTED]> wrote: You must be new around here... Shirley! >>> >>> Yes, brand new. This is only my second post --- and only the >>> third email I've ever sent in

Re: [PHP] Remote Developer Wanted

2008-10-21 Thread Jochem Maas
Daniel Brown schreef: > On Tue, Oct 21, 2008 at 4:26 AM, Brennon Bortz <[EMAIL PROTECTED]> wrote: >> Actually, speaking as someone now living in the UK, your low end is LESS >> than minimum wage here. Rather insulting, if you ask me... > > Simple advice then: delete the message and don't repl

Re: [PHP] what's the difference in the following code?

2008-10-21 Thread Jochem Maas
tedd schreef: > At 6:37 AM -0700 10/20/08, Lamp Lists wrote: >> - Original Message >> >> From: tedd <[EMAIL PROTECTED]> >> To: Lamp Lists <[EMAIL PROTECTED]>; php-general@lists.php.net >> Sent: Monday, October 20, 2008 8:25:50 AM >> Subject: Re: [PHP] what's the difference in the following

Re: [PHP] Accessibility problem with delegates

2008-10-21 Thread Jochem Maas
Dave Kok schreef: > Hi Everyone, > > I have a class with some callback functions and a class that should call > them. The class with the callback functions initializes the array with > the callbacks and hands it down to the other class that should call > them. PHP however forces the callback funct

Re: [PHP] Remote Developer Wanted

2008-10-20 Thread Jochem Maas
Andy Dyble schreef: > Hi > > I am looking for a remote developer for small add hoc jobs. Usually > only a few hours at a time. Basic stuff, listing data from SQL and text > files. Mainly work on existing systems. personally I'd run in the other direction based on that description, I mean who dec

Re: [PHP] Singletons

2008-10-20 Thread Jochem Maas
Christoph Boget schreef: >> Create your singleton class without extending the class you need to extend. >> Create an instance of that class in your object. Implement the __call magic >> method to proxy function calls through to that instance throwing an >> exception (or error) if the method request

Re: [PHP] php "make test" failures

2008-10-20 Thread Jochem Maas
Michael McCallister schreef: > Greetings PHP List, > > I have run php4 for many years and am finally rolling over to php5. > When I compiled php 5.2.6 and ran "make test", I get the following: > > = > FAILED TEST SUMMARY > -

Re: [PHP] Securing AJAX requests with PHP?

2008-10-17 Thread Jochem Maas
Jay Moore schreef: > I realize this isn't really about PHP, but I was hoping maybe someone > had a way to make AJAX a little bit more secure using PHP. > > I was thinking of making my AJAX calls also pass the current session id, the browser should still send the session cookie for async requests.

Re: [PHP] PHP Dev Facts

2008-10-17 Thread Jochem Maas
Nathan Rixham schreef: > Evening All, > > I'd be /really/ interested to know who uses what! > > *Procedural or OOP?* mostly OOP with a smattering of helper functions. small CLI scripts are often procedural. > > *Dev OS* Mac OS X Leopard (with winXP VM) > > *Dev PHP Version* daily dev 5.2.6

Re: [PHP] Re: 1 last error to fix before the application is done!

2008-10-16 Thread Jochem Maas
Jason Pruim schreef: > > On Oct 15, 2008, at 7:18 AM, Nathan Rixham wrote: > >> Jason Pruim wrote: >>> I probably should have mentioned that this was in a function to do >>> the heavy lifting for authentication :) I just didn't paste the whole >>> function since 90% of it worked just fine :) >>>

Re: [PHP] searching by tags....

2008-10-16 Thread Jochem Maas
Ashley Sheridan schreef: > On Wed, 2008-10-15 at 15:36 -0600, Govinda wrote: > > improvement if I went for static URLs on the site, but I don't > have any > evidence for that, and I'm willing to admit it. I'd rebuff this but it would feel like Im feeding a troll. >>> choices: >>

Re: [PHP] searching by tags....

2008-10-15 Thread Jochem Maas
Ashley Sheridan schreef: > On Wed, 2008-10-15 at 11:22 +0100, Nathan Rixham wrote: >> Jochem Maas wrote: >>> Ashley Sheridan schreef: >>>> On Wed, 2008-10-15 at 00:58 +0100, Nathan Rixham wrote: >>>>> Ashley Sheridan wrote: >>>&g

Re: [PHP] searching by tags....

2008-10-15 Thread Jochem Maas
Ashley Sheridan schreef: > On Wed, 2008-10-15 at 00:58 +0100, Nathan Rixham wrote: >> Ashley Sheridan wrote: >>> On Wed, 2008-10-15 at 01:17 +0200, Jochem Maas wrote: >>>> Nathan Rixham schreef: >>>>> Ashley Sheridan wrote: >>>>>> O

Re: [PHP] Re: 1 last error to fix before the application is done!

2008-10-14 Thread Jochem Maas
Colin Guthrie schreef: > Jochem Maas wrote: >> Jason Pruim schreef: >>> Good morning everyone! >>> >>> I think I might be having a "to early in the morning/not enough >>> caffeine" moment... But I am down to 1 error on my timecard appl

Re: [PHP] searching by tags....

2008-10-14 Thread Jochem Maas
Nathan Rixham schreef: > Ashley Sheridan wrote: >> On Tue, 2008-10-14 at 14:54 -0700, Ryan S wrote: >>> quite a few sites seem to have a very neat way of implementing this >>> with (url rewriting?) something like >>> http://sitename/blog/tags/tag-comes-here/ > >> As for getting those search terms,

Re: [PHP] New to this group....a continuation

2008-10-14 Thread Jochem Maas
Daniel Brown schreef: > On Tue, Oct 14, 2008 at 8:29 AM, Jason Pruim <[EMAIL PROTECTED]> wrote: >> re-tread? Someone pulled off his old skin, and put new, younger looking skin >> on? Might work on the outside but nothing can change the fact that the tire >> is still old :P > > > With a little

Re: [PHP] 1 last error to fix before the application is done!

2008-10-14 Thread Jochem Maas
Jason Pruim schreef: > Good morning everyone! > > I think I might be having a "to early in the morning/not enough > caffeine" moment... But I am down to 1 error on my timecard application > that I would like to clean up. It's a small undefined index error, and > the program works jsut fine the way

Re: [PHP] New to this group....a continuation

2008-10-13 Thread Jochem Maas
Gary schreef: > I posted that I was new to php and had a nice warm responce, however I am > now getting these responses in my email box. Is this something that I am > doing? I read and contribute to other news groups on a daily basis and this > is a first Can I change this? this list is as

Re: [PHP] Prefered Method for User authetification on VHosts

2008-10-07 Thread Jochem Maas
Michelle Konzack schreef: > Hello, > > I have at my hosting provider only 1 GByte of Diskspace and can install > VHosts as much as I want. The problem is, that I have "no access" to > the OS for OS-Level autentification. > > Currently I have > > ${CUSTOMERPATH}/htdocs/index.php > > whi

Re: [PHP] The 'at' sign (@) variable prefix

2008-10-06 Thread Jochem Maas
mike schreef: > Mon, Oct 6, 2008 at 12:17 PM, Daniel Brown <[EMAIL PROTECTED]> wrote: > >>> I will get an error, but if I prefix the value with '@', >>> >>> [EMAIL PROTECTED]"q"]; >>The @ is an error control operator, used to buffer the output and >> store it in a variable - $php_errormsg. >

Re: [PHP] mt_rand() - the same forever?

2008-10-05 Thread Jochem Maas
Janek schreef: > On Sun, Oct 5, 2008 at 10:05 PM, Ashley Sheridan > <[EMAIL PROTECTED]> wrote: >> On Sun, 2008-10-05 at 21:57 +0200, Janek wrote: >>> I know, but I *want* to seed it. My goal is to have a fixed >>> pseudorandom sequence for each integer (seed) and I don't want those >>> sequences to

Re: [PHP] Wanted PHP Developers LogicManse

2008-09-30 Thread Jochem Maas
Robert Cummings schreef: > On Tue, 2008-09-30 at 13:34 -0400, tedd wrote: >> At 9:51 AM -0700 9/30/08, VamVan wrote: >>> Job Description is awesome though. My first instinct was to jump in to it >>> right away. But there are some red flags as their website looks too >>> immature. Hard to believe !!

Re: [PHP] Robert Cummings

2008-09-30 Thread Jochem Maas
Daniel Brown schreef: > All: > > What was pointed as a passing mention in one thread I thought was > worth note in a thread of its own. As quoted by Rob: > >> BTW, while we're off topic... my wife delivered our third child (second >> boy) 3 minutes after midnight yesterday :) > > I'

Re: [PHP] Wanted PHP Developers LogicManse

2008-09-30 Thread Jochem Maas
Nathan Rixham schreef: > Richard Heyes wrote: >>> Thanks for quoting the whole message then! :P >> >> Maybe he just wanted to make sure you got it... >> > > I'm always really tight on these guy's - but it is just somebody > offering us a job I guess; they could have scoured the boards; ripped > e

Re: [PHP] question about <<

2008-09-29 Thread Jochem Maas
LKSunny schreef: > Hello, > > i want on inner EOF do something, calculate and call function ? can not ? if > yes, how to ? no you can't, store the results of calculation and function calls in variables and use them in the HEREDOC statement. a HEREDOC declaration is just a string declaration lik

Re: [PHP] calling functions from one or multiple files

2008-09-25 Thread Jochem Maas
Ashley Sheridan schreef: > On Fri, 2008-09-26 at 01:05 +0200, Jochem Maas wrote: >> tedd schreef: >>> At 3:44 PM -0400 9/24/08, Robert Cummings wrote: >>>> Seems kind of silly to have every function in it's own file. Also seems >>>> kind

Re: [PHP] calling functions from one or multiple files

2008-09-25 Thread Jochem Maas
tedd schreef: > At 3:44 PM -0400 9/24/08, Robert Cummings wrote: >> Seems kind of silly to have every function in it's own file. Also seems >> kind of cluttered ot have every function in one file. >> >> Now grouping related functions into a single file... that's sounds like >> a good middle ground.

Re: [PHP] The Data Literacy Test

2008-09-25 Thread Jochem Maas
Ashley Sheridan schreef: > On Wed, 2008-09-24 at 21:45 -0400, Eric Butera wrote: >> On Wed, Sep 24, 2008 at 9:22 PM, Shelley <[EMAIL PROTECTED]> wrote: >>> 2008/9/25 Philip Thompson <[EMAIL PROTECTED]> >>> On Sep 24, 2008, at 7:29 AM, Maciek Sokolewicz wrote: tedd wrote: >> At 1

Re: [PHP] Pass parameters via url inside a php cron job

2008-09-25 Thread Jochem Maas
Merlin Morgenstern schreef: > Hi there, > > I would like to run a php file via cron job and there is a parameter to > be passed. Unfortunatelly this does not work: > > # /usr/local/bin/php /home/www/create_notification_emails.php?tf=2 > Could not open input file: /home/www/create_notification_ema

Re: [PHP] Eclipse - PDT, prevent validation on some files

2008-09-24 Thread Jochem Maas
Nathan Rixham schreef: Jochem Maas wrote: ... tough day master maas? like chewing on wasps :-/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Eclipse - PDT, prevent validation on some files

2008-09-24 Thread Jochem Maas
Sancar Saran schreef: Hello there, sorry to bugging the list and I hope finding the answer quickly. then STFW, or something? Today I watch a youtube video which showing eclipse pdt and I want to try. It was amazing, it was so advanced after kate and if I handle one thing, I would be very

Re: [PHP] Don't understand what is this $arr['N']['#']

2008-09-24 Thread Jochem Maas
It flance schreef: Hi, I am working on the code of a former employee and I don't understand what this $arr['N']['#'] refers to. I know it is a multidimensional associative array but the # i don't what this means. it's a string ... used as the (associative) key to an array. the item you me

Re: [PHP] Re: class const versus define

2008-09-24 Thread Jochem Maas
Richard Lynch schreef: Richard Lynch schrieb: Is there any reason why the logic behind define() couldn't be pushed down to class const? Code like this is kinda fugly: //It's okay here, but not in a class? define('CACHE_DIR_LONG', CONFIG_ROOT_PATH . '/cache/'); class Cache { const CACHE_DIR

Re: [PHP] spreadsheets are opened read only

2008-09-24 Thread Jochem Maas
Thodoris schreef: On Wed, 2008-09-24 at 14:59 +0300, Thodoris wrote: On Wed, 2008-09-24 at 14:28 +0300, Thodoris wrote: Hi guys. I am having a problem with opening xls files from a link generated from php script. Let me analyze this: I have two linux servers with apache (php,mysq

Re: [PHP] class const versus define

2008-09-24 Thread Jochem Maas
Richard Lynch schreef: Is there any reason why the logic behind define() couldn't be pushed down to class const? probably no reason why it couldn't but from what I gather there is a specific reason wht it works like this: speed. const is compile time, define is runtime IIRC const was made th

Re: [PHP] $this->value VS $value

2008-09-23 Thread Jochem Maas
Nathan Nobbe schreef: On Tue, Sep 23, 2008 at 10:41 AM, Micah Gersten <[EMAIL PROTECTED]> wrote: Eric Butera wrote: On Tue, Sep 23, 2008 at 12:26 PM, Jochem Maas <[EMAIL PROTECTED]> wrote: (using $this->foo or MyClass::$foo for static properties). also self:: Actually wi

Re: [PHP] $this->value VS $value

2008-09-23 Thread Jochem Maas
uaca man schreef: Hello to all my fellow members of the PHP community. As a personal rule i always use $this in front of class members, but i always knew from others programing languages and i guess I just thought it was same in PHP that without $this keyword it should work just the same, howeve

Re: [PHP] PHP tags - any reasons to close ?>

2008-09-23 Thread Jochem Maas
Jason Pruim schreef: On Sep 23, 2008, at 9:27 AM, Jochem Maas wrote: Martin Zvarík schreef: Hi, I have seen some projects where people start with opening tag but they DON'T close it with ?> This is especially the case of CONFIG.php files... 1) What's the reason of that? 2) What

Re: [PHP] PHP tags - any reasons to close ?>

2008-09-23 Thread Jochem Maas
Martin Zvarík schreef: Hi, I have seen some projects where people start with opening tag they DON'T close it with ?> This is especially the case of CONFIG.php files... 1) What's the reason of that? 2) What if you would not close any 100% PHP files? I second what Robbert and Richard said, ac

Re: [PHP] Problem with sorting

2008-09-22 Thread Jochem Maas
Michelle Konzack schreef: * Do not Cc: me, because I READ THIS LIST, if I write here * *Keine Cc: am mich, ich LESE DIESE LISTE wenn ich hier schreibe*

Re: [PHP] Security warning

2008-09-22 Thread Jochem Maas
tedd schreef: At 4:34 PM -0400 9/22/08, Daniel Brown wrote: On Mon, Sep 22, 2008 at 2:48 PM, tedd <[EMAIL PROTECTED]> wrote: > However, when the user exits https and returns back to the http side of > things, the user receives a warning. If the error you're getting is just saying that y

Re: [PHP] __autoload alternative

2008-09-22 Thread Jochem Maas
Shelley schreef: Hi all, Is there any way to auto load a class without using __autoload() function? As I want to load some classes under different paths, and that caused redeclare of __autoload function. Any suggestions appreciated. spl_autoload_register() http://php.net/manual/en/function.

Re: [PHP] SESSIONS vs. MySQL

2008-09-21 Thread Jochem Maas
Philip Thompson schreef: Hi all. Let me start out by saying, I have STFW and read through the list archives. Now that that's out of the way. To speed up our application, we want to implement using SESSIONs in some locations. Beforehand, on every page, we would run approximately 30-40 querie

Re: [PHP] Associative array issues with loading values after initialization

2008-09-21 Thread Jochem Maas
funny how that perl code looks so much like php ... or is it the other way around. Thomas Bolioli schreef: I should add, it is not working with this funciton, which could be the source of the issue. function dropbox_from_list($list, $selected_index){ while ($nex = next($list)) { $k =

Re: [PHP] Re: OOP - Calling methods from classes that are inheriting?

2008-09-21 Thread Jochem Maas
Maciek Sokolewicz schreef: class myClass { public function func() { return "Yay!!"; } } class otherClass extends myClass { public function otherFunc() { echo $this->func(); } } $class=new otherClass(); echo $class->otherFunc(); oh yes, it's that simple. 2 things

Re: [PHP] Public in Classes

2008-09-21 Thread Jochem Maas
} protected function killMe() { include "../includes/error.php"; exit(1); } } class usersOnline extends userQueries { public function usersOnline() { return $this->numberUsers("`online` < NOW()"); } } 2008/9/21 Jochem Maas &l

Re: [PHP] Public in Classes

2008-09-21 Thread Jochem Maas
Ben Stones schreef: Hi, Just started with object oriented programming and glad I have come across it, just need a few things clearing up. When I make a variable or method public, does this mean that it can be used outside of classes, for instance in other classes or as well as instantiating cla

Re: [PHP] Re: Thank you...

2008-09-21 Thread Jochem Maas
Dan Joseph schreef: Look... Spam the list, but PLEASE do NOT open up this thread again we all let it rest 3 weeks ago. wtf, Michelle just stated that her 4 daughters we're killed in Casablanca less than a year ago and all you can say is: "PLEASE do NOT open up this thread again"

Re: [PHP] wrong behaviour with is_subclass_of() ??

2008-09-19 Thread Jochem Maas
Johannes Mueller schreef: Jochem Maas wrote: B implements I because B subclasses A and A implements I, I is not a base class. try the experiment with is_a() instead. This was my starting point and is_subclass_of() was a sub-ordinate target, because i needed it on the class-side of life

Re: [PHP] wrong behaviour with is_subclass_of() ??

2008-09-19 Thread Jochem Maas
Johannes Müller schreef: Why does the following code outputs: B implements I because B subclasses A and A implements I, I is not a base class. try the experiment with is_a() instead. also you should preferablly use the instanceof syntax: I would expect the following output: A implements

Re: [PHP] Error message

2008-09-19 Thread Jochem Maas
Terry J Daichendt schreef: You have a real attitude problem, please don't bother with me again. actually it's you who has a problem with my attitude, not me. although I'll grant you that people like you are usually 'bother' ... and I won't anymore. -- PHP General Mailing List (http://www.

Re: [PHP] Error message

2008-09-18 Thread Jochem Maas
Andrew Barnett schreef: It sounds like there is a space or output before the a blank space before the Andrew 2008/9/19 CanihoJR <[EMAIL PROTECTED]>: No puedes tener ningun espacio en blanco delante de session_start(); Sorry for my english: you cant have any blank spaccing before SESSION_STA

Re: [PHP] Error message

2008-09-18 Thread Jochem Maas
Terry J Daichendt schreef: I'm pasting this code from the example at php.net and getting these which example might that be, with 1000's of built in functions you can imagine there is probably more than one. errors. Can anyone determine what I'm doing wrong? yes. but can your read? the erro

Re: [PHP] Static method variable

2008-09-18 Thread Jochem Maas
Christoph Boget schreef: Perhaps I'm misunderstanding what a static method variable is supposed to do. I thought the value would be static for an class' instance but it appears it is static across all instances of the class. Consider: class StaticTest { public function __construct() { }

Re: [PHP] PHP and MySQL SELECT COUNT (*)

2008-09-17 Thread Jochem Maas
Dan Joseph schreef: On Wed, Sep 17, 2008 at 2:17 PM, Vinny Gullotta <[EMAIL PROTECTED]>wrote: ... $i[servername] Try: $i['servername'] notice the ' and ' around the name. I've heard you can do w/o those, but I've had issues in the past where it didn't work. ITs also good practice to us

Re: [PHP] Install problem

2008-09-17 Thread Jochem Maas
Illó Gábor schreef: Hello I have this error when i type make: ml2 -lz -liconv -lm -lxml2 -lz -liconv -lm -lcrypt -o libphp5.la /usr/bin/ld: /usr/local/lib/libz.a(compress.o): relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC /usr/local/lib/libz.a: could no

Re: [PHP] Web Project Leader -- Contract - San Francisco area

2008-09-17 Thread Jochem Maas
Ashley Sheridan schreef: On Wed, 2008-09-17 at 14:49 -0400, Dan Joseph wrote: On Wed, Sep 17, 2008 at 2:28 PM, Jochem Maas <[EMAIL PROTECTED]> wrote: Robert Cummings schreef: On Wed, 2008-09-17 at 13:00 -0400, John Biroldi wrote: * Fluent in at least three of the fol

Re: [PHP] Web Project Leader -- Contract - San Francisco area

2008-09-17 Thread Jochem Maas
Robert Cummings schreef: On Wed, 2008-09-17 at 13:00 -0400, John Biroldi wrote: * Fluent in at least three of the following development languages: * Microsoft .NET Framework ( VB.NET or C#), ASP, JSP, Java, VBA, XML, XSLT, relational databases and concepts of object-oriented programming.

Re: [PHP] MySQL Workbench coming for Linux

2008-09-16 Thread Jochem Maas
Ross McKay schreef: Posting this here, because a few people responded when I mentioned not having a Linux-native data modelling tool. Apparently, MySQL Workbench should be alpha-ready by end of the month... http://dev.mysql.com/workbench/?p=138 no news of MacOSX, what's the chance this will bu

Re: [PHP] Re: header

2008-09-16 Thread Jochem Maas
Robert Cummings schreef: On Tue, 2008-09-16 at 21:18 +0100, Nathan Rixham wrote: Jim Lucas wrote: Robert Cummings wrote: On Tue, 2008-09-16 at 18:13 +0100, Nathan Rixham wrote: I also meant: define('PUBLIC_BASE_HREF' , 'http://php.net/') and further thinking there has to be an easier / cl

Re: [PHP] 2 Questions.

2008-09-14 Thread Jochem Maas
Tom Shaw schreef: -Original Message- From: Tom Shaw [mailto:[EMAIL PROTECTED] Sent: Saturday, September 13, 2008 9:52 PM To: 'Jochem Maas' Subject: RE: [PHP] 2 Questions. iamjochem wrote: My second question is I've designed a very simple Postgres database wrapper.

Re: [PHP] 2 Questions.

2008-09-13 Thread Jochem Maas
ys that built it know the difference between an order and an order line and that they use both concepts. -Original Message- From: Jochem Maas [mailto:[EMAIL PROTECTED] Sent: Saturday, September 13, 2008 6:06 PM To: Tom Shaw Cc: 'PHP General' Subject: Re: [PHP] 2 Questions. Tom Shaw sch

Re: [PHP] 2 Questions.

2008-09-13 Thread Jochem Maas
Tom Shaw schreef: Can anybody give me any good reasons not to use a time stamp as an order number in my shopping cart. It seems to me that the number is guaranteed to be random and it saves having to make an extra time column to keep track of the order. The only small concern I have is the chance

Re: [PHP] localization folder for web site

2008-09-13 Thread Jochem Maas
Alain R. schreef: Hi, mostly (90%) websites are designed to include localization (made in php) folder like following: www.mywebsite.com/en/ www.mywebsite.com/de/ www.mywebsite.com/fr/ why do they not use only 1 folder and use dynamically PHP to change localization of website ? who says the

Re: [PHP] [Fwd: Re: [DOC-BUGS] #46054 [NEW]: comment of addcslashes 'A..z' is wrong]

2008-09-12 Thread Jochem Maas
Maciek Sokolewicz schreef: Forwarding to php-general. I think /dev/null would have been a better place. wtf is anyone supposed to do with this? (apart from ignore it?) Original Message Subject: Re: [DOC-BUGS] #46054 [NEW]: comment of addcslashes 'A..z' is wrong Date: Fri

Re: [PHP] switch case - to require the break statements seems strange to me

2008-09-12 Thread Jochem Maas
e, but that's a seperate issue (see tedd's explaination) 2008/9/10 Jochem Maas <[EMAIL PROTECTED]> tedd schreef: At 6:46 PM -0600 8/31/08, Govinda wrote: Not that it is an issue, but just to understand the logic- Why do we have to use 'break' statements in each case?

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