[PHP-WIN] PHP Oci8 segmentation fault

2003-08-14 Thread Radovan Radic
Hello I tried with this question on php.db but still no answer and it is pretty urgent, maybe it can go on php.install as well. I have php 4.3.2 installed as apache 2.0.45 module on RH Linux (7.3) with oci8 support. Things work fine when php scripts are accessed via web, but when i try to start t

Re: [PHP-WIN] Problem with Insert with ODBC

2003-07-01 Thread Radovan Radic
Try this: odbc_error Get the last error code (PHP 4 >= 4.0.5) string odbc_error ( [resource connection_id] ) "Veselina Jecheva" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > How can I do this - odbc_exec returns just false on error? > > At 16:41 6/30/03 +0200, Svensson, B.A.T. (HKG

Re: [PHP-WIN] Re: Fatal error: main(): Failed opening required..... Dreamweaver MX

2003-06-20 Thread Radovan Radic
Must be wrong path, check if it is correct path, calculate all '../' and find is there such file on that path "Ildiko Nyari" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Thanks, I have the feeling it is something with the pear, but I always get similar errors, and the pear is always

[PHP-WIN] Re: Fatal error: main(): Failed opening required..... Dreamweaver MX

2003-06-20 Thread Radovan Radic
Maybe you dont have permission to open it. I think using chown could do the trick. I have user 'www' in apache and if scripts are not owned by 'www' i get this error like you. If i am not correct, please someone enlighten me. PS. My applications work ok on Unix and Linux with this trick, although

Re: [PHP-WIN] Re: running my head into php

2003-06-12 Thread Radovan Radic
"B.A.T. Svensson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I want to be able to execute php by running my head into it. > Please B.A.T Svensson, Although i dont speak english good, would u be kind to try to explain me this sentence above: "> I want to be able to execute php b

[PHP-WIN] Re: why seesions always lost

2003-06-05 Thread Radovan Radic
maybe session_trans_sid is set to 0 on server, and in your installation is 1. Dont rely on automatic url encoding, add session manually to url. "Yuegong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi ; > I set a intranet App by PHP and Mysql; when i test on my NootBook it is

[PHP-WIN] Re: Save As html problems

2003-06-03 Thread Radovan Radic
Solution is adding session_cache_limiter('private'); before session_start(); altough i dont know why :) "Radovan Radic" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi guys, > > I have problems with Save As option from Internet Explorer. Page

[PHP-WIN] Save As html problems

2003-05-30 Thread Radovan Radic
Hi guys, I have problems with Save As option from Internet Explorer. Pages are generated by PHP, basically using include some lib scripts, header, footer and generating contents from MySQL db. I am using sessions, manually url rewriting, no frames. When i click Save As from IE, and choose option "

Re: [PHP-WIN] Output to Excel File

2003-04-03 Thread Radovan Radic
Hi, I am off-topic here, but are there any ways to load word document file into php, and do something with it (convert to html, put into db etc.) Thx, Radovan "Erwan Pianezza" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > http://www.web-aware.com/biff/ > > PHP to Excel, aka BiffW

Re: [PHP-WIN] basic sessions...

2003-03-07 Thread Radovan Radic
> > You need a session_start() on every page that needs to examine/update > $_SESSION[] ... > > Rich BTW, why is autostart_session default to off in php.ini ? Does it mean it is not good that session autostarts on every page? -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, vi

[PHP-WIN] Re: Writing in txt file...

2003-02-21 Thread Radovan Radic
Why dont open for append $fp=fopen("file.txt","a"); fputs($fp,"New line?"); Or i didnt understand what do u need? "Afan Pasalic" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > I'm working on adding a new row in text file. I use file() to transfer file >

[PHP-WIN] Re: PHP and MySQL

2003-02-19 Thread Radovan Radic
I solve this by starting-up with the line (on my local computer): mysqld-nt.exe --default-character-set=cp1251 How ppl solve this problem on the web servers? "Veselina Jecheva" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello everybody, > I'm using PHP &

[PHP-WIN] Re: Turn on Error Messages

2003-01-31 Thread Radovan Radic
You can put this line in your script: error_reporting(E_ALL); or some other combination "Christoph Grottolo" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > [EMAIL PROTECTED] (Wade) wrote: > > >01302003 1407 CST > > > >How do you turn on error messages in your P

[PHP-WIN] Re: SSI, SHTML and PHP, INCLUDES...

2003-01-31 Thread Radovan Radic
Hi Sorry, i am not here to answer. I just wonder how this message SSI, SHTML and PHP, INCLUDES... got under the thread: Re: Flow diagrams. Does this happen to someone else? Radovan "Leo G. Divingracia III" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > have

Re: [PHP-WIN] Re: Counter problems!

2003-01-30 Thread Radovan Radic
AIL PROTECTED] > Subject: [PHP-WIN] Re: Counter problems! > > > I tested that and the counter does not increase when i hit > the refresh button or press enter in the adressbar. > It only increases when i quit the explorer and reopen the same link > afterwards. Which is ofcourse

[PHP-WIN] Re: Counter problems!

2003-01-30 Thread Radovan Radic
r press enter in the adressbar. > It only increases when i quit the explorer and reopen the same link > afterwards. Which is ofcourse a new visit because the session is > distroyed when closing the browser. > > Jochem > > > Radovan Radic wrote: > > Yes, but what if you re

[PHP-WIN] Re: Counter problems!

2003-01-30 Thread Radovan Radic
gt; > counter.php: > > > if ( ! isset($_SESSION['count']) ) > > { > > $fp=fopen("counter.txt","r"); > > $_SESSION['count']=fread($fp); > > fclose($fp); > > $_SESSION['count']++; > > } > > pr

[PHP-WIN] Re: connection to ms sqlserver 7

2003-01-29 Thread Radovan Radic
Include php_mssql.dll extension mssql_pconnect("dbhost","dbuser","dbpassword"); mssql_select_db("dbname"); This should work. "Phplam" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > with adodb driver which is free download, seems to be easy. I'm now triyi

Re: [PHP-WIN] Re: Counter problems!

2003-01-29 Thread Radovan Radic
t;>Subject: [PHP-WIN] Re: Counter problems! > >> > >> > >>You could check the IP adress of the visitor. > >>If it has not changed the the visitor is the same. > >>Last IP adress in the counter file? > >> > >> > >>Jochem > &g

[PHP-WIN] Counter problems!

2003-01-29 Thread Radovan Radic
Hi I want to add simple counter on my index.php page. counter.php: "; ?> index.php "; include("counter.php"); ?> This should work, but when someone refreshes index.php page, counter is increased! How can i stop it? Thx, Radovan -- PHP Windows Mailing List (http://www.php.net/) To unsubscri

[PHP-WIN] Re: PHP Search

2003-01-20 Thread Radovan Radic
Thanks for the answers and tips. I think i am gonna quit this project and try to get some easier. Maybe regular expr. could help, but some designers dont use ... but only so i could have much problems about it. Thanks again, i was hoping this could be easier:( Radovan "Radovan Radic&quo

[PHP-WIN] Re: PHP Search

2003-01-17 Thread Radovan Radic
Either noone can read this message, or noone can help about it? Come on ppl give me some feedbacl "Radovan Radic" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi all > > I got (i think) heavy task for my school projec

[PHP-WIN] PHP Search

2003-01-16 Thread Radovan Radic
Hi all I got (i think) heavy task for my school project. I hope someone can help me. Script needs to find key words (for example: computer, science) It should search in url or mail Script should find words within meta-tags (i know how to do it) and: In the body of html (url or email) but only if t

[PHP-WIN] Re: Writing to a text file

2003-01-10 Thread Radovan Radic
$fp=fopen("file.log","a+"); fputs($fp,"message...\n"); fclose($fp); "James Meers" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, I want to create a sort of log/text file, everytime I run a query or something I would like to write/append it to a text file. D

[PHP-WIN] Re: get row (latest by date)

2003-01-09 Thread Radovan Radic
select * from table where date=(select max(date) from table) and time=(select max(time) from table) HTH, Radovan "Aidal" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi NG. > > I know this is probably very simple, but I've had no luck making it work :( > > I

[PHP-WIN] Re: How to use SQLServer in PHP?

2003-01-03 Thread Radovan Radic
You have to load php_mssql.dll extension. Then in php $dbhost="myDBHost"; // or IP address of the server $dbusername="username"; $dbpassword="password"; $dbname="MyDatabase"; $connection=mssql_pconnect($dbhost,$dbusername,$dbpassword); mssql_select_db($dbname); HTH, Radovan "Nguyen Le Vinh" <[E

[PHP-WIN] Re: How do I access a mysql result array?

2002-12-09 Thread Radovan Radic
"Matt Babineau" <[EMAIL PROTECTED]> wrote in message 002c01c29f20$cf908500$1a10a8c0@webdevx">news:002c01c29f20$cf908500$1a10a8c0@webdevx... > How can I access a mysql result array numerically? > > Like: > > $result[0][0]; > $result[1][0]; > > I want to be able to access one whole column at a time.

[PHP-WIN] Re: DOCUMENT_ROOT on Apache

2002-12-06 Thread Radovan Radic
because your asking for the document root, ie: the directory root. > > "Radovan Radic" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Hi > > > > I installed Apache 1.3.27 on w2k, after using IIS. > > W

[PHP-WIN] DOCUMENT_ROOT on Apache

2002-12-06 Thread Radovan Radic
Hi I installed Apache 1.3.27 on w2k, after using IIS. When i try to output print "Home; it gives me A HREF="c:/inetpub/wwwroot/test/" instead of http://localhost/test Why is that? Radovan -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] Re: Fast Web server

2002-12-05 Thread Radovan Radic
Thanks for the info guys I think i will try Apache, i have been using it on Win98, i dont know how it will be on 2000. Radovan "Radovan Radic" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi > > Can you tell me your experi

[PHP-WIN] Fast Web server

2002-12-04 Thread Radovan Radic
Hi Can you tell me your experiences about web servers. I need fast web server which runs on Win2000, compatible with PHP (i mean that php works without problems) and is not IIS Thx Radovan -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] Script lifetime

2002-12-03 Thread Radovan Radic
Hi folks I need to ask something about scripts&browser First, i didnt know that script is still working even if the user closes the browse (scripts that work long time) My problem was that some scripts are running very long (long queries) and even if i set set_time_limit() it wont help because bro

[PHP-WIN] Re: Download file

2002-11-25 Thread Radovan Radic
Answering to myself: "Radovan Radic" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi > > I have problems with downloading files from my web application in php. > Here is the code from download.php > >

[PHP-WIN] Download file

2002-11-25 Thread Radovan Radic
Hi I have problems with downloading files from my web application in php. Here is the code from download.php download.php is called from another page I get the save as dialog box , but filename is not temp.txt but download with no extension. I have heard this is bug in IE about content-disposit

[PHP-WIN] Re: php.exe Application Error

2002-11-11 Thread Radovan Radic
After this procedure, i have another procedure that produces big resultset about 900 rows, 11 cols? In this last select if i reduce with where AgentCode=11 and get ~30 rows, the script works ok! PHP 4.2.3 , IIS , W2K Radovan "Radovan Radic" <[EMAIL PROTECTED]> wrote

[PHP-WIN] php.exe Application Error

2002-11-11 Thread Radovan Radic
Hi folks, I get this error in the script that is loading some data from the sql server database in the select list. (<500 rows) The instruction at "0x77fcb007" referenced memory at '0x000". The memory could not be "written". Click on OK to terminate the program Click on CANCEL to debug the pr

Re: [PHP-WIN] date format, php, mysql

2002-11-07 Thread Radovan Radic
or if you want to us 12hour clock try this: $todaydatetime = date("Y m d g:i"); That will translate into: 2002 11 07 6:12 [snip] It is ok, but is there some way i do $mydate=format_date($date,Y m d :i") - is there some function that could do it, where $date is some date, not neccessarily tod

Re: [PHP-WIN] Re: PHP Editor

2002-11-06 Thread Radovan Radic
Thx a lot I ll give it a try Radovan "Dash McElroy" <[EMAIL PROTECTED]> wrote in message news:Pine.NEB.4.44.0211060943070.11600-10@;shell.sasquatch.com... > www.editplus.com > > Works rather well. I've still yet to touch on a lot of it's capabilities. > > -Dash > > "Nuclear war can ruin your

[PHP-WIN] Re: PHP Editor

2002-11-06 Thread Radovan Radic
Hi We could use some url for this editor, pls? Radovan "Seung Hwan Kang" <[EMAIL PROTECTED]> wrote in message news:20021105082844.78910.qmail@;pb1.pair.com... > If you looking for a small size editor (about 1MB), Editplus should be ok. > It support all syntax highlights for commonly known open-s

[PHP-WIN] Faxing from php

2002-10-29 Thread Radovan Radic
Hi Is there any solution for sending fax through php? I need to generate document ,get fax number from database and send the document to the fax number. There is an example on http://codeproject.com/isapi/aspfax.asp in ASP, but it dodnt work for me, although i cant say i know much about faxing sof

Re: [PHP-WIN] Create file!

2002-10-28 Thread Radovan Radic
"Mark A. Nichols" <[EMAIL PROTECTED]> wrote in message news:7A08E8036BBBAA4FBD9071B169EDC9B6843E@;mailserver01.spicergroup.com... Your code works for me on Windows 2000 with IIS and Windows 2000 with Apache. >Could it be file permissions on the server. Yes, maybe i didnt set permissions on my se

[PHP-WIN] Create file!

2002-10-28 Thread Radovan Radic
Hi (Win2000, PHP 4.0.6 IIS) $filename="streets.dat"; if (file_exists($filename)) { Read From File; Print To Html; } else { $f=fopen($filename,"w"); read from database to file; Print To Html; fclose($f); } But fopen will not create $filename, and i get an error like: You dont have

[PHP-WIN] Page has expired

2002-10-08 Thread Radovan Radic
Hello When i have javascript code history.go(-1) and i need to go back to the php page, i get errors page has expired. What should i do? Radovan -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] Refreshing page

2002-10-08 Thread Radovan Radic
Hi I have a form and buttons insert, update, delete with input boxes. Method is post , action $PHP_SELF (php 4.0.6+MSSQL) When user presses insert button then i have action=$PHP_SELF&operation=insert&name=SomeName&lname= &SomeLName&... After submit it all goes well and data are inserted into the

[PHP-WIN] Login on IIS

2002-10-01 Thread Radovan Radic
Hello! I need to use login form when user opens my page so this is for session. Then i need to get userno from usertable for input user and pass, because userno is almost in all tables. Then i need to put userno in cookie (or i guess). I think i need to do something like this in every php script:

[PHP-WIN] Re: Message dialog box in php

2002-09-27 Thread Radovan Radic
It's ok . I got it. "Radovan Radic" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello > > PHP/JavaScript beginner's problem: > > I need to write PHP script with insert, update and delete options on it. &

[PHP-WIN] Message dialog box in php

2002-09-27 Thread Radovan Radic
Hello PHP/JavaScript beginner's problem: I need to write PHP script with insert, update and delete options on it. So i have three buttons, and action=$PHP_SELF. I have to ask user if he is sure that he wants to delete one record. I guess i should use JavaScript. Anyone can help me? Thanks Radov

[PHP-WIN] Re: Uploading scripts to web(Another one)

2002-02-12 Thread Radovan Radic
> > use to you. > > > > Nicole Amashta > > www.aeontrek.com > > == > > Thanks for the help, > Another one: > Usually, i am gonna have tables that i get from clients(dbf or whatever, > then convert them to mysql), and then i should upload them to the web > server. > I could use phpM

[PHP-WIN] Re: Uploading scripts to web

2002-02-11 Thread Radovan Radic
"Nicole Amashta" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... > You need to find out from whoever hosts the server if mysql database exists > and if active for you. You will need to ask them for the correct host, login > and password for your database. > > You will then need to

[PHP-WIN] Uploading scripts to web

2002-02-09 Thread Radovan Radic
Hello I have php4 , mysql 3.23, apache and win 2000 pro on my computer, and i have designed one simple site that uses php scripts and mysql databases. Now i want to publish it to the web, but i dont know is there mysql on the server, and if there is how will i connect to it? For example, i have c