[PHP-DB] ODBC

2003-10-14 Thread Ricardo C. Fernandez de C.
Hi all, I have been trying to connect to a windows ODBC controller with PHP, and after reading some of the documentation, I can't make the connection This is the Code I'm using: ? $conn=odbc_connect(Driver={Microsoft Fox Pro Driver};Server= 127.0.0.1;Database=telefonia,,); if(!$conn) { echo Not

RE: [PHP-DB] ODBC

2003-10-14 Thread Michael.J.Bourke
odbc_connect requires three parameters: you have specified just one. PHP takes the string between the pairs of double-quotes to be just one parameter. You will also need to specify a username and password for access to the DB. Assuming you have none, try this:

[PHP-DB] How to open PDF File on Server on Local Client

2003-10-14 Thread dpgirago
Good Day All, I have an intranet GUI that allows users to select, insert, and update data in a db. When data is entered into one of the screens, a C program is called which does some calculations and then creates a PDF file on the server. I want the user to then see the PDF file opened on

RE: [PHP-DB] How to open PDF File on Server on Local Client

2003-10-14 Thread Hutchins, Richard
You want to know how to open a PDF that resides on the server in a client browser, right? You should be able to do that with a simple a href=pathtoyour.pdf target=_blankClick Here/a link. You can change the target to open a new window or replace the current window or whatever suits your needs.

Re: [PHP-DB] How to open PDF File on Server on Local Client

2003-10-14 Thread dpgirago
OK. So if I understand corectly, a link with the path to the file on the server will work. How do I have a new browser opened displaying the PDF more or less automatically, ie, without the user clicking anything? Is this a Header() function? David

RE: [PHP-DB] How to open PDF File on Server on Local Client

2003-10-14 Thread Hutchins, Richard
Yes, you've got it so far. To open another browser window automatically, you just use the target=_blank attribute that I listed in the example in the previous e-mail. That will spawn a new browser window with the PDF file in it and leave the original browser window open. If you need something

[PHP-DB] Moderator: Remove User

2003-10-14 Thread Hutchins, Richard
Can the moderators of this list please remove the following user: [EMAIL PROTECTED] Each time I send something to the list, I get a return message in Italian that certainly looks like one of those user does not exist replies. I'm sure everybody else is getting the same. For kicks and grins: Il

[PHP-DB] Oracle Auto_Increment Error

2003-10-14 Thread Roger Spears
Hello, BACKGROUND: I'm able to create tables in oracle, populate fields in oracle tables, select, retrieve and update fields in oracle. So I know my connection code is working. PROBLEM: I'm working with PHP and PEAR and I'm trying to create an auto_increment field in an oracle database

[PHP-DB] Can't conect with mysql_connect(), please help.

2003-10-14 Thread Gabriel Peugnet
I'm starting to use MySQL, well, trying to, and I get the next message: Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) The manual says that mysql_connect() can be called without arguments. That's what I'm doing. What's wrong?

Re: [PHP-DB] Can't conect with mysql_connect(), please help.

2003-10-14 Thread Gabriel Peugnet
phpinfo() says: MySQL Support enabled MYSQL_SOCKET /var/lib/mysql/mysql.sock but in fact the file /var/lib/mysql/mysql.sock doesn't exists. So I understand that the first step is to check the configuration of MySQL, is it? Dan Brunner [EMAIL PROTECTED] escribió

Re: [PHP-DB] Can't conect with mysql_connect(), please help.

2003-10-14 Thread Joe Nilson Zegarra Galvez
You must start your mysql server : do it: /etc/init.d/mysqld start and when you read the line mysql start [OK] your problem will be fix ;) Regards Nilson Gabriel Peugnet dijo: phpinfo() says: MySQL Support enabled MYSQL_SOCKET

Re: [PHP-DB] Can't conect with mysql_connect(), please help.

2003-10-14 Thread Dan Brunner
Hello!! Yes check to make sure mysqld is running. ps -aux|grep mysql If you don't see mysql, then start mysql. service mysql start If your running red hat. Dan On Oct 14, 2003, at 4:52 PM, [EMAIL PROTECTED] wrote: phpinfo() says: MySQL Support enabled

RE: [PHP-DB] How to open PDF File on Server on Local Client

2003-10-14 Thread dpgirago
Richard and Karen, Thanks for your help this morning with my PDF question. I created the link dynamically as you suggested. In retrospect, I also think that I was seeking a javascript solution, i.e., now that the PDF file exists on the web server : ?php $openPDF = SCRIPT

Re: [PHP-DB] Can't conect with mysql_connect(), please help.

2003-10-14 Thread Gabriel Peugnet
My site is hosted in a remote server. I can't find /etc/init.d/mysqld /etc does exists but /etc/init.d doesn't What I found is /usr/bin/msql2mysql /usr/bin/mysql_config /usr/bin/mysql /usr/bin/mysql_install_db /usr/bin/mysql_find_rows ... and a lot of files like /usr/bin/mysql The one that

Re: [PHP-DB] Can't conect with mysql_connect(), please help.

2003-10-14 Thread Tyler Lane
On Tue, 2003-10-14 at 15:23, Gabriel Peugnet wrote: My site is hosted in a remote server. You should contact your remote hosting company and have them help you get mysql running. I can't find /etc/init.d/mysqld /etc does exists but /etc/init.d doesn't What I found is /usr/bin/msql2mysql

Re: [PHP-DB] Can't conect with mysql_connect(), please help.

2003-10-14 Thread Rob
How can I run php from the command line? Thanks, Rob Gillen Clipart Downloads http://www.GifArt.com - Original Message - From: Tyler Lane To: Gabriel Peugnet Cc: [EMAIL PROTECTED] Sent: Tuesday, October 14, 2003 5:31 PM Subject: Re: [PHP-DB] Can't conect with

[PHP-DB] Error on Apache+PHP+interbase(Firebird) installation

2003-10-14 Thread JMC Admin
Greetings! Just want to ask you why is it that i cannot connect to my interbase = (firebird on freebsd 5.1). I installed my PHP with the following = configuration. ./configure --with-apxs=3D/usr/local/apache/bin/apxs \ --with-interbase=3D/opt/interbase --enable-mbstring \

Re: [PHP-DB] Oracle Auto_Increment Error

2003-10-14 Thread Christopher Jones
Roger, You can see the real Oracle error number if you replace the getMessage() calls with getDebugInfo() or getUserInfo(). Making this change gave this output: Connecting . . . CREATE TRIGGER test_trigger before insert on test for each row begin select test_seq.nextval into :new.id