[PHP] Re: PHP Frameworks

2005-12-27 Thread Petr Smith
Simon Reye wrote: I'm moving away from Cold Fusion and am considering java or php. I've mucked around with Struts and Coccoon on the java side and think they are great. There does not however seem to be any well backed projects similar to these for php. Can anyone point me to a good php MVC

[PHP] Re: Two version of PHP in single server

2005-11-29 Thread Petr Smith
Run two Apache servers, second (with old PHP version) on another port. Internally forward all requests to old PHP project to this second server. We tested most methods but this was the best. Petr J.F.Kishor wrote: Hi, Thanks...! Even the second is server-parsed not cgi Some m

[PHP] Re: PhpMailer vs Pear:Mail

2005-11-28 Thread Petr Smith
Cabbar Duzayak wrote: Could you please tell which one you recommend in terms of stability/speed and share your experience in terms of these 2? Thanks... I tried all and ended with http://www.phpguru.org/static/htmlMimeMail5.html fast, stable, usable. Petr -- PHP General Mailing List (http:

[PHP] Re: PHP and email

2005-11-23 Thread Petr Smith
Thanks to those who have replied so far, yes our main concern is the smtp server falling over or dying. So to come back to John Nichel's answer: John, have you done this personally and I assume the effects were good?? IE everything ran smoothly? I have done it just as John has described ab

[PHP] Re: SOAP and PHP

2005-11-16 Thread Petr Smith
Torgny Bjers wrote: Angelo Zanetti wrote: Hi guys. I've googled but found so many pages that I'm not sure what to use. I want to use PHP to make use of SOAP. I've found: -nuSoap -libxml(2) -php-soap -and others which seemed less important. Can you recommend which one to use? and which one

Re: [PHP] PHP Search Engine

2005-11-09 Thread Petr Smith
It sounds like this is specifically for html pages, or am I assuming wrong? Do any of these or other search engines index html content held in a MySQL database? Arno It depends.. Some products are based around web spider (mnogosearch), some are only engines without spider part (lucene). Ther

Re: [PHP] PHP Search Engine

2005-11-09 Thread Petr Smith
Richard Lynch wrote: On Tue, November 8, 2005 11:20 pm, Leonard Burton wrote: Has anyone on here created a search engine in PHP? Sure, of sorts, now and again, here and there, to some degree. I am reasonably certain that if you Googled for: "PHP web spider framework" you would find s

[PHP] Re: php5 / php4 - MySQL/SQLite

2005-11-08 Thread Petr Smith
Danny wrote: Hi, Let me open a discussion about php5 / php4 Why upgrade? It worth? Benefits? Code programming changes? Is there and end-of-life for php4, in the near/medium future? What about MySQL and SQLite. What is the future of both? I would like to open a discussion about the future of b

[PHP] Re: Template style question

2005-11-06 Thread Petr Smith
Smarty sucks. Mixing presentation and logic is never good idea. I know Smarty is very popular, but big popularity doesn't always mean quality. Back to original question: If you decided to reinvent the wheel, please don't reinvent square wheel without tire. Mixing presentation and logic is bad

[PHP] Re: curious (and frustrating) php/apache behavior

2005-10-29 Thread Petr Smith
Hi, why don't you use normal php include (require) functions? Why do you want to mix apache server side includes with php code? There is nothing php include can't do.. Just change all to Petr Don Brown wrote: We're having a problem getting more than one imbedded PHP script to execute

[PHP] Re: fopen

2005-10-26 Thread Petr Smith
Hi, yes, there could be some problem with your code. But it depends on what are you trying to archieve. If you are trying to put whole file to database, there is no reason to use fgets function. Just use $buffer=file_get_contents($filename); and put the buffer into SQL. No reason to read it

Re: [PHP] php 5.0.5 segfaults apache2 on ubuntu, 5.0.4 ok

2005-10-25 Thread Petr Smith
I just found this is known bug and was already fixed in CVS. http://bugs.php.net/bug.php?id=34450&edit=2 thanks to all! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php 5.0.5 segfaults apache2 on ubuntu, 5.0.4 ok

2005-10-21 Thread Petr Smith
Hi, thanks! that was it! when destruct method is removed, all problems are gone. I really don't know why I added the __destruct method to this mysql wrapper. Maybe I saw it somewhere in discussion at php manual bottom This code segfaults my apache: close(); } } $obj = new test

[PHP] php 5.0.5 segfaults apache2 on ubuntu, 5.0.4 ok

2005-10-20 Thread Petr Smith
Hi, I've just installed php 5.0.5 to newest ubuntu breezy and apache2 started (sometimes) segfaulting (teste two computers with ubuntu hoary and ubuntu breezy - same results). Is says something like this: [Thu Oct 20 12:32:21 2005] [notice] child pid 13161 exit signal Segmentation fault (11) [T

[PHP] Re: PHP DOM XHTML - let me set my own javascript from code

2005-10-19 Thread Petr Smith
Thanks a lot Rob, it's so simple! I don't know why I did't find it myself. Petr Rob wrote: Petr Smith wrote: but it encloses it to CDATA section automatically like this: <tt>language="Javascript"><![CDATA[alert('ddd');]]> but I need it

[PHP] PHP DOM XHTML - let me set my own javascript from code

2005-10-18 Thread Petr Smith
Hi, I have problem with PHP DOM extension. How can I add my own javascript to javascript tag? I tried it using this code $html = "\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\";>\n" . "\n" . "http://www.w3.org/1999/xhtml\"; xml:lang=\"en\" lang=\"en\">\n" . "\n" . "\n" .

Re: [PHP] caching parsed XML files as DOM objects in memory

2005-10-10 Thread Petr Smith
I'm writing template library based on XML. But it's not very efficient to create new DomDocument, load XML template, process it and show on every page hit. XML parsing is not very fast, and because I'm parsing XHTML with entities, all DTD's are parsed too. I thought about something similar to java

[PHP] Re: ob_start and ob_get_contents buffering problem

2005-10-07 Thread Petr Smith
Dasdan wrote: question: I try to buffer the output of the 'system/views/main.php' into $contents. and then do a print. Problem is that the contents of the system/views/main.php are printed 2 times. Someone who can explain me? following the contents of testfile.php and main.php, php.ini settings c

[PHP] Re: How do I POST data with headers & make the browser follow?

2005-10-06 Thread Petr Smith
I have to apologize if this issue has been discussed in detail before but I couldn't find anything obvious so far. What I need/want to do is to : 1. Take POST data from a form (no problem) 2. Do whatever i need to on the target page (no problem) 3. Pass some other data on to a 3rd page as a POST

Re: [PHP] caching parsed XML files as DOM objects in memory

2005-10-06 Thread Petr Smith
it's not working at all. And it could never work. I don't think it's funny to write false advices to people "every other week". I've installed APC cache, tried to save XML. It was not working. apc_fetch returned NULL every time. [snip] When I looked into documentation for APC - there is this se

Re: [PHP] caching parsed XML files... FALSE advice, still not working

2005-10-06 Thread Petr Smith
Petr Smith wrote: Jasper Bryant-Greene wrote: Petr Smith wrote: is it possible to cache parsed XML files somehow? I'm writing template library based on XML. But it's not very efficient to create new DomDocument, load XML template, process it and show on every page hit. XML pars

Re: [PHP] caching parsed XML files as DOM objects in memory

2005-10-05 Thread Petr Smith
Jasper Bryant-Greene wrote: Petr Smith wrote: is it possible to cache parsed XML files somehow? I'm writing template library based on XML. But it's not very efficient to create new DomDocument, load XML template, process it and show on every page hit. XML parsing is not very

[PHP] caching parsed XML files as DOM objects in memory

2005-10-05 Thread Petr Smith
Hi, is it possible to cache parsed XML files somehow? I'm writing template library based on XML. But it's not very efficient to create new DomDocument, load XML template, process it and show on every page hit. XML parsing is not very fast, and because I'm parsing XHTML with entities, all DTD'