[PHP] Open Source Website Flowchart and Wireframe Software?

2010-09-29 Thread Daniel Kolbo
Hello, This is not strictly a PHP question, though i do think some members that subscribe to this list might be able to answer this question. Is there an open source website flowchart and wireframe software. My google searches are not quite pulling up what I'm looking for. I would like a piece

Re: [PHP] Re: Copying an Object

2010-09-25 Thread Daniel Kolbo
gt; >> From: chris h >> >>> On Fri, Sep 24, 2010 at 8:35 AM, Peter Lind >> wrote: >>> >>> On 24 September 2010 14:22, Bob McConnell wrote: >>> > From: David Hutto >>> > >>> >> On Fri, Sep 24,

Re: [PHP] Re: Copying an Object

2010-09-24 Thread Daniel Kolbo
On 9/24/2010 6:11 PM, Daniel Kolbo wrote: > On 9/24/2010 8:35 AM, Peter Lind wrote: >> On 24 September 2010 14:22, Bob McConnell wrote: >>> From: David Hutto >>> >>>> On Fri, Sep 24, 2010 at 4:09 AM, Gary wrote: >>>>> Daniel Kolbo wrote:

Re: [PHP] Re: Copying an Object

2010-09-24 Thread Daniel Kolbo
> > On 9/24/2010 4:09 AM, Gary wrote: >> Daniel Kolbo wrote: >> >>> Say you have two classes: human and male. Further, say male extends >>> human. Let's say you have a human object. Then later you want to make >>> that human object a

Re: [PHP] Copying an Object

2010-09-22 Thread Daniel Kolbo
an object's properties? (e.g. > using statics like Mr Bungle suggested or perhaps some nifty design > pattern?) > > > Chris H. > > > > > On Wed, Sep 22, 2010 at 7:35 AM, Daniel Kolbo <mailto:kolb0...@umn.edu>> wrote: > > Hello PHPers, > &g

[PHP] Copying an Object

2010-09-22 Thread Daniel Kolbo
Hello PHPers, I have: class A { ...code } class B extends A { ...code } $a = new A(); $b = new B(); I would like to get all of the properties of $a into $b by value. Class A extends 3 other classes. I would like a way to not have to manage a 'copy' method in B if A or one of

Re: [PHP] Static Class Member References

2010-07-14 Thread Daniel Kolbo
David Harkness wrote: > Ah, so assigning a reference to a variable already holding a reference > changes that variable's reference only in the same way that unsetting a > reference doesn't unset the other variables referencing the same thing, yes? > > $a = 5; > $b = &$a; > print $a; >> 5 > unset

Re: [PHP] Static Class Member References

2010-07-13 Thread Daniel Kolbo
Richard Quadling wrote: > On 13 July 2010 09:46, Richard Quadling wrote: >> On 12 July 2010 22:54, Daniel Kolbo wrote: >>> Richard Quadling wrote: >>>> On 11 July 2010 23:19, Daniel Kolbo wrote: >>>>> Hello PHPers, >>>>> >>

Re: [PHP] Static Class Member References

2010-07-13 Thread Daniel Kolbo
Richard Quadling wrote: > On 12 July 2010 22:54, Daniel Kolbo wrote: >> Richard Quadling wrote: >>> On 11 July 2010 23:19, Daniel Kolbo wrote: >>>> Hello PHPers, >>>> >>>> I'm having some trouble understanding some PHP behaviour. The f

Re: [PHP] Static Class Member References

2010-07-12 Thread Daniel Kolbo
Richard Quadling wrote: > On 11 July 2010 23:19, Daniel Kolbo wrote: >> Hello PHPers, >> >> I'm having some trouble understanding some PHP behaviour. The following >> example script exhibits the behaviour which I cannot understand. >> [code] >> >

[PHP] Static Class Member References

2010-07-11 Thread Daniel Kolbo
Hello PHPers, I'm having some trouble understanding some PHP behaviour. The following example script exhibits the behaviour which I cannot understand. [code] c =& A::$a; } } $c = new C; $b = new B; $cee = new C; var_dump($c->c); // [i] prints object(B), but [ii] prints int 3 v

Re: [PHP] Netbeans XDebug Breakpoints Socket Accept

2010-07-11 Thread Daniel Kolbo
tedd wrote: > At 7:04 PM -0400 7/10/10, Daniel Kolbo wrote: >> Hello, >> >> I'm trying to use the debugging features of Netbeans for the first time. >> The Netbeans debugger is not stopping at breakpoints. I searched the >> net, I found out i wasn

[PHP] Netbeans XDebug Breakpoints Socket Accept

2010-07-10 Thread Daniel Kolbo
Hello, I'm trying to use the debugging features of Netbeans for the first time. The Netbeans debugger is not stopping at breakpoints. I searched the net, I found out i wasn't the only one with such issues. However, after going through the various posts, etc... i am still without a resolution.

[PHP] Static Methods and System Resources

2010-07-03 Thread Daniel Kolbo
Hello, Does PHP 'reinclude' static methods with each new instantiation of a class that has static methods? That is, if i have 100 objects is the static method sitting in memory 1 time or 100 times? Thanks, dK ` -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www

[PHP] __call and recursion

2010-05-09 Thread Daniel Kolbo
Hello, I've defined a __call() method inside a class. Within the __call() method (after testing that the method exists and is callable I am using: call_user_func_array(array($this,$method), $args); However, this seems to be an infinite loop (and is crashing my test apache server). How, could I

[PHP] OO Design Formally

2010-04-04 Thread Daniel Kolbo
Hello PHPers, I've been doing the programming thing for about 10 years now: amateur side gigs turned into ten years pretty fast. I think i have a fairly strong sense of object oriented design, data modeling, etc... However, sometimes I wish I had a stronger academic understanding of the design /

Re: [PHP] Re: PHP programming strategy; lots of little include files, or a few big ones?

2010-01-06 Thread Daniel Kolbo
Daevid Vincent wrote: > > >> -Original Message- >> From: Al [mailto:n...@ridersite.org] >> Sent: Wednesday, January 06, 2010 5:09 PM >> To: php-general@lists.php.net >> Subject: [PHP] Re: PHP programming strategy; lots of little >> include files, or a few big ones? >> >> >> >> On 1/6/2

Re: [PHP] Multiple Inheritance Needed in OOP?

2009-12-29 Thread Daniel Kolbo
Daniel Egeberg wrote: > On Wed, Dec 30, 2009 at 01:24, Daniel Kolbo wrote: >> This way multiple inheritance is available for those that legitimately need >> it [...] > > Could you by any chance provide an example where multiple inheritance > would be required? To be h

Re: [PHP] Multiple Inheritance Needed in OOP?

2009-12-29 Thread Daniel Kolbo
Larry Garfield wrote: > On Monday 28 December 2009 9:45:03 pm Daniel Kolbo wrote: >> Hello, >> >> Okay so PHP designers explicitly decided against multiple inheritances, >> but aren't there legitimate needs for multiple inheritance in OOP? >> >> For exam

[PHP] Multiple Inheritance Needed in OOP?

2009-12-28 Thread Daniel Kolbo
Hello, Okay so PHP designers explicitly decided against multiple inheritances, but aren't there legitimate needs for multiple inheritance in OOP? For example, consider the following three classes (A,B,C) with the following properties (a number is a distinct property or method). A: 1, 2, 3 B: 1,

[PHP] Re: Classes and Functions

2009-12-28 Thread Daniel Kolbo
Nathan Rixham wrote: > Daniel Kolbo wrote: >> Hello, >> >> Is there a way to see what objects and functions a script >> loaded/required/used? >> >> I could recursively loop through the globals, but if objects were unset, >> then i may miss some. >

[PHP] Re: Noob stuff - Zend/Opcode/Cache/Optimizer

2009-12-27 Thread Daniel Kolbo
Shawn McKenzie wrote: > Daniel Kolbo wrote: >> Hello, >> >> I'm missing some unifying piece of the zend/php puzzle... >> >> I understand the basics of zend engine opcode, caching the opcode, >> optimizing the opcode, and caching the optimized opcode,

[PHP] Noob stuff - Zend/Opcode/Cache/Optimizer

2009-12-26 Thread Daniel Kolbo
Hello, I'm missing some unifying piece of the zend/php puzzle... I understand the basics of zend engine opcode, caching the opcode, optimizing the opcode, and caching the optimized opcode, etc... The part I'm struggling with is somewhere in the zend world. Under a typical php install where doe

Re: [PHP] Multiple Inheritance Concern

2009-12-26 Thread Daniel Kolbo
Larry Garfield wrote: > On Friday 25 December 2009 8:02:06 pm 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 >>

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

[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] 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

[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

[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] 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

[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

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] 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] 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

[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

[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

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

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] 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] 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

[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] 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] 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] 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] 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] 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] 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] 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

[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

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

[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] mysql_query blocking

2009-06-27 Thread Daniel Kolbo
Phpster wrote: > > > Bastien > > Sent from my iPod > > On Jun 27, 2009, at 4:13 PM, Daniel Kolbo wrote: > >> Ashley Sheridan wrote: >>> On Sat, 2009-06-27 at 16:03 -0400, Daniel Kolbo wrote: >>>> Ashley Sheridan wrote: >>>>> O

Re: [PHP] mysql_query blocking

2009-06-27 Thread Daniel Kolbo
Bastien Koert wrote: > Why issue/do a lock at all? Shouldn't need a large lock at read > > bastien > > On Saturday, June 27, 2009, Daniel Kolbo wrote: >> Ashley Sheridan wrote: >>> On Sat, 2009-06-27 at 16:03 -0400, Daniel Kolbo wrote: >>>> Ashley

Re: [PHP] mysql_query blocking

2009-06-27 Thread Daniel Kolbo
Tom Worster wrote: > On 6/27/09 3:15 PM, "Daniel Kolbo" wrote: > >> When a MySQL table is locked a php call of mysql_query() that requires >> that table will hang as the request blocks at the MySQL server until the >> table is unlocked. Is there a way to stop

Re: [PHP] mysql_query blocking

2009-06-27 Thread Daniel Kolbo
Ashley Sheridan wrote: > On Sat, 2009-06-27 at 16:03 -0400, Daniel Kolbo wrote: >> Ashley Sheridan wrote: >>> On Sat, 2009-06-27 at 15:15 -0400, Daniel Kolbo wrote: >>>> Hello, >>>> >>>> When a MySQL table is locked a php call of mysql_query()

Re: [PHP] mysql_query blocking

2009-06-27 Thread Daniel Kolbo
Ashley Sheridan wrote: > On Sat, 2009-06-27 at 15:15 -0400, Daniel Kolbo wrote: >> Hello, >> >> When a MySQL table is locked a php call of mysql_query() that requires >> that table will hang as the request blocks at the MySQL server until the >> table is un

Re: [PHP] mysql_query blocking

2009-06-27 Thread Daniel Kolbo
Daniel Kolbo wrote: > Hello, > > When a MySQL table is locked a php call of mysql_query() that requires > that table will hang as the request blocks at the MySQL server until the > table is unlocked. Is there a way to stop a mysql_query from hanging > (by setting a tim

[PHP] mysql_query blocking

2009-06-27 Thread Daniel Kolbo
Hello, When a MySQL table is locked a php call of mysql_query() that requires that table will hang as the request blocks at the MySQL server until the table is unlocked. Is there a way to stop a mysql_query from hanging (by setting a time limit)? The php.ini directive max_execution_time does not

Re: [PHP] include file in a class with global/parent scope?

2009-06-16 Thread Daniel Kolbo
Hello, I've cleaned up my question a bit. I want the included file which is called within a method of a class to have the same scope as the instantiation of the class's object. That is, i want a class to include a file in the calling object's scope. How would one do this? 'test.php' cinclude()

Re: [PHP] include file in a class with global/parent scope?

2009-06-16 Thread Daniel Kolbo
;; > >function cinclude($filename) { >extract( $GLOBALS ); >include('vars.php'); >echo "In class $vars\n"; >} > } > > On Sun, Jun 14, 2009 at 1:41 PM, Daniel Kolbo <mailto:kolb0...@umn.edu>>

[PHP] include file in a class with global/parent scope?

2009-06-14 Thread Daniel Kolbo
Hello, I understand the why $vars is not in the global scope, but i was wondering if there was a way from within the class file to include a file in the parent's scope? i tried ::include('vars.php'), parent::include('vars.php'), but this breaks syntax... Please consider the following three files

Re: [PHP] Frameworks / obstinate?

2009-03-22 Thread Daniel Kolbo
lients need at hand and build from there. -Original Message- From: Daniel Kolbo [mailto:kolb0...@umn.edu] Sent: Sunday, March 22, 2009 4:54 PM To: php-general@lists.php.net Cc: Tony Marston Subject: [PHP] Frameworks / obstinate? Tony Marston wrot

[PHP] Frameworks / obstinate?

2009-03-22 Thread Daniel Kolbo
Tony Marston wrote: "Nitsan Bin-Nun" wrote in message news:d47da0100903220910q7bb66706s6255f0fc89b98...@mail.gmail.com... Don't forget to attach the message to the list. Regarding the frameworks, which of them, for your opinion, will take the fastest time to learn and get into code?

Re: [PHP] Re: Secure File Paths, File System - (simplified question)

2009-02-20 Thread Daniel Kolbo
Shawn McKenzie wrote: Daniel Kolbo wrote: Shawn McKenzie wrote: Daniel Kolbo wrote: Hello PHPers, I am quite ignorant about file system security. I was hoping you all could help me understand things. How does one restrict php script from going (reading, writing) files in

Re: [PHP] Re: Secure File Paths, File System - (simplified question)

2009-02-19 Thread Daniel Kolbo
Shawn McKenzie wrote: Daniel Kolbo wrote: Hello PHPers, I am quite ignorant about file system security. I was hoping you all could help me understand things. How does one restrict php script from going (reading, writing) files in the file system? As I see it, a php programmer could

[PHP] Secure File Paths, File System

2009-02-18 Thread Daniel Kolbo
Hello PHPers, I am quite ignorant about file system security. I was hoping you all could help me understand things. How does one restrict php script from going (reading, writing) files in the file system? As I see it, a php programmer could change the include_path, with ini_set(), use "../

[PHP] Mailing list rules?

2009-01-28 Thread Daniel Kolbo
Hello, Is it okay for me to post a message looking for programmers willing to help out with a php project? Thanks, dK

Re: [PHP] PHP, Smarty, and Text

2009-01-14 Thread Daniel Kolbo
Robert Cummings wrote: On Tue, 2009-01-13 at 18:18 -1000, Daniel Kolbo wrote: Phpster wrote: What about stripping out all the 'nuances' and just reducing it to just the text where you then control the display and using your templates and css? Bastien Sent from my iPod

Re: [PHP] PHP, Smarty, and Text

2009-01-13 Thread Daniel Kolbo
Phpster wrote: What about stripping out all the 'nuances' and just reducing it to just the text where you then control the display and using your templates and css? Bastien Sent from my iPod On Jan 13, 2009, at 9:49 PM, Daniel Kolbo wrote: Hello, I've been using PHP

[PHP] PHP, Smarty, and Text

2009-01-13 Thread Daniel Kolbo
Hello, I've been using PHP and Smarty for several years now and I am happy with this "division" of data from presentation. With this philosophy in mind, i am a bit perplexed as to how to handle the text on my sites. That is, the text is data, so i am motivated to store the text in a databas

Re: [PHP] Remote File Variable Injection Safety?

2009-01-07 Thread Daniel Kolbo
c...@l-i-e.com wrote: If register_globals is "on" (ewww!) at otherhost.com, then "?safe_flag" on the URL will get in. This is one of the reasons why register_globals should be OFF. NOTE: The code you gave does not describe the circumstances whereby $safe_flag is "set". There could be all man

Re: [PHP] Re: Remote File Variable Injection Safety?

2009-01-07 Thread Daniel Kolbo
Stuart wrote: 2009/1/7 Shawn McKenzie : Daniel Kolbo wrote: Hello, suppose there is a file at http://otherhost.com/remote.php that looks like this: Suppose i executed the following php file at http://myhost.com/local.php http://otherhost.com/remote.php";); ?> Is there an

Re: [PHP] Re: Remote File Variable Injection Safety?

2009-01-07 Thread Daniel Kolbo
Shawn McKenzie wrote: Daniel Kolbo wrote: Hello, suppose there is a file at http://otherhost.com/remote.php that looks like this: Suppose i executed the following php file at http://myhost.com/local.php http://otherhost.com/remote.php";); ?> Is there any way to get loca

[PHP] Remote File Variable Injection Safety?

2009-01-07 Thread Daniel Kolbo
Hello, suppose there is a file at http://otherhost.com/remote.php that looks like this: Suppose i executed the following php file at http://myhost.com/local.php http://otherhost.com/remote.php";); ?> Is there any way to get local.php to display "You are in", by only modifying local.php?

Re: [PHP] Architecture patterns in PHP

2008-12-29 Thread Daniel Kolbo
Michael C. Yates wrote: 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 I am an amateur programmer, so take my comments with a gr

Re: [PHP] Re: CLI in background on windows

2008-12-18 Thread Daniel Kolbo
Ondrej Kulaty wrote: What about to try run it as service? I don't know exactly how to do that but service programs run in background on my Win XP ""Fanda"" pí¹e v diskusním pøíspìvku news:7d.3d.09584.c2f7a...@pb1.pair.com... Hi, I am looking for some method, how to run php cli script on

Re: [PHP] utf8 php howto?

2008-12-18 Thread Daniel Kolbo
Daniel Kolbo wrote: Hello, I have a text file encoded in utf-8. i am using fopen/fgets/echo etc.. how do i display these utf8 characters from the file on the web? I have tried different combinations of header("Content-Type: text/html; charset=iso-8859-1"); header("Content-

[PHP] utf8 php howto?

2008-12-18 Thread Daniel Kolbo
Hello, I have a text file encoded in utf-8. i am using fopen/fgets/echo etc.. how do i display these utf8 characters from the file on the web? I have tried different combinations of header("Content-Type: text/html; charset=iso-8859-1"); header("Content-Type: text/html; charset=utf-8") and utf8_

[PHP] Re: file_exists and wildcard/regex

2008-12-09 Thread Daniel Kolbo
Maciek Sokolewicz wrote: Daniel Kolbo wrote: What is the preferred method with php to test and see if a file [pattern] exists? For example, i only need to search in one directory, that may have any number of files named such as afile1.txt, afile2.txt, afile3.txt, And also, bfile1.txt

Re: [PHP] file_exists and wildcard/regex

2008-12-09 Thread Daniel Kolbo
Daniel Kolbo wrote: What is the preferred method with php to test and see if a file [pattern] exists? For example, i only need to search in one directory, that may have any number of files named such as afile1.txt, afile2.txt, afile3.txt, And also, bfile1.txt, bfile2.txt, bfile3.txt

[PHP] file_exists and wildcard/regex

2008-12-09 Thread Daniel Kolbo
What is the preferred method with php to test and see if a file [pattern] exists? For example, i only need to search in one directory, that may have any number of files named such as afile1.txt, afile2.txt, afile3.txt, And also, bfile1.txt, bfile2.txt, bfile3.txt, ... I want to see if an

Re: [PHP] get calling function name

2008-12-09 Thread Daniel Kolbo
Stut wrote: On 9 Dec 2008, at 19:37, Daniel Kolbo wrote: is there a way (i swear i saw it in the documentation at one point) to get the name of the calling scope (or function) from within another function? eg. function a() { b(); } function b() { echo "the calling functi

[PHP] get calling function name

2008-12-09 Thread Daniel Kolbo
Greetings, is there a way (i swear i saw it in the documentation at one point) to get the name of the calling scope (or function) from within another function? eg. function a() { b(); } function b() { echo "the calling function is: " . func_caller(); } a(); where this would print th

Re: [PHP] Variable Argument List

2008-11-14 Thread Daniel Kolbo
Daniel Kolbo wrote: Hello, I am trying to do something like the following: I understand why this outputs: 'yo','bob':default2 However, I want it to output: yo:bob Is this possible? I tried using different combinations of {}, but I cannot seem to get it to happen.

[PHP] Variable Argument List

2008-11-14 Thread Daniel Kolbo
Hello, I am trying to do something like the following: I understand why this outputs: 'yo','bob':default2 However, I want it to output: yo:bob Is this possible? I tried using different combinations of {}, but I cannot seem to get it to happen. I need some kind of "preprocessor" feature per

Re: [PHP] two mysql installations php_mysql.dll extension and libmysql.dll question

2008-11-05 Thread Daniel Kolbo
Chris wrote: Daniel Kolbo wrote: Daniel Kolbo wrote: Hello PHP community, This question may be more for the MySQL community. If so, my apologies, please let me know. I am using php v 5.2.6. I have two versions of MySQL running on my server (windows xp home sp3). MySQL v6 is running

Re: [PHP] two mysql installations php_mysql.dll extension and libmysql.dll question

2008-11-05 Thread Daniel Kolbo
Daniel Kolbo wrote: Hello PHP community, This question may be more for the MySQL community. If so, my apologies, please let me know. I am using php v 5.2.6. I have two versions of MySQL running on my server (windows xp home sp3). MySQL v6 is running on localhost:3306 MySQL v5.0.41 is

[PHP] two mysql installations php_mysql.dll extension and libmysql.dll question

2008-11-05 Thread Daniel Kolbo
Hello PHP community, This question may be more for the MySQL community. If so, my apologies, please let me know. I am using php v 5.2.6. I have two versions of MySQL running on my server (windows xp home sp3). MySQL v6 is running on localhost:3306 MySQL v5.0.41 is running on localhost:3307

Re: [PHP] Math Weirdness

2008-07-14 Thread Daniel Kolbo
I don't quite understand your problem, but I use integers for any monetary workings as you can guarantee it is accurate (obviously, you work in pence or cents rather than GBP or USD). Alex Hello Alex, I was reading through this thread, and I was curious about what methods you use to

Re: [PHP] Capitalization of variable

2008-06-18 Thread Daniel Kolbo
you could explode the string by the " " space, then use the ucword function walking through the array, then implode http://www.php.net/manual/en/function.explode.php http://www.php.net/manual/en/function.ucwords.php http://www.php.net/manual/en/function.array-walk.php http://www.php.net/manual/e

Re: [PHP] PHP console script vs C/C++/C#

2008-04-18 Thread Daniel Kolbo
Struan Donald wrote: * at 17/04 16:30 -0500 Daniel Kolbo said: Hello, I am writing a PHP script for a local application (not web/html based). My script is taking a longer time to execute than I want. The source code is a few thousand lines, so I will spare you all this level of detail. I

[PHP] PHP console script vs C/C++/C#

2008-04-17 Thread Daniel Kolbo
Hello, I am writing a PHP script for a local application (not web/html based). My script is taking a longer time to execute than I want. The source code is a few thousand lines, so I will spare you all this level of detail. I prefer to write in PHP because that is what I know best. Howeve

Re: [PHP] Return an Array and immediately reference an index

2008-04-12 Thread Daniel Kolbo
Casey wrote: On Sat, Apr 12, 2008 at 9:35 AM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: On Sat, Apr 12, 2008 at 12:18 PM, Casey <[EMAIL PROTECTED]> wrote: On Sat, Apr 12, 2008 at 9:12 AM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: On Fri, Apr 11, 2008 at 6:33 PM, Da

Re: [PHP] php local application send mouse click

2008-04-12 Thread Daniel Kolbo
Stut wrote: On 12 Apr 2008, at 00:13, Daniel Kolbo wrote: In addition to the function i mentioned from winbinder wb_send_message() I have tried: I tried loading in the user32.dll extension from within the php.ini, this failed. I tried loading in the user32.dll from within the script, this

Re: [PHP] Return an Array and immediately reference an index

2008-04-12 Thread Daniel Kolbo
Stut wrote: On 12 Apr 2008, at 00:31, Daniel Kolbo wrote: Philip Thompson wrote: On Apr 11, 2008, at 5:33 PM, Daniel Kolbo wrote: I want to return an array from function and reference an index all in one line. Is this possible? In the code below I want I want $yo to be the array(5,6

Re: [PHP] Return an Array and immediately reference an index

2008-04-12 Thread Daniel Kolbo
Jim Lucas wrote: Bojan Tesanovic wrote: On Apr 12, 2008, at 12:33 AM, Daniel Kolbo wrote: Hello, I want to return an array from function and reference an index all in one line. Is this possible? In the code below I want I want $yo to be the array(5,6). Here is what I've

Re: [PHP] Quarters

2008-04-11 Thread Daniel Kolbo
It was fun! thanks tedd wrote: Hi gang: Check out my new game: http://webbytedd.com/quarters/ What do you think? Cheers, tedd PS: I originally wrote the game for the Mac over eight years ago. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsu

Re: [PHP] Return an Array and immediately reference an index

2008-04-11 Thread Daniel Kolbo
Philip Thompson wrote: Top-posting side comment: It's not nice to hijack threads. My comments are below... On Apr 11, 2008, at 5:33 PM, Daniel Kolbo wrote: Hello, I want to return an array from function and reference an index all in one line. Is this possible? In the code below I

Re: [PHP] php local application send mouse click

2008-04-11 Thread Daniel Kolbo
Wolf wrote: Daniel Kolbo wrote: Hello, I am mostly familiar with php for serving up web pages; however, recently I have been writing a local command line script on my WinXP machine. I have spent the better part of this last week and all of today trying to figure out a way to send a mouse

[PHP] Return an Array and immediately reference an index

2008-04-11 Thread Daniel Kolbo
Hello, I want to return an array from function and reference an index all in one line. Is this possible? In the code below I want I want $yo to be the array(5,6). Here is what I've tried, function returnarray() { return array('lose' => array(5,6), 'win' => array(9,8)); } $yo = retu

  1   2   >