[PHP] Help preg_replace with Non-English character
Hi all, Just a question, I want to replace some Chinese characters with preg_replace(). But it does not work. The string is $str = 'test你好http://www.phparch.cn/ 完成'; The ideal output is : testa href=http://www.phparch.cn;你好/a 完成 Any suggestion will be greatly appreciated. -- Regards, Shelley
Re: [PHP] Help preg_replace with Non-English character
Just a question, I want to replace some Chinese characters with preg_replace(). But it does not work. The string is $str = 'test你好http://www.phparch.cn/ 完成'; The ideal output is : testa href=http://www.phparch.cn;你好/a 完成 Any suggestion will be greatly appreciated. Have a look to see if the mb_* functions will help. http://uk3.php.net/manual/en/book.mbstring.php -- Richard Heyes In Cambridge? Employ me http://www.phpguru.org/cv ++ | Access SSH with a Windows mapped drive | |http://www.phpguru.org/sftpdrive| ++ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Help preg_replace with Non-English character
Yes, I have checked and tried that. And I have successfully tested it with GB2312 encoding, but when turned to UTF8. It does not work any more. The server is using UTF8 encoding, and also the database. Weird. On Thu, May 22, 2008 at 4:51 PM, Richard Heyes [EMAIL PROTECTED] wrote: Just a question, I want to replace some Chinese characters with preg_replace(). But it does not work. The string is $str = 'test你好http://www.phparch.cn/ 完成'; The ideal output is : testa href=http://www.phparch.cn;你好/a 完成 Any suggestion will be greatly appreciated. Have a look to see if the mb_* functions will help. http://uk3.php.net/manual/en/book.mbstring.php -- Richard Heyes In Cambridge? Employ me http://www.phpguru.org/cv ++ | Access SSH with a Windows mapped drive | |http://www.phpguru.org/sftpdrive| ++ -- Regards, Shelley
Re: [PHP] Re: Re: A Little Something.
2008/5/21 Stut [EMAIL PROTECTED]: I was going to ignore this, but I'm in a confrontational mood today, so please accept my apologies for the noise. On 21 May 2008, at 14:08, Michelle Konzack wrote: Am 2008-05-12 15:40:54, schrieb Stut: Note: I am working for the french Ministry of Defense. Ooh, give 'em a peanut. I live and work in the UK and every site I work on that uses Google Analytics has nothing specific about Google Analytics in the privacy policy. They all talk about use of cookies, IP addresses and server logs and I've never had any complaints. http://www.google.com/analytics/tos.html 7. PRIVACY . You will not (and will not allow any third party to) use the Service to track or collect personally identifiable information of Internet users, nor will You (or will You allow any third party to) associate any data gathered from Your website(s) (or such third parties' website(s)) with any personally identifying information from any source as part of Your use (or such third parties' use) of the Service. You will have and abide by an appropriate privacy policy and will comply with all applicable laws relating to the collection of information from visitors to Your websites. You must post a privacy policy and that policy must provide notice of your use of a cookie that collects anonymous traffic data. So yeah, you don't need to specifically mention google-analytics. And you're definitely not allowed to link it to any personally identifying information. On pain of Lawyers. But, at risk of labouring the point, I don't have an issue if you decide to worry about inconsequential things like websites gathering anonymous usage data so they can improve the experience for you. I couldn't care less if you disable Javascript to prevent evil popup ads. I don't really give a damn if you decide to use lynx as the ultimate surfer condom. Really, I've no problem with sites gathering anonymous usage data. I only get a little more wary when it's a third-party collecting the data as I have no relationship with them. On the other hand, it really does depend who the third party is: I'm not that bothered about Google. But I would block anything and everything from Phorm or the like without a second thought. My issue is purely and simply that if someone decides to remove half the code for something they should not feel they have the right to complain to the developers when they see errors. You wouldn't expect a car to work if you removed all the cylinders, would you? But I'd love to see the persons face when you take it back and complain. I don't think that's an accurate metaphor. In this case they were allowing all the code from the originating web server to run, but were blocking an independent third party server. It's more like expecting a car to work when you remove the trailer. Sometimes I wonder why I bother. Pure contrariness? That's certainly my major motivation. -robin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Re: A Little Something.
On 22 May 2008, at 09:56, Robin Vickery wrote: 2008/5/21 Stut [EMAIL PROTECTED]: I was going to ignore this, but I'm in a confrontational mood today, so please accept my apologies for the noise. On 21 May 2008, at 14:08, Michelle Konzack wrote: Am 2008-05-12 15:40:54, schrieb Stut: Note: I am working for the french Ministry of Defense. Ooh, give 'em a peanut. I live and work in the UK and every site I work on that uses Google Analytics has nothing specific about Google Analytics in the privacy policy. They all talk about use of cookies, IP addresses and server logs and I've never had any complaints. http://www.google.com/analytics/tos.html 7. PRIVACY . You will not (and will not allow any third party to) use the Service to track or collect personally identifiable information of Internet users, nor will You (or will You allow any third party to) associate any data gathered from Your website(s) (or such third parties' website(s)) with any personally identifying information from any source as part of Your use (or such third parties' use) of the Service. You will have and abide by an appropriate privacy policy and will comply with all applicable laws relating to the collection of information from visitors to Your websites. You must post a privacy policy and that policy must provide notice of your use of a cookie that collects anonymous traffic data. So yeah, you don't need to specifically mention google-analytics. And you're definitely not allowed to link it to any personally identifying information. On pain of Lawyers. I think that's what I said, but thanks for the clarification. But, at risk of labouring the point, I don't have an issue if you decide to worry about inconsequential things like websites gathering anonymous usage data so they can improve the experience for you. I couldn't care less if you disable Javascript to prevent evil popup ads. I don't really give a damn if you decide to use lynx as the ultimate surfer condom. Really, I've no problem with sites gathering anonymous usage data. I only get a little more wary when it's a third-party collecting the data as I have no relationship with them. I can kinda understand that, especially since Google could, if they wanted to, combine data from your travels around different sites to build a better picture of you, but since it's all anonymous the only use it would have is to provide better targeted advertising. I personally have no issue with that since if I have to see ads on the sites I visit I'd rather they were relevant to me. On the other hand, it really does depend who the third party is: I'm not that bothered about Google. But I would block anything and everything from Phorm or the like without a second thought. Indeed, but Phorm is a completely different beast. In fact it's likely to be impossible to block content coming from Phorm since their system can potentially inject arbitrary code into pages before they reach you - you may not even know it's coming from them unless you read a sites privacy policy. The only way to block it will be to change to an ISP that doesn't use them. I wouldn't worry about it though, if it's going to be an opt-in service (which it looks like it will) I don't see enough people doing that to make it financially viable. My issue is purely and simply that if someone decides to remove half the code for something they should not feel they have the right to complain to the developers when they see errors. You wouldn't expect a car to work if you removed all the cylinders, would you? But I'd love to see the persons face when you take it back and complain. I don't think that's an accurate metaphor. In this case they were allowing all the code from the originating web server to run, but were blocking an independent third party server. It's more like expecting a car to work when you remove the trailer. Not really since the car doesn't need the trailer to function properly. Maybe a better metaphor would be removing the aerial and then complaining that the radio reception is very poor. Sometimes I wonder why I bother. Pure contrariness? That's certainly my major motivation. I do like disagreeing with people, especially when I think/know I'm right. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Unzipping file through PHP
Hi, I am writing a code to upload multiple files on the server using PHP. I zipped the folder containing these files, uploaded the zipped file through my application on the server. Now,I am trying to unzip the .zip file using PHP. I tried it in different ways using: 1. `unzip filename.zip` 2. system (unzip filename.zip) 3. system (`unzip filename.zip`) but it doesnt seem to work. However, the same commands work from command line. anybody has any ideas what might be wrong here? Thanks, Suamya. - DISCLAIMER:- The information in this e-mail is confidential, and is intended solely for the addressee or addressees. If you are not the intended recipient, please delete the mail and kindly notify the sender of misdelivery. Any unauthorised use or disclosure of the contents of the mail is not permitted and may be unlawful. - Scanned By MailScanner -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Unzipping file through PHP
try using something like http://www.theserverpages.com/php/manual/en/ref.zip.php http://www.theserverpages.com/php/manual/en/ref.zip.php On Thu, May 22, 2008 at 9:56 AM, Suamya Srivastava [EMAIL PROTECTED] wrote: Hi, I am writing a code to upload multiple files on the server using PHP. I zipped the folder containing these files, uploaded the zipped file through my application on the server. Now,I am trying to unzip the .zip file using PHP. I tried it in different ways using: 1. `unzip filename.zip` 2. system (unzip filename.zip) 3. system (`unzip filename.zip`) but it doesnt seem to work. However, the same commands work from command line. anybody has any ideas what might be wrong here? Thanks, Suamya. - DISCLAIMER:- The information in this e-mail is confidential, and is intended solely for the addressee or addressees. If you are not the intended recipient, please delete the mail and kindly notify the sender of misdelivery. Any unauthorised use or disclosure of the contents of the mail is not permitted and may be unlawful. - Scanned By MailScanner -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Los sabios buscan la sabiduría; los necios creen haberla encontrado. Gabriel Sosa -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Unzipping file through PHP
Suamya Srivastava [EMAIL PROTECTED] wrote: Hi, I am writing a code to upload multiple files on the server using PHP. I zipped the folder containing these files, uploaded the zipped file through my application on the server. Now,I am trying to unzip the .zip file using PHP. I tried it in different ways using: 1. `unzip filename.zip` 2. system (unzip filename.zip) 3. system (`unzip filename.zip`) but it doesnt seem to work. However, the same commands work from command line. anybody has any ideas what might be wrong here? Thanks, Suamya. RTFM is a GREAT place to start. http://us3.php.net/zip What errors show up in your logs? Wolf -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Unzipping file through PHP
Last night I was looking around at frameworks and such and I found ez Components which has an 'archive' module that assists in handling Zip files: http://ezcomponents.org/docs/api/latest/introduction_Archive.html - Original Message - From: Gabriel Sosa [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: php-general@lists.php.net Date: Thu, 22 May 2008 10:46:01 -0300 Subject: Re: [PHP] Unzipping file through PHP try using something like http://www.theserverpages.com/php/manual/en/ref.zip.php http://www.theserverpages.com/php/manual/en/ref.zip.php On Thu, May 22, 2008 at 9:56 AM, Suamya Srivastava [EMAIL PROTECTED] wrote: Hi, I am writing a code to upload multiple files on the server using PHP. I zipped the folder containing these files, uploaded the zipped file through my application on the server. Now,I am trying to unzip the .zip file using PHP. I tried it in different ways using: 1. `unzip filename.zip` 2. system (unzip filename.zip) 3. system (`unzip filename.zip`) but it doesnt seem to work. However, the same commands work from command line. anybody has any ideas what might be wrong here? Thanks, Suamya. - DISCLAIMER:- The information in this e-mail is confidential, and is intended solely for the addressee or addressees. If you are not the intended recipient, please delete the mail and kindly notify the sender of misdelivery. Any unauthorised use or disclosure of the contents of the mail is not permitted and may be unlawful. - Scanned By MailScanner -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Los sabios buscan la sabiduría; los necios creen haberla encontrado. Gabriel Sosa -- 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] Re: Re: A Little Something.
I'm sure Stut (and others) have said enough, but I can no longer resist... On May 21, 2008, at 8:08 AM, Michelle Konzack wrote: Am 2008-05-12 15:40:54, schrieb Stut: CSS, but I may not be understanding what you mean by blunt. Javascript can be written such that it eats CPU and/or memory but this is of no benefit to anyone so unless you're running on a prehistoric machine I can't see that being an issue. And it's worth noting that even if a script starts hammering the machine most browsers these days will notice that, suspend it and offer to kill it. About yu prehistoric machine : My Devel-Station is a AMD Phenom Quad 9800, running Debian GNU/ Linux Unstable, Testing and Stable in Xen-DomU and I know a couple of Websites where Mozilla/Iceape locks up to one minute, consuming 100% of CPU- Time and then showing a Message Box, that a Script is consuming very much esources and if I continue, my Computer would not more responsive... WTF? It is causing the error since it has blocked loading the external file but not the call to the code it contains. This, to me at least, seems half-arsed. The error only exists on the page if you deny it something that it needs to run correctly. IMHO the assumption that if the call So forcing peoples to do things they do not want to do? By holding a gun to your head? I do not know, what this urchinTacker() does, but since it is named Tracker, I asume it is a tool, which collect infos about Websiteusers. A thing I do not like since it is violation of my privacy. This statement appears to be one of ignorance. You claim that because you don't know what it does and it has a certain name, it MUST be a violation of your privacy. A violation of your privacy would be gaining *personally-identifiable* information w/o your knowledge - G.A. can't tell a web admin my first, middle, last names and DOB from my browser. Do some reading about the product and then make an educated statement. to the urchinTracker function can run then so can the script tag to pull in that code is pretty reasonable. In fact I make it all the time in the code I write and I think the same would go for 99.999% of developers using Javascript. Ehm you mean, that I am one of those 0.001%? Hmmm, I do not know a singel JavaScript Developer here in Strasbourg who use it... Either you're really popular to know lots of JS developers, or this is just another statement based on little or no facts. Asking the 3 guys next to you doesn't accurately summarize a city. Urchin Tracker is a simple(!) analytics package and poses no danger to you or your computer. In fact I would suggest it's anti-productive to block it since it prevents the sites you visit from using the data it provides to modify their site to make the experience better for you. So collecting privacy infos about me? -- No thanks! Again, no personally-identifiable information being sent... That error is caused by your use of selective Javascript-blocking technology, and while I work very hard to ensure the sites I develop work as well as possible without Javascript I think it's unreasonable to expect them to work with selective blocking. Selective because urchinTacker() tracker is collecting infos about me which I do not want to give out! -- Privacy violation! If you use such tools, you have to warn users of your website, that you are collecting data otherwise you could be run into trouble... These statements are what really made me want to respond. From this statement, you are basically saying that a majority of the sites out there would have to have disclaimers. I know! Why don't we just require web developers to reveal the secrets!(TM) of their sites and give the source code so we can verify that they're not trying to find the name of my cat when I was 8? I mean, come on. [W]arn users of your website?? Don't get me wrong - I am all about security, but this appears to be taking it a bit far. As a web surfer, one should be aware of the potential risks and prepare reasonably!(TM) However, I must question if you should even be on the web... how do you sleep at night with all those javascript functions and cookies just parading around the 'net?! Well, some of his pages do but that's complicating the issue. As far as I can tell the only bit of Javascript common to all Tedd's pages is the Google Analytics code which is not required for you to use the site, it just enhances the ability for Tedd to analyse how people are using it. Ahh, -- urchinTracker() is from Google. :-) And if used without informing users, it is definitivly a privacy violation. At least in most EU countries like Germany and France. I must say that I can't speak for other countries (non-US), but I don't see how this is a privacy violation - no personally-identifiable information is being transmitted. If you consider an IP or web browser as
Re: [PHP] Re: Re: A Little Something.
2008/5/22 Philip Thompson [EMAIL PROTECTED]: I'm sure Stut (and others) have said enough, but I can no longer resist... On May 21, 2008, at 8:08 AM, Michelle Konzack wrote: Am 2008-05-12 15:40:54, schrieb Stut: I do not know, what this urchinTacker() does, but since it is named Tracker, I asume it is a tool, which collect infos about Websiteusers. A thing I do not like since it is violation of my privacy. This statement appears to be one of ignorance. You claim that because you don't know what it does and it has a certain name, it MUST be a violation of your privacy. A violation of your privacy would be gaining *personally-identifiable* information w/o your knowledge - G.A. can't tell a web admin my first, middle, last names and DOB from my browser. Do some reading about the product and then make an educated statement. Playing devils advocate here: Firstly, you're mischaracterising her statement. She says she's assuming it's a tool which collects information about users (which is true) and she says she doesn't like such tools because she sees them as a violation of her privacy (which is a matter of her opinion). She does not say that it must be a violation of her privacy *because* she doesn't know what it does and has a certain name. Secondly, personally identifiable information doesn't have to be as obvious as firstname/lastname/dob as Brian Clifton (European Head of Web Analytics at Google) wrote in his book 'Advanced Web Metrics with Google Analytics': Note: On the internet, IP addresses are classed as personally identifiable information. And Google Analytics is most definitely getting IP addresses, even if they say they discard them when they no longer need them. If you use such tools, you have to warn users of your website, that you are collecting data otherwise you could be run into trouble... These statements are what really made me want to respond. From this statement, you are basically saying that a majority of the sites out there would have to have disclaimers. Well, actually section 7 of their terms of service with google analytics requires them to have notices. I know! Why don't we just require web developers to reveal the secrets!(TM) of their sites and give the source code so we can verify that they're not trying to find the name of my cat when I was 8? I mean, come on. [W]arn users of your website?? Don't get me wrong - I am all about security, but this appears to be taking it a bit far. As a web surfer, one should be aware of the potential risks and prepare reasonably!(TM) However, I must question if you should even be on the web... how do you sleep at night with all those javascript functions and cookies just parading around the 'net?! Have you had a little too much coffee today? -robin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] php notify
I'm hopeful this is a solved problem, and I'm just not searching for the right thing yet. I'd like a way to send a 'notify' to php processes that want it, without the use of a moderator or helper process. One way I tried is to use Daniel Rozsnyo multicast patch and have each php process join a multicast group and wait. Interestingly, this works when invoked on the CLI, but not from a browser. Daniel suspects there may be some interference from apache. The basic problem is sort of akin to a chat program. Multiple clients join and sit waiting for new messages. Using ajax, I open an http connection to a php script on the server, which then waits for a certain amount of time for a message. If none arrives, I respond as such and a new connection is created. Otherwise, I send the message back to the client. I need some way to notify the waiting processes that there's a new message so they can spring into action. Thanks! Marty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Re: Re: A Little Something.
Am 2008-05-21 19:17:09, schrieb Stut: Violation of privacy? Let's start with the fact that it's not collecting anything you don't put out there when you use your browser. Let's add that none of that info can personally identify you without consulting your ISP who are highly unlikely to disclose who you are without a court order. Not realy right, because the Music-Industry try to enforce a International Law which they permit to contact directly the ISP's for informations about customers... So, this law can be misused in any case... And as I have already sayed, if they get ONE time infos about me, I am tracable worldwide with my Laptop which let me run into heavy trouble. Again, if you want to block it I have no problem with that. I think you're overly cautious but it's entirely your choice. There are since years threads in many Forums arround the world about Google and privacy violations. Google Analytics (which is where the Urchin code comes from) does gather a tiny bit more information than normal server logs but none of it is personally identifiable or in any way a security risk. But just This is not right... Once they HAVE infos about your ISP, you are tracable and Google hast the posibilities and resources to do it. Then don't use sites that use it from those countries. Or, better yet, turn your computer off and go play outside. Really don't know where you're getting that from, but if it's even remotely true nobody would be using Google Analytics. I'm betting you're confusing Analytics with something else Google do, but for the life of me I can't think what. Sorry but it was already in the Press that the NSA is using Google and they have confimed it officialy!!! Ooh, give 'em a peanut. I live and work in the UK and every site I work on that uses Google Analytics has nothing specific about Google Analytics in the privacy policy. They all talk about use of cookies, IP addresses and server logs and I've never had any complaints. Because most users care about there priacy? Thanks, Greetings and nice Day Michelle Konzack Systemadministrator 24V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # Michelle Konzack Apt. 917 ICQ #328449886 +49/177/935194750, rue de Soultz MSN LinuxMichi +33/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com) signature.pgp Description: Digital signature
[PHP] Re: Re: A Little Something.
Am 2008-05-21 13:28:08, schrieb tedd: Well then, all web sites are a privacy violation by your definition. Not realy, since IF YOU are collecting data of customers/visiort you are responsable for this stuff and for ANY misuse you can be sued. Web sites come standard with server logs and other data gatherers like Webalizer, which none notify the user that their access is being recorded. Yes but by European Law you have to destruct the data after 3 month. Otherwise your customers must aggree with you, e.g. signing a form on your website. However, all data collected in such logs can not be tracked back to a specific user, and thus they are not really a privacy violation. Ehm? I can anylyze logs and more by cookies... Google is settings cookies in mass which then can be used by Google to identify the user. If I say that 43 percent of my web site's visitors come from Europe, and 30 percent use IE6 then it's not a privacy violation to collect this data because this data is not tied to a known specific user. I was talking about your urchinTracker() which out of your control. Google is advertising this service to INOCENT Website-Owner which then put it into there webpages and then Google give you some infos about your visitors back and you are happy... But you do not know, WHAT Google does with the other infos collected... You are helping Google to violate privacy. This is much like a traffic counter at on a roadway. Just because you drove over the counter does not constitute a violation of your privacy. urchinTracker() does much more Thanks, Greetings and nice Day Michelle Konzack Systemadministrator 24V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # Michelle Konzack Apt. 917 ICQ #328449886 +49/177/935194750, rue de Soultz MSN LinuxMichi +33/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com) signature.pgp Description: Digital signature
[PHP] PHP + MySQL transactions
Hi all. I'm currently working on a project that's in its beta stage. Due to time restraints, we were unable to build in transactions from the beginning. Well, we're getting to the point where we can now put in transactions. Basically, I'm curious to find out your opinion on the best way to accomplish this. Currently, my thoughts for doing this are: ?php function someFunctionThatNeedsTransactions () { $this-db-begin(); // Start transaction $this-db-query(SELECT...); // Run my queries here $this-db-query(UPDATE...); // Do some PHP logic here $this-db-query(SELECT...); // Run more queries $this-db-query(INSERT...); $this-db-commit(); // Commit transaction } ? If there was a failure in one of the queries, that would be caught in the database class ('db' instance) and ?php $this-rollback(); ? would be called. Note that all the tables are InnoDB and the above code/functionality works. Ideally, I would have liked to use stored procedures, but that decision was not mine. So are there any complications I'm potentially missing? Any other thoughts on the direction to go at this point? Thanks in advance, ~Philip PS... No, I didn't have too much coffee this morning, Robin. ;) Personally, most of my web applications do not have to factor 13.7 billion years of space drift in to the calculations, so PHP's rand function has been great for me... ~S. Johnson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Re: Re: A Little Something.
You clearly think you're right, which is your right, but I'm not sensing any openness to alternative points of view so this will be my last comment on this pointless conversation. It's just not fun anymore. On 22 May 2008, at 15:10, Michelle Konzack wrote: Am 2008-05-21 19:17:09, schrieb Stut: Violation of privacy? Let's start with the fact that it's not collecting anything you don't put out there when you use your browser. Let's add that none of that info can personally identify you without consulting your ISP who are highly unlikely to disclose who you are without a court order. Not realy right, because the Music-Industry try to enforce a International Law which they permit to contact directly the ISP's for informations about customers... try. Yup, that's right *you* said try. They need a court order to get that information (which is what I said) and they always will. If they can show that they have reasonable cause to believe someone has broken the law then a court order will be forthcoming. I don't have a problem with that, and if you have nothing to hide neither should you. [IMHO] So, this law can be misused in any case... And as I have already sayed, if they get ONE time infos about me, I am tracable worldwide with my Laptop which let me run into heavy trouble. I can't really reach any conclusion from that statement other than that you're breaking the law. You might want to stop doing that - you might be able to relax. Again, if you want to block it I have no problem with that. I think you're overly cautious but it's entirely your choice. There are since years threads in many Forums arround the world about Google and privacy violations. Don't really see the relevance of that comment and my comment. Are you actually reading what I'm typing? Block it if you want, I don't give a rats behind, but (yes, back to the actual point I originally made) don't block half of it and then complain that it's causing errors. Google Analytics (which is where the Urchin code comes from) does gather a tiny bit more information than normal server logs but none of it is personally identifiable or in any way a security risk. But just This is not right... Once they HAVE infos about your ISP, you are tracable and Google hast the posibilities and resources to do it. You are *anonymously* traceable. They still need a court order to connect that information to you personally, and they don't hand those out without just cause. Again, I suggest you stop breaking the law so you can relax a bit. Then don't use sites that use it from those countries. Or, better yet, turn your computer off and go play outside. Really don't know where you're getting that from, but if it's even remotely true nobody would be using Google Analytics. I'm betting you're confusing Analytics with something else Google do, but for the life of me I can't think what. Sorry but it was already in the Press that the NSA is using Google and they have confimed it officialy!!! Reference please? *How* are they using it? Are they using it like any other individual or organisation would use it, or do they have an illegal arrangement with Google to get access to personal information? Just looking for more than your word, that's all. Ooh, give 'em a peanut. I live and work in the UK and every site I work on that uses Google Analytics has nothing specific about Google Analytics in the privacy policy. They all talk about use of cookies, IP addresses and server logs and I've never had any complaints. Because most users care about there priacy? I assume you mean most users don't care. If people cared about their privacy they'd do everything with cash which they'd stash under their mattress, wouldn't use loyalty cards and certainly wouldn't go near the Internet. Total privacy is overrated and extremely inconvenient. I'd end with get over it but I just don't see it happening so let's go with live with it. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] who can tell me HI5.COM how to get contact list
HI5.COM, Enter hotmail address and password can get your contact list, who can tell me how to ? that skill is SDK ? API ? or Script ? i know fsockopen can make it, but it like hacker, not propriety... if Window Live Contacts API, this need end-user agree, but HI5.COM not like it, no need agree, or HI5.COM really using hacker skill ? who can give me idea ? i want make that like HI5, detail and sample please Thank You Very Much !! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] who can tell me HI5.COM how to get contact list
On 22 May 2008, at 20:43, LKSunny wrote: HI5.COM, Enter hotmail address and password can get your contact list, who can tell me how to ? that skill is SDK ? API ? or Script ? i know fsockopen can make it, but it like hacker, not propriety... if Window Live Contacts API, this need end-user agree, but HI5.COM not like it, no need agree, or HI5.COM really using hacker skill ? who can give me idea ? i want make that like HI5, detail and sample please This has absolutely nothing to do with PHP!! One quick Google later and I have the answer. Why couldn't you have done that?? http://msdn.microsoft.com/en-us/library/bb463989.aspx -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Please connect with me :)
Hi, I looked for you on Reunion.com, but you weren't there. Please connect with me so we can keep in touch. -Etienne Do You Know Etienne? YES - Connect with Etienne, and see who's searching for you Learn more: http://www.reunion.com/efinet Reunion.com - Life Changes. Keep in Touch.� You have received this e-mail because a Reunion.com Member sent an invitation to this e-mail address. For assistance, please refer to our FAQ or Contact Us. http://help.reunion.com/selfhelplid=2 Our Address: 2118 Wilshire Blvd., Box 1008, Santa Monica, CA 90403-5784
[PHP] page called from form action=post not appearing on screen
I have a form statement with: form name=memjoin action=http://www.caamuseum.org/mem_test_review.php method=post when I click the submit button, the web address appears in the firefox address box, but no page appears on the screen. and when I try to view the page source code from the firefox view drop-down menu there is no source code. the page is in the correct directory and I can open the source in IE or in dreamweaver. I don't receive any error message or missing input file message. I'm at a lost as to what might be the matter. does anyone have an approach to solving this problem or know what the cause might be? thanks - Milton -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] page called from form action=post not appearing on screen
milt wrote: I have a form statement with: form name=memjoin action=http://www.caamuseum.org/mem_test_review.php method=post when I click the submit button, the web address appears in the firefox address box, but no page appears on the screen. and when I try to view the page source code from the firefox view drop-down menu there is no source code. the page is in the correct directory and I can open the source in IE or in dreamweaver. I don't receive any error message or missing input file message. I'm at a lost as to what might be the matter. does anyone have an approach to solving this problem or know what the cause might be? thanks - Milton Check the php.ini on the server that hosts caamesuem.org (is it your server?) and see if display_errors is enabled. You generally shouldn't enable this on a production server, but it could be very helpful right now. If it's disabled, it might be suppressing a helpful error message. Remember to restart your web server if you change the php.ini. Regards, Carlton Whitehead -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP + MySQL transactions
Philip Thompson wrote: Hi all. I'm currently working on a project that's in its beta stage. Due to time restraints, we were unable to build in transactions from the beginning. Well, we're getting to the point where we can now put in transactions. Basically, I'm curious to find out your opinion on the best way to accomplish this. Currently, my thoughts for doing this are: ?php function someFunctionThatNeedsTransactions () { $this-db-begin(); // Start transaction $this-db-query(SELECT...); // Run my queries here $this-db-query(UPDATE...); // Do some PHP logic here $this-db-query(SELECT...); // Run more queries $this-db-query(INSERT...); $this-db-commit(); // Commit transaction } ? If there was a failure in one of the queries, that would be caught in the database class ('db' instance) and ?php $this-rollback(); ? would be called. Note that all the tables are InnoDB and the above code/functionality works. Ideally, I would have liked to use stored procedures, but that decision was not mine. So are there any complications I'm potentially missing? I'd get your db class to handle nested transactions, so if you had something like this: $db-begin(); someFunctionThatNeedsTransactions(); ... .. oops, need to rollback. $db-rollback(); the bits between someFunction and the rollback will be committed (by the function) and can't be rolled back. See http://dev.mysql.com/doc/refman/5.0/en/savepoints.html The situation might not come up but it can't hurt to have it already built in just in case. -- 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] echo returnArray()['a']; // workaround
On Fri, Feb 29, 2008 at 12:16 AM, Nathan Nobbe [EMAIL PROTECTED] wrote: wow, im going to have to stare at some of those and play around with them as soon as im half awake :) of course i still like my solution ;) but im excited about the experimentation and ideas that have been shared on this topic, very interesting really! i added __set() to my original class, now i can do cool stuff, like this: $a = ArrayClass::simpleFactory(getArray())-{'a'} = 5; which allows retrieval of the array, and modification (or access) to a given member, in a single statement. ?php class ArrayClass { private $theArray = array(); private function __construct($theArray) { $this-theArray = $theArray; } public static function simpleFactory($theArray) { return new self($theArray); } public function __get($member) { if(array_key_exists($this-theArray, $member)) { return $this-theArray[$member]; } return null; } public function __set($member, $value) { $this-theArray[$member] = $value; } } function getArray() { return array( 'a' = 1, 'b' = 2 ); } $a = ArrayClass::simpleFactory(getArray())-{'a'} = 5; var_dump($a); ? maybe boring to some (or many :D) but as the first time around, i just thought it was cool and id share. -nathan