php-general Digest 31 Mar 2007 20:49:32 -0000 Issue 4708 Topics (messages 251824 through 251844):
Re: Saving css state in javascript and passing to php via form submit 251824 by: Tijnema ! 251829 by: Tijnema ! 251835 by: Jochem Maas Re: FastCGI + PHP5 251825 by: Mario Guenterberg 251827 by: Mario Guenterberg Re: Parsing database variables 251826 by: Jim Lucas 251836 by: Jake McHenry 251837 by: Jochem Maas 251842 by: Jochem Maas Re: tabbed navegation PHP 251828 by: Jim Lucas newbie question about debuging 251830 by: buFka 251831 by: Tijnema ! 251832 by: buFka 251833 by: Tijnema ! 251834 by: buFka Re: Alternative/Addition to using a CAPTCHA 251838 by: tedd 251839 by: tedd 251840 by: Tijnema ! 251841 by: tedd 251843 by: Tijnema ! Speed of apache/php4 on windows 251844 by: Don Don 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: php-general@lists.php.net ----------------------------------------------------------------------
--- Begin Message ---On 3/31/07, Jochem Maas <[EMAIL PROTECTED]> wrote:Tijnema ! wrote: > On 3/30/07, Jochem Maas <[EMAIL PROTECTED]> wrote: >> Tim wrote: >> > > > > > > ... >> personally I prefer JSON formatted data, for which there are even a >> couple of >> functions available in newer versions of php (otherwise you can find >> code on the net >> easily enough to handle JSON data creation/parsing): >> >> http://php.net/json > > I prefer not to do a lot of processing in Javascript, what i usually > do is send plain HTML and directly output it inside a <div> 'processing' JSON formatted data is a matter of running a single eval() line in javascript!?! just outputting HTML directly into a div is useful in many simple situations but it doesn't leave a whole lot of room for any real client sided application logic ...All that "client side application logic" can also be done in PHP. Where's the sense in learning to work with JSON, if it can be done in PHP too? PHP is a lot faster then javascript right? Tijnema> > Tijnema >> >> > >> > Regards, >> > >> > Tim >> > >> >> >
--- End Message ---
--- Begin Message ---On 3/31/07, Tijnema ! <[EMAIL PROTECTED]> wrote:On 3/31/07, Jochem Maas <[EMAIL PROTECTED]> wrote: > Tijnema ! wrote: > > On 3/30/07, Jochem Maas <[EMAIL PROTECTED]> wrote: > >> Tim wrote: > >> > > > > > > > > ... > > >> personally I prefer JSON formatted data, for which there are even a > >> couple of > >> functions available in newer versions of php (otherwise you can find > >> code on the net > >> easily enough to handle JSON data creation/parsing): > >> > >> http://php.net/json > > > > I prefer not to do a lot of processing in Javascript, what i usually > > do is send plain HTML and directly output it inside a <div> > > 'processing' JSON formatted data is a matter of running a single eval() > line in javascript!?! > > just outputting HTML directly into a div is useful in many simple > situations but it doesn't leave a whole lot of room for any real client > sided application logic ... All that "client side application logic" can also be done in PHP. Where's the sense in learning to work with JSON, if it can be done in PHP too? PHP is a lot faster then javascript right? TijnemaI've did a few test on this PC(AMD64 3200+), it's running EasyPHP (Apache+PHP+MySQL), and it shows me that PHP is about twice as fast then Javascript.(Tested using IE6, FF wasn't working because script took too long to execute, which generates messages on firefox, and which didn't let me finish the script) Tijnema
--- End Message ---
--- Begin Message ---Tijnema ! wrote: > On 3/31/07, Jochem Maas <[EMAIL PROTECTED]> wrote: >> Tijnema ! wrote: .. >> >> 'processing' JSON formatted data is a matter of running a single eval() >> line in javascript!?! >> >> just outputting HTML directly into a div is useful in many simple >> situations but it doesn't leave a whole lot of room for any real client >> sided application logic ... > > All that "client side application logic" can also be done in PHP. > Where's the sense in learning to work with JSON, if it can be done in > PHP too? PHP is a lot faster then javascript right? ok please shut up - you've completely missed the point. > > Tijnema >> >> > >> > Tijnema >> >> >> >> > >> >> > Regards, >> >> > >> >> > Tim >> >> > >> >> >> >> >> > >> >>
--- End Message ---
--- Begin Message ---On Fri, Mar 30, 2007 at 07:00:07PM -0400, Stevie wrote: > Hi all. > > anyone have any decent docs getting the config working? i guess not many > people using FastCGI w/PHP because it's seems so complicated to setup. > btw i have already installed the fastcgi libs and mod_fastcgi. what > should an apache configure line look like when you complie php/fastcgi > with it.. am i suppose to install apache first? some people say you have > to install apache first but if you install apache first how will it > locate the php libs? Hi.. Try this http://www.fastcgi.com/docs/faq.html#PHP Greetings Mario -- ----------------------------------------------------- | havelsoft.com - Ihr Service Partner für Open Source | | Tel: 033876-21 966 | | Notruf: 0173-277 33 60 | | http://www.havelsoft.com | | | | Inhaber: Mario Günterberg | | Mützlitzer Strasse 19 | | 14715 Märkisch Luch | -----------------------------------------------------signature.asc
Description: Digital signature
--- End Message ---
--- Begin Message ---On Fri, Mar 30, 2007 at 07:00:07PM -0400, Stevie wrote: or this: http://www.webhostingtalk.com/archive/index.php/t-509127-p-1.html Greetings Mario -- ----------------------------------------------------- | havelsoft.com - Ihr Service Partner für Open Source | | Tel: 033876-21 966 | | Notruf: 0173-277 33 60 | | http://www.havelsoft.com | | | | Inhaber: Mario Günterberg | | Mützlitzer Strasse 19 | | 14715 Märkisch Luch | -----------------------------------------------------signature.asc
Description: Digital signature
--- End Message ---
--- Begin Message ---Jake McHenry wrote:Ok, this is working good, except for one problem... I have variable $pay_rate and $pay_rate_bap ... It finds $pay_rate first and then it never finds $pay_rate_bap because it changes it to say.. 21_bap... Anyone know of anything else that may work? I have been messing around with eval, and I havn't gotten it to work even once yet... Always comes back with error at line 5 of eval'd.... And line 5 of the paragraph is a blank line... Line 4is plain text... Not even a variable until line 12...Fine, just switch the order you are adding them to the two different arrays. instead of this: $find[] = '$pay_rate'; $find[] = '$pay_rate_bap'; $replace[] = $pay_rate; $replace[] = $pay_rate_bap; do this $find[] = '$pay_rate_bap'; $find[] = '$pay_rate'; $replace[] = $pay_rate_bap; $replace[] = $pay_rate; find the longer one firstI guess next I will play around with preg_replace, but I'm thinking I will have the same problem as I did with str_replace... As long as the variable names have any kind of similar names.... Correct? I can resolve this I suppose, but the data is already in place and trying to work around it... Thanks, Jake-----Original Message-----From: Jim Lucas [mailto:[EMAIL PROTECTED] Sent: Friday, March 30, 2007 7:32 PMTo: Jake McHenry Cc: php-general@lists.php.net Subject: Re: [PHP] Parsing database variables Jake McHenry wrote:Hi everyone,I have been searching and trying to do this for the pasthour withoutsuccess yet.... I have a database table with this in it: <p>$name<p> Period Ending Date: $ppe<p> Etc.......And in my script, these variables exist and have values. Isthere a way forme to get the output from mysql_query to use the currentscript variables inIf I read the manual correct about how to setup the input values for str_replace()place of the same variable name within the database output? Thanks, Jakeyou should be able to do the following.This is completely untested, since I have now system like yours. But here is goes...#setup the entries that you want to find. $find[] = '$name'; $find[] = '$ppe'; #setup the values to be replaced. #Mind you to keep the indexes the in sync with $find... $replace[] = $name; $replace[] = $ppe; echo '<pre>'; while ( $row = mysql_fetch_assoc($resultHandle) ) { $row = str_replace($find, $replace, $row); // do something with $row. Display it maybe... var_dump($row); } echo '</pre>';Basically replace $find[0] with $replace[0] in any of the values of the return $row then replace the previous $row values with the newly modified values... Then go to the next index of $find[1] and $replace[1] and do the same thing until you are out of indexes.But this is a much better way of doing this than using eval(). eval is an evil little function!-- Enjoy, Jim LucasDifferent eyes see different things. Different hearts beat on different strings. But there are times for you and me when all such things agree.- Rush -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- No virus found in this incoming message. Checked by AVG Free Edition.Version: 7.5.446 / Virus Database: 268.18.23/740 - Release Date: 3/30/2007 1:15 PM
--- End Message ---
--- Begin Message ---Yep, that's what I did last night right after I sent the email out... All is working good now.. THANKS! Jake > -----Original Message----- > From: Jim Lucas [mailto:[EMAIL PROTECTED] > Sent: Saturday, March 31, 2007 4:15 AM > To: Jake McHenry > Cc: php-general@lists.php.net > Subject: Re: [PHP] Parsing database variables > > Jake McHenry wrote: > > Ok, this is working good, except for one problem... I have variable > > $pay_rate and $pay_rate_bap ... It finds $pay_rate first > and then it never > > finds $pay_rate_bap because it changes it to say.. > 21_bap... Anyone know of > > anything else that may work? I have been messing around > with eval, and I > > havn't gotten it to work even once yet... Always comes back > with error at > > line 5 of eval'd.... And line 5 of the paragraph is a blank > line... Line 4 > > is plain text... Not even a variable until line 12... > > Fine, just switch the order you are adding them to the two > different arrays. > > instead of this: > $find[] = '$pay_rate'; > $find[] = '$pay_rate_bap'; > $replace[] = $pay_rate; > $replace[] = $pay_rate_bap; > > do this > $find[] = '$pay_rate_bap'; > $find[] = '$pay_rate'; > $replace[] = $pay_rate_bap; > $replace[] = $pay_rate; > > find the longer one first > > > > > I guess next I will play around with preg_replace, but I'm > thinking I will > > have the same problem as I did with str_replace... As long > as the variable > > names have any kind of similar names.... Correct? I can > resolve this I > > suppose, but the data is already in place and trying to > work around it... > > > > Thanks, > > Jake > > > > > > > >> -----Original Message----- > >> From: Jim Lucas [mailto:[EMAIL PROTECTED] > >> Sent: Friday, March 30, 2007 7:32 PM > >> To: Jake McHenry > >> Cc: php-general@lists.php.net > >> Subject: Re: [PHP] Parsing database variables > >> > >> Jake McHenry wrote: > >>> Hi everyone, > >>> > >>> I have been searching and trying to do this for the past > >> hour without > >>> success yet.... > >>> > >>> > >>> > >>> I have a database table with this in it: > >>> > >>> > >>> <p>$name<p> > >>> Period Ending Date: $ppe<p> > >>> Etc....... > >>> > >>> > >>> And in my script, these variables exist and have values. Is > >> there a way for > >>> me to get the output from mysql_query to use the current > >> script variables in > >>> place of the same variable name within the database output? > >>> > >>> > >>> > >>> Thanks, > >>> Jake > >>> > >> If I read the manual correct about how to setup the input > >> values for str_replace() > >> you should be able to do the following. > >> > >> This is completely untested, since I have now system like > >> yours. But here is goes... > >> > >> > >> #setup the entries that you want to find. > >> $find[] = '$name'; > >> $find[] = '$ppe'; > >> > >> #setup the values to be replaced. > >> #Mind you to keep the indexes the in sync with $find... > >> $replace[] = $name; > >> $replace[] = $ppe; > >> > >> echo '<pre>'; > >> > >> while ( $row = mysql_fetch_assoc($resultHandle) ) { > >> > >> $row = str_replace($find, $replace, $row); > >> > >> // do something with $row. Display it maybe... > >> > >> var_dump($row); > >> > >> } > >> > >> echo '</pre>'; > >> > >> Basically replace $find[0] with $replace[0] in any of the > >> values of the return $row then replace the > >> previous $row values with the newly modified values... > >> Then go to the next index of $find[1] and > >> $replace[1] and do the same thing until you are out of indexes. > >> > >> But this is a much better way of doing this than using > >> eval(). eval is an evil little function! > >> > >> > >> > >> -- > >> Enjoy, > >> > >> Jim Lucas > >> > >> Different eyes see different things. Different hearts beat on > >> different strings. But there are times > >> for you and me when all such things agree. > >> > >> - Rush > >> > >> -- > >> PHP General Mailing List (http://www.php.net/) > >> To unsubscribe, visit: http://www.php.net/unsub.php > >> > >> -- > >> No virus found in this incoming message. > >> Checked by AVG Free Edition. > >> Version: 7.5.446 / Virus Database: 268.18.23/740 - Release > >> Date: 3/30/2007 1:15 PM > >> > >> > > > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.446 / Virus Database: 268.18.23/740 - Release > Date: 3/30/2007 1:15 PM > > -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.23/740 - Release Date: 3/30/2007 1:15 PM
--- End Message ---
--- Begin Message ---Myron Turner wrote: > Jake McHenry wrote: ... >> >> >> > I would suggest writing a function in which the parameters are passed in > as references. In the function itself have set a variables using the > heredoc syntax, which incorporates the variables, and then return the > heredoc variable. Coming from Perl, my impulse is to use a reference for > the return value, but the manual says not to, that PHP is smart enough > to know how to optimize itself. Perhaps someone can tell us whether the > same is true for the parameters. The manual is mum on that one. same is true for the parameters. don't use references unless you need to - namely when you expect to actually change the passed in value. > > > function set_func(&$var1, &$var2 . . . &var17) { > $return_var = RETURNVAR > "this is $var1 and $var2. . . ."; > RETURNVAR ; > > return $return_var; > > } > > _____________________ > Myron Turner > http://www.room535.org > http://www.bstatzero.org > http://www.mturner.org/XML_PullParser/ >
--- End Message ---
--- Begin Message ---Chris Boget wrote: >> But this is a much better way of doing this than using eval(). eval > is an evil little function! > > eval() isn't so bad if you have absolute, total and complete control > over the data you are pulling or using. it remains bad if there is another way to do the same thing. eval() is the matchete you use as the last resort when your backed into the corner by a group of hungry zombies ... unless you have a zombie problem keep your machete holstered ;-) having absolute, total and complete control over the input to eval() is the entry price for even thinking of using it. ok this is slight scare mongering but the fact remains: eval() is capable of causing you serious damage and it's also comparitively slow! > But once someone else becomes > involved (particularly the front end user), you are probably better off > looking at alternatives. > > thnx, > Chris >
--- End Message ---
--- Begin Message ---Dwayne Heronimo wrote:Dear All,I have made a tabbed navegation with CSS. And if you set class="active" to one of the tabs, it will then be highlighted. So I thought to make this dymamic with PHP. Using the $_GET variable I can get the page name above with something like. $page_name = $_GET['page'] ;so I can tell the class when to be active to what page.Should I use the isset function for this? I am very new to PHP but here is my try, but of course its not working:<?php if (isset ($_GET['page'])) { $page_name = $_GET['page'] ; if ($page_name = "default") { $flg_page_default=1; } if ($page_name = "about") { $flg_page_about=1; } } ?><a <?php if(!isset($flg_page_default)) echo 'class="active"'; else echo ''; ?> href="index.php?page=default"><span>home</span></a> <a <?php if(!isset($flg_page_about)) echo 'class="active"'; else echo ''; ?> href="index.php?page=default"><span>about</span></a>Of should I stick to just static html :(DwayneClose, but this is probably how you should do it $links = array(); url display $links['default'] = "Home"; $links['about'] = "About"; etc... foreach($links AS $url => $text) { $class = ''; if ( isset($_GET['page']) && $_GET['page'] == $url ) { $class = ' class="active"'; } echo "<a href='index.php?page={$url}'{$class}><span>{$text}</span></a>\n"; } This will allow you to change one piece of code, instead of twenty lines later on. Use a little of the DRY principle. Jim Lucas
--- End Message ---
--- Begin Message ---Hello, I would like to install pOWL (http://aksw.informatik.uni-leipzig.de/Projects/Powl) with ORACLE. I obey the installation steps. I log in: http://www.picvalley.net/u/26/25123_331.PNG and then then i get this error message http://www.picvalley.net/u/26/25124_335.PNG How can I find out what causes the mistake? There are several php files, however, I am not so fit in php and cannot find the error. If I use pOWL with MySQL instead of ORACLE, everything works perfectly. I think, i must change something here: http://www.nabble.com/file/7585/include.php include.php . Thanks in advance! -- View this message in context: http://www.nabble.com/newbie-question-about-debuging-tf3496894.html#a9767223 Sent from the PHP - General mailing list archive at Nabble.com.
--- End Message ---
--- Begin Message ---On 3/31/07, buFka <[EMAIL PROTECTED]> wrote:Hello, I would like to install pOWL (http://aksw.informatik.uni-leipzig.de/Projects/Powl) with ORACLE. I obey the installation steps. I log in: http://www.picvalley.net/u/26/25123_331.PNG and then then i get this error message http://www.picvalley.net/u/26/25124_335.PNG How can I find out what causes the mistake? There are several php files, however, I am not so fit in php and cannot find the error. If I use pOWL with MySQL instead of ORACLE, everything works perfectly. I think, i must change something here: http://www.nabble.com/file/7585/include.php include.php . Thanks in advance!Something went wrong with installation i think. You should check that the database testdb exists. Tijnema-- View this message in context: http://www.nabble.com/newbie-question-about-debuging-tf3496894.html#a9767223 Sent from the PHP - General mailing list archive at Nabble.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---The Database exists: [EMAIL PROTECTED]:~$ sqlplus SYSTEM/[EMAIL PROTECTED] SQL*Plus: Release 10.2.0.1.0 - Production on Sa Mrz 31 15:44:09 2007 Copyright (c) 1982, 2005, Oracle. All rights reserved. Verbunden mit: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production With the Partitioning, OLAP and Data Mining options SQL> -- View this message in context: http://www.nabble.com/newbie-question-about-debuging-tf3496894.html#a9767365 Sent from the PHP - General mailing list archive at Nabble.com.
--- End Message ---
--- Begin Message ---On 3/31/07, buFka <[EMAIL PROTECTED]> wrote:The Database exists: [EMAIL PROTECTED]:~$ sqlplus SYSTEM/[EMAIL PROTECTED] SQL*Plus: Release 10.2.0.1.0 - Production on Sa Mrz 31 15:44:09 2007 Copyright (c) 1982, 2005, Oracle. All rights reserved. Verbunden mit: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production With the Partitioning, OLAP and Data Mining options SQL>Hmm, in your image i see Database 'testdb' not found. Followed by a link. What happens if you click on that link? I don't know anything about Oracle/pOWL, but it looks like the script can't connect to your Oracle database. Did you check if the database settings are correct? Like I said i don't know anything about Oracly, i use MySQL, but it requires a host, username, password too i think, so you should check if these are correct. Tijnema-- View this message in context: http://www.nabble.com/newbie-question-about-debuging-tf3496894.html#a9767365 Sent from the PHP - General mailing list archive at Nabble.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---Tijnema ! wrote: > > Hmm, in your image i see Database 'testdb' not found. Followed by a > link. What happens if you click on that link? > I don't know anything about Oracle/pOWL, but it looks like the script > can't connect to your Oracle database. Did you check if the database > settings are correct? > Like I said i don't know anything about Oracly, i use MySQL, but it > requires a host, username, password too i think, so you should check > if these are correct. > > Tijnema > The click on the link is the next step - this create some tables (but for this i must change the querys first). pOWL is using the ADODB, and i have made small script, witch make connection via ADODB and execute select query (see this: http://www.nabble.com/file/7587/adodb_test_oracle_connection.php adodb_test_oracle_connection.php ). This works perfectly....the result: Array ( [0] => 1 [MODELID] => 1 [1] => http://powl.sf.net/SysOnt/0.1# [MODELURI] => http://powl.sf.net/SysOnt/0.1# [2] => [BASEURI] => ) Have someone another idea, how to solve the problem? -- View this message in context: http://www.nabble.com/newbie-question-about-debuging-tf3496894.html#a9767564 Sent from the PHP - General mailing list archive at Nabble.com.
--- End Message ---
--- Begin Message ---At 4:04 PM -0400 3/30/07, Jake McHenry wrote:> Tijnema & John:The above link I've already done a long time ago. But check out my dot CAPTCHA here:> http://sperling.com/examples/p-captcha > Maybe I'm going blind.. But I don't see a circle on that page anywhere? Everywhere I click it fails...... JakeJake:As I stated, not all browsers support alpha channel images. Unfortunately, IE 5.5 and IE 6 fails while everything else (including IE 5.2 and IE 7) passes -- just another example of why people should use a different browser than IE 5.5 and IE 6. In fact, just consider using *anything* but IE (IMO).See below screen-shots: http://www.browsercam.com/public.aspx?proj_id=336219Everything that has a blue dot works AND everything except for IE 5.5 and IE 6 has a blue dot.Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com
--- End Message ---
--- Begin Message ---At 3:48 PM -0400 3/30/07, Jason Pruim wrote:On Mar 30, 2007, at 3:17 PM, tedd wrote:At 12:54 PM -0400 3/30/07, <[EMAIL PROTECTED]> wrote:Maybe I'm missing something.. if the intent is to have 'hidden' fields that a user would end up submitting but a bot wouldn't.. that wouldn't work very well. A bot could easily see the hidden fields and submit them along with whatever other data they were sending.I know that I can provide hidden text that bots can see but users can't -- as demonstrated by this:http://www.webbytedd.com/examples/offleft/As such, I wonder if that may provide a twist to this. However, it would only exist for sighted users.I think that what Steve suggest may have some merit. I need to think of some examples.Cheers, teddWould you be able to name a text field something really common like "e-mail", place it off screen and then check to see if a certain value is in there and if not don't submit the form? I remember someone somewhere doing that.Such as prefill the that text field with [EMAIL PROTECTED] and if it has anything else reject the form?Yeah, that would be the idea -- I was just trying to fathom some really clever way to use the technique -- forgive me I'm strange that way. My brain works are different.Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com
--- End Message ---
--- Begin Message ---On 3/31/07, tedd <[EMAIL PROTECTED]> wrote:At 4:04 PM -0400 3/30/07, Jake McHenry wrote: > > Tijnema & John: >> >> The above link I've already done a long time ago. But check out my >> dot CAPTCHA here: >> > > http://sperling.com/examples/p-captcha > > > >Maybe I'm going blind.. But I don't see a circle on that page anywhere? >Everywhere I click it fails...... >Jake Jake: As I stated, not all browsers support alpha channel images. Unfortunately, IE 5.5 and IE 6 fails while everything else (including IE 5.2 and IE 7) passes -- just another example of why people should use a different browser than IE 5.5 and IE 6. In fact, just consider using *anything* but IE (IMO). See below screen-shots: http://www.browsercam.com/public.aspx?proj_id=336219 Everything that has a blue dot works AND everything except for IE 5.5 and IE 6 has a blue dot. Cheers, teddI remember that from the Invison Board version 2.1.0 and above. They also use Alpha PNG images. But they have some kind of javascript function that fixes that, atleast that's what the comments say. I don't know how it works but you might want to take a look at it. AFAIK it is only using Javascript, so you would be able to see full source code :) Tijnema-- ------- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---At 3:33 PM -0400 3/30/07, <[EMAIL PROTECTED]> wrote:Ah ok.. that makes a bit more sense. Even still.. anyone who's going out of their way to program a bot to defeat your specific CAPTCHA mechanism will probably notice the failure in testing.Unless you made a failure behave similar to a success but put them in a situation where ultimately they still can't post messages or access anything useful.I remember reading about either 3D Studio or Maya (one of the 3D modeling programs) and their copy protection method. They, at one point, made I guess an obvious segment of code for the software pirates to 'crack' that appeared to have totally deprotected the program. It turns out that it only sort of de-protected it. They put in multiple mechanisms that were more subtle. The one I'm thinking of apparently made it so that after 250 right mouse clicks, it would render everything in lower and lower qualities of rendering. Or not render at all. OR menus stopped working or something. But it was something that wasn't obvious at all until people really started using the pirated copy for a while.Tricky bastards. I love it. hah -TGYeah, me too!In one of my applications, I put in a self-check for size. If anyone change a single byte, the program crashed.In the old Apple days, I knew one developer who wrote a program that when it thought is was being altered initialized it's floppy -- it bit harsh I think. :-)I wrote one that when altered would continue working, but gave the wrong results. I was amused when people would contact me and complain about their pirated copy not working properly.I wrote one, didn't mass release it, but if it detected alteration, it would send me an email telling me where it was and other specifics about the user. I thought that was kind of neat, but it violated privacy issues I wasn't comfortable with. However, I could have init their hard-drive if I had wanted. I wonder what affect that technique would have on pirating software.Oh well, enough off-topic chatter. Thanks for all the review and comments. Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com
--- End Message ---
--- Begin Message ---On 3/31/07, tedd <[EMAIL PROTECTED]> wrote:At 3:33 PM -0400 3/30/07, <[EMAIL PROTECTED]> wrote: >Ah ok.. that makes a bit more sense. Even still.. anyone who's >going out of their way to program a bot to defeat your specific >CAPTCHA mechanism will probably notice the failure in testing. > >Unless you made a failure behave similar to a success but put them >in a situation where ultimately they still can't post messages or >access anything useful. > >I remember reading about either 3D Studio or Maya (one of the 3D >modeling programs) and their copy protection method. They, at one >point, made I guess an obvious segment of code for the software >pirates to 'crack' that appeared to have totally deprotected the >program. It turns out that it only sort of de-protected it. They >put in multiple mechanisms that were more subtle. The one I'm >thinking of apparently made it so that after 250 right mouse clicks, >it would render everything in lower and lower qualities of >rendering. Or not render at all. OR menus stopped working or >something. But it was something that wasn't obvious at all until >people really started using the pirated copy for a while. > >Tricky bastards. I love it. hah > >-TG Yeah, me too! In one of my applications, I put in a self-check for size. If anyone change a single byte, the program crashed.This kind of protection is still used these days. A cracker could atleast use programs like SoftICE to temporaly change bytes. And then he only needs to find where that protection exists and break that too :)In the old Apple days, I knew one developer who wrote a program that when it thought is was being altered initialized it's floppy -- it bit harsh I think. :-) I wrote one that when altered would continue working, but gave the wrong results. I was amused when people would contact me and complain about their pirated copy not working properly.That's a good one :)I wrote one, didn't mass release it, but if it detected alteration, it would send me an email telling me where it was and other specifics about the user. I thought that was kind of neat, but it violated privacy issues I wasn't comfortable with. However, I could have init their hard-drive if I had wanted. I wonder what affect that technique would have on pirating software. Oh well, enough off-topic chatter. Thanks for all the review and comments. Cheers, teddYeah, privacy issues.... They suck.. LOL. You can only try to create programs that are unbreakable, not that send you information about the cracker. The nicest thing to do is just making applications that format ur HDD when changing a byte :) If a hacker just does a first try, then clean up the HDD :) Tijnema-- ------- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---Hi all, i've got apache/php4 running on windows xp with good hardware configuration etc. However, the speed of execution of php pages is really slow. When testing on my local development machine it takes a few more seconds executing php files than it should normally take. How can I up the speed of execution ? is this possible ? On my hosting server its really really fast ! and I will like the same settings for my local machine as it has a very good hardware configuration and memory. cheers --------------------------------- Expecting? Get great news right away with email Auto-Check. Try the Yahoo! Mail Beta.
--- End Message ---