Re: [PHP] reading txt file - certain lines

2004-07-29 Thread Miroslav Hudak (php/ml)
lace the PHP code in (another table) and display the next 5 songs and so on This just allows for a more flexible layout in the final presentation. the way I am having the text files written, there is no way to get it to produce seperate text files - otherwise this would be easy to d

Re: [PHP] URGENT: Space char in rewriterule

2004-07-27 Thread Miroslav Hudak (php/ml)
XX to http://mysite.com/redirect.php?AB XX I didn't find a way to write the " " characters. I tested with RewriteRule ^(([0-9]|[A-Z]|[a-z]|_| )+)$ redirect.php?$1 [L] but didn't work. Thanks! Rob Did you try RewriteRule ^([0-9A-Za-z_%]+)$ redirect.php?$1 ? -- Miroslav Hudak devel

Re: [PHP] Question about for

2004-07-25 Thread Miroslav Hudak (php/ml)
tuitement sur http://fr.messenger.yahoo.com -- Miroslav Hudak developer & designer http://hudak.info -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] editor for remote files using ssh

2004-07-24 Thread Miroslav Hudak (php/ml)
files directly on remote machines? I need a Unix program, preferably a FreeBSD port, but am happy to compile something myself if it will work consistently or at least give some kind of error message if it has difficulty, and not just hang. TIA. Peter. -- Miroslav Hudak developer & desi

Re: [PHP] php and images

2004-07-23 Thread Miroslav Hudak (php/ml)
h jpg pictures in php pages. Path and picture is correct but when i want see picture in php script picture don't show. I use PHP4.3.4 on apache server 2.0.44 on Windopws 2000 Server. Thanks for help. -- Miroslav Hudak developer & designer http://hudak.info -- PHP General Mailing List (http

Re: [PHP] unlink(), is it suppose to delete file???

2004-07-20 Thread Miroslav Hudak (php/ml)
This could happpen when the file is open by another process,... then file is deleted, but filename is still there until the file is not free of any open filedescriptors... I don't know exactly what processes happens in kernel when deleting the file, but it's something like that... and it could

Re: [PHP] Can't install PHP on Windows/Apache

2004-07-20 Thread Miroslav Hudak (php/ml)
Have you added the line with the hash mark (#) ??? if so, then it's commented out... that's the first point. The second one is, that when using Apache 2.0.50, you should use php4apache2 module instead (I'm not ABSOLUTELLY sure of it, while for a longer time using PHP5, but I hope, that somewhat

Re: [PHP] OT but need guidance in timing page views

2004-07-19 Thread Miroslav Hudak (php/ml)
flags properly set to finished session ... and then start the new one... and so on... i hope i've explained it right :) regards, m. Robb Kerr wrote: On Mon, 19 Jul 2004 15:54:14 +0200, Miroslav Hudak wrote: I would do it this way: - open the page and create hidden iframe (or frame with 0%

Re: [PHP] OT but need guidance in timing page views

2004-07-19 Thread Miroslav Hudak (php/ml)
I would do it this way: - open the page and create hidden iframe (or frame with 0% width/height) which will be refreshing itself every ... let's say ... 2 minutes... then you'll get up to 2 minutes accurate numbers... the refreshed page would write timestamp to database every refresh... when the

Re: [PHP] HTML and PHP output to PHP variable

2004-07-12 Thread Miroslav Hudak (php/ml)
hello! use output buffering... regards, m. Maris wrote: Hi! Let's say my index.php consists of the following: PHP says Hello World"; ?> HTML says Hello World ..some other HMTL output.. My question is: how can I make the whole index.php generated output put in one PHP variable? It is also importan

Re: [PHP] usort e & é together

2004-07-11 Thread Miroslav Hudak (php/ml)
Pardon me for the strtolower line, i've just forgot there... it's 4:30AM here in Slovakia... :/ correct listing follows... $authors = array('élen', 'Élen', 'Elison', 'ámadeus', 'albert', 'alfred', 'amadeus', 'elen'); function usort_callback($a, $b) { $a = str_replace(array('á', 'é'), array

Re: [PHP] usort e & é together

2004-07-11 Thread Miroslav Hudak (php/ml)
this is slightly changed function of yours, written for better readability... $authors = array('élen', 'Élen', 'Elison', 'ámadeus', 'albert', 'alfred', 'amadeus', 'elen'); function usort_callback($a, $b) { $a = strtolower($a); $b = strtolower($b); $a = str_replace(array('á', 'é'), arra

Re: [PHP] parse error: [PHP] usort e & é together

2004-07-11 Thread Miroslav Hudak (php/ml)
Dunno the original question, but this obviously should be escaped... So the correct code follows... usort($authors, create_function('$a,$b',' $a = str_replace(array(\'é\', \'a\'), array(\'e\', \'a\'), $a); $b = str_replace(array(\'é\', \'a\'), array(\'e\', \'a\'), $b); return strc

Re: [PHP] Re: [Q] Why does my php file gets displayed instead of executed

2004-07-11 Thread Miroslav Hudak (php/ml)
this all seems just fine to me, aren't you sending some Header: Content-type -s? could you post that init.php script source? and is that apache server working well for other scripts that are called from the forms? AND ... just to be sure,... are you calling that html which contains the form thru

[PHP] US Flag

2001-09-13 Thread Miroslav Hudak
Hi! I've made a background image devoted to all people who are feeling the pain with the people of United States Of America. You can find it on: http://maniax.host.sk/special/usa/images/120901_usbk.jpg. The world's with you, God Bless The USA! m.

[PHP] RE: Grafiti board...

2001-09-09 Thread Miroslav Hudak
Hi! So... A) This was only for illustration... Not much error checking was done... I hope, this is what you need :) D) You have to use CSS: BODY {scrollbar-face-color: #5884B0; scrollbar-shadow-color: black; scrollbar-highlight-color: #BBCCDC; scrollbar-3dlight-color: #BBCCDC; sc

[PHP] RE: newby : MySql

2001-09-09 Thread Miroslav Hudak
Hi! As far as I know, there is no need to configure it... I'm using Apache (btw, try it), and all I need to configure is support for php. MySQL works without any configuration. And accesing the databases thru php: Try to look on MySQL_ functions in php manual (one could be found on www.php.net,