[PHP-WIN] SQL error 00000 when trying to connect to MS Access

2001-06-26 Thread Kevin Sayre
Ok, I get the following error when attempting to connect to an MS Access database: Warning: SQL error: , SQL state 0 in SQLConnect in c:\inetpub\wwwroot\help\lib\connect.inc on line 2 I have the following as my connect: $cid = odbc_connect("database", "username", "password"); and I looked

Re: [PHP-WIN] Unable to see my .php script in IE5

2001-06-26 Thread Phil Driscoll
On Tuesday 26 June 2001 00:20, Michael wrote: > Please help > > I am having some serious problems. I have used a text editor to write the > following code and saved it with a .php extension > > I couldn't see any obvious mistakes in yout httpd.conf, but it struck me that if short_open_tag was n

[PHP-WIN] RE: Any information on php_dotnet.dll extension?

2001-06-26 Thread sysadmin
I have a bit of an inside track at MS camp, and would be very careful about using this module. dotNet seems to change every 5 minutes, even though they are supposed to be past the making big changes point. I'm not sure how internal class changes would affect the php_dotnet.dll, but just thought I'

[PHP-WIN] Setting custom error_handler

2001-06-26 Thread Scott Cadillac
NT 4.0 / IIS 4.0 / PHP 4.0.5 I'm new to PHP and I think it's great. I am trying to set a custom error_handler function, but when I call: error_reporting(0); $old_error_handler = set_error_handler('new_error_handler'); $old_error_handler always returns FALSE. I know my new_error_handler() func

Re: [PHP-WIN] Problems with System DSN

2001-06-26 Thread Frank M. Kromann
Hi Thomas, The problem you are seeing has to do with access to the remote directory. The webserver is normally running as user IUSR_ and that user does not have access to the remote directory. - Frank > Hello... > > I'm running an ApacheWebserver 1.3.20 with mod_ssl/2.8.4, OpenSSL/0.9.6a and

[PHP-WIN] preventing duplicate entries

2001-06-26 Thread Pete Kuczynski
I want to prevent duplicate entries into my mysql database which holds invertory of all network eqpt at my site. Engineers access it thru netscape and the query insert is done via pdp [below]. I will place the script into php, any pointers on this would be appreciated. THX! Pete

[PHP-WIN] system(), Access is denied

2001-06-26 Thread jong jong
Hi, I am a Win NT4.0 user and just start to use PHP. I don't have much web programming experience. Now I need your help. I try to use system() to run a batch file which sitting on a mapped network drive like this : system("e:\\tmp\file.bat") but it gives me "Access is denied". I can run this b

Re[4]: [PHP-WIN] Testing php in Win2000?

2001-06-26 Thread David Elliott
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dear Bryan On 26 June 2001 at 13:58:47 +1000 (which was 04:58 where I live) Bryan rearranged electrons to get > Its on my laptop, and yeah, it works when I am connected to the network > at work, or connected to the internet from home. It doesn't wor

[PHP-WIN] Session varibles

2001-06-26 Thread Jason Belletty
Hi Everybody, I'm a php newbie - (best to warn you straight away!!!) How do I use session variables? In asp its just:session("somevariable") Thanks in advance, Jason. - Jason Belletty Software Development w: www.spinoffproducts.com e: [E

Re: [PHP-WIN] How to launch a .bat file with php.

2001-06-26 Thread Alessio Bernesco Làvore
It works. Thanks a lot Johan. Alessio. "Johan Lundqvist" <[EMAIL PROTECTED]> ha scritto nel messaggio [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Have a look at "Program Execution functions" in PHP manual. > There you will find the syntax et.c. for exec(), system(), passthru() > that might b

Re: [PHP-WIN] How to launch a .bat file with php.

2001-06-26 Thread Johan Lundqvist
Have a look at "Program Execution functions" in PHP manual. There you will find the syntax et.c. for exec(), system(), passthru() that might be interesting to you. Happy coding. /Johan "Alessio Bernesco Làvore" wrote: > > Well... > I've to execute by the command line a program called "HTTrack"

Re: [PHP-WIN] How to launch a .bat file with php.

2001-06-26 Thread Alessio Bernesco Làvore
Well... I've to execute by the command line a program called "HTTrack" that will parse all the site and recreate it with just simple html pages in another folder, where all the site can be downloaded for off-line consulting. To minimize the creation time the application (HTTrack) will run directly

Re: [PHP-WIN] How to launch a .bat file with php.

2001-06-26 Thread Johan Lundqvist
Hi, That's a tricky one... dunno if it really could be done without many security issues and ugly workarounds. I think you got it a bit backwards... If I ask you like this: What is it that you need in the batch file, that can't be done in PHP? /Johan "Alessio Bernesco Làvore" wrote: > > Hi,

[PHP-WIN] How to launch a .bat file with php.

2001-06-26 Thread Alessio Bernesco Làvore
Hi, I've a batch file on the server, how can i launch it and know when it's finished. Thanks everyone, Alessio. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e

[PHP-WIN] Odd SQL error when connecting to MS Access

2001-06-26 Thread Kevin Sayre
Ok, I'm stumped. I get this error when I try to connect to an MS Access database through ODBC: Warning: SQL error: , SQL state 0 in SQLConnect in c:\inetpub\wwwroot\help\lib\connect.inc on line 2 I'm stumped because if you look up that error code, it stands for success. Hmm, error code? He

Re: [PHP-WIN] Unable to see my .php script in IE5

2001-06-26 Thread Johan Lundqvist
Michael wrote: > > Dear Johan > > In answer to your questions > > A) I have restarted Apache Good.. > B) I stored it in the htdocs file within the Apache installation directory That's like "c:\program files\apache group\apache\htdocs\", ok? > C) I was not aware that I had to change anything o

Re: [PHP-WIN] php scripts only work when connected to the internet.

2001-06-26 Thread Bryan
A big thank you to all that replied!! I was given a number of solutions and have so far tested two and found both of these to fix the problem. 1. Instead of using http://mylocalhostname/filename.php, I used http://127.0.0.1/filename.php and it processed OK when I wasn't connected. 2. Try workin

[PHP-WIN] Re: mail() on Windows 2000

2001-06-26 Thread Hugo Alexandre Almeida Soares Dias
Well i would like to know one thing. Do you get the emails that are sent? if so you have a problem different from the case you don't get any e-mails. if you don't get any emails, you need to know a SMTP adrress (from your ISP) and go to php.ini and search for [mail]. There you can find somethi

Re: [PHP-WIN] Unable to see my .php script in IE5

2001-06-26 Thread Michael
Dear Johan In answer to question C, I have checked and it is set to 'ON' "Johan Lundqvist" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Just to check the obvious > > A: You have restarted Apache? > B: Where did you store phpinfo.php? > C: You have set "shor

Re: [PHP-WIN] Unable to see my .php script in IE5

2001-06-26 Thread Michael
Dear Johan In answer to your questions A) I have restarted Apache B) I stored it in the htdocs file within the Apache installation directory C) I was not aware that I had to change anything on the php.ini file, what should I do here I have been trying to get this to work for a few days now. I

Re: [PHP-WIN] php scripts only work when connected to the internet.

2001-06-26 Thread David Elliott
Hello Bryan On 25 June 2001 at 22:27:06 +1000 (which was 13:27 where I live) Bryan might have written > I have a problem where I can only view the output in my browser from the php > files when I am connected to the Internet. > When I am not connected, I get the standard error page in the broswe

Re: [PHP-WIN] gd/apache1.3/WinNT

2001-06-26 Thread Phil Driscoll
Try running e:/apache/cgi-bin/php.exe -i from the command line. You will probably get an error message to tell you exacly what's wrong. Cheers -- Phil Driscoll -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: [PHP-WIN] Unable to see my .php script in IE5

2001-06-26 Thread Johan Lundqvist
Just to check the obvious A: You have restarted Apache? B: Where did you store phpinfo.php? C: You have set "short_open_tag = On" in php.ini? /Johan Michael wrote: > > Please help > > I am having some serious problems. I have used a text editor to write the > following code and saved it with

[PHP-WIN] Problems with System DSN

2001-06-26 Thread Thomas Hove
Hello... I'm running an ApacheWebserver 1.3.20 with mod_ssl/2.8.4, OpenSSL/0.9.6a and PHP 4.0.6. My PHP scripts gets data from a Paradox 5.0 database currently placed on the same pc as the Webserver. I'm using a System DSN called "MXPROCESSDB" - and all works fine... But if I move the database t

Re: [PHP-WIN] php scripts only work when connected to the internet.

2001-06-26 Thread David Elliott
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello Bryan On 25 June 2001 at 22:27:06 +1000 (which was 13:27 where I live) Bryan emanated these words of wisdom > I have a problem where I can only view the output in my browser from the > php files when I am connected to the Internet. When I am n

php-windows Digest 26 Jun 2001 09:49:23 -0000 Issue 628

2001-06-26 Thread php-windows-digest-help
php-windows Digest 26 Jun 2001 09:49:23 - Issue 628 Topics (messages 8021 through 8038): Re: Testing php in Win2000? 8021 by: David Elliott 8029 by: Bryan 8038 by: Phil Driscoll iconv 8022 by: Marecandja phpinfo() crashes apache 8023 by: Mark Maggel

Re: Re[2]: [PHP-WIN] Testing php in Win2000?

2001-06-26 Thread Phil Driscoll
This may not be your problem, but since it's bitten me on NT before, I thought I'd mention it. I never have any problems accessing the local web server via localhost or by the machine's IP address, however if I try to access a local site via a name set up in the winnt\system32\drivers\etc\host

[PHP-WIN] PHP and remote MySQL database

2001-06-26 Thread Javier Velasco
Hi! I created a database in freesql.org and some scripts to access it. If I run the scripts from php.exe (under windows NT) they work fine, ie. access the database and retrieve data ok. But when I run them from browser I get the following error: Warning: MySQL Connection Failed: Can't create TCP

Re: [PHP-WIN] Unable to see my .php script in IE5

2001-06-26 Thread Michael
Hi Again I hope that you all realise that I am using Apache 1.3.12 Also I am able to see the Apache start up page when I type htttp://localhost Regards Krysia ""Michael"" <[EMAIL PROTECTED]> wrote in message 9h9g5f$t9f$[EMAIL PROTECTED]">news:9h9g5f$t9f$[EMAIL PROTECTED]... > Please help > > I

Re: [PHP-WIN] Need help with variables

2001-06-26 Thread Michel Laine
Ruslan Ohitin wrote: > Hello Michel, > > You mixing php variables and Template variables. They are from > different "namespaces". set_var() takes associative array with string > keys - Template var names. Edit one line of your code: > > ML> $var = ${"DAY".$j}; > $var = "DAY" . $j; // $var is

[PHP-WIN] Unable to see my .php script in IE5

2001-06-26 Thread Michael
Please help I am having some serious problems. I have used a text editor to write the following code and saved it with a .php extension I saved this in the htdocs directory. I then went into my IE5 browser and typed http://localhost/phpinfo.php What I saw was the above code in my browser

Re: [PHP-WIN] php scripts only work when connected to the internet.

2001-06-26 Thread Michel Laine
Bryan wrote: > Hi, > > Win2k, IIS, 4.05 > > I have a problem where I can only view the output in my browser from the php > files when I am connected to the Internet. > When I am not connected, I get the standard error page in the broswer. > > Hope someone can help?? > > -- > PHP Windows Mailing L

[PHP-WIN] gd/apache1.3/WinNT

2001-06-26 Thread Edmund
Hi, I have an NT server setup with Apache 1.3.x and just got PHP installed again and working (with extension=php_gd.dll commented out).However, once I uncomment that line, I get an Internal Server Error. "Premature end of script headers: e:/apache/cgi-bin/php.exe". Now I have the php_gd.d

Re: [PHP-WIN] php scripts only work when connected to the internet.

2001-06-26 Thread Bryan
Thanks Hugh, I have been trying http://mylaptop/whatever.php where mylaptop is the localhost but it won't process when the laptop is standalone and not connected to the network or dialled in to the web. When I am connected, all php scripts work fine. Am I missing something in the configuration of

Re: [PHP-WIN] php scripts only work when connected to the internet.

2001-06-26 Thread Mark Maggelet
On Mon, 25 Jun 2001 22:27:06 +1000, Bryan ([EMAIL PROTECTED]) wrote: >Hi, > >Win2k, IIS, 4.05 > >I have a problem where I can only view the output in my browser from >the php >files when I am connected to the Internet. >When I am not connected, I get the standard error page in the >broswer. > >Hop

Re: [PHP-WIN] php scripts only work when connected to the internet.

2001-06-26 Thread Hugh Bothwell
""Bryan"" <[EMAIL PROTECTED]> wrote in message 9h7agu$biv$[EMAIL PROTECTED]">news:9h7agu$biv$[EMAIL PROTECTED]... > Hi, > > Win2k, IIS, 4.05 > > I have a problem where I can only view the output in my browser from the php > files when I am connected to the Internet. > When I am not connected, I g

Re: Re[2]: [PHP-WIN] Testing php in Win2000?

2001-06-26 Thread Bryan
Thanks for the response. Its on my laptop, and yeah, it works when I am connected to the network at work, or connected to the internet from home. It doesn't work at all when the laptop is standalone. Is there a workaround for this?? Thanks, Bryan. "David Elliott" <[EMAIL PROTECTED]> wrote in me

Re: [PHP-WIN] Need help with variables

2001-06-26 Thread Ruslan Ohitin
Hello Michel, You mixing php variables and Template variables. They are from different "namespaces". set_var() takes associative array with string keys - Template var names. Edit one line of your code: ML> $var = ${"DAY".$j}; $var = "DAY" . $j; // $var is a string "DAYn" -- Best regards,

[PHP-WIN] Any information on php_dotnet.dll extension?

2001-06-26 Thread Scott Cadillac
Hi Folks, I was just wondering if anyone knows anything about the work being done the php_dotnet.dll extension? Where is it at, and what is planned for it? I found the following link from Google: http://www.seismo.unr.edu/ftp/pub/updates/bankert/php-4.0.4pl1/ext/dotnet/ Which lists Sam Ruby i