[PHP-WIN] notify user of duplicate entry

2001-06-27 Thread Pete Kuczynski
I want to prevent duplicate entries in by database in the hostname field. So far, I have modified my hostname column as such to prevent duplicate entries into it, it works: alter table modify varchar(15) null unique; Now I need to notify the user that enters a duplicate hostname of their erro

[PHP-WIN] help connecting to MS SQL 7.0 dbase

2001-06-27 Thread Joann Coffey
I am pretty new to PHP and currently using PHP 4.0.1 running on windows 98 - PWS 4.0 - I cannot connect to SQL Server - is there anything I need to configure separetely to connect? I can connect using ODBC but not the mssql functions Thank you. Joann Coffey [EMAIL PROTECTED] -- PHP Windows M

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

2001-06-27 Thread Delbono
> > system("e:\\tmp\file.bat") > > but it gives me "Access is denied try please: > > system("e:\\tmp\\file.bat") furthermore: if you call the script from the server way.. "http://localhost/executeme.php"; you have to either 1. Login to the machine as a user with "execute" Permission on th

Re: [PHP-WIN] 500 error

2001-06-27 Thread Johan Lundqvist
Tjena Martin, How did you set it up? Where's the PHP doc that generates the error located? What's in the script? Did you check user rights? /Johan "Martin Skjöldebrand" wrote: > > I've installed PHP and MySQL on my Win2K Pro box according to > a doc I got (thanks). > Accessing a php-doc resul

php-windows Digest 27 Jun 2001 14:28:57 -0000 Issue 630

2001-06-27 Thread php-windows-digest-help
php-windows Digest 27 Jun 2001 14:28:57 - Issue 630 Topics (messages 8065 through 8079): Re: Need help with variables 8065 by: Ruslan Ohitin Re: system(), Access is denied 8066 by: Frank M. Kromann 8069 by: Alessio Bernesco Làvore Re: Session varibles 8067

Re: [PHP-WIN] Exec command still doesn't on Win2K and IIS

2001-06-27 Thread Johan Lundqvist
Your'e correct. When using PHP as ISAPI there's still problems with program execution (exec, system et.c.) in ver. 4.0.6 CGI version still works better... /Johan BAMHA Mostafa Ftmms wrote: > > Hi all, > I'm using the ISAPI version of PHP-4.0.6 on Win2K but the Exec command still > doesn't > wor

[PHP-WIN] Exec command still doesn't on Win2K and IIS

2001-06-27 Thread BAMHA Mostafa Ftmms
Hi all, I'm using the ISAPI version of PHP-4.0.6 on Win2K but the Exec command still doesn't work on Win2K and IIS. However, it has been mentionned in the ChangeLog of PHP-4.0.6 that popen and exec problems on Win2k were fixed in this version. Is there any change in the configuration? or Wh

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

2001-06-27 Thread Christian Sandfeld
I'm new to the list, so I didn't get the full story. But I fealt like throwing in my 2 cents anyway. I'm running IIS4 on NT4.0 SP6, and was experiencing great difficulties getting PHP 4.0.5 to work when loading the PDF and GD .DLL's. I never bothered to find out which of the modules where causing

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

2001-06-27 Thread Edmund
Phil Driscoll wrote: > > On Wednesday 27 June 2001 02:49, Edmund wrote: > > > > Nope. What I get is an "Abnormal program termination" without any > > display or log as to what is making php choke. > > Just to check, are the php and the gd dll both from the same php distribution? > If so is it 4

RE: [PHP-WIN] Session varibles

2001-06-27 Thread Christian Sandfeld
Jason, In order to work with session vars, do like this: This all has to be done before sending output to the browser, just as is the case with cookies. Hope this helped :) /Christian -Original Message- From: Jason Belletty [mailto:[EMAIL PROTECTED]] Sent: 26. juni 2001 17:13 To: [E

[PHP-WIN] PHP 4.0.6 compiled with DEAPI

2001-06-27 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. Everytime I start the Apache Server the following error message appear : [Wed Jun 27 12:35:00 2001] [warn] Loaded DSO F:/php/sapi/php4apache.dll uses plain Apache 1.3 API, this module might crash und

[PHP-WIN] 500 error

2001-06-27 Thread Skjöldebrand
I've installed PHP and MySQL on my Win2K Pro box according to a doc I got (thanks). Accessing a php-doc results in The page cannot be displayed There is a problem with the page you are trying to reach and it cannot be displayed. Any ideas? M. -- PHP Windows Mailing List (http://www.php.net

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

2001-06-27 Thread Alessio Bernesco Làvore
I'm afraid you can't reach files on network mapped disks. They're impossible to reach also with commands like fopen and similars, so probably you cannot use system() or exec() and so on. I'm wrong? Alessio. "jong jong" <[EMAIL PROTECTED]> ha scritto nel messaggio [EMAIL PROTECTED]">news:[EMAIL

Re: [PHP-WIN] preventing duplicate entries

2001-06-27 Thread Johan Lundqvist
Pete, Look at UPDATE or REPLACE (chap. 7.22 & 7.24 in MySql manual). Then you might rewrite your SQL query to fit your needs. /Johan Pete Kuczynski wrote: > > I want to prevent duplicate entries into my mysql database which holds > invertory of all network eqpt at my site. Engineers access it

Re: [PHP-WIN] Session varibles

2001-06-27 Thread Johan Lundqvist
rtfm Hi, Jason Have a look at: http://www.php.net/manual/en/ref.session.php ("Session handling functions" from PHP manual) And some articles: http://www.phpbuilder.com/columns/ying2602.php3 http://www.phpbuilder.com/columns/mattias2312.php3 http://www.phpbuilder.com/columns/mattias2

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

2001-06-27 Thread Phil Driscoll
On Tuesday 26 June 2001 14:20, Bryan wrote: > 2. Try working offline. > This one took me a while to figure out; > You'll have to pardon my ignorance here, but I thought there must have been > an option with the IIS, and couldn't find it, so as a last straw attempt, I > tried the browser work offl

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

2001-06-27 Thread Phil Driscoll
On Wednesday 27 June 2001 02:49, Edmund wrote: > > Nope. What I get is an "Abnormal program termination" without any > display or log as to what is making php choke. Just to check, are the php and the gd dll both from the same php distribution? If so is it 4.0.6? Cheers -- Phil Driscoll -- P

Re: [PHP-WIN] Need help with variables - SOLVED!

2001-06-27 Thread Michel Laine
This is the code snippet from my original message: > > // Do it! > for ($i = 0; $i <= 34; $i++) { > > // Need help with this part > $j = $i + 1; > $var = ${"DAY".$j}; > $val = $day[$i]; > > // Set PHPLIB Template variable > $t->set_var( $var => $val ); > > } > > // D

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

2001-06-27 Thread Frank M. Kromann
Running jobs from the command line usally uses another userid, with different rights than when run fram the web server. the web server normaly installs an uses IUSER_ to execute scripts. Further more a mapping made from a command line will not be available to other users on the same maschine.

Re[2]: [PHP-WIN] Need help with variables

2001-06-27 Thread Ruslan Ohitin
Hello Michel, I send you example that works with PHPLib template. This is a method I use in my scripts. Hope it helps you. ML> Ruslan Ohitin wrote: >> Hello Michel, >> >> You mixing php variables and Template variables. They are from >> different "namespaces". set_var() takes associative array

php-windows Digest 27 Jun 2001 01:48:04 -0000 Issue 629

2001-06-27 Thread php-windows-digest-help
php-windows Digest 27 Jun 2001 01:48:04 - Issue 629 Topics (messages 8039 through 8064): Re: Testing php in Win2000? 8039 by: David Elliott Re: php scripts only work when connected to the internet. 8040 by: David Elliott 8044 by: David Elliott 8048 by: Bryan

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

2001-06-27 Thread Edmund
Phil Driscoll wrote: > > 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. > Nope. What I get is an "Abnormal program termination" without any display or log as to what is making php choke. I know, or at