Re: [PHP] TURBOPY cloud framework + IDE beta available NOW
In times of testability and several design patters, the use of static calls is really outdated. I understand that you can read and write the invocations of the methods much faster, but you should think more to the future on that point. I am not sure if that is true for TURBOPY. It has been "organically grown" over the years and I had no scenario where I needed instances. The benefit of more compact code is worth it for this scenario I think. The nature of a server request is still very procedural. The/my problem with eval() comes from a security point of view. Yes that is true, if you enable the templating language it is not safe anymore. If you take care of that it is ok, but you have to know about it. Your points are interesting and they let me explain what TURBOPY is not: Just a framework like the ones you are used to. Its concepts differ a lot from other frameworks, like the idea of "accessibiliy over convention" for example. With TURBOPY I try to bring back more creativity in the developing process, allowing you to reach goals in less time. - Johannes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: Re: [PHP] TURBOPY cloud framework + IDE beta available NOW
From what I see most of your concepts are not up to date of how you would do things now. This starts with simple "leave brackets on if else single line conditions" which is from my point of view a no go and ends with using static calls instead of instances. Thank you for your feedback. Especially the static calls improve code quality a lot in my opinion. But it is different to common standards, I am aware of that. And why PHP 5.2? Why not? With some tweaks it would work on PHP4 but for the sake of security it uses some filter_var methods that are 5.2 specific. And I am curious if you have developed a real templating engine or if you are going by eval()? From what I see, it looks a bit like that. Yes, that is the default. But hardly any impact on performance. For Websites with highest traffic it would be simple to write out the controller code instead of storeing it in the db only, other ways would be stream sockets that allow "including" of db pages. But these are only my points. I browsed the pages, had no insight on the code. But I like your concept on the in place editing, that looks pretty cool and handy. Thank you. Maybe you want to download and install it some time, would be glad to get more feedback from you :) - Johannes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] TURBOPY cloud framework + IDE beta available NOW
Hi developers, I would like to invite you to test a public beta of the hybrid nosql PHP framework with IDE that has been developed by me within the last 10 years (don't be afraid, most time it was rebuilt from scratch to make it more simple). It contains a lot of new concepts that probably change the way of developing and editing websites. It is build for high performance websites as well as small business websites and includes a mongodb dbal layer for very simple database access. Other features include high modularity, lazy loading, a small codebase, an AJAX interface, a "templating language" that is so simple that it is probably not ok to call it a language. Other features include: - CMS features like frontend editing with drag drop sorting - Filebrowser for quick access of files on your server (including drag & drop uploading) - Built in handling of sessions & users and groups - Content/controller separation - WYCIWYG, "what you code is what you get" - Controller inheritance, simple to change - Diff tools and optional plugins like object history, advanced register and login - Convinient debugging tools - Many more - you name it! You can directly download the beta including testsite here: http://turbopy.com/beta If you like watching videos you can check out the channel on youtube: http://www.youtube.com/user/TheTurbopy The mailinglist on google is here: https://groups.google.com/group/turbopy An interview about the history and ideas of TURBOPY: http://turbopy.com/blog/interview_jr Currently TURBOPY is not under the GPL and only open source in the sense that you can use it for free if you use it privately on a non-public server. The legal issues are still to be worked on and will be updated in the future. If you consider buying a license there is an offer especially for this list, using the coupon code CMLISTC you save 20% and another 20% of the price will be donated to Marijn Haverbeke because TURBOPY would be only half as appealing without his wonderful code editor. If you are interested in joining this project in some way just drop me a line. Enjoy! - Johannes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Strange key behaviour
Hey there! i have a routine like this: $myarray['1'] = 'aösldfjkasöldkjf'; foreach($myarray as $key => $value) { echo $key{0}; // outputs nothing echo substr($key,0); // outputs 1 like intended } Any ideas why this is like that? I am using php 4.3.11-dev - Johannes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Fuzzy search with DBs
Hey there, i am a db/php novice and trying to implement a fuzzy search. i found some functions with examples like metaphone and levenstein but i dont know how i can use them efficiently with mysql. do i have to select all fields before comparison in any case? are there articles with detailed description on this? would be glad about every help. - Johannes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Get Current config of PHP
Hello! This is a newbie question ;) - i want to upgrade php and apache and therefore i have to configure them - unfortunatly i forgot the configuration of the current installation - how can i get the ./configure prefixes of my current php/apache version? - Johannes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Current config of PHP
Hello! This is a newbie question ;) - i want to upgrade php and apache and therefore i have to configure them - unfortunatly i forgot the configuration of the current installation - how can i get the ./configure prefixes of my current php/apache version? - Johannes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP5 bloats the code
Hi Marek, actually this behaviour is "too critical" since there are many cases where "compliant code" is not as well as much more simpler code. reminds me on the w3c standards that are so high that some things simply dont comply if you want them ;) just a warning would be way better. - Johannes So you have to check the type of the passed variable anyway, even in php4. You won't be affected by the new behavior in php5. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP5 bloats the code
Hi Curt, thank you for pointing this one out. Who are the "php internals" and how could i contact them? This issue was rejected as bug recently. - Johannes * Thus wrote Marek Kilimajer ([EMAIL PROTECTED]): I just installed php5 (finaly :-)) and it does not throw any error nor warning. I think what you see is Notice, so the behavior did not change. Here is the offending situation: /* E_NOTICE: undefined index, returns false */ unset($a); echo is_array($a['foo']['asdf']); /* returns false */ $a = 'asdf'; echo isset($a['foo']['asdf']); /* returns false */ $a = array('foo' => 'asdf'); echo is_array($a['foo']['asdf']); /* E_ERROR Invalid offset */ $a = 'asdf'; echo is_array($a['foo']['asdf']); The last one is the biggie, the solution of course is to have something like: if (isset($a['foo']['asdf']) && is_array($a['foo']['asdf']) { This is a big BC issue, IMO, and might be worth asking internals why the E_ERROR is given vs. a E_WARNING. Curt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP5 bloats the code
Hi there, i don´t know if this is the right place to ask but since there are a lot of cracks around i thought i throw this in here. actually i am using typo3 (www.typo3.org) a full-blown, extendable cm-framework that is based on php. so here is the problem: typo3 very often uses a syntax like this: is_array($TCA['pages']['columns']['title']) but this will spawn an error in PHP5 that says, "$TCA['pages']" is not an array. The solution would be if ( is_array($TCA['pages']) && is_array($TCA['pages']['columns']) && is_array($TCA['pages']['columns']['title']) ) actually that is really ugly code and would be hardly acceptable. i dunno who to ask, but if that is a verified issue and this behaviour goes in the final php5 we had a lot of trouble - so who can i ask to make it work "the old fashioned" way as well? - Johannes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: Hi
ok you made me visit your ugly site now - so whats your problem? you can submit variables via flash to any script you want, so this should be a good start. > -Original Message- > From: Paul Chvostek [mailto:[EMAIL PROTECTED] > Sent: Dienstag, 22. Juli 2003 22:48 > To: [EMAIL PROTECTED] > Subject: [PHP] Re: Hi > > > On Tue, Jul 22, 2003 at 11:42:04AM +0300, Rausch Alexandru wrote: > > From: "Rausch Alexandru" <[EMAIL PROTECTED]> > > Subject: Hi > > > > MYSQL problems problems. > > I want to install an user login aplicationa on my site, but it is > > intarely in FLASH. ( www.poker.club66.ro ). What do u think? > > I think this doesn't sound like a problem with "Hi", as your > subject line indicated. > > -- > Paul Chvostek > <[EMAIL PROTECTED]> > it.canada > http://www.it.ca/ > Free PHP web hosting! >http://www.it.ca/web/ > > > -- > 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
[PHP] too stupid to install php on windows
Hi there! I had a perfectly working installation of apache 1.23 and php4.12 - unfortunatly i got heavy problems with the mail() function that didnt seem to like my subjects and froms. anyway - i just de-installed apache and php and reinstalled the most recent versions (apache 1.27 and php 4.32) - i followed the very same way like always while installing: but i fail. i can´t start apache with php, actually i do not get any meaningful errormessage (the only thing is NET HELPMSG 3534) Anybody an idea what could be wrong? Or how i can just test the php.ini configuration on windows with errormessage output? thanks in advance, - Johannes Mit freundlichen Grüssen |*| |*| [Johannes Reichardt] |*| |*| Webaddict +49172/3895500 |*| gramba.net:typorized.com |*| -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] mail() without subjects and froms
Hi there! I have a weired problem with a 4.12 php version on win2k. When i mail more then one email i often have the problem that the mail reaches their recipient but the subject and from does not work properly, instead this is on top of the email. but strangely sometimes it just works normal. does someone know the reason for such "empty subject" mails? - Johannes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] preg_match ;)
Hi there! Sorry for annoying you with stupid questions, but actually i am fooling around with this problem since hours: 3:foo · what i need is (what else?) foo. i followed the http referer example on php.net but i simply failed - i never get foo if i try to match it somewhat like this: preg_match("/(:)?([^&]+)/i", $value, $matches); i tried many variations of this version, but all failed someone who could enligthen me? Mit freundlichen Grüssen |*| |*| [Johannes Reichardt] |*| |*| Webaddict +49172/3895500 |*| gramba.net:typorized.com |*| -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Read website with
Hi All! I have a small problem with reading a file via crontab. For better performance i read a dynamic php page every hour, so the actual page is static with better performance. Actually there is some
[PHP] matrix functions
hi list, i have a question regarding a class for matrix modifications so i dont have to re-invent the wheel ;) i would like to do things like this: matrix with 5*5 colums/rows x x x x x 0 0 0 0 0 x x x x x x x x x x x x x x x x x x x x x x x x x 0 0 0 0 0 x x x x x x x x x x maybe that is incredebly stupid and simple but my brain doesnt tell me anything right now - how can i transform colums/rows quickly and efficient? Any help appreciated! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] finding colors in gif files
sorry- last mail i forgot the gif file, here it is though: also the complete code i got so far: "; $filetext1 = implode("",(@file("vcd_1.gif"))); // $filetext1 = bin2hex($filetext1); $newfiletext1 = ""; for ($i = 0; $i < strlen($filetext1); $i++) { $currchar = substr($filetext1, $i, 8); $newfiletext1 .= $currchar .= " "; } echo $newfiletext1; echo ""; ?> begin 666 vcd_1.gif M1TE&.#EAZ `@`*(``/\S9OW]_5)24C(R,O___P```"'Y! $```0` M+ #H`" ```/G&+#<_C#*2:N]..O->P^$XHUD:9YHJB[!0(1K+,]T';?N M*]I\[_\R7$X'+!J/2(AP2$PZGU#5DMF,6J_8R91:S7J_SRVW"RZ;;>(Q^SM[_ N;O#%+W Q[_" MQ,L-QLC/M+CY."QZ["^Y^?>Z8;F[]?Q 4\GKT]>CXC*'N^^#U:[0)(+ $`#L` ` end -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] findin colors in gif files
hi everybody, i am new to this list & php and i have a big question that i would love to be answered ;) i have a small gif file that has a part in #ff3366 colored - so what i thought is to do a mean hack for my website: instead of opening all images in a graphicseditor and change the color manually i could look up for that color (ff3366) in the image files and replace it with something else, unfortunatly i got stuck with this approach pretty soon. here is my problem: if i open the gif file in php (its attached to this mail) and convert it to hex: $filetext1 = implode("",(@file("vcd_1.gif"))); $filetext1 = bin2hex($filetext1); } like this i get a string that looks like hex - but i cant find my ff3366 anymore, did i miss something really obvious? if i look up the gif file with an hexeditor (i use textpad) i can see it - with php its not findable any ideas? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php