[PHP-WIN] Re: Tutorials on stored procedures using SQL Server

2002-04-12 Thread Marck D Pearlstone
Hi Fabian, @13 April 2002, 02:07:26 +0200 (01:07 UK time) Fabian Deutsch wrote this to [EMAIL PROTECTED] >> Anyone know of any internet based tutorials on using stored >> procedures with SQL Server? FD> What exactly do u mean? storing functions in an database? SQL servers can store pre-program

[PHP-WIN] Re: Tutorials on stored procedures using SQL Server

2002-04-12 Thread Fabian Deutsch
What exactly do u mean? storing functions in an database? fabian "R.S. Herhuth" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Anyone know of any internet based tutorials on using stored procedures > with SQL Server? > > Thanks, > ROn -- PHP Windo

Re: [PHP-WIN] String reduce

2002-04-12 Thread Nicole Amashta
Here it is, but I used preg instead: "; /* while ( strstr(";;", $str) ) ## if exists ;; in $str, replace with 1 ; { $str = str_replace( ";;", ";", $str ); } */ while( preg_match( "/;;/", $str ) ) { $str = preg_replace( "/;;/", ";", $str ); } echo "After: " . $str; ?> And it works! ;) --

Re: [PHP-WIN] String reduce

2002-04-12 Thread Nicole Amashta
well, my code was wrong: > $str = str_replace( ";", $str ); should have been: $str = str_replace( ";;", ";", $str ); but doesn't seem to work anyway. -- - Nicole Amashta Web Application Developer www.aeontrek.com "Nicole Amashta" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">

Re: [PHP-WIN] String reduce

2002-04-12 Thread Nicole Amashta
you could do it like so, also: works for ya, I hope. peaces, - Nicole Amashta Web Application Developer www.aeontrek.com "Ross Fleming" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Sorry, but neither of these suggestions work on my server, and it w

Re: [PHP-WIN] PHP and ZIP

2002-04-12 Thread Nicole Amashta
Yeah, that was my first plan. i thought i might be able to do it with winzip, though - if has a command line. But thanks anyway. -- - Nicole Amashta Web Application Developer www.aeontrek.com "Ross Fleming" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Ea

RE: [PHP-WIN] PHP and ZIP

2002-04-12 Thread Ross Fleming
Easiest solution I can think of would be to find a copy of the dos executable, pkzip and use the exec(); command to run that. Otherwise I'm stumped Ross -Original Message- From: Nicole Amashta [mailto:[EMAIL PROTECTED]] Sent: 12 April 2002 17:33 To: [EMAIL PROTECTED] Subject: [PHP-WIN]

RE: [PHP-WIN] String reduce

2002-04-12 Thread Ross Fleming
Sorry, but neither of these suggestions work on my server, and it would probably run into problems if one of the "Mot"s had a _ at the beginning or end. Nicola's first offering gives: Mot1_;Mot2_;_;_;_;_;_;_;_Mot3_;_;_;Mot4_;_;_;_;_Mot5_;_;Mot6 The second one gives: Mot1;Mot2;;;_Mot3;;;Mot4;

[PHP-WIN] Re: Another Newbie Question

2002-04-12 Thread Nicole Amashta
Your code: My code: ## Assuming "nik" is your host ## and no username and password are required ... $link = mysql_connect("nik", "", "") or die("Could not connect to host. Reason: " . mysql_error_message() ); mysql_select_db("guestbook", $link) or die ("Could not connect

[PHP-WIN] Re: Another Newbie Question

2002-04-12 Thread Nicole Amashta
Your code: My code: ## Assuming "nik" is your host ## and no username and password are required ... $link = mysql_connect("nik", "", "") or die("could not connect to the database. Reason: " . mysql_error_message() ); mysql_select_db("guestbook", $link) or die ("could not

[PHP-WIN] Re: Different folder | Local test - Help!! (part2)

2002-04-12 Thread Nicole Amashta
Make sure you have also set correctly the path to your webserver in your php.ini. -- Nicole Amashta Web Application Development ABOL Software, Inc. ( 678 ) 494 - 3172 ext. 201 [EMAIL PROTECTED] "Tiago SimõEs" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > For

[PHP-WIN] Different folder | Local test - Help!! (part2)

2002-04-12 Thread Tiago Simões
For those that haven't read my previous posts, i'm trying to be able to test locally my site php site. My installation (both apache and php) went smoothly. But instead of using the htdocs folder for the test i wanted to use the c:\website folder. So with some help from you guys i manage to configu

php-windows Digest 12 Apr 2002 18:07:35 -0000 Issue 1090

2002-04-12 Thread php-windows-digest-help
php-windows Digest 12 Apr 2002 18:07:35 - Issue 1090 Topics (messages 13048 through 13061): Re: Security using Apache & Windows 13048 by: Svensson, B.A.T. (HKG) Re: Configuring securely in IIS5 under Windows 2000 Server 13049 by: Svensson, B.A.T. (HKG) Re: Newbie to php

[PHP-WIN] Tutorials on stored procedures using SQL Server

2002-04-12 Thread R.S. Herhuth
Anyone know of any internet based tutorials on using stored procedures with SQL Server? Thanks, ROn -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-WIN] String reduce

2002-04-12 Thread Nicola Delbono
I added the underscore artificially in order to make the string become Mot1_;__;_Mot2_;__;__;__;__;__;__;__;__;__;_Mot3_;__;__;_andsoon;;;Mot4;;;Mot5Mot6 so ONLY the first(s) ";" begin with just ONE underscore the other begins with 2 underscores, so you can recognize them and strip the

RE: [PHP-WIN] String reduce

2002-04-12 Thread Matt Babineau
What does the underscore do in this situation? -Original Message- From: Nicola Delbono [mailto:[EMAIL PROTECTED]] Sent: Friday, April 12, 2002 12:43 PM To: Kriegers Horst; 'PHP-Windows' Subject: Re: [PHP-WIN] String reduce try $str = "Mot1;;Mot2;Mot3;;Mot4;;;Mot5;

Re: [PHP-WIN] String reduce

2002-04-12 Thread Nicola Delbono
try $str = "Mot1;;Mot2;Mot3;;Mot4;;;Mot5Mot6"; $str = str_replace(";", "_;_", $str); $str = str_replace("__;_", "", $str); :-D *** REPLY SEPARATOR *** On 12/04/2002 at 16.10 Kriegers Horst wrote: >Hi all, > >how can I replace the n ; with only o

[PHP-WIN] PHP and ZIP

2002-04-12 Thread Nicole Amashta
I thought I had seen some functions for creating zip files with PHP. I can't find what I'm looking for to specifically create .zip files that are decompressable by, say, winZip. Anyone have experience creating .zip files with PHP? If so, could you point me to the name of the function for doing th

Re: [PHP-WIN] Instructions on how to resolve a DNS

2002-04-12 Thread Bob Curtis
You might try one of the many DNS newsgroups such as microsoft.public.windowsnt.dns for this question. Some basic info: (This is very a very simplified response. You should check out newsgroups dedicated to this complex subject) You need to have a static IP address. Your registrar (such as www.n

[PHP-WIN] Instructions on how to resolve a DNS

2002-04-12 Thread R.S. Herhuth
I am interested in serving up my own domain from my home computer running the latest release of Apache on Windows 2000. I have a domain name already registered. Does anyone know where I can find instructions on how to set up my domain name to point at my server? Thanks, ROn -- PHP Windows Ma

[PHP-WIN] Re: Different folder/ local test

2002-04-12 Thread Fabian Deutsch
You could create a VirtualHost using the VirtualHost directive in the hhtpd.conf. It could look like this: Options FollowSymLinks AllowOverride None ServerAdmin [EMAIL PROTECTED] DocumentRoot C:/WINDOWS/Desktop/work ServerName dummy-host.example.com now u can access the direcotry v

[PHP-WIN] Re: String reduce

2002-04-12 Thread Hugh Bothwell
"Kriegers Horst" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi all, > > how can I replace the n ; with only one > > Mot1;;Mot2;Mot3;;Mot4;;;Mot5Mot6 > ==> > Mot1;Mot2;Mot3;Mot4;Mot5;Mot6 > > So that I can explode it in an array. ..

[PHP-WIN] String reduce

2002-04-12 Thread Kriegers Horst
Hi all, how can I replace the n ; with only one Mot1;;Mot2;Mot3;;Mot4;;;Mot5Mot6 ==> Mot1;Mot2;Mot3;Mot4;Mot5;Mot6 So that I can explode it in an array. Thanks for your help Horst -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.ph

[PHP-WIN] Different folder/ local test

2002-04-12 Thread Tiago Simões
Hello. I still can't manage to test locally the pages in my notebook, without using the htdocs directory. As i told you, i managed to install the all the stuff correctly, made my first test with a php script in the htdocs Apache instalation folder, but when i tried to put that new directory path

[PHP-WIN] Re: Newbie to php

2002-04-12 Thread Chris Hogben
Sorry if i'm posting twice, but i used my nospam address, and i know this server is pickky on addresses :P Hi there, You could always try using mysql_error() to get a better error description. Try this: Hope this helps Chris Hogben "Nik Alleyne" <[EMAIL PROTECTED]> wrote in message [EMAIL

RE: [PHP-WIN] Configuring securely in IIS5 under Windows 2000 Server

2002-04-12 Thread Svensson, B.A.T. (HKG)
> Bruce, > > Thanks for all of you input, it is much appreciated it. > > I do know about securing IIS, but I was concerned about security when > adding PHP into the mix. > > From the answers I received, I am assuming that the security is in the > OS/Server software, and that there aren't any

RE: [PHP-WIN] Re: Security using Apache & Windows

2002-04-12 Thread Svensson, B.A.T. (HKG)
This is after all and PHP list, so if you explain the relation to PHP then people might help you Otherwise you might try ask in an apache or MS Windows support group > -Original Message- > From: Tim Mackenzie > Sent: Tuesday, April 02, 2002 5:47 PM > To: [EMAIL PROTECTED] > Subject: