Re: [PHP] OOP slow -- am I an idiot?

2006-10-13 Thread John Wells
On 10/13/06, Stut <[EMAIL PROTECTED]> wrote: Ed Lazor wrote: > ...Or is it something else entirely; I dunno, maybe > UserCollection has a property defined as an array of User class? I > think that's what people were saying earlier in the thread as being a > "very bad thing" in terms of memory ut

Re: [PHP] need help to build a query

2006-10-10 Thread John Wells
On 10/10/06, Richard Lynch <[EMAIL PROTECTED]> wrote: This is a lot more subtle problem than it seems at first glance, eh? Yup, sure is. Thanks for the detailed response, so helpful as always. -John W -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from so

Re: [PHP] need help to build a query

2006-10-09 Thread John Wells
Yes you are right, but I guess you can decide which is worse: sending extra data in one query or send extra queries. I guess it depends on how many records we're talking about... Brad also brings up a good point I hadn't considered. I do think an OUTER join is possible, perhaps depending on you

Re: [PHP] need help to build a query

2006-10-09 Thread John Wells
On 10/9/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: but I know there must be much better solution then this one. You're right: Simply JOIN your queries... SELECT order_id, order_date, order_status, file_name FROM orders JOIN uploaded_files AS uf ON orders.order_id = uf.order_id O

Re: [PHP] Uploading files / processing with a PHP script

2006-10-08 Thread John Wells
On 10/8/06, Ron Piggott (PHP) <[EMAIL PROTECTED]> wrote: the owner of the file is 'www'. Is there any way I am able to automatically change the owner of the file to my FTP login identity (for example 'rpiggott') Just curious, why do you want to do this? What are you *really* hoping to accompl

Re: [PHP] ECHO $variable

2006-10-08 Thread John Wells
On 10/9/06, benifactor <[EMAIL PROTECTED]> wrote: the way i posted worked fine with out either... he doesn't need to use these to format the way his output is displayed, he only needs to use the proper php syntax if i am correct. But what if the string is edited to contain single quotes as well

Re: [PHP] Re: Set Variable = Long HTML String?

2006-10-07 Thread John Wells
uot;hit" as double quotes, since PHP has to parse it looking for variables. But it's not really "special", it's just not as well known. - John W Thanks, --Noah - Original Message - From: "John Wells" <[EMAIL PROTECTED]> To: "sit1way"

Re: [PHP] Re: Set Variable = Long HTML String?

2006-10-07 Thread John Wells
On 10/7/06, sit1way <[EMAIL PROTECTED]> wrote: I'm overhauling my PHP based CMS and want to know how to set a variable equal to an HTML string, but without having to escape all the quotes! Noah, meet HEREDOC. HEREDOC, meet Noah: http://uk.php.net/manual/en/language.types.string.php#language.t

Re: [PHP] Re: Really strange / TYPO

2006-10-05 Thread John Wells
On 10/5/06, Richard Lynch <[EMAIL PROTECTED]> wrote: include_path is a much more powerful and flexible construct which will save you an inordinate amount of trouble if you just figure out how it works and use it... Point well taken Richard, thanks. I've always been curious, iIs there a point i

Re: [PHP] Re: How to Set Object Array Value || In $this->$name[] Format...

2006-10-05 Thread John Wells
On 10/5/06, sit1way <[EMAIL PROTECTED]> wrote: Hey all. I've got a simple object method that sets object vars based on a passed array: ** function set($arr) { foreach($arr as $name => $value) { if(is_array($this->name)) {

Re: [PHP] Miserable escape string problem

2006-10-05 Thread John Wells
On 10/5/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Using this string: "{$var1: $var2}" of course it doesn't work as some might expect. But why in the name of [whatever, too many to list] doesn't this one below work? "\{$var1: $var2}" If \ is an escape character why does it also appear

Re: [PHP] Re: OOP Hello World

2006-10-05 Thread John Wells
On 10/5/06, Martin Alterisio <[EMAIL PROTECTED]> wrote: The kind of thinking that OOP it's just a *super* feature of a programming language that should be used only for highly complex problems, is what I want to eradicate. OOP doesn't stand neither as a language feature nor as extra capabilities

Re: [PHP] Re: OOP Hello World

2006-10-05 Thread John Wells
On 10/5/06, Martin Alterisio <[EMAIL PROTECTED]> wrote: PHP seems to be getting more and more object oriented, I think it's the right time to start questioning what have been done so far in terms of OOP in PHP, because, honestly, there are too many php classes being distributed out there that are

Re: [PHP] Help on objects

2006-10-05 Thread John Wells
On 10/5/06, Deckard <[EMAIL PROTECTED]> wrote: Hi, I'm trying to lay my hands on PHP OOP, but it's not easy :( I've read several examples in the web, but cannot transpose to may case. I'm trying to set a class to make SQL inserts in mysql. I commend you on trying to build an OOP class for da

Re: [PHP] Re: OOP Hello World

2006-10-05 Thread John Wells
Are you sure you're not on a Spanish *Java* mailing list? :) On 10/5/06, Martin Alterisio <[EMAIL PROTECTED]> wrote: Me... again, still boring you to death with meaningless OOP rantings. First I would like to point out that there was a design mistake in what I proposed in the last mail (follow

Re: [PHP] Re: Really strange / TYPO

2006-10-05 Thread John Wells
On 10/5/06, Deckard <[EMAIL PROTECTED]> wrote: config.inc.php is in /var/www/html and the file that calls it is in /var/www/html/classes Hi Deckard, You've said that the file that is trying to perform the include is located in /var/www/html/classes, right? Which suggests to me that *that* fil

Re: [PHP] need loop help

2006-10-03 Thread John Wells
On 10/3/06, Charles Kline <[EMAIL PROTECTED]> wrote: hi all. i am trying to modify some old code and struggling a bit with this one: // returns an array of the names in the form post $fields = $_SESSION['case']->getComplaintKeys(); First of all this is news to me, I'm not sure how it is that

Re: [PHP] array problems

2006-08-16 Thread John Wells
On 8/16/06, David Tulloh <[EMAIL PROTECTED]> wrote: Chris G wrote: foreach ($user_input_array as $user_input) { $data_member = array(); # Create an empty array Do SQL query stuff foreach ($sql_results as $sql_member) { $data_member[] = $sql_member;

Re: [PHP] Greek Characters from MySQL to PHP to the Browser: ??????

2006-08-10 Thread John Wells
Thanks to everybody's suggestions, problem solved. Yes, the default encoding for PHP's mysql client is latin1. So a quick query of: "SET NAMES 'utf8'" *per connection* works it all out. The articles and links were very helpful in alluminating some of the other particulars of working with utf-

[PHP] Greek Characters from MySQL to PHP to the Browser: ??????

2006-08-08 Thread John Wells
Hi Everybody, Despite all of my Googling and noodling, I can't seem to figure this out, and am hoping someone might be able to point me in the right direction. Scenario: - Running Apache 1.3 on OSX 10.4, PHP 5.1.4, MySQL 5.0.19 - Greek text is stored in a MySQL database, encoding set to UTF-8 -

Re: [PHP] How to get rid off empty elements of an array?

2006-08-07 Thread John Wells
Check the 5th and 6th fields. Something is in one of them. Because based on your checks, it will work: [php] $first_array = array( 'first', 'second', 'third', '', '', ''); foreach ($first_array as $value) { if (!empty($value))$second_array[] = $value; } var_dump($second_

Re: [PHP] COULD NOT RESEND HEADER..

2006-07-29 Thread John Wells
On 7/29/06, BBC <[EMAIL PROTECTED]> wrote: The error message: "could not resend header, header already sent in line.." It isn't a bug. What it's saying is completely accurate. You can only send header information to the browser once. As soon as you output *anything* (via echo/print), headers

[PHP] Re: different value in array

2006-07-29 Thread John Wells
Nice tip Paul. Weetat, I'm a bit concerned about your data as I look at it, and think the approach I mentioned before needs a rewrite: Do you have a a "primary key" in your arrays/rows? Meaning, how can you tell if the two arrays you're comparing are just plain _different_, or simply out of syn

Re: [PHP] compare values in 2 array

2006-07-28 Thread John Wells
On 7/28/06, weetat <[EMAIL PROTECTED]> wrote: I need to compare values in array which populated by database , below is the code : Without mentioning how your code performs some unnecessary actions, and is also full of errors, here's the idea of what you want (untested): [code] // assume at fir

Re: [PHP] sorting array question

2006-07-26 Thread John Wells
On 7/26/06, Angelo Zanetti <[EMAIL PROTECTED]> wrote: Hi all, So they way I want to sort these rows is by total, totalPaid, totalUnpaid all descending. Hi Angelo, So the first question the list will ask is if the array of data is coming from a database. Because then you'd be urged to perform

Re: [PHP] RE: How do I prevent a session from rebuilding itself?

2006-07-12 Thread John Wells
On 7/12/06, Daevid Vincent <[EMAIL PROTECTED]> wrote: > I am thinking you are killing the first session, rming the > files, then > creating a new session. At the end of the page the data that was in > memory is getting written to the new session file. Yes. That's what is happening as I said. I

Re: [PHP] design?

2006-07-02 Thread John Wells
On 6/30/06, Sjef <[EMAIL PROTECTED]> wrote: Thanks, John, I'm not sure I completely get the idea of a pair class. As an question and answer are in the same database tabel I now created a questionDepot class that gets the array from the db, does save and update operations, and for example, sets a

Re: [PHP] global class instance

2006-07-02 Thread John Wells
On 7/1/06, sempsteen <[EMAIL PROTECTED]> wrote: hi all, i wonder if there is a way of creating an instance of a class and reach it direcly from any scope in PHP4. basically what i want is: ... i don't want to: - declare global $foo, - use pre-defined $GLOBALS variable, - or use a::print

Re: [PHP] Multiple "if()" statements

2006-06-30 Thread John Wells
On 6/30/06, tedd <[EMAIL PROTECTED]> wrote: At 11:07 PM -0600 6/29/06, John Meyer wrote: >Larry Garfield wrote: >> >>switch is fine if your elseif comparisons are equality based. If they're not equality based, then they don't map to switch as well. > Not true. I've come to really appreciate

Re: [PHP] design?

2006-06-30 Thread John Wells
On 6/29/06, Sjef <[EMAIL PROTECTED]> wrote: Hi there, Hi Sjef, First off, I think David has a good point with regards to the OO vs Procedural approach. If you're looking to do this quick and easy, it might not be worth your time fussing with OO. Unless you'd like to just for the exercise, wh

Re: [PHP] $ENV['SCRIPT_FILENAME']

2006-05-15 Thread John Wells
On 5/14/06, Ryan A <[EMAIL PROTECTED]> wrote: Anyone have an idea of a variable (eg: $_SERVER['REQUEST_METHOD'] ) that will be set only if called via the web and ignored if called via cli? I have no experience with CLI, and haven't tested this, but I believe that any time a request comes throug

Re: [PHP] Sending a lot of data to remote site

2006-05-12 Thread John Wells
On 5/12/06, Jochem Maas <[EMAIL PROTECTED]> wrote: Ryan A wrote: > Hi, > > I need to send an array of data to a remote site from > my script, the array will contain anything from 1 to > 5000 entries of less than 150 alpha numeric characters you could setup an XML feed that they can request at th

Re: [PHP] tired of referencing static variables/constants with 'self ::'

2006-05-10 Thread John Wells
On 5/9/06, D. Dante Lorenso <[EMAIL PROTECTED]> wrote: As an OOP programmer, I would expect the scope search to be as follows: 1. LOCAL: current method 2. THIS: current instance ($this) 3. SELF: current class & parent classes, in order of inheritance 4. GLOBAL: globals Ok, so this

Re: [PHP] tired of referencing static variables/constants with 'self ::'

2006-05-09 Thread John Wells
On 5/9/06, D. Dante Lorenso <[EMAIL PROTECTED]> wrote: Does anyone know if it's possible to reference class constants or static variables without having to use 'self::' all the time? No, and the answer is actually in your example. Copy-and-paste all of your example code into one file, and just

[PHP] Re: Quotation marks considered harmful

2006-05-05 Thread John Wells
On 5/4/06, John Hicks <[EMAIL PROTECTED]> wrote: Why not develop a language syntax that has distinct open and close string delimiters? I consider HEREDOC to be the answer to that kind of prayer. For quick one-liners I find it overkill, but I felt so freed when I discovered it for creating larg

Re: [PHP] Problem with usort

2006-05-04 Thread John Wells
On 5/4/06, Stut <[EMAIL PROTECTED]> wrote: Anyway, as someone else has pointed out, there is a missing $ on the return value. -Stut Yup, missed that one too. :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problem with usort

2006-05-04 Thread John Wells
On 5/4/06, Stut <[EMAIL PROTECTED]> wrote: Jon Earle wrote: > $ret_val = 0; > if ($aday == $bday) {$ret_val = 0;} > else {$ret_val = ($aday < $bday) ? -1 : 1;} > return ret_val; > > I could be wrong, but I think you need some extra brackets on the else line... else {$ret_val = (($aday < $b

Re: [PHP] Echo a value from an arrays position

2006-05-04 Thread John Wells
On 5/4/06, Ford, Mike <[EMAIL PROTECTED]> wrote: They're not even that. They're pure associative arrays, or maps -- it's just that integer keys are treated somewhat specially so that an array with *only* integer keys will look like a traditional array. True true, thanks for making it crystal

Re: [PHP] can't work out the syntax error

2006-05-04 Thread John Wells
On 5/4/06, Brad Bonkoski <[EMAIL PROTECTED]> wrote: try this: echo " View ---^---^ concatenate the $_SERVER variable to the string... Or wrap the variables with curly braces so that PHP knows what's a variable a

Re: [PHP] Echo a value from an arrays position

2006-05-04 Thread John Wells
On 5/4/06, Brad Bonkoski <[EMAIL PROTECTED]> wrote: Will this also work with an associative array? If this is what he is talking about, I tried it and it does not work I think you're correct. This is because PHP arrays are a "mash-up" (as Jochem put it) of numerical indexes/hashtables/as

Re: [PHP] Sanity checker?

2006-05-04 Thread John Wells
On Wed, May 3, 2006 12:51 pm, Ezra Nugroho wrote: > I envision a tool that would audit your php code, and tell you if your > code is good or not, if it has scaling issues, etc, etc. Basically it > tells if your php code is "sane" or not. No, but If you're in a team environment, the best ad

Re: [PHP] mod_rewrite help

2006-05-04 Thread John Wells
On 5/3/06, Jay Blanchard <[EMAIL PROTECTED]> wrote: [aha moment] I finally get it. PHP developers are the smartest people on the planet and therefore we know and use everything. JavaScript, Java, C++, SQL, network management, Apache internals, women and even PHP. That is why people come on this l

Re: [PHP] Avoiding user refresh of pages with forms

2006-05-04 Thread John Wells
On 5/3/06, Satyam <[EMAIL PROTECTED]> wrote: I used that method initially, some months ago, but finally dropped it. It looked nice at first, but then I started getting into problems and required too many special cases to make it work. In the end, it wasn't a clean nor elegant solution. Satya

Re: [PHP] Printing with php

2006-05-03 Thread John Wells
On 5/3/06, Mace Eliason <[EMAIL PROTECTED]> wrote: Hi I am working on a project that creates invoices. It will allow the client to print out these invoices after they have been created. Something that I have always noticed is that when you print form the internet you always get the site addres

Re: [PHP] array_push in array maps

2006-05-03 Thread John Wells
On 5/3/06, Jochem Maas <[EMAIL PROTECTED]> wrote: Jonas Said: >> But when I want to have a value from a special column i a row the >> followint >> doesn't work: >> >>$test[$row[2]] = $row[5]; >> >> Or: >> >>$test[$row(2)] = $row[5]; >> >> Do I need to do some kind of concatenating? >> A

Re: [PHP] undefined variable

2006-04-29 Thread John Wells
> 2006/4/29, Smart Software <[EMAIL PROTECTED]>: > How can i add the content of the textbox? > i tried this: > ?>"> > > but all i get is an error telling me there is a undefined varable It looks like you're trying to get at $quantity, but have you pulled it from the submitted form yet? If you

Re: [PHP] cgi.fix_pathinfo and iis 5

2006-04-28 Thread John Wells
On 4/28/06, Mariano Guadagnini <[EMAIL PROTECTED]> wrote: Mariano Guadagnini wrote: > Hi people, > I have the following issue: I´m using PHP 5 on IIS 5 and Windows XP > Pro, and when trying to pass values through the path to my scripts, > iis rejects them. After some googling, I found an advice

Re: [PHP] Re: no offense to Rasmus... are you kidding me

2006-04-20 Thread John Wells
Here's an invitation to take this off-list. I've posted my thoughts on my (currently design-less and under massive construction & relocation) website. Direct link to post: http://s153531379.onlinehome.us/index.php/journal/the-clash-of-the-php-mailing-list-and-the-proverbial-web-2-0-iceberg Perma

Re: [PHP] how should MS Access DATETIME be handled in PHP?

2006-04-20 Thread John Wells
I don't know if MS Access will behave the same, but in MySQL you can have a query like so: SELECT *, DATE_FORMAT(end_date, '%d %m %Y') as end_date_formatted FROM projects; And it will retrieve all columns from your projects table, plus the extra one you've created on the fly, and it will be named

Re: [PHP] Date time Comparison

2006-04-19 Thread John Wells
I'd agree with what Richard is alluding to: turn your two dates into timestamps, and then compare those. mktime() or strtotime() should help you out. HTH, John W On 4/18/06, Richard Lynch <[EMAIL PROTECTED]> wrote: > http://php.net/mktime may be more suitable, depending on the date > range of th

Re: [PHP] 2 questions: Search in array and detect JS

2006-04-15 Thread John Wells
On 4/14/06, Ryan A <[EMAIL PROTECTED]> wrote: > The reason I ask is before serving an AJAX page I would like to make sure JS > is enabled, if not, serve the other "normal page"... I am sure I am not the > first person to come accross this little problem, how did you solve it? Dan eluded to a big p

Re: [PHP] help with multidimentional arrays

2006-04-12 Thread John Wells
On 4/11/06, Bing Du <[EMAIL PROTECTED]> wrote: > == > foreach ($sponsor_id as $sponsor => $arr) > echo "$sponsor:"; > foreach ($arr[$sponsor] as $project) { > echo "$project"; > } > == > It looks like you're building your array just fine. Here t

Re: [PHP] Problems with Arrays and print and echo

2006-04-08 Thread John Wells
> > echo "$this->name[5]\n"; > > echo "$this->ID[5]\n"; > > $a1 = $this->name; > > $a2 = $this->ID; > > echo "\n$a1[5] $a2[5]\n"; use curly brackets to help PHP understand what you're after: echo "{$this->name[5]}\n"; When you're in a string like this, PHP has a hard time knowing when you're wan

Re: [PHP] Is it a bug of CakePHP?

2006-04-08 Thread John Wells
> > Pham Huu Le Quoc Phuc a écrit : > > > I catch an error, could you tell me if you have some ideas? > > > > > > Error message: Undefined index: start_date in > > > c:\Inetpub\wwwroot\Cake\app\controllers\dsptrainings_controller.php on > line > > > 33 > > > PHP is telling you that what you are tr

Re: [PHP] IF or SWITCH

2006-04-06 Thread John Wells
> ...Either way, > internally, switch behaves like if/elseif/else and generally only > provides an advantage with respect to code organization or if you want a > particular condition to drop through to other case blocks. > Considering this is regarding an if/else with ***57*** conditional checks,

Re: [PHP] newbie question

2006-04-05 Thread John Wells
On 4/5/06, David Doonan <[EMAIL PROTECTED]> wrote: > The only difference is the textarea tag from the form. What am I > missing? "nl2br" is short for "newline to ". If you pass a string of content that contains newline characters (these signal the ending of a line of text) to nl2br(), it will rep

Re: [PHP] Multidimentional array problems

2006-04-04 Thread John Wells
On 4/3/06, Mace Eliason <[EMAIL PROTECTED]> wrote: > This is what I am doing and the output (for testing) seems correct > while($row=mysql_fetch_array($result)) > { > $banner= array($arrayIndex => $row); > > echo $banner[$arrayIndex]["image"]. ""; > echo $banner[$arrayIndex]["url"]. ""; > e

[PHP] Failing to write to a file when a class is being implicitly destroyed

2006-03-31 Thread John Wells
I hope I can explain my problem/questions clearly. Thanks in advance: Scenario: I'm working on a Log class that my app will use to write debug/error/etc messages to a file. I've created it so that as the application logs messages, these messages are queued within a property of the Lo

Re: [PHP] webservice

2006-03-30 Thread John Wells
[snip] > soap_fault Object ( [error_message_prefix] => [mode] => 1 [level] => 1024 > [code] => WSDL [message] => no operation readpackageabstract in wsdl [/snip] It appears as though you're attempting to invoke a method that doesn't exist. Are you sure readPackageAbstract() is defined & registered

Re: [PHP] Re: session vars

2006-03-23 Thread John Wells
U, is your top.php code being printed AT ALL? Because in the code you gave us, you're attempting to include "topo.php". HTH, John On 3/21/06, João Cândido de Souza Neto <[EMAIL PROTECTED]> wrote: > tedd wrote: > > > Hi: > > > > I hate this. > > > >>Ok guy, don't fight with me. hehehe > >> > >

Re: [PHP] Clear POST variables

2006-02-18 Thread John Wells
[snip] If it's not "wrong" for me to push the "back" button, why are you breaking it with all your re-directs :-) [/snip] I was a bit short in my explanation -- I tend to use the redirect method so that users *can* use the back button (or refresh). I'm trying to *not* break it. :) That said, the

Re: [PHP] Clear POST variables

2006-02-16 Thread John Wells
I'm curious to hear what others say, but I tend to build into my application flow a header("Location: someurl") redirect after a form submission. It's just as if you were to include("somefile") the resulting page, but by using header() you are moving the user away from the action so that this sort

Re: [PHP] PHP Devel Environments???

2003-03-20 Thread John Wells
Henrik, Why not use Smarty and create your own functions for your designers to use? That's one of it's purposes, after all. John Henrik Hudson said: > Hey List- > > Any one have some input on some good GUI WYSIWYG devel enviroments for > creating PHP "scriptlets". The boss wants to lose the dep

Re: [PHP] What happened to phpEdit???

2003-02-17 Thread John Wells
Hmm...doesn't work here. Interesting. Partial blackout? John Nichel said: > It works fine for me. So does www.phpedit.net > > Al wrote: >> Did you try the URL you posted? >> >> I tried that one and several others listed for phpEdit. >> >> All say the site is not responding. >> >> Bryan Lipscy w

[PHP] PHP Style Conventions

2003-02-15 Thread John Wells
Looking for info on recommended PHP style conventions. I've seen the Pear style conventions, and they seem fairly good, but I'm interested in something that covers more ground, like what's the best way to name included files (*.inc?) class files, etc., what's the recommended dir structure for larg

Re: [PHP] Object In a class

2003-02-09 Thread John Wells
Justin Mazzi said: > Can anyone tell me how to use an object within an object. Example > > > class blah { > var $test; > var $test2; > > function test() { > $this->do(); > } > > } > > > then you want to use that class in a new one. > > > class blah2 { > v

Re: [PHP] 3 tier web development

2003-02-07 Thread John Wells
Hardik Doshi said: > 1. How one can seperate HTML and PHP (or any other > programming code). Is there anything in PHP so i can > seperate Interface layer and programming logic layer? http://smarty.php.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.

Re: [PHP] Reporting tools for PHP?

2003-01-30 Thread John Wells
Because Crystal Reports is an overpriced rip-off. To get full web report functionality, you have to pay anywhere from $1-$10 for their enterprise edition. If you pay anything less, you're limited to only three connections. Why buy anything when good open source solutions exist? Makes no

Re: [PHP] Reporting tools for PHP?

2003-01-30 Thread John Wells
Denis, I've been looking as well. My solution? Run Jasper Reports (http://jasperreports.sf.net) from a Tomcat container integrated with Apache via mod_jk.so. Don't have any reports finished yet, so not sure of speed, etc., but Jasper looks to be pretty full featured and it freely available. HT

[PHP] Best PHP db wrapper?

2003-01-29 Thread John Wells
Trying to decide between wrappers for a rather large application, and wanted some input from the group as I haven't used any of these to any degree. So far, I've found PearDB, metabase, adodb, and MDB. What's the best option? My main concerns are speed and good community support. All input is *

Re: [PHP] Java call on object causes segfault.

2003-01-26 Thread John Wells
ension went > into 4.3.0 so maybe it'll work for you. > > Regards, > Philip > > > On Sun, 26 Jan 2003, John Wells wrote: > >> Working on getting Java integration going. I was able to get it to >> work with the online example and can create an object of >&g

[PHP] Java call on object causes segfault.

2003-01-26 Thread John Wells
Working on getting Java integration going. I was able to get it to work with the online example and can create an object of java.lang.System and print various properties returned from there. However, if I create my own class, I can instantiate it, but if I call a method on that class it causes a

[PHP] Java problem...need advice.

2003-01-25 Thread John Wells
Trying to get java working so I can make native calls. I've got php.ini setup and it seems to work (i.e., I can use the online (php.net) example and create a java.lang.System object, and access properties from it). However, created my own class in a directory I specified in my java.class.path dir

[PHP] Php support for Java

2003-01-24 Thread John Wells
In an app I'm developing I have a need to call java classes, and am hoping to use PHP's java integration. However, the manual page (http://www.php.net/manual/en/ref.java.php) says "This extension is EXPERIMENTAL. The behaviour of this extension -- including the names of its functions and anything

Re: [PHP] Who is foo & what is bar?

2003-01-23 Thread John Wells
Ummm...and this has what to do with PHP? http://www.catb.org/~esr/jargon/html/entry/foobar.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php performance

2003-01-23 Thread John Wells
Chris, Can we see your test code? John arch said: > Nope. It's tested with a typical client/server setup, as in a real use > case. > > > "Chris McCluskey" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED].. > . > I'm going to ask the really stupid question... Is my

[PHP] Jasper Reports and PHP

2003-01-22 Thread John Wells
Anyone tried to use Jasper Reports with PHP? Jasper is a java reporting tool, but I need an os alternative to Crystal Reports and am hoping it might fit the bill. I *think* I could integrate Jasper into my app fairly well with PHP's ability to call Java classes, but wanted to hear from anyone els

RE: [PHP] NEED HELP URGENTLY

2003-01-22 Thread John Wells
AND PLEASE STOP YELLING HiTCHO said: > Global Variables are turned off!!! check php.ini!! > > > > Timothy Hitchens (HiTCHO) > Open Source Consulting > e-mail: [EMAIL PROTECTED] > >> -Original Message- >> From: Dale [mailto:[EMAIL PROTECTED]] >> Sent: Thursday, 23 January 2003 10:02

Re: [PHP] A Licensing Question

2003-01-22 Thread John Wells
Chris, Sheesh. I'd read it about 5 times but revisited just now. Somehow I missed the key phrase "which are themselves interpreted.". Here's the full relevant excerpt: "Another similar and very common case is to provide libraries with the interpreter which are themselves interpreted. For insta

Re: [PHP] A Licensing Question

2003-01-22 Thread John Wells
Peter Hutnick said: >> Yeah...that's really what I'm wondering. If I have my own code, but >> make function calls and the like to script libraries licensed under >> the GPL, does it mean my code will have to be GPL'd as well? > > In a word, yes. Even if the script libraries are themselves just PH

Re: [PHP] A Licensing Question

2003-01-22 Thread John Wells
> However - if you want to sell software under a closed licence you will > need to be carefull to avoid 'linking' with gpl'd code. > The problem is that 'linking' as used in the gpl seems to refer to C > programming - and is an unclear term when refering to php. Yeah...that's really what I'm wond

[PHP] A Licensing Question

2003-01-22 Thread John Wells
I was wondering what the licensing issues for app frameworks (or any included PHP classes/libs) are. I'm creating a rather large PHP application for a company, and they'd like to potentially resell it to some of their customers. Can I safely use GPL'd libraries, classes, etc. (i.e. PearDB) and re

[PHP] PHP App Frameworks

2003-01-22 Thread John Wells
Ramping up on a large project and was wondering if there are any freely (as in speech) available app frameworks or toolkits for PHP that would save me from recreating the wheel. I'd prefer something relatively mature and well documented. Thanks for any input! John -- PHP General Mailing Li

[PHP] Speed concerns with OOP and PHP4

2003-01-16 Thread John Wells
I'm working on a large VB/Sql Server to Php/Postgresql conversion (approx. 60k lines of code). I'd like to design this thing as OO as possible, because I think ultimately it leads to better, more extendable and readable software. However, since php does the whole copy thing with objects, I'm a li

[PHP] Gotchas with Php and Postgresql?

2003-01-14 Thread John Wells
I'm preparing for a large project in which I'm the sole designer/developer. I've just about made the decision to go with Postgresql, as part of the project is converting a MS Sql Server db to a open source db and I think Postgresql provides some features that will make this port easier. However,

[PHP] Designing in PHP4 with PHP5 in mind...

2003-01-06 Thread John Wells
I'm preparing for a project in which I'll be porting and redesigning a large, ugly Visual Basic/Sql Server app to a PHP/Mysql or Postgresql based web application. I'd like to code in a way that will be at the same time easily ported to PHP5 and that will take advantage of PHP5's new object handlin

Re: [PHP] MySQL vs PostgreSQL

2003-01-06 Thread John Wells
> See MySQL 4.x. They also have subselects now (HUGE!). As for an Well, not really. Nested queries are scheduled for 4.1. 4.0 is in gamma, 4.1 isn't even available for download as alpha. You'll have to go with Postgres for now if you need subselects. Regarding row locking and transactions, lo

Re: [PHP] Zend IDE vs. PhpEd

2003-01-06 Thread John Wells
I've tried phpEdit, but unfortunately it's a Windows-only IDE and has quite a few reproduceable bugs (I get an access violation almost everytime I use the latest version. I do all my development in Linux, so it won't cut it. Thanks! John -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Zend IDE vs. PhpEd

2003-01-05 Thread John Wells
Sterling, Thanks for the reply. I'm also impressed with Zend's autocompletion...I can't even get PHPEd to autocomplete on objects. I wonder if Zend uses dbg as well. It'd be nice to see a profiler thrown into a future version. Finally, one frustrating thing on the part of both editors is the i

[PHP] Zend IDE vs. PhpEd

2003-01-05 Thread John Wells
Can anyone who's familiar with both give an honest, open evaluation? I'm in a rush project and need something quickly (have to purchase tomorrow), but I'm on the fence when it comes to these two products. Zend costs $100 less than Phped, so I'm leaning that way. But if there's anything you know

Re: [PHP] IIS5.0/PHP4.03 killing all sessions. HELP!!!!

2001-05-18 Thread John Wells
I have this problem as well (see "Where the hell did my session vars go?"). We were using 4.0.4pl1 and it was occuring under both Netscape 4.74 and IE 5.5. We upgraded PHP to version 4.0.5 and everything works nicely under Netscape, but IE 5.5 is still screwing up. Just for info... Thanks, Jo

Re: [PHP] Where the hell did my session vars go?!?

2001-05-18 Thread John Wells
Here's the server config if it's more help. Thanks!!! John PHP Version 4.0.5 System Linux xxx 2.2.16-3 #1 Mon Jun 19 18:10:14 EDT 2000 i686 unknown Build Date May 17 2001 Configure Command './configure' '--with-mysql' '--with-apache=../apache_1.3.19' '--enable-track-vars' '-

[PHP] Where the hell did my session vars go?!?

2001-05-18 Thread John Wells
I'm having serious issues with session management in PHP and am trying to determine if it's a problem with my hosting company or a problem in my code. The flow of my site is: login_page -> session_start_page -> form_page -> display_results_page Upon login a POST is made to session_start_page.