Re: [PHP] Re: on OS X

2006-12-04 Thread Dotan Cohen
On 01/12/06, Michelle Konzack <[EMAIL PROTECTED]> wrote: Am 2006-11-27 03:28:08, schrieb Dotan Cohen: > Actually, it does. He can global replace " Yes, that's what I meant. Dotan Cohen http://what-is-what.com/what_is/bios.html -- PHP General Mailing List (http://www.php.n

[PHP] Ensuring that variable contains a number

2006-12-06 Thread Dotan Cohen
How can I ensure that a variable contains a postive integer number? I'm currently using this code: $number=(1-$number); $number=(1-$number); if ( $number<1 ) { $number=1; } But I'm sure that there is a better way. What would that be? Dotan Cohen http://what-is-wha

Re: [PHP] Ensuring that variable contains a number

2006-12-06 Thread Dotan Cohen
#x27;s what happens when one scripts in a language with 3000+ built-in functions... :) Dotan Cohen http://lyricslist.com/ http://what-is-what.com/what_is/bios.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Ensuring that variable contains a number

2006-12-06 Thread Dotan Cohen
preg_match("/^\d+$/", $input)) { // OK } else { // NOT OK } Thanks. As the 'number' is used in a for loop, it actually is alright if it is a float. I just added a check that the number is indeed >=1, otherwise I set it to 1. Good enough for this project, anyway.

Re: [PHP] How to not be abused by mail form injectors?

2006-12-06 Thread Dotan Cohen
upid people are, i hope mr fielding never needs help from me cause he has now been plopped into my spam box. You obviously don't remember Peter Whalley. http://what-is-what.com/what_is/spam.html Dotan Cohen http://lyricslist.com -- PHP General Mailing List (http://www.php.net/) To unsu

Re: [PHP] Ensuring that variable contains a number

2006-12-09 Thread Dotan Cohen
you have an int, or... But a typecast and inequality test should be pretty clear and cheap. Hey, nice. Thanks! Dotan Cohen http://what-is-what.com/what_is/bluetooth.html http://lyricslist.com/lyrics/artist_albums/509/whitesnake.php -- PHP General Mailing List (http://www.php.net/) To unsubs

[PHP] Counting the occurences of items in an array

2006-12-24 Thread Dotan Cohen
listed in it. If not, then I'll add it with a value of 1. If it is already listed then I'll just increase it's number. Ditto for $fruits[1] and so on... Has someone cleverer than myself found a better way of doing this? This function will be used as a word count for text documents,

Re: [PHP] Counting the occurences of items in an array

2006-12-24 Thread Dotan Cohen
Thanks for the link to the function. Know that I did RTFM before posting, but I missed that one. Dotan Cohen http://lyricslist.com/lyrics/artist_albums/219/xyz.php http://simplesniff.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Beta Testers Wanted

2006-02-23 Thread Dotan Cohen
> in a little time with the testing of it. I have offered similar beta > testing programs for some of the other scripts I have available at > http://sweetphp.com and they have become very successful because of all your > help. > > Thanks, > > Matt Palermo > [EMAIL PRO

[PHP] Parsing images

2006-05-10 Thread Dotan Cohen
Hey all, it is possible to parse capcha's in php? I'm not asking how to do it, nor have I any need, it's just something that I was discussing with a friend. My stand was that ImageMagik could crack them. She says no way. What are your opinions? Thanks. Dotan Cohen http://what-is-what.com

Re: [PHP] Parsing images

2006-05-11 Thread Dotan Cohen
e and add a tag based upon who is in it. Dotan Cohen http://gmail-com.com

[PHP] Can php convert doc to HTML?

2006-05-23 Thread Dotan Cohen
runs on linux that can do the conversion in batch? I have ~200 files to convert. Thanks. Dotan Cohen http://what-is-what.com 623

[PHP] Re: Can php convert doc to HTML?

2006-05-23 Thread Dotan Cohen
On 5/23/06, Jay Blanchard <[EMAIL PROTECTED]> wrote: [snip] This may be far-fetched, but can php convert a doc file to HTML? [/snip] http://www.google.com/search?hl=en&q=php+convert+word+doc+to+html Thanks, Jay. I mostly found Windows software on google that would do the job. So I decided to

[PHP] Re: Can php convert doc to HTML?

2006-05-23 Thread Dotan Cohen
On 5/23/06, tedd <[EMAIL PROTECTED]> wrote: At 7:09 PM +0300 5/23/06, Dotan Cohen wrote: >This may be far-fetched, but can php convert a doc file to HTML? I >vaguely remember a thread that discussed converting pdf's, but I >cannot find reference to either that or to doc in th

Re: [PHP] Re: Can php convert doc to HTML?

2006-05-23 Thread Dotan Cohen
lso has a similar tool). Because there are 200 of them. Dotan Cohen http://what-is-what.com 323

Re: [PHP] Re: Can php convert doc to HTML?

2006-05-23 Thread Dotan Cohen
On 5/24/06, Martin Alterisio <[EMAIL PROTECTED]> wrote: 2006/5/23, Jochem Maas <[EMAIL PROTECTED]>: > my 2cents > > Martin Alterisio wrote: > > 2006/5/23, Dotan Cohen <[EMAIL PROTECTED]>: > > > >> > >> On 5/23/06, Martin Alterisi

[PHP] anti SQL injection method in php manual.

2006-05-26 Thread Dotan Cohen
? How does this differ from: $query = "SELECT * FROM users WHERE user=".$_POST['username']." AND password=".$_POST['password']; Dotan Cohen http://linux-apache-mysql-php.org 23

Re: [PHP] anti SQL injection method in php manual.

2006-05-26 Thread Dotan Cohen
On 5/26/06, Brad Bonkoski <[EMAIL PROTECTED]> wrote: Dotan Cohen wrote: > In the php manual: > http://www.php.net/manual/en/function.mysql-real-escape-string.php > > The following method is suggested: > // Quote variable to make safe > function quote_smart($value)

Re: [PHP] anti SQL injection method in php manual.

2006-05-26 Thread Dotan Cohen
On 5/26/06, Satyam <[EMAIL PROTECTED]> wrote: - Original Message - From: "Dotan Cohen" <[EMAIL PROTECTED]> > // Make a safe query > $query = sprintf("SELECT * FROM users WHERE user=%s AND password=%s", > quote_smart($_POST[&#x

Re: [PHP] anti SQL injection method in php manual.

2006-05-26 Thread Dotan Cohen
trying to learn. I think that it is a little involved for what I'm currently doing, but I will certainly save the code for use when I'm more skilled. I most appreciate your help. Thanks! Dotan Cohen http://what-is-what.com 41

Re: [PHP] anti SQL injection method in php manual.

2006-05-26 Thread Dotan Cohen
ler code (to my eyes) and eliminate the sprintf. In any case, it works. Dotan Cohen http://auto-car.info

Re: [PHP] anti SQL injection method in php manual.

2006-05-30 Thread Dotan Cohen
On 5/30/06, Richard Lynch <[EMAIL PROTECTED]> wrote: On Fri, May 26, 2006 10:39 am, Dotan Cohen wrote: > What is the purpose of the sprintf? If it were using %d on integers I > could see the point, but as we're talking about %s strings, what is > the advantage to using sp

[PHP] Extracting XMP tags from pictures

2006-06-23 Thread Dotan Cohen
http://dotancohen.com/xmp_test.jpg This image has the comment "This is a comment" and two tags: "People->Yehuda" and "Place->Sarid". Has anybody invented a wheel to extract these tags and comment as strings? I'd love to see it if so. Thanks in advance. Dotan Cohen h

Re: [PHP] Extracting XMP tags from pictures

2006-06-24 Thread Dotan Cohen
On 24/06/06, tedd <[EMAIL PROTECTED]> wrote: PS: The ee_extract_exif_from_pscs_xmp() function works -- but I can't find an image that has any info. You can use a picture of my friend Yehuda: http://dotancohen.com/xmp_test.jpg Dotan Cohen http://what-is-what.com -- PHP General M

Re: [PHP] Extracting XMP tags from pictures

2006-06-24 Thread Dotan Cohen
On 24/06/06, tedd <[EMAIL PROTECTED]> wrote: Dotan: I did try that picture, but I couldn't extract exif/xmp data from it. I did manage to get the last tags in the hierarchy out of it. My tag "Places->Sarid" came out as "Sarid", and "People->Yehuda" came out as "Yehuda". PS: No offense, but th

Re: [PHP] RE: Military Service WAS [PHP] Capitalization of variable

2008-06-20 Thread Dotan Cohen
2008/6/19 Jay Blanchard <[EMAIL PROTECTED]>: > [snip] >I wonder how many of us on the list served. It's got to be more > than just you and I, Tedd, wouldn't you think? > [/snip] > > U.S. Air Force > Golani, IDF Dotan Cohen http://what-is-what.com http:

Re: [PHP] Re: Military Service WAS [PHP] Capitalization of variable

2008-06-20 Thread Dotan Cohen
lear family and everyone > you know) injecting you the poison of this apperciation, so when you are 18 > years-old you know what is the meaning of service and you are aspiring to > serv as much & as good as you can. > > Regards, > Nitsan > Good for you, Nitsan. If you find

Re: [PHP] Re: Military Service WAS [PHP] Capitalization of variable

2008-06-20 Thread Dotan Cohen
them, not feel automatically entitled to them by birth. > Have you read Starship Troopers? Their civilization is based upon this. Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת A: Because it messes up the order in which peopl

Re: [PHP] Re: Re: Military Service WAS [PHP] Capitalization of variable

2008-06-21 Thread Dotan Cohen
, > then migratig to the USA and must serv there.. :-D > In my country, those who have served in a foreign army are exempt from serving here. Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת A: Because it messes up the

Re: [PHP] Re: Re: Military Service WAS [PHP] Capitalization of variable

2008-06-21 Thread Dotan Cohen
an army which is trained to use their rifles as little as possible, such as the Israeli army. >> Good for you, Nitsan. If you find yourself in Gdud 51 let me know. > > :-D Are you familiar with my unit? Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך

Re: Re: [PHP] Re: Military Service WAS [PHP] Capitalization of variable

2008-06-23 Thread Dotan Cohen
ilians who resort to accusations. 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: Re: [PHP] Re: Military Service WAS [PHP] Capitalization of variable

2008-06-23 Thread Dotan Cohen
2008/6/23 Boyd, Todd M. <[EMAIL PROTECTED]>: > Regardless, let's turn this back around: > > echo "Hello, politically-heterogenous world!"; > ?> > To all those who insist that _all_ programs have bugs, behold this wonder and repent! Do

Re: Re: [PHP] Re: Military Service WAS [PHP] Capitalization of variable

2008-06-23 Thread Dotan Cohen
2008/6/23 Daniel Brown <[EMAIL PROTECTED]>: >(In actuality, you can't use dashes in a variable name. You may > have meant to use an underscore [ _ ].) > IHateUnderscoresInVariableNames! Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל

Re: [PHP] Re: Re: Re: Military Service WAS [PHP] Capitalization of variable

2008-06-23 Thread Dotan Cohen
2008/6/22 Michelle Konzack <[EMAIL PROTECTED]>: > Am 2008-06-21 19:45:32, schrieb Dotan Cohen: >> In my country, those who have served in a foreign army are exempt from >> serving here. > > Realy? > > I know at least on Jew, which was 1 1/2 years in the french >

Re: [PHP] Re: Re: Re: Military Service WAS [PHP] Capitalization of variable

2008-06-23 Thread Dotan Cohen
2008/6/22 Michelle Konzack <[EMAIL PROTECTED]>: > Am 2008-06-21 20:52:22, schrieb Dotan Cohen: >> While I won't confirm nor deny my opinion of your statement, tell me, >> in your opinion how much does training matter? And dedication to the > > The problem is, th

Re: [PHP] Re: Re: Re: Military Service WAS [PHP] Capitalization of variable

2008-06-23 Thread Dotan Cohen
is hiding among civilians, and our job is to protect civilians. Whether those are Israeli, Lebanese, or Palestinian civilians does not matter. > Shamelessly lifted that from Wikipedia. But yeah, you're right. It was also a > fantastic video game in the style of Warcraft/Command & C

Re: [PHP] Re: Re: Re: Military Service WAS [PHP] Capitalization of variable

2008-06-23 Thread Dotan Cohen
The screen just flashes. I'll wait until games4lin comes out, I suppose. Or not. 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] Re: Re: Re: Military Service WAS [PHP] Capitalization of variable

2008-06-24 Thread Dotan Cohen
s. Reserve might not have been the correct term, but I know that it is not the normal French army. I'll read up more in wikipedia. Thanks. Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת A: Because it messes up the order in wh

Re: [PHP] Inspiration for a Tombstone.

2008-06-26 Thread Dotan Cohen
return "Daniel P. Brown: 01-01-1970 - ".$dateOfDeath"; >} >die(dan('00-00-')); > ?> > > What would you like on your Tombstone? (<-- that's actually a trademarked > saying) > What's wrong with a simple Heptadecagon? Dotan Cohen h

Re: [PHP] Inspiration for a Tombstone.

2008-06-26 Thread Dotan Cohen
2008/6/26 Robert Cummings <[EMAIL PROTECTED]>: > * What's wrong with a simple Heptadecagon? > > It'll look like a circle on your tombstone... why not use a star > instead? :B > I wasn't sure that anyone else would be familiar with the idea. Nice! Dotan

Re: [PHP] Re: Inspiration for a Tombstone.

2008-06-27 Thread Dotan Cohen
/C/C++ etc. Bombs with a syntax error. > That is a great tip, 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] Re: Re: Re: Re: Military Service WAS [PHP] Capitalization of variable

2008-06-27 Thread Dotan Cohen
2008/6/25 Michelle Konzack <[EMAIL PROTECTED]>: > Am 2008-06-23 21:17:13, schrieb Dotan Cohen: >> 2008/6/22 Michelle Konzack <[EMAIL PROTECTED]>: >> > I know at least on Jew, which was 1 1/2 years in the french >> > army for his "service national"

Re: [PHP] Re: Inspiration for a Tombstone.

2008-06-28 Thread Dotan Cohen
k' I actually prefer. Say more, takes less. 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] Re: Inspiration for a Tombstone.

2008-06-28 Thread Dotan Cohen
gt; > if ($challenge_password_hash = $stored_password_hash) { >echo 'Welcome to the club!'; > } else { >echo 'Stay out! This club is for members only!'; > } > ?> > > Andrew > In these instances you could rely on != behaviour instead of == be

[PHP] Early return (was: Inspiration for a Tombstone.)

2008-06-29 Thread Dotan Cohen
errors. > > Even your example above hints at another "political" minefield - Early > Return or Multiple Return Points (s/Return/Exit/ in this case) Let's not > even go there!!! > Why not? I do this often, but I am not a professional programmer. I find this to be very useful. 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] Early return (was: Inspiration for a Tombstone.)

2008-06-29 Thread Dotan Cohen
errors. > > Even your example above hints at another "political" minefield - Early > Return or Multiple Return Points (s/Return/Exit/ in this case) Let's not > even go there!!! > Why not? I do this often, but I am not a professional programmer. I find this to be very useful. 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] Early return (was: Inspiration for a Tombstone.)

2008-06-29 Thread Dotan Cohen
2008/6/29 tedd <[EMAIL PROTECTED]>: > Start a new thread. > Done, sorry for the highjack. 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

Re: [PHP] Re: Early return (was: Inspiration for a Tombstone.)

2008-06-29 Thread Dotan Cohen
2008/6/29 Colin Guthrie <[EMAIL PROTECTED]>: > Dotan Cohen wrote: >> >> Why not? I do this often, but I am not a professional programmer. I >> find this to be very useful. > > Found another opinion/article about this. I remember reading this one a > while back

Re: [PHP] Re: Inspiration for a Tombstone.

2008-07-03 Thread Dotan Cohen
2008/7/2 Daniel Brown <[EMAIL PROTECTED]>: >> Fatal error: Call to undefined function shawn() in /home/shawn/life.php on >> line 1 > >I like it. ;-P > I think that a 500 internal service error would be more appropriate at that stage... Dotan Cohen h

Re: [PHP] is there a problem with php script pulling HTML out of database as it writes the page??

2008-07-17 Thread Dotan Cohen
ry 90 seconds until someone > does. When in doubt, hijack a thread. > You do realize, of course, that this is posted in a hijacked thread? 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] is there a problem with php script pulling HTML out of database as it writes the page??

2008-07-17 Thread Dotan Cohen
ient into her console and their > SQL statements intermingle until something magic happens. At least that's > what my Daddy told me when I was a little regex. No, no, you've got it all wrong: http://www.zoitz.com/archives/14 Dotan Cohen http://what-is-what.com http://gibberish.co.il

Re: [PHP] very very small CMS

2008-07-19 Thread Dotan Cohen
2008/7/18 OOzy Pal <[EMAIL PROTECTED]>: > The cms should manage small websites (mainly article type). MediaWiki also deserves a mention: http://www.mediawiki.org/wiki/MediaWiki -- Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-

Re: [PHP] How to submit form via PHP

2008-08-15 Thread Dotan Cohen
; > Thanks in advance for any suggestions. > [/snip] > > Click 'Submit' > > > > Your form tag needs an action statement > > > > All of the form's variables will be available in the $_POST array > I think he's asking how to make a POST r

[PHP] Adding a single php file to .htaccess.

2008-08-24 Thread Dotan Cohen
parse specific files as PHP: AddType application/x-httpd-php filename.html I know that I am doing something wrong, but I do not know what. Any ideas? Thanks! -- Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת ä-ö-ü-ß-Ä-Ö-Ü

Re: [PHP] Adding a single php file to .htaccess.

2008-08-24 Thread Dotan Cohen
navoidable then I can live with it. Thanks! -- Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת ä-ö-ü-ß-Ä-Ö-Ü

Re: [PHP] Adding a single php file to .htaccess.

2008-08-24 Thread Dotan Cohen
ems :)) > if that's > possible in httpd.conf or .htaccess using a Files section to tell Apache to > execute it with PHP. I don't see that as any more portable. If would keep the php file portable. -- Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט

Re: [PHP] Adding a single php file to .htaccess.

2008-08-24 Thread Dotan Cohen
know what line to add to .htaccess to have it parse a specific file as php. But it is no longer critical for this project because I will use the shebang line. Thanks! -- Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת ä-ö-ü-ß-Ä-Ö-Ü

Re: [PHP] Adding a single php file to .htaccess.

2008-08-25 Thread Dotan Cohen
I get to a place where I dare run SSH I will try that. It looks to be just what I was looking for, thanks. -- Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת ä-ö-ü-ß-Ä-Ö-Ü

Re: [PHP] PHP IDE needed

2008-08-28 Thread Dotan Cohen
2008/8/28 Shelley <[EMAIL PROTECTED]>: > Though vim is not a so-called IDE, actually it's quite handy. > And as PHP is not [generally] compiled, no "IDE" is needed. VIM is great, and for a GUI text editor I use Kate. Note that there will soon be a VIM mode in Kate! I ca

Re: [PHP] PHP IDE needed

2008-08-28 Thread Dotan Cohen
f using vi, vim, pico, nano, emacs, epsilon, kate, > notepad(!), notepad2, aptana, eclipse, and many more I can't remember. It's > text, use what works for you. > I've also rarely answered this question, and I don't know why I spoke up today. -- Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת ä-ö-ü-ß-Ä-Ö-Ü

Re: [PHP] PHP IDE needed

2008-08-28 Thread Dotan Cohen
; stepping features and break points that can make debugging a whole lot > easier and quicker. > Dan, you are right. A debugger most certainly makes it an IDE. As I don't use a debugger I never really paid attention to their existence. I stand corrected. -- Dotan Cohen http://what-is-what.

Re: [PHP] PHP IDE needed

2008-08-28 Thread Dotan Cohen
2008/8/28 Stut <[EMAIL PROTECTED]>: > And thanks for the tasty eggs! > Eggs? I've obviously missed something. So long, and thanks for all the fish! -- Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת ä-ö-ü-ß-Ä-Ö-Ü

Re: [PHP] PHP IDE needed

2008-08-28 Thread Dotan Cohen
2008/8/28 Micah Gersten <[EMAIL PROTECTED]>: > That's an opinion that you state as fact. You must be new here :) -- Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת ä-ö-ü-ß-Ä-Ö-Ü

Re: [PHP] PHP IDE needed

2008-08-28 Thread Dotan Cohen
ant as an in-joke, with absolutely no offense intended. Quite the opposite, it is most often said to veterans. -- Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת ä-ö-ü-ß-Ä-Ö-Ü

Re: [PHP] How to submit form via PHP

2008-09-28 Thread Dotan Cohen
in the early 00's because of sites that were coded for the undocumented 'features' of specific browsers five years prior? Additionally, if you cannot test all the varied platforms (PC, cellphones, iPhone, PS3, browsers for the disabled) then you should not rely on undocumented behaviour. Dota

Re: [PHP] what's the difference in the following code?

2008-10-18 Thread Dotan Cohen
our code (and I like the top one :-) > )? > > thanks. > > -ll > Chris posts here, you might want to stfa for his address and cc him the question to the list. Just be sure not to bug him offlist, that is generally frowned upon. -- Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת ä-ö-ü-ß-Ä-Ö-Ü

Re: [PHP] Convert video to FLV like youtube

2008-10-18 Thread Dotan Cohen
eg -itsoffset -1 -i "$@" -vcodec png -vframes 1 -an -f rawvideo -s 640x480 $filename.3.png In addition to the video it creates three png files, from the first few frames of the video. I choose one of these pngs (rm the other two) and use it as the thumbnail for the video in the flash

Re: [PHP] Re: Replacing with f*ck and f*cking

2008-10-26 Thread Dotan Cohen
my old address: Middlesex. > > I can't believe you didn't use the infamous "Scunthorpe" as your example :p > > Col There was a post on Coding Horror not long ago that brought this one up: http://google.com/search?q=consbreastution http://www.codinghorror.com/bl

Re: [PHP] Mailing lists

2008-10-29 Thread Dotan Cohen
2008/10/29 Richard Heyes <[EMAIL PROTECTED]>: > Hi, > > Anyone know of a good (as opposed to a bad) mailing list manager, > other than freelists.org (which I can't seem to get working). > > Thanks. > Gmail! -- Dotan Cohen http://what-is-what.com http://gibberish

Re: [PHP] Mailing lists

2008-11-01 Thread Dotan Cohen
roups.google.com/group/rgraph >> > > OH GOD MY EYES ARE BLEEDING! Is that a breast cancer awareness group? > OMG Ponies!!! -- Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת ä-ö-ü-ß-Ä-Ö-Ü

Re: [PHP] Mailing lists

2008-11-01 Thread Dotan Cohen
#x27;t spend the last two-hundred-thirty-two years butchering > the language just for you to correct us, Sheridan! If you guys had > gotten it right in the first place, we wouldn't have had to improve > it! ;-P > You mean fork it? funEnglish? -- Dotan Cohen http://what-is-what.c

Re: [PHP] Mailing lists

2008-11-03 Thread Dotan Cohen
2008/11/3 Richard Heyes <[EMAIL PROTECTED]>: >>> OMG Pwnies! >>> >> Fixed that for you. > > In my best Manuel voice (kinda topical)... Keh?? > /. memes. You may be better off not knowing. -- Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-

Re: [PHP] Mailing lists

2008-11-03 Thread Dotan Cohen
2008/11/3 Daniel P. Brown <[EMAIL PROTECTED]>: >Dark matter, grey matter, fecal matter, it doesn't matter. > It's all mind over matter. I've got no mind, and it doesn't seem to matter. -- Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו

Re: [PHP] basic php question...

2008-11-04 Thread Dotan Cohen
2008/11/4 bruce <[EMAIL PROTECTED]>: > and what's the best way to do the redirect > Header redirects are my preferred method, because of the Back button on the browser. > sample code would be cool! > It is available at php.net/manual -- Dotan Cohen http:

Re: [PHP] basic php question...

2008-11-04 Thread Dotan Cohen
without Javascript enabled, such as those who use the popular Firefox extension NoScript or who are browsing from a cellphone / PDA. -- Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת ä-ö-ü-ß-Ä-Ö-Ü

Re: [PHP] basic php question...

2008-11-04 Thread Dotan Cohen
Is there a compliance test? -- Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת ä-ö-ü-ß-Ä-Ö-Ü

Re: [PHP] basic php question...

2008-11-04 Thread Dotan Cohen
mpliance too, which they weren't. Now, lots of $$$ later, they are. -- Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת ä-ö-ü-ß-Ä-Ö-Ü

Re: [PHP] basic php question...

2008-11-04 Thread Dotan Cohen
2008/11/4 Boyd, Todd M. <[EMAIL PROTECTED]>: >> Is there a compliance test? > > There's a link at the bottom of this page for an automated test: > > http://pamil-visions.com/W3C-compliance.php > Thanks! -- Dotan Cohen http://what-is-what.com http://gibberish.co.

[PHP] Phonetic speller function

2005-01-16 Thread Dotan Cohen
ility to command my little compter to give me four possible spellings of kayak. So I now turn to the popular php community for advise. What functions could be reccommended to complete the task? Is there a better way of doing this? Was I better off trying to do it with explode/implode or is the

Re: [PHP] Phonetic speller function

2005-01-17 Thread Dotan Cohen
s with the wealth of information the php community is willing to share. Dotan On Monday 17 January 2005 04:41 am, Richard Lynch wrote: > Dotan Cohen wrote: > > kayak. Focusing only on the 'k's I get this array: kayak, cayac. But I > > need > > kayak, kayac, cayak, cayac. >

Re: [PHP] Code Check

2005-05-31 Thread Dotan Cohen
print $con->query($query); > > $con->query("OPTIMIZE TABLE LoginTracker "); > > > > $this->discon ($conClas, $con); > > } > > thx > janbro > -snip- $query = "DELETE FROM LoginTracker W

[PHP] stripping html tags

2005-06-05 Thread Dotan Cohen
t;/(.|\s)*?<\/head>/i" , "" , $text); ==^ It seems to be pointing to the 'e' is 'head'. Why? Thanks. Dotan Cohen http://lyricslist.com/lyrics/pages/artist_albums.php/416/Queen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Parsing wml files as php

2005-06-05 Thread Dotan Cohen
I have gone over and over through google and various archives, but cannot come up with a solution even though I am convinced that this is a FAQ: I want to parse my .wml files. So in .htaccess I have: AddType application/x-httpd-php .wml AddType text/vnd.wap.wml .wml But it does not parse! If I rem

Re: [PHP] stripping html tags

2005-06-05 Thread Dotan Cohen
On 6/5/05, Marek Kilimajer <[EMAIL PROTECTED]> wrote: > Dotan Cohen wrote: > > I took this example from php.net, but can't figure out where I went > > wrong. Why does this: > > $text = preg_replace("/(.|\s)*?<\/head>/i" , "" , $text); >

Re: [PHP] Parsing wml files as php

2005-06-05 Thread Dotan Cohen
On 6/5/05, Marek Kilimajer <[EMAIL PROTECTED]> wrote: > Dotan Cohen wrote: > > I have gone over and over through google and various archives, but > > cannot come up with a solution even though I am convinced that this is > > a FAQ: > > I want to parse my .

Re: [PHP] Parsing wml files as php

2005-06-05 Thread Dotan Cohen
On 6/5/05, Marek Kilimajer <[EMAIL PROTECTED]> wrote: > Dotan Cohen wrote: > > On 6/5/05, Marek Kilimajer <[EMAIL PROTECTED]> wrote: > > > >>Dotan Cohen wrote: > >> > >>>I have gone over and over through google and various archives,

Re: [PHP] Re: stripping html tags

2005-06-05 Thread Dotan Cohen
On 6/5/05, Matthew Weier O'Phinney <[EMAIL PROTECTED]> wrote: > * Dotan Cohen <[EMAIL PROTECTED]>: > > I took this example from php.net, but can't figure out where I went > > wrong. Why does this: > > $text = preg_replace("/(.|\s)*?<\/head>/

Re: [PHP] Re: stripping html tags

2005-06-05 Thread Dotan Cohen
On 6/6/05, Brian V Bonini <[EMAIL PROTECTED]> wrote: > On Sun, 2005-06-05 at 16:05, Dotan Cohen wrote: > > > I don't want to strip out all the tags, just certain ones. But the > > problem turned out not to be in this peice of code- the script simply > > wasn&

Re: [PHP] Parsing wml files as php

2005-06-05 Thread Dotan Cohen
On 6/5/05, M. Sokolewicz <[EMAIL PROTECTED]> wrote: > Dotan Cohen wrote: > > On 6/5/05, Marek Kilimajer <[EMAIL PROTECTED]> wrote: > > > >>Dotan Cohen wrote: > >> > >>>On 6/5/05, Marek Kilimajer <[EMAIL PROTECTED]> wrote: > >&g

Re: [PHP] Re: stripping html tags

2005-06-05 Thread Dotan Cohen
On 6/6/05, Brian V Bonini <[EMAIL PROTECTED]> wrote: > On Sun, 2005-06-05 at 18:13, Dotan Cohen wrote: > > On 6/6/05, Brian V Bonini <[EMAIL PROTECTED]> wrote: > > > On Sun, 2005-06-05 at 16:05, Dotan Cohen wrote: > > > > > > > I don't wa

Re: [PHP] stripping html tags

2005-06-05 Thread Dotan Cohen
On 6/6/05, Richard Lynch <[EMAIL PROTECTED]> wrote: > On Sun, June 5, 2005 7:05 am, Dotan Cohen said: > > I took this example from php.net, but can't figure out where I went > > wrong. Why does this: > > $text = preg_replace("/(.|\s)*?<\/head>/i" , &

Re: [PHP] Re: stripping html tags

2005-06-06 Thread Dotan Cohen
On 6/6/05, Chris Shiflett <[EMAIL PROTECTED]> wrote: > Dotan Cohen wrote: > > IF you know every single tag that exists! And being how I only wanted > > to remove four of them, the list of 'what to remove' is so much more > > compact than the 'leave

Re: [PHP] stripping html tags

2005-06-06 Thread Dotan Cohen
your original problem :-) > > But, hey, ya learned some stuff, and that's never bad. :-) > > On Sun, June 5, 2005 6:36 pm, Dotan Cohen said: > > On 6/6/05, Richard Lynch <[EMAIL PROTECTED]> wrote: > >> On Sun, June 5, 2005 7:05 am, Dotan Cohen said: > >&

[PHP] Really simple regex

2005-06-08 Thread Dotan Cohen
Now, I know that this is easy, but I am embarassed to say that I can't find a regex tutorial that will show me how to match any occurances of x and replace them with one x: x >x xx > x x > x $string="I have apples!"; $string=preg_replace("-regex here-","x", $string); print "$string";

Re: [PHP] Really simple regex

2005-06-08 Thread Dotan Cohen
On 6/8/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Quoting Dotan Cohen <[EMAIL PROTECTED]>: > > $string="I have apples!"; > $string=preg_replace("/x+/sim","x", $string); > print "$string"; > > hope it helps.

Re: [PHP] Really simple regex

2005-06-08 Thread Dotan Cohen
On 6/8/05, Jochem Maas <[EMAIL PROTECTED]> wrote: > Dotan Cohen wrote: > > On 6/8/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > >>Quoting Dotan Cohen <[EMAIL PROTECTED]>: > >> > >>$string="I have apples!"

Re: [PHP] Really simple regex

2005-06-09 Thread Dotan Cohen
On 6/8/05, John Nichel <[EMAIL PROTECTED]> wrote: > preg_replace ( "/x+/", "x", $string ); > preg_replace ( "/x{1,}/", "x", $string ); > > But those will also change a letter 'x' in a word, so you'll probably > need to tinker with that part too. > > -- > John C. Nichel > ÜberGeek > KegWorks.com >

[PHP] Converting [and] to XML format- help/advise requested

2005-06-14 Thread Dotan Cohen
Hi gurus. I'm having fun replacing the text within [ and ] to XML format on 4000+ files on a windows XP machine. I installed php (and an apache server) on the machine because it is the only language the I am remotely familiar with. I want and text that is with [ and ] to be enclosed with and . Go

Re: [PHP] Re: Converting [and] to XML format- help/advise requested

2005-06-14 Thread Dotan Cohen
On 6/14/05, Sebastian Mendel <[EMAIL PROTECTED]> wrote: > Dotan Cohen wrote: > > Hi gurus. I'm having fun replacing the text within [ and ] to XML > > format on 4000+ files on a windows XP machine. I installed php (and an > > apache server) on the machine because

Re: [PHP] Re: Converting [and] to XML format- help/advise requested

2005-06-14 Thread Dotan Cohen
On 6/14/05, Sebastian Mendel <[EMAIL PROTECTED]> wrote: > Dotan Cohen wrote: > > Hi gurus. I'm having fun replacing the text within [ and ] to XML > > format on 4000+ files on a windows XP machine. I installed php (and an > > apache server) on the machine because

<    1   2   3   4   5   6   >