[PHP-WIN] MySQL-max and transaction isolation level ?

2002-04-14 Thread Sviss Cobazor
Hi NG. Can anybody tell me what the possible isolation levels for MySQL-max means while using BDB tables? The meaning of each possible isolation level isn't described, only what levels are possible to set. You can start your server with one of the following values: transaction-isolation= READ-U

[PHP-WIN] BDB transactions ?

2002-03-19 Thread Sviss Cobazor
Hi NG. I'm trying to test transactions by starting a transaction with "SET AUTOCOMMIT=0" and "BEGIN". After that I create a table and insert 2 rows. The 2nd row has an syntax error so this would call for a rollback. But the table gets created and the 1st row are inserted although my test function

[PHP-WIN] how and where to turn autocommit off ?

2002-03-18 Thread Sviss Cobazor
Hi NG. I just wanted to know if anyone could tell me how and where i can set autocommit = 0 for my mysqld-max. I want this setting for all queries, how and where do I do this? Can I set it for the whole server so nothing happens with (update,delete,insert) unless I use begin and commit? Please h

[PHP-WIN] Problems with session_destroy()

2002-03-16 Thread Sviss Cobazor
Hello NG. I'm trying to clear some session variables and destroy the session but it doesn't work. Any suggestions? My code is simple: session_unregister('var1'); session_unregister('var2'); session_unregister('var3'); session_unregister('var3'); session_unregister('var4'); session_unregister('v

[PHP-WIN] Re: Session read problem

2002-03-16 Thread Sviss Cobazor
Remember that a session is normally bound to the the browser window setting it, so if you close down that browser window and open a new one the session_start() will correctly start a session but with another unique session name so it will not access you old session variables since the session now

[PHP-WIN] session_unregister and _destroy ??

2002-03-14 Thread Sviss Cobazor
Hello NG. I'm trying to clear some session variables and destroy the session but it doesn't work. Any suggestions? My code is simple: session_unregister('var1'); session_unregister('var2'); session_unregister('var3'); session_unregister('var3'); session_unregister('var4'); session_unregister('v

[PHP-WIN] Re: strings with $ sign

2002-03-10 Thread Sviss Cobazor
The thing is that the result html code is to be parsed by HTMLDOC (pdf generator) to create pdf from the webpage. By inserting <-- "some string" !--> into the html, HTMLDOC can catch these strings and act from them. example: $result_html = " ... html code<-- " FOOTER CENTER $LOGOIMAGE footer

[PHP-WIN] strings with $ sign

2002-03-09 Thread Sviss Cobazor
Hi NG. I just wanted to know how to use strings with $ sign. If a word starts with a dollar sign php will think it's a variable, how can I make " $bla bla and bla $bla " to stay that way? Will this work? " \$bla bla and bla \$bla " -- PHP Windows Mailing List (http://www.php.net/) To unsub

[PHP-WIN] MySQL auto_increment ??

2002-03-06 Thread Sviss Cobazor
Hi NG. Now I've read page up and page down in the MySQL online manual about how to use the auto_increment. But I didn't find anywhere how to reuse a deleted id created by auto_increment. Say I have a table [users] with 4 columns: | ID | name | username | password | ID is an auto_increment valu

Re: [PHP-WIN] passthru() on Win98 ??

2002-02-26 Thread Sviss Cobazor
ke Flynn" <[EMAIL PROTECTED]> wrote in message > >[EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > Use a slash and then the filename.pdf. So > > > http://whatever/stuff.php?options/desired_filename.pdf would do it. It's > > > ok that you aren't linking t

Re: [PHP-WIN] passthru() on Win98 ??

2002-02-26 Thread Sviss Cobazor
it doesn't matter. Just the > file that you want the .pdf document to be known as to the user's browser. > > At 05:07 PM 2/26/2002 +0100, Sviss Cobazor wrote: > >Hmm in my case there is no file to link to. The pdf document doesn't exist, > >it's generat

[PHP-WIN] Re: PHP + ODBC

2002-02-26 Thread Sviss Cobazor
I'm not sure this will help you but when I had to make some odbc_connect I had major trouble too. The username and password for the db I was trying to reach were both = "". It turned out that this was the problem in my case. I had to create a username and a password other than "" to make it work.

Re: [PHP-WIN] passthru() on Win98 ??

2002-02-26 Thread Sviss Cobazor
f file, > ahead of time. So you want to do something like this: > > $query = 'SELECT strFileFilename FROM tblFiles '; > $query .= "WHERE intFileID=$id"; > $filename = mysql_result(mysql_query($query), 0); > print "Here's the PDF\n"; > ?&

Re: [PHP-WIN] passthru() on Win98 ??

2002-02-26 Thread Sviss Cobazor
nt to it is to be handled as a pdf document (as in load Acrobat Reader)? "Sviss Cobazor" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > It seemed that it was Putty itself that wouldn't work for me (don't ask me > why). > So I

Re: [PHP-WIN] passthru() on Win98 ??

2002-02-26 Thread Sviss Cobazor
rking if you see something like this: > HTTP/1.1 200 OK > Date: Mon, 25 Feb 2002 23:20:35 GMT > Server: Apache/1.3.20 (Unix) PHP/4.0.6 mod_ssl/2.8.4 OpenSSL/0.9.6 > X-Powered-By: PHP/4.0.6 > Transfer-Encoding: chunked > Content-Type: text/html > > some stupid html, or n

Re: [PHP-WIN] passthru() on Win98 ??

2002-02-25 Thread Sviss Cobazor
you should now see something like the following: > HTTP/1.1 200 OK > Date: Tue, 26 Feb 2002 00:46:52 GMT > Server: Apache/1.3.20 (Unix) PHP/4.0.6 mod_ssl/2.8.4 OpenSSL/0.9.6 > Connection: close > Content-Type: application/pdf > > *your data should follow the line after the blank

Re: [PHP-WIN] passthru() on Win98 ??

2002-02-25 Thread Sviss Cobazor
eb 2002 23:20:35 GMT > Server: Apache/1.3.20 (Unix) PHP/4.0.6 mod_ssl/2.8.4 OpenSSL/0.9.6 > X-Powered-By: PHP/4.0.6 > Transfer-Encoding: chunked > Content-Type: application/pdf > > This will tell you if the data is indeed being transferredhope it helps. > Court >

[PHP-WIN] passthru() on Win98 ??

2002-02-25 Thread Sviss Cobazor
Hi everyone. I've posted earlier about this problem but haven't gotten any solution yet. I'm using HTMLDOC application for html > pdf convertion but I can't get passthru() to work. I'm using Win98/Apache/PHP 4.1.1/MySQL and everything so far has been smooth. I have tested my header() funktion wit

Re: [PHP-WIN] passthru(), system() and exec() - help please

2002-02-25 Thread Sviss Cobazor
PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Show us the part of the script where you use these functions. > A+ > Alain > > > -Original Message- > From: Sviss Cobazor [mailto:[EMAIL PROTECTED]] > Sent: Sunday, February 24, 200

[PHP-WIN] passthru(), system() and exec() - help please

2002-02-24 Thread Sviss Cobazor
Hi everyone, I'm running Win98/Apache/PHP 4.1.1/MySQL. Everything so far has been really smooth and I have had no problems at all. The function passthru() however is really killing me. I can't get it to work nor system() og exec(). So now I just wanted to know if anyone running the same combo as m