RE: Re: [PHP] Funny php://stdout behaviour

2001-01-24 Thread Dotan Cohen
I actually was getting prompted to download the .php file sometimes... So, the user would be able to open the file in, say, VI and see your code? Big security hole, no? Of which versions of php4 was this characteristic? Dotan Cohen --- MySQLphp4

[PHP] Sorting an array

2001-09-13 Thread Dotan Cohen
) or die(mysql_error()); So I need to get just the albums from $result_t that begin with 'The ' (easy regex) and from $result_a that begin with 'A ' (easy regex), but puting the three of them in order is proving beyond my skill. Thanks in advance for any advise. Dotan Cohen

[PHP] PHP advice: Tips webpage valid?

2007-11-13 Thread Dotan Cohen
I came across this page today: http://reinholdweber.com/?p=3 It covers a lot of flammable material (echo vs. print) but I wonder how valid some of the advice is. Can anyone elaborate? Thanks. Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ

Re: [PHP] PHP advice: Tips webpage valid?

2007-11-13 Thread Dotan Cohen
On 14/11/2007, Larry Garfield [EMAIL PROTECTED] wrote: I have some more benchmarks for your list if you're interested: http://www.garfieldtech.com/blog/magic-benchmarks Thanks, there is some food for though there. I'll also benchmark some of them and see what I come up with. Dotan Cohen

[PHP] Image functions: date?

2007-12-01 Thread Dotan Cohen
I remember once coming across a bit of php code that displayed the created date of a jpeg image. I cannot find it, and I cannot find anything related to that in tfm. Can someone give me a push in the general direction? Thanks in advance. Dotan Cohen http://what-is-what.com http://gibberish.co.il

[PHP] Re: Image functions: date?

2007-12-01 Thread Dotan Cohen
On 01/12/2007, Dotan Cohen [EMAIL PROTECTED] wrote: I remember once coming across a bit of php code that displayed the created date of a jpeg image. I cannot find it, and I cannot find anything related to that in tfm. Can someone give me a push in the general direction? Thanks in advance. I

[PHP] Re: Image functions: date?

2007-12-01 Thread Dotan Cohen
On 01/12/2007, Dotan Cohen [EMAIL PROTECTED] wrote: On 01/12/2007, Dotan Cohen [EMAIL PROTECTED] wrote: I remember once coming across a bit of php code that displayed the created date of a jpeg image. I cannot find it, and I cannot find anything related to that in tfm. Can someone give me

[PHP] snmp_set_valueretrieval depends on what?

2008-01-16 Thread Dotan Cohen
on a debian-based system (Ubuntu), so if there is a deb package that provides the proper libs I'd appreciate knowing about it. This is my build info: $ php -v PHP 5.2.1 (cli) (built: Nov 28 2007 23:14:55) Thanks in advance. Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך

Re: [PHP] snmp_set_valueretrieval depends on what?

2008-01-16 Thread Dotan Cohen
On 16/01/2008, Per Jessen [EMAIL PROTECTED] wrote: Dotan Cohen wrote: I am experimenting with the snmp_set_valueretrieval function, which does not appear to be documented: http://il.php.net/snmp_set_valueretrieval What does this function depend upon? Simply using it throws

Re: [PHP] snmp_set_valueretrieval depends on what?

2008-01-16 Thread Dotan Cohen
? :-) Thanks, Richard. That link seems broken, are you sure that it is correct? Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad

[PHP] Using mysql_real_escape_string without connecting to mysql

2008-01-22 Thread Dotan Cohen
is the list's opinion of this situation? Thanks in advance. Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing?

Re: [PHP] Using mysql_real_escape_string without connecting to mysql

2008-01-22 Thread Dotan Cohen
On 23/01/2008, Chris [EMAIL PROTECTED] wrote: Dotan Cohen wrote: I have a file of my own functions that I include in many places. One of them uses mysql_real_escape_string, however, it may be called in a context that will or will not connect to a mysql server, and worse, may already

Re: [PHP] Using mysql_real_escape_string without connecting to mysql

2008-01-22 Thread Dotan Cohen
On 23/01/2008, Richard Lynch [EMAIL PROTECTED] wrote: On Tue, January 22, 2008 7:01 pm, Dotan Cohen wrote: I have a file of my own functions that I include in many places. One of them uses mysql_real_escape_string, however, it may be called in a context that will or will not connect

Re: [PHP] Using mysql_real_escape_string without connecting to mysql

2008-01-23 Thread Dotan Cohen
. Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing?

Re: [PHP] Using mysql_real_escape_string without connecting to mysql

2008-01-23 Thread Dotan Cohen
) { $dirty=str_replace (--, , $dirty); $dirty=str_replace (;, , $dirty); $clean=mysql_real_escape_string($dirty); return $clean; } Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת A: Because it messes up the order in which

Re: [PHP] Using mysql_real_escape_string without connecting to mysql

2008-01-23 Thread Dotan Cohen
that I expect that it would. Then, I make a connection and use the function, expecting it to clean my data and it doesn't. Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת A: Because it messes up the order in which people normally read

Re: [PHP] Using mysql_real_escape_string without connecting to mysql

2008-01-23 Thread Dotan Cohen
On 23/01/2008, Eric Butera [EMAIL PROTECTED] wrote: On Jan 22, 2008 8:01 PM, Dotan Cohen [EMAIL PROTECTED] wrote: I have a file of my own functions that I include in many places. One of them uses mysql_real_escape_string, however, it may be called in a context that will or will not connect

Re: [PHP] Using mysql_real_escape_string without connecting to mysql

2008-01-23 Thread Dotan Cohen
specify the charset without a connection and did the escaping. Presumably you don't NEED a connection if you already know what charset thingie you are aiming at... Or maybe I'm not understanding something... You are understanding. I'm heading over to the mysql bugzilla now... Dotan Cohen http

Re: [PHP] Using mysql_real_escape_string without connecting to mysql

2008-01-23 Thread Dotan Cohen
On 23/01/2008, Richard Lynch [EMAIL PROTECTED] wrote: On Wed, January 23, 2008 12:47 pm, Dotan Cohen wrote: On 23/01/2008, Eric Butera [EMAIL PROTECTED] wrote: On Jan 22, 2008 8:01 PM, Dotan Cohen [EMAIL PROTECTED] wrote: However, I do not think that the script should throw an error until I

Re: [PHP] Using mysql_real_escape_string without connecting to mysql

2008-01-23 Thread Dotan Cohen
an example of SQL injection despite the use of mysql_escape_string. Some funky Asian charset was used, no? Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת A: Because it messes up the order in which people normally read text. Q: Why

Re: [PHP] Using mysql_real_escape_string without connecting to mysql

2008-01-23 Thread Dotan Cohen
statements. :) Thanks, I will take a look at those! Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing?

Re: [PHP] Using mysql_real_escape_string without connecting to mysql

2008-01-23 Thread Dotan Cohen
attack, not for a second. Rather, I very much appreciate the time you take to explain to me my errors. And I intend to learn from them. For the time being, I'll leave the code as it is. However, for future projects, I will make a point of separating the different functions. Thanks. Dotan Cohen http

Re: [PHP] Using mysql_real_escape_string without connecting to mysql

2008-01-23 Thread Dotan Cohen
for signatures. You win that one. Also in mysql_query ; is automatically handled, you can't send multiple queries to mysql_query and have them execute. mysql_query() sends an unique query (multiple queries are not supported) Very nice to know this. Thanks. Dotan Cohen http://what-is-what.com http

Re: [PHP] Using mysql_real_escape_string without connecting to mysql

2008-01-23 Thread Dotan Cohen
On 23/01/2008, Jochem Maas [EMAIL PROTECTED] wrote: Dotan Cohen schreef: I'm not accepting -- at all until someone can show me a real world case where one would use it, without the intention of SQL injection. How can it be escaped, anyway? I might just want to put '--' in a textfield used

Re: [PHP] Using mysql_real_escape_string without connecting to mysql

2008-01-23 Thread Dotan Cohen
good reasons to use the built in function. Do the more experienced in attendance think differently? Should I go ahead and reimplement the function specific to the UTF-8 charset? Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת

Re: [PHP] Using mysql_real_escape_string without connecting to mysql

2008-01-23 Thread Dotan Cohen
On 24/01/2008, Richard Lynch [EMAIL PROTECTED] wrote: On Wed, January 23, 2008 4:04 pm, Dotan Cohen wrote: Is the -- here not treated as the beginning of an SQL comment? No, because it is inside the apostrophes. The purpose of mysql_real_escape_string (or using prepared statements

Re: [PHP] Using mysql_real_escape_string without connecting to mysql

2008-01-24 Thread Dotan Cohen
) VALUES ( '.mysql_real_escape_string($evilString).' )); Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing?

Re: [PHP] Using mysql_real_escape_string without connecting to mysql

2008-01-24 Thread Dotan Cohen
to execute arbitrary SQL on your DB server. After I pull the info out of the database, before it goes to the webbrowser, it goes through this: function clean_html ($dirty) { $dirty=strip_tags($dirty); $clean=htmlentities($dirty); return $clean; } Dotan Cohen http://what-is-what.com http

Re: [PHP] Using mysql_real_escape_string without connecting to mysql

2008-01-24 Thread Dotan Cohen
at that now, thanks. Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing?

Re: [PHP] Using mysql_real_escape_string without connecting to mysql

2008-01-24 Thread Dotan Cohen
load, and you are able to retain the marked up version for editing ( i assume ) I will do as you suggest here, as disk space is cheaper than processor time. Thanks. Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת A: Because

Re: [PHP] are email address could be spammed

2008-01-25 Thread Dotan Cohen
. Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing?

Re: [PHP] are email address could be spammed

2008-01-25 Thread Dotan Cohen
such as estrogen! Careful! Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing?

Re: [PHP] are email address could be spammed

2008-01-25 Thread Dotan Cohen
on Google's servers. I don't consider list mail as my mail. Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing?

[PHP] Cannot even come up with the beginning of a regex

2008-02-27 Thread Dotan Cohen
website. This function will handle the Final Letter situations. Thanks in advance. Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת A: Because it messes up the order in which people normally read text. Q: Why is top-posting

Re: [PHP] Cannot even come up with the beginning of a regex

2008-02-27 Thread Dotan Cohen
assistance, it is much appreciated and I'm learning what I can. Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing?

Re: [PHP] Cannot even come up with the beginning of a regex

2008-02-28 Thread Dotan Cohen
and the exact code used here: http://gibberish.co.il/test.html I appreciate the assistance. I'm certain that we're missing only some small detail here. Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת A: Because it messes up the order

Re: [PHP] Cannot even come up with the beginning of a regex

2008-02-28 Thread Dotan Cohen
parameters: Enter regular expression here: /\b([^\s]+)א\b.*/U Enter your data here: אאבאגאדא אא א ח Enter text to replace matches with here: (backreferences are ok): $1ע Regular expression options: PERL Function: preg_replace Flags: 0 limit I really appreciate the help. Dotan Cohen http://what

Re: [PHP] Cannot even come up with the beginning of a regex

2008-02-28 Thread Dotan Cohen
push me in the right direction as to why that is not happening? Thanks for any and all advice. Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת A: Because it messes up the order in which people normally read text. Q: Why is top

Re: [PHP] Cannot even come up with the beginning of a regex

2008-02-29 Thread Dotan Cohen
of acronyms with gershiim but that's not a difficult one to solve. Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing?

[PHP] Pirate PHP books online?

2007-07-15 Thread Dotan Cohen
. They are downloadable PDFs. If the authors want the address of the site, email me. The pirates can go directly to Hell. Dotan Cohen http://lyricslist.com/ http://what-is-what.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Pirate PHP books online?

2007-07-16 Thread Dotan Cohen
am a sucker for being the one who pays for the books. I'm paying for everybody, no? So, suckers, I'm with you now, and I'll start pirating again. Anyone know where I can pick up a copy of Ubuntu pirated? I still refuse to use Windows, even for free... Dotan Cohen http://lyricslist.com/ http://what

Re: [PHP] Pirate PHP books online?

2007-07-19 Thread Dotan Cohen
On 16/07/07, Crayon Shin Chan [EMAIL PROTECTED] wrote: On Monday 16 July 2007 19:42, Dotan Cohen wrote: I guess that I'm naive. I've gotten a few what's the address requests, but none from authors... What makes you think any of the authors are subscribed to this list? Even if some are, what

Re: [PHP] Pirate PHP books online?

2007-07-19 Thread Dotan Cohen
On 16/07/07, Mark Kelly [EMAIL PROTECTED] wrote: Hi. On Monday 16 July 2007 12:42, Dotan Cohen wrote: So, suckers, I'm with you now, and I'll start pirating again. This is a real shame (not to mention a foolish thing to post to a publicly archived mailing list). As a user of open source

Re: [PHP] Pirate PHP books online?

2007-07-19 Thread Dotan Cohen
to write. I have reported the site to my publisher. Even if it's closed down, my work has already been stolen. David, I am the OP, and I have not posted the URL to the pirate site. Nor did I see it posted anywhere. Check the email, maybe someone else sent it to you directly. Dotan Cohen http

Re: [PHP] Pirate PHP books online?

2007-07-20 Thread Dotan Cohen
. At least, I do. Dotan Cohen http://lyricslist.com/ http://what-is-what.com/

Re: [PHP] Pirate PHP books online?

2007-07-20 Thread Dotan Cohen
On 20/07/07, Tijnema [EMAIL PROTECTED] wrote: An additional benefit is that there are those who _prefer_ the electronic version to the dead trees. At least, I do. Dotan Cohen Old paper can be recycled, lost energy from computers can't ;) Tijnema My reference to dead trees was not meant

Re: [PHP] Pirate PHP books online?

2007-07-21 Thread Dotan Cohen
Question. Let there be light! Dotan Cohen http://lyricslist.com/ http://what-is-what.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Denial of Service Attack

2007-07-21 Thread Dotan Cohen
records. That could lead to server load as well, as could anything else that 'leads to your server'. But I doubt that a favicon, even if requested by 1000 clients going over the archives in an hour, would cause heavy enough traffic to DDoS a serious webserver. Dotan Cohen http://lyricslist.com

Re: [PHP] Re: Pirate PHP books online?

2007-07-21 Thread Dotan Cohen
vs. rampant theft and economic downfall question. M$ has already stated how they depend upon the pirates. If eveybody who could not afford Windows as a student switched to linux, then they would have nobody to sell Windows to when those students grow up. Dotan Cohen http://lyricslist.com/ http

Re: [PHP] Pirate PHP books online?

2007-07-21 Thread Dotan Cohen
about a lost sale. Dotan Cohen http://lyricslist.com/ http://what-is-what.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Denial of Service Attack

2007-07-21 Thread Dotan Cohen
enough traffic to DDoS a serious webserver. Dotan Cohen http://lyricslist.com/ http://what-is-what.com/ You don't fetch SPF records form port 80 do you? I was referring to server load, not apache load. Dotan Cohen http://lyricslist.com/ http://what-is-what.com/ -- PHP General Mailing List

Re: [PHP] Re: Re: Pirate PHP books online?

2007-07-22 Thread Dotan Cohen
that PHP is dificult to learn because there are no resources. Go pay for ASP or better yet, pay a real programmer to write php for you. Dotan Cohen http://lyricslist.com/ http://what-is-what.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Re: Pirate PHP books online?

2007-07-22 Thread Dotan Cohen
cry that PHP is dificult to learn because there are no resources. Go pay for ASP or better yet, pay a real programmer to write php for you. Dotan Cohen I would love to see that :) Tijnema Rereading that, I came off rather harsh! So that there will be no mistake: I was attacking your comment

Re: [PHP] Pirate PHP books online?

2007-07-23 Thread Dotan Cohen
, then making an ebook would be great as even though it would get pirated (by the way, check out the digital copies of harry potter if you're into that...(i'm not) how many days has it been since the release?) They were online _before_ you could buy the book. Dotan Cohen http

Re: Re[2]: [PHP] Pirate PHP books online?

2007-07-24 Thread Dotan Cohen
On 24/07/07, tedd [EMAIL PROTECTED] wrote: How about Rasmus Lerdorf, Lord of the Code I think we could go on and on with this. Php Fiction? Rasmus's List? Codin' in the Rain? Dotan Cohen http://lyricslist.com/ http://what-is-what.com/ -- PHP General Mailing List (http://www.php.net

Re: Re[2]: [PHP] Pirate PHP books online?

2007-07-24 Thread Dotan Cohen
On 24/07/07, Ryan A [EMAIL PROTECTED] wrote: Php Fiction? Rasmus's List? Codin' in the Rain? LOL! That was good! Thanks needed that! Of course, one should not forgot Debbie Does DocType... Dotan Cohen http://lyricslist.com/ http://what-is-what.com/ -- PHP General Mailing List (http

Re: Re[2]: [PHP] Pirate PHP books online?

2007-07-24 Thread Dotan Cohen
was blessed with a baby girl just about 6 months ago. Therefore, we also do not sleep... Dotan Cohen http://lyricslist.com/ http://what-is-what.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re[2]: [PHP] Pirate PHP books online?

2007-07-25 Thread Dotan Cohen
Rasmus. God, I hope not. :-) Public congratulations. Our home was blessed with a baby girl just about 6 months ago. Therefore, we also do not sleep... Dotan Cohen http://lyricslist.com/ http://what-is-what.com/ Well, I just learned yesterday that my girlfriend is 5th week pregnant... seems

Re: [PHP] Pirate PHP books online?

2007-07-25 Thread Dotan Cohen
On 25/07/07, Eddie Dunckley [EMAIL PROTECTED] wrote: On Wed 25 Jul 07 05:36, Dotan Cohen wrote: On 25/07/07, tedd [EMAIL PROTECTED] wrote: Sorry, I've been up for 48 hours -- it's a boy, 8 lb 9 oz -- time to get some sleep. Maybe tomorrow my son will finally decide on a name -- the ninth

Re: [PHP] Pirate PHP books online?

2007-07-25 Thread Dotan Cohen
On 25/07/07, Robert Cummings [EMAIL PROTECTED] wrote: Rasmus does Dallas I, II, and III Tsk, tsk, Debbie Does DocType has already been mentioned... I don't remember any other php-general thread going over 200 messages before. This is turning into fedora-users... Dotan Cohen http

Re: [PHP] Pirate PHP books online?

2007-07-27 Thread Dotan Cohen
me. I pay for your copy. I'm the fool. I'm the idiot who pays for eveybody. That is the end effect. That is why it really IS theft. Dotan Cohen http://lyricslist.com/ http://what-is-what.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: Re[2]: [PHP] Pirate PHP books online?

2007-07-27 Thread Dotan Cohen
collected data into /dev/null Just thinking about it overflows my buffer. Dotan Cohen http://lyricslist.com/ http://what-is-what.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] ODF creation functions

2007-07-28 Thread Dotan Cohen
Is there a way to create ODF files with php? I don't see anything in the manual. I would rather use the open ODF standard than proprietary PDF for distributing documents. Plain text files are inappropriate for the layout we need, and html is inappropriate for the distribution. Thank you. Dotan

Re: [PHP] Pirate PHP books online?

2007-07-28 Thread Dotan Cohen
prices. I feel so stupid that I didn't see it that way from the beginning. Dotan Cohen http://lyricslist.com/ http://what-is-what.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Pirate PHP books online?

2007-07-28 Thread Dotan Cohen
, which drives the producers to produce higher quality content at affordable prices. I feel so stupid that I didn't see it that way from the beginning. Dotan Cohen It' a lost cause trying to get him to admit that it's stealing. But, I did just hear that same argument from a movie called

Re: [PHP] Re: Pirate PHP books online?

2007-07-28 Thread Dotan Cohen
being, and that is my motivation. Really, I had expected more mature commentary from the adults on this list. So did I. I expect adults to display morality and values. Dotan Cohen http://lyricslist.com/ http://what-is-what.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] Adding text before last paragraph

2007-08-26 Thread Dotan Cohen
occurrence of a string? My initial idea was to do this: 1) Count how many times /p\np occurs as $n 2) Replace them all with /p\nimg src= alt=\np 3) Replace $n-1 replacements back to /p\np Is there a cleaner way? Thanks in advance. Dotan Cohen http://lyricslist.com/ http://what-is-what.com/ -- PHP

Re: [PHP] Adding text before last paragraph

2007-08-27 Thread Dotan Cohen
On 27/08/07, Richard Lynch [EMAIL PROTECTED] wrote: On Sun, August 26, 2007 3:41 pm, Dotan Cohen wrote: I have a string with some HTML paragraphs, like so: $text=pFirst paragraph/p\npMore text/p\npSome more text/p\npEnd of story/p; I'd like to add an image before the last paragraph. I

Re: [PHP] Adding text before last paragraph

2007-08-27 Thread Dotan Cohen
you very, very much for the working code. As usual, I have another night of regex waiting for me... Dotan Cohen http://lyricslist.com/ http://what-is-what.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Adding text before last paragraph

2007-08-28 Thread Dotan Cohen
these addresses are 404 right now: http://il.php.net/manual/en/pcre.pattern.modifiers.php http://uk.php.net/manual/en/pcre.pattern.syntax.php Dotan Cohen http://lyricslist.com/ http://what-is-what.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Copying IPTC data

2006-08-24 Thread Dotan Cohen
. and the comments were not enough to get me moving. Could someone provide a working example of writing to a single IPTC field with iptcembed? I'm sure that I could pick it up from there. Thanks. Dotan Cohen http://what-is-what.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] The iptcembed() function

2006-08-25 Thread Dotan Cohen
Has anybody a working example of iptcembed()? I can't get it to work, and it's not documented. Thanks in advance. Dotan Cohen http://ie-only.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Testing people

2006-10-05 Thread Dotan Cohen
It's not exactly what you describe, but you should take a look at: http://www.bigredspark.com/survey.html Dotan Cohen http://what-is-what.com 7 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Unicode Problem

2006-10-05 Thread Dotan Cohen
-IE) you're going to have a hard time deciphering those funny characters. Try to encourage them to use Firefox, and if possible to use a UTF-8 compliant word processor. Mine is Kword, but I don't think that's available for Windows. Dotan Cohen http://what-is-what.com 98 -- PHP General Mailing List

[PHP] One-page password-protected file

2006-10-21 Thread Dotan Cohen
{ print Fvck Off; exit; } } // REST OF PAGE ? The idea is that the user could call the page like this: http://server.com/directory/page.php/MyPassword and the page would refresh to not show his password, yet keep him logged in. Thanks for any and all input. Dotan Cohen http

[PHP] Re: One-page password-protected file

2006-10-21 Thread Dotan Cohen
On 21/10/06, Dotan Cohen [EMAIL PROTECTED] wrote: I'm in the horrible situation where I need a one-page script to hold it's own password and validate itself. I coded this together, I want this lists opinion as to whether or not it holds water, considering the circumstance: ?php $sha1_pw

Re: [PHP] Re: Screen Shots

2006-10-22 Thread Dotan Cohen
a screen capture. You own the information. I don't see why it shouldn't be legal to capture it and display it to yourself considering all the folks who do full click tracking. And how does that produce a screenshot? Dotan Cohen http://what-is-what.com/what_is/virus.html -- PHP General Mailing

Re: [PHP] Re: Screen Shots

2006-10-22 Thread Dotan Cohen
a user's screenshot... Dotan Cohen http://what-is-what.com/what_is/rss.html http://technology-sleuth.com/question/why_are_internet_greeting_cards_dangerous.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Screen Shots

2006-10-23 Thread Dotan Cohen
does not want stats. Dotan Cohen http://what-is-what.com/what_is/ubuntu.html http://technology-sleuth.com/question/what_is_a_cellphone.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] One-page password-protected file

2006-10-23 Thread Dotan Cohen
on other things as well, and for those the hash will do the attacker no good. I'll reconsider the hash-of-a-hash. Thanks. Dotan Cohen http://what-is-what.com/what_is/javascript.html http://technology-sleuth.com/long_answer/what_is_hdtv.html -- PHP General Mailing List (http://www.php.net

Re: [PHP] One-page password-protected file

2006-10-23 Thread Dotan Cohen
On 23/10/06, Jochem Maas [EMAIL PROTECTED] wrote: Dotan Cohen wrote: ... Thanks for any and all input. // here is a completely different way of doing it: function setSimplePageProtectionDetails($login, $pwd, $makeSha1Hash = false) { if (!defined('SIMPLE_AUTH_PW') !defined

Re: [PHP] Screen Shots

2006-10-23 Thread Dotan Cohen
of it on a fully patched (at the time- a few months ago) Windows XP machine. I don't know if it was Home or Professional. Dotan Cohen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Screen Shots

2006-10-23 Thread Dotan Cohen
On 23/10/06, Jochem Maas [EMAIL PROTECTED] wrote: it's a Pretty Damning Format ;-) I'd always thought of it as the Potty-Diaper Format. I stand corrected. Dotan Cohen http://faq-google.com http://what-is-what.com/what_is/spam.html -- PHP General Mailing List (http://www.php.net

Re: [PHP] Screen Shots

2006-10-23 Thread Dotan Cohen
it put in the research - everything you need can be found with your favourite search engine, you just need to put the effort in to pull it all together. Come on, show him how to access the user's webcam and actually see his friends' kids! Dotan Cohen http://essentialinux.com/basics.php http://what

Re: [PHP] One-page password-protected file

2006-10-24 Thread Dotan Cohen
use sesssions. The code needs to be as portable as possible: that means that he will be moving it from server to server very often. If I knew that 100% of the world's servers had sessions support, I might go that way. Dotan Cohen http://fedorafaqs.org http://what-is-what.com/what_is/ubuntu.html

[PHP] foreach on a 3d array

2006-10-24 Thread Dotan Cohen
].!/center; } } Thank in advance for any assistance. Dotan Cohen http://lyricslist.com/ http://what-is-what.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] foreach on a 3d array

2006-10-24 Thread Dotan Cohen
to the array for each iteration. Thanks, I see what I was missing. So the first iteration, $language is set to array(Afrikaans, Afrikaans, South Africa) and the second iteration, $language is set to array(Albanian, Shqipe, Albania) That much I knew. Thanks, Chris. Dotan Cohen http

Re: [PHP] foreach on a 3d array

2006-10-25 Thread Dotan Cohen
'] works too. Dotan Cohen http://what-is-what.com/what_is/spam.html http://song-lirics.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] foreach on a 3d array

2006-10-25 Thread Dotan Cohen
/register_globals Actually, I have read that. I'll pass it on to they guy who manages this server, though. Thanks. Dotan Cohen http://what-is-what.com/what_is/skype.html http://essentialinux.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problem with manual running PHP script

2006-10-27 Thread Dotan Cohen
At the top of your script, are you calling php with the q flag: #!/usr/bin/php -q That's the only way I can get php to run from the command line on linux boxes. Dotan Cohen http://what-is-what.com/what_is/linux.html http://lyricslist.com/lyrics/artist_albums/19/adams_bryan.php -- PHP General

Re: [PHP] PHP 5 Hosting

2006-10-27 Thread Dotan Cohen
On 25/10/06, Ed Lazor [EMAIL PROTECTED] wrote: Hi, I wanted to give some feedback on PHP 5 hosting in case it helps someone. I signed up with DreamHost last Thursday. I also signed up with OCS Solutions to compare the two services. I also maintain a server with CalPop. When I signed up with

Re: [PHP] Problem with manual running PHP script

2006-10-27 Thread Dotan Cohen
get the error when running the script in a browser. Unless he means that he's running the test script in a browser on another server. Dotan Cohen http://nanir.com http://technology-sleuth.com/question/what_is_hdtv.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] str_replace on words with an array

2006-10-29 Thread Dotan Cohen
); $searchQuery=str_replace( ^.$noiseArray.$, , $searchQuery); Thanks in advance. Dotan Cohen http://essentialinux.com http://what-is-what.com/what_is/sitepoint.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] str_replace on words with an array

2006-10-29 Thread Dotan Cohen
On 29/10/06, Alan Milnes [EMAIL PROTECTED] wrote: Dotan Cohen wrote: $searchQuery=str_replace( ^.$noiseArray.$, , $searchQuery); Can you explain what you are trying to do with the ^ and $? What is a typical value of the original $searchQuery? Alan The purpose

Re: [PHP] str_replace on words with an array

2006-10-29 Thread Dotan Cohen
On 29/10/06, Børge Holen [EMAIL PROTECTED] wrote: Yes you need to put some \ in front of some of those characters On Sunday 29 October 2006 21:05, Dotan Cohen wrote: I need to remove the noise words from a search string. I can't seem to get str_replace to go through the array and remove

Re: [PHP] str_replace on words with an array

2006-10-29 Thread Dotan Cohen
operate on whole words, but I just can't seem to get it. I am of course Ring TFM and Sing THW but with no luck. A push (link to TFA or tutorial, whatever) would be most appreciated. Thanks again. Dotan Cohen http://what-is-what.com/what_is/love.html -- PHP General Mailing List (http://www.php.net

Re: [PHP] str_replace on words with an array

2006-10-29 Thread Dotan Cohen
/p; ? form action=/test.php method=post input type=text name=query / input type=submit / /form /body/html Dotan Cohen http://song-lirics.com http://what-is-what.com/what_is/distribution.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Encoding PC-850

2006-10-30 Thread Dotan Cohen
or an ISO-8859-1 to this PC-850 format? Thanks for any input. Regards Emil It seems to be an IBM encoding compatable with iso-8859-1. Why do you need it? Are you outputing to a webbrowser, or on the command line? Dotan Cohen http://what-is-what.com/what_is/open_source.html http://gmail-com.com

Re: [PHP] str_replace on words with an array

2006-10-30 Thread Dotan Cohen
(slightly drunk, but feeling generally good about the world) Dotan Cohen http://lyricslist.com/ http://what-is-what.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] str_replace on words with an array

2006-11-03 Thread Dotan Cohen
i. Thank you. Dotan Cohen http://what-is-what.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

  1   2   3   4   5   6   >