[PHP] Re: Different size of file on server and on output

2007-10-22 Thread Pavel Janda
Thanks a lot. However there wasn't any visible whitespace in code, leaving of ?> helped... I haven't known, that it is not required :o). Thank you very much again! Pavel M. Sokolewicz napsal(a): Pavel Janda wrote: Hello to everybody, I have this problem with downloading files

[PHP] Different size of file on server and on output

2007-10-22 Thread Pavel Janda
Hello to everybody, I have this problem with downloading files via PHP. For illustration - I am using this fragment of code: The problem is, that the file on server has 16857 bytes and saved file has 16858. In another case downloaded file has everytime 1 byte more than the original file on

Re: [PHP] Making coockies valid for multiple domains possible?

2004-01-12 Thread Pavel Janda
> Someone correct me if I'm wrong, but if you set this in your php.ini or with > session_set_cookie_params() to server.com, it's valid across any sub > domains, whereas if you set it to de.server.com, it would only be valid in > the de.server.com sub domain. > > Or possibly try *server.com. I havn'

[PHP] Re: Making coockies valid for multiple domains possible?

2004-01-12 Thread Pavel Janda
"Merlin" <[EMAIL PROTECTED]> píse v diskusním príspevku news:[EMAIL PROTECTED] > Hello everybody, > > I am working on translating my site into multiple languages (i18n). Each > different language is hosted on the same server, but on a different > subdomain. > > example: > de.server.com - german > e

[PHP] Re: not sure why regex is doing this

2004-01-09 Thread Pavel Janda
Hi again, I am not sure, that it is the clearest way, how to do it, but I've tried this: As you can see, I've added more ","s to your string to try, if it works good and it seems, that yes... PJ "Craig" <[EMAIL PROTECTED]> píse v diskusním príspevku news:[EMAIL PROTECTED] > Hi, > > I have a

[PHP] Re: not sure why regex is doing this

2004-01-09 Thread Pavel Janda
Hi Craig, the mistake is in regex, because you replace only the pair of "," with ",NULL,"... So in case, that there are tree "," in row, there is only one pair and it means one replacing.. For example, when your string is like this: (12345) //two pair of ",," the result is (12345,NULL,,NULL,)

[PHP] Time Limit in save-mode

2004-01-09 Thread Pavel Janda
Hello, a have this problem. I am reading some data from another server via http-conection for which I have used fsock_open. But sometimes, it is possible, that reading is longer, than for example 5 seconds, and I want to stop this reading a return false... I found function set_time_limit, whi

Re: [PHP] condensing a list from MySQL

2003-06-09 Thread Pavel Janda
> How about just fixing this so it'll be easier in the future? You should > have a separate table where each "keyword" is in it's own row, with or > without duplicates (depends if you want a "count" of how often the > keyword is used), and an ID relating back to the "article" or whatever > you have

[PHP] Re: Little help

2003-06-09 Thread Pavel Janda
I've just visited your web from Czech rep... Does your script work OK? :o)) Pavel "Mike Mannakee" <[EMAIL PROTECTED]> pí¹e v diskusním pøíspìvku news:[EMAIL PROTECTED] > Hi, I have a script that records the languange and time zone of every user > that comes to the site. Currently I am testing th

[PHP] PHP/Apache - Problem with REMOTE_USER var.

2003-06-09 Thread Pavel Janda
Hello everyone, I have installed apache and PHP (using Windows :o(() on two computers, where httpd.conf and php.ini seem to be same. But, on one mashine is variable REMOTE_USER working well and on the second it is empty all the time, however apache auth.-function works well on both of them. (The c