php-general Digest 8 Nov 2007 10:43:22 -0000 Issue 5116
php-general Digest 8 Nov 2007 10:43:22 - Issue 5116 Topics (messages 264197 through 264217): Re: Sessionvariable 264197 by: Ronald Wiplinger Help with preg_replace 264198 by: Richard Luckhurst 264199 by: Al 264200 by: Jochem Maas 264212 by: Robin Vickery html parsing 264201 by: Ron Croonenberg 264203 by: Tom Ray [Lists] 264204 by: Casey 264205 by: Ron Croonenberg 264206 by: Ron Croonenberg 264208 by: Ron Croonenberg 264209 by: Per Jessen 264210 by: Jim Lucas 264215 by: Ford, Mike Re: help with link from mysql 264202 by: Andrew Ballard Re: gzuncompress() Not Working. 264207 by: heavyccasey.gmail.com Re: Benchmarking check to see if array key is set 264211 by: Peter Ford PHP ide? 264213 by: Hulf 264214 by: Shelley Shyan 264216 by: Darryl Ware 264217 by: Richard Heyes Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: [EMAIL PROTECTED] -- ---BeginMessage--- Sebastian Hopfe wrote: Dear Ronald, I would like to ask you, want kind of session you use in you application. I get information and put these information into a session variable, like which language the page should be displayed. I have two frames on that web page. One is the main page and one is a disclaimer. After a while the disclaimer and then the main frame starts to fall back to the default language. I try from my desktop several browsers and so the information is in different sessions almost the same. I am doubting if the frames are the cause of vanishing SESSION information. bye Ronald regards Sebastian Ronald Wiplinger [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] I use at the first page a session variable to set a flag. After a few pages, or if somebody wait too long, the pages have another flag. I noticed that there are often more than one session file exist. How can I avoid that? How can I make sure that for one user is only one session file? bye Ronald -- Ronald Wiplinger (CEO of ELMIT) http://www.elmit.com http://voip.elmit.com http://ads.elmit.com Tel. (M) +886.939.775.516 (O) +886.2.2835.7765 (ENUM) 601*681 or FWD 511208 - I'm a SpamCon Foundation Member, #694, Verify it at http://www.spamcon.org PS: Spam prevention! Our system is protected with a spam prevention program. If you send us an e-mail, our system will send you a confirmation message back. Just reply to this confirmation message please. After receiving this confirmation message, our system will send the hold message (one) and all future messages (after the received confirmation message) to me without asking you again. ---End Message--- ---BeginMessage--- Hi I am in the process of porting a Perl application to PHP and I have hit a snag with trying to substitute test within a file. I have looked at the PHP manual and believe I should be using preg_replace but I have tried the examples and am not getting the result I would expect. I would appreciate any help in getting this to work. In Perl I have the following $html = `cat htmlfile`; $html =~ s/%ResID/$bookid/g; which replaces each instance of %ResID with the contents of the variable $bookid In PHP I have tried $html = `cat htmlfile`; $html = preg_replace('%ResID',$bookid,$html); When I run this I find $html is empty rather than containing the file with the %ResID replaced with the contents of $bookid. I would appreciate any help with my understanding of preg_replace. Regards, Richard Luckhurst Product Development Exodus Systems - Sydney, Australia. [EMAIL PROTECTED] Tel: (+612) 4751-9633 Fax: (+612) 4751-9644 Web: www.resmaster.com = Exodus Systems - Smarter Systems, Better Business = ---End Message--- ---BeginMessage--- Delimiters needed. Can use about anything not already in your pattern. / is very commonly used; but I like # or % generally; but, you can't use % because your pattern has it. $html = preg_replace(#%ResID#,$bookid,$html); Richard Luckhurst wrote: Hi I am in the process of porting a Perl application to PHP and I have hit a snag with trying to substitute test within a file. I have looked at the PHP manual and believe I should be using preg_replace but I have tried the examples and am not getting the result I would expect. I would appreciate any help in getting this to work. In Perl I have the following $html = `cat htmlfile`; $html =~ s/%ResID/$bookid/g; which replaces each instance of %ResID with the contents of the variable $bookid In PHP I have tried $html = `cat htmlfile`; $html = preg_replace('%ResID',$bookid,$html); When I run
php-general Digest 8 Nov 2007 22:44:23 -0000 Issue 5117
php-general Digest 8 Nov 2007 22:44:23 - Issue 5117 Topics (messages 264218 through 264244): Re: PHP ide? 264218 by: Lester Caine 264219 by: Peter Ford 264220 by: Zoltán Németh 264222 by: pobox.verysmall.org 264224 by: pobox.verysmall.org 264228 by: George Pitcher 264230 by: Lester Caine 264231 by: pobox.verysmall.org 264232 by: pobox.verysmall.org 264237 by: Børge Holen 264238 by: Robert Cummings 264243 by: Instruct ICC 264244 by: Børge Holen measuring script execution time 264221 by: pobox.verysmall.org 264227 by: Daniel Brown 264229 by: pobox.verysmall.org Re: html parsing 264223 by: Ron Croonenberg 264225 by: Ron Croonenberg Re: MySQL Identifying worst-performing codes 264226 by: Colin Guthrie Image manipulation on the fly 264233 by: Merlin 264234 by: Bojan Tesanovic 264235 by: zerof 264236 by: Per Jessen Recommend a wiki? 264239 by: Skip Evans 264240 by: chris smith 264241 by: TG Re: [PHP-DB] Re: MySQL Identifying worst-performing codes 264242 by: chris smith Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: [EMAIL PROTECTED] -- ---BeginMessage--- Darryl Ware wrote: Eclipse with PDT plugin I still prefer PHPEclise and Eclipse handles a lot of my documentation management and other development tools so just one 'IDE' to play with -- Lester Caine - G8HFL - Contact - http://home.lsces.co.uk/lsces/wiki/?page=contact L.S.Caine Electronic Services - http://home.lsces.co.uk MEDW - http://home.lsces.co.uk/ModelEngineersDigitalWorkshop/ Firebird - http://www.firebirdsql.org/index.php ---End Message--- ---BeginMessage--- Hulf wrote: Just wondering if anyone uses an IDE and if so what ones? Ta, H. Quanta+, with KDESVN for version management... ---End Message--- ---BeginMessage--- 2007. 11. 8, csütörtök keltezéssel 10.58-kor Lester Caine ezt írta: Darryl Ware wrote: Eclipse with PDT plugin I still prefer PHPEclise and Eclipse handles a lot of my documentation management and other development tools so just one 'IDE' to play with for me EasyEclipse for PHP greets Zoltán Németh -- Lester Caine - G8HFL - Contact - http://home.lsces.co.uk/lsces/wiki/?page=contact L.S.Caine Electronic Services - http://home.lsces.co.uk MEDW - http://home.lsces.co.uk/ModelEngineersDigitalWorkshop/ Firebird - http://www.firebirdsql.org/index.php ---End Message--- ---BeginMessage--- Hulf wrote: Just wondering if anyone uses an IDE and if so what ones? Ta, H. Eclipse w/ PDT is great. Excellent integration with Subversion (Subclipse). Shows the changed files in the file browser, extremely easy diff, history, etc. Iv ---End Message--- ---BeginMessage--- Andrew Peterson wrote: Does anyone else find the Eclipse programs run EXTREMELY slow? Maybe there's some sort of configuration I'm missing. -Andrew Eclipse is Java based. You need a decent machine and decent amount of RAM. More tips - a) Install only what you need Eclipse is a universe of things written by different people and you can easily find yourself running tons of stuff that arrived as dependencies. It used to take me a while to figure out how to install what I need without installing what I don't need. In the latest version of Eclipse this became easier, especially using the Europa Discovery site. b) Try alternative ways of doing things For instance committing a file using the Subclipse perspective takes forever (on a large project) - it seems the Subclipse perspective updates the whole project after the commit. Committing the same file from within the PDT perspective takes seconds. c) I/O access is critical PDT does a lot of thing on save, for example. Slow I/O (hard drive) or concurrent access may slow your Eclipse a lot. Apart from that Eclipse is excellent and is improving. Iv ---End Message--- ---BeginMessage--- Apart from that Eclipse is excellent and is improving. I used Eclipse a few years ago when I was pretending to be a java developer. Since then I've mainly been using Dreamweaver, which works well with Smarty, and the 30-odd sites I manage. How easy would it be for me to move my existing PHP sites into Eclipse, or do they need to be started off as projects? Cheers George ---End Message--- ---BeginMessage--- George Pitcher wrote: Apart from that Eclipse is excellent and is improving. I used Eclipse a few years ago when I was pretending to be a java developer. Since then I've mainly been using Dreamweaver, which works well with Smarty, and the 30-odd sites I manage. How easy would it be for me to
[PHP] PHP ide?
Just wondering if anyone uses an IDE and if so what ones? Ta, H. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Benchmarking check to see if array key is set
Ford, Mike wrote: On 06 November 2007 12:57, Christoph Boget wrote: Consider the following test code: [...snip...] Running that I found that if( isset( $myArray[$key] )) is faster than if( array key exists( $key, $myArray )) is faster than if( $myArray[$key] ) To be honest, I was surprised. I would have thought that if( $myArray[$key] ) would have been the fastest way to check. I'm wondering if those in the know could explain why it's the slowest and also where the discrepancies come from w/r/t the difference in the amount of time it takes to make each check. OK, I'll take a stab. Firstly, isset() is a language construct not an actual function, so the only thing your isset() does is check whether the array element exists. Next, array_key_exists() is the only one that involves a real function call, so it's going to bear that cost. However, the function then does a pretty simple test which again only involves checking whether the key exists, so the function itself is going to be pretty quick. Finally, the if() is the only one that actually gets the value in $myArray[$key], and then casts it to Boolean to boot, and the cost of this must therefore outweigh the cost of a function call plus a check for a key's existence. I'm certainly not surprised that isset() is the quickest, because it does the simplest test, but to be honest I'm not sure if I'd have predicted the relative positions of the other two.. Cheers! Mike For convenience let's label the cases: 1: if( isset( $myArray[$key] )) 2: if( array key exists( $key, $myArray )) 3: if( $myArray[$key] ) Now, surely 3 is not comparable at all to 1 and 2. Cases 1 and 2 check that the key exists in the array. Case 3 does a boolean test on the value referenced by the key. That has several consequences: Firstly, if there is no element with key $key in the arrray, the interpreter will throw an error (undefined index ...); this error could be suppressed and ignored, I suppose. Secondly, if the value referenced by the key is equivalent to FALSE, then the test will return FALSE; for example, if you have set $myArray[$key]='' or $myArray[$key]=0. This could be very confusing. So if you want to test that the key exists, case 3 is NOT the way to do it. In fact, you will often want to check that the key exists(with case 1, ideally) BEFORE using a test of the form of case 3. Cheers Pete Ford (no relation, I think, although I do have a cousin called Michael...) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] html parsing
Ron Croonenberg wrote: I think the problem is that I read the lines in PHP, I read them with fgets and output them with printf. So the php interpreter never gets to see the line. the apache doesn't parse php output, so it doesn't happen there either. So.. I figured.. I either had to parse it in php myself OR convince the apache server to parse it for me. This is exactly where the problem lies. Apache isn't serving the page to PHP. PHP is just reading the file from the filesystem. What you might try is having PHP fopen() the url to the server/file. This way, apache will parse the SSI and spit out what it needs, then you can read the file anyway you like. understand that php reading a file from the file system, is different then your browser calling to a server/webpage and having Apache serve the page back to the browser. -- Jim Lucas Perseverance is not a long race; it is many short races one after the other Walter Elliot Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them. Twelfth Night, Act II, Scene V by William Shakespeare -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP ide?
Eclipse with PDT plugin Scite. Not quite an IDE per-se, but still very very good and extremely versatile. IDE of champions ;) That somewhat subjective... :) -- Richard Heyes +44 (0)800 0213 172 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP ide?
Darryl Ware wrote: Eclipse with PDT plugin I still prefer PHPEclise and Eclipse handles a lot of my documentation management and other development tools so just one 'IDE' to play with -- Lester Caine - G8HFL - Contact - http://home.lsces.co.uk/lsces/wiki/?page=contact L.S.Caine Electronic Services - http://home.lsces.co.uk MEDW - http://home.lsces.co.uk/ModelEngineersDigitalWorkshop/ Firebird - http://www.firebirdsql.org/index.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP ide?
2007. 11. 8, csütörtök keltezéssel 10.58-kor Lester Caine ezt írta: Darryl Ware wrote: Eclipse with PDT plugin I still prefer PHPEclise and Eclipse handles a lot of my documentation management and other development tools so just one 'IDE' to play with for me EasyEclipse for PHP greets Zoltán Németh -- Lester Caine - G8HFL - Contact - http://home.lsces.co.uk/lsces/wiki/?page=contact L.S.Caine Electronic Services - http://home.lsces.co.uk MEDW - http://home.lsces.co.uk/ModelEngineersDigitalWorkshop/ Firebird - http://www.firebirdsql.org/index.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP ide?
Hulf wrote: Just wondering if anyone uses an IDE and if so what ones? Ta, H. Quanta+, with KDESVN for version management... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Help with preg_replace
On 08/11/2007, Jochem Maas [EMAIL PROTECTED] wrote: Al wrote: Delimiters needed. Can use about anything not already in your pattern. / is very commonly used; but I like # or % generally; but, you can't use % because your pattern has it. $html = preg_replace(#%ResID#,$bookid,$html); wont a str_replace() do just fine in this case? // and we can do backticks too ;-) $html = str_replace(%ResID, $bookid, `cat htmlfile`); As Jochem said. But don't use backticks, use file_get_contents(). It's portable and you don't start up a new process just to read a file. $html = str_replace('%ResID', $bookid, file_get_contents('htmlfile')); -robin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] html parsing
Ron Croonenberg wrote: I think the problem is that I read the lines in PHP, I read them with fgets and output them with printf. So the php interpreter never gets to see the line. the apache doesn't parse php output, so it doesn't happen there either. So.. I figured.. I either had to parse it in php myself OR convince the apache server to parse it for me. Absolutely. Why are you parsing it yourself anyway - what value are you adding? /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHP ide?
Zend Studio or PHPEd Regards, Shelley -Original Message- From: Hulf [mailto:[EMAIL PROTECTED] Sent: Thursday, November 08, 2007 6:02 PM To: php-general@lists.php.net Subject: [PHP] PHP ide? Just wondering if anyone uses an IDE and if so what ones? Ta, H. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] html parsing
On 08 November 2007 06:41, Ron Croonenberg wrote: ok I wrote something quick and dirty real quick: But somehow it doesn't seem to like recursion. Is there something special one needs to do in php ? Recursive functions work just fine in PHP. What's the error message? As far as I can see, there's nothing wrong with what you've posted, except for where there's some inefficiency due to not having found the right functions to use (see corrections below). here's the code snippet: function parsehtmlline($line) { if (strlen(strstr($line, #include)) == 0 strlen(strstr($line, !--)) == 0) { if (strpos($line, #include)===FALSE strpos($line, !--)===FALSE) /* nothing to parse just print it */ print($line); } else { /* extract the filename */ $ssi = extractHTMLssi($line); /* open the file if it exists and output */ /* it else just print the string */ if (file_exists($ssi)) { $incfile = fopen($ssi, r); while (!feof($incfile)) { $ssiline = fgets($incfile, 1024); // somehow PhP doesn't really like recursion, needs to be fixed // for now just print the line. // parsehtmlline($ssiline); print($ssiline); } fclose($incfile); } else print($ssi); } } function extractHTMLssi($line) { $ssi = ; $strptr = strstr($line, \); if (strlen($strptr) == 0) return $line; else { $ssi=$strptr; $iss=strrev($ssi); $strptr = strstr($iss, \); $iss = substr($strptr, 1, -1); $ssi = strrev($iss); } return $ssi; I'd replace the whole of this function body with something like: $pos = strpos($line, ''); if ($strpos===FALSE): return $line; else: return substr($line, $pos+1, strrpos($line, '')-1); endif; } Cheers! Mike - Mike Ford, Electronic Information Services Adviser, JG125, The Headingley Library, James Graham Building, Leeds Metropolitan University, Headingley Campus, LEEDS, LS6 3QS, United Kingdom Email: [EMAIL PROTECTED] Tel: +44 113 812 4730 Fax: +44 113 812 3211 To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP ide?
Eclipse with PDT plugin IDE of champions ;) Hulf wrote: Just wondering if anyone uses an IDE and if so what ones? Ta, H. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] measuring script execution time
On 11/8/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello, running php 5.x as Apache module (both 1.3.x and 2.2.x) seems to report longer execution time when users sit on slower connection. Is it possible that end of script execution is when the last bit is passed to the user by Apache and the connection is closed? Any workaround around that? Thanks, Iv -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php By name alone (a recursive acronym), PHP stands for PHP Hypertext Preprocessor. That means, before the HTML or other output is sent to Apache to be served to the client, PHP has parsed, interpreted, processed, and returned all of the code, and then terminated the PHP process. As to why code execution appears to take longer on slower connections, my guess would be that it's a matter of coincidence. You could try doing something like this, if you don't already have something similar in place: ? // Add to the VERY top of the file being executed, before includes, et cetera. function microtime_float() { // Don't put in include file; that file will have to parse list($usec, $sec) = explode( , microtime()); return ((float)$usec + (float)$sec); } $_SCRIPT['exec_sess'] = time(); $_SCRIPT['client_ip'] = $_SERVER['REMOTE_ADDR']; $_SCRIPT['time_start'] = microtime_float(); // Continue with your code /* YOUR CODE HERE */ // Now, at the very bottom of the script $_SCRIPT['time_stop'] = microtime_float(); $_SCRIPT['time_total'] = round(($_SCRIPT['time_stop'] - $_SCRIPT['time_start']),4); $write_contents = EOL == SESSION $_SCRIPT['exec_sess'] for $_SCRIPT['client_ip'] == Start recording: $_SCRIPT['time_start']; Stop recording: $_SCRIPT['time_stop']; Total execution time: $_SCRIPT['time_total']; EOL; file_put_contents('./php_exec_time_log',$write_contents,FILE_APPEND); ? -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 If at first you don't succeed, stick to what you know best so that you can make enough money to pay someone else to do it for you. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: MySQL Identifying worst-performing codes
Lasitha Alawatta wrote: There is a tool call “idera” (SQL diagnostic manager). Basically it is a performance monitoring and diagnostics tool. It has a feature; Identifying of worst-performing codes – Identifies performance bottlenecks such as the worst-performing stored procedures, long-running queries, most frequently run queries, SQL Statements and SQL batches http://www.idera.com/Products/SQLdm/Features.aspx I’m looking for a same like tool for MySQL. Is anyone have any ideas. I know this is OT for this list but. In addition to the slow query logging I mentioned before (which you seemed to appreciate :)), I've just stumbled across this: http://rackerhacker.com/mysqltuner/ HTH some people. Col -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP ide?
Andrew Peterson wrote: Does anyone else find the Eclipse programs run EXTREMELY slow? Maybe there's some sort of configuration I'm missing. -Andrew Eclipse is Java based. You need a decent machine and decent amount of RAM. More tips - a) Install only what you need Eclipse is a universe of things written by different people and you can easily find yourself running tons of stuff that arrived as dependencies. It used to take me a while to figure out how to install what I need without installing what I don't need. In the latest version of Eclipse this became easier, especially using the Europa Discovery site. b) Try alternative ways of doing things For instance committing a file using the Subclipse perspective takes forever (on a large project) - it seems the Subclipse perspective updates the whole project after the commit. Committing the same file from within the PDT perspective takes seconds. c) I/O access is critical PDT does a lot of thing on save, for example. Slow I/O (hard drive) or concurrent access may slow your Eclipse a lot. Apart from that Eclipse is excellent and is improving. Iv -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] html parsing
Hi Mike, (I know it can probably be done better, or more elegant). The problem is that the recursion doesn't seem to stop. (Unless there are html ssi's that loop) there shouldn't be a problem. It basically just freezes up (probably the recursion not terminating/ falling back.) However the html just displays fine when I don't use recursion, so t somewhat baffled me that when I use recursion the script doesn't terminate. I did get to see some error msgs about problems with file streams. Maybe it is running out of file handles ? thanks, Ron Ford, Mike wrote: On 08 November 2007 06:41, Ron Croonenberg wrote: ok I wrote something quick and dirty real quick: But somehow it doesn't seem to like recursion. Is there something special one needs to do in php ? Recursive functions work just fine in PHP. What's the error message? As far as I can see, there's nothing wrong with what you've posted, except for where there's some inefficiency due to not having found the right functions to use (see corrections below). here's the code snippet: function parsehtmlline($line) { if (strlen(strstr($line, #include)) == 0 strlen(strstr($line, !--)) == 0) { if (strpos($line, #include)===FALSE strpos($line, !--)===FALSE) /* nothing to parse just print it */ print($line); } else { /* extract the filename */ $ssi = extractHTMLssi($line); /* open the file if it exists and output */ /* it else just print the string */ if (file_exists($ssi)) { $incfile = fopen($ssi, r); while (!feof($incfile)) { $ssiline = fgets($incfile, 1024); // somehow PhP doesn't really like recursion, needs to be fixed // for now just print the line. // parsehtmlline($ssiline); print($ssiline); } fclose($incfile); } else print($ssi); } } function extractHTMLssi($line) { $ssi = ; $strptr = strstr($line, \); if (strlen($strptr) == 0) return $line; else { $ssi=$strptr; $iss=strrev($ssi); $strptr = strstr($iss, \); $iss = substr($strptr, 1, -1); $ssi = strrev($iss); } return $ssi; I'd replace the whole of this function body with something like: $pos = strpos($line, ''); if ($strpos===FALSE): return $line; else: return substr($line, $pos+1, strrpos($line, '')-1); endif; } Cheers! Mike - Mike Ford, Electronic Information Services Adviser, JG125, The Headingley Library, James Graham Building, Leeds Metropolitan University, Headingley Campus, LEEDS, LS6 3QS, United Kingdom Email: [EMAIL PROTECTED] Tel: +44 113 812 4730 Fax: +44 113 812 3211 To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm -- = Ron Croonenberg | | Phone: 1 765 658 4761 Lab Instructor | Fax: 1 765 658 4732 Technology Coordinator| | Department of Computer Science| e-mail: [EMAIL PROTECTED] DePauw University | 275 Julian Science Math Center | 602 South College Ave.| Greencastle, IN 46135| = -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP ide?
Hulf wrote: Just wondering if anyone uses an IDE and if so what ones? Ta, H. Eclipse w/ PDT is great. Excellent integration with Subversion (Subclipse). Shows the changed files in the file browser, extremely easy diff, history, etc. Iv -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] measuring script execution time
Hello, running php 5.x as Apache module (both 1.3.x and 2.2.x) seems to report longer execution time when users sit on slower connection. Is it possible that end of script execution is when the last bit is passed to the user by Apache and the connection is closed? Any workaround around that? Thanks, Iv -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] html parsing
Hi Per, the pages are templates. depending on some variables either one page shows up, or another without links in the address bar changing etc. Ron Per Jessen wrote: Ron Croonenberg wrote: I think the problem is that I read the lines in PHP, I read them with fgets and output them with printf. So the php interpreter never gets to see the line. the apache doesn't parse php output, so it doesn't happen there either. So.. I figured.. I either had to parse it in php myself OR convince the apache server to parse it for me. Absolutely. Why are you parsing it yourself anyway - what value are you adding? /Per Jessen, Zürich -- = Ron Croonenberg | | Phone: 1 765 658 4761 Lab Instructor | Fax: 1 765 658 4732 Technology Coordinator| | Department of Computer Science| e-mail: [EMAIL PROTECTED] DePauw University | 275 Julian Science Math Center | 602 South College Ave.| Greencastle, IN 46135| = -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP ide?
George Pitcher wrote: I used Eclipse a few years ago when I was pretending to be a java developer. I use Eclipse for 1 1/2 year now and just lately it became nice for what I need (decent PDT, decent Subclipse). Can't imagine what it looked like few years ago. Since then I've mainly been using Dreamweaver, which works well with Smarty, and the 30-odd sites I manage. How easy would it be for me to move my existing PHP sites into Eclipse, or do they need to be started off as projects? I stopped using Dreamweaver at version 4 which had so many bugs they never fixed, even in 4.01. Don't know how it has progressed since then. Basically Eclipse does nothing to the code. It adds two folders .project and .settings to the project and needs somewhere to store non-project settings. So there is nothing much to be moved. For me the most powerful features are (no idea how Dreamweaver does that) - a) Powerful integration between PDT and Subversion (or CVS, if you prefer). You see the version information in the file browser, in the search results, everywhere. b) Powerful Subversion integration (Subclipse). Diffs across the history, branches, tags, etc., are done with 2-3 clicks. c) Powerful local history. Eclipse can be configured to remember massively local changes, so if you mess up something, you can go back basically second by second and minute by minute and see what you did when. d) Powerful search. PDT understands php so if you are looking for a function or a method - it takes zero time to find it even in a huge project. Eclipse remembers all searches you have done and dynamically updates the search result when you change files, so you can switch between different search result with one click. e) Outline. You have both current file and project outline showing you all classes, methods, properties, constants - for one click access. f) ... There is so much more, I have to write a book to tell you everything. The best of all is that it's free in a big way - it's backed by IBM, etc. and there are tons of powerful projects that develop Eclipse modules. All this does not mean you will be happier with Eclipse. The habit is a big thing and if you know Dreamweaver, you may be happier to stay there. Plus, Eclipse need some effort to be discovered, it is unconventional thing and at first one does know where to start. But since I use it, the good surprises haven't stopped, and the pleasure to know that there are more on the way is a nice thing to have. Iv -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP ide?
George Pitcher wrote: Apart from that Eclipse is excellent and is improving. I used Eclipse a few years ago when I was pretending to be a java developer. Since then I've mainly been using Dreamweaver, which works well with Smarty, and the 30-odd sites I manage. How easy would it be for me to move my existing PHP sites into Eclipse, or do they need to be started off as projects? Moving them in is a doddle. I'm adding external PHP packages to workspace all the time and the fault reporting in PHPEclipse often highlights problems that were not easy to track otherwise. But never having used Dreamwaever I don't know if you loose anything? -- Lester Caine - G8HFL - Contact - http://home.lsces.co.uk/lsces/wiki/?page=contact L.S.Caine Electronic Services - http://home.lsces.co.uk MEDW - http://home.lsces.co.uk/ModelEngineersDigitalWorkshop/ Firebird - http://www.firebirdsql.org/index.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP ide?
Andrew Peterson wrote: I'll try installed it again with none of the other nonsense. PDT has the so called ALL-IN-ONE thing, however I don't really trust it. I would suggest the following - a) Be sure you have the latest Java. b) Get the normal, traditional Eclipse. c) Update it (Help Software updates Find and install Search for updates of the currently installed features). Repeat if needed. d) Go to Help Software updates Find and install Search for new features to install and add the PDT site (http://download.eclipse.org/tools/pdt/updates/). Check the PDT site and the Europa Discovery Site and click Finish (I haven't done it for a while, so could be something has changed there). When you get the result, the Update manager might complain that PDT depends on something. In this case unfold the Europa Discovery Site result (by clicking the +, if you do not unfold it the next step might not work) and click the Select Required button. This should select the minimum you need. Let me know if you run into a trouble and I'll try to send you reproducible steps. And again, Eclipse is Java, so you need a decent machine. Iv -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] measuring script execution time
Daniel Brown wrote: By name alone (a recursive acronym), PHP stands for PHP Hypertext Preprocessor. That means, before the HTML or other output is sent to Apache to be served to the client, PHP has parsed, interpreted, processed, and returned all of the code, and then terminated the PHP process. That's interesting... As to why code execution appears to take longer on slower connections, my guess would be that it's a matter of coincidence. Hm... You could try doing something like this, if you don't already have something similar in place: [code example here] Yes, we have that... So you are 100% sure that even as Apache module, php execution ends when it ends, regardless of the fact if it takes longer to Apache to pass the result to the browser? Thanks, Iv -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Image manipulation on the fly
Hi there, I need to manipulate images on the fly. My goal is to make the image very bright, or to add a sepia effect. The problem is, that this takes a lot of computing power on 1024 pictures. About 2s on my server until the image is delivered. Does anybody know a high performing image funtion that would allow me to brighten up the picture on the fly, or any other effect similar to it? I am attaching the sepia function I am using. Thank you for any help or suggestion on how to solve that. Best regards, Merlin function image_effect_sepia($im){ $start_red = 2; //red scale at black $start_blue = 2.3; //blue scale at black $red_scale = ($start_red-1)/256;//red modifier as greyscale goes to white $blue_scale = ($start_blue - 1)/256;//ditto for blue //build a sepia lookup table $sepia = array(); for($x = 0;$x 256;$x++){ $red = intval($x * ($start_red - ($x * $red_scale))); if($red 255) $red = 255; $blue = intval($x / ($start_blue - ($x * $blue_scale))); $sepia[$x][0] = $red; $sepia[$x][1] = $blue; } # modify the image for($y = 0;$y imagesy($im);$y++){ for($x = 0;$x imagesx($im);$x++){ $pixel = imagecolorat($im, $x, $y); $red = ($pixel 0xFF) 16; $green = ($pixel 0x00FF00) 8; $blue = $pixel 0xFF; $alpha = $pixel 0x7F00; //get a greyscale value $gs = intval(($red * 0.3) + ($green * 0.59) + ($blue * 0.11)); $p = $alpha | $sepia[$gs][1] | ($gs 8) | ($sepia[$gs][0] 16); imagesetpixel ($im, $x, $y, $p); } } # return the moddifyed image return $im; } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHP ide?
Apart from that Eclipse is excellent and is improving. I used Eclipse a few years ago when I was pretending to be a java developer. Since then I've mainly been using Dreamweaver, which works well with Smarty, and the 30-odd sites I manage. How easy would it be for me to move my existing PHP sites into Eclipse, or do they need to be started off as projects? Cheers George -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Image manipulation on the fly
Hi Merlin, that is very fast for 1024 images, you will not get much more speed if you try doing anything smarter , though there are some image libraries that are faster than GD libs eg www.imagemagick.org On Nov 8, 2007, at 5:13 PM, Merlin wrote: Hi there, I need to manipulate images on the fly. My goal is to make the image very bright, or to add a sepia effect. The problem is, that this takes a lot of computing power on 1024 pictures. About 2s on my server until the image is delivered. Does anybody know a high performing image funtion that would allow me to brighten up the picture on the fly, or any other effect similar to it? I am attaching the sepia function I am using. Thank you for any help or suggestion on how to solve that. Best regards, Merlin function image_effect_sepia($im){ $start_red = 2; //red scale at black $start_blue = 2.3; //blue scale at black $red_scale = ($start_red-1)/256;//red modifier as greyscale goes to white $blue_scale = ($start_blue - 1)/256;//ditto for blue //build a sepia lookup table $sepia = array(); for($x = 0;$x 256;$x++){ $red = intval($x * ($start_red - ($x * $red_scale))); if($red 255) $red = 255; $blue = intval($x / ($start_blue - ($x * $blue_scale))); $sepia[$x][0] = $red; $sepia[$x][1] = $blue; } # modify the image for($y = 0;$y imagesy($im);$y++){ for($x = 0;$x imagesx($im);$x++){ $pixel = imagecolorat($im, $x, $y); $red = ($pixel 0xFF) 16; $green = ($pixel 0x00FF00) 8; $blue = $pixel 0xFF; $alpha = $pixel 0x7F00; //get a greyscale value $gs = intval(($red * 0.3) + ($green * 0.59) + ($blue * 0.11)); $p = $alpha | $sepia[$gs][1] | ($gs 8) | ($sepia[$gs] [0] 16); imagesetpixel ($im, $x, $y, $p); } } # return the moddifyed image return $im; } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Bojan Tesanovic http://www.classicio.com/
[PHP] Re: Image manipulation on the fly
Merlin escreveu: Hi there, I need to manipulate images on the fly. My goal is to make the image very bright, or to add a sepia effect. The problem is, that this takes a lot of computing power on 1024 pictures. About 2s on my server until the image is delivered. ... http://www.educar.pro.br/en/a/gdlib/ -- zerof http://www.educar.pro.br/ Apache - PHP - MySQL - Boolean Logics - Project Management -- Você deve, sempre, consultar uma segunda opinião! -- Deixe todos saberem se esta informação foi-lhe útil. -- You must hear, always, one second opinion! In all cases. -- Let the people know if this info was useful for you! -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Image manipulation on the fly
Merlin wrote: Hi there, I need to manipulate images on the fly. My goal is to make the image very bright, or to add a sepia effect. The problem is, that this takes a lot of computing power on 1024 pictures. About 2s on my server until the image is delivered. Yeah, you're doing CPU-intensive stuff in an interpreted language - it'll never be efficient unless you write it in C or similar. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP ide? OT
On Friday 09 November 2007 01:03:13 Børge Holen wrote: On Friday 09 November 2007 00:47:56 you wrote: On Fri, 2007-11-09 at 00:28 +0100, Børge Holen wrote: On Friday 09 November 2007 00:03:32 Instruct ICC wrote: Just wondering if anyone uses an IDE and if so what ones? Ta, H. Quanta +, of course. Other is to much work and not worth the effort... I really cannot see what so many of you guys see in eclipse, it's a mistake all together I use JOE of course. I really can't see what so many of you guys see in an IDE :B I'm waiting for Tersus4PHP (which is basically Eclipse http://www.tersus.com -- Go there with FF) umm yeah right, some create and some steal and brag bout em discoveries they've made to save the f* day. ;D Not mine. But if you do Java, that's your bogey. oh no, I wasn't hinting your way, I more or less commented on tersus beeing eclipse. It's like the ubunty hype, witch fails to state on the homepage: we're practically NOTHING without debian. Ubuntu = Debian + New Life you know, thats what I call BS. if something fails to do anything by itself.. it should've stayed @ home. Just look at patches and fixes. They only deliver when the debian maintainers 've a fix ready, and between 2 days to a week for the maintainers to get it into their own pool. The reason is simple... Hype! they sell a product witch claims to be more or less a lifestyle of simplicity like osx, however maintenance is a bitch who noone wants to ride, and the few who works on buntu rather sell the new stuff than fixing bogus, tiresome and lenghty faults on imported programs. Just for the sake of some rich dude that feels he need a momentum. momento that is I'm really getting it out now, cleaning the pipes you can say. Cheers, Rob. -- --- Børge Holen http://www.arivene.net -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP ide? OT
On Friday 09 November 2007 00:47:56 you wrote: On Fri, 2007-11-09 at 00:28 +0100, Børge Holen wrote: On Friday 09 November 2007 00:03:32 Instruct ICC wrote: Just wondering if anyone uses an IDE and if so what ones? Ta, H. Quanta +, of course. Other is to much work and not worth the effort... I really cannot see what so many of you guys see in eclipse, it's a mistake all together I use JOE of course. I really can't see what so many of you guys see in an IDE :B I'm waiting for Tersus4PHP (which is basically Eclipse http://www.tersus.com -- Go there with FF) umm yeah right, some create and some steal and brag bout em discoveries they've made to save the f* day. ;D Not mine. But if you do Java, that's your bogey. oh no, I wasn't hinting your way, I more or less commented on tersus beeing eclipse. It's like the ubunty hype, witch fails to state on the homepage: we're practically NOTHING without debian. Ubuntu = Debian + New Life you know, thats what I call BS. if something fails to do anything by itself.. it should've stayed @ home. Just look at patches and fixes. They only deliver when the debian maintainers 've a fix ready, and between 2 days to a week for the maintainers to get it into their own pool. The reason is simple... Hype! they sell a product witch claims to be more or less a lifestyle of simplicity like osx, however maintenance is a bitch who noone wants to ride, and the few who works on buntu rather sell the new stuff than fixing bogus, tiresome and lenghty faults on imported programs. Just for the sake of some rich dude that feels he need a momentum. I'm really getting it out now, cleaning the pipes you can say. Cheers, Rob. -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP ide?
On Fri, 2007-11-09 at 00:28 +0100, Børge Holen wrote: On Friday 09 November 2007 00:03:32 Instruct ICC wrote: Just wondering if anyone uses an IDE and if so what ones? Ta, H. Quanta +, of course. Other is to much work and not worth the effort... I really cannot see what so many of you guys see in eclipse, it's a mistake all together I use JOE of course. I really can't see what so many of you guys see in an IDE :B I'm waiting for Tersus4PHP (which is basically Eclipse http://www.tersus.com -- Go there with FF) umm yeah right, some create and some steal and brag bout em discoveries they've made to save the f* day. ;D Not mine. But if you do Java, that's your bogey. oh no, I wasn't hinting your way, I more or less commented on tersus beeing eclipse. It's like the ubunty hype, witch fails to state on the homepage: we're practically NOTHING without debian. Ubuntu = Debian + New Life Cheers, Rob. -- ... SwarmBuy.com - http://www.swarmbuy.com Leveraging the buying power of the masses! ... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP ide?
On Friday 09 November 2007 00:03:32 Instruct ICC wrote: Just wondering if anyone uses an IDE and if so what ones? Ta, H. Quanta +, of course. Other is to much work and not worth the effort... I really cannot see what so many of you guys see in eclipse, it's a mistake all together I use JOE of course. I really can't see what so many of you guys see in an IDE :B I'm waiting for Tersus4PHP (which is basically Eclipse http://www.tersus.com -- Go there with FF) umm yeah right, some create and some steal and brag bout em discoveries they've made to save the f* day. ;D Not mine. But if you do Java, that's your bogey. oh no, I wasn't hinting your way, I more or less commented on tersus beeing eclipse. It's like the ubunty hype, witch fails to state on the homepage: we're practically NOTHING without debian. _ Boo! Scare away worms, viruses and so much more! Try Windows Live OneCare! http://onecare.live.com/standard/en-us/purchase/trial.aspx?s_cid=wl_hotmail news -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHP ide?
Just wondering if anyone uses an IDE and if so what ones? Ta, H. Quanta +, of course. Other is to much work and not worth the effort... I really cannot see what so many of you guys see in eclipse, it's a mistake all together I use JOE of course. I really can't see what so many of you guys see in an IDE :B I'm waiting for Tersus4PHP (which is basically Eclipse http://www.tersus.com -- Go there with FF) umm yeah right, some create and some steal and brag bout em discoveries they've made to save the f* day. ;D Not mine. But if you do Java, that's your bogey. _ Boo! Scare away worms, viruses and so much more! Try Windows Live OneCare! http://onecare.live.com/standard/en-us/purchase/trial.aspx?s_cid=wl_hotmailnews
RE: [PHP] PHP ide?
On Thu, 2007-11-08 at 21:47 +0100, Børge Holen wrote: On Thursday 08 November 2007 11:02:07 Hulf wrote: Just wondering if anyone uses an IDE and if so what ones? Ta, H. Quanta +, of course. Other is to much work and not worth the effort... I really cannot see what so many of you guys see in eclipse, it's a mistake all together I use JOE of course. I really can't see what so many of you guys see in an IDE :B I'm waiting for Tersus4PHP (which is basically Eclipse http://www.tersus.com -- Go there with FF) _ Boo! Scare away worms, viruses and so much more! Try Windows Live OneCare! http://onecare.live.com/standard/en-us/purchase/trial.aspx?s_cid=wl_hotmailnews
[PHP] Recommend a wiki?
Hey, Anyone want to recommend a wiki package they use to document PHP code projects, libraries, etc, they are happy with? We've tried a couple but have not been thrilled with them. Thanks! Skip -- Skip Evans Big Sky Penguin, LLC 503 S Baldwin St, #1 Madison, WI 53703 608-250-2720 http://bigskypenguin.com =-=-=-=-=-=-=-=-=-= Check out PHPenguin, a lightweight and versatile PHP/MySQL, AJAX DHTML development framework. http://phpenguin.bigskypenguin.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP ide?
On Thursday 08 November 2007 11:02:07 Hulf wrote: Just wondering if anyone uses an IDE and if so what ones? Ta, H. Quanta +, of course. Other is to much work and not worth the effort... I really cannot see what so many of you guys see in eclipse, it's a mistake all together -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP ide? OT
On Fri, 2007-11-09 at 01:03 +0100, Børge Holen wrote: oh no, I wasn't hinting your way, I more or less commented on tersus beeing eclipse. It's like the ubunty hype, witch fails to state on the homepage: we're practically NOTHING without debian. Ubuntu = Debian + New Life you know, thats what I call BS. if something fails to do anything by itself.. it should've stayed @ home. Just look at patches and fixes. They only deliver when the debian maintainers 've a fix ready, and between 2 days to a week for the maintainers to get it into their own pool. The reason is simple... Hype! they sell a product witch claims to be more or less a lifestyle of simplicity like osx, however maintenance is a bitch who noone wants to ride, and the few who works on buntu rather sell the new stuff than fixing bogus, tiresome and lenghty faults on imported programs. Just for the sake of some rich dude that feels he need a momentum. I'm really getting it out now, cleaning the pipes you can say. Lol, Debian has a release cycle of 2 to 3 years. Ubuntu has a release cycle of 6 months. Personally I like the fast and furious releases when it's for my desktop. As for server needs... Debian is a better call for it's stabilty. Either way you comment It's like the ubunty hype, witch fails to state on the homepage: we're practically NOTHING without debian is a bit silly since Debian doesn't state we're practically nothing without the Linux kernel and GNU software. But I'll give you a taste of what both do say: Debian: Debian is a free operating system (OS) for your computer. An operating system is the set of basic programs and utilities that make your computer run. Debian uses the Linux kernel (the core of an operating system), but most of the basic OS tools come from the GNU project; hence the name GNU/Linux. Ubuntu: Ubuntu is a community developed, linux-based operating system that is perfect for laptops, desktops and servers. It contains all the applications you need - a web browser, presentation, document and spreadsheet software, instant messaging and much more. Now analysis of the blurbs reveals that Debian attributes the Linux Kernel and GNU whereas Ubuntu attributes the community at large. Ask yourself which statement is more inclusive :) Community can easily be taken to include the kernel community, the GNU community, the Debian community and any other groups contributing. I'm sure this is the spirit in which the word community is used. Whereas the Debian blurb is more restrictive in it's interpretation. But don't get me wrong, I'm in no way pointing fingers at Debian, they probably have more attributions elsehwere as does Ubuntu. I just think it's silly to argue that Ubuntu owes everything to Debian when Ubuntu, Debian, GNU, the Linux Kernel, etc are all standing upon the shoulders of giants. And those giants are the community of individuals and organizations that give their time and resources to make it happen. There's nothing stopping Debian from integrating things in Ubuntu, that's the spirit of open source and sharing. Cheers, Rob. -- ... SwarmBuy.com - http://www.swarmbuy.com Leveraging the buying power of the masses! ... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: [PHP-DB] Re: MySQL Identifying worst-performing codes
On Nov 9, 2007 1:18 AM, Colin Guthrie [EMAIL PROTECTED] wrote: Lasitha Alawatta wrote: There is a tool call idera (SQL diagnostic manager). Basically it is a performance monitoring and diagnostics tool. It has a feature; Identifying of worst-performing codes – Identifies performance bottlenecks such as the worst-performing stored procedures, long-running queries, most frequently run queries, SQL Statements and SQL batches http://www.idera.com/Products/SQLdm/Features.aspx I'm looking for a same like tool for MySQL. Is anyone have any ideas. I know this is OT for this list but. In addition to the slow query logging I mentioned before (which you seemed to appreciate :)), I've just stumbled across this: http://rackerhacker.com/mysqltuner/ http://jeremy.zawodny.com/mysql/mytop/ might come in handy too. -- Postgresql php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Recommend a wiki?
On Nov 9, 2007 8:02 AM, Skip Evans [EMAIL PROTECTED] wrote: Hey, Anyone want to recommend a wiki package they use to document PHP code projects, libraries, etc, they are happy with? I quite like Doku (http://wiki.splitbrain.org/wiki:dokuwiki). -- Postgresql php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP ide?
On Thu, 2007-11-08 at 21:47 +0100, Børge Holen wrote: On Thursday 08 November 2007 11:02:07 Hulf wrote: Just wondering if anyone uses an IDE and if so what ones? Ta, H. Quanta +, of course. Other is to much work and not worth the effort... I really cannot see what so many of you guys see in eclipse, it's a mistake all together I use JOE of course. I really can't see what so many of you guys see in an IDE :B Cheers, Rob. -- ... SwarmBuy.com - http://www.swarmbuy.com Leveraging the buying power of the masses! ... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Recommend a wiki?
My host, Dreamhost, has MediaWiki on their One Click Installs. I gave it a spin. Seems to work really well. Takes time to get used to the wiki way of doing things, but it's easy enough to learn. -TG - Original Message - From: Skip Evans [EMAIL PROTECTED] To: php-general@lists.php.net Date: Thu, 08 Nov 2007 16:02:25 -0500 Subject: [PHP] Recommend a wiki? Hey, Anyone want to recommend a wiki package they use to document PHP code projects, libraries, etc, they are happy with? We've tried a couple but have not been thrilled with them. Thanks! Skip -- Skip Evans Big Sky Penguin, LLC 503 S Baldwin St, #1 Madison, WI 53703 608-250-2720 http://bigskypenguin.com =-=-=-=-=-=-=-=-=-= Check out PHPenguin, a lightweight and versatile PHP/MySQL, AJAX DHTML development framework. http://phpenguin.bigskypenguin.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP ide?
On Thursday 08 November 2007 23:33:07 Instruct ICC wrote: On Thu, 2007-11-08 at 21:47 +0100, Børge Holen wrote: On Thursday 08 November 2007 11:02:07 Hulf wrote: Just wondering if anyone uses an IDE and if so what ones? Ta, H. Quanta +, of course. Other is to much work and not worth the effort... I really cannot see what so many of you guys see in eclipse, it's a mistake all together I use JOE of course. I really can't see what so many of you guys see in an IDE :B I'm waiting for Tersus4PHP (which is basically Eclipse http://www.tersus.com -- Go there with FF) umm yeah right, some create and some steal and brag bout em discoveries they've made to save the f* day. ;D _ Boo! Scare away worms, viruses and so much more! Try Windows Live OneCare! http://onecare.live.com/standard/en-us/purchase/trial.aspx?s_cid=wl_hotmail news -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Creating PDF files with more than one font?
Hi all, I want to create a pdf file with several fonts. Which tool is better, pdflib, ezpdf, ? Any suggestions? Regards, Shelley -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Recommend a wiki?
I have had 'Trac' thrust upon me by an employee/coworker and while it is not perfect (or even close to it), it does what it does, and it does it pretty well. http://trac.edgewall.org/ Some of my favorite things about it are: Wiki is pretty common tags (http://trac.edgewall.org/wiki/WikiFormatting) Subversion integration with diff, view source, and svn commit hooks (fixes, references, etc) You can integrate SQL 'reports' and the Wiki together. This rocks! Ticket tracking Roadmap graphs Plugins Can have different 'Tracs' setups on same server (I run two - biz and personal) On the negative side: It is a little tricky to install IMHO. It uses SQLlite (this is a pro and a con at the same time) doesn't seem to be updated with any frequency or regularity it's not even a 1.0 -- but that's all the rage with the kids it seems v0.11 is due any day now all written in python (yuk) Tickets are sort of cumbersome and they store the TEXTUAL names rather than relations. *sigh* (for example, if you change an employee, you have to search and replace the NAME, not just a 'user' relational link) .WTF. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHP ide?
Sorry for the crap below. I think it's MS Hotmail not playing nice with Safari. Eclipse and Netbeans (now it may look like I'm pushing Java) have offerings to allow us developers to build upon -- not just apps, but tools. I think that's a good thing. Don't reinvent the wheel is another good practice to build upon the work of others. Where would this forum be without the web? Where would the web be without the internet? Where would the internet be without Al Gore? ;-P Where would Debian be without Linus? Where would Linus be without GNU? Blah blah blah...electricity You see where I'm going. From: [EMAIL PROTECTED] To: php-general@lists.php.net Date: Fri, 9 Nov 2007 00:28:59 +0100 Subject: Re: [PHP] PHP ide? On Friday 09 November 2007 00:03:32 Instruct ICC wrote: Just wondering if anyone uses an IDE and if so what ones? Ta, H. Quanta +, of course. Other is to much work and not worth the effort... I really cannot see what so many of you guys see in eclipse, it's a mistake all together I use JOE of course. I really can't see what so many of you guys see in an IDE :B I'm waiting for Tersus4PHP (which is basically Eclipse http://www.tersus.com -- Go there with FF) umm yeah right, some create and some steal and brag bout em discoveries they've made to save the f* day. ;D Not mine. But if you do Java, that's your bogey. oh no, I wasn't hinting your way, I more or less commented on tersus beeing eclipse. It's like the ubunty hype, witch fails to state on the homepage: we're practically NOTHING without debian. _ Boo! Scare away worms, viruses and so much more! Try Windows Live OneCare! http://onecare.live.com/standard/en-us/purchase/trial.aspx?s_cid=wl_hotmailnews -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php _ Climb to the top of the charts! Play Star Shuffle: the word scramble challenge with star power. http://club.live.com/star_shuffle.aspx?icid=starshuffle_wlmailtextlink_oct -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHP ide?
On Thu, 2007-11-08 at 19:06 -0800, Instruct ICC wrote: Sorry for the crap below. I think it's MS Hotmail not playing nice with Safari. Eclipse and Netbeans (now it may look like I'm pushing Java) have offerings to allow us developers to build upon -- not just apps, but tools. I think that's a good thing. Don't reinvent the wheel is another good practice to build upon the work of others. Where would this forum be without the web? Where would the web be without the internet? Where would the internet be without Al Gore? ;-P Where would Debian be without Linus? Where would Linus be without GNU? Blah blah blah...electricity You see where I'm going. You forgot Adam and Eve ;) Cheers, Rob. -- ... SwarmBuy.com - http://www.swarmbuy.com Leveraging the buying power of the masses! ... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHP ide? Back On Topic
Do you pay for Ubuntu? Maybe a support package? Earlier this week I was pissed at Adobe Dreamweaver CS3 and their developers. And I began thinking that the major difference between open source software (free as in no $ outa my pocket) and retail closed source software is that maybe, just maybe, I have someone to complain to about their bugs in the retail case, and should just be thankful I have an ordered set of bits given to me for free in the open source case that sometimes gets the job done (not to mention sometimes getting support, community, knowledge, etc.). I tend to fall back to DW -- currently CS3, but I'm always looking around. It crashed on a paste attempt after a simple plain text copy. The DW 8 developers didn't know how to use threads (and threads were hyped in that version). They would run a thread to block my current requested action to do something locally by doing something remote (which I state again, I did not request. If you insist on doing the remote action which I didn't request, it's perfect for a thread, so please put it in the background.) I think I prefered DW MX 2004 over DW MX. 8 had a nice fold your source wherever you want feature though. I was interested in CS3 for the Spry, but it's weak. Back to basic hand coding with YUI, Scriptaculous, Xajax, etc. using DW basically as an editor and FTP client. Oh and Crimson Editor when I was on MS Windows for Perl files which DW couldn't deal with. I use Xcode on the Mac for Perl files now. I should also start using Xcode for PHP projects. My (perceived) problem is that I need a tool that helps me do my job well, but not so well that it looks like I can be replaced. I'm telling you that Tersus scares me [and I will not tell my employer about it LOL]. gi.tibco.com will be my next real evaluation for an IDE at work. At home I'll spend my time on Tersus. Except I'm into a project at home now that is easier if I use what I know. I just looked at Eclipse PDT (due to this topic and its posts). It looks like a text editor with possible project grouping of files. What do I gain by using it? Aptana is okay for Ajaxy javascript and html (and I think PHP). It's Eclipse again though LOL. I just don't like when I feel constrained and can't absolutely place a widget (like you can in MS Visual Basic). Netbeans Matisse (it has a new name now) can do it, but it deploys to Java. Delphi for PHP (retail product) looks good, but its MS Windows only. And although I can use a VM, I'd rather stay away from MS products. Sun Java Studio Creator can, but it's Java again. What do you want in an integrated development environment? I would expect Zend Studio to be _the_ PHP IDE, but it doesn't meet what I want in an IDE. I want to just model like Gentleware's Poseidon. Maybe some UML; maybe just Tersus. I want to refactor like Sun Java Studio Enterprise. I want to layout my GUI like VB, Matisse, and Apple's Interface Builder. I want to remote debug like Zend Studio. I have an extensive list I made in 2006 that would make this post even longer. So I know I'm missing some features. And I want it all for free as in beer and no $ out of my pocket (to use personally). Well, if neccessary, I'll also have the company pay for it and expect to be able to use it at home like the DW licenses. And I'll still be looking around for the next best thing. From: [EMAIL PROTECTED] To: php-general@lists.php.net Date: Fri, 9 Nov 2007 01:03:13 +0100 Subject: Re: [PHP] PHP ide? OT On Friday 09 November 2007 00:47:56 you wrote: On Fri, 2007-11-09 at 00:28 +0100, Børge Holen wrote: On Friday 09 November 2007 00:03:32 Instruct ICC wrote: Just wondering if anyone uses an IDE and if so what ones? Ta, H. Quanta +, of course. Other is to much work and not worth the effort... I really cannot see what so many of you guys see in eclipse, it's a mistake all together I use JOE of course. I really can't see what so many of you guys see in an IDE :B I'm waiting for Tersus4PHP (which is basically Eclipse http://www.tersus.com -- Go there with FF) umm yeah right, some create and some steal and brag bout em discoveries they've made to save the f* day. ;D Not mine. But if you do Java, that's your bogey. oh no, I wasn't hinting your way, I more or less commented on tersus beeing eclipse. It's like the ubunty hype, witch fails to state on the homepage: we're practically NOTHING without debian. Ubuntu = Debian + New Life you know, thats what I call BS. if something fails to do anything by itself.. it should've stayed @ home. Just look at patches and fixes. They only deliver when the debian maintainers 've a fix ready, and between 2 days to a week for the maintainers to get it into their own pool. The reason is simple... Hype! they sell a product witch claims to be more or less a lifestyle of simplicity like osx, however maintenance is a bitch who noone wants to ride, and the
RE: [PHP] PHP ide?
Blah blah blah...electricity You see where I'm going. You forgot Adam and Eve For those who believe You see where I'm going. For the others, you get vacuum fluctuations LOL. _ Boo! Scare away worms, viruses and so much more! Try Windows Live OneCare! http://onecare.live.com/standard/en-us/purchase/trial.aspx?s_cid=wl_hotmailnews -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP ide? Back On Topic
On Thursday 08 November 2007, Instruct ICC wrote: Do you pay for Ubuntu? Maybe a support package? Earlier this week I was pissed at Adobe Dreamweaver CS3 and their developers. And I began thinking that the major difference between open source software (free as in no $ outa my pocket) and retail closed source software is that maybe, just maybe, I have someone to complain to about their bugs in the retail case, and should just be thankful I have an ordered set of bits given to me for free in the open source case that sometimes gets the job done (not to mention sometimes getting support, community, knowledge, etc.). In my case, it's entirely different. Too many proprietary software companies are locking down their software too far for me to be comfortable with. DRM, product activation, region coding, forced-subscriptions... The more you tighten your grip, Tarkin, the more software users will slip through your fingers. There's still a very small number of non-free programs I use, but they're being replaced as quickly as I can with something open source and at least passable. I simply don't trust code that tries to fight me. *snip lots of talk about Dreamweaver et al* I just looked at Eclipse PDT (due to this topic and its posts). It looks like a text editor with possible project grouping of files. What do I gain by using it? Aptana is okay for Ajaxy javascript and html (and I think PHP). It's Eclipse again though LOL. I just don't like when I feel constrained and can't absolutely place a widget (like you can in MS Visual Basic). If you want to absolutely control layout, don't bother designing for the web. :-) Netbeans Matisse (it has a new name now) can do it, but it deploys to Java. Delphi for PHP (retail product) looks good, but its MS Windows only. And although I can use a VM, I'd rather stay away from MS products. Sun Java Studio Creator can, but it's Java again. What do you want in an integrated development environment? I would expect Zend Studio to be _the_ PHP IDE, but it doesn't meet what I want in an IDE. That's because Zend Studio (which is one of the few proprietary programs that I feel tempted to use personally, as I use it at work and love it) is a programmer's IDE. It's for people writing code. From the sound of it, you're looking for a designer's IDE, for doing things graphically. There's nothing wrong with that, mind you. Not in the least. But it's a different sort of task, and requires a different sort of tool. I want to just model like Gentleware's Poseidon. Maybe some UML; maybe just Tersus. I want to refactor like Sun Java Studio Enterprise. I want to layout my GUI like VB, Matisse, and Apple's Interface Builder. Then you don't want to be working in HTML. I want to remote debug like Zend Studio. That is easily my #1 favorite feature. :-) The only worthwhile context-sensitive code-assistance I've yet to find would be a close second. But I highly doubt you'll find a first-class PHP code IDE (Zend Studio) that is also a first-class HTML layout tool (Dreamweaver). -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 If nature has made any one thing less susceptible than all others of exclusive property, it is the action of the thinking power called an idea, which an individual may exclusively possess as long as he keeps it to himself; but the moment it is divulged, it forces itself into the possession of every one, and the receiver cannot dispossess himself of it. -- Thomas Jefferson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php