Re: [PHP] Sessions, Constructors, and Destructors - Oh my!

2005-08-29 Thread Evert | Rooftop
Or you can save the the session in the database [ works good for me ] Sharing the cookie is easy when you have multiple boxes on the same tld [ or FQDN ] Evert Dan Trainor wrote: Nathan Tobik wrote: I've never looked into some of the open-source load balancing solutions, but I know they

Re: [PHP] just a php/mysql logic question

2005-08-28 Thread Evert | Rooftop
Reading all this I suddenly realise I have the same problem. I'm using a modified tree traversal alghoritm to store my tree in the database, but when I insert a new node I assign new ID's based on a SELECT query. I think I can deal with it with the combined UPDATE..SELECT query. Right now an

Re: [PHP] foreach loop changed after 4.3 - 4.4 upgrade

2005-08-23 Thread Evert | Rooftop
I switched from 4.3 to 4.4 on a server with a huge web application using both foreach loops with and without the keys.. No problem whatsoever.. Evert Larry Brown wrote: I found that the only way to get the function to behave is to add the key... foreach($multiarray as $key=$subArray) Now

Re: [PHP] Weird results of ==

2005-08-23 Thread Evert | Rooftop
Jasper Bryant-Greene wrote: Am I missing something really obvious here? This is an inherent problem with floating-point operations, especially comparison, and is not unique to PHP. Often numbers will be off by some miniscule amount, just enough to make them not equal. What I would do

[PHP] Files passing through

2005-08-22 Thread Evert | Rooftop
Hi People, I want to use a PHP script to pass through a file to the browser [ right after some processing ]. What is the fastest way to do this? I know echo(file_get_contents('myfile')); is not a good idea ;) Is fpassthrough the right choice? maybe virtual, so it won't go through php but

Re: [PHP] Upgrading PHP 4.2.3 to PHP 4.3.2

2005-08-16 Thread Evert | Rooftop
Burhan Khalid wrote: Tim Burgan wrote: Can I extend this.. On a live server I have PHP 4.1. If I upgrade to PHP 5, is something likely to stop working? 99% yes. Especially if you really mean 4.1.0 -- that's quite old. I'd say 90% no :) Evert -- PHP General Mailing List

Re: [PHP] Upgrading PHP 4.2.3 to PHP 4.3.2

2005-08-16 Thread Evert | Rooftop
T.N.Prasad wrote: HI All, Our company servers are being upgraded from 4.2.3 to 4.3.2. Is there any special care that I should take (as far as my scripts are concerned)? Plz help me. I'm new to PHP. Thanks TNP Professional Services ZUSTEK INDIA

Re: [PHP] 'God' has spoken... :-)

2005-08-14 Thread Evert | Rooftop Solutions
Matthew Weier O'Phinney wrote: * Sebastian [EMAIL PROTECTED] : Matthew Weier O'Phinney wrote: * Sebastian [EMAIL PROTECTED] : why php6 and not php5? look how long it took to get to php4 (with php5 just starting to rolling out) and people are already talking about php6?

[PHP] PHP, SSL and private keys

2005-08-11 Thread Evert | Rooftop
Hi, I would like to give my users the possibility to authenticate through a private certificate to confirm their identity. I'm not really sure where to start. Has anyone seen a website explaining this? Some pointers would be very welcome. Thanks! Evert -- PHP General Mailing List

[PHP] CPU Usage

2005-08-11 Thread Evert | Rooftop
Hi All, Is there a way to determine the current cpu usage using PHP. I'm mainly looking for a linux solution, but I would like to expand it to windows later on. Any ideas? The archives weren't any good =( Thanks, Evert -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] application-wide shared data/object

2005-07-28 Thread Evert | Rooftop
Rasmus Lerdorf wrote: Not much documentation is needed: if(!$dict = apc_fetch('dict')) { $dict = function_that_returns_a_dictionary_array_or_object(); apc_store('dict',$dict); } That's all. [snip] -Rasmus Wow, I should have tried harder to make it work.. thnx ! Evert -- PHP

Re: [PHP] Re: Rate to charge

2005-07-21 Thread Evert | Rooftop
Jasper Bryant-Greene wrote: timothy johnson wrote: I have been asked to look in toprogramming a PHP system for someone, and while I have been programming for a while this will be the first time it will be for someone other then a friend. Just wanted to get some ideas on how much you charge

Re: [PHP] Re: Rate to charge

2005-07-21 Thread Evert | Rooftop
Jasper Bryant-Greene wrote: Evert | Rooftop wrote: Jasper Bryant-Greene wrote: I'm in New Zealand and charge NZ$50/hour as a base rate for PHP web development. I don't know what that is in your currency, try www.xe.com/ucc to find out. That's almost probably as cheap as india. True

Re: [PHP] Re: Tracking a mobile phone

2005-07-18 Thread Evert | Rooftop
Yea that would be very very hard.. besides if your friend would do the trip in the usa, I doubt he can access the network at all ;) In any case, the most realistic choice would be to buy a GPS-enabled phone and write a nice Java app that does the job for you (maybe even flash-lite can do it).

Re: [PHP] PHP from CLI with SAPI

2005-07-18 Thread Evert | Rooftop
Fredrik Tolf wrote: Hi! I've begun to be more and more displeased with Apache lately, so I've been thinking of writing my own HTTP server instead. I still want PHP support, but writing a new SAPI for PHP seems like overkill. Therefore, is it possible to use PHP from the command line, but

Re: [PHP] connecting to MySQL from a Mac

2005-07-12 Thread Evert | Rooftop
Bruce Gilbert wrote: Hello, I am trying to add a PHP search to my site and the read me file says to: 2. In the server, create a database in MySQL to hold Sphider data. a) at command prompt type (to log into MySQL): mysql -u your username -p Enter your password when prompted. b) in MySQL,

Re: [PHP] Re: Security, Late Nights and Overall Paranoia

2005-07-11 Thread Evert | Rooftop
The point is.. If you for example only allow iu and b doing this with bbcode would require extra cpu-cycles to convert [i] to i I don't really agree with this, because I think escaping the html + replacing bbcode would require less cpu cycles then scanning the string for invalid html and

Re: [PHP] Re: Strange notation to create object

2005-06-23 Thread Evert | Rooftop Solutions
Robert Cummings wrote: On Thu, 2005-06-23 at 13:36, Matthew Weier O'Phinney wrote: * Robert Cummings [EMAIL PROTECTED] : On Thu, 2005-06-23 at 11:32, Matthew Weier O'Phinney wrote: The above notation is unnecessary when developing in PHP5, as objects in PHP5 are passed by

[PHP] Extra (persistant) tier

2005-06-22 Thread Evert | Rooftop
Hi, I'm writing a big web application, and trying really hard to seperate business logic and presentation, which been no problem up to now. Because I abstracted the business logic so much the framework became heavier, sometimes a simple action can take up to 2 mb memory and several extra

Re: [PHP] PHP Applications?

2005-05-18 Thread Evert | Rooftop
Chris Shiflett wrote: Danny Brow wrote: Zend sells a compiler to speed up your PHP code. Since it's compiled, it also does not contain the source code in readable form. You should visit the Zend website. Any free ones? http://pecl.php.net/package/APC APC won't work for me, segmentation faults

Re: [PHP] Jakarta Tomcat and PHP

2005-05-18 Thread Evert | Rooftop
My guess would be looking for how to use PHP as a CGI in tomcat. So check out the manual for CGI stuff. grt, Evert Chris Holden wrote: Hi, I hope this is the right place to ask... I am running Tomcat 5.5.7 (jdk 1.5) on Windows XP quite happily. I have MySQL set up and that all works fine too.

Re: [PHP] extension development

2005-05-16 Thread Evert | Rooftop
-69255866 / Fax: +61-2-69251039 http://www.eternitytechnologies.com/ Evert|Rooftop wrote: Hi people, I want to write a PHP extension that allows clustering and simple information sharing between processes and hosts. What would be the prober mailing list subscribe to for my questions about the zend

[PHP] Components

2005-05-16 Thread Evert | Rooftop
Hi people, I'm working on a component system and started with a component class. The idea is the following: component id=c1 type=forms/LoginForm class=joop / component id=c2 type=TextArea width=200px Sample text /component component id=c3 type=VPanel class=sample component id=c4 type=Button

[PHP] Cache

2005-05-16 Thread Evert | Rooftop
Hi, I'm developing a cache system. Which works in pseude code, like this: class Cache { function Fetchdata($id1,$id2,$id3) { $id = md5($id1 . $id2 . $id3); if ($this-DataIsExpired($id)) return false; else return unserialize(file_get_contents($id)); } function

Re: [PHP] Re: Cache

2005-05-16 Thread Evert | Rooftop
Jason Barnett wrote: * Is file_get_contents the fastest way to open the file? AFAIK yes it is since it takes advantage of memory mapping (where possible). * Is serialize the fastest way to serialize ;) ? Not sure. * Are there any other things I should consider? (I'm aware of file-locking

Re: [PHP] Components

2005-05-16 Thread Evert | Rooftop
Jason Wong wrote: On Tuesday 17 May 2005 03:24, Evert | Rooftop wrote: I'm working on a component system and started with a component class. [...] I want to give PHP to have a natural application-programming feel, along with events and all (which is implemented by the PseudeModule class

Re: [PHP] extension development

2005-05-16 Thread Evert | Rooftop
Jason Barnett wrote: Evert | Rooftop wrote: Basicly I want very rapid and easy information sharing between multiple processes. I'm not totally sure about the implementation yet. The most simple implementation would be using a $_APP global which is shared accross servers and processes

Re: [PHP] Components

2005-05-16 Thread Evert | Rooftop
Rory Browne wrote: Thank you I will look into it ;) but right now I'm also looking for the php-developers' opinions. So, what are your ideas about this? AFAIK Prado recently won a fairly well respected PHP Contest. I think the results speak for themselves. Very interesting indeed =) I'll

Re: [PHP] Components

2005-05-16 Thread Evert | Rooftop
Jason Wong wrote: On Tuesday 17 May 2005 07:27, Evert | Rooftop wrote: Thank you I will look into it ;) but right now I'm also looking for the php-developers' opinions. So, what are your ideas about this? I strongly suggest that you look at the existing projects, see which one most

Re: [PHP] Cache

2005-05-16 Thread Evert | Rooftop
Rory Browne wrote: Interesting idea. Using three identifiers, as a key. md5() returns a 32 hex-digit value. That means that there are can only be a maximum of 3.4 * 10^38 possible outcomes for the md5(). This means that there there is a 1 in 340 chance of a

[PHP] extension development

2005-05-15 Thread Evert | Rooftop
Hi people, I want to write a PHP extension that allows clustering and simple information sharing between processes and hosts. What would be the prober mailing list subscribe to for my questions about the zend engine? grt, Evert -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] what am I missing..interpolation?

2005-05-15 Thread Evert | Rooftop
Shouldn't that be: eval(echo \$string\); its pretty insecure though, be sure your users are not allowed to change the db field, because they can do some serious damage. grt, Evert Krid wrote: Hi! Try eval(echo $string); blackwater dev wrote: Hello, this works fine: $name=fido; $string=my dog's

Re: [PHP] Re: Repost: mod_rewirte loses POST data

2005-05-15 Thread Evert | Rooftop
Bart Seresia wrote: Evert from collan thouht it wy have to do with the rewrite rules or the script and asked to post both of them Yea I replied with the wrong e-mail address so it didn't end up here.. this are the rewrite rules i use: [snip] In IE i get this output for post and get: [snip] Am

Re: [PHP] Fastest templating mechanism

2005-05-08 Thread Evert | Rooftop Solutions
Joe Wollard wrote: Evert, Have you looked at smarty (http://smarty.php.net) ? It doesn't do exactly what you're talking about but it seems to be the Fastest templating mechanism that I've tested; probably one of the most versatile as well. Cheers! -Joe www.joewollard.com Evert | Rooftop

Re: [PHP] Fastest templating mechanism

2005-05-08 Thread Evert | Rooftop Solutions
[EMAIL PROTECTED] wrote: On 8 May 2005 Evert | Rooftop Solutions wrote: What I really need is a fast lookup mechanism, to 'translate' statements. For example: setOutputType('xhtml'); echo(translate('authorstart')); the function translate opens xhtml.data, which contains: authorstart : span

[PHP] Fastest templating mechanism

2005-05-07 Thread Evert | Rooftop Solutions
Hi all, I'm working on a template system which works a bit like a text translation block. The data looks for example like: beginblock div class=block endblock /div beginauthor span class=author endauthor /div The list is going to be very large, it will have several overlays and not all pages

[PHP] automatic PHP Template engine

2005-05-01 Thread Evert | Rooftop Solutions
Hi, I'm working on a template engine, and I want my template engine to be automaticly started when a .stl file is called from the browser. I know this can be done with mod_rewrite, but I really need a platform-independant solution. Has anybody some ideas on how to make it work everywhere

Re: [PHP] automatic PHP Template engine

2005-05-01 Thread Evert | Rooftop Solutions
Richard Lynch wrote: On Sun, May 1, 2005 12:54 pm, Evert | Rooftop Solutions said: I'm working on a template engine, and I want my template engine to be automaticly started when a .stl file is called from the browser. I know this can be done with mod_rewrite, but I really need a platform

Re: [PHP] Re: Templating engines

2005-04-28 Thread Evert | Rooftop Solutions
Ryan A wrote: So just because you use smarty you think you are smart and have the right to be smart..who the hell do you think you are?? Sorry, just giving an example of how a jackass with extreme opinions would write on this holy war's volatile topic. no offense meant :-) Cheers, Ryan I

Re: [PHP] Re: Templating engines

2005-04-28 Thread Evert | Rooftop Solutions
Andre Dubuc wrote: On Thursday 28 April 2005 02:05 pm, John Nichel wrote: Jason Barnett wrote: snip Humor is on my TODO list. Making a TODO list is on my TODO list. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] Just out of curiosity, are there any

Re: [PHP] Re: Templating engines

2005-04-28 Thread Evert | Rooftop Solutions
Ryan A wrote: I would go for a xml-style template engine (start flaming right below this thread) Hey Rob, I sorry for the mix up but the above (however obvious) was *not* meant to be a flame, I was *only* joking with the guy. Is it just me or is joking becoming outlawed on the list?

Re: [PHP] Re: Templating engines

2005-04-28 Thread Evert | Rooftop Solutions
Hi Ryan, The XML basics are really simple and can be learned in 15 minutes, so I suppose you already know this. I personally think www.xml.com has some good resources, and they don't just keep it with theory and translate the stuff to practical situations. Also google for stuff like namespaces

Re: [PHP] Re: Templating engines

2005-04-28 Thread Evert | Rooftop Solutions
Jason Barnett wrote: Evert | Rooftop Solutions wrote: Yes, and that's how I read this reply =) About the subject, I'm working on a xml-based templating system, which caches all the steps it does, so it overcomes the slowness =) And ofcource because I like xml and all the neith things you can do

Re: [PHP] Re: Templating engines

2005-04-28 Thread Evert | Rooftop Solutions
Jason Barnett wrote: Evert | Rooftop Solutions wrote: Yes, and that's how I read this reply =) About the subject, I'm working on a xml-based templating system, which caches all the steps it does, so it overcomes the slowness =) And ofcource because I like xml and all the neith things you can do

[PHP] component template questions

2005-04-26 Thread Evert | Rooftop
Hi folks, I'm working on a component system for php forms and all, and I'm wondering about an issue I have. I have a few ideas on how to fix this problem, but I would like to hear your oppinions about it. These are my classes: Component FormElement extends Component ComboBox extends FormElement

Re: [PHP] Flash integration with PHP

2005-04-25 Thread Evert | Rooftop
khuram noman wrote: I want to develop a shopping car in flash using php so there any good tutorial or sample code that explain the flash integration with php Check out amfphp (http://www.amfphp.org). Flash people tend to love it =) grt, Evert -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Flash integration with PHP

2005-04-25 Thread Evert | Rooftop
, it however doesnt use the flash remoting component but has its own, it streams serialized data as an array from php classes. the sucky thing is you cant use the remoting monitor in flash for debugging. http://ghostwire.com/go/28 On 25/04/2005, at 7:27 PM, Evert | Rooftop wrote: khuram noman wrote: I

Re: [PHP] Flash integration with PHP

2005-04-25 Thread Evert | Rooftop
You should check out the CVS, I think you will be suprised. Evert Dan Rossi wrote: Its been in active freeze for two years ? Besides PHPObject is AS2 compatible now. On 25/04/2005, at 8:41 PM, Evert | Rooftop wrote: I'm sure they would tell something about that on the mailing list or website

[PHP] Classes, Constructors, References and Recursion

2005-04-20 Thread Evert | Rooftop Solutions
Hi, I have this piece of code: class test1 { var $data = 'hi', $node = false; function test1() { $this-node = new test2($this); } } class test2 { var $data = 'yoyo', $root = false;

Re: [PHP] Classes, Constructors, References and Recursion

2005-04-20 Thread Evert | Rooftop Solutions
Jochem Maas wrote: also I believe print_r() and var_dump() have a few odditities regarding display of recursion with regard to objects... internals mailinglist archive might tell you more on that. I think I have the answer, when I pass a var to print_r it isn't passed by reference, so there

Re: [PHP] secure document : solution wanted

2005-04-07 Thread Evert - Rooftop Solutions
in the first place? Oh well. Actually, the reason they did is because of fishing. A malicious guy could construct an url like http://www.mybank.com/[EMAIL PROTECTED]/ Firefox prompts before it opens an url like this, a much better way to handle it =) grt, Evert -- Rooftop Solutions - Web Applications

[PHP] Possible problem with EXPAT functions

2005-03-28 Thread Evert | Rooftop Solutions
Hi People, I'm working on some complex PHP4 OOP Scripts and at a really unusual point I'm getting the following error in my apache errorlog: *** glibc detected *** double free or corruption (!prev): 0x0828c510 *** [Tue Mar 29 07:09:27 2005] [notice] child pid 9110 exit signal Aborted (6) This

[PHP] world write access

2005-03-27 Thread Evert - Rooftop Solutions
, there shouldn't be any problem. The numerous places I read that I shouldn't do that gives me certain doubts though. any comments on this? regards, Evert -- Rooftop Solutions - Web Applications on Demand tel. (+31)628962319 fax. (+31)842242474 http://www.rooftopsolutions.nl -- PHP General Mailing

Re: [PHP] world write access

2005-03-27 Thread Evert | Rooftop Solutions
Thanx Johannes, how about making the webserver the owner of the files? Would that be a good idea? The problem is that I have a framework deployed at several clients. Because this are some big clients and demand high security they won't give me a login to their ftp or consoles. Understandable,

[PHP] auto appending .php extension

2005-03-25 Thread Evert | Rooftop Solutions
Hi Folks, I'm using PHP 4.3.10, the Zend Optimizer and Apache 1.3.33. Somehow, if I want to open for example /dikkerapper.php, it is also possible to access it through /dikkerapper (without the .php extension) I haven't seen this before, but when I checked it also occurs on my other servers. The

Re: [PHP] class and global

2005-03-19 Thread Evert - Rooftop Solutions
) { global $freedb; [snip] $freedb-freedb_search($txt); I don't see an error in this code, perhaps you should give us a bit more information. grt, Evert -- Rooftop Solutions - Web Applications on Demand tel. (+31)628962319 fax. (+31)842242474 [EMAIL PROTECTED] http

Re: [PHP] PHP 5.0.4RC1 and PHP 4.3.11RC1 rolled

2005-03-14 Thread Evert | Rooftop Solutions
Zeev Suraski wrote: Everyone, We've rolled initial release candidates for PHP 5.0.4 and 4.3.11. As usual, these 3rd digit releases include a variety of bug fixes and minor updates. PHP 5.0.4RC1 source: http://downloads.php.net/zeev/php-5.0.4RC1.tar.bz2

Re: [PHP] Re: Imap and attachments

2005-03-11 Thread Evert | Rooftop Solutions
Jim Plush wrote: here is a script I use to get jpg attachments with IMAP.. good luck ?php [snip] Thanx Jim, Unfortunaly some e-mail clients send the headers in ways the imap-functions can't read. So I figured something out using regular expressions. If anyone needs this, mail me (in total

[PHP] Imap and attachments

2005-03-10 Thread Evert | Rooftop Solutions
Hi, I started using the IMAP functions and ran into a problem with some headers for attachments. The first one is: Content-type: image/psd; x-unix-mode=0644; name=FinalVersion6.psd Content-transfer-encoding: base64 Content-disposition: inline; filename=FinalVersion6.psd Generated by Mac Mail.

[PHP] cache engine

2005-03-05 Thread Evert - Rooftop Solutions
in forward, Evert -- Rooftop Solutions - Web Applications on Demand tel. (+31)628962319 fax. (+31)842242474 http://www.rooftopsolutions.nl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] cache engine

2005-03-05 Thread Evert - Rooftop Solutions
, so be careful. Thanks I will check it out. Hope this helps, Chris Smith Ninja Labs http://www.ninjalabs.co.uk/ greetings, Evert -- Rooftop Solutions - Web Applications on Demand tel. (+31)628962319 fax. (+31)842242474 [EMAIL PROTECTED] http://www.rooftopsolutions.nl -- PHP General Mailing List (http

Re: [PHP] cache engine

2005-03-05 Thread Evert - Rooftop Solutions
Mark Charette wrote: Evert - Rooftop Solutions wrote: I heard that shared memory is actually slower than writing and reading a file and it is not available on windows systems. Hmmm ... that's an interesting thing you heard concerning shared memory. Care to share _who_ told you that? I'd like