[PHP] cookies

2003-12-04 Thread Maris Kalnins
Let's assume that we have an html page where we plant a call to cookie registering php script. This is done by the following html line which is placed on that page we would like to have cookies stats for: ... .. http://www.cookiedomain.com/cookies/cookies.php> .. Php cookie registering scr

Re: [PHP] opening msword files outside the browser

2003-06-15 Thread Maris Kalnins
yeah, i guess you're right! then there's no such possibility :( "Adrian" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > oops, i thougt you wanted it opening in the browser. > i don't think there is a way to open it directly outside the browser, > because if this would be possible so

Re: [PHP] opening msword files outside the browser

2003-06-15 Thread Maris Kalnins
Adrian, thanks for the clue! .. but this is opening word document inside the web browser which is not acceptable in my case :( "Adrian" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > you could try > header('Content-Disposition: inline; filename=test.doc'); > > -- PHP General

[PHP] opening msword files outside the browser

2003-06-15 Thread Maris Kalnins
Hi! I am using: What changes should be made to this code to skip the dialog box asking Open, Save, Cancel and go right to the opening the MSWord file outside the browser? Thanks, Maris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] parameters not seen

2002-08-20 Thread Maris Kalnins
Hi! just installed latest php and apache on windows nt! to my big surprise when i am executing test.php?abc=testvalue where test.php = I get empty string can somebody say what's wrong? Thanks, Maris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.

[PHP] how to fight backslash in char variable???

2002-08-20 Thread Maris Kalnins
Hi guys! Situation: $intext = "blablabla ' blablabla"; then this $intext is passed to out.php (as parameter out.php?intext=...) the problem is that from out.php I need to echo this $intext but I get: blablabla \' blablabla the question is.. how to fight this backslash out of there? Thanks,

[PHP] extensions

2002-05-07 Thread Maris Kalnins
Hi! Configuration - windows XP, PHP4 (not in CGI mode), Apache I am experiencing difficulty to add sybase_ct support into php php is installed in C:/PHP4 in php.ini file: extension_dir = C:/PHP4/extensions extension=php_sybase_ct.dll after restarting Apache it says: "Unable to load library 'C

[PHP] $php_self doesnt work in netscape like it should!

2002-04-08 Thread Maris Kalnins
Hi guys! $php_self and $php_referrer doesnt work the same in IE and Netscape When opening a page with IE they return for example http://localhost/directroy/index.php but in Netscape Navigator - http://localhost/directory/ Why? And how to solve this problem? Thanks -- PHP General Mailing L

Re: [PHP] odbc_pconnect doesnt reuse connection

2002-04-03 Thread Maris Kalnins
I am wondering .. why? "Eric Coleman" <[EMAIL PROTECTED]> wrote in message 026b01c1db1c$860b2890$0201a8c0@devstation">news:026b01c1db1c$860b2890$0201a8c0@devstation... > Why won't you just use odbc_connect ? > ----- Original Message - > From: "M

[PHP] odbc_pconnect doesnt reuse connection

2002-04-02 Thread Maris Kalnins
Hi! Configuration: WinXP, the latest Apache, PHP4 The problem is that every time the script runs and the following command is executed $cx=odbc_pconnect($G_dbname, $G_dblogin, $G_dbpassw); it happens very often that a new connection is created instead of reusing the old one! Is there any idea w

[PHP] odbc_pconnect doesnt reuse connection

2002-04-02 Thread Maris Kalnins
Hi! Configuration: WinXP, the latest Apache, PHP4 The problem is that every time the script runs and the following command is executed $cx=odbc_pconnect($G_dbname, $G_dblogin, $G_dbpassw); it happens very often that a new connection is created instead of reusing the old one! Is there any idea w

Re: [PHP] odbc_pconnect

2002-04-02 Thread Maris Kalnins
thanks, I configured php under apache as a module now connection doesn't disappear after script is done it stays alive.. now another problem: first time I open connection this way.. if (empty($cx)){ $cx=odbc_pconnect($G_dbname, $G_dblogin, $G_dbpassw); } if next time i will use the same constr

Re: [PHP] odbc_pconnect

2002-04-02 Thread Maris Kalnins
Yes I am using CGI... So that means under Windows using Apache Server it is impossible to do that? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] odbc vs mysql

2002-04-02 Thread Maris Kalnins
When connecting to database (Sybase) through ODBC it takes some time to establish odbc connection with: $cx=odbc_pconnect($G_dbname, $G_dblogin, $G_dbpassw); And only after that I am able to access data through SQL Selects The problem is that every time the script is finished this connection is

[PHP] odbc_pconnect

2002-04-02 Thread Maris Kalnins
Hi All! I have a situation where I need to keep connection still active after php script is done and page displayed! I tried to use $cx=odbc_pconnect($G_dbname, $G_dblogin, $G_dbpassw); But unfortunately connection closes automatically when script is done! What must I do to keep connection aliv

Re: [PHP] eating mySQL result rows 1 by 1.. a better way?

2002-03-21 Thread Maris Kalnins
Hmm.. but if it's not MySql .. but Sybase for instance? What then?.. there is no such thing like LIMIT in SQL "Joffrey Van Wageningen" <[EMAIL PROTECTED]> wrote in message 014801c1d0f2$fd59ac20$[EMAIL PROTECTED]">news:014801c1d0f2$fd59ac20$[EMAIL PROTECTED]... > - Original Message - >

[PHP] User's IP Address

2002-03-20 Thread Maris Kalnins
Hi! Is there any possibility to get PHP page viewer's ip address.. for example $addr=some_function_that_returns_viewer's_address() or something like that? Thanks, Maris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php