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

2005-06-15 Thread Dotan Cohen
On 6/15/05, Tom Rogers <[EMAIL PROTECTED]> wrote: > Hi, > > Wednesday, June 15, 2005, 4:42:24 AM, you wrote: > DC> On 6/14/05, Sebastian Mendel <[EMAIL PROTECTED]> wrote: > >> Dotan Cohen wrote: > >> > Hi gurus. I'm having fun replacing the te

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

2005-06-15 Thread Dotan Cohen
On 6/15/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 s

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

2005-06-17 Thread Dotan Cohen
On 6/16/05, Sebastian Mendel <[EMAIL PROTECTED]> wrote: > Dotan Cohen wrote: > > On 6/15/05, Sebastian Mendel <[EMAIL PROTECTED]> wrote: > >> Dotan Cohen wrote: > >> > >>>>> Hi gurus. I'm having fun replacing the text within [ and ] t

Re: [PHP] word lists

2005-06-20 Thread Dotan Cohen
On 6/20/05, Jochem Maas <[EMAIL PROTECTED]> wrote: > Cilliè wrote: > > Hi guys, > > i'm new on the list, so hi ! > > anyway, sorry if this is the wrong place to ask. > > > > uhm, wouldn't any one by any chance know where i could > > find a list of rubbish words, i mean, words like > > {and,this,tha

[PHP] Predictable-random array

2005-06-20 Thread Dotan Cohen
I've got an array $items which has about 200 entires. I want to print them out in random order, but as usual, I have a catch! I need to add a 'key' so that if need be, I can always return to the same 'random' order, like so: $items=predicatable_random($items, "qwerty"); so for each place that I n

Re: [PHP] phpInfo() executed on Yahoo!

2005-06-20 Thread Dotan Cohen
On 6/20/05, Jason Barnett <[EMAIL PROTECTED]> wrote: > Rats, I guess Andrei is watching this list because it's already down :P > > I knew they used PHP... but it would have been cool to see what things > they've done to handle the number of page requests they have. Oh well. :-/ > If anybody wa

Re: [PHP] phpInfo() executed on Yahoo!

2005-06-20 Thread Dotan Cohen
On 6/20/05, Chris W. Parker <[EMAIL PROTECTED]> wrote: > AmirBehzad Eslami > on Monday, June 20, 2005 12:11 PM said: > > > On Monday, June 20, 2005, Jason Barnett wrote: > > > >> [..] but it would have been cool to see what things > > they've done to handle the numbe

Re: [PHP] Predictable-random array

2005-06-21 Thread Dotan Cohen
On 6/20/05, Marek Kilimajer <[EMAIL PROTECTED]> wrote: > Dotan Cohen wrote: > > I've got an array $items which has about 200 entires. I want to print > > them out in random order, but as usual, I have a catch! I need to add > > a 'key' so that if need b

Re: [PHP] Predictable-random array

2005-06-21 Thread Dotan Cohen
On 6/21/05, Jochem Maas <[EMAIL PROTECTED]> wrote: > Dotan Cohen wrote: > > I've got an array $items which has about 200 entires. I want to print > > it might be helpful to know where the array comes from. > or maybe its a static definition to start with (nothi

Re: [PHP] text areas and line brakes

2005-06-21 Thread Dotan Cohen
On 6/21/05, Sunny Boy <[EMAIL PROTECTED]> wrote: > if someone writes something in a text box, how would I convert a line > break in the text area to echo a ? I think i'll have to get the \n > and convert it. can anyone tell me? > > Thanks. > > sunny > > -- > PHP General Mailing List (http://www.

Re: [PHP] Re: Help recognizing bots?

2005-06-24 Thread Dotan Cohen
On 6/24/05, Richard Lynch <[EMAIL PROTECTED]> wrote: > On Thu, June 23, 2005 3:37 am, JamesBenson said: > > http://www.funender.com/phpBB2/about18577.html > > Call me crazy, but... > > A) > Doesn't robots.txt have to be in public_html? How the hell can the robots > read it if it's in the root fo

[PHP] newline and pregreplace

2005-06-24 Thread Dotan Cohen
I've got a line like this: $str=preg_replace( "-regex here-", '\n\1', $str); Which has one of two problems: If I leave the single quotes around the second argument, then it returns as \n and not a newline. If I change the single quotes to double quotes, then the info from the regex is not inserted

[PHP] Removing nonlatin characters

2005-06-24 Thread Dotan Cohen
I thought that this was another old STFA but marc and google are quiet. I as parsing a bunch of submitted works and some of them have non-latin characters. I know that I once saw in the user-submitted notes in the docs a function for replacing them with o,a,i,e,u but I can't find it. I think that

Re: [PHP] Re: newline and pregreplace

2005-06-24 Thread Dotan Cohen
On 6/25/05, Bob Winter <[EMAIL PROTECTED]> wrote: > > > Bob Winter wrote: > > Dotan Cohen wrote: > > > >> I've got a line like this: > >> $str=preg_replace( "-regex here-", '\n\1', $str); > >> > >> Which has

[PHP] Correcting contractions

2005-06-24 Thread Dotan Cohen
Hi friends, I've got a nice array of contractions (I've, I'd, they'll,...). My intent is to take submitted data and replace, say, every occurance of 'theyd' with 'they'd'. So far, so good. The trick is doing it if the first character is uppercase. I tried going throught the array, one by one, and d

Re: [PHP] Correcting contractions

2005-06-24 Thread Dotan Cohen
On 6/25/05, Robert Cummings <[EMAIL PROTECTED]> wrote: > On Fri, 2005-06-24 at 21:02, Dotan Cohen wrote: > > Hi friends, I've got a nice array of contractions (I've, I'd, > > they'll,...). My intent is to take submitted data and replace, say, > > e

Re: [PHP] Correcting contractions

2005-06-25 Thread Dotan Cohen
On 6/25/05, Bob Winter <[EMAIL PROTECTED]> wrote: > Dotan, > > Your task intrigued me, so I put together a function that will help process > your data: > ><<< snippped and trimmed as per Buehan Khalid suggeted >>> > ?> > > --Bob > Thank you Bob! This is the route that I had tried going do

Re: [PHP] Removing nonlatin characters

2005-06-27 Thread Dotan Cohen
On 6/27/05, Kristen G. Thorson <[EMAIL PROTECTED]> wrote: > Have you seen: > > http://us2.php.net/manual/en/function.recode-string.php > > kgt > No, I didn't see that. Thank you! What CAN'T php do?!? Dotan Cohen http://lyricslist.com/lyrics/artist_albums/

Re: [PHP] Removing nonlatin characters

2005-06-27 Thread Dotan Cohen
On 6/27/05, John Nichel <[EMAIL PROTECTED]> wrote: > Dotan Cohen wrote: > > > What CAN'T php do?!? > > > I can't get it to alter space-time...yet. > > -- > John C. Nichel > ÜberGeek > KegWorks.com > 716.856.9675 > [EMAIL PROTECTED] &

Re: [PHP] newline and pregreplace

2005-07-01 Thread Dotan Cohen
On 7/1/05, Richard Lynch <[EMAIL PROTECTED]> wrote: > On Fri, June 24, 2005 3:18 pm, Dotan Cohen said: > > I've got a line like this: > > $str=preg_replace( "-regex here-", '\n\1', $str); > > > > Which has one of two problems: If I leave

Re: [PHP] Re: Removing nonlatin characters

2005-07-01 Thread Dotan Cohen
have nothing to fear from free speech and free information on the > Internet, but pop-up advertising! > > http://metalbunny.net/ > My little mess of things... > Thank you Rene. Does this approach have any special advantages over recode_string? Dotan Cohen http://song-lirics.com/sl/artist/167/the-doors-lirics.php The Doors Lirics

Re: [PHP] newline and pregreplace

2005-07-01 Thread Dotan Cohen
On 7/2/05, Richard Lynch <[EMAIL PROTECTED]> wrote: > On Fri, July 1, 2005 3:35 am, Dotan Cohen said: > > By the way, I see that you advertise offices on all the planets and > > most of the major moons, but when I try to get in contact with the > > Uranus branch

Re: [PHP] Re: Removing nonlatin characters

2005-07-04 Thread Dotan Cohen
On 7/4/05, Rene Brehmer <[EMAIL PROTECTED]> wrote: > Documented research indicate that on Fri, 1 Jul 2005 13:58:23 +0300, Dotan > Cohen wrote: > > > On 6/29/05, Rene Brehmer <[EMAIL PROTECTED]> wrote: > > I think you mean something like this: >

[PHP] foreach in php4

2005-07-04 Thread Dotan Cohen
= array(); foreach ($pre_arr as &$value) { $arr[] = $value * 2; } // $arr is now array(2, 4, 6, 8) Is there a better way? Thanks. Dotan Cohen http://lyricslist.com/lyrics/artist_albums/327/martin_ricky.php Martin, Ricky Song Lyrics -- PHP General Mailing List (http://www.php.net/) To unsubs

Re: [PHP] foreach in php4

2005-07-06 Thread Dotan Cohen
"4"); > array_walk($arr, 'mul'); > var_dump($arr); > > > Best regards, > Shiqi Yang > > -Original Message- > From: Dotan Cohen [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 05, 2005 1:40 PM > To: PHP Lists > Subject: [PHP] foreach

Re: [PHP] Time Zone names

2005-07-13 Thread Dotan Cohen
On 7/13/05, Richard Lynch <[EMAIL PROTECTED]> wrote: > I'd like to generate a list of time zones (EST, CDT, whatever) for a popup. > > Seems like it should be easy... > > This is so the Sales guy can just plug in the time and zone of who he's > gotta call back, and I stuff that in the database, a

Re: [PHP] Usability review - OT

2005-07-16 Thread Dotan Cohen
On 7/15/05, Mark Rees <[EMAIL PROTECTED]> wrote: > Hello > > Sorry for the OT request. > > Does anyone know of anywhere I can get my website picked apart from a > usability point of view? I'm thinking of general first impressions rather > than an in-depth review of functionality. > > Thanks > >

Re: [PHP] Removing special characters

2005-07-16 Thread Dotan Cohen
On 7/14/05, Computer Programmer <[EMAIL PROTECTED]> wrote: > Is there a PHP built-in function to retrieve only the alphanumeric > characters from a given string? > > I know that I can check for alphanumeric characters using the > function ctype_alphanum () but it won't retrieve the alphanum charac

Re: [PHP] Re: Displaying HTML safely

2005-07-16 Thread Dotan Cohen
ken. It is non-standard. It's bugs are not fixed. The more you bang your head against the wall trying to fix what is Microsoft's responsibility to fix, the less reason people will have to switch to a non-broken browser (or OS!). Let them use a standards-compliant web browser. Dotan Cohen http://x-christmas.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] quick question about using capital letters coding w/ PHP

2005-07-24 Thread Dotan Cohen
On 7/24/05, Bruce Gilbert <[EMAIL PROTECTED]> wrote: > Hello, > > I am well versed in coding with xhtml which requires all lower case > and am pretty much a newbie at PHP so that is why I am asking this > question. > > is this acceptible > > if ($_post [sender_email] == "") or does at have to be

Re: [PHP] quick question about using capital letters coding w/ PHP

2005-07-26 Thread Dotan Cohen
On 7/25/05, Jochem Maas <[EMAIL PROTECTED]> wrote: > ...somebody beat me with a virtual stick if I am wrong! Why? I'd rather just throw the php.net/manual at you! Dotan http://lyricslist.com/lyrics/artist_albums/23/aguilera_christina.php Aguilera, Christina Song Lyrics -- PHP General Mailing Lis

Re: [PHP] Help needed in changing row color

2005-07-26 Thread Dotan Cohen
On 7/26/05, suma parakala <[EMAIL PROTECTED]> wrote: > Hi > I am retrieving data from postgresql and displaying it in form of table in > different rows. > my problem is when check box is clicked i need to change the color of the > row .agai when the check box is unclicked it should hold the old col

Re: [PHP] quick question about using capital letters coding w/ PHP

2005-07-26 Thread Dotan Cohen
On 7/26/05, Jochem Maas <[EMAIL PROTECTED]> wrote: > >>...somebody beat me with a virtual stick if I am wrong! > > Why? I'd rather just throw the php.net/manual at you! > > harddrive or memory stick? just /home/dotan/myfiles/docs/php-manual/ > but seriously did I err? Not that I see. But don't fo

Re: [PHP] quick question about using capital letters coding w/ PHP

2005-07-26 Thread Dotan Cohen
On 7/26/05, Jochem Maas <[EMAIL PROTECTED]> wrote: > >>...somebody beat me with a virtual stick if I am wrong! > > Why? I'd rather just throw the php.net/manual at you! > > harddrive or memory stick? just /home/dotan/myfiles/docs/php-manual/ > but seriously did I err? Not that I see. But don't for

Re: [PHP] quick question about using capital letters coding w/ PHP

2005-07-27 Thread Dotan Cohen
On 7/27/05, Jochem Maas <[EMAIL PROTECTED]> wrote: > Dotan Cohen wrote: > > On 7/26/05, Jochem Maas <[EMAIL PROTECTED]> wrote: > > > >>>>...somebody beat me with a virtual stick if I am wrong! > >>> > >>>Why? I'd rather j

[PHP] FAQ: replace first instance (couldn't find in archive)

2005-07-28 Thread Dotan Cohen
I've seen this discussed before, but no solution seems to have ever been suggested. I'd like to replace the first instance of a substring in a string. So if we were to replace the first 'the' with 'a' in the sentance "Then the big bear ate the little cat in the north of the woods." we would have: "

Re: [PHP] FAQ: replace first instance (couldn't find in archive)

2005-07-28 Thread Dotan Cohen
On 7/28/05, Jochem Maas <[EMAIL PROTECTED]> wrote: > Dotan, > now _I'm_ sending _you_ multiple copies (last one didn't go to the list by > mistake!) > > php -r ' > echo preg_replace("#the#","a","Then the big bear ate the little cat in the > north of the woods.",1), "\n"; > ' Wow! It was those h

Re: [PHP] FAQ: replace first instance (couldn't find in archive)

2005-07-28 Thread Dotan Cohen
On 7/28/05, Jochem Maas <[EMAIL PROTECTED]> wrote: > the hash signs are regexp delimiters - you don't ness. need to use hash signs, > normally I either use # or / . > > some of the examples here http://nl2.php.net/preg_replace use @ > > in short read this (like 10 times :-): > http://nl2.php.net/

Re: [PHP] PHP noobie

2005-07-28 Thread Dotan Cohen
t do not wish to place any burden on them to > support the site) Do I really need a data base? > > Please be patient and point the old guy in the right direction. > > Thanks, > Bob S. > Try googleing for wiki software. The software that runs wikipedia is: http://www.mediaw

Re: [PHP] logging in using ssl

2005-07-29 Thread Dotan Cohen
On 7/29/05, Gregory Machin <[EMAIL PROTECTED]> wrote: > Hi > Please advise . > I have a site that needs to move over to ssl only when the user login > authenticates the log in .. > How would i go about this, the cms is exponent writen in php.. > Many Thanks > > -- > Gregory Machin > [EMAIL PROTECT

[PHP] Redirect with referer info

2005-07-30 Thread Dotan Cohen
As this is for link affiliates, I need that referer info sent with the request. How to do that? Thanks. Dotan Cohen Song Lirics http://song-lirics.com/sl/artists.php/b Song Lirics -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Redirect with referer info

2005-07-30 Thread Dotan Cohen
http://dotancohen.com and look at the source code: they all have referers! 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] MYSQL translator

2005-08-01 Thread Dotan Cohen
t > works and a short tutorial. > > For those who would like helping me to provide new language, I'm going > to write down a PDF document for listing the general features, the > properties > of all entries to lessen the creation of new related dictionaries. > > Thanks, &

Re: [PHP] Re: dynamic two column table

2005-08-01 Thread Dotan Cohen
> it spreads the results on both columns. > > > Can you give an example of what you want the output to look like? > > > > > > thanx. > > Use an array for each, and in each row of the table output another field of each array (with a while loop). I do

Re: [PHP] Limit emails from servers & recommend a control panel (most prolly 0T)

2005-08-01 Thread Dotan Cohen
On 8/1/05, Ryan A <[EMAIL PROTECTED]> wrote: > > > P.S Join me in my campaign to get "PROLLY" as a member of the > > > English langauge... > > > > > > If enough people use it, it will prolly get into the dictionary in a few > > > years. > > > > > > :-D > > > > > Here in Texas it's > > already there

Re: [PHP] Re: error checking a null array

2005-08-01 Thread Dotan Cohen
have been answered and which ones not. > > > > > maybe I'm not seeing the problem but I get the impression that you are > > over complicating things regarding checkbox. > > As always this is hugely possible. > > > JJ > You can pass those names in a hidden input field in the form, something like this: Dotan Cohen http://lyricslist.com/lyrics/artist_albums/12/aaliyah.php Aaliyah Song Lyrics -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Regex help

2005-08-02 Thread Dotan Cohen
On 8/2/05, Robin Vickery <[EMAIL PROTECTED]> wrote: > I don't suppose this is the place for a rant about the futility of > checking email addresses with a regexp? > > -robin Let Richard Lynch tell him. He's good at regex's, and it's HIS email address tha

[PHP] Is gethostbyaddr() slow?

2005-08-04 Thread Dotan Cohen
Hi all, I just discovered the gethostbyaddr() function. By reading the user contributed notes, I get the impression that either this function may cause performance problems, or a user-contributed function based upon it may be slow. So, is gethostbyaddr() slow? Is it dangerous? Thanks! Dotan Cohen

[PHP] Interesting Referer behaviour- how to copy it?

2005-08-04 Thread Dotan Cohen
7;s been a fruitless two days for me... Dotan Cohen http://lyricslist.com/lyrics/artist_albums/118/chumbawamba.php Chumbawamba Song Lyrics -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] To count number of vists of one particular Website

2005-08-04 Thread Dotan Cohen
sql and one with flat files. Do you have mysql? Dotan Cohen http://lyricslist.com/lyrics/artist_albums/119/clapton_eric.php Clapton, Eric Song Lyrics -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Interesting Referer behaviour- how to copy it?

2005-08-04 Thread Dotan Cohen
On 8/5/05, Jochem Maas <[EMAIL PROTECTED]> wrote: > he runs php5, you run php4 - is the following set on his server perchance?: > > echo $_SERVER['HTTP_REFERER']; > //or > echo getenv("HTTP_REFERER"); > > note that $HTTP_REFERER is depreciated in php5. > also the freeBSD box may have a firewall t

Re: [PHP] To count number of vists of one particular Website

2005-08-05 Thread Dotan Cohen
On 8/5/05, Tom Chubb <[EMAIL PROTECTED]> wrote: > On 04/08/05, Dotan Cohen <[EMAIL PROTECTED]> wrote: > > On 8/4/05, suma parakala <[EMAIL PROTECTED]> wrote: > > > Hi > > > Can anyone tell me how can I count how many times my website has been > &g

Re: [PHP] To count number of vists of one particular Website

2005-08-05 Thread Dotan Cohen
an a day though, unless you are Google's webmaster! As fot the image, that won't be a problem, but you will need to pass the image through a script. That is no problem at all, I intend to include instructions on how to do so as part of the documentation. Or, you will need to parse your a

Re: [PHP] Regex help

2005-08-07 Thread Dotan Cohen
with 'On' or contain the word 'wr[o|i]te'. You might be better off just searching for any sentance that contains an @ sign, because they are very seldom used outside of email addresses nowadays. And that doesn't make any promises, either, because sometimes the whole email addre

[PHP] Be careful! Look at what this spammer did.

2005-08-15 Thread Dotan Cohen
o stop this. I think that if anybody else has a form that goes to the mail() function, they should learn from this email and put up some code to block it. Dotan Cohen http://lyricslist.com/lyrics/artist_albums/367/n_sync.php N Sync Song Lyrics -- PHP General Mailing List (http://www.php.net/) T

Re: [PHP] Javascript Src and HTTP_REFERER

2005-08-16 Thread Dotan Cohen
On 8/6/05, Cabbar Duzayak <[EMAIL PROTECTED]> wrote: > Hi, > > I have a web page (say page1) which refers to a php within javascript tag as: > > src="http://mysite.com/javascript_dump.php";> > > As you can see, this calls a ph

Re: [PHP] 'God' has spoken... :-)

2005-08-17 Thread Dotan Cohen
mber that on php 3 the file extensions were .php3? That made moving to php4 easy- files ending in .php3 was parsed as 3, and files ending in .php were parsed as 4. Why not do something similar when moving to 5 or 6? Dotan Cohen http://lyricslist.com/lyrics/artist_albums/118/chumbawamba.php Chumbawam

Re: [PHP] Be careful! Look at what this spammer did.

2005-08-17 Thread Dotan Cohen
ing mime headers? > I'll reply soon off list, as I don't think it appropriate to give potential spammers an archive full of new tricks. Dotan Cohen http://lyricslist.com/lyrics/artist_albums/373/newton-john_olivia.php Newton-John, Olivia Song Lyrics -- PHP General Mailing List (htt

Re: [PHP] Be careful! Look at what this spammer did.

2005-08-17 Thread Dotan Cohen
ain content in the form. If the content is there, then nothing gets sent to mail(). Just a little while the spammer sent me message with the form, regarding his opinion of myself, my mother, a horse, and a dead man. His IP was 80.172.48.102 Dotan Cohen http://lyricslist.com/lyrics/artist_albums/332/mccartney_paul.php McCartney, Paul Song Lyrics -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] 'God' has spoken... :-)

2005-08-18 Thread Dotan Cohen
On 8/18/05, Richard Lynch <[EMAIL PROTECTED]> wrote: > The .php3 extension was more of a pain in the ass than it saved... > > It was also possible to compile PHP3 and PHP4 in the same Apache - I > do not think you can do that with 4/5. > > However, Rasmus posted a lovely explanation in this forum

Re: [PHP] Be careful! Look at what this spammer did.

2005-08-18 Thread Dotan Cohen
On 8/18/05, Richard Lynch <[EMAIL PROTECTED]> wrote: > On Mon, August 15, 2005 4:57 pm, Dotan Cohen wrote: > > I have a form that my visitors can email me from. Some jerk is trying > > to fool the mail() function into sending his spam, and I got this > > today: >

Re: [PHP] Be careful! Look at what this spammer did.

2005-08-18 Thread Dotan Cohen
On 8/18/05, Alex Gemmell <[EMAIL PROTECTED]> wrote: > My website form also appeared to get "hacked" (I'm using that term very > loosely), although I have no idea if anything actually got hacked. It > definitely seems like an automated script that crawls the net probing > every form. > > It trigge

Re: [PHP] Be careful! Look at what this spammer did.

2005-08-18 Thread Dotan Cohen
On 8/18/05, Cilliè <[EMAIL PROTECTED]> wrote: > sorry, i'm a bit in the dark here. how did they manage to fill in bcc ? you > mean > that someone can spam from your site by bcc'ing messages to other mail > accounts ? > They are spoofing headers, so that the mailing agent thinks that there are two

Re: [PHP] Be careful! Look at what this spammer did.

2005-08-18 Thread Dotan Cohen
On 8/18/05, Cilliè <[EMAIL PROTECTED]> wrote: > >> Notice that their "hack" contains a BCC to "[EMAIL PROTECTED]". Perhaps > >> this is an email account set up by the "hacker". > > > > sorry, i'm a bit in the dark here. how did they manage to fill in bcc ? > > you mean > > that someone can spam fr

Re: [PHP] 'God' has spoken... :-)

2005-08-19 Thread Dotan Cohen
On 8/19/05, Jochem Maas <[EMAIL PROTECTED]> wrote: > actually he posted (an update?) a full on explanation (again!) just 5 days > ago (on the 14th August 2005) on how to do it in reply to this thread! I had to read your post twice to understand to which _he_ you are referring. Then I reread the sub

[PHP] Printing \n and \r to the screen

2005-08-24 Thread Dotan Cohen
t get replaced. I also tried escaping the backslash, then double escaping that as was suggested somewhere in the php.net/manual, then triple escaping! Thanks ahead of time for any insight. Dotan Cohen http://lyricslist.com/lyrics/artist_albums/183/etheridge_melissa.php Etheridge,Melissa Song L

Re: [PHP] Printing \n and \r to the screen

2005-08-24 Thread Dotan Cohen
On 8/24/05, Jay Blanchard <[EMAIL PROTECTED]> wrote: > [snip] > I seem to be having trouble with \n and \r in variables. I write my > code on a linux box, and the server is linux. So I should always have > \n\r, no? Is there a way the I could print $variable; and have it show > me the /n and /r 's

Re: [PHP] Re: Be careful! Look at what this spammer did.

2005-08-25 Thread Dotan Cohen
On 25 Aug 2005 10:53:37 +0530, Raj Shekhar <[EMAIL PROTECTED]> wrote: > Dotan Cohen <[EMAIL PROTECTED]> writes: > > > I don't really like CAPTCHA's. I'm filtering the content now, which is > > in my opinion better anyway. In my university one

Re: [PHP] Printing \n and \r to the screen

2005-08-25 Thread Dotan Cohen
On 8/25/05, Richard Lynch <[EMAIL PROTECTED]> wrote: > > Windows uses \r\n > Linux uses \n > Mac uses \r > > Depending on what tools you use to read/write/create the files, and > where the data comes from, it's possible that you have any of those > formats. > > This is especially true of FORM da

[PHP] Variables not available

2005-09-12 Thread Dotan Cohen
repair it? Thanks. Dotan Cohen http://lyricslist.com/lyrics/artist_albums/458/spice_girls.php Spice Girls Song Lyrics -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Variables not available

2005-09-12 Thread Dotan Cohen
On 9/12/05, Burhan Khalid <[EMAIL PROTECTED]> wrote: > Dotan Cohen wrote: > > I am running php 5.0.4 at home on my Fedora Core 4 box. Post and get > > variables are not available in my scripts. For instance, in > > file.php?foo=bar the variable $foo is empty. Same thing

Re: [PHP] Variables not available

2005-09-12 Thread Dotan Cohen
On 9/12/05, Ryan A <[EMAIL PROTECTED]> wrote: > > On 9/12/2005 9:00:46 AM, Dotan Cohen ([EMAIL PROTECTED]) wrote: > > I am running php 5.0.4 at home on my Fedora Core 4 box. Post and get > > variables are not available in my scripts. For instance, in > > file.ph

[PHP] No redirect with header()

2005-10-16 Thread Dotan Cohen
logo or the word "Song Lyrics" above the ads. Thanks in advance for any help. Dotan Cohen. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] No redirect with header()

2005-10-16 Thread Dotan Cohen
On 10/16/05, Paul Waring <[EMAIL PROTECTED]> wrote: > On Sun, Oct 16, 2005 at 05:04:09PM +0200, Dotan Cohen wrote: > > header ("Location: ".$url); > > ?> > > > > Does this seem like it should work? It doesn't. What is the correct > > sy

[PHP] Silly regex giveing me a hard time

2005-10-16 Thread Dotan Cohen
I have a list like this: 235 Some info 12323 other 5 things No number on this line! 43 something or other I need to remove the first number from each line, so that I will get this: Some info other 5 things No number on this line! something or other So I tried: $data=preg_replace("//n[ ]*[

Re: [PHP] Re: Silly regex giveing me a hard time

2005-10-16 Thread Dotan Cohen
On 10/16/05, Darvin <[EMAIL PROTECTED]> wrote: > Dotan Cohen wrote: > > I have a list like this: > > 235 Some info > > 12323 other 5 things > > No number on this line! > > 43 something or other > > > > I need to remove the first number fro

Re: [PHP] Re: No redirect with header()

2005-10-19 Thread Dotan Cohen
On 10/18/05, Oliver Grätz <[EMAIL PROTECTED]> wrote: > Snippets are bad ;-) > > Please post a full example that is _not_ working on your server. > Perhaps this is no PHP problem at all. > I know, but I don't want to post my tracking code. I am certain, however, that it is not returning anything to

Re: [PHP] Re: No redirect with header() [solved]

2005-10-20 Thread Dotan Cohen
the Loctation header. I discovered this when I /**/'ed that part of the code. Thanks, all. Another lesson learned! Dotan Cohen http://technology-sleuth.com/index.php . -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: No redirect with header() [solved]

2005-10-20 Thread Dotan Cohen
On 10/20/05, Oliver Grätz <[EMAIL PROTECTED]> wrote: > So perhaps it was good that I was pushing to see the code ;-) > So you looked more closely... > > Tip: I put an output buffer around my "not supposed to output anything" > code: > > ob_start(); > // include function libraries, perform non-visi

[PHP] Adding to a numeric variable, how?

2005-11-05 Thread Dotan Cohen
I have a number that I need to display, and itself plus 2: // 23 25 // How can I shorten it to something like this: Obviously, the above code doesn't do what I want, but I think that it describes what I need! Thanks in advance. Dotan Cohen http://song-lirics.com/sl/artist/498/violent-f

Re: [PHP] Adding to a numeric variable, how?

2005-11-05 Thread Dotan Cohen
On 11/5/05, Paul Waring <[EMAIL PROTECTED]> wrote: > On Sat, Nov 05, 2005 at 01:23:01PM +0200, Dotan Cohen wrote: > > How can I shorten it to something like this: > > > print $number." ".$number+2."\n"; > > ?> > > Try: > >

Re: [PHP] Forum

2005-12-06 Thread Dotan Cohen
had is with forum spam. Phpbb makes it easy to control. I won't go into all the details, but you could research that yourself easily enough. Or email me personally. Dotan Cohen http://technology-sleuth.com/long_answer/what_is_hdtv.html

Re: [PHP] Forum

2005-12-06 Thread Dotan Cohen
On 12/6/05, Andy Pieters <[EMAIL PROTECTED]> wrote: > On Tuesday 06 December 2005 21:25, you boldly pressed keys on your keyboard to > form this message: > > One big problem that I have had is with forum spam. Phpbb makes it > > easy to control. I won't go into all the details, but you could > > re

[PHP] Remove atribute from links

2006-01-08 Thread Dotan Cohen
attribute xxx and the ="something" that follows it? In all fairness I am not good at regexes and need to practice, but I would appreciate any help I can get- I'm really bogged down with studies and simply cannot devote a full day to this 'trivial' excercise. Thanks, all! Dotan Cohen http://technology-sleuth.com/long_answer/why_are_internet_greeting_cards_dangerous.html

Re: [PHP] Remove atribute from links

2006-01-08 Thread Dotan Cohen
; > that follows it? In all fairness I am not good at regexes and > > need to practice, but I would appreciate any help I can get- > > I'm really bogged down with studies and simply cannot devote > > a full day to this 'trivial' excercise. > > I'd forget regexps and use SAX style parser. Trivial then to remove unwanted > attributes. > > Jared > > Thanks. Looking into that now... Dotan Cohen http://technology-sleuth.com/short_answer/what_is_hdtv.html *@

Re: [PHP] Power

2006-01-08 Thread Dotan Cohen
On 1/8/06, Khorosh Irani <[EMAIL PROTECTED]> wrote: > Hello > How I can get the power of an integer number (for example 8 power 2=64) only > with loops (without pow() function)? > Thanks > > Is this for your homework? Untested: Dotan Cohen http://technology

[PHP] Sending mail with php-

2006-01-10 Thread Dotan Cohen
Sender verify failed So I changed the only email address in httpd.conf to: ServerAdmin [EMAIL PROTECTED] But I still get the error! I did restart apache and even went so far as to reboot the machine. If I cannot modify the parameter within apache, then where should I modify it? Within php? Wit

Re: [PHP] Sending mail with php-

2006-01-10 Thread Dotan Cohen
On 1/10/06, Albert <[EMAIL PROTECTED]> wrote: > Dotan Cohen wrote: > > But I still get the error! I did restart apache and even went so far as to > > reboot the machine. If I cannot modify the parameter within apache, > > then where should I modify it? Within php? Within

Re: [PHP] Sending mail with php-

2006-01-10 Thread Dotan Cohen
t; > > > > Original Message > > > >>Date: Tuesday, January 10, 2006 07:03:17 PM +0530 > >>From: Sameer N Ingole <[EMAIL PROTECTED]> > >>To: php-general@lists.php.net > >>Subject: Re: [PHP] Sending mail with php- > >

Re: [PHP] Sending mail with php-

2006-01-11 Thread Dotan Cohen
On 1/10/06, Sameer N Ingole <[EMAIL PROTECTED]> wrote: > Dear Dotan, > Dotan Cohen wrote: > > >On my home Fedora Core 4 box I run Apache 2.0. Sometimes when sending > >mail with php no mail is delivered, and I find this in the logs: > > > ><<&l

Re: [PHP] Sending mail with php-

2006-01-11 Thread Dotan Cohen
ets reliably delivered! > > and phpmailer - thats also be known to help me from myself (when it comes to > make a pig's ear of using the mail() function) - 3 cheers for Richard Heyes > (you just know a class rocks when you can actually name the author by heart! > :-).

Re: [PHP] Sending mail with php-

2006-01-11 Thread Dotan Cohen
t;X-MSMail-Priority: Normal\n"; >$headers .= "X-Mailer: php\n"; >$headers .= "From: \"".$fromname."\" <".$fromaddress.">\n"; >//return mail($toaddress, $subject, $message, $headers); > $toAddress='[EMAIL PROTECTED]'; &

Re: [PHP] Re: Sending mail with php-

2006-01-12 Thread Dotan Cohen
to be expected from a beta service. Both of them deliver to the Inbox. I think that I now have a solution in James Benson's advice. I just haven't had the time to implement it (university). I'll get on it this evening. Thans, all! Dotan Cohen http://technology-sleuth.com/question/what_are_the_advantages_of_lcd_monitors.html 183

Re: [PHP] Lions and tigers and slashes, oh my!

2006-01-13 Thread Dotan Cohen
oo tired to deal with this or the answer would come to > mind immediately. Can someone drop kick me in the right direction? Thanks! > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > Call it "Oil and Gas"? Dotan Cohen http://technology-sleuth.com/long_answer/what_is_hdtv.html 345

Re: [PHP] Lions and tigers and slashes, oh my!

2006-01-13 Thread Dotan Cohen
oo tired to deal with this or the answer would come to > mind immediately. Can someone drop kick me in the right direction? Thanks! > Have you tried "\&"? Dotan Cohen http://technology-sleuth.com/technical_answer/how_much_memory_will_i_need_for_my_digital_camera.html 232

[PHP] Site down?

2006-01-16 Thread Dotan Cohen
I just noticed that http://www.io.org/~rasmus is down. Anybody else remember this site? Dotan Cohen

<    1   2   3   4   5   6