php-windows Digest 19 Feb 2002 10:19:46 -0000 Issue 1007

2002-02-19 Thread php-windows-digest-help


php-windows Digest 19 Feb 2002 10:19:46 - Issue 1007

Topics (messages 12129 through 12142):

Re: dynamic checkboxes submit..help!
12129 by: Nicole Amashta

Latest obsession (controlling Winamp with PHP)
12130 by: Scott
12131 by: Svensson, B.A.T. (HKG)
12132 by: Scott
12133 by: Mike Flynn
12134 by: alain.pop.sonic.net
12135 by: alain.pop.sonic.net
12136 by: Scott

ISAPI and Includes
12137 by: Chris Ogles

PHP4 Step by Step Installation for Windows running CGI or ASPI
12138 by: Andre Amaral

For all the people who were asking about words format
12139 by: Ross Fleming

Re: PHP module for Apache 2.0.32
12140 by: Phillip Fox
12142 by: gaouzief

Re: [PHP-INST] MinGW, building from source -- win32
12141 by: Archer Vallesfin

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

Always some little bug to slip in 

I forgot to do a count on the array to get the size:

Here is my code corrected:

$size = count($ids);
 for($i=0; $i<$size; $i++)
 {
   if ( isset($ids[$i]) )
   // do something
 }


"Nicole Amashta" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> OK, name all the related check boxes with the same name and put [] at the
> end of the name so it looks like an array.
>
> Then, in your phpscript, you can access all the values in the area.
>
> example:
>
> In your HTML page:
>
> 
> 
> 
> 
> 
>
> in your php script, access the ids like so:
>
> $ids
>
> you can loop through the $ids array to verify WHAT values were actually
> checked on the form.
>
> for($i=0; $i<$ids; $i++)
> {
>   if ( isset($ids[$i]) )
>   // do something
> }
>
>
> Hop this helps ya!
> Nicole Amashta
> www.aeontrek.com
> 
>
> "Sandeep Murphy" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Hi,
> >
> > I have a dynamically generated tree of checkboxes which I need to submit
> to
> > a PHP page for performing a search..
> >
> > Can anyone pl suggest as to how I can submit the values of all the
> > checkboxes which are checked??
> >
> > TIA,
> >
> > sands
>
>



--- End Message ---
--- Begin Message ---

Morning:

I have this project I have been running through my head since last July.  
I want to build a music scheduling and control program.  I work for an FM 
station now and the system we use there is over $250,000 for the basics.

The idea is to have either MySQL or MS-SQL hold the song information, 
build a web based front-end that will allow you to schedule the songs for 
a 24 hour period and then have PHP on the back-end controlling some MP3 
player.

I have attempted to get it running using WinAMP, but WinAMP does not close 
when one song is over, so the script hangs, even setting the time_limit 
will only increase the amount of time it hangs.  I tried mpg123 for 
Windows and while it works, I would loose the cross-fading and forget 
trying to do anything else on the machine as it skips.

Brings me to the question, I am using the wrong tool (PHP) for this 
project or do you think I am just not looking hard enough.  Would you do 
something like this with PHP?  I know there are a couple of web stations 
using this set-up on Linux, but I am using Windows for this project.

Any thoughts, drop them my way.

Thanks,

-Scott 



--- End Message ---
--- Begin Message ---

From: Scott 

>I know there are a couple of web stations 
>using this set-up on Linux, but I am using Windows for this project.
>
>Any thoughts, drop them my way.

Question: What prevents you from implement the system based on a Linux
server just as the other "web stations"?

If there is nothing that prevents this, why not go for a much secure and
stable network platform like Linux?

--- End Message ---
--- Begin Message ---

On Mon, 18 Feb 2002, Svensson, B.A.T. (HKG) wrote:
> Question: What prevents you from implement the system based on a Linux
> server just as the other "web stations"?
> If there is nothing that prevents this, why not go for a much secure and
> stable network platform like Linux?

In the end, I guess nothing prevents me from using Linux other than 
wanting to take it with me, ie laptop runs XP and I carry it around with me.
I did have it working under Linux with mpg123 with ecasound.  Just looking 
for a possible Windows solution.

-Scott



--- End Message ---
--- Begin Message ---

At 04:56 PM 2/18/2002 +0100, Svensson, B.A.T. (HKG) wrote:

>Question: What prevents you from implement the system based on a Linux
>server just as the other "web stations"?
>
>If there is nothing that prevents this, why not go for a much secure and
>stable network platform like Linux?

Is this really a wort

php-windows Digest 19 Feb 2002 22:34:33 -0000 Issue 1008

2002-02-19 Thread php-windows-digest-help


php-windows Digest 19 Feb 2002 22:34:33 - Issue 1008

Topics (messages 12143 through 12152):

why i can't load the gettext extension?
12143 by: GB

PHP y sql server 2k???
12144 by: Eduardo Cancino
12145 by: Svensson, B.A.T. (HKG)
12146 by: Hunter, Ray

Re: ISAPI and Includes
12147 by: Nicole Amashta

Re: calling PHP code on a different website
12148 by: Ridai Govinda Pombo

Dynamic file creation in Win NT4.
12149 by: Sridhar Moparthy

Re: [PHP] Dynamic file creation in Win NT4.
12150 by: Hunter, Ray
12151 by: Piotr Pluciennik

Re: htaccess password encryption
12152 by: Rubén Gutiérrez

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

Hi,
i'm trying to load the gettext extension for the IMP/HORDE webmail
project.
i've installed all in a single machine with Win2k pro-iis5 and php
like exe (not dll).
i've trie to uncomment the line corrispondent line in the php.ini file
(extension=php_gettext.dll) but when i launch a default php page on
IE, 
i receive the error "Unable to load dynamic library
'e:\Inetpub\php-4\extensions\php_gettext.dll'" 
'i've controlled: the extension exist in the specified folder, the
gnu_gettext.dll library exist in the "dlls" folder of php instal
folder.
 so i don't know why the gettex extension not load. 
someone can help me?
thank's in advance 
Giorgio
 

--- End Message ---
--- Begin Message ---

New to list...

Hi, how to start php & sql server!??

thanks!

--
Eduardo Cancino
[EMAIL PROTECTED]
---
Coordinador de Desarrollo Web
CENTRO DE INFORMACION Y COMUNICACION AMBIENTAL DE NORTEAMERICA A.C.
---
www.ciceana.org.mx
---
56 59 05 09
Av. Progreso #3, Col. del Carmen, Viveros de Coyoacan, 04010, Mexico D.F.



--- End Message ---
--- Begin Message ---

From: Eduardo Cancino

>Hi, how to start php & sql server!??

Wich RDBMS do you use?

--- End Message ---
--- Begin Message ---

Check the manual here:

http://www.php.net/manual/en/ref.odbc.php

Ray Hunter
Firmware Engineer

ENTERASYS NETWORKS


-Original Message-
From: Eduardo Cancino [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, February 19, 2002 8:51 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] PHP y sql server 2k???


New to list...

Hi, how to start php & sql server!??

thanks!

--
Eduardo Cancino
[EMAIL PROTECTED]
---
Coordinador de Desarrollo Web
CENTRO DE INFORMACION Y COMUNICACION AMBIENTAL DE NORTEAMERICA A.C.
---
www.ciceana.org.mx
---
56 59 05 09
Av. Progreso #3, Col. del Carmen, Viveros de Coyoacan, 04010, Mexico D.F.



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---
--- Begin Message ---

Comment out your include path in your php.ini unless you really want to
globally include paths 

;include_path='c:\php\includes\'

Just don't use the include_path if you don't really need to.

Or,  make sure the "CURRENT" path "." is in the include like so:

include_path='.\;c:\php\includes\'



And, if you have a main.php page which includes other files, be sure those
other files don't include the same files, or there will be a conflict.

example

class Entity is in file: Entity.inc

class User extends Entity is in class User.inc and requires that class
Entity be visible to class User in order to extend the Entity class.

class Company extends Entity is in class Company.inc and requires the Entity
class be visible in order to extend it.


If you have the main page that needs to use the User class and the Company
class, then you should do this:



If you do this, no conflict will happen, but if you tried to include Entity
in BOTH of the subclasses files, you would encounter an error saying that
the Entity class already exists.

Now, this may not have been your original question, but just in case, I
think this is somewhat related anyway.

Nicole Amashta
www.aeontrek.com



"Chris Ogles" <[EMAIL PROTECTED]> wrote in message
01c1b8d6$4325fe00$[EMAIL PROTECTED]">news:01c1b8d6$4325fe00$[EMAIL PROTECTED]...
>
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> I have a an IIS 5.0 runing the ISAPI and have a problem getting my
> includes to work.  The situation is the main php page includes page d
> and e.  Pages d and e both have other includes in them.   When i go
> to the pages now i get an include error like the following:
>
> Warning: Failed opening 'phpbb/includes/constants.php' for inclusion
> (include_path='c:\php\includes\') in
> E:\InetPub\wwwroot\phpbb\common.php on line 113
>
> My php.ini file is pointing to only one directory for includes which
> is the 

php-windows Digest 20 Feb 2002 11:49:35 -0000 Issue 1009

2002-02-20 Thread php-windows-digest-help


php-windows Digest 20 Feb 2002 11:49:35 - Issue 1009

Topics (messages 12153 through 12158):

WinXP Error Passing Variables (and creating)
12153 by: Chris
12154 by: Devon Knowles
12155 by: Chris
12156 by: Ross Fleming
12157 by: David Redmond

updating db
12158 by: Sandeep Murphy

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

I currently have been trying to learn PHP (as Apache module) and it doesn't
work.  Through Apache I get this error:
"[Tue Feb 19 18:41:11 2002] [error] PHP Warning:  Undefined variable:
username in ...filepath...\apache group\apache\htdocs\second.php on line 13"

The book I'm using to program with PHP says that by creating a NAME value
for a FORM gives me a variable with that name (and '$' included infront of
it).  However, it doesn't seem to work that way:

Apache version: 1.3.23
PHP version: 4.1.1
OS: Windows XP

I think Windows XP and Apache are the problem because on their site they
have listed this warning for XP:

"If you will install Apache on Windows XP, be warned. There is a known bug
our users have identified; you may or may not encounter it yourself. It will
be fixed in the forthcoming Apache 1.3.24 release. The effects of this bug
within Apache 2.0 Beta are not yet determined.
It appears the combination of duplicating file handles between and parent
and child process, in conjunction with blocking sends to the http client,
may result in corrupted output. You may not see this in MSIE, which tends to
throw any error in the 'Cannot find server or DNS Error' category.

If you receive such errors on Windows XP using SSI scripting or PHP scripts,
but not static pages, you are probably a victim of this bug. It has been
reported to Microsoft, we have no further details at this time."

The thing is though, the bug is kind of a strange one... not creating the
variable.  Is that the result of Apache and XP or am I doing something
completely wrong (in the following code I also tried the echo function):

CODE
---





Please type your name here:




You typed:






--- End Message ---
--- Begin Message ---

No offense, but you are doing something completely wrong.  For starters,
your  has neither a method nor an action. Try this code, if you have
Apache and PHP installed correctly, it will work. Even on XP.




 Test Form






Username: " . $username;
} else
{
 echo "No data yet, or \$username is empty.";
}
?>



"Chris" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I currently have been trying to learn PHP (as Apache module) and it
doesn't
> work.  Through Apache I get this error:
> "[Tue Feb 19 18:41:11 2002] [error] PHP Warning:  Undefined variable:
> username in ...filepath...\apache group\apache\htdocs\second.php on line
13"
>
> The book I'm using to program with PHP says that by creating a NAME value
> for a FORM gives me a variable with that name (and '$' included infront of
> it).  However, it doesn't seem to work that way:
>
> Apache version: 1.3.23
> PHP version: 4.1.1
> OS: Windows XP
>
> I think Windows XP and Apache are the problem because on their site they
> have listed this warning for XP:
>
> "If you will install Apache on Windows XP, be warned. There is a known bug
> our users have identified; you may or may not encounter it yourself. It
will
> be fixed in the forthcoming Apache 1.3.24 release. The effects of this bug
> within Apache 2.0 Beta are not yet determined.
> It appears the combination of duplicating file handles between and parent
> and child process, in conjunction with blocking sends to the http client,
> may result in corrupted output. You may not see this in MSIE, which tends
to
> throw any error in the 'Cannot find server or DNS Error' category.
>
> If you receive such errors on Windows XP using SSI scripting or PHP
scripts,
> but not static pages, you are probably a victim of this bug. It has been
> reported to Microsoft, we have no further details at this time."
>
> The thing is though, the bug is kind of a strange one... not creating the
> variable.  Is that the result of Apache and XP or am I doing something
> completely wrong (in the following code I also tried the echo function):
>
> CODE--
--
> ---
>
>
> 
> 
> 
> Please type your name here:
> 
> 
> 
> 
> You typed:
>  print($username);
> ?>
> 
> 
>
>



--- End Message ---
--- Begin Message ---

No offense taken, but I have never done this before so I don't really know
what I'm doing with the variable passing and stuff (aside from C++ and VB
knowledge).  I  copied that f

php-windows Digest 20 Feb 2002 23:54:37 -0000 Issue 1010

2002-02-20 Thread php-windows-digest-help


php-windows Digest 20 Feb 2002 23:54:37 - Issue 1010

Topics (messages 12159 through 12166):

Re: updating db
12159 by: Collins, Robert

Re: WinXP Error Passing Variables (and creating)
12160 by: Nicole Amashta
12161 by: Nicole Amashta
12165 by: Chris Earle

Re: calling PHP code on a different website
12162 by: Alek Andreev

Run string as PHP code
12163 by: Nicole Amashta
12164 by: Collins, Robert

Writing text to files on Windows
12166 by: Robert Abbate

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

You could try something like this:

";
echo "ID : ";
echo "Name : ";
echo "";
echo "";
}
?>

-Original Message-
From: Sandeep Murphy [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 20, 2002 5:48 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] updating db


Hi,

Can anyone tell me how I can update a column in MySQL based on form
input

TIA,
sands

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---
--- Begin Message ---

Also, read this (which is taken from the php.ini):


 E_NOTICE  - run-time notices (these are warnings which often result
; from a bug in your code, but it's possible that it was
; intentional (e.g., using an uninitialized variable and
; relying on the fact it's automatically initialized to
an
; empty string)


So, by using ~E_NOTICE in the statement I last showed you, you suppress
those WARNINGS, if this is the case with your problem.

-Nicole Amashta
www.aeontrek.com


"Chris" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I currently have been trying to learn PHP (as Apache module) and it
doesn't
> work.  Through Apache I get this error:
> "[Tue Feb 19 18:41:11 2002] [error] PHP Warning:  Undefined variable:
> username in ...filepath...\apache group\apache\htdocs\second.php on line
13"
>
> The book I'm using to program with PHP says that by creating a NAME value
> for a FORM gives me a variable with that name (and '$' included infront of
> it).  However, it doesn't seem to work that way:
>
> Apache version: 1.3.23
> PHP version: 4.1.1
> OS: Windows XP
>
> I think Windows XP and Apache are the problem because on their site they
> have listed this warning for XP:
>
> "If you will install Apache on Windows XP, be warned. There is a known bug
> our users have identified; you may or may not encounter it yourself. It
will
> be fixed in the forthcoming Apache 1.3.24 release. The effects of this bug
> within Apache 2.0 Beta are not yet determined.
> It appears the combination of duplicating file handles between and parent
> and child process, in conjunction with blocking sends to the http client,
> may result in corrupted output. You may not see this in MSIE, which tends
to
> throw any error in the 'Cannot find server or DNS Error' category.
>
> If you receive such errors on Windows XP using SSI scripting or PHP
scripts,
> but not static pages, you are probably a victim of this bug. It has been
> reported to Microsoft, we have no further details at this time."
>
> The thing is though, the bug is kind of a strange one... not creating the
> variable.  Is that the result of Apache and XP or am I doing something
> completely wrong (in the following code I also tried the echo function):
>
> CODE--
--
> ---
>
>
> 
> 
> 
> Please type your name here:
> 
> 
> 
> 
> You typed:
>  print($username);
> ?>
> 
> 
>
>



--- End Message ---
--- Begin Message ---

That won't work because you have to actually send the form before using the
variable $username.

Check your php.ini and make sure you have your error_reporting  line set
like this:

error_reporting  =  E_ALL & ~E_NOTICE

hope that helps,
Nicole Amashta
www.aeontrek.com

"Chris" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I currently have been trying to learn PHP (as Apache module) and it
doesn't
> work.  Through Apache I get this error:
> "[Tue Feb 19 18:41:11 2002] [error] PHP Warning:  Undefined variable:
> username in ...filepath...\apache group\apache\htdocs\second.php on line
13"
>
> The book I'm using to program with PHP says that by creating a NAME value
> for a FORM gives me a variable with that name (and '$' included infront of
> it).  However, it doesn't seem to work that way:
>
> Apache version: 1.3.23
> PHP version: 4.1.1
> OS: Windows XP
>
> I think Windows XP and Apache are the problem because on their site they
> have listed this warning for XP:
>
> 

php-windows Digest 21 Feb 2002 12:25:04 -0000 Issue 1011

2002-02-21 Thread php-windows-digest-help


php-windows Digest 21 Feb 2002 12:25:04 - Issue 1011

Topics (messages 12167 through 12181):

Running Windows full binary distribution
12167 by: Tom Belich
12176 by: Christoph Grottolo

FindWindow() in C# called by PHP
12168 by: Devon Knowles

Re: Writing text to files on Windows
12169 by: Rubén Gutiérrez
12170 by: alain samoun

Passing and array in a query string
12171 by: quincy
12172 by: Sanduhr

Re: Run string as PHP code
12173 by: Sanduhr
12174 by: David

inserting date into oracle!!!
12175 by: Sandeep Murphy
12177 by: Svensson, B.A.T. (HKG)
12179 by: Sandeep Murphy

Re: [PHP] Dynamic file creation in Win NT4.
12178 by: Christoph Grottolo

extensions for PHP in Windows
12180 by: Olga Tonkonog

FTP error in v4.1.1
12181 by: Josh Seward

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

I've installed the windows installer version of php on a NT server.  I've
also installed the windows binary on my Windows 2000 pro workstation.
Everything works fine on the CGI-Windows installer version on the server,
but I can't get the same applications to run from my Win2KPro workstation (I
get blank pages or empty pages).  Does this have something to do the way the
php.ini file is set up, or is it something else?

--- End Message ---
--- Begin Message ---

| I've installed the windows installer version of php on a NT server.  I've
| also installed the windows binary on my Windows 2000 pro workstation.
| Everything works fine on the CGI-Windows installer version on the server,
| but I can't get the same applications to run from my Win2KPro workstation
(I
| get blank pages or empty pages).  Does this have something to do the way
the
| php.ini file is set up, or is it something else?


1. make a test script with the following content: 

2. save it as test.php in your web root directory (where your web pages
reside).

3. Check if php works by running the script from the command line:
c:\php\php.exe c:\mywebroot\test.php.
If you get a long output which looks like HTML php works. If not, something
went wrong with your php installation. Read the corresponding chapter in the
manual.

4. Call the test script from your browser (http://myhostname/test.php)
If you get a page with info about your php installation, your webserver and
PHP work together. If not, read the chapter about configuring PHP with your
webserver software in the PHP manual.

5. The output of the test script should reflect your php.ini settings.

Christoph




--- End Message ---
--- Begin Message ---

Has anyone been able to get C# code working that is called from PHP and uses
the FindWindow() ATL call? I have a COM module that works outside of the PHP
environment fine, but when called from a PHP script, FindWindow() always
returns 0.

Thanks in advance.

- Devon Knowles



--- End Message ---
--- Begin Message ---


On Wed, 20 Feb 2002 17:51:30 -0800
"Robert Abbate" <[EMAIL PROTECTED]> wrote:

> I seem to be having trouble being able to *write* text to a file within a
> Windows server. Does anyone know what needs to be done to get this to work?
> I've tried making sure that the direcories are set to the maximum
> permissions (read/write/execute) to anyone. Still doesn't work.
> 
> I'm trying this:
> 
>   $fp = fopen("test.txt", "w"); flock($fp, 1);
>   fputs($fp, "testing");
>   fclose($fp);

Try replacing this:
flock($fp, 1);
with this:
flock($fp, LOCK_EX);
or with this, if you use a PHP version prior to PHP 4.0.1:
flock($fp, 2);

Cheers,

Rubén Gutiérrez


--- End Message ---
--- Begin Message ---

Works on win98. Try your script without flock() - maybe a problem with ur
win server.
A+
Alain


-Original Message-
From: Robert Abbate [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 20, 2002 5:52 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Writing text to files on Windows


I seem to be having trouble being able to *write* text to a file within a
Windows server. Does anyone know what needs to be done to get this to work?
I've tried making sure that the direcories are set to the maximum
permissions (read/write/execute) to anyone. Still doesn't work.

I'm trying this:

  $fp = fopen("test.txt", "w"); flock($fp, 1);
  fputs($fp, "testing");
  fclose($fp);

and I've tried "a", "a+", "w+", and "w" and no results.





--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--- End Message ---
--- Begin Message ---

I want to find out if it is possible to pass an entire array via a query
string using php?



--- End Message ---
--- Begin Message ---

try serialize() and unserialize()

"Quincy" <[EMAIL PROTECTED]> schreef in bericht
[EMAIL 

php-windows Digest 22 Feb 2002 02:27:21 -0000 Issue 1012

2002-02-21 Thread php-windows-digest-help


php-windows Digest 22 Feb 2002 02:27:21 - Issue 1012

Topics (messages 12182 through 12214):

javascript protected page?
12182 by: Spychala, Wojciech

opener header
12183 by: Spychala, Wojciech

fopen()
12184 by: Olga Tonkonog
12185 by: Svensson, B.A.T. (HKG)

Re: Running Windows full binary distribution
12186 by: Nicole Amashta
12189 by: Scott
12205 by: Tom Belich
12210 by: Christoph Grottolo

Problems connecting to MySQL from a vhost
12187 by: Gerard Earley

Re: inserting date into oracle!!!
12188 by: Nicole Amashta
12199 by: John Lim

PHP Authentication
12190 by: jmt2que001.sneakemail.com
12191 by: Collins, Robert
12204 by: Rasmus Lerdorf
12211 by: Christoph Grottolo

Extensions and php and dll problem on win2k whit php 4.1.1
12192 by: Mike Schmid
12193 by: Scott
12194 by: Mike Schmid
12195 by: Hunter, Ray
12196 by: Mike Schmid
12197 by: Hunter, Ray
12198 by: Mike Schmid

local drive
12200 by: Sandeep Murphy
12201 by: Svensson, B.A.T. (HKG)
12202 by: Nicole Amashta
12203 by: Olivier Hubert
12206 by: Sandeep Murphy
12207 by: Olivier Hubert
12208 by: Sandeep Murphy
12209 by: Svensson, B.A.T. (HKG)

Re: calling PHP code on a different website
12212 by: \[ p i x e l p e t e r \]

Re: Passing and array in a query string
12213 by: Piotr Pluciennik

Form
12214 by: Internerds Canada

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

I know this not right discussion group but if u use PHP I'm sure U use
Javascript

i want to fulfill form on internet page by javascript automaticaly i a get
the error "Access denied"
is it possible to protect html page so no one can fulfil form by
javascript??? if yes is it some way to jump over it?

thanks

Wojtek

--- End Message ---
--- Begin Message ---

Hi 

Some scripts recognize what was previos page on your browser befor u get to
this script (opener)
and if address isn't correct script may not allow to do anything

is it possible send by php header in information that we for example running
script from different location than this is realy??

Sorry for my horrible english

Thanks very much

Wojtek

--- End Message ---
--- Begin Message ---


Hello,

I have problem with function fopen() - if file not exists, fopen() don't
return false, it return
nothing.
Is it only Windows problem or help is false?
Who can help?
Olga


--- End Message ---
--- Begin Message ---

>I have problem with function fopen() - if file not exists, fopen() don't
>return false, it returnnothing.

It is impossible for a function in a typed language to return different data
types dependent on the evaluation of the function. According to the manual
pages of php's fiopen() it should return an integer value.

The php manual says about fopen:

Description

 int fopen ( string filename, string mode [, int use_include_path])


I assume php calls fopen() from the C-library (with some preparing of the
arguments). C's fopen() returns a handler (e.g. an int, a.k.a. integer) to a
file. If the file could not be open the "handler" returned will be zero (0)
- according to the ANSI C std lib spec. I assume that php's fopen() just
forwards this handler, and in case a of failure to open a file, the value
returned by fopen() will be, most likely be, zero.

--- End Message ---
--- Begin Message ---

Also make sure you web server is running.


"Tom Belich" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I've installed the windows installer version of php on a NT server.  I've
> also installed the windows binary on my Windows 2000 pro workstation.
> Everything works fine on the CGI-Windows installer version on the server,
> but I can't get the same applications to run from my Win2KPro workstation
(I
> get blank pages or empty pages).  Does this have something to do the way
the
> php.ini file is set up, or is it something else?



--- End Message ---
--- Begin Message ---

> > I've installed the windows installer version of php on a NT server.  I've
> > also installed the windows binary on my Windows 2000 pro workstation.
> > Everything works fine on the CGI-Windows installer version on the server,
> > but I can't get the same applications to run from my Win2KPro workstation
> > (I get blank pages or empty pages).  Does this have something to do the way
> > the php.ini file is set up, or is it something else?

How about a little more information.  Do you get an error when you try to 
view the pages?  Did you make a page like this and try to load it:

A couple of possible things to che

php-windows Digest 22 Feb 2002 14:49:43 -0000 Issue 1013

2002-02-22 Thread php-windows-digest-help


php-windows Digest 22 Feb 2002 14:49:43 - Issue 1013

Topics (messages 12215 through 12223):

Re: PHP Authentication
12215 by: Gehring Uwe
12216 by: Rasmus Lerdorf
12217 by: Ross Fleming
12220 by: Collins, Robert

"The connection with the server was reset"
12218 by: Ronny Salomonsen
12219 by: Ross Fleming

Bad char Translation
12221 by: -HONU-
12223 by: Svensson, B.A.T. (HKG)

Re: Form
1 by: Nicole Amashta

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

I am running php/CGI with IIS on Win2k with Authentification - it is
working.

Uwe

-Ursprüngliche Nachricht-
Von: Christoph Grottolo [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 21. Februar 2002 20:30
An: [EMAIL PROTECTED]
Betreff: Re: [PHP-WIN] PHP Authentication



"Rasmus Lerdorf" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
| HTTP Auth does not work with the CGI version of PHP which is what I
| presume you are using on Windows.  Switch back to UNIX.

oh, please, dear sysadmin, set up a real good unix server for me -
that's
all you have to do?

rasmus - not everybody has full choice.

Christoph



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--- End Message ---
--- Begin Message ---

Well, then you simply can't use HTTP Authentication from PHP.  The web
server doesn't expose the required information to the CGI environment.  It
isn't PHP's fault.

-Rasmus

On Thu, 21 Feb 2002, Christoph Grottolo wrote:

>
> "Rasmus Lerdorf" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> | HTTP Auth does not work with the CGI version of PHP which is what I
> | presume you are using on Windows.  Switch back to UNIX.
>
> oh, please, dear sysadmin, set up a real good unix server for me - that's
> all you have to do?
>
> rasmus - not everybody has full choice.
>
> Christoph
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


--- End Message ---
--- Begin Message ---

You could always just do the authentication simply from IIS

Ross

-Original Message-
From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
Sent: 22 February 2002 07:55
To: Christoph Grottolo
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] PHP Authentication


Well, then you simply can't use HTTP Authentication from PHP.  The web
server doesn't expose the required information to the CGI environment.  It
isn't PHP's fault.

-Rasmus

On Thu, 21 Feb 2002, Christoph Grottolo wrote:

>
> "Rasmus Lerdorf" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> | HTTP Auth does not work with the CGI version of PHP which is what I
> | presume you are using on Windows.  Switch back to UNIX.
>
> oh, please, dear sysadmin, set up a real good unix server for me - that's
> all you have to do?
>
> rasmus - not everybody has full choice.
>
> Christoph
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--- End Message ---
--- Begin Message ---

It took some digging on the PHP-Win Archive but I found the answer a long
time ago... You have to be running PHP as an Apache module (not a CGI).

in Apache change :

ScriptAlias /php/ "C:/Program Files/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php.exe"

to :

LoadModule php4_module "C:/PHP/sapi/php4apache.dll"
AddType application/x-httpd-php .php

then use something like:




-Original Message-
From: Gehring Uwe [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 22, 2002 1:40 AM
To: [EMAIL PROTECTED]
Subject: AW: [PHP-WIN] PHP Authentication


I am running php/CGI with IIS on Win2k with Authentification - it is
working.

Uwe

-Ursprüngliche Nachricht-
Von: Christoph Grottolo [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 21. Februar 2002 20:30
An: [EMAIL PROTECTED]
Betreff: Re: [PHP-WIN] PHP Authentication



"Rasmus Lerdorf" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
| HTTP Auth does not work with the CGI version of PHP which is what I
| presume you are using on Windows.  Switch back to UNIX.

oh, please, dear sysadmin, set up a real good unix server for me -
that's
all you have to do?

rasmus - not everybody has full choice.

Christoph



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/uns

php-windows Digest 23 Feb 2002 17:05:30 -0000 Issue 1014

2002-02-23 Thread php-windows-digest-help


php-windows Digest 23 Feb 2002 17:05:30 - Issue 1014

Topics (messages 12224 through 12237):

Extension problem.
12224 by: Tom van Gemert
12227 by: Nicole Amashta

Re: Bad char Translation
12225 by: -HONU-
12226 by: -HONU-

pspell
12228 by: Michael Langford

Re: WELCOME to [EMAIL PROTECTED]
12229 by: Dustin_Rabe.blm.gov
12231 by: DL Neil

Merging Arrays
12230 by: W-Mark Kubacki

Re: "The connection with the server was reset"
12232 by: Ross Fleming

php4ts.dll, developing own handlers
12233 by: Alexander Gräf
12236 by: l0t3k
12237 by: Alexander Gräf

Re: opener header
12234 by: Alexander Gräf

Re: swatch internet time
12235 by: B Thomas

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

Yo,

I hace recently installed PHP with PWS 4 on my PC and I am only able to run
*.php documents in the browser. *.php3 extensioned files will display code
as text in the browser window.

Can anybody tell me how to configure things, so it also runs *.php3
extensions?

Help is appreciated... TommyBoy



--- End Message ---
--- Begin Message ---

You need to edit your registry to associate .php3 extension with PHP. You
can look up the documentation with either you php files or at
php.net.

Nicole Amashta
www.aeontrek.com

"Tom Van Gemert" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Yo,
>
> I hace recently installed PHP with PWS 4 on my PC and I am only able to
run
> *.php documents in the browser. *.php3 extensioned files will display code
> as text in the browser window.
>
> Can anybody tell me how to configure things, so it also runs *.php3
> extensions?
>
> Help is appreciated... TommyBoy
>
>



--- End Message ---
--- Begin Message ---

The source file is ISO-8859-1.. and the result is not displayed on a webpage
but in a console ... This is where the problem come  when i display the
result in the console


> I've got a text file containing "blés, Châteaux ..."  (without quotes)
>
> I'm reading this file like this
>
> $FileName = "Test.txt";
> $FileHand = fopen($FileName, "rb");
> $Data = fread($FileHand, filesize($FileName));
> fclose($FileHand);
> print_r($Data);
>
> Under Linux, by asking the script throught an HTTP server ... i've got the
> good text
> blés, Châteaux ...
>
> But when i launch the script through the console (under windows 2000) ...
> characters are translated :
> blùs, Chôteaux ...
>
> what does it means .. .?




--- End Message ---
--- Begin Message ---

... mm something else... when i try
Print("Blés");
the output in the console is
Blùs

And the problem is not only there ... if i send "Blés" to an SQL server
database  it becomes "Blùs" 

!



--- End Message ---
--- Begin Message ---

Does anyone know how to configure pspell for Windows? I think I've installed
it properly, but the compilation using --with-pspell is obviously a linux
command. I'm after either lines to add to php.ini file, or an equivalent
windows compilation command.

Many thanks for any help

Mike Langford




--- End Message ---
--- Begin Message ---

Hi,

I was wondering I am running php on a win2k server and have downloaded and
installed phpwebdev which uses the apache webserver. I need to be able to
send mail on this box. Can you tell me of a program that will work with php
and windows. and what code I need besides the mail() command in php

My Best,

Dustin Rabe
Senior NT Web Developer
[EMAIL PROTECTED]
Ph. 303.236.2259
Fx. 303 236-3327


--- End Message ---
--- Begin Message ---

Hi Dustin,

> I was wondering I am running php on a win2k server and have downloaded and
> installed phpwebdev which uses the apache webserver. I need to be able to
> send mail on this box. Can you tell me of a program that will work with php
> and windows. and what code I need besides the mail() command in php


No need for any extra code, set up the two (Win32) lines in php.ini to point at a 
convenient SMTP email server
and PHP's mail() will work - it's actually an advantage/more simple from a Win box!

Regards,
=dn



--- End Message ---
--- Begin Message ---

Hello,

I'm trying to merge two multidimensional arrays, but it
doesn't work neither with array_merge nor array_merge_recursive.
Is there a solution which makes the following problem-script
to print every element (and not mergin two existing elements
to a new sub-array):

- Code ---
//  Array-merging
$test['main']['sector']['seting']   = 'seting1';
$test['main']['sector']['config']   = 'config1';
$test['main']['mysql']  = 'dbsql1';
$test['main'][0][1] = '01_1';
$test['m

php-windows Digest 24 Feb 2002 13:21:53 -0000 Issue 1015

2002-02-24 Thread php-windows-digest-help


php-windows Digest 24 Feb 2002 13:21:53 - Issue 1015

Topics (messages 12238 through 12242):

windows extension dlls
12238 by: R0bin
12241 by: alain samoun

Re: Merging Arrays
12239 by: R0bin

Re: Bad char Translation
12240 by: R0bin

Opening sockets
12242 by: LaserJetter

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

I rencently installed the windows version of php4,
and it is not seening all the extra extensions, which i
extracted from the zip file, i have tried taking the ;'s
away from the list in php.ini, but every time i restart
apache and try to load a .php file from my local server,
all i hear is the error noise WindowsME makes, and the page
refuses to load. i have look in most of the faqs on the
site to no avail.
please help.

from R0bin



--- End Message ---
--- Begin Message ---

Assuming that you did not have installed php previously in this computer
(This is important as most of the problem then come from a previous php.ini
file or/and from dll extensions that have not been compiled with your new
version.):
- Check if your include directory in php.ini points to a real directory in
your system, where the dlls should be.
- Some extensions dll need more installation files in order to work.
Finally:
- Test phpinfo() at the command line and see what happens.
A+
Alain



-Original Message-
From: R0bin [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 23, 2002 9:37 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] windows extension dlls


I rencently installed the windows version of php4,
and it is not seening all the extra extensions, which i
extracted from the zip file, i have tried taking the ;'s
away from the list in php.ini, but every time i restart
apache and try to load a .php file from my local server,
all i hear is the error noise WindowsME makes, and the page
refuses to load. i have look in most of the faqs on the
site to no avail.
please help.

from R0bin



--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--- End Message ---
--- Begin Message ---

im not saying this will work, but on the PHP website
it has a print_r ( array );
which prints ever element of an array.
"
 'apple', 'b' => 'banana', 'c' => array
('x','y','z'));
print_r ($a);
?>

which will output :

Array
(
[a] => apple
[b] => banana
[c] => Array
(
[0] => x
[1] => y
[2] => z
)
)

Remember that print_r() will move the array pointer to the end. Use reset()
to bring it back to beginning."
(this was copy/pasted from the php.net website)



--- End Message ---
--- Begin Message ---

Maybe the win2k console doesnt have support for
such characters as é or â, or being a microsucks product
saving it under linux and windows goes
"Bleh! an alternative OS, kill it!".
try loading it in a .php web page file and
using apache or something witht the php
preprocessor, and see what happens.



--- End Message ---
--- Begin Message ---

I'm running GTK on Win32 and have made an app that connects to a server and
downloads some data.
I tested it over my LAN and it works fine, using both 10.0.0.1 and
gethostbyname("amd") as the host in fsockopen(host, 80, 30)
I've now tried running it over the internet, trying to connect to the server
www.lottery-machine.co.uk or gethostbyname(www.lottery-machine.co.uk) but it
won;t connect to the server. The window that displays the downloaded data
contains a webpage which is produced by the web host when there's an error
of some kind. If I type in the GET request
(www.lottery-machine.co.uk/clientlogin.php?username=me&password=password) in
a web browser it works fine as expected.
I'm in touch with them about the problem but does anyone know what is
causing this? Does the host only accept connections from web browsers or
something?



--- End Message ---


php-windows Digest 25 Feb 2002 02:42:39 -0000 Issue 1016

2002-02-24 Thread php-windows-digest-help


php-windows Digest 25 Feb 2002 02:42:39 - Issue 1016

Topics (messages 12243 through 12255):

GD2 build
12243 by: Joris Pinnoo

CHMOD
12244 by: ChaoticWorks.cs.com
12245 by: alain samoun
12246 by: ChaoticWorks.cs.com
12247 by: Symeon Charalabides
12248 by: ChaoticWorks.cs.com
12249 by: alain samoun
12252 by: Pac mon

Re: Opening sockets
12250 by: LaserJetter

Unable to fork errors
12251 by: Paul J. Smith

passthru(), system() and exec() - help please
12253 by: Sviss Cobazor

cURL extension
12254 by: Ignatius Teo

Sending a file with fpassthru() or readfile(), causes IE to hang.
12255 by: John Chronakis

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

where can I find a PHP-build with the latest GD-functionality?



--- End Message ---
--- Begin Message ---

i was reading a php book and it says on UNIX machines i must change the CHMOD 
to 666 or 777, how do i do this? i never heard of the CHMOD. thanks.

--- End Message ---
--- Begin Message ---

www.php.net
[SEARCH FOR:] CHMOD [in the FUNCTIONS list:]
http://www.php.net/manual/en/function.chmod.php
A+
Alain

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 24, 2002 10:21 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] CHMOD


i was reading a php book and it says on UNIX machines i must change the
CHMOD
to 666 or 777, how do i do this? i never heard of the CHMOD. thanks.


--- End Message ---
--- Begin Message ---

i put 

chmod ("index.php", 0777);  

in my index.php file and when i viewed it, it displayed
"Warning: chmod failed: Operation not permitted"
anyone know why that is?



--- End Message ---
--- Begin Message ---

> i put 
> 
> chmod ("index.php", 0777);  
> 
> in my index.php file and when i viewed it, it displayed
> "Warning: chmod failed: Operation not permitted"
> anyone know why that is?
> 
chmod is a native Unix command - I doubt tha windows like/permit it. Also, some 
providers won't let you chmod their files or directories. You'll have to change 
the file permissions manually on your Windows box or, if you must have the file 
created automatically, find a way to handle it with its default permissions.
The syntax for your command is correct, anyhow.

Symeon Charalabides (cosmopolitan trainee)
--
http://www.webmate.gr


--- End Message ---
--- Begin Message ---



i have a unix host. thats why i am trying to get this CHMOD to work.  Thanks.

--- End Message ---
--- Begin Message ---

Then post at [PHP-GENERAL]. Here it's for PHP on Windows.
A+
Alain

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 24, 2002 10:57 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] CHMOD




i have a unix host. thats why i am trying to get this CHMOD to work.
Thanks.


--- End Message ---
--- Begin Message ---

When you're at a unix console type this: chmod ### thefilename
###=the numbers for owner, group and global
thefilename=the name of the file you want to change


i was reading a php book and it says on UNIX machines i must change the 
CHMOD
to 666 or 777, how do i do this? i never heard of the CHMOD. thanks.


_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


--- End Message ---
--- Begin Message ---

Well, after browsing through the HTTP/1.1 standards I found that an optional
header "Host" after the GET request could be used.

I now write "GET /clientlogin.php?username=me&password=mypassword
HTTP/1.0\r\nHost: www.lottery-machine.co.uk\r\n\r\n" to the open socket...

and it works fine!!!


"Laserjetter" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I'm running GTK on Win32 and have made an app that connects to a server
and
> downloads some data.
> I tested it over my LAN and it works fine, using both 10.0.0.1 and
> gethostbyname("amd") as the host in fsockopen(host, 80, 30)
> I've now tried running it over the internet, trying to connect to the
server
> www.lottery-machine.co.uk or gethostbyname(www.lottery-machine.co.uk) but
it
> won;t connect to the server. The window that displays the downloaded data
> contains a webpage which is produced by the web host when there's an error
> of some kind. If I type in the GET request
> (www.lottery-machine.co.uk/clientlogin.php?username=me&password=password)
in
> a web browser it works fine as expected.
> I'm in touch with them about the problem but does anyone know what is
> causing this? Does the host only accept connections from web browsers or
> something?
>
>



--- End Message ---
--- Begin Messag

php-windows Digest 25 Feb 2002 16:08:14 -0000 Issue 1017

2002-02-25 Thread php-windows-digest-help


php-windows Digest 25 Feb 2002 16:08:14 - Issue 1017

Topics (messages 12256 through 12269):

php, xml, win32, encoding, bug?
12256 by: Alexander Gräf

Re: passthru(), system() and exec() - help please
12257 by: alain samoun
12258 by: Sviss Cobazor

compiling and building under Windows
12259 by: Piotr Pluciennik
12267 by: Christoph Grottolo

shell_exec (or other exec sunctions) and pgp.exe
12260 by: Paul J. Smith
12261 by: Paul J. Smith

Beginner's Teething Problems
12262 by: Lindsay Gillam
12263 by: Symeon Charalabides
12264 by: DL Neil
12265 by: DL Neil
12266 by: DL Neil

fopen() - returns null when error occurs...
12268 by: Svensson, B.A.T. (HKG)

comparing dates with oracle
12269 by: Sandeep Murphy

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---


hi,

when im using  i get

Sablotron error on line 1: unknown encoding 'ISO-8859-1' in  on line ...

but i think iso-8859-1, utf-8, etc. support must be build in. in addition,
when i try to include an external xsl with  or a
xml file with "document()", no matter what encoding the target-file has, i
get the following error:

Sablotron error on line 1: unknown encoding '' in  on line ...

yes, the position where the unknown encoding has to appear is empty, he says
he does not know an unknown encoding ... how can i use the including
functions, and how can i use iso-8859-1 as output encoding (the only
workarround would be to convert the output encoding from utf-8 to iso-8859-1
with iconv, but this isnt the way i thought a xml-parser has to work ...)

configuration:

apache:
Server Version: Apache/1.3.23 (Win32) PHP/4.1.1 DAV/1.0.3-dev
Server Built: Jan 24 2002 20:30:48

server:
Windows 2000 Server, SP2
2 GB RAM, dual-xeon 933 mhz

php-info:
System: Windows NT 5.0 build 2195
Build Date: Dec 30 2001
Thread Safety: enabled
ZEND_DEBUG: enabled
Configuration File (php.ini) Path: C:\WINNT\php.ini
Virtual Directory Support: enabled

This program makes use of the Zend Scripting Language Engine:
Zend Engine v1.1.1, Copyright (c) 1998-2001 Zend Technologies
with Zend Optimizer v1.2.0, Copyright (c) 1998-2001, by Zend
Technologies

XSLT support: enabled
iconv support: enabled
XML Support: active
XML Namespace Support: active
EXPAT Version: 1.95.2


;Windows Extensions
;Note that MySQL and ODBC support is now built in, so no dll is needed for
it.
;
;extension=php_bz2.dll
;extension=php_ctype.dll
extension=php_cpdf.dll
extension=php_curl.dll
;extension=php_cybercash.dll
;extension=php_db.dll
;extension=php_dba.dll
;extension=php_dbase.dll
;extension=php_dbx.dll
extension=php_domxml.dll
;extension=php_dotnet.dll
;extension=php_exif.dll
;extension=php_fbsql.dll
;extension=php_fdf.dll
;extension=php_filepro.dll
;extension=php_gd.dll
;extension=php_gettext.dll
;extension=php_hyperwave.dll
extension=php_iconv.dll
;extension=php_ifx.dll
;extension=php_iisfunc.dll
;extension=php_imap.dll
;extension=php_ingres.dll
;extension=php_interbase.dll
;extension=php_java.dll
;extension=php_ldap.dll
;extension=php_mbstring.dll
;extension=php_mcrypt.dll
extension=php_mhash.dll
extension=php_ming.dll
;extension=php_mssql.dll
;extension=php_oci8.dll
;extension=php_openssl.dll
;extension=php_oracle.dll
extension=php_pdf.dll
;extension=php_pgsql.dll
;extension=php_printer.dll
;extension=php_sablot.dll
;extension=php_shmop.dll
;extension=php_snmp.dll
extension=php_sockets.dll
;extension=php_sybase_ct.dll
extension=php_xslt.dll
;extension=php_yaz.dll
extension=php_zlib.dll



thanks in advance
alex

__

alexander gräf
[EMAIL PROTECTED]




--- End Message ---
--- Begin Message ---

Show us the part of the script where you use these functions.
A+
Alain


-Original Message-
From: Sviss Cobazor [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 24, 2002 4:37 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] passthru(), system() and exec() - help please


Hi everyone, I'm running Win98/Apache/PHP 4.1.1/MySQL.
Everything so far has been really smooth and I have had no problems at all.
The function passthru() however is really killing me. I can't get it to work
nor system() og exec().
So now I just wanted to know if anyone running the same combo as me has
gotten this/these function(s) to work?

Please let me know asap if you know how to make this work, I really need it.

Thanks...

~ Sviss [EMAIL PROTECTED]




--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--- End Message ---
--- Begin Message ---

Gladly :)
I've tried almost everything sone it's not quotes or full paths that is the
problem.



It seems that not even the header is g

php-windows Digest 26 Feb 2002 08:03:19 -0000 Issue 1018

2002-02-25 Thread php-windows-digest-help


php-windows Digest 26 Feb 2002 08:03:19 - Issue 1018

Topics (messages 12270 through 12291):

Re: comparing dates with oracle
12270 by: Svensson, B.A.T. (HKG)
12271 by: Sandeep Murphy
12272 by: Svensson, B.A.T. (HKG)
12273 by: Jerry Nelson
12274 by: Sandeep Murphy

HELP!!
12275 by: Lindsay Gillam

Again compiling under Windows
12276 by: Piotr Pluciennik

Re: GD2 build
12277 by: Frank M. Kromann
12279 by: Joris Pinnoo
12281 by: Frank M. Kromann

Help with XSL
12278 by: Noel Billig
12285 by: Phillip Fox
12289 by: J Wynia

compiling from cvs with vc++.net
12280 by: Christoph Grottolo
12282 by: Devon Knowles

passthru() on Win98 ??
12283 by: Sviss Cobazor
12284 by: Shrock, Court
12286 by: Sviss Cobazor
12287 by: Shrock, Court
12288 by: Sviss Cobazor
12290 by: Shrock, Court

Re: opener header
12291 by: "Spycha³a, Wojciech"

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---



From: Sandeep Murphy
Sent: Monday, February 25, 2002 5:06 PM

>Hi,
>
>I am trying to compare dates between my form fields and my db field but so
>far keep getting a format error.. Am using an Oracle Db...
>
>my query reads like this:
>
>SQL = "SELECT DISTINCT to_char(DOCUMENT.doc_date,'dd/mm/')
>doc_date,DOCUMENT.document_code from Document where";

Did you miss a comma between to_char(DOCUMENT.doc_date,'dd/mm/') and
doc_date ?

>SQL += " doc_date BETWEEN '15/11/1258' AND '15/08/1988 '";
>
>can anyone pl tell me whats wrong up here??

--- End Message ---
--- Begin Message ---



-Original Message-
From: Svensson, B.A.T. (HKG) [mailto:[EMAIL PROTECTED]]
Sent: segunda-feira, 25 de Fevereiro de 2002 16:35
To: [EMAIL PROTECTED]
Cc: 'Sandeep Murphy'
Subject: RE: [PHP-WIN] comparing dates with oracle


 to_char(DOCUMENT.doc_date,'dd/mm/')  --> is for formatting the date and
"doc_date" after it is meant as an alias...

any mistake here???

I just need to obtain a code for a date which lies within the form inputted
date values...

From: Sandeep Murphy
Sent: Monday, February 25, 2002 5:06 PM

>Hi,
>
>I am trying to compare dates between my form fields and my db field but so
>far keep getting a format error.. Am using an Oracle Db...
>
>my query reads like this:
>
>SQL = "SELECT DISTINCT to_char(DOCUMENT.doc_date,'dd/mm/')
>doc_date,DOCUMENT.document_code from Document where";

Did you miss a comma between to_char(DOCUMENT.doc_date,'dd/mm/') and
doc_date ?

>SQL += " doc_date BETWEEN '15/11/1258' AND '15/08/1988 '";
>
>can anyone pl tell me whats wrong up here??

--- End Message ---
--- Begin Message ---

> to_char(DOCUMENT.doc_date,'dd/mm/')  --> is for formatting the date
and
>"doc_date" after it is meant as an alias...
>
>any mistake here???
>
>I just need to obtain a code for a date which lies within the 
>form inputted date values...

I don't know the Oracle syntax, but with in MS SQL you just write:

WHERE  BETWEEN <|> AND
<|>

Ain't one able to do the kind of same in Oracle? With other words: do you
really need to convert the first operand into a char string?


--- End Message ---
--- Begin Message ---

Oracle formats it's date differently.
Try this :

between to_date('15/11/1258', 'dd/mm/') and 
to_date('15/08/1988','dd/mm/')


*-*---*--*-*-*-**
Jerry Nelson
Project Manager / Analyst
Datanamics, Inc.
973-C Russell Ave
Gaithersburg, MD 20879
TEL: 301-948-3515


--- End Message ---
--- Begin Message ---

it works..!

thnx..

-Original Message-
From: Jerry Nelson [mailto:[EMAIL PROTECTED]]
Sent: segunda-feira, 25 de Fevereiro de 2002 16:55
To: [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] comparing dates with oracle


Oracle formats it's date differently.
Try this :

between to_date('15/11/1258', 'dd/mm/') and 
to_date('15/08/1988','dd/mm/')


*-*---*--*-*-*-**
Jerry Nelson
Project Manager / Analyst
Datanamics, Inc.
973-C Russell Ave
Gaithersburg, MD 20879
TEL: 301-948-3515


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---
--- Begin Message ---

Hi,

I am just starting out learning php and have printed off all the manual for
installing on windows. I have a Windows 2000 server using IIS. I have
followed all the instructions being:

goto registry editor and addd new string for the type of extention you will
be using for your .php files.
Installed the php installer
copied php4td.dll and php.exe to system root folder (also copied all other
dll's out of the dll's folder)
Installed the latest ve

php-windows Digest 26 Feb 2002 21:46:20 -0000 Issue 1019

2002-02-26 Thread php-windows-digest-help


php-windows Digest 26 Feb 2002 21:46:20 - Issue 1019

Topics (messages 12292 through 12314):

HTTP_REFERER
12292 by: "Spycha³a, Wojciech"
12298 by: Collins, Robert

PGP, again :(
12293 by: Paul J. Smith

Re: passthru() on Win98 ??
12294 by: Sviss Cobazor
12297 by: Sviss Cobazor
12300 by: Mike Flynn
12302 by: Sviss Cobazor
12306 by: Mike Flynn
12308 by: Sviss Cobazor
12312 by: Mike Flynn
12313 by: Sviss Cobazor

PHP + ODBC
12295 by: Sebastian Timocea
12303 by: Sviss Cobazor

Bad char Output...
12296 by: -HONU-

Help, fsockopen() and binary data
12299 by: Broeker, Lance

Method get for Windows ME and PWS w/PHP-4.1.1
12301 by: Frank Tudor
12310 by: DL Neil

Windows crashes
12304 by: Aleborg
12311 by: DL Neil

Re: CHMOD
12305 by: Svensson, B.A.T. (HKG)
12307 by: Mike Eynon

pathinfo();
12309 by: Ross Fleming
12314 by: Ross Fleming

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

$HTTP_REFERER shows the address of the page which referred the browser to
the current page. 
This is set by the user's browser can I set is manualy to cheat a script?

Thanks
Wojtek

--- End Message ---
--- Begin Message ---

Yes its just 



Robert W. Collins II
Webmaster
New Orleans Regional Transit Authority
Phone : (504) 248-3826
Email : [EMAIL PROTECTED]


-Original Message-
From: "Spychala, Wojciech" [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 26, 2002 2:15 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] HTTP_REFERER


$HTTP_REFERER shows the address of the page which referred the browser to
the current page. 
This is set by the user's browser can I set is manualy to cheat a script?

Thanks
Wojtek

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---
--- Begin Message ---

Thought I'd solved this one, but it appears not.

Has anyone got PGP to work with PHP (windows)??  All I'm trying to do is
run a shell command to get PGP to sign a text file.  I could not shell
at all to 2.6, but upgraded PGP to 6.5 then at least PGP was running,
but it can't find any of the keys when I shell to it over the web using
the php scripts.  Run it from the prompt and it's fine.

If anyone is doing this with PGP could they please let me have some
details of how it was accomplished?  I'm pulling my hair out here!

Thanks.


This email or attachment(s) may contain confidential or legally privileged information 
intended for the sole use of the addressee(s). Any use, redistribution, disclosure, or 
reproduction of this message, except as intended, is prohibited. If you received this 
email in error, please notify the sender and remove all copies of the message, 
including any attachments. Any views or opinions expressed in this email (unless 
otherwise stated) may not represent those of Microtech Limited.

This email has been scanned for viruses by MailSafe.  For more infomation please visit 
http://www.microtech.co.gg/mailSafe



--- End Message ---
--- Begin Message ---

It seemed that it was Putty itself that wouldn't work for me (don't ask me
why).
So I used Telnet and it worked.
After having my advicor (this is a education project) visiting me we found
out why that passthru() function didn't work.
It's very simple really, passthru() doesn't allow spaces in paths so
"C:\program files\etc." becomes "C:\program" => false path.
Removing the application (htmldoc.exe) to "C:\" instead did the job.

For anyone else having same problems this is the correct way to type it (my
example):



This function now works and sends the result pdf directly to the browser.

Thanks for your time Court, I wouldn't have thought of using Telnet myself
:)

~ Sviss

"Court Shrock" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> To explain the 400 bad request, you most likely had a typo when you typed
in
> the HTTP request.  The request is case-sensitive and very particular.
Most
> likely, the "Host: localhost" portion of the request messed up somehow.
>
> When you get a "HTTP/1.1 200 OK" response, that means that the webserver
> accepted the request and will process your request.  In order to test
> whether or not the passthru function is doing things properly, you are
> verifying what is being sent to the browser by simulating what the browser
> would send to your webserver and then what the browser is getting in
> response.  It will all start to make sense when you start seeing your
files
> output--of course, in the request that I had you type, I assumed the file
> that returns the pdf is named "index.php" or whatever file yo

php-windows Digest 27 Feb 2002 13:23:39 -0000 Issue 1020

2002-02-27 Thread php-windows-digest-help


php-windows Digest 27 Feb 2002 13:23:39 - Issue 1020

Topics (messages 12315 through 12325):

Help with AnalogX SimpleServer:WWW
12315 by: Travis Smith

mail() function EXTREMELY slow
12316 by: Matt Hillebrand
12317 by: Ross Fleming
12318 by: Matt Hillebrand
12319 by: Ross Fleming
12325 by: Svensson, B.A.T. (HKG)

Dialogs "PHP.EXE Application Failed to Initialize"
12320 by: Neal

COM on NT
12321 by: Vail, Warren
12322 by: alain samoun

Help, I can't compile with files from ext
12323 by: Olga Tonkonog

Re: PHP + ODBC
12324 by: Sebastian Timocea

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

Has anyone had any experience with setting up PHP (CGI version) with AnalogX's 
SimpleServer:WWW? ( http://www.analogx.com )

I've been looking for any docos on this and have not found anything. Also, even 
though the SimpleServer page indicates that the author has been using this with 
PHP, there is no info on the site as to how, and the author has not responded 
to any queries.

I have used apache and that is fine for my purposes, but I am setting this up 
for someone who is just starting out in web programming and wants a simple, 
easily maintained system: For a basic web-server, SimpleServer meets that need 
nicely, if only I could get PHP going too =) 

PS: I have PHP working fine for parsing files, it's only when I try to get this 
to go through the server that things go wrong: An empty page with opening and 
closing HTML, HEAD and BODY tags is produced.

Cheers!
-Trav

--- End Message ---
--- Begin Message ---

I'm using the SMTP server that my company owns, but it takes forever just to
send one email message. Trying to send a batch of emails with PHP's mail()
function takes so long, that the script expires and I get an error message.

I tried searching the archives of this list, but that search page seems to
be broken.

Thanks!


Matt Hillebrand
[EMAIL PROTECTED]




--- End Message ---
--- Begin Message ---

I hope you're not spamming... ;)

In php.ini:

max_execution_time=30 ; Maximum execution time of each script, in
seconds

Change it to what you need.  The speed is pretty much dependent on your SMTP
server though.

Ross

-Original Message-
From: Matt Hillebrand [mailto:[EMAIL PROTECTED]]
Sent: 26 February 2002 23:13
To: php-windows
Subject: [PHP-WIN] mail() function EXTREMELY slow


I'm using the SMTP server that my company owns, but it takes forever just to
send one email message. Trying to send a batch of emails with PHP's mail()
function takes so long, that the script expires and I get an error message.

I tried searching the archives of this list, but that search page seems to
be broken.

Thanks!


Matt Hillebrand
[EMAIL PROTECTED]




--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--- End Message ---
--- Begin Message ---

Yeah, I know about the max time variable, but it would be unacceptable to
take over a minute or two to send a handful of emails!

I read an article that said you could use your ISP's SMTP server for the
mail() function, but that didn't seem to work.



Matt Hillebrand
Web Developer
[EMAIL PROTECTED] 


-Original Message-
From: Ross Fleming [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 26, 2002 3:28 PM
To: Matt Hillebrand; php-windows
Subject: RE: [PHP-WIN] mail() function EXTREMELY slow


I hope you're not spamming... ;)

In php.ini:

max_execution_time=30 ; Maximum execution time of each script, in
seconds

Change it to what you need.  The speed is pretty much dependent on your SMTP
server though.

Ross

-Original Message-
From: Matt Hillebrand [mailto:[EMAIL PROTECTED]]
Sent: 26 February 2002 23:13
To: php-windows
Subject: [PHP-WIN] mail() function EXTREMELY slow


I'm using the SMTP server that my company owns, but it takes forever just to
send one email message. Trying to send a batch of emails with PHP's mail()
function takes so long, that the script expires and I get an error message.

I tried searching the archives of this list, but that search page seems to
be broken.

Thanks!


Matt Hillebrand
[EMAIL PROTECTED]




--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




--- End Message ---
--- Begin Message ---

You should be able to do it, I know I do:


[mail function]
; For Win32 only.
SMTP= smtp.isp.com ; for Win32 only

; For Win32 only.
sendmail_from= [EMAIL PROTECTED] ; for Win32 only


However, I'm aware that this is an extremely pernickity thing, and that

php-windows Digest 28 Feb 2002 03:49:13 -0000 Issue 1021

2002-02-27 Thread php-windows-digest-help


php-windows Digest 28 Feb 2002 03:49:13 - Issue 1021

Topics (messages 12326 through 12335):

Re: mail() function EXTREMELY slow
12326 by: Mike Eynon
12327 by: Svensson, B.A.T. (HKG)
12328 by: David M. Patterson at DPLH Enterprises
12332 by: Matt Hillebrand
12333 by: Ross Fleming

sending mail with mail()
12329 by: Aris Basic
12330 by: DL Neil
12334 by: DL Neil

Re: compiling from cvs with vc++.net
12331 by: Christoph Grottolo

Building for Windows. HOW?? Can't find GOOD docs anywhere!
12335 by: Jobarr

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

I have to agree.  I am using php mail() on my local net without any
problems.  The only thing I am doing differently is using a LINUX box for my
mail server.  My php mail() calls happen almost instantaneously.

Mike.


// Mike Eynon
// www.MikeEynon.com
// 1366 Bulb Ave.
// Santa Cruz, CA  95062
// 831.588.2388

-Original Message-
From: Svensson, B.A.T. (HKG) [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 27, 2002 5:23 AM
To: 'Matt Hillebrand'
Cc: php-windows
Subject: RE: [PHP-WIN] mail() function EXTREMELY slow


Hand on your heart: Do you really believe that this is due to a slowness in
the mail() function of php?

It might, and is probably, related to your own network. For example: have
you check the ICMP traffic, to see if your network traffic is routed
correctly? You might have a router in the routing list that is a "wacko"
router, and that might causes sporadic network hangs, and disconnection's.

/Anders


>-Original Message-
>From: Matt Hillebrand [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, February 27, 2002 12:27 AM
>To: [EMAIL PROTECTED]; php-windows
>Subject: RE: [PHP-WIN] mail() function EXTREMELY slow
>
>
>Yeah, I know about the max time variable, but it would be unacceptable to
>take over a minute or two to send a handful of emails!
>
>I read an article that said you could use your ISP's SMTP
>server for the
>mail() function, but that didn't seem to work.
>
>
>
>Matt Hillebrand
>Web Developer
>[EMAIL PROTECTED] 
>
>
>-Original Message-
>From: Ross Fleming [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, February 26, 2002 3:28 PM
>To: Matt Hillebrand; php-windows
>Subject: RE: [PHP-WIN] mail() function EXTREMELY slow
>
>
>I hope you're not spamming... ;)
>
>In php.ini:
>
>max_execution_time=30 ; Maximum execution time of each script, in
>seconds
>
>Change it to what you need.  The speed is pretty much
>dependent on your SMTP
>server though.
>
>Ross
>
>-Original Message-
>From: Matt Hillebrand [mailto:[EMAIL PROTECTED]]
>Sent: 26 February 2002 23:13
>To: php-windows
>Subject: [PHP-WIN] mail() function EXTREMELY slow
>
>
>I'm using the SMTP server that my company owns, but it takes
>forever just to
>send one email message. Trying to send a batch of emails with
>PHP's mail()
>function takes so long, that the script expires and I get an
>error message.
>
>I tried searching the archives of this list, but that search
>page seems to
>be broken.
>
>Thanks!
>
>
>Matt Hillebrand
>[EMAIL PROTECTED]
>
>
>
>
>--
>PHP Windows Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>--
>PHP Windows Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>
>--
>PHP Windows Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--- End Message ---
--- Begin Message ---

Just some small thought from a small minded person:

Does the web server resolve the mail client, and/or the protocol properly?
Or does it has to "look around in the neighborhood" for it?

The mail clients you mentioned below, are these executed on the same system
as the php scripts are running, or at some other host?

Have you tried to do a telnet on port 25 from the web server to the SMTP
server to see whats happening?

Cheers,

/Anders

>-Original Message-
>From: David M. Patterson at DPLH Enterprises
>[mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, February 27, 2002 5:09 PM
>To: Php-Windows-List; Svensson, B.A.T. (HKG)
>Subject: RE: [PHP-WIN] mail() function EXTREMELY slow
>
>
>I need to add my 2 cents worth here.
>I use php to send email and use my ISP's SMTP server to do it.
>And I still experience the slowness. The curious thing is that
>I don't experience this slowness with any of the standard mail
>clients when sending mail (Outlook, Eudora, etc.)
>
>For whatever it's worth...
>
>Dave
>
>-Original Message-
>From: Svensson, B.A.T. (HKG) [mailto:[EMAIL PROTECTED

php-windows Digest 28 Feb 2002 17:07:17 -0000 Issue 1022

2002-02-28 Thread php-windows-digest-help


php-windows Digest 28 Feb 2002 17:07:17 - Issue 1022

Topics (messages 12336 through 12338):

Re: Method get for Windows ME and PWS w/PHP-4.1.1
12336 by: Steve Yates

Re: WinXP Error Passing Variables (and creating)
12337 by: Steve Yates

Compiled 4.1.2 version
12338 by: Egil Helland

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

"Frank Tudor" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED].;
> I am just trying to pass a value from one page to the
> next, nothing complicated. In the the addess bar I see
> the string pass, but on the page it is blank?

I believe the "register_globals" configuration directive must be turned
on for the variable to auto-create.  Otherwise use $_GET['blah'] or
$HTTP_GET_VARS['blah'].

http://www.php.net/manual/en/language.variables.external.php

 - Steve Yates
 - A fool and his money are soon elected.

/ Taglines by Taglinator - www.srtware.com /




--- End Message ---
--- Begin Message ---

"Chris" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED].;
> PHP version: 4.1.1

Version 4.1's "php.ini-recommended" file defaults to:

register_globals = Off

...an important change from earlier versions as I recall.  This will
prevent variables from being auto-created.  Use $_POST['varname'] or
$HTTP_POST_VARS['varname'], or change that value to "On" and restart
your server.

The given reason for this change was that by simply using $varname you
cannot be sure the user didn't append a GET variable to the URL,
possibly overriding your POST variable's value, or creating a value for
an internally created variable name.

 - Steve Yates
 - If only women came with pull-down menus and on-line help...

/ Taglines by Taglinator - www.srtware.com /





--- End Message ---
--- Begin Message ---

Regarding the latest security recommondations - is there a 4.1.2
compiled php version available for the win32 platform somewhere?

If so, please point me there, as I lack compiling tools right now.

-e



--- End Message ---


php-windows Digest 1 Mar 2002 10:14:02 -0000 Issue 1023

2002-03-01 Thread php-windows-digest-help


php-windows Digest 1 Mar 2002 10:14:02 - Issue 1023

Topics (messages 12339 through 12367):

Re: Beginner's Teething Problems
12339 by: Russell Griechen

Binaries of 4.1.2
12340 by: Flint Doungchak

Re: Compiled 4.1.2 version
12341 by: Christoph Grottolo
12354 by: Barry Wom

[N-PHP-R] Help with MySQL
12342 by: Nicole Amashta
12343 by: Flint Doungchak
12344 by: Svensson, B.A.T. (HKG)
12345 by: Svensson, B.A.T. (HKG)
12346 by: Symeon Charalabides
12347 by: Svensson, B.A.T. (HKG)

Re: Beginner's Teething Problems Source for Triad and a question.
12348 by: Russell Griechen

sendmail for windows
12349 by: Adolfo Meneses
12350 by: Scott St. John
12359 by: Adolfo Meneses
12361 by: DL Neil
12364 by: Scott St. John

Re: php to poup window
12351 by: Afan Pasalic
12352 by: Afan Pasalic
12353 by: Afan Pasalic

compiling 4.1.2 on windows (2000)
12355 by: Barry Wom
12357 by: Barry Wom

Re: HELP!!
12356 by: Barry Wom

having a problem with windows xp + php
12358 by: Tyler Worman
12362 by: Scott St. John
12365 by: Tyler Worman
12366 by: Scott St. John

Accessing Exchange Mail from PHP
12360 by: Vail, Warren

Re: sending mail with mail()
12363 by: Aris Basic

Cannot connect to MySQL with PHP 4.1.1
12367 by: Egil Helland

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---


I am also a new user:
I want to use WinMe and put Apache/Mysql server on my hard disk
I downloaded the Triad from http://phpgeek.com/index.php
PHPTriad is PHPGeek.com's flagship product. It installs a PHP web server
environment on Windows platforms. It includes Apache, PHP, MySQL, Perl
and PHPMyAdmin. It is intended to make lives easier for PHP developers
of all levels.
This was a fool proof install but for I am still at square one,
It is installed in C:\Apache and at C:\Apache\php
The Windows Start Menu contains:
Launch Site which opens in MSIE browser
The address is http://localhost/
C:\Apache\test.php3 comes up in the Open With dialog box...unchecking
the "Always open this ...with" and selecting Internet Explorer brings up
a blank page...however View Source shows the code...
So...I'm thinking out loud...I put hello.php3 in the C:\apache\htdocs
directory...(I have just a smattering of Unix coding) and when I select
Open With ...Internet Explorer...it comes up:
Hello World
...still thinking outloud... I am going to associate  .php, php3 and...
help me fill in the blanks...any other extensions???  with Internet
Explorer.
Then in Windows Explorer I can right click on a file and edit it in my
Html editor which is CoffeeCup Html Editor V 9.1 I will make
C:\Apache\httpd my Working Directory
Going back to the Start Menu in WinMe I click on  PHPMyAdmin
Now...my Database will be named "Foxhunters"
Since I have only a smattering of MySql should I make my tables in MySql
first to learn the language or can/should I just use PHPMyAdmin?
I,m assuming that I can devise snippets of code that I can enter enblock
mode to minimize typing.
1. Is the number of characters in a window critical...can it be enlarged
later or should I try to get it right the first time?
2. If I use a 30 character line will a 40 character string show/work?
Note...I am wondering why I can't find a tutorial that would show what I
have mused about here or any questions/syntax in the future???
Hey now...watch for me and comment/help for I am a babe in the woods...

~`~`~Russell Griechen_Historian~`~`~
The Foxhunter's Historical Society
Join us for Foxhunting History and General
Discussions at our our mailing list at:
http://www.gigo.com/mailman/listinfo.cgi/Foxhunters
http://www.geocities.com/efoxfiles



--- End Message ---
--- Begin Message ---

Hey There,

I wondering if anyone out there know if there are binaries of the 4.1.2
release that takes care of the multiple-part/form data security bug in PHP
4.1.0. Is this fixed in 4.1.1.

I didn't see any binaries on the php4win site either. I imagine the 4.1.0
and 4.1.1 patches are source code patches only.

Is there anyone out there who had compiled 4.1.2?

Thanks,

-Flint




--- End Message ---
--- Begin Message ---

http://security.e-matters.de/advisories/012002.html states that the security
holes in 4.05 - 4.11 do only concern PHP on Linux and Solaris.

There should be no reason to upgrade to 4.12 on Windows. There are neither
new features nor bug fixes.

Christoph



--- End Message ---
--- Begin Message ---


"Christoph Grottolo" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED].;
> http://security.e-matters.de/advisories/012002.html states that the
security
> 

php-windows Digest 1 Mar 2002 23:18:37 -0000 Issue 1024

2002-03-01 Thread php-windows-digest-help


php-windows Digest 1 Mar 2002 23:18:37 - Issue 1024

Topics (messages 12368 through 12393):

Re: Cannot connect to MySQL with PHP 4.1.1
12368 by: Matt Hillebrand
12369 by: Pac mon
12375 by: Egil Helland
12376 by: Egil Helland
12382 by: Nicole Amashta
12384 by: Nicole Amashta

Re: sendmail for windows
12370 by: DL Neil

Re: sending mail with mail()
12371 by: DL Neil

Re: sending mail with mail(), Post Cast Server
12372 by: Matt Hillebrand
12373 by: DL Neil
12374 by: Matt Hillebrand

Re: [N-PHP-R] Help with MySQL
12377 by: Nicole Amashta
12378 by: Nicole Amashta
12379 by: Nicole Amashta

any comment?
12380 by: Afan Pasalic
12381 by: Erik H. Mathy
12383 by: Nicole Amashta

[Security] PHP Exploit - Please Check Yourself
12385 by: Thomas Davis

configure PSPELL help please!!
12386 by: MG Langford

How can PHP receive and display data from a silent POST?
12387 by: Afan Pasalic
12391 by: Collins, Robert
12392 by: Nicole Amashta

COM Methods and Attributes
12388 by: Vail, Warren

PHP4.1.x - Step-by-Step Installation
12389 by: Andre Amaral

'popen' command under WinXP
12390 by: Chris Haidvogel

error query
12393 by: Mark Sweeney

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

I had a similar problem. One day, all of a sudden, I couldn't use my mysql
functions unless I omitted the db link identifier. Function calls like:

mysql_query($sql, $conn)

will not work for me unless I omit $conn, letting the functions assume the
last connection made to the db:

mysql_query($sql)

I don't think I was getting the same error message you were though. Has
anyone else had this strange problem? Thanks.



Matt Hillebrand
Web Developer
[EMAIL PROTECTED] 


-Original Message-
From: Egil Helland [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 2:14 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Cannot connect to MySQL with PHP 4.1.1


For some reason, after I upgraded to 4.1.1, I am not able to connect
to  MySQL DB sources anymore. AFAIK I have set up the ini file like I
should, there are no differences in the IIS config since the 4.0.5
version I have been running here was installed.

Anyone familiar with this? I have seen hundreds of these errors all
over the web, but I have not found a solution to the problem yet. I
am tired of searching around the web for something that is probably
trivial :)

I have not upgraded my MySQL install, only php. The codeline that
does not get through is:

mysql_connect($host,$user,$password) or die ('Could not connect');

The output I get is:

Warning: Can't connect to MySQL server on 'localhost' (10061) in
 on line 77

Warning: MySQL Connection Failed: Can't connect to MySQL server on
'localhost' (10061) in * on line 77
Could not connect

Regards,


Egil

-=//
  Egil Helland / IKON AS - MCSE, Internet, Intranet
mailto:[EMAIL PROTECTED]  http://egil.net
//=-



--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




--- End Message ---
--- Begin Message ---

Well i'd suggest triple checking that mysqld is running. Uh.. try putting:
$link = mysql_connect() or die();
Just small things, but maybe it'll work.. other than that... No.. i've never 
had a problem with mysql, but then again i'm running apache..not IIS.


Original Message Follows
For some reason, after I upgraded to 4.1.1, I am not able to connect
to  MySQL DB sources anymore. AFAIK I have set up the ini file like I
should, there are no differences in the IIS config since the 4.0.5
version I have been running here was installed.

Anyone familiar with this? I have seen hundreds of these errors all
over the web, but I have not found a solution to the problem yet. I
am tired of searching around the web for something that is probably
trivial :)

I have not upgraded my MySQL install, only php. The codeline that
does not get through is:

mysql_connect($host,$user,$password) or die ('Could not connect');

The output I get is:

Warning: Can't connect to MySQL server on 'localhost' (10061) in
 on line 77

Warning: MySQL Connection Failed: Can't connect to MySQL server on
'localhost' (10061) in * on line 77
Could not connect

Regards,


Egil

-=//
   Egil Helland / IKON AS - MCSE, Internet, Intranet
 mailto:[EMAIL PROTECTED]  http://egil.net
 //=-



--
PHP Windows Mailing List (http://www.php.net/)
T

php-windows Digest 2 Mar 2002 14:43:27 -0000 Issue 1025

2002-03-02 Thread php-windows-digest-help


php-windows Digest 2 Mar 2002 14:43:27 - Issue 1025

Topics (messages 12394 through 12398):

R: [PHP-WIN] error query
12394 by: Darvin Andrioli

Re: any comment?
12395 by: Ross Fleming
12396 by: John Meyer
12397 by: Shrock, Court

Dumb Question
12398 by: Cary

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

Hi Mark,
what is the value of $MID? Have it the table name or any other unespected
value?

Cheers
Darvin

> -Messaggio originale-
> Da: Mark Sweeney [mailto:[EMAIL PROTECTED]]
> Inviato: sabato 2 marzo 2002 0.17
> A: [EMAIL PROTECTED]
> Oggetto: [PHP-WIN] error query
>
>
> Sorry to bother, but I am having a severe problem with this
> (probably stupidly) flawed code.
>
> It is part of a script to call descriptions for images along with
> their filenames from a mysql database. trouble is, it doesnt
> work, and it claims that I have a syntax error near "LIMIT 10"
>
> The code is below, and i would be very thankful if anyone could
> point out jsut hwat I am doing wrong
>
> $newpics = mysql_query("SELECT ID, alt FROM $MID LIMIT 10");
> if (!$newpics) {
> echo( "Error performing query " . mysql_error() . "" );
> exit();
> }
> while ( $row = mysql_fetch_array($newpics) ) {
> $id=$row[ID];
> $alt=$row[alt];
> $alt = htmlspecialchars($alt);
> $alt = eregi_replace("\[b]","",$alt);
> $alt = eregi_replace("\[/b]","",$alt);
> $alt = eregi_replace("\[i]","",$alt);
> $alt = eregi_replace("\[/i]","",$alt);
> echo("$alt");
> }
> ?>
>


--- End Message ---
--- Begin Message ---

php-windows.  Doesn't concern us.  Lap in it while we have it! It's not
often windows users escape server bugs.

Besides, php.net have been showing this for a while now, they've released a
new version to tackle it:

from php.net's main page:
Due to a security issue found in all versions of PHP (including 3.x and
4.x), a new version of PHP has been released. Details about the security
issue are available here. All users of PHP are strongly encouraged to either
upgrade to PHP 4.1.2, or install the patch (available for PHP 3.0.18, 4.0.6
and 4.1.0/4.1.1).

Ross

-Original Message-
From: Afan Pasalic [mailto:[EMAIL PROTECTED]]
Sent: 01 March 2002 15:22
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] any comment?


"Flaws found in PHP scripting language"

http://zdnet.com.com/2100-1105-847252.html


Any comment?


Afan


--- End Message ---
--- Begin Message ---

Patch done, end of story.
- Original Message - 
From: "Afan Pasalic" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 01, 2002 8:21 AM
Subject: [PHP-WIN] any comment?


"Flaws found in PHP scripting language"

http://zdnet.com.com/2100-1105-847252.html


Any comment?


Afan



--- End Message ---
--- Begin Message ---

re: open source and php--I agree with John

re: the article--It is a rather obvious attempt to take pressure off of
Microsoft.

The paragraph:
"In the past, Microsoft's Internet Information Server has had a slew of
problems with flaws in its components that allowed hackers and worms to
break in. This time, the software appears to be less vulnerable to the PHP
flaw."

has only one purpose, try and make microsoft look a little better.  Yes,
this is a particularly bad bug, but a link to the patch was posted WITH the
advisory.  In the microsoft world, patches are not so forcoming to their
enormous amounts of security problems--what's the average wait for a patch
from redmond to fix IIS--and more importantly, how many times has a patch
been necessary?

Nothing more than standard microsft tactics--an example:

"PHP is still a changing language. There are minor differences among PHP
releases. For example, include_once is only available from PHP 4.0 patch
level 1." from
http://www.microsoft.com/technet/treeview/default.asp?url=/TechNet/prodtechn
ol/iis/deploy/depovg/miglamp.asp

Microsoft is the king of marketing new features with their product releases
that are spread far apart.  They put a negative spin on one of the many
awesome side-effects of open source--code constantly gets better in every
release no matter how tiny; this may be a foreign concept to those used to
the endless stream of security/bug fix patches from redmond--they get to
wait years (XP SP1 took a year) for an increase in features and they still
lack the code stability that the wait was supposed to afford them.

-Original Message-
From: John Meyer
To: [EMAIL PROTECTED]
Sent: 3/1/02 7:55 PM
Subject: Re: [PHP-WIN] any comment?

Patch done, end of story.
- Original Message - 
From: "Afan Pasalic" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 01, 2002 8:21 AM
Subject: [PHP-WIN] any comment?


"Flaws found in PHP scripting language"

http://zdnet.com.com/2100-1105-84

php-windows Digest 3 Mar 2002 03:32:29 -0000 Issue 1026

2002-03-02 Thread php-windows-digest-help


php-windows Digest 3 Mar 2002 03:32:29 - Issue 1026

Topics (messages 12399 through 12413):

Re: error query
12399 by: Devon Knowles

Errors when building in .NET
12400 by: Devon Knowles

Parse error?!
12401 by: Aleksandar Skodric
12402 by: Devon Knowles
12403 by: Aleksandar Skodric
12410 by: Shrock, Court

Warning: Undefined variable
12404 by: crizz
12405 by: crizz
12412 by: DL Neil
12413 by: crizz

Re: any comment?
12406 by: alain samoun

PHP Troubles
12407 by: R0bin
12408 by: alain samoun
12409 by: Shrock, Court

Re: Dumb Question
12411 by: Shrock, Court

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

Try building the SQL statement outside of the query. I've usually found that
it fixes the problem.

$sql = "SELECT ID, alt FROM " . $MID . " LIMIT 10";
$newpics = mysql_query($sql);

- Devon Knowles



--- End Message ---
--- Begin Message ---

I am getting +100 errors when I try to build PHP in .NET, specifically when
compiling the following files:

d:\program files\microsoft visual studio
.net\vc7\platformsdk\include\winnt.h
d:\program files\microsoft visual studio
.net\vc7\platformsdk\include\winbase.h
d:\program files\microsoft visual studio
.net\vc7\platformsdk\include\rpcasync.h

The latter two may just error out because of problems in the first, but
either way, the build fails. If anyone knows what I am doing wrong or how to
fix this, please let me know.

Thanks in advance.

- Devon Knowles



--- End Message ---
--- Begin Message ---








  Hi all...
   
  This is my first posting, so if question has been already asked (and 
  answerd) my apologise : )
   
  OK, here it goes. I had Apache on Win XP. It all worked fine till 
  some time ago... I decided to try some other web servers and now I'm 
  running Sambar 5.1 with php 4.
   
  But, I still get the following message:
   
  Parse error: parse error in 
  E:\Root\sidn\sidn_overdracht.php on line 32
  and this is line 32
   
  $subject = "Overdracht van de domein " .$domain;
   
  If I comment this line it goes to the next one... as if everything 
  that has $ in code is not recognised. However, Sambar is running well and 
  PHP works (phpinfo get's the page that it should). So I suspect that it is 
  sth in php.ini (probablt I'm wrong, but... :)
   
  Could anyone help me with this one?
   
  Thanx!
   
  Alex





	
	
	
	
	
	
	




  
IncrediMail - Email has finally evolved - Click 
Here

--- End Message ---
--- Begin Message ---

Can you post the surrounding code for us? Sometimes the line number won't literally 
match the line number in the file.

- Devon Knowles

--- End Message ---
--- Begin Message ---








  Sure...
   
  this is it:
   
  if ($bvorm == "anders" && $bedrijfsvorm_anders == 
  "leeg"){    echo "Opgegeven bedrijfsvorm is niet 
  juist. Wilt u dit controleren en opnieuw 
  aanvragen.";    exit;}
    $to  = "[EMAIL PROTECTED]" . ", " 
  ;  $to .= "[EMAIL PROTECTED]"; //wij sturen 
  een e-mail naar domain-ops voor 
  archief!!!    //dan 
  maken wij subject voor e-mail$subject = "Overdracht van de domein " 
  .$domain;  $bodyk ="--- Provider 
  --
  provider-id..: 
  300060provider-password: 
  lyconuwaprovider-ticket..:provider-authenticatie...: 
  static-password"
   
  the code goes long further...
   
  But every time it says parse error if it comes to $...
   
  Thanx
   
  ---Original Message---
   
  
  From: Devon Knowles
  Date: Saturday, March 
  02, 2002 18:22:04
  To: [EMAIL PROTECTED]
  Subject: [PHP-WIN] Re: 
  Parse error?!
   Can you post the surrounding code for us? Sometimes the 
  line number won't literally match the line number in the file.- 
  Devon Knowles





	
	
	
	
	
	
	




  
IncrediMail - Email has finally evolved - Click 
Here

--- End Message ---
--- Begin Message ---

I see a closing double-quote, but I do not see a semicolon  after that
double-quote on the last line you included:

provider-authenticatie...: static-password"

should it be:

provider-authenticatie...: static-password";

Can't really see anything else, but I have had some misleading errors like
this because I changed some code and forgot a closing }, ", or '.

-Original Message-

php-windows Digest 3 Mar 2002 20:02:00 -0000 Issue 1027

2002-03-03 Thread php-windows-digest-help


php-windows Digest 3 Mar 2002 20:02:00 - Issue 1027

Topics (messages 12414 through 12425):

Re: Warning: Undefined variable
12414 by: alain samoun
12415 by: crizz
12417 by: alain samoun
12424 by: Mike Flynn

cannot write to mySQL database
12416 by: pilotdave
12418 by: alain samoun
12419 by: pilotdave
12420 by: alain samoun

include_once support
12421 by: crizz
12422 by: Rasmus Lerdorf

Counter in PHP and System Variables
12423 by: Wayne Hinch

Re: error query
12425 by: Mark Sweeney

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

Crizz:
Obviously you don't want to do that at this point - No error reporting for a
novice - can be challenging...
Show us your script and we may be able to help. (Sorry I did not see your
previous post(s)...)
A+
Alain


-Original Message-
From: crizz [mailto:[EMAIL PROTECTED]]
Sent: Saturday, March 02, 2002 7:32 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] Warning: Undefined variable


Ok, I changed error_reporting to "no". But now I take no notice about errors
at all. Any convinience mode for a novice?


"Dl Neil" <[EMAIL PROTECTED]> wrote in message
121301c1c250$9afa6d40$c200a8c0@jrbrown">news:121301c1c250$9afa6d40$c200a8c0@jrbrown...
> crizz,
>
> > I'm really newbye in PHP and just installed php on my IIS on my XP.
> All
> > sample scripts I tried returns me error messages about "Warning:
> Undefined
> > variable"
> > It's probably something with the configuration, right?
>
>
> You got it!
> Check out php.ini (in Windows folder).
> There is a load of 'documentation' in amongst the settings/definitions.
> There are a number of 'levels' for error reporting, so you can dial it
> back a notch if you want.
>
> Regards,
> =dn
>



--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--- End Message ---
--- Begin Message ---

No, now it's ok, my scripts works . It doesn't show any Warnings, but the
bad is that it will probably, won't show any error when exist, right. So,
I'd like a good value for error_reporting, show I'll know my mistake without
having all silly wanrings destroying the look of the page.

Thanks for your immediate help,
crizz
"Alain Samoun" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED].;
> Crizz:
> Obviously you don't want to do that at this point - No error reporting for
a
> novice - can be challenging...
> Show us your script and we may be able to help. (Sorry I did not see your
> previous post(s)...)
> A+
> Alain
>
>
> -Original Message-
> From: crizz [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, March 02, 2002 7:32 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] Warning: Undefined variable
>
>
> Ok, I changed error_reporting to "no". But now I take no notice about
errors
> at all. Any convinience mode for a novice?
>
>
> "Dl Neil" <[EMAIL PROTECTED]> wrote in message
> 121301c1c250$9afa6d40$c200a8c0@jrbrown...">news:121301c1c250$9afa6d40$c200a8c0@jrbrown...;
> > crizz,
> >
> > > I'm really newbye in PHP and just installed php on my IIS on my XP.
> > All
> > > sample scripts I tried returns me error messages about "Warning:
> > Undefined
> > > variable"
> > > It's probably something with the configuration, right?
> >
> >
> > You got it!
> > Check out php.ini (in Windows folder).
> > There is a load of 'documentation' in amongst the settings/definitions.
> > There are a number of 'levels' for error reporting, so you can dial it
> > back a notch if you want.
> >
> > Regards,
> > =dn
> >
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>



--- End Message ---
--- Begin Message ---

You should go back to php.ini and reverse your error setting to where it
was. The lines that report an error can be individually preceded with the
"@" character, it will then cut the error reporting for these lines.
A+
Alain


-Original Message-
From: crizz [mailto:[EMAIL PROTECTED]]
Sent: Saturday, March 02, 2002 7:59 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] Warning: Undefined variable


No, now it's ok, my scripts works . It doesn't show any Warnings, but the
bad is that it will probably, won't show any error when exist, right. So,
I'd like a good value for error_reporting, show I'll know my mistake without
having all silly wanrings destroying the look of the page.

Thanks for your immediate help,
crizz
"Alain Samoun" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Crizz:
> Obviously you don't want to do that at this point - No error reporting for
a
> novice - can be challenging...
> Show us your script and we may be able to help. (Sorry I d

php-windows Digest 4 Mar 2002 12:25:16 -0000 Issue 1028

2002-03-04 Thread php-windows-digest-help


php-windows Digest 4 Mar 2002 12:25:16 - Issue 1028

Topics (messages 12426 through 12429):

Re: Warning: Undefined variable
12426 by: crizz

Re: Counter in PHP and System Variables
12427 by: Matt Hillebrand

PHP   -   INGRES  II  Functions
12428 by: Ismini Tsichli

oracle + php + apache +w2k
12429 by: quebe

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

God, I thought no one will tell me! Thanks a lot Mike ;)

"Mike Flynn" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED].;
> Duh, just let him know the proper setting:
>
> error_reporting  =  E_ALL & ~E_NOTICE
>
> That will keep everything but minor warnings.  That's what most people
use.
>
> -Mike
>
> At 07:40 PM 3/2/02 -0800, alain samoun wrote:
> >Crizz:
> >Obviously you don't want to do that at this point - No error reporting
for a
> >novice - can be challenging...
> >Show us your script and we may be able to help. (Sorry I did not see your
> >previous post(s)...)
> >A+
> >Alain
>



--- End Message ---
--- Begin Message ---

You can use the PHP variable $HTTP_USER_AGENT or you can use javascript's
navigator.appName and navigator.appVersion.

To create a hit counter, use a database table (named pages?) with a column
called hits. Every time the page loads, do:

mysql_query("update pages set hits=hits+1 where id='$id'");
$result = mysql_query("select hits from pages where id='$id'");
list($hits) = mysql_fetch_array($result);

You could have the $id embedded in your page, or you could set up something
more dynamic.


Matt Hillebrand


-Original Message-
From: Wayne Hinch [mailto:[EMAIL PROTECTED]]
Sent: Sunday, March 03, 2002 5:57 AM
To: PHP Windows
Subject: [PHP-WIN] Counter in PHP and System Variables


Hi,

I'm currently doing an assignment at university.

Is it possible that a hit counter can be created using php if so how can
this be done?

Lastly how can I show the what browser the client is using in their
browser?

Cheers

Wayne


--- End Message ---
--- Begin Message ---

Hi!

Has anyone used the INGRES II functions in PHP for Windows?

PHP and Apache crash when I activate  "extension=php_ingres.dll"  in php.ini, I think 
there might be a problem with php_ingres.dll file.

Hope someone can help me out.

Ismini.

--- End Message ---
--- Begin Message ---

Hi
when I'm trying to connect to my oracle db with
";
$db = "authors";
$c1 = ocilogon("pawel","pawel",$db);

function select_data($conn)
{ $stmt = ociparse($conn,"select * from pawel.authors");
  ociexecute($stmt,OCI_DEFAULT);
  echo $conn."selecting\n\n";
  while (ocifetch($stmt)){
echo ociresult($stmt,"au_fname")." ";
echo ociresult($stmt,"au_lname")." ";
echo ociresult($stmt,"title")."\n";
  }
  echo $conn."done\n\n";
}

select_data($c1);
ocilogoff($c1);
print "";
?>

I've an errors like :
"Warning: Unable to load dynamic library 'c:/php/php_oci8.dll' "
and :
"Fatal error:  Call to undefined function:  ocilogon() in ...".
In my php.ini I've enabled the extension=php_oci8.dll and
extension_dir=c:\php
The file php_oci8.dll I've put to the path c:\php; c:\php\extension;
c:\winnt\system32

can someone help me?
best regards - Pawel





--- End Message ---


php-windows Digest 5 Mar 2002 01:29:46 -0000 Issue 1029

2002-03-04 Thread php-windows-digest-help


php-windows Digest 5 Mar 2002 01:29:46 - Issue 1029

Topics (messages 12430 through 12454):

shell commands...
12430 by: crizz
12436 by: Nicole Amashta
12437 by: Scott St. John

Mail with php and w2k
12431 by: Mike Schmid

Re: error query
12432 by: DL Neil

Re: Warning: Undefined variable
12433 by: Nicole Amashta
12434 by: Nicole Amashta
12448 by: DL Neil

Re: cannot write to mySQL database
12435 by: Nicole Amashta
12439 by: pilotdave
12441 by: Nicole Amashta
12442 by: Nicole Amashta
12443 by: Nicole Amashta
12444 by: Nicole Amashta
12446 by: pilotdave
12447 by: Athene McGregor-Macdonald
12450 by: pilotdave
12451 by: Nicole Amashta

PHP 4.1.2 for Win32 - File Upload Exploit
12438 by: Fabio De Martin
12440 by: Rasmus Lerdorf

mail() is sometimes very slow
12445 by: Athene McGregor-Macdonald

t1lib
12449 by: think a Bit
12453 by: Pac mon
12454 by: Pac mon

Reading cookies set by PHP/WIN using ASP
12452 by: Krane, John

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

How can execute a shell command through PHP? A small example will be great!



--- End Message ---
--- Begin Message ---

exec()
system()

For more detailed info on using these php functions, go to php.net here:
http://www.php.net/manual/en/ref.exec.php

Hope this puts you on the right track.

Good luck,
Nicole
www.aeontrek.com

"Crizz" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED].;
> How can execute a shell command through PHP? A small example will be
great!
>
>



--- End Message ---
--- Begin Message ---

I am doing an exex on Windows to power my mp3 jukebox, something like 
this:

exec('winamp.exe M100101.mp3');

You may have to tweak around and check the php.net docs.  Pay close 
attention to the part about sending the output to null.

-Scott




On Mon, 4 Mar 2002, crizz wrote:

> How can execute a shell command through PHP? A small example will be great!
> 
> 
> 
> 

-- 



--- End Message ---
--- Begin Message ---

Hi NG

how you have configured your php.ini (mail point) and your windws to mail?

Thanks



--- End Message ---
--- Begin Message ---

Mark,
I seem to be jumping in part-way, but...

I seem to have isolated my problem. My code will only work with
non-numerical tables for some reason, which is kind of a pain.

=Why do you say that?

Is there any way to use php to connect to a mysql table that has a
numerical value as its name (1,2,3 etc)?

=Check out http://www.mysql.com/doc/L/e/Legal_names.html

Regards,
=dn


--- End Message ---
--- Begin Message ---

error_reporting = E_ALL & ~E_NOTICE

"Crizz" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED].;
> No, now it's ok, my scripts works . It doesn't show any Warnings, but the
> bad is that it will probably, won't show any error when exist, right. So,
> I'd like a good value for error_reporting, show I'll know my mistake
without
> having all silly wanrings destroying the look of the page.
>
> Thanks for your immediate help,
> crizz
> "Alain Samoun" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED].;
> > Crizz:
> > Obviously you don't want to do that at this point - No error reporting
for
> a
> > novice - can be challenging...
> > Show us your script and we may be able to help. (Sorry I did not see
your
> > previous post(s)...)
> > A+
> > Alain
> >
> >
> > -Original Message-
> > From: crizz [mailto:[EMAIL PROTECTED]]
> > Sent: Saturday, March 02, 2002 7:32 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: [PHP-WIN] Warning: Undefined variable
> >
> >
> > Ok, I changed error_reporting to "no". But now I take no notice about
> errors
> > at all. Any convinience mode for a novice?
> >
> >
> > "Dl Neil" <[EMAIL PROTECTED]> wrote in message
> > 121301c1c250$9afa6d40$c200a8c0@jrbrown...">news:121301c1c250$9afa6d40$c200a8c0@jrbrown...;
> > > crizz,
> > >
> > > > I'm really newbye in PHP and just installed php on my IIS on my XP.
> > > All
> > > > sample scripts I tried returns me error messages about "Warning:
> > > Undefined
> > > > variable"
> > > > It's probably something with the configuration, right?
> > >
> > >
> > > You got it!
> > > Check out php.ini (in Windows folder).
> > > There is a load of 'documentation' in amongst the
settings/definitions.
> > > There are a number of 'levels' for error reporting, so you can dial it
> > > back a notch if you want.
> > >
> > > Regards,
> > > =dn
> > >
> >
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>



--- End Message ---
--- Begin Message ---

Haha, that's what I'm sayin

php-windows Digest 5 Mar 2002 13:44:00 -0000 Issue 1030

2002-03-05 Thread php-windows-digest-help


php-windows Digest 5 Mar 2002 13:44:00 - Issue 1030

Topics (messages 12455 through 12465):

PHP Compile Error
12455 by: Apocalypse

Re: t1lib
12456 by: think a Bit

Re: cannot write to mySQL database
12457 by: Kriegers Horst

Output of PHP ist truncated
12458 by: Rolf
12461 by: Piotr Pluciennik

How can I use PHP4 module for Apache Win32 
12459 by: hei

mysql_fetch_object() error
12460 by: Claudio Fedel

File corruption during HTTP Upload
12462 by: Stevens, Julian C

session probs
12463 by: secrgb
12464 by: Richard Black
12465 by: secrgb

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

I am trying to compile PHP on windows for version 4.1.2 ... but I 
am getting a strange error that I have no idea how to solve.  I 
am using Visual C++ 6 on a windows xp machine.  The error I 
am getting is:

 SOMEFILENAME(line) : fatal error C1083: Cannot open include 
file: 'arpa/inet.h': No such file or directory

I am getting this error 16 times during the compile, and I can't 
even find a directory named arpa.

I am new at this, so don't yell at me!

Thanks,
Jeff



--- End Message ---
--- Begin Message ---

Still get the same or similiar results ...

$ ./configure --with-t1lib
loading cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... make: not found
no
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking whether to enable maintainer-specific portions of Makefiles...
no
checking host system type... i686-pc-cygwin
checking for gawk... gawk
checking for bison... bison -y
checking bison version... 1.27 (ok)
checking for gcc... no
checking for cc... no
configure: error: no acceptable cc found in $PATH

---

what about all those other things missing? I only found (lots of)
aclocal.m4 files, but none of the others.
What about this make-thing (got no make.exe either, really ... just
(again lots of) makefile.in files)

greetings,

oliver!

-Ursprüngliche Nachricht-
Von: Pac mon [mailto:[EMAIL PROTECTED]] 
Gesendet: Dienstag, 05. März 2002 02:30
An: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Betreff: Re: AW: [PHP-WIN] t1lib

Did you try doing the ./configure -with-t1lib yet?

Original Message Follows
From: "think a Bit" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Subject: AW: [PHP-WIN] t1lib
Date: Tue, 5 Mar 2002 00:33:12 +0100

Ooops, sorry, i found cl.exe in

C:\Programme\Microsoft Visual Studio\VC98\Bin

And added that to $path

But it didn't change anything ;-(

Any other ideas?

Thanx,

oliver!

-Ursprüngliche Nachricht-
Von: Pac mon [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 04. März 2002 23:14
An: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Betreff: Re: [PHP-WIN] t1lib

Well here's the big problem:
configure: error: no acceptable cc found in $PATH
cc is the compiler so you need to make sure that the c++ compiler: is
believe it's cl.exe is in the enviroment variable PATH.


Original Message Follows
From: "think a Bit" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Subject: [PHP-WIN] t1lib
Date: Mon, 4 Mar 2002 20:45:41 +0100

After finally having succeeded compiling php4.1.2 on my win2k-system
with vc++6.0 and even getting it (i.e. php.exe, php4ts.dll and
php4ts.lib) to work with apache1.3.23 i don’t know how to get on getting
t1lib in there.

Please help!

Do i have to start ./configure –with-t1lib=... in cygwin? Or can that
–with- stuff be done somewhere else as well?

I get the error:

$ ./configure
loading cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... make: not found
no
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking whether to enable maintainer-specific portions of Makefiles...
no
checking host system type... i686-pc-cygwin
checking for gawk... gawk
checking for bison... bison -y
checking bison version... 1.27 (ok)
checking for gcc... no
checking for cc... no
configure: error: no acceptable cc found in $PATH

what’s wrong? And what then?

Thanx in advance,

Oliver!


_
Send and receive Hotmail on your mobile device: http://mobile.msn.com



_
Join the world’s largest e-m

php-windows Digest 6 Mar 2002 04:43:33 -0000 Issue 1031

2002-03-05 Thread php-windows-digest-help


php-windows Digest 6 Mar 2002 04:43:33 - Issue 1031

Topics (messages 12466 through 12478):

Re: session probs
12466 by: Ryan Marrs

Re: Output of PHP ist truncated
12467 by: Mike Eynon

php4apache-eapi.dll / Apache 1.3.22 / ModSSL
12468 by: Eric Roussille

Re: File corruption during HTTP Upload
12469 by: Nicole Amashta
12471 by: Stevens, Julian C
12472 by: Ryan Marrs

PHP Config tool
12470 by: Scott St. John

Displaying a MS Access - Medium time field
12473 by: Asendorf, John

Re: mail() function EXTREMELY slow
12474 by: James F

Help me pleaase 
12475 by: Athar Hameed
12476 by: Collins, Robert
12478 by: Athar Hameed

text input file
12477 by: niels

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

Make sure your phpsession directory is created.  For windows this is not
always done.  Go into your php.ini and find the directory that is the
session directory, and make sure it exists.

Ryan

-Original Message-
From: secrgb [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, March 05, 2002 8:44 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] session probs

[Tue Mar 05 15:42:00 2002] [error] [client 127.0.0.1] Premature end of
script headers: c:/php/php.exe

this is the error from error.log
now after reinstalling apache has php.exe an error ...


"Richard Black" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED].;
>
> What error do you get??
>
> Can you copy us the error message, and maybe a snipplet of code???
>
> Richy
>
> ==
> Richard Black
> Systems Programmer, DataVisibility Ltd - http://www.datavisibility.com
> Tel: 0141 435 3504
> Email: [EMAIL PROTECTED]
>
> -Original Message-
> From: secrgb [mailto:[EMAIL PROTECTED]]
> Sent: 05 March 2002 12:32
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] session probs
>
>
> hey
> i have apache with php 4.1.1
> the problem is that i cant use:
> session_start();
> session_register("mysession");
>
> The problem is that an error comes by using them...
>
> Can somebody help me?
>
> Jaan aga Secrgb
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---
--- Begin Message ---

I have also seen this happen.  After playing with a few things... I finally
got the problem to go away by adding in a bunch of line feeds.  The problem
I saw seemed to be a buffering problem of some kind.  When I made sure that
the html being generated had line lengths of no more than 120 chars in
width, everything just started working.

As well, this seems to be a Win32 thing only.  I did not have this problem
in Linux running the exact same script.

// Mike Eynon
// www.MikeEynon.com
// 1366 Bulb Ave.
// Santa Cruz, CA  95062
// 831.588.2388

-Original Message-
From: Rolf [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 04, 2002 11:49 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Output of PHP ist truncated


Hello,

im trying to use PHP on W2k ADV Server with phprojekt.
Everytime i call an php script the output is truncated on the screen.
i just see some input fields, but no text.

Can anybody help me?
Rolf



--
bis die mails
Rolf  mailto:[EMAIL PROTECTED]

- ---o<-o<-o<-o<-o<-o<-o<-o<-o<--
 /°\   --- MACH MIT!!! ---
 \ /  ASCII ribbon campaign -
  Xgegen HTML
 / \in Mail und News
- ---o<-o<-o<-o<-o<-o<-o<-o<-o<--



--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--- End Message ---
--- Begin Message ---

Hello,
My system is WinNT 4.
I try to run Apache 1.3.22 + modSSL + PHP 4.1.1 (from php4Win).
I use php4apache-eapi.dll but I still have the warning message :

"[warn] Loaded DSO php4apache-eapi.dll uses plain Apache 1.3 API, this
module might crash under EAPI! (please recompile it with -DEAPI
)"

Has anybody experienced that kind of problem ?

Thanks for help



--- End Message ---
--- Begin Message ---

Check your PHP.ini and make sure that your fileupload size matches the
maximum upload size you want.

See this section in you php.ini:




; File Uploads ;


; Whether to allow HTTP file uploads.
file_uploads = On

; Temporary directory for HTTP uploaded files (will use system default if
not
; specified).
upload_tmp_dir = "e:\uploadtemp"

; Maximum allowed size for uploaded files.
upload_max_filesize = 40M



*The last line there is where you specify your max file upload size. I
believe default is usually 2 MB.

php-windows Digest 6 Mar 2002 17:34:43 -0000 Issue 1032

2002-03-06 Thread php-windows-digest-help


php-windows Digest 6 Mar 2002 17:34:43 - Issue 1032

Topics (messages 12479 through 12490):

Re: Help me pleaase 
12479 by: alain samoun

How can I use & install IMP in windows???
12480 by: hei

Re: mail() function EXTREMELY slow
12481 by: DL Neil
12487 by: James Fullerton

Re: File corruption during HTTP Upload
12482 by: Stevens, Julian C
12484 by: Ryan Marrs

MySQL auto_increment ??
12483 by: Sviss Cobazor

mail() and no internet connection
12485 by: Kenneth Brill
12486 by: DL Neil

Re: Mail with php and w2k
12488 by: J Wynia

fasttemplates parsing
12489 by: Wolfgang Schneider
12490 by: Nicole Amashta

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

Athar:
I have the same problem apparently with my ISP server Linux+Apache after
'upgrading to 4.12'
Suddenly all my include statements don't work. This is what I find out so
far:
1) The  directory of my include statement seems to need the $DOCUMENT_ROOT
in order to work.
2) The $DOCUMENT_ROOT seems to change alternatively to:
/nfs/www/WWW-data
and /usr/local/lib/WWW-data
3) Note that the WWW-data should actually be :WWW_pages/usr/
4) My provisionally fix is to get and format correctly the document root as:
$DOCUMENT_ROOT= substr($DOCUMENT_ROOT,0,-5)."_pages/my_file_path";
and add that to the previous include directory as:
include "$DOCUMENT_ROOT/includes/my_include_file.inc";
Now a question for you: Do you use the same php.ini with PHP4.12 as you had
with the previous version? This is important to me because I'm not sure that
the php.ini is the same as the previous one in my ISP (something I do not
control).
If your php.ini was the same then it seems that will point to a bug in php
4.12.
Please let me know.
Thanks.
A+
Alain

-Original Message-
From: Athar Hameed [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 05, 2002 8:44 PM
To: Collins, Robert; [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] Help me pleaase 


But everything was working fine. What has gone wrong now.

- Original Message -
From: "Collins, Robert" <[EMAIL PROTECTED]>
To: "'Athar Hameed'" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Wednesday, March 06, 2002 2:29 AM
Subject: RE: [PHP-WIN] Help me pleaase 


> it is possible you are doing multiple requires for the same file try
> require_once ("dbconnect.inc");
>
> Robert W. Collins II
> Webmaster
> New Orleans Regional Transit Authority
> Phone : (504) 248-3826
> Email : [EMAIL PROTECTED]
>
>
> -Original Message-
> From: Athar Hameed [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 05, 2002 2:54 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Help me pleaase 
>
>
> Greetings,
>
> Can anyone please help me. I am having this weird problem. I am using PHP
> 4.1.1 on windows as an apache module (sapi). Everything was working
> perfectly, until today. I dint even do anything and things stopped
working.
> I built this database application. I connect to the database using the
file
> dbconnect.inc. But when i use
>
> require ("dbconnect.inc");
>
> it doesnt work and i get this error message:
>
> Fatal error: Failed opening required '1' (include_path='') in
> c:\apache\htdocs\jokes\submit_joke.php on line 3
>
> I am not doing anything wrong, because the application was working
> absolutely fine until today. There are no typos and no other silly
mistakes.
>
> Take for example this file, index.php
>
> 
>  require ("dbconnect.inc") or die();
>
>  echo "\n";
>
> .
> .
> .
> ?>
>
> Here the require works fine. The values are read from the database and
> inserted into the form at proper places. But when form is submitted
> (submit_joke.php) I get the above mentioned error. Its happening in all my
> applications which were all working fine.
>
> submit_joke.php is as follows:
>
> 
>  require ("dbconnect.inc") or die("require failed!");
>
>  // or die ("require failed.");
>
>  $joke_date = date ("Y-m-d");
>
>  echo $joke_text . "";
>  echo $joke_date . "";
>  echo $joke_category_id . "";
>
>  $query = "INSERT INTO new_jokes VALUES
> ('','$joke_text','$joke_date','$joke_category_id')";
>
>  $result = mysql_query ($query) or die ("mysql_query failed.");
>
> ?>
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--- End Message ---
--- Begin Message ---

How can I use & install IMP in windows???



--- End Message ---
--- Begin Message ---

James,

> I personally found that messages were slow on my machine (going to an
> external mail server) and I discovered that if you can use the

php-windows Digest 7 Mar 2002 05:38:19 -0000 Issue 1033

2002-03-06 Thread php-windows-digest-help


php-windows Digest 7 Mar 2002 05:38:19 - Issue 1033

Topics (messages 12491 through 12498):

sprintf
12491 by: Scott St. John
12492 by: Mike Flynn
12495 by: Scott St. John

Formatting 'body' using mailto: command
12493 by: Mick
12494 by: Matt Hillebrand

prob with imagestring
12496 by: Carl L.

Re: mail() and no internet connection
12497 by: Steve Yates

Re: MySQL auto_increment ??
12498 by: Steve Yates

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

I am trying to create a file in which each line is exactly 255 characters 
long, some of the data I am importing is longer than the field allows.  
Does anyone know of a way to strip that data off at x character?  Example,
I have a 3 character field and the value being inserted into it is scott, 
I would only display sco

Thanks,

-Scott


-- 



--- End Message ---
--- Begin Message ---

One option is to use substr():

$thestring = 'scott';
$thestring = substr($thestring, 0, 3);

At 03:02 PM 3/6/02 -0500, Scott St. John wrote:
>I am trying to create a file in which each line is exactly 255 characters
>long, some of the data I am importing is longer than the field allows.
>Does anyone know of a way to strip that data off at x character?  Example,
>I have a 3 character field and the value being inserted into it is scott,
>I would only display sco
>
>Thanks,
>
>-Scott


--- End Message ---
--- Begin Message ---

Mike:

Yeah (hitting head on wall), that will work!  Thank you.

-Scott




On Wed, 6 Mar 2002, Mike Flynn wrote:

> One option is to use substr():
> 
> $thestring = 'scott';
> $thestring = substr($thestring, 0, 3);
> 
> At 03:02 PM 3/6/02 -0500, Scott St. John wrote:
> >I am trying to create a file in which each line is exactly 255 characters
> >long, some of the data I am importing is longer than the field allows.
> >Does anyone know of a way to strip that data off at x character?  Example,
> >I have a 3 character field and the value being inserted into it is scott,
> >I would only display sco
> >
> >Thanks,
> >
> >-Scott
> 

-- 



--- End Message ---
--- Begin Message ---

Using the 'mailto:' command I'm trying to format a 'default' message
something like...
$msg_body =
"?subject=whatever&body=This%20is%20the%20default%20part%20of%20the%20message%20..."
and soon on but I want to force some 'newlines' into the resultant
message body but to no avail.
If I just put \n in the message it only reads up until the '\' and
nothing after (which is also why I have to use the '%20' for every space
in the string). If I put the hex '%5E%6E' it puts the \n literal in the
message.
Any suggestions? - besides using mail()!


--- End Message ---
--- Begin Message ---

I know that with mail() in Windows, you must use \r\n for each carriage
return line feed, so why don't you try this:

%5Cr%5Cn



Matt Hillebrand



-Original Message-
From: Mick [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 06, 2002 12:47 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Formatting 'body' using mailto: command


Using the 'mailto:' command I'm trying to format a 'default' message
something like...
$msg_body =
"?subject=whatever&body=This%20is%20the%20default%20part%20of%20the%20messag
e%20..."
and soon on but I want to force some 'newlines' into the resultant
message body but to no avail.
If I just put \n in the message it only reads up until the '\' and
nothing after (which is also why I have to use the '%20' for every space
in the string). If I put the hex '%5E%6E' it puts the \n literal in the
message.
Any suggestions? - besides using mail()!


--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




--- End Message ---
--- Begin Message ---

Whene i create images with `ê` and  `è` , I get  `ë`
anyone can help me please


--- End Message ---
--- Begin Message ---

"Kenneth Brill" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> If I issue a mail() command but there is no live internet connection,
what
> happens?  Will the mail be sent when there is a connection?

Are you running your own mail server?  If so then you can set it to
work that way.  If you have PHP pointed to your ISP's mail server then
it won't connect.

If you need a mail server, Mercury is free and not too difficult to
set up (www.pmail.com).

 - Steve Yates
 - After they make styrofoam, what do they ship it in?

/ Taglines by Taglinator - www.srtware.com /





--- End Message ---
--- Begin Message ---

"Sviss Cobazor" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Now I want to delete user with ID = 2.
> Now I create a new user, he will get ID = 4.
>
> How can i reuse t

php-windows Digest 7 Mar 2002 17:48:44 -0000 Issue 1034

2002-03-07 Thread php-windows-digest-help


php-windows Digest 7 Mar 2002 17:48:44 - Issue 1034

Topics (messages 12499 through 12513):

Initialize module
12499 by: Olga Tonkonog
12503 by: Philippe Saladin

Release date of PHP 4.1.2 for windows?
12500 by: Steve Griff

Re: File corruption during HTTP Upload
12501 by: Stevens, Julian C

weird random parse errors on PHP 4.1.x / Win2k
12502 by: Geoffrey C. Speicher

Re: Displaying a MS Access - Medium time field
12504 by: Asendorf, John

Connect to MS SQL server on diff machine
12505 by: Nicole Amashta
12507 by: Hunter, Ray
12508 by: Nicole Amashta
12509 by: Nicole Amashta
12510 by: Nicole Amashta
12511 by: Hunter, Ray
12513 by: David Elliott

XSL Transformations
12506 by: Christian Azambuja Pagot

GD 2.0 for windows?
12512 by: Steve Griff

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

Hello,all!

I can now compile extern extending and get library, but if  I 
try to run php-programm with  (my).dll, I get error:

PHP Warning:  (null): Unable to initialize module
Module compiled with debug=0, thread-safety=0 module API=17248272
PHP compiled with debug=0, thread-safety=1 module API=20010901
These options need to match

Who know how ?

olga tonkonog
entwicklung / development

caatoosee search technology gmbh
gropiusstr. 9
d - 31137 hildesheim

fon +49 (0) 5121-99866 16
fax +49 (0) 5121-99866 01
mailto: [EMAIL PROTECTED]
http://www.caatoosee.com/cst/
--
> get what you want

Hinweis: Besuchen Sie uns auf der CeBIT 2002 vom 13.3.- 20.3. in Hannover!
Weitere Informationen finden Sie auf unserer Website!


--- End Message ---
--- Begin Message ---

it seems that you didn't use the same options to compile PHP an to compile
your module : the first one is with safety thread, the second one isn't ?
Ph.

"Olga Tonkonog" <[EMAIL PROTECTED]> a écrit dans le message news:
005801c1c5ab$56d16ed0$[EMAIL PROTECTED]
> Hello,all!
>
> I can now compile extern extending and get library, but if  I
> try to run php-programm with  (my).dll, I get error:
>
> PHP Warning:  (null): Unable to initialize module
> Module compiled with debug=0, thread-safety=0 module API=17248272
> PHP compiled with debug=0, thread-safety=1 module API=20010901
> These options need to match
>
> Who know how ?
>
> olga tonkonog
> entwicklung / development
>
> caatoosee search technology gmbh
> gropiusstr. 9
> d - 31137 hildesheim
>
> fon +49 (0) 5121-99866 16
> fax +49 (0) 5121-99866 01
> mailto: [EMAIL PROTECTED]
> http://www.caatoosee.com/cst/
> --
> > get what you want
>
> Hinweis: Besuchen Sie uns auf der CeBIT 2002 vom 13.3.- 20.3. in Hannover!
> Weitere Informationen finden Sie auf unserer Website!
>



--- End Message ---
--- Begin Message ---

Just wonderin'

I see the source code up there but no installer for windows. Can anyone give me a 
release date for the update?

Thanxs

Steve Griff


--- End Message ---
--- Begin Message ---

Thanks for the offer of checking my script. Although it relies on quite a few 
functions which are defined in include files, the actual upload form is fairly 
basic and I can't see that it would work for some file types/sizes and not 
others.
(Incidentally, magic_quotes_runtime has always been set Off, and the file 
corruption I'm seeing is typically only a few characters in a 2Mb file)

I'm beginning to think it is a more basic problem with Apache/HTTP.
I've recently noticed that the browser we are obliged to work with at the 
moment (Netscape 4.74) is sending nearly all its requests as HTTP 1.0. I 
believe this has a serious impact on performance, so I wondering if it might 
also introduce corruption.
Anybody know why my browser uses HTTP 1.0 and not 1.1? I can't see any way of 
configuring it but I know it is compatible with HTTP 1.1.

Thanks again,

-Original Message-
From:   Ryan Marrs [SMTP:[EMAIL PROTECTED]]
Sent:   Wednesday, March 06, 2002 12:45 PM
To: 'Stevens, Julian C'; 'php-windows(a)lists.php.net(p)INTERNET'
Subject:RE: [PHP-WIN] Re: File corruption during HTTP Upload
Importance: Low

Hrrm, maybe magic_quotes_runtime has something to do with it also.  I
remember having this problem, and if you open the file with vedit, it will
show a ton of \0\1\x and things like that.  Per chance can you send me the
script and I will test it and see what I can make of it?

Ryan

-Original Message-
From: Stevens, Julian C [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, March 06, 2002 4:23 AM
To: 'Ryan Marrs'; 'php-windows(a)lists.php.net(p)INTERNET'
Subject: RE: [PHP-WIN] Re: File corruption during HTTP Upload

Thanks for the advice.
I did have magic_q

php-windows Digest 8 Mar 2002 09:46:02 -0000 Issue 1035

2002-03-08 Thread php-windows-digest-help


php-windows Digest 8 Mar 2002 09:46:02 - Issue 1035

Topics (messages 12514 through 12516):

What's this Error msg?
12514 by: Martin Wright

Re: Connect to MS SQL server on diff machine
12515 by: David Redmond

for loop...
12516 by: Sandeep Murphy

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

Warning: Unknown persistent list entry type in module shutdown (11) in
Unknown on line 0

Getting this on my apps under windows on my desktop.  Doesn't happen on
Linux server.

What and why, someone?

TIA

--
Martin Wright



--- End Message ---
--- Begin Message ---

Nicole,

I've found on some instances that you need to specifically apply the
user/group that IIS will be calling the PHP executable (and therefore
php_mssql.dll) as, onto the 'PHP' directory.  From what I've seen, the
'Everyone' group is not recognised by PHP.

IE: If IIS is using anonymous access then you need to apply the
'IUSR_MACHINENAME' to the directory you installed PHP to with the minimum of
Read/Execute.  It may also be worthwhile applying this to the 'ntwdblib.dll'
file as well.

Also, check that your Default Network Library is set to TCP/IP and not Named
Pipes.  This can be found by running '%SYSTEMROOT%\System32\CliConfg.exe'

Hope this fixes it up.

Cheers

-Original Message-
From: Nicole Amashta [mailto:[EMAIL PROTECTED]] 
Sent: Friday, 8 March 2002 2:34 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Connect to MS SQL server on diff machine


OK, I have Apache and PHP 4.0.6 installed. I want to be able to access an MS
SQL Server, but I don't want to install SQL Server on the web server. What
files are needed in order to do this?

Normally, I have no problem with this because I typically have MS SQL Server
installed on the web server.

The only file I know of to put in the system32 root is ntwdblib.dll. But are
there any others? (Aside from enabling the php_mssql.dll).

I still get the unable to load php_mssql.dll even though the file exists and
the extension_dir path is set to where I keep this extension.

This works in all cases where I have the SQL Server running on the same
machine as PHP/Apache, etc. So I am guess I am just missing some other files
for this to work. ANyone encounter this scenario and realized how to resolve
this?

Any help or direction is appreciated!

TIA,

--
Nicole Amashta
Web Applications Developer
www.aeontrek.com



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---
--- Begin Message ---

hi,

may be this is a dumb question to ask but here goes anyway..

I have 2 for loops such as:

for(int i = 0; i <  View.length; i++) { 
for(int l = 0; l 

php-windows Digest 8 Mar 2002 21:57:27 -0000 Issue 1036

2002-03-08 Thread php-windows-digest-help


php-windows Digest 8 Mar 2002 21:57:27 - Issue 1036

Topics (messages 12517 through 12540):

R: [PHP-WIN] for loop...
12517 by: Darvin Andrioli

no permissions for copy/move_uploaded_file - workaround?
12518 by: Fabby

Re: What's this Error msg?
12519 by: Nicole Amashta

Re: for loop...
12520 by: Nicole Amashta

error message
12521 by: Dan Zarrella

Re: sendmail for windows
12522 by: LaserJetter
12528 by: Ross Fleming
12535 by: DL Neil
12536 by: Shrock, Court
12537 by: Scott St. John
12538 by: Nicole Amashta

Re: sending mail with mail()
12523 by: LaserJetter

Re: Connect to MS SQL server on diff machine
12524 by: Nicole Amashta
12525 by: Nicole Amashta
12526 by: Nicole Amashta

sessions
12527 by: Dan Zarrella
12533 by: Dale Heil

Unable to load dynamic library 'c:\php\extensions\php_gd.dll' - The specified 
procedure could not be found
12529 by: Jefferrs
12530 by: Dan Zarrella
12531 by: Nicole Amashta
12532 by: alain samoun

sessions Problem Followup concerning IE6
12534 by: Dale Heil
12540 by: Mike Flynn

EZ upgrade to php 4.1.1
12539 by: Afan Pasalic

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

Hi Murphy

this is a very dumb answer... you may test if Approve.length is equal to
zero before the second loop, so you may change your code to

 for(int i = 0; i <  View.length; i++)

if(Approve.length==0) { do something }
else {
for(int l = 0; l mailto:[EMAIL PROTECTED]]
> Inviato: venerdì 8 marzo 2002 10.44
> A: [EMAIL PROTECTED]
> Oggetto: [PHP-WIN] for loop...
>
>
> hi,
>
> may be this is a dumb question to ask but here goes anyway..
>
> I have 2 for loops such as:
>
> for(int i = 0; i <  View.length; i++)

>   for(int l = 0; l 
>   SQL = "insert into DOC_PRIVILEGES (COD)..
>
>   }
>   }
>
> where view.length = 5 and approve.length is 0 (in this case), how do i
> execute my query irrespective of whether the inner forloop is empty or
> not???
>
> I cannot use a l"<=" as it wud result in an ArrayOutOfBoundsException...
>
> any suggestions pl??
>
> TIA,
> sands
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


--- End Message ---
--- Begin Message ---

hi all,

my file uploads fail due to restrictions by the provider. my upload script
is not allowed to execute the copy or move_uploaded_file functions. is there
another solution for it? i found a suggestion which said i should use
fopen() and so on ... but i don't know how to do that.

thanks in advance, fabby



--- End Message ---
--- Begin Message ---

Perhaps verify that the code you are running on windows is in fact
compatible with windows. Some things that work on Linux just don't work on
windows. That is, some functions don't work and/or can't be used on Linux.

Just a suggestion,

Nicole
www.aeontrek.com

"Martin Wright" <[EMAIL PROTECTED]> wrote in message
006b01c1c657$6ff535c0$0100a8c0@serv">news:006b01c1c657$6ff535c0$0100a8c0@serv...
> Warning: Unknown persistent list entry type in module shutdown (11) in
> Unknown on line 0
>
> Getting this on my apps under windows on my desktop.  Doesn't happen on
> Linux server.
>
> What and why, someone?
>
> TIA
>
> --
> Martin Wright
>
>



--- End Message ---
--- Begin Message ---


for(...) {
do {

} while( ... )
}

so that way, your code inside the inner loop will execute at least once
everytime 

nicole amashta
www.aeontrek.com


"Sandeep Murphy" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> hi,
>
> may be this is a dumb question to ask but here goes anyway..
>
> I have 2 for loops such as:
>
> for(int i = 0; i <  View.length; i++)

> for(int l = 0; l 
>   SQL = "insert into DOC_PRIVILEGES (COD)..
>
> }
> }
>
> where view.length = 5 and approve.length is 0 (in this case), how do i
> execute my query irrespective of whether the inner forloop is empty or
> not???
>
> I cannot use a l"<=" as it wud result in an ArrayOutOfBoundsException...
>
> any suggestions pl??
>
> TIA,
> sands



--- End Message ---
--- Begin Message ---

check how php is installed and configured with your servers, sessiona dn 
persistant DB connections do not work correctly when php is used as a cgi 
excecutable(which may be the case under windows) and they do as an api-style 
module(most likely the case with apache/*nix). -dan

_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotm

php-windows Digest 9 Mar 2002 10:57:13 -0000 Issue 1037

2002-03-09 Thread php-windows-digest-help


php-windows Digest 9 Mar 2002 10:57:13 - Issue 1037

Topics (messages 12541 through 12548):

Need some help with Graphs
12541 by: Mihail Bota
12542 by: alain samoun
12543 by: Mihail Bota
12544 by: alain samoun

Re: EZ upgrade to php 4.1.1
12545 by: Steve Yates

XSLT encoding error
12546 by: Mike Eynon

strings with $ sign
12547 by: Sviss Cobazor

gd-library ...
12548 by: Marcel Besancon

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

Hello,

I am trying to install, configure and compile all what is needed in order
to be able to create graphs from database queries.
I am not very good in C, therefore I am not sure what I am doing is right.
I got all the gd, zlib libraries from the associated sites, I copied the
dll's from the php binary (4.1.1) into C:\winnt\system32, I uncommented
the necessary lines from php.ini and then I tried to run from the command
line php --with-gd=...the path (i hope is the correct one)
There is no result for this compilation, and I do not know what to do...to
interrupt or to let it leave?
Did I miss something in this process?
I'd appreciate any help from anybody...
I apologize if this message is too stupid.

Thanks.

Mihai


--- End Message ---
--- Begin Message ---

Mihail:
The command line use is:
(From the MSWindows, supposing that php.exe is in C:\php )
C:\php> php Yourscript.php
You do not need any compilation, since the GD, ZLIB etc.. dlls have been
compiled with your php version. Just make sure that the dlls you get are
from the same source of your PHP and that they are uncommented in your
php.ini files.
A+
Alain

-Original Message-
From: Mihail Bota [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 08, 2002 2:23 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Need some help with Graphs


Hello,

I am trying to install, configure and compile all what is needed in order
to be able to create graphs from database queries.
I am not very good in C, therefore I am not sure what I am doing is right.
I got all the gd, zlib libraries from the associated sites, I copied the
dll's from the php binary (4.1.1) into C:\winnt\system32, I uncommented
the necessary lines from php.ini and then I tried to run from the command
line php --with-gd=...the path (i hope is the correct one)
There is no result for this compilation, and I do not know what to do...to
interrupt or to let it leave?
Did I miss something in this process?
I'd appreciate any help from anybody...
I apologize if this message is too stupid.

Thanks.

Mihai


--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--- End Message ---
--- Begin Message ---

Alain,

I was impressed by JPGraph and I wanted to use it for my applications
(statistics). JPGraph needs GD 2.0... this is the point where i am
stuck...
So, the oerror looks like this:

Fatal error: imagecolorresolvealpha(): requires GD 2.0 or later in
c:\inetpub\wwwroot\Graphs\jpgraph.php on line 2889

Mihai

On Fri, 8 Mar 2002, alain samoun wrote:

> Mihail:
> The command line use is:
> (From the MSWindows, supposing that php.exe is in C:\php )
> C:\php> php Yourscript.php
> You do not need any compilation, since the GD, ZLIB etc.. dlls have been
> compiled with your php version. Just make sure that the dlls you get are
> from the same source of your PHP and that they are uncommented in your
> php.ini files.
> A+
> Alain
>
> -Original Message-
> From: Mihail Bota [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 08, 2002 2:23 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Need some help with Graphs
>
>
> Hello,
>
> I am trying to install, configure and compile all what is needed in order
> to be able to create graphs from database queries.
> I am not very good in C, therefore I am not sure what I am doing is right.
> I got all the gd, zlib libraries from the associated sites, I copied the
> dll's from the php binary (4.1.1) into C:\winnt\system32, I uncommented
> the necessary lines from php.ini and then I tried to run from the command
> line php --with-gd=...the path (i hope is the correct one)
> There is no result for this compilation, and I do not know what to do...to
> interrupt or to let it leave?
> Did I miss something in this process?
> I'd appreciate any help from anybody...
> I apologize if this message is too stupid.
>
> Thanks.
>
> Mihai
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


--- End Message ---
--- Begin Message ---

Have a look at this:
http://phpbuilder.com/annotate/message.php3?id=1009351
A+
Alain

-

php-windows Digest 9 Mar 2002 23:44:02 -0000 Issue 1038

2002-03-09 Thread php-windows-digest-help


php-windows Digest 9 Mar 2002 23:44:02 - Issue 1038

Topics (messages 12549 through 12554):

Re: strings with $ sign
12549 by: robert janeczek

registering mySQl db in Win ODBC
12550 by: James Mansfield
12554 by: Robin Bolton

Re: gd-library ...
12551 by: alain samoun

.php3 extension
12552 by: Micah Freedman
12553 by: alain samoun

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

> I just wanted to know how to use strings with $ sign.
>
> If a word starts with a dollar sign php will think it's a variable, how
can
> I make
> " $bla bla  and bla $bla " to stay that way?
> Will this work? " \$bla bla  and bla \$bla "

don`t use "" - use ''. php doesn`t parse variables in such kind of strings.
' $bla bla  and bla $bla '

" \$bla bla  and bla \$bla " - this should work too, but i haven`t checked.

rash



--- End Message ---
--- Begin Message ---

Am a little out of my league here being a designer and all...but I want to
register a mySQL database that I have using ODBC Data Source Admin. Is this
possible?
I have created on online address book using PHP and mySQL. I want to use the
email addresses in the db for use with a mailout program but it requires
that the db I use be registered in the OS's data source admin. Does someone
know what I need to do please? Have tried exporting the data etc but am
trying to find any easier alternatives...can I use the db I have online or
will I have to duplicate it locally??

Thanx in advance
James



--- End Message ---
--- Begin Message ---

All you will need is a copy of MyODBC, which will let you register MySQL
databases via ODBC.

You can find it on the MySQL website at:
http://www.mysql.com/downloads/api-myodbc.html

You may also want to download the latest Microsoft Data Access
Components (MDAC) from:
http://www.microsoft.com/data/download.htm

Once you've installed the MyODBC drivers you can then register your
MySQL database using the ODBC control panel app (found at 'Start /
Settings / Control Panel' in Windows 9x and 'Start / Settings / Control
Panel / Administrative Tools' in NT/2K/XP).


-Original Message-
From: James Mansfield [mailto:[EMAIL PROTECTED]] 
Sent: March 9, 2002 6:56 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] registering mySQl db in Win ODBC

Am a little out of my league here being a designer and all...but I want
to
register a mySQL database that I have using ODBC Data Source Admin. Is
this
possible?
I have created on online address book using PHP and mySQL. I want to use
the
email addresses in the db for use with a mailout program but it requires
that the db I use be registered in the OS's data source admin. Does
someone
know what I need to do please? Have tried exporting the data etc but am
trying to find any easier alternatives...can I use the db I have online
or
will I have to duplicate it locally??

Thanx in advance
James



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--- End Message ---
--- Begin Message ---

http://www.phpbuilder.com/columns/allan2830.php3
A+
Alain


-Original Message-
From: Marcel Besancon [mailto:[EMAIL PROTECTED]]
Sent: Saturday, March 09, 2002 2:58 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] gd-library ...


Hi,

is there a way to use the gd-library under WinXP?? If there is a way,
please explain it to me !!!

Sincerely

Marcel

--
registered Fli4l-User #0388



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--- End Message ---
--- Begin Message ---

Hi,

Can anyone tell me how to set things up so that files with the
.php3 extension will be processed by the PHP 4 engine. (I'm
running IIS under Win2K, there's a C:/PHP/ folder with only a few
items in it one of which is php.exe. I don't see any configuration
files. Obviously, I don't know much about administering this
stuff, since this is just my testing machine...)

TIA,

Micah


--- End Message ---
--- Begin Message ---

Control Panel/ Administrative Tools/ Internet Services Manager/ Default Web
Site/ Properties
Then under home directory click configuration. Add the php3 extension
with pointer to php4isapi.dll .
A+
Alain


Under filters I have one called php, with a pointer to php4isapi.dll. I'm
not sure if this is required... but I think it is and anyways I have it.

-Original Message-
From: Micah Freedman [mailto:[EMAIL PROTECTED]]
Sent: Saturday, March 09, 2002 9:34 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] .php3 extension


Hi,

Can anyone tell me how to set things up so that files with the
.php3 extension will be processed by the PHP 4 engine. (I'm
running IIS under Win2K, there's a C:/PHP/ folder with only a few
ite

php-windows Digest 10 Mar 2002 14:18:07 -0000 Issue 1039

2002-03-10 Thread php-windows-digest-help


php-windows Digest 10 Mar 2002 14:18:07 - Issue 1039

Topics (messages 12555 through 12558):

Re: MySQL auto_increment ??
12555 by: Jakob Kruse

Re: GD 2.0 for windows?
12556 by: Jakob Kruse

Re: strings with $ sign
12557 by: Sviss Cobazor

PHP4_Win98se_Apache. text in window instead of html response?
12558 by: Bob Parks

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---


"Sviss Cobazor" <[EMAIL PROTECTED]> wrote:
> Hi NG.
>
> Now I've read page up and page down in the MySQL online manual about how
to
> use the auto_increment. But I didn't find anywhere how to reuse a deleted
id
> created by auto_increment.
>
> Say I have a table [users] with 4 columns:
>
> | ID | name | username | password |
>
> ID is an auto_increment value.
> If I insert 3 users they will get ID = 1, 2 and 3 assignet.
> Now I want to delete user with ID = 2.
> Now I create a new user, he will get ID = 4.
>
> How can i reuse the ID 2 for creation of new users?

Just assign the value 2 to the ID field when creating or saving a user. When
the value is NULL, the auto_increment feature will be used, and it will only
reassign values if you reset the auto_increment counter (not recemmended).

> Another thing:
> If ID is INT(3), what will happen when I insert user no. 1000?

It will work as expected. An INT(3) is not limited to 3 digits, it just
displays values with 3 digits minimum. An unsigned INT can be as large as
4294967295.



--- End Message ---
--- Begin Message ---

The GD 2.0 dll comes along with the latest binary releases of PHP for
Windows. I don't know much about using it though...

Regards,
Jakob Kruse


"Steve Griff" <[EMAIL PROTECTED]> wrote:
Hi there,

I want to use some of the features that are available in version 2.0 of the
GD graphics editing library.

What is the best way of getting a .dll for php with these functions? A nice
little FAQ about it + a link to the dll would be most appreciated.

Thanxs

Steve Griff








--- End Message ---
--- Begin Message ---

The thing is that the result html code is to be parsed by HTMLDOC (pdf
generator) to create pdf from the webpage. By inserting <-- "some string"
!--> into the html, HTMLDOC can catch these strings and act from them.

example:

$result_html = " ... html code<-- " FOOTER CENTER $LOGOIMAGE footer.jpg
" !--> ... more html code";

result_html is the page contens for HTMLDOC to parse and through that catch
the footer code and insert footer.jpg as the footer on the pdf pages.

the problem is that php converts $LOGOIMAGE to a php variable. \$LOGOIMAGE
doesn't seem to work.

"Robert Janeczek" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > I just wanted to know how to use strings with $ sign.
> >
> > If a word starts with a dollar sign php will think it's a variable, how
> can
> > I make
> > " $bla bla  and bla $bla " to stay that way?
> > Will this work? " \$bla bla  and bla \$bla "
>
> don`t use "" - use ''. php doesn`t parse variables in such kind of
strings.
> ' $bla bla  and bla $bla '
>
> " \$bla bla  and bla \$bla " - this should work too, but i haven`t
checked.
>
> rash
>
>



--- End Message ---
--- Begin Message ---

Refresh my memory. Just reformatted my c:\ and rebuilding from scratch.

In my IE6 browser window I'm getting php text instead of html "order
results" page after submitting a form.

See below.

**
I need the proper install instructions for PHP4 with Apache server on Win98.
It worked before formatting my c:\.. I'm starting from scratch again. Tried
the phpTriad. I know it's in my apache http.conf or php.ini..
Please list .dlls needed in windows\system too.
Thanks.

 my results in IE 6.0 after "submit form". Text not html page.


Order Results // Should be html with results not the following plain
text
"; echo $oilqty." bottles of oil
"; echo $sparkqty." spark plugs
"; $totalqty = 0; $totalamount = 0.00; define("TYREPRICE", 100);
define("OILPRICE", 10); define("SPARKPRICE", 4); $totalqty = $tyreqty +
$oilqty + $sparkqty; $totalamount = $tyreqty * TYREPRICE + $oilqty *
OILPRICE + $sparkqty * SPARKPRICE; $totalamount =
number_format($totalamount, 2); echo "
\n"; echo "Items ordered: ".$totalqty."
\n"; echo "Subtotal: $".$totalamount."
\n"; $taxrate = 0.10; // local sales tax is 10% $totalamount = $totalamount
* (1 + $taxrate); $totalamount = number_format($totalamount, 2); echo "Total
including tax: $".$totalamount."
\n"; ?>




--- End Message ---


php-windows Digest 11 Mar 2002 07:05:10 -0000 Issue 1040

2002-03-10 Thread php-windows-digest-help


php-windows Digest 11 Mar 2002 07:05:10 - Issue 1040

Topics (messages 12559 through 12569):

new window with set size via php ?
12559 by: Wolfgang Schneider
12561 by: Mike Flynn
12563 by: alain
12568 by: Mike Flynn
12569 by: Wolfgang Schneider

Re: strings with $ sign
12560 by: Mike Flynn

Can anyone translate this script to php?
12562 by: Ceyhun Güler
12564 by: Ceyhun Güler

PHP FastCGI update
12565 by: Shane Caraveo

Re: PHP4_Win98se_Apache. text in window instead of html response?
12566 by: J Wynia

Problem : how to tell PHP which MySQL build to point to ???
12567 by: Andrea Di Salvo

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

Hi everyone,

does anyone know if one can open a browser window with a specific
size from within a php script ?  I mean achieve something like what
javascript can do via including the following


onclick="window.open('testpage.html','test','width=480,height=400');"

in an http://classes.bibelcenter.de ... NEW!
-- BibelCenter: http://www.bibelcenter.de 
-- Bookstore: http://www.worthy.net/BibelCenter/ 




--- End Message ---
--- Begin Message ---

Argh, how many times must it be reiterated that PHP is a *SERVER SIDE 
PROGRAMMING LANGUAGE*.  What this means is that by itself it cannot do 
ANYTHING on the client's side ONCE THE PAGE HAS LOADED.  You can have PHP 
generate some JavaScript and dHTML to do such things, but PHP by itself 
only executes BEFORE the user gets the page.  NOT on the user's computer.

-Mike

At 05:55 PM 3/10/02 +0100, Wolfgang Schneider wrote:
>Hi everyone,
>
>does anyone know if one can open a browser window with a specific
>size from within a php script ?  I mean achieve something like what
>javascript can do via including the following
>
>
>onclick="window.open('testpage.html','test','width=480,height=400');"
>
>in an format" ...
>Would anyone have some suggestions ?
>God bless you with His grace and peace
>Wolfgang


--- End Message ---
--- Begin Message ---

Mike:
You are right and you are wrong ;) It depends on the way that you are using
php, if it's on a web site you are right, but you can also use php as a
standalone application, that way you can use it, as you would use - God
forbides - VB. And with the PHP COM connection, you can probably find an
object that will resize the browser's window.
A+
Alain

On Sun, Mar 10, 2002 at 12:15:01PM -0500, Mike Flynn wrote:
> Argh, how many times must it be reiterated that PHP is a *SERVER SIDE 
> PROGRAMMING LANGUAGE*.  What this means is that by itself it cannot do 
> ANYTHING on the client's side ONCE THE PAGE HAS LOADED.  You can have PHP 
> generate some JavaScript and dHTML to do such things, but PHP by itself 
> only executes BEFORE the user gets the page.  NOT on the user's computer.
> 
> -Mike
> 
> At 05:55 PM 3/10/02 +0100, Wolfgang Schneider wrote:
> >Hi everyone,
> >
> >does anyone know if one can open a browser window with a specific
> >size from within a php script ?  I mean achieve something like what
> >javascript can do via including the following
> >
> >
> >onclick="window.open('testpage.html','test','width=480,height=400');"
> >
> >in an  >format" ...
> >Would anyone have some suggestions ?
> >God bless you with His grace and peace
> >Wolfgang
> 
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---
--- Begin Message ---

Good point.  I assumed that Wolfgang meant for normal client-side pages.

-Mike

At 10:33 AM 3/10/02 -0800, alain wrote:
>Mike:
>You are right and you are wrong ;) It depends on the way that you are using
>php, if it's on a web site you are right, but you can also use php as a
>standalone application, that way you can use it, as you would use - God
>forbides - VB. And with the PHP COM connection, you can probably find an
>object that will resize the browser's window.
>A+
>Alain


--- End Message ---
--- Begin Message ---

On Sun, 10 Mar 2002 17:27:15 -0500, Mike Flynn wrote:

Hi Mike and Alain

>Good point.  I assumed that Wolfgang meant for normal client-side pages.

Actually, I was thinking of some "normal server side pages"  ... :-) 
I've seen things people did with asp pages where I thought they sized
pop windows or resized already open windows via the server side
language, now I may simply be mistaken and be "dreaming" when in
reality these effects were achieved by embedded javascript code ?

On a page I am using some javascript function to open a sized window
with the respective page when folks select an article from a drop
down listI  Furthermore, I have the more recent articles listed on
the page in regular  type links   

Now, my newbie questi

php-windows Digest 11 Mar 2002 20:11:31 -0000 Issue 1041

2002-03-11 Thread php-windows-digest-help


php-windows Digest 11 Mar 2002 20:11:31 - Issue 1041

Topics (messages 12570 through 12581):

Re: [PHP-DEV] PHP 4.1.2 for windows
12570 by: Shane Caraveo

PHP / Apache on XP
12571 by: Paul Wallace
12574 by: Nicole Amashta

Freetype2 Binary
12572 by: andy

Re: no permissions for copy/move_uploaded_file - workaround?
12573 by: Fabby

Re: Can anyone translate this script to php?
12575 by: Nicole Amashta

Re: new window with set size via php ?
12576 by: Mike Flynn

exec error ("A specified logon session does not exist. It may already have been 
terminated.")
12577 by: Michael Hall

PHP 4.1.2 Windows binaries
12578 by: Werner Schweizer
12579 by: Robin Bolton
12581 by: Shane Caraveo

MSSQL2000 + IIS 5 mssql SELECT querys TIMEOUT
12580 by: Daniel Ryhle

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

I have my own compile available at www.caraveo.com/fastcgi/php.zip
No, it's not anything to do with fastcgi, I just threw it there as it
was a handy location.
It's not realy tested out, other than patches for security fixes are
included.  It doesn't include any additional modules, though the 4.1.1
modules should work with it.
If someone needs a quick fix before a compile gets up on php.net, go
ahead and download it (at you're own risk, I assume no liabilities).
Regards,
Shane Caraveo

Gabor Hojtsy wrote:
> 
> Hi!
> 
> >From hour to hour we receive questions at [EMAIL PROTECTED]
> about the availability of PHP 4.1.2 for Windows. First I
> tried to give an estimate, but now I don't know what to say.
> Will there ever be a PHP 4.1.2 for windows, or a 4.1.3???
> 
> Guys are waiting for the security fix... Why to kick out
> windows users from installing a more secure version of PHP?
> 
> Goba
> 
> --
> PHP Development Mailing List 
> To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---
--- Begin Message ---

Hi,
I am trying to setup PHP 4.* on XP. Whenever I access a PHP page from IE
using Apache, I am prompted to either download the file or the page can't be
found. In the Apache httpd.conf file I have uncommented:

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

yet it still refuses to load the page into the browser. What am I missing
here / have not done? I can attach the httpd.conf file if necessary.

Thanks for all input

Paul.


--- End Message ---
--- Begin Message ---

There are 2 additional lines you need to add to your httpd.conf file.

If you are running PHP as CGI, you need these lines in addition to the set
of lines you already mentioned:

  1. ScriptAlias /php/ "c:/php/"
  2. AddType application/x-httpd-php .php  # this one
you already have.
  3. Action application/x-httpd-php "/php/php.exe"

---

"Paul Wallace" <[EMAIL PROTECTED]> wrote in message
001601c1c8db$ee860c80$6c01a8c0@Paul">news:001601c1c8db$ee860c80$6c01a8c0@Paul...
> Hi,
> I am trying to setup PHP 4.* on XP. Whenever I access a PHP page from
IE
> using Apache, I am prompted to either download the file or the page can't
be
> found. In the Apache httpd.conf file I have uncommented:
>
> AddType application/x-httpd-php .php
> AddType application/x-httpd-php-source .phps
>
> yet it still refuses to load the page into the browser. What am I missing
> here / have not done? I can attach the httpd.conf file if necessary.
>
> Thanks for all input
>
> Paul.
>



--- End Message ---
--- Begin Message ---

Hi there,

I am searching for the freetype2 binary. Can anybody help on that.

Thanx andy



--- End Message ---
--- Begin Message ---

fabby again. found it! my isp had to remove the write protection. the
permissions shown by my cuteftp interface are a fake. In reality the
permissions are different to what cuteftp displays, because the remote
directories are on a windows system. Now I know...

"Fabby" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> hi all,
>
> my file uploads fail due to restrictions by the provider. my upload script
> is not allowed to execute the copy or move_uploaded_file functions. is
there
> another solution for it? i found a suggestion which said i should use
> fopen() and so on ... but i don't know how to do that.
>
> thanks in advance, fabby
>
>



--- End Message ---
--- Begin Message ---

<%@language="vbscript"%>
<%location=request.querystring("res")
location=replace(location, " ", "/")
%>





==









==

This may do it.

Nicole
www.aeontrek.com

"Ceyhun GüLer" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I 

php-windows Digest 12 Mar 2002 08:49:31 -0000 Issue 1042

2002-03-12 Thread php-windows-digest-help


php-windows Digest 12 Mar 2002 08:49:31 - Issue 1042

Topics (messages 12582 through 12589):

Re: PHP 4.1.2 Windows binaries
12582 by: Robin Bolton

Re: please send to the list
12583 by: Afan Pasalic
12584 by: alain samoun

compiling --with-t1lib= on win2k apache with cygwin
12585 by: think a Bit

PDF generation
12586 by: Ethan Nelson
12588 by: alain samoun

Re: Mssql trusted connections ?
12587 by: Kearns, Terry

Authenticate with Active Directory
12589 by: Pojapoeg

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

The original post, however, was asking specifically about the 4.1.2
binaries.

I didn't state that there were no Windows vulnerabilities in 4.1.1 or 4.1.2,
what I did state was that the vulnerabilities fixed in 4.1.2 do not affect
Windows.

I assume that is the Netscape/iPlanet issues will be dealt with in 4.1.3 (or
whatever the next revision is called), and when that version is released,
Windows binaries will be available.

Sorry if I have caused any confusion, I was merely trying to clear up the
existing confusion in regards to the 4.1.2 binary release on Windows
platforms.


-Original Message-
From: Shane Caraveo [mailto:[EMAIL PROTECTED]]
Sent: 11-Mar-02 13:11
To: Robin Bolton; Werner Schweizer; [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] PHP 4.1.2 Windows binaries


There IS a security issue with 4.1.1, and the 4.1.2 sources, if you use CGI
with Apache or Netscape/iPlanet servers.  Dig back through the php-dev
archives from about a week to week and half back, you will find the info.
It's been patched in CVS, and I beleive that the next build will include
those patches as well.
Shane

- Original Message -
From: "Robin Bolton" <[EMAIL PROTECTED]>
To: "Werner Schweizer" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, March 11, 2002 10:51 AM
Subject: RE: [PHP-WIN] PHP 4.1.2 Windows binaries


> Unfortunately the posting on the PHP.net website makes the situation VERY
> unclear.
>
> PHP 4.1.2 is NOT required for Windows users. The security issues that the
> 4.1.2 patch deal with are Solaris and Linux specific.
>
> There is a PHP3 vulnerability in Windows, but since you were asking about
> PHP4, I assume that this doesn't matter.
>
> To reiterate, there is NO version of PHP 4.1.2 for Windows, nor is one
> required.
>
>
> -Original Message-
> From: Werner Schweizer [mailto:[EMAIL PROTECTED]]
> Sent: 11-Mar-02 10:59
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] PHP 4.1.2 Windows binaries
>
>
> Does anyone know when the binaries of PHP 4.1.2 for Windows are
> available ?
>
> Werner Schweizer
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>



--- End Message ---
--- Begin Message ---

Hi, does anyone know where we can get a compiled T1lib to be able to use postcript 
fonts with PHP.

Thanks,
c

--- End Message ---
--- Begin Message ---

http://www.google.com Search T1lib
A+
Alain

-Original Message-
From: Afan Pasalic [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 2:16 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Fw: please send to the list


Hi, does anyone know where we can get a compiled T1lib to be able to use
postcript fonts with PHP.

Thanks,
c


--- End Message ---
--- Begin Message ---

I'm desperately trying to compile php 4.1.2 with t1lib support on a
windows apache server

I succeeded in getting rid of the unary minus error in datetime.c by
getting the latest version from cvs.

But now the make process stops with lots of undefined references in
xml.c (libtool: link: warning: undefined symbols not allowed in
i686-pc-cygwin shared libraries - see below) and here downloading the
latest package did not help any more.

Anybody who has tried this as well? And succeeded? Please tell me!



I'm using cygwin and did the following:



$ ./configure --with-t1lib=../t1lib-1.3.1
loading cache ./config.cache
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking whether to enable maintainer-specific portions of Makefiles...
no
checking host system type... i686-pc-cygwin
checking for gawk... (cached) gawk
checking for bison... (cached) bison -y
checking bison version... test: 33

Copyright 1984, 1986, 1989, 1992, 2000, 2001, 2002
Free Software Foundation,

php-windows Digest 12 Mar 2002 21:03:40 -0000 Issue 1043

2002-03-12 Thread php-windows-digest-help


php-windows Digest 12 Mar 2002 21:03:40 - Issue 1043

Topics (messages 12590 through 12603):

Re: PHP FastCGI update
12590 by: Samuel Lim
12603 by: Shane Caraveo

Scoping problem
12591 by: Christian Azambuja Pagot
12592 by: Nicole Amashta
12593 by: Christian Azambuja Pagot
12596 by: Nicole Amashta

COM/Windows2000/IBM HTTP Server question
12594 by: Lacey Sharpe

PHP 4.1.2 Session Problems
12595 by: Cheuk Yiu Ip

My Database class
12597 by: Nicole Amashta
12598 by: Nicole Amashta
12599 by: Nicole Amashta

Problems with WinXP, & Apache
12600 by: Daedalus
12601 by: alain
12602 by: Daedalus

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

I've tried to get fastcgi working in a WinXp workstation.


Each time I try to start a script, I receive a page with the message
"Server Error".

I've followed the instructions in the readme.txt of fastcgi.

I'm using PHP 4.1.2 and I've also tried this with PHP 4.1.1 CGI.
Without fastcgi, everything works like a charm.

Can anyone help me?
  

-- 
 Samuel Lim
email:[EMAIL PROTECTED]


--- End Message ---
--- Begin Message ---

Is this with using my fastcgi server extensions?  If so, please provide the
registry configuraiton you did, and I'll try to help you out.
Shane Caraveo


- Original Message -
From: "Samuel Lim" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 11, 2002 12:47 AM
Subject: [PHP-WIN] Re: PHP FastCGI update


> I've tried to get fastcgi working in a WinXp workstation.
>
>
> Each time I try to start a script, I receive a page with the message
> "Server Error".
>
> I've followed the instructions in the readme.txt of fastcgi.
>
> I'm using PHP 4.1.2 and I've also tried this with PHP 4.1.1 CGI.
> Without fastcgi, everything works like a charm.
>
> Can anyone help me?
>
>
> --
>  Samuel Lim
> email:[EMAIL PROTECTED]
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


--- End Message ---
--- Begin Message ---

Hi!!

I am trying to create generic DB functions... (that could connect to
any kind of database, just with few modifications..)
I created 2 functions... DB_Connect and DB_Disconnect... and I will
create another one... DB_Query.

Follows the code:

--

function DB_Connect($dbName)
{
 static $$dbName;
 $$dbName = mssql_connect ("servername","user","pass");
}

--

function DB_Disconnect($dbName)
{
 static $$dbName;
 mssql_close($$dbName);
}

--

So, in a program, I could do that:



DB_Connect("db1");
DB_Connect("db2");
.
.
.
.
DB_Disconnect("db2")
DB_Disconnect("db1")




But it is not working... and I don´t know why.. I know that the
problem is related to the scoping of variables, but I am confused... Did
you develop something like this already? (I did that in Perl once, and
it worked perfectly!)

Thankx

--
=
= Christian Azambuja Pagot
= 
= Fones: (51)9114-7717 / (51)476-4641
= e-Mail...: [EMAIL PROTECTED]
= Chave Publica disponivel
=

-BEGIN PGP PUBLIC KEY BLOCK-
Version: PGPfreeware 5.5.3i for non-commercial use 

mQENAzcy1O0AAAEIAKidc5Z07Up3Y9WpH0+S/xN5BQHMVoTMc08Njl92d+hEVclm
heGNBrfXy04v2BDxeQu64AVXiyOZd16LtRDXEYVonRdvd1qsFPK8fkdxi9iQjPP8
aJcUM5XY5zndnSTVj4K83nFAcnSwu/IAMXSx+/sQRSpAVtM4JlxAiDdFA8ZEJBXz
CzzrZWncT9FDlrRFTBKoTqRWbUEIasyVtkHXzo4l2Wc/DzEkg96+hcL21FNDLldW
VCog47ba9w8XAzpe23kGXIiqSnpodV85BRSjdVwBfFoQyfE64LsYYP+uxPvqduOT
zJhKzBQO+MtDl+tAlM+Qs0YgPoACvJ8f84z0MNEABRG0M0NocmlzdGlhbiBBemFt
YnVqYSBQYWdvdCA8YXphbWJ1amFAcG9ydG93ZWIuY29tLmJyPokBFQMFEDcy1O28
nx/zjPQw0QEBdE4H/iBaJRmOxOGFyTkKM+6PinLaPvsBgvZAOsnW6Cs/QpvJH5mP
MaCrKxH1EzLj3MVT38bAdmSL+iM/OTMoRWCi7BtcLW8dheOdmt5IVcHx1bQOJ8qe
hMTn/2/KbvEawDD07OFTerRM+Ac158e/cK5VVC2vFUYuIja2XGD0yJvpndYAoTOe
2hSpPf7eCxUGF1CRsmdPMWKIz1fPqUROVxFalxKg0x7XuOjoD/XVNFmBq1j+NtIJ
idYGjsGSu8s9NF3NaQgvWm9+obaaHhBPzJawZ6pyjCQ19GBi6AuYVpunq2vhzW0G
ZLqrLPoB0EIzDFylnLY8+fFh84kLykRU1e8/ALw=
=eTcy
-END PGP PUBLIC KEY BLOCK-



--- End Message ---
--- Begin Message ---

I have a class that cur

php-windows Digest 13 Mar 2002 09:31:28 -0000 Issue 1044

2002-03-13 Thread php-windows-digest-help


php-windows Digest 13 Mar 2002 09:31:28 - Issue 1044

Topics (messages 12604 through 12608):

Re: Problems with WinXP, & Apache
12604 by: Devon Knowles

CGI and ISAPI with DOMXML in IIS5
12605 by: Jarrad Kabral

PHP using Windows Server 2000 newbie
12606 by: Bob Parks

Re: PHP FastCGI update
12607 by: samuel lim

Problem with Swedish charters
12608 by: Glenn Lindgren

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

Have you tried reinstalling Apache and PHP? You may just have a corrupt
installation. Also, you may want to try using a packet sniffer and seeing
exactly what kind of output Apache is sending. If you have some server
variable set too low (ie. Timeout, KeepAliveTimeout) or you may have
KeepAlive turned off altogether. Sometimes this will screw browsers up (even
though it really shouldn't).

Good luck finding your problem.

- Devon Knowles



--- End Message ---
--- Begin Message ---

Hi all,

Just wondering if anyone can tell me why the ISAPI and CGI versions of PHP
have different DOMXML function names?

Regards
Jarrad

--- End Message ---
--- Begin Message ---

Thanks ahead!
I currently use Apache 1.3xx. with PHP at home. Great!
Problem:
My work is going to Win2000 OS for PC and Server2000 network LAN. I want to
use PHP with 2000 server for home practice. No time at work.
Before I install 2000 server on my home PC in it's own directory
Where is the best Win 2K server installation faq site besides Windows 2000
homepage? I have the Sam's 24 hour book too.
bp



--- End Message ---
--- Begin Message ---



>>> samuel lim 13-Mar-02 08:49:24 >>>
I've downloaded your newest files.

Here are my registry settings and directory structure.

In IIS i've mapped .php to C:\Inetpub\Engine\FastCGI\isapi_fcgi.dll

Thanks in advance.

Samuel Lim
email: [EMAIL PROTECTED]

>>> "Shane Caraveo" <[EMAIL PROTECTED]> 12-Mar-02 21:58:21 >>>
Is this with using my fastcgi server extensions?  If so, please provide
the
registry configuraiton you did, and I'll try to help you out.
Shane Caraveo


- Original Message -
From: "Samuel Lim" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 11, 2002 12:47 AM
Subject: [PHP-WIN] Re: PHP FastCGI update


> I've tried to get fastcgi working in a WinXp workstation.
>
>
> Each time I try to start a script, I receive a page with the message
> "Server Error".
>
> I've followed the instructions in the readme.txt of fastcgi.
>
> I'm using PHP 4.1.2 and I've also tried this with PHP 4.1.1 CGI.
> Without fastcgi, everything works like a charm.
>
> Can anyone help me?
>
>
> --
>  Samuel Lim
> email:[EMAIL PROTECTED] 
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php 
>


--- End Message ---
--- Begin Message ---

Hallo,

I get this irritating problem with my insert statment the Swedish charter
"åäö" look like this in the database " Ž™ " and when i and when i run the
mysql_fetch array end print the value out on the screen it's the same
GARBAGE

Can anybody help me with this problem I sitting on Win2k pro,
mysql-4=2E0=2E1-alpha-win and apache_1.23win I don't know where to
come around this problem.

Best regards,
//Glenn


--- End Message ---


php-windows Digest 13 Mar 2002 22:32:55 -0000 Issue 1045

2002-03-13 Thread php-windows-digest-help


php-windows Digest 13 Mar 2002 22:32:55 - Issue 1045

Topics (messages 12609 through 12615):

Problems with mail()
12609 by: Alberto. Sartori
12612 by: Adolfo Meneses

Re: Mssql trusted connections ?
12610 by: Paco Ortiz

How do you install PHP on Win98 with PWS?
12611 by: Keith Hughes
12613 by: Nicole Amashta
12614 by: Nicole Amashta

PHPTriad 2.11 (MySQL) connect problem.
12615 by: Peter Ruan

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

Hi guys. I've a big problem using mail() function. My system run under Win2k SP2 
italian, with IIS 5 and PHP 4.1.2 (although I got this prob since 4.1.0). This is my 
php.ini

[mail function]
; For Win32 only.
SMTP = localhost

; For Win32 only.
sendmail_from = [EMAIL PROTECTED]

I've tried to replace SMTP value with 127.0.0.1 or with my subnet IPnothing to do!
It appears "Warning: Server Error in c:\inetpub\wwwroot\esempi\email.php on line 19"
This is my line 19:

mail("[EMAIL PROTECTED]","hi lamer","all ok?");

It could be a bug? if I run this code under a english version of Win2k all works fine. 
My SMTP server in IIS is correctly configured, I'm sure about this!
Best regards, alb


--- End Message ---
--- Begin Message ---

Welcome to the club!
I have the same problem, try to put your ISP smtp server.
or install the smtp server that come with iis5.
i still dont have a solution to me.
Adolfo
- Original Message -
From: "Alberto. Sartori" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 13, 2002 6:40 AM
Subject: [PHP-WIN] Problems with mail()


> Hi guys. I've a big problem using mail() function. My system run under
Win2k SP2 italian, with IIS 5 and PHP 4.1.2 (although I got this prob since
4.1.0). This is my php.ini
>
> [mail function]
> ; For Win32 only.
> SMTP = localhost
>
> ; For Win32 only.
> sendmail_from = [EMAIL PROTECTED]
>
> I've tried to replace SMTP value with 127.0.0.1 or with my subnet
IPnothing to do!
> It appears "Warning: Server Error in c:\inetpub\wwwroot\esempi\email.php
on line 19"
> This is my line 19:
>
> mail("[EMAIL PROTECTED]","hi lamer","all ok?");
>
> It could be a bug? if I run this code under a english version of Win2k all
works fine. My SMTP server in IIS is correctly configured, I'm sure about
this!
> Best regards, alb
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


--- End Message ---
--- Begin Message ---

Hi,

>How does one use trusted connections with mssql_connect()?

mmm it seems it's not currently implemented in php_mssql.

anyway, in order to use it you would need that your webserver
service runs under a WinNT acount trusted by the SQL server.
¿can you afford that? (or maybe you need it under PHP.EXE CLI
mode, anyway the same applies).

What you propose can be put into php_mssql (just using 
DBSETLSECURE from the DB-lib API), 
but maybe you need to propose it first to the module maintainer,
Frank Kromman (frank_at_frontbase_dot_com)

I recommend you to use plain simple SQL Server logins, it should 
be enough for everyone.

Greetings,

F.J.Ortiz

3/12/02 3:05:38 AM, "Kearns, Terry" <[EMAIL PROTECTED]> escribió:

>How does one use trusted connections with mssql_connect()?
>
>Also, the manual says something about an "interfaces" file. 
>Where do I find this? Where is this interfaces file documented?
>
>-- 
>PHP Windows Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>
>

___
Francisco Javier Ortiz Torre
ComuNET,S.A.
mailto:[EMAIL PROTECTED]

ComuNET, S.A
Gral. Concha 39,6º
48012 Bilbao España
Tel: +34 944 700 101 
Fax: +34 944 700 185 
http://www.comunet.es
___



--- End Message ---
--- Begin Message ---

Hi,
I'm trying to get PHP (4.1.2 I thinkthe new one) working on my Windows
98 PC, using PWS (don't know what version).
I've downloaded the "install" CGI script from php.net, which says it does it
all for you, and I've also had a quick play round with the .ini files (moved
different ones to the c:\windows dir).
I still can't seem to get it working, and when I've published HTML files
with PHP script in them, it just displays a blank page.
The only thing I'm trying to do at the moment is getting it to say "hello
world", but later on I'll be using it to link with MySQL.
Can anybody tell me how to get this working.
Thanks

Keith



--- End Message ---
--- Begin Message ---

You need to make sure you have read and execute scripts enabled and also
make sure you are web sharing the directory that the scripts are running out
of.

Nicole
www.aeontrek.com

"Keith Hughes" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTE

php-windows Digest 14 Mar 2002 10:55:05 -0000 Issue 1046

2002-03-14 Thread php-windows-digest-help


php-windows Digest 14 Mar 2002 10:55:05 - Issue 1046

Topics (messages 12616 through 12628):

Windows build problem for 4.1.2
12616 by: William Lee

parse error
12617 by: ChaoticWorks.cs.com

Re: Mssql trusted connections ?
12618 by: Kearns, Terry

Re:[PHP-WIN] parse error
12619 by: ChaoticWorks.cs.com
12621 by: alain samoun

PHP 4.1.2
12620 by: alain samoun

Re: PHPTriad 2.11 (MySQL) connect problem.
12622 by: Vail, Warren

Include ()
12623 by: ChaoticWorks.cs.com

Error::
12624 by: KONUS
12625 by: Brother Bagge
12628 by: KONUS

Blank Window - Apache and BadBlue. PHP 4.1.1 WinME
12626 by: Andy Seabrook

session_unregister and _destroy ??
12627 by: Sviss Cobazor

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

I recently downloaded the php src version 4.1.2 and it seems like 
there's a build conflict for the file output.c when I try to build it 
with MSVC++ 6.  The file with the same name exist in both the 
\main\output.c and \ext\bcmath\libbcmath\output.c. 
VC++ can not proceed unless the two filenames are different.  Is this a 
known issue and are people going to fix this in the next release?

-- 
William Lee (Will)| Sendmail Inc.
Email:  [EMAIL PROTECTED] | http://www.sendmail.com
Tel:(510) 594-5505|


--- End Message ---
--- Begin Message ---

how come whenever i run this code i get a error that says

 "Warning: Unexpected character in input: '\' (ASCII=92) state=1 in 
c:\phpdev\www\public\notch\bioupdate.php on line 28

Parse error: parse error in c:\phpdev\www\public\notch\bioupdate.php on line 
28"




--- End Message ---
--- Begin Message ---

I suspect you are right. I don't really want to give the user that IIS runs
as full access to my database. But then again, If I needed security, I'd run
PHP on Unix ;D it's just that this is for use at work... Yadda yadda
yadda...


[TK] 

> -Original Message-
> From: Paco Ortiz [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, 13 March 2002 11:12 PM
> To: Kearns, Terry; [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] FW: Mssql trusted connections ?
> 
> 
> Hi,
> 
> >How does one use trusted connections with mssql_connect()?
> 
> mmm it seems it's not currently implemented in php_mssql.
> 
> anyway, in order to use it you would need that your webserver 
> service runs under a WinNT acount trusted by the SQL server. 
> ¿can you afford that? (or maybe you need it under PHP.EXE CLI 
> mode, anyway the same applies).
> 
> What you propose can be put into php_mssql (just using 
> DBSETLSECURE from the DB-lib API), 
> but maybe you need to propose it first to the module 
> maintainer, Frank Kromman (frank_at_frontbase_dot_com)
> 
> I recommend you to use plain simple SQL Server logins, it should 
> be enough for everyone.
> 
> Greetings,
> 
> F.J.Ortiz
> 
> 3/12/02 3:05:38 AM, "Kearns, Terry" <[EMAIL PROTECTED]> 
> escribió:
> 
> >How does one use trusted connections with mssql_connect()?
> >
> >Also, the manual says something about an "interfaces" file.
> >Where do I find this? Where is this interfaces file documented?
> >
> >--
> >PHP Windows Mailing List (http://www.php.net/)
> >To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> 
> ___
> Francisco Javier Ortiz Torre
> ComuNET,S.A.
> mailto:[EMAIL PROTECTED]
> 
> ComuNET, S.A
> Gral. Concha 39,6º
> 48012 Bilbao España
> Tel: +34 944 700 101 
> Fax: +34 944 700 185 
> http://www.comunet.es
> ___
> 
> 

--- End Message ---
--- Begin Message ---

i fixed thati feel stupid for missing thatbut i still get the error 
even after i fixed that



In a message dated 3/13/2002 9:01:59 PM Central Standard Time, 
[EMAIL PROTECTED] writes:


> I suppose that line 28 is:
> 
> if (!fp) die ("Cannot open file for writing. Please contact me.");
> |___ You forgot the $ char for $fp
> 
> A+
> Alain
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, March 13, 2002 5:53 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] parse error
> 
> 
> how come whenever i run this code i get a error that says
> 
> "Warning: Unexpected character in input: '\' (ASCII=92) state=1 in
> c:\phpdev\www\public\notch\bioupdate.php on line 28
> 
> Parse error: parse error in c:\phpdev\www\public\notch\bioupdate.php on line
> 28"
> 
> 
>  $fp = fopen("./notch/" . $notch_member . ".txt", "r+");
> if (!fp) die ("Cannot open file for writing. Please contact me.");
> fwrite($fp, $notch_member . $bio);
> ?>


--- End Message ---
--- Begin Message ---

Since we don't know what are: $notch_member and $bio, you should print them,
that maybe it! ;)
A+
Alain



php-windows Digest 14 Mar 2002 23:01:38 -0000 Issue 1047

2002-03-14 Thread php-windows-digest-help


php-windows Digest 14 Mar 2002 23:01:38 - Issue 1047

Topics (messages 12629 through 12638):

PHP execution error
12629 by: Peter Salvage

Re: Include ()
12630 by: Mike Flynn

Re: Error::
12631 by: Nicole Amashta
12638 by: KONUS

Re: Blank Window - Apache and BadBlue. PHP 4.1.1 WinME
12632 by: alain

Re: PHPTriad 2.11 (MySQL) connect problem.
12633 by: Peter Ruan
12634 by: Vail, Warren

Re: parse error
12635 by: Phillip Oertel
12637 by: ChaoticWorks.cs.com

eregi_replace on a text file
12636 by: Asendorf, John

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

Hi all

NT4 Server SP6 IIS4

I installed PHP 4.0.6 according to the instructions posted on php.net and ran
the ubiquitous "hello world" script to verify that all was working as
advertised.

My webserver rsponded with a popup window as follows:


php.exe - invalid current directory

The process cannot switch to the startup current directory z:\inetpub\www\www84.
Select OK to set current directory to C:\WINNT, or select CANCEL to exit.


I've checked the archives of the list, read through the install/config section
of the man pages, but I can't see what I've done wrong.

Could someone please let me know where I screwed up please?
:-)
Cheers,
/wiZZ


--- End Message ---
--- Begin Message ---

Check your PHP.INI file for settings related to automatic escaping of 
characters.  And, uh, you say it's a forward slash like '/', but are you 
sure they aren't backslashes like '\'?  I've never heard of forward slashes 
getting added.  Are you positive that the text files don't have the 
slashes?  If not, then it has something to do with magic quotes, perhaps 
magic_quotes_runtime.

-Mike

At 11:57 PM 3/13/2002 -0500, you wrote:
>When i use the Include() command for a text file it always puts a slash, / ,
>in front of any qotations in the text file. anyone know why? my example is
>http://www.notchmetal.com/bio/
>
>thanks
>
>  -Sean-


Mike Flynn - Burlington, VT
http://www.mikeflynn.net/ - [EMAIL PROTECTED]
home=>work=>home=>store=>home


--- End Message ---
--- Begin Message ---

No way. YOu do not need to reformat. Make sure you have your mysql my.cnf
file setup properly on your c:/ drive and the paths are configured with the
correct paths to mysql.


"Konus" <[EMAIL PROTECTED]> wrote in message
003c01c1c870$40847740$5bfd92ca@kukut">news:003c01c1c870$40847740$5bfd92ca@kukut...
> i did starting the mySQL server, nut it wont start (not a little bit ^^;).
> After several time tring to figure it out the problem, such as tring to
> reinstall the program. But the error massage is still the same.
>
> Mybe i must re-FORMAT my HD (damn!!)
>
>
> - Original Message -
> From: "Brother Bagge" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, March 14, 2002 3:46 PM
> Subject: RE: [PHP-WIN] Error::
>
>
> > > -Original Message-
> > > From: KONUS [mailto:[EMAIL PROTECTED]]
> > >
> > > Warning: MySQL Connection Failed: Can't connect to MySQL
> > > server on 'localhost' (10061) in
> > > C:\apache\htdocs\phpmyadmin\lib.inc.php on line 255
> > > Error
> > > Iam using Win2K Professional.
> > >
> > > What's going on??
> >
> >
> > You haven't switched your mysql server on.
> >
> > c:\mysql\bin\mysqld.exe -install
> > (c:\mysql\bin\mysqld.exe -standalone <- this one will start it without
> > running it as a service, you have to start it every time you want to use
> it,
> > can be nice to know)
> >
> > After installing it as a service you will be able to start and stop the
> > server via NET START/STOP mysql from run.
> >
> > /brother
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
>



--- End Message ---
--- Begin Message ---

I have solve the problem, the path in the my.cfg from the previous install
hasn't been changed, so i change it. and it work thanks...a lot guys..


- Original Message -
From: "Nicole Amashta" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 14, 2002 10:48 PM
Subject: Re: [PHP-WIN] Error::


> No way. YOu do not need to reformat. Make sure you have your mysql my.cnf
> file setup properly on your c:/ drive and the paths are configured with
the
> correct paths to mysql.
>
>
> "Konus" <[EMAIL PROTECTED]> wrote in message
> 003c01c1c870$40847740$5bfd92ca@kukut">news:003c01c1c870$40847740$5bfd92ca@kukut...
> > i did starting the mySQL server, nut it wont start (not a little bit
^^;).
> > After several time tring to figure it out the problem, such as tring to
> > reinstall the program. But the error massage is still the same.
> >
> > Mybe i must re-FORMAT my HD (damn!!)
> >
> >
> > - Original Message -

php-windows Digest 15 Mar 2002 11:26:31 -0000 Issue 1048

2002-03-15 Thread php-windows-digest-help


php-windows Digest 15 Mar 2002 11:26:31 - Issue 1048

Topics (messages 12639 through 12640):

Re: PHPTriad 2.11 (MySQL) connect problem.
12639 by: Peter

Re: Blank Window - Apache and BadBlue. PHP 4.1.1 WinME
12640 by: Andy Seabrook

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

Yeap I did, but still didn't work...I think it's an issue with Windows
XP.  Anyway, I found another source of webserver which is just as
painless as PHPTriad was.
http://www.nusphere.com/

Thanks for your help and suggestions.

-Peter
- Original Message -
From: "Vail, Warren" <[EMAIL PROTECTED]>
To: "'Peter Ruan'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, March 14, 2002 9:52 AM
Subject: RE: [PHP-WIN] PHPTriad 2.11 (MySQL) connect problem.


> Have you been setting up user id's and passwords on your MySQL
database,
> failing to connect usually means that your code can't find the tcp/ip
> connection, or that the logon/password failed.  Connecting to a
specific
> database is handled by other functions after connection to the
database
> server.  If you are using everything right out of the PHP Triad "box",
> perhaps seeing a section of your connect code would help (If you have
set up
> other userid's, I probably can't help so don't send them).
>
> MySQL needs to have the mysql database defined (as distributed) in
order for
> things to work on the server.  Some newbies have made the mistake of
> dropping databases that were not theirs.
>
>
> Warren Vail
> Tools, Metrics & Quality Processes
> (415) 667-7814
> Pager (877) 774-9891
> 215 Fremont 02-658
>
>
> -Original Message-
> From: Peter Ruan [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 14, 2002 9:25 AM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: RE: [PHP-WIN] PHPTriad 2.11 (MySQL) connect problem.
>
>
>
> Hi Warren,
>   Unfortunatelly, that didn't work...so I'm still stuck. :(
Suggestions?
>
>
>
> >Ran into a similar problem under Windows NT.  I can think of several
> >possible causes, 1.) the MySQL server is not started, or 2), as was
in my
> >case, the MySQL server came up as a service and not as a Standalone
server,
> >which means the localhost connects didn't work (I think).  I use
> >WinMySQLadmin as a controller for the DB Server and placed a shortcut
to
> >that application in my startup directory.  By default it seemed to
start
> >things as a Service, but if I shut down the service, and restarted
the
> >server as Standalone, the admin tool seemed to remember to activate
things
> >standalone on the next reboot.
> >
> >good luck,
> >
> >Warren Vail
> >Tools, Metrics & Quality Processes
> >(415) 667-7814
> >Pager (877) 774-9891
> >215 Fremont 02-658
> >
> >
> >-Original Message-
> >From: Peter Ruan [mailto:[EMAIL PROTECTED]]
> >Sent: Wednesday, March 13, 2002 2:33 PM
> >To: [EMAIL PROTECTED]
> >Subject: [PHP-WIN] PHPTriad 2.11 (MySQL) connect problem.
> >
> >
> >Hi,
> >   I have installed PHPTriad 2.1.1 under Windows XP.  When I run
> >phpmyAdmin I got this error.
> >
> >Warning: MySQL Connection Failed: Can't connect to MySQL server on
> >'localhost' (10061) in C:\apache\htdocs\phpmyadmin\lib.inc.php on
line
> >255
> >Error
> >
> >
> >It used to work under Win2K.  What's the work around?
> >
> >Thanks,
> >Peter
> >
> >
> >
> >--
> >PHP Windows Mailing List (http://www.php.net/)
> >To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>
> _
> Chat with friends online, try MSN Messenger: http://messenger.msn.com
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

--- End Message ---
--- Begin Message ---

Hi Alain
apache_1.3.23-win32-x86-no_src.exe: followed default prompts.
php-4.1.1-Win32.zip: PHP installed manually as per the sapi module
instructions. Including editing the apache configuration file.
badblue98.exe: carried out the standard install of the Personal edition,
adding the services section as per instructions.
I have only tried Badblue to be sure that the PHP install was working
correctly, it is really the apache server that I am looking to run.
Andy
"Alain" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Which install procedure did you follow for each product? (Did you use an
> install program for PHP? If yes which one?)
> A+
> Alain
>
> On Wed, Mar 13, 2002 at 10:20:15AM -, Andy Seabrook wrote:
> > Can anybody help! trying to setup SAPI module on apache 1.3, also tried
cgi
> > on bad blue, niether seem to be passing php, OS is ME.
> >
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php



--- End Message ---


php-windows Digest 15 Mar 2002 23:58:42 -0000 Issue 1049

2002-03-15 Thread php-windows-digest-help


php-windows Digest 15 Mar 2002 23:58:42 - Issue 1049

Topics (messages 12641 through 12657):

Stange 'page-loading' effect
12641 by: George Pitcher
12645 by: alain samoun

Re: How do you install PHP on Win98 with PWS?
12642 by: Keith Hughes
12646 by: Nicole Amashta

GD library update
12643 by: Alberto. Sartori
12644 by: alain samoun

Re: Cannot connect to MySQL with PHP 4.1.1
12647 by: Arijit Chaudhuri

Cookies not working right on Win 2000 and IIS 5
12648 by: Arijit Chaudhuri

PHP ide
12649 by: Dan Zarrella
12650 by: Dan Zarrella
12651 by: Dan Zarrella
12653 by: Vail, Warren
12657 by: Craig Morrison

Strange error with FastTemplate and IIS 5
12652 by: Elias Santiago

Multiple conditions in an if statement
12654 by: Asendorf, John
12655 by: Vail, Warren

changing "included file" in a container
12656 by: Wolfgang Schneider

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

Hi all,

I have a part of my development site where the user hits a button, sending a
stream of values to a response page.

However, on testing, the response page comes up with 'server not found' but
when I refresh that error page, it loads the correct page but without any of
the transferred values.

Any ideas as to where it going wrong?

I'm using PHP-4.1.1, Apache (console) on Win 2000Pro.

Regards

George

George Pitcher is Technical Manager for the HERON Project
at Napier University, Edinburgh.




--- End Message ---
--- Begin Message ---

You probably have an error in your code, difficult to help without at least
a snippet of it.
A+
Alain


-Original Message-
From: George Pitcher [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 15, 2002 4:14 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [PHP-WIN] Stange 'page-loading' effect


Hi all,

I have a part of my development site where the user hits a button, sending a
stream of values to a response page.

However, on testing, the response page comes up with 'server not found' but
when I refresh that error page, it loads the correct page but without any of
the transferred values.

Any ideas as to where it going wrong?

I'm using PHP-4.1.1, Apache (console) on Win 2000Pro.

Regards

George

George Pitcher is Technical Manager for the HERON Project
at Napier University, Edinburgh.




--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--- End Message ---
--- Begin Message ---

How do you  make sure the read and execute scripts are enabled?
I'm a complete Newbie.
Cheers

Keith

"Nicole Amashta" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> You need to make sure you have read and execute scripts enabled and also
> make sure you are web sharing the directory that the scripts are running
out
> of.
>
> Nicole
> www.aeontrek.com
>
> "Keith Hughes" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Hi,
> > I'm trying to get PHP (4.1.2 I thinkthe new one) working on my
Windows
> > 98 PC, using PWS (don't know what version).
> > I've downloaded the "install" CGI script from php.net, which says it
does
> it
> > all for you, and I've also had a quick play round with the .ini files
> (moved
> > different ones to the c:\windows dir).
> > I still can't seem to get it working, and when I've published HTML files
> > with PHP script in them, it just displays a blank page.
> > The only thing I'm trying to do at the moment is getting it to say
"hello
> > world", but later on I'll be using it to link with MySQL.
> > Can anybody tell me how to get this working.
> > Thanks
> >
> > Keith
> >
> >
>
>



--- End Message ---
--- Begin Message ---

Run the PWS admin panel. There is an "advanced" button on the left. You find
the "site" that is listed in the window and double click it to view the
properties. From there, you should be able to add the read and execute
permissions. I know this is kind of vague because I haven't used PWS in a
while and don't have direct access to view the exact steps. I hope this
helps you in the right direction.

Good luck,
Nicole
www.aeontrek.com

"Keith Hughes" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> How do you  make sure the read and execute scripts are enabled?
> I'm a complete Newbie.
> Cheers
>
> Keith
>
> "Nicole Amashta" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > You need to make sure you have read and execute scripts enabled and also
> > make sure you are web sharing the directory that the scripts are running
> out
> > of.
> >
> > Nicole
> > www.aeontrek.com
> >
> > "Ke

php-windows Digest 16 Mar 2002 17:27:03 -0000 Issue 1050

2002-03-16 Thread php-windows-digest-help


php-windows Digest 16 Mar 2002 17:27:03 - Issue 1050

Topics (messages 12658 through 12665):

Ongoing php.ini and/or system problems
12658 by: Belgarius

Re: PHP ide
12659 by: John Lim

Session read problem
12660 by: Martin
12663 by: Sviss Cobazor

Re: Blank Window - Apache and BadBlue. PHP 4.1.1 WinME
12661 by: Andy Seabrook
12662 by: Andy Seabrook
12665 by: alain samoun

Problems with session_destroy()
12664 by: Sviss Cobazor

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

Greetings...

   I've encountered a problem that I've not been able to find a cure for,
regardless of several pointers found in the archives.  Basically, if I place
php.ini into my Windows folder, it's parsed properly, or so I am assuming
since the sendmail_from and SMTP values, as well as the path to the ini
file, are correctly displayed using phpinfo.  The problem is, once the ini
file is parsed, PHP basically stops working.
   A bit of background.  I'm running 98SE (I know, bad choice, but
unavoidable at present)
with php 4.1.1, and using OmniHTTPd as my webserver.  Ironic that the docs
mention Omni as the easiest of all setups for PHP.  PHP was installed by
Omni on a prior release, being version 4.04pl1, or some such.  I've left it
as is, outside of making the needed settings to Omni to show it the exe
location, and setting the mime types.  No problems.  Recently, I had
occasion to look into the mail() functions, as a user informed me that he
was having problems.  That's when I hit the roadblock, head on.
   I have a single instance of php.ini on my system at any given time; I've
even gone so far as to rename those in the pear folders.  If I place this
file into my Windows folder, phpinfo reveals my desired settings, which are
simply the suggested settings, with my SMTP and sendmail_from entries,
however, visiting any of the user sites (subdomains, with user folders,
etc.) that uses PHP returns pages of error texts, and cease working.
Removing the file from the Windows folder restores things to as is.  As is
consists of an upgrades install in the /php folder underneath the Omni
installation.  There is no php.ini file in this folder, yet, under Omni, PHP
runs without it, on a set of seeming defaults.
   I've also encountered similar problems with Apache.  It parses the file,
as long as it's told where to look for the ini file, with no problems.
Phpinfo under it returns the desired settings, but, alas, the functions are
missing, and again the errors appear.
   From what I've gathered, there aren't supposed to be any copies of
php.ini outside of the one contained in the Windows folder.  In my case,
placing the file there results in the desired settings being parsed (or
indication thereof in showing desired as opposed to "default" when calling
phpinfo)  If the file is present, it no longer works, outside of seeing my
settings.  If the file isn't present, with Omni at least, PHP functions seem
to work within whatever default settings it come out of the box.  Omni is
set to look for the executable in it's path, and mime types have been added
for php* extensions.  For whatever reason, once the ini file is parsed, it
stops working.  Which makes me think...
   There is no doubt some glaringly obvious setting in the ini file that I
have overlooked, or have set incorrectly, but I'm dipped if I can find it.
If this has any bearing, I'd be interested in knowing where to look further
into it.  My OS resides on the C drive, while the servers and associated
go-withs reside on the E drive.  Any insights would be most gratefully
accepted.

[EMAIL PROTECTED]
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.338 / Virus Database: 189 - Release Date: 3/14/02


--- End Message ---
--- Begin Message ---

See http://php.weblogs.com/editors

My favorite on windows is homesite.

Craig Morrison <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
>
> Dan Zarrella wrote:
> >
> > I'm curious to see everyone's opion on php-ide's/editors, which one is
the
> > best, most complete, easiest, and why, personally i have huge demands i
> > place on my editor (html-kit) and i'm looking for one (free) that can
meet
> > my demands for a more php-centric and complete Development
Environment. -dan
>
> PHPEdit?
>
> I use it on a daily basis for projects (30+ PHP scripts all loaded at the
same
> time). It offers syntax highlighting, brace/bracket/quote completion,
function
> auto-completion and a debugger.
>
> It is early in the development cycle, but it more than suits my needs.
>
>   http://www.phpedit.com/
>
> YMMV..
>
> --
>
> Craig Morrison
>   http://www.mtspr

php-windows Digest 17 Mar 2002 11:51:07 -0000 Issue 1051

2002-03-17 Thread php-windows-digest-help


php-windows Digest 17 Mar 2002 11:51:07 - Issue 1051

Topics (messages 12666 through 12667):

php4 / sessions / win2k
12666 by: Wolfgang Schneider

include_pathHelp
12667 by: walter

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

Dear all,

somehow I am encountering a crash of the apache server on a Win2K Pc
here when trying to access a set of php files that use mysql as a
backend and involve "session" data ...  when trying to access the
index.php file, I get an error message saying "apache.exe caused an
error and is being terminated. please re-start the program" ...  

Now, the files work properly and without problems from my website
where I put them for testing purposes in a subdirectory    BUT
they do not work on my home PC where I have set up a testing
environment. The only difference apparently is that the website runs
on a Linux server, whereas my home PC is powered by Win2K ...

As far as I know, there is a problem with "session" handling under
Win2K or Win NT servers, and the suggested solution involves a
setting in the php.ini file.  

My current php.ini file setting is:
session.save_path =c:\apache\htdocs\sessions\tmp

And this directory does exist ...!  Nevertheless, I get the above
mentioned error and cannot test my pages on my home PC ... 

In my apache httpd.conf file I have included just a basic section for
my virtual host, which reads


ServerAdmin webmaster@localhost
DocumentRoot e:/bibelcenter.de/www
ServerName www.bibelcenter.de
ErrorLog logs/www.bibelcenter.de-error_log
CustomLog logs/www.bibelcenter.de-access_log common
ScriptAlias /cgi-bin/ e:/bibelcenter.de/www/cgi-bin/
 
Options Indexes FollowSymlinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
 


Would someone have a suggestion what might be going on there?
God bless you with His grace and peace 
Wolfgang 

Looking for Biblical information? COME AND SEE! 
-- ONLINE Courses: http://classes.bibelcenter.de ... NEW!
-- BibelCenter: http://www.bibelcenter.de 
-- Bookstore: http://www.worthy.net/BibelCenter/ 




--- End Message ---
--- Begin Message ---

Hi

Hw do I configure the php ini so that  users can exec scripts from sub dirs
in there sites.
say my webserver stores the sites in a folder named www.
 what do I configure the include_path  to

include_path ="D:\www"

does not seem to work to well

walter





--- End Message ---


php-windows Digest 18 Mar 2002 11:55:05 -0000 Issue 1052

2002-03-18 Thread php-windows-digest-help


php-windows Digest 18 Mar 2002 11:55:05 - Issue 1052

Topics (messages 12668 through 12670):

Re: How do you install PHP on Win98 with PWS?
12668 by: Keith Hughes

Error after installation
12669 by: Erik Pepping

Sessions
12670 by: Alberto. Sartori

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

Okay, I've just got this message:


Security Alert! PHP CGI cannot be accessed directly.
This PHP CGI binary was compiled with force-cgi-redirect enabled. This means
that a page will only be served up if the REDIRECT_STATUS CGI variable is
set. This variable is set, for example, by Apache's Action directive
redirect.

You may disable this restriction by recompiling the PHP binary with
the --disable-force-cgi-redirect switch. If you do this and you have your
PHP CGI binary accessible somewhere in your web tree, people will be able to
circumvent .htaccess security by loading files through the PHP parser. A
good way around this is to define doc_root in your php.ini file to something
other than your top-level DOCUMENT_ROOT. This way you can separate the part
of your web space which uses PHP from the normal part using .htaccess
security. If you do not have any .htaccess restrictions anywhere on your
site you can leave doc_root undefined. If you are running IIS, you may
safely set cgi.force_redirect=0 in php.ini.




I've found the redirect_status cgi to 0 (and off) and it still doesn't work.
If you can help, that'd be great.

Keith




--- End Message ---
--- Begin Message ---

When i run a script test.php after installation on windows 2000 with IIS4 I
get the mesage in a browser window:

Security Alert! PHP CGI cannot be accessed directly.
This PHP CGI binary was compiled with force-cgi-redirect enabled. This means
that a page will only be served up if the REDIRECT_STATUS CGI variable is
set. This variable is set, for example, by Apache's Action directive
redirect.

You may disable this restriction by recompiling the PHP binary with
the --disable-force-cgi-redirect switch. If you do this and you have your
PHP CGI binary accessible somewhere in your web tree, people will be able to
circumvent .htaccess security by loading files through the PHP parser. A
good way around this is to define doc_root in your php.ini file to something
other than your top-level DOCUMENT_ROOT. This way you can separate the part
of your web space which uses PHP from the normal part using .htaccess
security. If you do not have any .htaccess restrictions anywhere on your
site you can leave doc_root undefined. If you are running IIS, you may
safely set cgi.force_redirect=0 in php.ini.



I did set cgi.force_redirect=0 in php.ini which in located in c:\windows
directory and c:\winnt directory



What could be wrong ??



Erik Pepping



--- End Message ---
--- Begin Message ---

Hi guys, as you know the php session are stored in a little file on the server. But 
like ASP, is there a way to store them in the memory of the server? Thanks to all

Best regards, Alb


Alberto Sartori - Developer
Hard Programming Dep.



--- End Message ---


php-windows Digest 19 Mar 2002 16:08:59 -0000 Issue 1053

2002-03-19 Thread php-windows-digest-help


php-windows Digest 19 Mar 2002 16:08:59 - Issue 1053

Topics (messages 12671 through 12683):

Session-trouble bigtime
12671 by: Martin
12672 by: Mike Flynn

Undefines constant
12673 by: Leo Sten
12674 by: Dan Zarrella
12675 by: Dan Zarrella
12676 by: Dan Zarrella
12677 by: Dan Zarrella
12679 by: Dan Zarrella

Re: [PHP-DB] RE: [PHP-WIN] Stange 'page-loading' effect
12678 by: Jonathan Hilgeman

Re: FastCGI ISAPI/NSAPI Update
12680 by: Shane Caraveo

how and where to turn autocommit off ?
12681 by: Sviss Cobazor

Re: Ongoing php.ini and/or system problems
12682 by: C vd Veen

PHP 4.1.2 problems
12683 by: Steve

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

Hmm I have registred the Session $Namn
by the following snippet:

<< File1 >>


And when I goes to:
<< File2 >>


Nothings happening...
My Session in php.ini looks like this:


[Session]
; Handler used to store/retrieve data.
session.save_handler = files

; Argument passed to save_handler.  In the case of files, this is the path
; where data files are stored. Note: Windows users have to change this
; variable in order to use PHP's session functions.
session.save_path = /tmp

; Whether to use cookies.
session.use_cookies = 1


; Name of the session (used as cookie name).
session.name = PHPSESSID

; Initialize session on request startup.
session.auto_start = 0

; Lifetime in seconds of cookie or, if 0, until browser is restarted.
session.cookie_lifetime = 0

; The path for which the cookie is valid.
session.cookie_path = /

; The domain for which the cookie is valid.
session.cookie_domain =

; Handler used to serialize data.  php is the standard serializer of PHP.
session.serialize_handler = php

; Percentual probability that the 'garbage collection' process is started
; on every session initialization.
session.gc_probability = 1

; After this number of seconds, stored data will be seen as 'garbage' and
; cleaned up by the garbage collection process.
session.gc_maxlifetime = 1440

; Check HTTP Referer to invalidate externally stored URLs containing ids.
session.referer_check =

; How many bytes to read from the file.
session.entropy_length = 0

; Specified here to create the session id.
session.entropy_file =

;session.entropy_length = 16

;session.entropy_file = /dev/urandom

; Set to {nocache,private,public} to determine HTTP caching aspects.
session.cache_limiter = nocache

; Document expires after n minutes.
session.cache_expire = 180

; use transient sid support if enabled by compiling with --enable-trans-sid.
session.use_trans_sid = 1

url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"




The tmp map is also set and the session is created...but the browser cant
reach it
please help me!!
best regards
--
Martin Eriksson
webdesigner & Utvecklare

[EMAIL PROTECTED]
http://www.svensk-design.com



--- End Message ---
--- Begin Message ---

At 03:58 PM 3/18/2002 +0100, Martin wrote:
>Hmm I have registred the Session $Namn
>by the following snippet:
>
><< File1 >>
>session_register("Namn");
>$Namn = "sweden";
>echo"ett litet test med sessioner";
>?>

Should there be a session_start() here?  You have session.auto_start set to 
0 in your PHP.INI, so I'm not sure if this will actually start the session.

>And when I goes to:
><< File2 >>
>session_start() ;
>session_register("Namn");
>echo"Hejsan $Namn !";
>?>

You don't register the variable again once you've started the session.  You 
can get rid of the 'session_register("Namn");' here.

-Mike


--- End Message ---
--- Begin Message ---

Hello!
I have just installed php4 on my server, I'm running IIS on windows 2000.
When I run some scripts that I know work on other servers I get the error:

"Warning: Use of undefined constant" and then the constant name etc.

Please help me!

Best Regards/
Leo Sten

--- End Message ---
--- Begin Message ---

I've seen this a few times, mostly having to do with arrays and thier 
indexes, namely associative arrays. $foo[bar]; is enough to cause that 
error, it should be $foo['bar']; try that. -dan

_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


--- End Message ---
--- Begin Message ---

have you checked things like register_globals since the default settings 
have changed in the new version of php, paste your settings please -dan

_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


--- End Message ---
--- Begin Message ---

create a file that says only this:

/

php-windows Digest 20 Mar 2002 07:47:24 -0000 Issue 1054

2002-03-19 Thread php-windows-digest-help


php-windows Digest 20 Mar 2002 07:47:24 - Issue 1054

Topics (messages 12684 through 12690):

Re: PHP 4.1.2 problems
12684 by: Shrock, Court
12687 by: C vd Veen

BDB transactions ?
12685 by: Sviss Cobazor
12686 by: C vd Veen

Not PHP specific, but need help anyways
12688 by: Randall Barber
12689 by: C vd Veen

PHP - mssql
12690 by: chris

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

Did the include_path change in your php.ini?  Verify your include_path
directive in your php.ini.

-Original Message-
From: Steve
To: [EMAIL PROTECTED]
Sent: 3/18/02 5:19 PM
Subject: [PHP-WIN] PHP 4.1.2 problems

I just updated my php instalation to 4.1.2 (the one witht he forced
redirect enabled). The problem i have is since i upgraded it on the
weekendit will not include files using either include or require, it
keeps telling me that it can;t open them and it shows for some strange
unknown reason to me that they werent in my "C:\php4\pear" directory
which A: I don;t got a directory called php4 and B: before I upgraded my
include and require files always loaded.

Can anyone PLEASE tell me how I can get it so my includes will include
from their directory instead of some phantom directory? Or still have
the binary for php 4.1.1 or 4.1.0 that they can send me 

Thanx

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---
--- Begin Message ---

I also upgraded tot PHP 4.1.2. and kept the old php.ini file... that works
fine...

C vd Veen

"Steve" <[EMAIL PROTECTED]> schreef in bericht
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I just updated my php instalation to 4.1.2 (the one witht he forced
> redirect enabled). The problem i have is since i upgraded it on the
> weekendit will not include files using either include or require, it
> keeps telling me that it can;t open them and it shows for some strange
> unknown reason to me that they werent in my "C:\php4\pear" directory
> which A: I don;t got a directory called php4 and B: before I upgraded my
> include and require files always loaded.
>
> Can anyone PLEASE tell me how I can get it so my includes will include
> from their directory instead of some phantom directory? Or still have
> the binary for php 4.1.1 or 4.1.0 that they can send me
>
> Thanx



--- End Message ---
--- Begin Message ---

Hi NG.

I'm trying to test transactions by starting a transaction with "SET
AUTOCOMMIT=0" and "BEGIN".
After that I create a table and insert 2 rows. The 2nd row has an syntax
error so this would call for a rollback.
But the table gets created and the 1st row are inserted although my test
function never gets to call commit but instead calls rollback.

Anyone have an idea why this is?

~ Sviss.



--- End Message ---
--- Begin Message ---

PHP doesn't have a table, MySQL has


"Sviss Cobazor" <[EMAIL PROTECTED]> schreef in bericht
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi NG.
>
> I'm trying to test transactions by starting a transaction with "SET
> AUTOCOMMIT=0" and "BEGIN".
> After that I create a table and insert 2 rows. The 2nd row has an syntax
> error so this would call for a rollback.
> But the table gets created and the 1st row are inserted although my test
> function never gets to call commit but instead calls rollback.
>
> Anyone have an idea why this is?
>
> ~ Sviss.
>
>



--- End Message ---
--- Begin Message ---

Howdy--

I have a PHP script that creates links to external files that I want the user to save 
to disk.
Specifically these are Postscript Printer Definition files (PPDs) which will be saved 
on a Mac or a PC.

As it is, I use the following link:

http://www.mypage.edu/printer.ppd";> etc...

This browses to the file and shows up in the browser.  What I want is when the user 
chooses the link, 
it brings up the "Save To Disk" dialog (for both Mac and PC).

Should I use the  tag?  I was under the impression you needed 
an FTP server for that to work right.
Any hints, or a shove in the right direction please.
Thanks
RDB

--- End Message ---
--- Begin Message ---

You could winzip the file or make it an installation executable (.exe)

C vd Veen


"Randall Barber" <[EMAIL PROTECTED]> schreef in bericht
002501c1cf77$97e85c50$82c5bb80@246upbwork">news:002501c1cf77$97e85c50$82c5bb80@246upbwork...
Howdy--

I have a PHP script that creates links to external files that I want the
user to save to disk.
Specifically these are Postscript Printer Definition files (PPDs) which will
be saved on a Mac or a PC.

As it is, I use the following link:

http://www.mypage.edu/printer.ppd";> etc...

This browses to the file and shows up in the browser.  What I want is when
the user choos

php-windows Digest 20 Mar 2002 22:01:35 -0000 Issue 1055

2002-03-20 Thread php-windows-digest-help


php-windows Digest 20 Mar 2002 22:01:35 - Issue 1055

Topics (messages 12691 through 12696):

Templates Modul
12691 by: Alex

Session handling
12692 by: Alberto. Sartori

Still in trouble with mail()
12693 by: Alberto. Sartori
12695 by: Belgarius

Re: BDB transactions ?
12694 by: Svensson, B.A.T. (HKG)

405 errors with IIS and default document
12696 by: Michael Hall

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

I 'm searching a php template modul. Where can i find them??

Thanks Alex



--- End Message ---
--- Begin Message ---

Hi guys, this is mine PHP.INI:

[Session]
; Handler used to store/retrieve data.
session.save_handler = files

; Argument passed to save_handler.  In the case of files, this is the path
; where data files are stored. Note: Windows users have to change this 
; variable in order to use PHP's session functions.
session.save_path = /tmp


The value of session.save_handler is set to FILE. What other value I can use? can I 
store the session in memory? Thanks!



--- End Message ---
--- Begin Message ---

Hey guys, I'm still in trouble by sending email with mail() function. As I've 
described some last posts ago, that function return me "Server error". Someone told me 
that my machine is not a mail server, but since php 4.0 I used mail() with no problem. 
My SMTP Service in IIS is correctly configured, I'm sure! anybody got the same 
problem? thanks

My pc is Win2k SP2 italian, IIS 5




--- End Message ---
--- Begin Message ---



-Original Message-
From: Alberto. Sartori [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 20, 2002 06:58 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Still in trouble with mail()


Hey guys, I'm still in trouble by sending email with mail() function. As
I've described some last posts ago, that function return me "Server error".
Someone told me that my machine is not a mail server, but since php 4.0 I
used mail() with no problem. My SMTP Service in IIS is correctly configured,
I'm sure! anybody got the same problem? thanks

My pc is Win2k SP2 italian, IIS 5


   I've a similar problem, one that has been with me since 4.04pl1, only a
bit worse, it seems.  In my case, the mail() function doesn't work, period.
There are no errors returned, it simply does not work.  Running phpinfo
reveals that my system sees neither my SMTP setting, nor my sendmail from
setting.  This, I have discovered, is due to the fact that my php.ini file
isn't being parsed.  So, I place an ONLY copy of it on my system into my
Windows folder, and while phpinfo then returns the proper setting
information, PHP no longer works for the user pages, returning instead,
reams of error texts.
   I've scoured the archives from top to bottom, and have found no answers
that have worked personally, and posted many queries on various lists, all
to no avail.  Presently, I am running 4.1.1, using OmniHTTPd 2.09, and have
no php.ini file.  The only way I can get PHP to work for me, is to prevent
the system from parsing the ini file, and letting PHP run under what I can
only presume is it's default settings.
   If this has any bearing, I've also attempted to set PHP up with Apache
1.3.23, with a bit different results.  Under Apache, the ini file doesn't
appear to have to be in the Windows folder, as long as you tell Apache where
to look for it in the http.conf file, it is parsed, and my desired settings
are reflected by phpinfo.  In both cases, however, PHP ceases to function,
returning only error texts instead of the expected results.
   As mentioned, I've posted this here, as well as on the Apache lists, and
the Omni list, and have as yet to receive any response.  I suppose I'll just
be happy that it works as well as it does, and hope for a solution one of
these days.

System Specs:
Intel P3/1000, 512M RAM, WIN98SE, fully patched

Regards,
[EMAIL PROTECTED]
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.338 / Virus Database: 189 - Release Date: 3/14/02


--- End Message ---
--- Begin Message ---

>-Original Message-
>From: Sviss Cobazor 
>Sent: Tuesday, March 19, 2002 5:18 PM
>To: [EMAIL PROTECTED]
>Subject: [PHP-WIN] BDB transactions ?
>
>
>Hi NG.
>
>I'm trying to test transactions by starting a transaction with "SET
>AUTOCOMMIT=0" and "BEGIN".
>After that I create a table and insert 2 rows. The 2nd row has 
>an syntaxerror so this would call for a rollback.
>But the table gets created and the 1st row are inserted 
>although my test
>function never gets to call commit but instead calls rollback.
>
>Anyone have an idea why this is?

IMHO I think it is a perfectly normal behaviour to do a rollback if an error
occurs duirng t

php-windows Digest 21 Mar 2002 11:34:28 -0000 Issue 1056

2002-03-21 Thread php-windows-digest-help


php-windows Digest 21 Mar 2002 11:34:28 - Issue 1056

Topics (messages 12697 through 12698):

PHP String
12697 by: C vd Veen

issue with PHP_XSLT?
12698 by: Ben

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---



Hi,
 
I got a Xitami webserver running on Windows 98, work perfect to me, I have 
PHP4.1.2, MySql MyODBC, Active Perl ect.
 
My question is that when a script calls the $PHP_SELF string I receive the 
wellknown 404 message from my webserver.
 
Why doesn't Windows 98 put the website in the PHP string??? Something like 
the JavaScript command location.history() does work fine.
 
How come?
 
 
Thanks

 

C van de Veen[EMAIL PROTECTED]
   
--- End Message ---
--- Begin Message ---

hi,

i got a problem. i installed sablotron (expat etc) and it seems to be
working. my directory structures are like this:

webroot = c:\apache\htdocs
phproot = c:\apache\php

i try putting my xsl files (1.xsl, 1.xml) into HTDOCS but it doesnt work and
tries to look for the files in my PHPROOT! so, when i put the files in
"c:\apache\php", it works.

why does php_xslt.dll expect the files to be in PHP root? how can i change
this to be able to pick up files from the document root itself?

thanks,
ben





--- End Message ---


php-windows Digest 21 Mar 2002 23:56:18 -0000 Issue 1057

2002-03-21 Thread php-windows-digest-help


php-windows Digest 21 Mar 2002 23:56:18 - Issue 1057

Topics (messages 12699 through 12723):

Re: PHP String
12699 by: Scott St. John
12702 by: W-Mark Kubacki
12706 by: Symeon Charalabides

is_integer()
12700 by: Claudio Fedel

Re: Templates Modul
12701 by: Michel Laine

how to use payflow
12703 by: Marirose Martin
12704 by: brother

HELP APACHE MODULE DOES NOT WORK
12705 by: Maarten Zuidland

PHP 4.1.2 problems solved
12707 by: Steve

Re: PHP ide
12708 by: Steve

create an  AUTOLINK?
12709 by: Ljungan
12710 by: Scott St. John
12711 by: Jordan S. Jones
12713 by: Ljungan
12714 by: Ljungan
12715 by: Symeon Charalabides
12716 by: Ross Fleming
12717 by: Scott St. John
12721 by: brother

random elements of an array
12712 by: Afan Pasalic

Re: issue with PHP_XSLT?
12718 by: Phillip Fox
12722 by: Mike Eynon

PHP installing problems
12719 by: sjub
12720 by: Scott St. John

Timestamp For Access?
12723 by: Dr. Shim

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

I'll take a guess, you are calling PHP_SELF and it will check to see what 
the php script name is that you are running, nothing else.  I would think 
you would have to get the server variables to get the entire url.

I have used PHP_SELF often and don't get 404 errors, matter of fact it's 
never failed unless I messed up the variables I was passing to it.  Make 
sure the script name and any variables are lined up correctly.  So it 
would be scott.php?var=foo&var1=foo1 etc. 

-Scott



On Thu, 21 Mar 2002, C vd Veen wrote:

> Hi,
> 
> I got a Xitami webserver running on Windows 98, work perfect to me, I have PHP4.1.2, 
>MySql MyODBC, Active Perl ect.
> 
> My question is that when a script calls the $PHP_SELF string I receive the wellknown 
>404 message from my webserver.
> 
> Why doesn't Windows 98 put the website in the PHP string??? Something like the 
>JavaScript command location.history() does work fine.
> 
> How come?
> 
> 
> Thanks
> 
> 
> 
> 
> C van de Veen
> [EMAIL PROTECTED]
> 
> 
> 
>   
> 

-- 



--- End Message ---
--- Begin Message ---

Hello!

Since PHP 4.1.0 $PHP_SELF is called $_SERVER['PHP_SELF']
unless you've explicitly acivated the register_globals
variable in the php.ini. (I bet you haven't.)

Change everything in your code accordingly.
Every variable is found at the array of variables called
like the methods' name. If you're receiving values through
the get-method you'll have to address them by
$_GET['theName'], post by $_POST['xyz'] and so on.

Please feel free to write on further questions,

Mark


-Ursprüngliche Nachricht-
Von: C vd Veen [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 21. März 2002 03:45
An: [EMAIL PROTECTED]
Betreff: PHP String


Hi,

I got a Xitami webserver running on Windows 98, work perfect to me, I have PHP4.1.2, 
MySql MyODBC, Active Perl ect.

My question is that when a script calls the $PHP_SELF string I receive the wellknown 
404 message from my webserver.

Why doesn't Windows 98 put the website in the PHP string??? Something like the 
JavaScript command location.history() does work
fine.

How come?


Thanks



C van de Veen
[EMAIL PROTECTED]





--- End Message ---
--- Begin Message ---

> > My question is that when a script calls the $PHP_SELF string I receive the
> > wellknown 404 message from my webserver.
> > 
Hmm, maybe you're calling it from inside a function? In that case, you need to 
register $PHP_SELF as a global variable to get the value.
Then again, you'd get the usual error message, not a 404, so I don't really 
know...

Symeon Charalabides (cosmopolitan trainee)

http://www.webmate.gr


--- End Message ---
--- Begin Message ---

Hi there,
 
I have to check if a variable in querystring is integer or not. I tried
is_integer($varname) but it doesn't return anything.. The value of variable
in querystring is 3
 
 
any idea?
 

 

--- End Message ---
--- Begin Message ---


Here are some, but there is *much* more out there.
Just use your favourite search engine.

PHPlib
http://phplib.netuse.de/
FastTemplate/Cached
http://www.thewebmasters.net/php/
FastTemplate Clone
http://freshmeat.net/projects/rfasttemplate/

Tutorials
http://www.phpbuilder.com/columns/sascha19990316.php3
http://www.phpbuilder.com/columns/david2512.php3
http://www.phpbuilder.com/columns/kendall20001122.php3
http://www.devshed.com/Server_Side/PHP/PHPLib/
http://www.devshed.com/Server_Side/PHP/PHPFastTemplate/
http:/

php-windows Digest 22 Mar 2002 13:59:51 -0000 Issue 1058

2002-03-22 Thread php-windows-digest-help


php-windows Digest 22 Mar 2002 13:59:51 - Issue 1058

Topics (messages 12724 through 12728):

Seeing plain text instead of HTML!!!
12724 by: Sava jurisic

(help)random image??
12725 by: KONUS
12726 by: Rasmus Lerdorf

Problem with sql call (with W2K) but same call work fine under Win98
12727 by: Dominique van der Wal

Re: random elements of an array
12728 by: Svensson, B.A.T. (HKG)

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

Hey folks,

I'm running Win2K Adv. Server( s.p.2) \ IBM HTTP Server 1.3.19( Read
Apache ) . did everything correctly (at least I think so :) , but when I
try open *.php or *.php3 files, in my browser( IE 5.5 ) I can see ONLY plain
text.

Here is my httpd.conf content:
# PHP Config
LoadModule php4_module c:/php/sapi/php4apache.dll
AddModule mod_php4.c
#AddModule mod_php3.c
#AddModule mod_perl.c
#AddModule mod_php.c

AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps
AddType application/x-httpd-php3 .php3

...

Your  help is much appreciated,

Sava



--- End Message ---
--- Begin Message ---

I was wondering is there a way to generate image random with php?
I need it...I am new to php, all i can do is only basic of php. 
I also using MySQL for the database system.

Is there a site who explaining about this?
or someone know how to make the script?

Thank's

--Zeus--

Mutimedia staf of NGO KONUS,
www.konus.or.id

--- End Message ---
--- Begin Message ---

I actually just hacked one up. This hooks into a Gallery
(gallery.sourceforge.org) album directory and picks out files with the
string, "sized", in their filenames.  It then creates an array such that
the more recent pictures get more entries in the array which means when I
pick a random image I am more likely to see a recent image.




On Thu, 14 Mar 2002, KONUS wrote:

> I was wondering is there a way to generate image random with php?
> I need it...I am new to php, all i can do is only basic of php.
> I also using MySQL for the database system.
>
> Is there a site who explaining about this?
> or someone know how to make the script?
>
> Thank's
>
> --Zeus--
>
> Mutimedia staf of NGO KONUS,
> www.konus.or.id
>


--- End Message ---
--- Begin Message ---

Hi,

I've install W2K and php (ver 4.1.2) on my pc and copy my scripts wich
are running under a W98 OS.

It work fine but with the following sql call I crash my webserver.
 

The problem is with the max function.

Under the console, i receive the following message :  FATAL : emalloc():
unable to allocate 214748599 bytes

Any idea to solve this problem under W2K (but same code run under W98)

Thank you in advance
Dominique van der Wal


--- End Message ---
--- Begin Message ---

You can completely randomize an array with n elements in n operations, by
using the following brute force approach:

void ScrambleIntList(int *pnElements, int nLen)
{
  for (nLoop = 0, nLoop-Original Message-
>From: Afan Pasalic [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, March 21, 2002 9:17 PM
>To: [EMAIL PROTECTED]
>Subject: [PHP-WIN] random elements of an array
>
>
>Hi,
>
>My problem is: if I have an array (e.g. 1, 2, 3, 4, 5, 6, 7, 
>8, 9), how I can "shake" the array and get randomized order of 
>the same array (e.g. 5, 8, 1, 9, 3, 4, 7, 2, 6)?
>
>Thanks for any help!
>
>
>Afan
>

--- End Message ---


php-windows Digest 24 Mar 2002 06:13:38 -0000 Issue 1059

2002-03-23 Thread php-windows-digest-help


php-windows Digest 24 Mar 2002 06:13:38 - Issue 1059

Topics (messages 12729 through 12738):

PHP4, ASP, and IIS
12729 by: David Lanier
12732 by: Nicole Amashta
12733 by: Asendorf, John

Re: random elements of an array
12730 by: Nicole Amashta
12731 by: Nicole Amashta

php3 + Apache + Windows 2000 Pro
12734 by: Robert Nadot
12737 by: Robin Bolton

w2k + apacahe + (php3 + php4)
12735 by: Robert Nadot

connecting php with SqlBase ???
12736 by: Roberto Martinez

Any credability lost...
12738 by: Ross Fleming

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

Hi,

I am a college student majoring in computer programming, and have gotten my
college to agree to allow me to install the MySQL database and PHP4 engine
on one of their servers providing it won't interfere with the ASP pages they
are using already.

I serve as the president of a campus fraternity, and we run a news portal
and discussion forums that is written in PHP, and utilizes the MySQL
database. I have been running this off of my home computer at
http://ptk.sytes.net/zorum, but want to move it to a dedicated server, and
since the school has agreed to let me put it there, (providing it won't
interfere with ASP pages), I wanted to ask this.

So, the question is: Can you run PHP and ASP simultaneously on IIS? And will
one interfere with the other?

I need to know this before they will let me install it on their NT servers.

Thanks,

David Lanier, President
Alpha Pi Alpha Chapter
Phi Theta Kappa International
Guilford Technical Community College
Jamestown, NC


--- End Message ---
--- Begin Message ---

My experience has been that you should have no problem using both PHP and
ASP with IIS.

But that's just my personal experience. You can even use both together to an
extent, I presume.

I have used both PHP and Perl together (not in same exact code, that is. but
passing from one perl script to a php script, and vice versa.)

GOod luck with it,
Nicole
www.aeontrek.comn



"David Lanier" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> I am a college student majoring in computer programming, and have gotten
my
> college to agree to allow me to install the MySQL database and PHP4 engine
> on one of their servers providing it won't interfere with the ASP pages
they
> are using already.
>
> I serve as the president of a campus fraternity, and we run a news portal
> and discussion forums that is written in PHP, and utilizes the MySQL
> database. I have been running this off of my home computer at
> http://ptk.sytes.net/zorum, but want to move it to a dedicated server, and
> since the school has agreed to let me put it there, (providing it won't
> interfere with ASP pages), I wanted to ask this.
>
> So, the question is: Can you run PHP and ASP simultaneously on IIS? And
will
> one interfere with the other?
>
> I need to know this before they will let me install it on their NT
servers.
>
> Thanks,
>
> David Lanier, President
> Alpha Pi Alpha Chapter
> Phi Theta Kappa International
> Guilford Technical Community College
> Jamestown, NC
>



--- End Message ---
--- Begin Message ---

Dear David,

I run PHP, ASP, Perl and MySQL all on the same NT4 IIS4 server. This server
also connects to MSSQL, Oracle and Access databases.  I have no problems and
if you need me to tell someone that, just give them my address.

John Asendorf

-
John Asendorf - [EMAIL PROTECTED]
Web Applications Developer
http://www.lcounty.com - NEW FEATURES ADDED DAILY!
Licking County, Ohio, USA
740-349-3631
Nullum magnum ingenium sine mixtura dementiae fuit


> -Original Message-
> From: David Lanier [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 22, 2002 9:58 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] PHP4, ASP, and IIS
> 
> 
> Hi,
> 
> I am a college student majoring in computer programming, and 
> have gotten my
> college to agree to allow me to install the MySQL database 
> and PHP4 engine
> on one of their servers providing it won't interfere with the 
> ASP pages they
> are using already.
> 
> I serve as the president of a campus fraternity, and we run a 
> news portal
> and discussion forums that is written in PHP, and utilizes the MySQL
> database. I have been running this off of my home computer at
> http://ptk.sytes.net/zorum, but want to move it to a 
> dedicated server, and
> since the school has agreed to let me put it there, 
> (providing it won't
> interfere with ASP pages), I wanted to ask this.
> 
> So, the question is: Can you run PHP and ASP simultaneously 
> on IIS? And will
> one interfere with the other?
> 
> I need to know this before they will let me install it on 
> 

php-windows Digest 24 Mar 2002 18:29:10 -0000 Issue 1060

2002-03-24 Thread php-windows-digest-help


php-windows Digest 24 Mar 2002 18:29:10 - Issue 1060

Topics (messages 12739 through 12740):

Perl with apache on win 2000 server
12739 by: Martin

Re: IE is opening the files php not runing them
12740 by: walter

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

How do I install this and what do i put in
the http.conf...?
Anyone who knows this...
Where can i download a workable Perl ?

--
Martin Eriksson
webdesigner & Utvecklare

[EMAIL PROTECTED]
http://www.svensk-design.com



--- End Message ---
--- Begin Message ---

Hi

IE and netscape are opening the files not executing them, what do I do
wrong.

walter



--- End Message ---


php-windows Digest 25 Mar 2002 10:15:28 -0000 Issue 1061

2002-03-25 Thread php-windows-digest-help


php-windows Digest 25 Mar 2002 10:15:28 - Issue 1061

Topics (messages 12741 through 12747):

explode
12741 by: KONUS
12742 by: Ross Fleming
12743 by: Gaylen Fraley
12745 by: KONUS

Is there anyway to save a file into Mysql database
12744 by: Jack

How to Pass the Username which from Windows Login
12746 by: Jack

Re: random elements of an array
12747 by: Svensson, B.A.T. (HKG)

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

What is explode...??

please explaine it in simple english with an example.
Because iam a new to PHP.

Many thanks, --ZEUS--

--- End Message ---
--- Begin Message ---

No probs.

explode is a way of splitting up a string using any character you want as
the divider.  For example...

Say you wanted to split a string into individual words. $string_var = "The
cat sat on the mat";

$words_var = explode(" ", $string_var);

Explode splits $string_var by the space character and returns an array of
all the words that are in $string_var.
$words_var is now an array of strings with a word in each element.

Ross

-Original Message-
From: KONUS [mailto:[EMAIL PROTECTED]]
Sent: 15 March 2002 19:20
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] explode


What is explode...??

please explaine it in simple english with an example.
Because iam a new to PHP.

Many thanks, --ZEUS--


--- End Message ---
--- Begin Message ---

http://www.php.net/manual/en/function.explode.php

--
Gaylen
PHP KISGB v4.0.2 Guest Book http://www.gaylenandmargie.com/phpwebsite/

"Konus" <[EMAIL PROTECTED]> wrote in message
005101c1cc56$8c4e9ae0$7ffd92ca@kukut">news:005101c1cc56$8c4e9ae0$7ffd92ca@kukut...
What is explode...??

please explaine it in simple english with an example.
Because iam a new to PHP.

Many thanks, --ZEUS--




--- End Message ---
--- Begin Message ---

thanks for all the reply now i get it..

Many many thanks...

^^
- Original Message -
From: "Ross Fleming" <[EMAIL PROTECTED]>
To: "KONUS" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, March 25, 2002 10:09 AM
Subject: RE: [PHP-WIN] explode


> No probs.
>
> explode is a way of splitting up a string using any character you want as
> the divider.  For example...
>
> Say you wanted to split a string into individual words. $string_var = "The
> cat sat on the mat";
>
> $words_var = explode(" ", $string_var);
>
> Explode splits $string_var by the space character and returns an array of
> all the words that are in $string_var.
> $words_var is now an array of strings with a word in each element.
>
> Ross
>
> -Original Message-
> From: KONUS [mailto:[EMAIL PROTECTED]]
> Sent: 15 March 2002 19:20
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] explode
>
>
> What is explode...??
>
> please explaine it in simple english with an example.
> Because iam a new to PHP.
>
> Many thanks, --ZEUS--
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php


--- End Message ---
--- Begin Message ---

Dear all
Can someone pls tell me is php will be able to grep text from MS Word and
then save that word file into MYSQL database? Which means is MYSQL will be
able to store files into it's table?

Thx a lot
jack
[EMAIL PROTECTED]



--- End Message ---
--- Begin Message ---

Dear all
I want to prevent user to make another login before they can browse the
Intranet, so is there anyway that php can grep the username from the windows
Login or Domain Login?
Which means if a user can login to the Windows NT, then he/she will have the
right to browse the Intranet!

Thx a lot
Jack
[EMAIL PROTECTED]



--- End Message ---
--- Begin Message ---

Of course the algorithm works...

>-Original Message-
>From: Nicole Amashta 
>Sent: Friday, March 22, 2002 4:36 PM
>To: [EMAIL PROTECTED]
>Subject: Re: [PHP-WIN] random elements of an array
>

[...]

>I have tested this. It works, Even after you refresh the page. Try it!
>
>Nicole
>www.aeontrek.com
>
>
>
>"B.A.T. Svensson" wrote in message
>> You can completely randomize an array with n elements in n 
>operations, by
>> using the following brute force approach:
>>
>> void ScrambleIntList(int *pnElements, int nLen)
>> {
>>   for (nLoop = 0, nLoop>
>> //  Pic a random element
>> int nRandomPic = nLen * rand();
>>
>> //Swap current element with the random pic
>> int nTemp = pnElement[nLoop];
>> pnElement[nLoop] = Element[nRandomPic];
>> pnElement[nRandomPic] = nTemp;
>>
>>   }
>> }
>>
>> /Anders
>>
>> >-Original Message-
>> >From: Afan Pasalic [mailto:[EMAIL PROTECTED]]
>> >Sent: Thursday, March 21, 2002 9:17 PM
>> >To: [EMAIL PROTECTED]
>> >Subject: [PHP-WIN] random elements of an array
>> >
>> >
>> >Hi,
>> >
>> >My problem is: if I h

php-windows Digest 25 Mar 2002 23:16:05 -0000 Issue 1062

2002-03-25 Thread php-windows-digest-help


php-windows Digest 25 Mar 2002 23:16:05 - Issue 1062

Topics (messages 12748 through 12754):

Re: How to Pass the Username which from Windows Login
12748 by: brother
12753 by: Vail, Warren

Re: Is there anyway to save a file into Mysql database
12749 by: Mike Flynn

IIS + Oracle 7.* connection
12750 by: Daniel Ryhle
12752 by: Asendorf, John

Re: Strange error with FastTemplate and IIS 5
12751 by: Elias Santiago

Re: [PHP] Is there anyway to save a file into Mysql database
12754 by: Miguel Cruz

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

The easiest way of doing this (asuming you are using IIS) is to set the
securitysettings for the website and just allow those domainaccounts you
want.
Properties > Directory Security
Uncheck Anonymous access.

Set userrights at the directory you are using as wwwroot.
c:\inetpub\wwwroot\my_domain\
Properties > Security > Add...

/brother


> -Original Message-
> From: Jack [mailto:[EMAIL PROTECTED]] 
> Sent: den 25 mars 2002 07:26
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: [PHP-WIN] How to Pass the Username which from Windows Login
> 
> 
> Dear all
> I want to prevent user to make another login before they can 
> browse the
> Intranet, so is there anyway that php can grep the username 
> from the windows
> Login or Domain Login?
> Which means if a user can login to the Windows NT, then 
> he/she will have the
> right to browse the Intranet!
> 
> Thx a lot
> Jack
> [EMAIL PROTECTED]
> 
> 
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

--- End Message ---
--- Begin Message ---

Are you referring to the userid on the machine where your web application
runs (your server) or the userid of the user who connects to your website
with his browser?  I suspect you mean the latter and would be very
interested in how this could be done as well.

Warren Vail
Tools, Metrics & Quality Processes
(415) 667-7814
Pager (877) 774-9891
215 Fremont 02-658


-Original Message-
From: Jack [mailto:[EMAIL PROTECTED]]
Sent: Sunday, March 24, 2002 10:26 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [PHP-WIN] How to Pass the Username which from Windows Login


Dear all
I want to prevent user to make another login before they can browse the
Intranet, so is there anyway that php can grep the username from the windows
Login or Domain Login?
Which means if a user can login to the Windows NT, then he/she will have the
right to browse the Intranet!

Thx a lot
Jack
[EMAIL PROTECTED]



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---
--- Begin Message ---

Yes, you can store "files" in a MySQL database.  You store them in some 
type of BLOB field, and just insert the binary data right into it.  One 
thing to watch out for is slashes.  I forget if you need to addslashes 
before putting the data into the database, but I think you need to 
stripslashes after retrieving it, so it's not corrupt.  I could tell you 
for sure but I don't have any of my code in front of me right now :)

So basically you can create a table for files like this:
tblFiles:
  int intFileID (for primary key purposes)
  tinytext strFileFilename (you'll probably want this)
  tinytext strFileType (if you're storing different kinds of file formats, 
you'll need this or some other way to identify the file {MIME} type)
  int intFileSize (optional)
  tinytext strFileDescription (optional)
  mediumblob blbFileData

Then you can store the file binary data into the blbFileData field and 
retrieve it later.  You can do this for any file formats.. including 
images.  There are many tutorials showing how to do this with images on the 
web.

-Mike

At 02:14 PM 3/25/2002 +0800, you wrote:
>Dear all
>Can someone pls tell me is php will be able to grep text from MS Word and
>then save that word file into MYSQL database? Which means is MYSQL will be
>able to store files into it's table?
>
>Thx a lot
>jack
>[EMAIL PROTECTED]
>
>
>
>--
>PHP Windows Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php


Mike Flynn - Burlington, VT
http://www.mikeflynn.net/ - [EMAIL PROTECTED]
home=>work=>home=>store=>home


--- End Message ---
--- Begin Message ---

Hi!
I never connected to a oraxcle db before and this is my problem:

I need to connect to an oracle db through the network.
I have SID, user id, pass and ip adress.

My IIS system is placed on a win2k machine with php4 installed.

Can anybody post the complete code over a login/query procedure
against oracle(NOT 8). I would be extra happy if it contained some comments.

As of now i only get the er

php-windows Digest 26 Mar 2002 14:09:58 -0000 Issue 1063

2002-03-26 Thread php-windows-digest-help


php-windows Digest 26 Mar 2002 14:09:58 - Issue 1063

Topics (messages 12755 through 12758):

Re: IIS + Oracle 7.* connection
12755 by: Philippe Saladin

Re: random elements of an array
12756 by: Nicola Delbono
12757 by: Svensson, B.A.T. (HKG)

connecting to a database using ODBC
12758 by: Someone Somewhere

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

- First of all, you would use php_oci8.dll, instead of php_oracle.dll. It is
the newest driver to access Oracle database (both oracle 8 AND ORACLE 7).
- You also need the "oracle client" onto the PC where your website is
installed. Ask your dba if you don't know how to install it (nb : it is
located in the cédérom, when you launch the "oracle installer", select
something like "oracle client", or "oci client", I don't remember
exactly...). Actually, this is not installed. This is why you get the
ORA-03121 error.
- try this simple tutorial http://www.thickbook.com/extra/php_oracle.phtml

Hope this helps !!
Regards,
Philippe

"Daniel Ryhle" <[EMAIL PROTECTED]> a écrit dans le message news:
[EMAIL PROTECTED]
> Hi!
> I never connected to a oraxcle db before and this is my problem:
>
> I need to connect to an oracle db through the network.
> I have SID, user id, pass and ip adress.
>
> My IIS system is placed on a win2k machine with php4 installed.
>
> Can anybody post the complete code over a login/query procedure
> against oracle(NOT 8). I would be extra happy if it contained some
comments.
>
> As of now i only get the error "PHP Warning: Oracle: Connection Failed:
> ORA-03121: no interface driver connected - function not performed in
> \*\*.php on line 4 "
>
> Greatful for all help
>
>



--- End Message ---
--- Begin Message ---

why not shuffle()  ?

*** REPLY SEPARATOR  ***

On 25/03/2002 at 11.13 Svensson, B.A.T. (HKG) wrote:

>Of course the algorithm works...
>
>>-Original Message-
>>From: Nicole Amashta 
>>Sent: Friday, March 22, 2002 4:36 PM
>>To: [EMAIL PROTECTED]
>>Subject: Re: [PHP-WIN] random elements of an array
>>
>
>[...]
>
>>I have tested this. It works, Even after you refresh the page. Try it!
>>
>>Nicole
>>www.aeontrek.com
>>
>>
>>
>>"B.A.T. Svensson" wrote in message
>>> You can completely randomize an array with n elements in n 
>>operations, by
>>> using the following brute force approach:
>>>
>>> void ScrambleIntList(int *pnElements, int nLen)
>>> {
>>>   for (nLoop = 0, nLoop>>
>>> //  Pic a random element
>>> int nRandomPic = nLen * rand();
>>>
>>> //Swap current element with the random pic
>>> int nTemp = pnElement[nLoop];
>>> pnElement[nLoop] = Element[nRandomPic];
>>> pnElement[nRandomPic] = nTemp;
>>>
>>>   }
>>> }
>>>
>>> /Anders
>>>
>>> >-Original Message-
>>> >From: Afan Pasalic [mailto:[EMAIL PROTECTED]]
>>> >Sent: Thursday, March 21, 2002 9:17 PM
>>> >To: [EMAIL PROTECTED]
>>> >Subject: [PHP-WIN] random elements of an array
>>> >
>>> >
>>> >Hi,
>>> >
>>> >My problem is: if I have an array (e.g. 1, 2, 3, 4, 5, 6, 7,
>>> >8, 9), how I can "shake" the array and get randomized order of
>>> >the same array (e.g. 5, 8, 1, 9, 3, 4, 7, 2, 6)?
>>> >
>>> >Thanks for any help!
>>> >
>>> >
>>> >Afan
>>> >
>>
>>
>>
>>-- 
>>PHP Windows Mailing List (http://www.php.net/)
>>To unsubscribe, visit: http://www.php.net/unsub.php
>>
>
>-- 
>PHP Windows Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php




dr. Nicola Delbono
[EMAIL PROTECTED]
Key5 di Delbono Nicola
V. G.M. Rossi, 12
25038 Rovato (Bs)
Tel 39 030 7242266
Fax 39 030 7242266

www.smscitta.com | www.musicalbox.it
www.filosofo.it | www.bollicine.com


--- End Message ---
--- Begin Message ---

Can you please explain (elaborate) what you mean?

>-Original Message-
>From: Nicola Delbono
>Sent: Tuesday, March 26, 2002 11:12 AM
>To: Svensson, B.A.T. (HKG); [EMAIL PROTECTED]
>Subject: RE: [PHP-WIN] random elements of an array
>
>
>why not shuffle()  ?
>
>*** REPLY SEPARATOR  ***
>
>On 25/03/2002 at 11.13 Svensson, B.A.T. (HKG) wrote:
>
>>Of course the algorithm works...
>>
>>>-Original Message-
>>>From: Nicole Amashta 
>>>Sent: Friday, March 22, 2002 4:36 PM
>>>To: [EMAIL PROTECTED]
>>>Subject: Re: [PHP-WIN] random elements of an array
>>>
>>
>>[...]
>>
>>>I have tested this. It works, Even after you refresh the 
>page. Try it!
>>>
>>>Nicole
>>>www.aeontrek.com
>>>
>>>
>>>
>>>"B.A.T. Svensson" wrote in message
 You can completely randomize an array with n elements in n 
>>>operations, by
 using the following brute force approach:

 void ScrambleIntList(int *pnElements, int nLen)
 {
   for (nLoop = 0, nLoop>>>
 //  Pic a random element
 int nRandom

php-windows Digest 27 Mar 2002 02:40:22 -0000 Issue 1064

2002-03-26 Thread php-windows-digest-help


php-windows Digest 27 Mar 2002 02:40:22 - Issue 1064

Topics (messages 12759 through 12767):

Re: connecting to a database using ODBC
12759 by: Piotr Pluciennik
12760 by: Svensson, B.A.T. (HKG)

Lecture de cookie ASP
12761 by: Kriegers Horst

Re: Read ASP cookie
12762 by: Svensson, B.A.T. (HKG)
12763 by: George Pitcher

how to get consistent UTC from gmmktime (w/o dst-offset) 
12764 by: Patrick Sibenaler

Cookies on Win2000 and IIS 5.0
12765 by: Arijit Chaudhuri

Re: [PHP-DB] how to get consistent UTC from gmmktime (w/o dst-offset) 
12766 by: DL Neil

PHP as an Apache module
12767 by: Ali

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

Hi,

**first step: 
create DSN in Windows (Control Panel, ODBC) and bind
it with your Access database

**then in php code:

 $dbhandle = odbc_connect('YourDSN', '','');

 if($dbhandle == 0)
 {
die('Error connecting DB'); // or error
handler
 }

*here do your php stuff
you can use for example below commands to get your
data from DB
** $qry = your sql
** $cursor = odbc_exec($dbhandle, $qry)
** odbc_fetch_row($cursor)
** odbc_result($cursor,'field name')

*then close connection*

 odbc_close($dbhandle);

this is the idea...

HTH

Piotr

--- Someone Somewhere <[EMAIL PROTECTED]>
wrote:
> Can anyone offer some help
> 
> I need to connect to an acces database, Using php on
> Windows with Apache.
> If anyone has some sample code I would greatly
> appreciate it I am lost about 
> the wholeODBC thing.
> 
> Cirkit
> 
> 
> 
>
_
> Chat with friends online, try MSN Messenger:
> http://messenger.msn.com
> 
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


__
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/

--- End Message ---
--- Begin Message ---

You need more than "sample code" to access an AccessDB via ODBC. For
example: you need to know weather a proper ODBC data source has been set up,
among other things...


>-Original Message-
>From: Someone Somewhere [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, March 26, 2002 3:10 PM
>To: [EMAIL PROTECTED]
>Subject: [PHP-WIN] connecting to a database using ODBC 
>
>
>Can anyone offer some help
>
>I need to connect to an acces database, Using php on Windows with Apache.
>If anyone has some sample code I would greatly appreciate it I am lost
about 
>the wholeODBC thing.
>
>Cirkit
>
>
>
>_
>Chat with friends online, try MSN Messenger: http://messenger.msn.com
>
>
>-- 
>PHP Windows Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>

--- End Message ---
--- Begin Message ---

Bonjour la liste,

est-il possible de lire un cookie créé par ASP ?
response.cookies("bidule")("nom") = "Tartempion"
response.cookies("bidule")("prenom") = "Jules"

Horst


--- End Message ---
--- Begin Message ---

I've taken the freedom to CC this message to php-win...

>-Original Message-
>From: Kriegers Horst [mailto:[EMAIL PROTECTED]] 
>Sent: Tuesday, March 26, 2002 4:15 PM
>To: Svensson, B.A.T. (HKG)
>Subject: RE: [PHP-WIN] Read ASP cookie
>
>
>Sorry.
>
>Translated question:
>
>It is possible with PHP to read a cookie wich was created with ASP ?
>response.cookies("bidule")("nom") = "Tartempion"
>response.cookies("bidule")("prenom") = "Jules"
>
>
>Horst
>
>
>> -Message d'origine-
>> De:  Svensson, B.A.T. (HKG) [SMTP:[EMAIL PROTECTED]]
>> Date:mardi, 26. mars 2002 16:07
>> À:   'Kriegers Horst'
>> Objet:   RE: [PHP-WIN] Lecture de cookie ASP
>> 
>> Dear Horts,
>> 
>> English is usually "franca lingua" in international e-mail lists.
>> 
>> Sinc,
>> Anders
>> 
>> >-Original Message-
>> >From: Kriegers Horst [mailto:[EMAIL PROTECTED]]
>> >Sent: Tuesday, March 26, 2002 4:05 PM
>> >To: 'PHP coup2main'; 'PHP-Windows'
>> >Subject: [PHP-WIN] Lecture de cookie ASP
>> >
>> >
>> >Bonjour la liste,
>> >
>> >est-il possible de lire un cookie créé par ASP ?
>> >response.cookies("bidule")("nom") = "Tartempion"
>> >response.cookies("bidule")("prenom") = "Jules"
>> >
>> >Horst
>> >
>> >
>> >-- 
>> >PHP Windows Mailing List (http://www.php.net/)
>> >To unsubscribe, visit: http://www.php.net/unsub.php
>> >
>

--- End Message ---
--- Begin Message ---

Yes. Cookies don't belong to the application that created them, but to the
server/domain name. I use Lasso and it can create cookies and I have PHP
read them, do some cool stuff and t

php-windows Digest 27 Mar 2002 15:02:10 -0000 Issue 1065

2002-03-27 Thread php-windows-digest-help


php-windows Digest 27 Mar 2002 15:02:10 - Issue 1065

Topics (messages 12768 through 12780):

Re: PHP as an Apache module
12768 by: Helphand
12769 by: Tommy Claasens / QDC KZN
12770 by: Ali Nayeri
12772 by: Tommy Claasens / QDC KZN

buggi decision script
12771 by: Fabian Hoffmann

decision between explorer types
12773 by: Fabian Hoffmann
12778 by: Nicole Amashta
12779 by: Dan Zarrella
12780 by: R'twick Niceorgaw

Mail() problem solved!
12774 by: Alberto. Sartori

Failed opening  for inclusion
12775 by: Sonia
12777 by: Sonia

R: [PHP-WIN] Failed opening  for inclusion
12776 by: Alberto. Sartori

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

At 06:32 PM 3/26/02 -0800, Ali wrote:
>hi all,
>
>i'm new to PHP and PHP installation.  I've tried it before and used the cgi
>since I couldn't figure out the module installation.  but i really want to
>get it working.  the problem is whatever I do, I get an error message from
>Apache.  I installed the binary version of the latest release of PHP and
>then added the parameters to httpd.conf:
>
>
>#LoadModule usertrack_module modules/mod_usertrack.so
>#LoadModule unique_id_module modules/mod_unique_id.so
>LoadModule php4_module C:/Program Files/Apache Group/PHP/sapi/php4apache.dll

   Try using the 8.3 file names instead of long ones...

LoadModule php4_module c:/progro~1/apache~1/php/sapi/php4apache.dll


>#
>#  Reconstruction of the complete module list from all available modules
>#  (static and shared ones) to achieve correct module execution order.
>#
># The modules listed below, without a corresponding LoadModule directive,
># are static bound into the standard Apache binary distribution for Windows.
>#
># Note: The order in which modules are loaded is important.  Don't change
># the order below without expert advice.
>#
># [WHENEVER YOU CHANGE THE LOADMODULE SECTION ABOVE, UPDATE THIS TOO!]
>ClearModuleList
>AddModule mod_php4.c

I did not have to add the above line to mine...


Scott


http://www.geocities.com/Helphand1/

Helphand's Not So FAQ's for the Palm
 http://www.geocities.com/helphand1/palmprobs.htm


--- End Message ---
--- Begin Message ---

Dont add the LoadModule in the top of the file, Just add it at the end of
the file. It will work fine there
i.e.
[httpd.conf]
.
.
.
.
.

LoadModule php4_module C:/Program Files/Apache Group/PHP/sapi/php4apache.dll
AddType application/x-httpd-php .php

-Original Message-
From: Ali [mailto:[EMAIL PROTECTED]]
Sent: Wed, 27 Mar 2002 04:32
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] PHP as an Apache module


hi all,

i'm new to PHP and PHP installation.  I've tried it before and used the cgi
since I couldn't figure out the module installation.  but i really want to
get it working.  the problem is whatever I do, I get an error message from
Apache.  I installed the binary version of the latest release of PHP and
then added the parameters to httpd.conf:


#LoadModule usertrack_module modules/mod_usertrack.so
#LoadModule unique_id_module modules/mod_unique_id.so
LoadModule php4_module C:/Program Files/Apache Group/PHP/sapi/php4apache.dll

#
#  Reconstruction of the complete module list from all available modules
#  (static and shared ones) to achieve correct module execution order.
#
# The modules listed below, without a corresponding LoadModule directive,
# are static bound into the standard Apache binary distribution for Windows.
#
# Note: The order in which modules are loaded is important.  Don't change
# the order below without expert advice.
#
# [WHENEVER YOU CHANGE THE LOADMODULE SECTION ABOVE, UPDATE THIS TOO!]
ClearModuleList
AddModule mod_php4.c
AddType application/x-httpd-php .php
#AddModule mod_vhost_alias.c
AddModule mod_env.c
AddModule mod_log_config.c


I also tried it this way:


#LoadModule usertrack_module modules/mod_usertrack.so
#LoadModule unique_id_module modules/mod_unique_id.so

#
#  Reconstruction of the complete module list from all available modules
#  (static and shared ones) to achieve correct module execution order.
#
# The modules listed below, without a corresponding LoadModule directive,
# are static bound into the standard Apache binary distribution for Windows.
#
# Note: The order in which modules are loaded is important.  Don't change
# the order below without expert advice.
#
# [WHENEVER YOU CHANGE THE LOADMODULE SECTION ABOVE, UPDATE THIS TOO!]
ClearModuleList
LoadModule php4_module C:/Program Files/Apache Group/PHP/sapi/php4apache.dll
AddModule mod_php4.c
AddType application/x-httpd-php .php
#AddModule mod_vhost_alias.c
AddModule mod_env.c
AddModule mod_log_config.c


but in the first case i got:

LoadModule takes two 

php-windows Digest 28 Mar 2002 07:15:23 -0000 Issue 1066

2002-03-27 Thread php-windows-digest-help


php-windows Digest 28 Mar 2002 07:15:23 - Issue 1066

Topics (messages 12781 through 12797):

Re: decision between explorer types
12781 by: Nicole Amashta
12782 by: Dan Zarrella

PHP / WinNT 4.0 / Apache - what is most stabile?
12783 by: Alan McKay
12784 by: Rasmus Lerdorf
12786 by: Rasmus Lerdorf
12788 by: Alan McKay
12789 by: Shane Caraveo
12790 by: Alan McKay
12791 by: Shane Caraveo
12792 by: Alan McKay
12793 by: Shane Caraveo

Session errors
12785 by: Martin.Andrew
12787 by: R'twick Niceorgaw
12797 by: Piotr Pluciennik

Re: connecting to a database using ODBC
12794 by: Christoph Grottolo

Anyone use CodeCharge for PHP and have Resources?
12795 by: scott.eesco.com

dynamic site on windows server
12796 by: olinux

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

Hi, Dan,

Thanks, and I will use them also!

nicole =)

"Dan Zarrella" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> the php string functions strstr and stristr are faster and just as usefull
> as the regex stuff in this case, strstr(string haystack, string needle) is
> case sensitive, and stristr is insensitive.-dan
>
> _
> Join the world’s largest e-mail service with MSN Hotmail.
> http://www.hotmail.com
>



--- End Message ---
--- Begin Message ---

str_replace might also be of intrest, in replacing regex with faster string 
functions.

_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


--- End Message ---
--- Begin Message ---

Folks,

This is kind of frustrating.

I'm reading the install.txt and near the top it explains about the 2 versions,
those being PHP.EXE and the SAPI modules.  It then says that the SAPI
version is not considered production grade, and is still unstable
"especially on platforms older than W2K".

Then later on in the same document it says :

"Now that version 4.1 introduces a safer sapi module, we recommend
that you configure PHP as a module in Apache."

OK, so which is it?  I am to be using this in a commercial product, and
absolutely have to have the most stabile version.  I'd prefer to run the
SAPIs because they are apparantly faster, but the document contradicts
itself on which is most stabile.

Can someone help clarify this?  (And if someone responsible for that
document is listening, could you please update it accordingly?)

thanks,
-Alan



--- End Message ---
--- Begin Message ---

Why don't you test the different versions and let us know which is more
stable.  On Windows stability is a very subjective thing.

-Rasmus

On Wed, 27 Mar 2002, Alan McKay wrote:

> Folks,
>
> This is kind of frustrating.
>
> I'm reading the install.txt and near the top it explains about the 2 versions,
> those being PHP.EXE and the SAPI modules.  It then says that the SAPI
> version is not considered production grade, and is still unstable
> "especially on platforms older than W2K".
>
> Then later on in the same document it says :
>
> "Now that version 4.1 introduces a safer sapi module, we recommend
> that you configure PHP as a module in Apache."
>
> OK, so which is it?  I am to be using this in a commercial product, and
> absolutely have to have the most stabile version.  I'd prefer to run the
> SAPIs because they are apparantly faster, but the document contradicts
> itself on which is most stabile.
>
> Can someone help clarify this?  (And if someone responsible for that
> document is listening, could you please update it accordingly?)
>
> thanks,
> -Alan
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


--- End Message ---
--- Begin Message ---

Well, the standalone CGI version is the most stable and will likely always
be the most stable as it has the least integration with the destabilizing
forces around it.  It is also of course the slowest.

-Rasmus

On Wed, 27 Mar 2002, Alan McKay wrote:

> Sure, I guess I could do that, but I was hoping someone may
> have already done this.  If not, then I guess I don't have
> much of a choice in the matter ;-)
>
> thanks,
> -Alan
>
> > Why don't you test the different versions and let us know
> > which is more
> > stable.  On Windows stability is a very subjective thing.
>


--- End Message ---
--- Begin Message ---

Sure, I guess I could do that, but I was hoping someone may
have already done this.  If not, then I guess I don't have
much of a choice in the matter ;-)

thanks,
-Alan

> Why don't you test the different versions and let us know 
> which

php-windows Digest 28 Mar 2002 20:07:26 -0000 Issue 1067

2002-03-28 Thread php-windows-digest-help


php-windows Digest 28 Mar 2002 20:07:26 - Issue 1067

Topics (messages 12798 through 12806):

R: [PHP-WIN] Session errors
12798 by: Alberto. Sartori

Re: Session errors
12799 by: Martin.Andrew

mail() with attachments
12800 by: George Pitcher

R: [PHP-WIN] mail() with attachments
12801 by: Darvin Andrioli

ASP vs PHP
12802 by: Ciro Martins

Re: [PHP] ASP vs PHP
12803 by: J. Scott Johnson

Please, forgive me, and ignore this stupid test mail
12804 by: Svensson, B.A.T. (HKG)

PDF color issue
12805 by: Ethan Nelson

Problems with PHP 4.1.2 and COM automation
12806 by: Alavi, Ahmad A

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

Check if you have the correct permissions on that folder (write)

-Messaggio originale-
Da: Piotr Pluciennik [mailto:[EMAIL PROTECTED]]
Inviato: giovedì 28 marzo 2002 8.15
A: [EMAIL PROTECTED]
Oggetto: Re: [PHP-WIN] Session errors


Hi,

PHP cannot save session information to your disk. As
described in error message you probably haven't
defined correct path to session directory (it's
different on linux and windows)... or not set rights
to it. So check php.ini "session.save_path" and
properties of that directory. 
 
For example:
session.save_path = c:\sessions

HTH 
Piotr

--- "Martin.Andrew" <[EMAIL PROTECTED]> wrote:
> Quick Question...
> 
> I am registering a session with the session_start(),
> session_register()
> functions,
> when I do it on our test server (UNIX, Apache) I
> have no problems, locally
> (Win2K, Apache) I get the follwoing error
> 
> Warning:
> open(/tmp\sess_0ac1a7836d05713e245d299b54528e64,
> O_RDWR) failed: m
> (2) in d:\projects\shop\cart.inc on line 5
> 
> I have checked the php.ini thinking it's a
> configuration problem but both
> are identical, concerning session details anyway!
> Could it be an apache configuration issue?
> Anyone got any ides?
> Thanks.
> 


__
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--- End Message ---
--- Begin Message ---

That does the trick, I must have changed this (long) before as it was
looking for a directory that no longer exists!
Thanks.

-Original Message-
From: Piotr Pluciennik [mailto:[EMAIL PROTECTED]]
Sent: 28 March 2002 08:15
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] Session errors


Hi,

PHP cannot save session information to your disk. As
described in error message you probably haven't
defined correct path to session directory (it's
different on linux and windows)... or not set rights
to it. So check php.ini "session.save_path" and
properties of that directory. 
 
For example:
session.save_path = c:\sessions

HTH 
Piotr

--- "Martin.Andrew" <[EMAIL PROTECTED]> wrote:
> Quick Question...
> 
> I am registering a session with the session_start(),
> session_register()
> functions,
> when I do it on our test server (UNIX, Apache) I
> have no problems, locally
> (Win2K, Apache) I get the follwoing error
> 
> Warning:
> open(/tmp\sess_0ac1a7836d05713e245d299b54528e64,
> O_RDWR) failed: m
> (2) in d:\projects\shop\cart.inc on line 5
> 
> I have checked the php.ini thinking it's a
> configuration problem but both
> are identical, concerning session details anyway!
> Could it be an apache configuration issue?
> Anyone got any ides?
> Thanks.
> 


__
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---
--- Begin Message ---

Hi guys,

I'm doing a query/export/email routine and I can't find anything on
attachments. The manual says that attachments can be handled but doesn't say
how or give any examples.

I'm sure that this must be in widespread use, so can anyone give me a
pointer or two?

George


--- End Message ---
--- Begin Message ---

See this colomns

http://www.zend.com/zend/spotlight/sendmimeemailpart1.php

Darvin

> -Messaggio originale-
> Da: George Pitcher [mailto:[EMAIL PROTECTED]]
> Inviato: giovedì 28 marzo 2002 12.26
> A: [EMAIL PROTECTED]
> Oggetto: [PHP-WIN] mail() with attachments
>
>
> Hi guys,
>
> I'm doing a query/export/email routine and I can't find anything on
> attachments. The manual says that attachments can be handled but
> doesn't say
> how or give any examples.
>
> I'm sure that this must be in widespread use, so can anyone give me a
> pointer or two?
>
> George
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)

php-windows Digest 29 Mar 2002 09:21:48 -0000 Issue 1068

2002-03-29 Thread php-windows-digest-help


php-windows Digest 29 Mar 2002 09:21:48 - Issue 1068

Topics (messages 12807 through 12814):

NT User info using COM...ASP getObject() alternative
12807 by: Shrock, Court
12809 by: J Wynia

Re: USING $_SESSION instead of session_register()
12808 by: Bossanova
12813 by: Pac mon

IIS PHP 2000
12810 by: RCAuction

ODBC Connection Problems
12811 by: Robin Bolton

ZZip an .TAR
12812 by: Andy Muth

server problem?
12814 by: Mihail Bota

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

Was searching through the groups and thought I would share this code:

FullName . '';

//Returns Account Name
echo $ADSIObject->Name . '';

//Returns Account Description
echo $ADSIObject->Description . '';
?>

--- End Message ---
--- Begin Message ---

You can grab some of those variables automatically.

$network = new COM("WScript.Network");
$computername = $network->ComputerName;
$username = $network->UserName;


"Court Shrock" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Was searching through the groups and thought I would share this code:
>
>  // set this to your NT domain
> $DomainName = "domain";
>
> // set this to the username you want info on
> $UserAccount = "username";
>
> // Binds to the user account
> $ADSIObject = new COM("WinNT://" . $DomainName . "/" . $UserAccount);
>
> //Returns full name
> echo $ADSIObject->FullName . '';
>
> //Returns Account Name
> echo $ADSIObject->Name . '';
>
> //Returns Account Description
> echo $ADSIObject->Description . '';
> ?>



--- End Message ---
--- Begin Message ---

Pardon my ignorance, I've been searching for answers for this new $_SESSION to work to 
no avail. If someone can help me out by giving examples how I can pass the session_id 
to the next page and access the same $_SESSION["var"] on that page, it would be very 
helpful. 

My question is, once I set this on the 1st page: 
 
 
"; 
echo session_id() . ""; 

echo ""; 
?> 
">reg_2.php 
 


How do I set up link to the next page, and what should I put on the next page? Will 
this be correct? 

 
 
"; ?> 
 


But I got this error message: 

Warning: Undefined index: foo in c:\phps\reg_2.php on line 6 

I'm new to PHP so this is also a major factor of the failure. Again, thanks for your 
help. 



Burhan 


greg wrote: 
--- 
Use of $_SESSION (or $HTTP_SESSION_VARS with PHP 4.0.6 or less) is recommended for 
security and code readablity. With $_SESSION or $HTTP_SESSION_VARS, there is no need 
to use session_register()/session_unregister()/session_is_registered() functions. 
Users can access session variable like a normal variable. 

http://www.php.net/manual/en/ref.session.php

--- End Message ---
--- Begin Message ---

Not quite... Here's something that ought to work better for you:

page1--


";
echo session_id() . "";

echo "";
?>
reg_2.php


page2


"; ?>







Original Message Follows
From: "Bossanova" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Subject: [PHP-WIN] HELP: USING $_SESSION instead of session_register()
Date: Thu, 28 Mar 2002 13:06:55 -0800

Pardon my ignorance, I've been searching for answers for this new $_SESSION 
to work to no avail. If someone can help me out by giving examples how I can 
pass the session_id to the next page and access the same $_SESSION["var"] on 
that page, it would be very helpful.

My question is, once I set this on the 1st page:


";
echo session_id() . "";

echo "";
?>
">reg_2.php



How do I set up link to the next page, and what should I put on the next 
page? Will this be correct?



"; ?>



But I got this error message:

Warning: Undefined index: foo in c:\phps\reg_2.php on line 6

I'm new to PHP so this is also a major factor of the failure. Again, thanks 
for your help.



Burhan


greg wrote:
---
Use of $_SESSION (or $HTTP_SESSION_VARS with PHP 4.0.6 or less) is 
recommended for security and code readablity. With $_SESSION or 
$HTTP_SESSION_VARS, there is no need to use 
session_register()/session_unregister()/session_is_registered() functions. 
Users can access session variable like a normal variable.

http://www.php.net/manual/en/ref.session.php


_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


--- End Message ---
--- Begin Message ---

my site runs fine but always asks for username and password
running php as cgi
its driving me nuts
Thanks



--- End Message ---
--- Begin Message ---

I have an Access database which I made a DSN connection to.

As long as the .mdb file is on the same machine as my Apache Server I can
connect to it just fine. However, i

php-windows Digest 30 Mar 2002 06:01:25 -0000 Issue 1069

2002-03-29 Thread php-windows-digest-help


php-windows Digest 30 Mar 2002 06:01:25 - Issue 1069

Topics (messages 12815 through 12840):

R: [PHP-WIN] server problem?
12815 by: Alberto. Sartori
12817 by: Mihail Bota

Re: server problem?
12816 by: Xytras

Re: ASP vs PHP
12818 by: Evan

mysql_connect()  doesn't like "localhost"  ?!
12819 by: Firas Al-Ragom

COM/excel/graphs
12820 by: boltthrower.iol.it

Files
12821 by: Todd WIlliamsen
12830 by: Todd WIlliamsen

R: [PHP-WIN] Files
12822 by: Darvin Andrioli

Re: How to Pass the Username which from Windows Login
12823 by: J Wynia
12825 by: Vail, Warren
12832 by: Bossanova

Re: USING $_SESSION instead of session_register()
12824 by: Bossanova
12828 by: Bossanova

Re: using $_SESSION
12826 by: Bossanova

Re: ODBC Connection Problems
12827 by: Svensson, B.A.T. (HKG)
12833 by: Steve

Parse error when using Javascript & php?
12829 by: Todd WIlliamsen
12831 by: Ross Fleming
12834 by: Mike Flynn
12835 by: Steve
12836 by: Todd WIlliamsen
12837 by: Mike Flynn

Nead Help With A Php Script
12838 by: Alain Kumschick François Robert

RE : [PHP-WIN] mysql_connect()  doesn't like "localhost"  ?!
12839 by: Firas Al-Ragom

Passing an array into a COM function
12840 by: Jeff Bendixsen

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

Your user got the correct permissions on the php's folder? It should be a premissions 
problem...however, what kind of code did you run?

-Messaggio originale-
Da: Mihail Bota [mailto:[EMAIL PROTECTED]]
Inviato: venerdì 29 marzo 2002 10.21
A: [EMAIL PROTECTED]
Oggetto: [PHP-WIN] server problem?


Dear all,

I was navigating through my database remotely and suddenly the php
stopped to answer. The error I continously get is:

CGI Error
The specified CGI application misbehaved by not returning a complete set
of HTTP headers. The headers it did return are:

Any other kinds of pages or files (html, gif, swf) are working, so the
server is working. All the php code is there, unchanged, all the
php-related folders, .dll's, exe, ini are in their places.

Had this thing ever occured to anybody? What should I do?
I am using Win 2K and IIS 5.0, PhP 4.1.1
Thanks for your help.

Mihai


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--- End Message ---
--- Begin Message ---

yes. I was navigating through the datbase and suddenly it retrieved that
kind of error.
code: queries from a mysql database. If mysql would not work, I'd get an
mysql error. instead, is behaving as if the php.exe does not find the
pages, even though the pages are there.
I have a couple of folders with php pages and none is working, either.

 On Fri, 29 Mar 2002, Alberto.
Sartori wrote:

> Your user got the correct permissions on the php's folder? It should be a 
>premissions problem...however, what kind of code did you run?
>
> -Messaggio originale-
> Da: Mihail Bota [mailto:[EMAIL PROTECTED]]
> Inviato: venerdì 29 marzo 2002 10.21
> A: [EMAIL PROTECTED]
> Oggetto: [PHP-WIN] server problem?
>
>
> Dear all,
>
> I was navigating through my database remotely and suddenly the php
> stopped to answer. The error I continously get is:
>
> CGI Error
> The specified CGI application misbehaved by not returning a complete set
> of HTTP headers. The headers it did return are:
>
> Any other kinds of pages or files (html, gif, swf) are working, so the
> server is working. All the php code is there, unchanged, all the
> php-related folders, .dll's, exe, ini are in their places.
>
> Had this thing ever occured to anybody? What should I do?
> I am using Win 2K and IIS 5.0, PhP 4.1.1
> Thanks for your help.
>
> Mihai
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


--- End Message ---
--- Begin Message ---

well. it looks like you are running PHP as a cgi
you should switch to PHP as a service, maybe it would work faster and better

and you won't get that CGi error

Xytras
- Original Message -
From: "Mihail Bota" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 29, 2002 2:20 AM
Subject: [PHP-WIN] server problem?


> Dear all,
>
> I was navigating through my database remotely and suddenly the php
> stopped to answer. The error I continously get is:
>
> CGI Error
> The specified CGI application misbehaved by not returning a complete set
> of HTTP headers. The headers it did return are:
>
> Any other kinds of pages or files 

php-windows Digest 30 Mar 2002 23:37:01 -0000 Issue 1070

2002-03-30 Thread php-windows-digest-help


php-windows Digest 30 Mar 2002 23:37:01 - Issue 1070

Topics (messages 12841 through 12851):

fwrite
12841 by: G-no / |{iller

Unable to load dynamic library
12842 by: barry
12843 by: Craig Morrison
12845 by: Marcel Besancon
12846 by: barry
12847 by: Craig Morrison

PHP/Apache/MySQL Stability
12844 by: Bob Sears

Stupid me
12848 by: Bob Sears

Re: Parse error when using Javascript & php?
12849 by: Steve

Website Login
12850 by: RCAuction

generating imagemaps?
12851 by: Mirko Ehlert

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

How would I write to a regular .txt file? Im on Windows Xp with IIS
installed along with php. I wana make it so people type info into a form
txtbox then the txtbox info be written to the file sn.txt. (i'm also very
new to php)

// What I have.. (close but not good enough)

"";

$fp = fwrite($myfile,"test");

fclose($myfile);

?>"

--

-Alias:   |{iller
-Website: http://www.ai-syndicate.com
-AIM:Prn2000Str
-Email:  [EMAIL PROTECTED]



--- End Message ---
--- Begin Message ---

Hi,

I am new to php and I am trying to get it work on my w2k.  After I've
enabled 2 extensions, php_gettext.dll and php_imap.dll, in the php.ini, I
always get the error PHP Warning: Unable to load dynamic library
'c:/php/php_gettext.dll'   I am using the exe version of php.  I have the
following queries,

- Should I use c:\ or c:/ in php.ini?
- Is isapi version of php work on w2k?  I can't get it work!
- How do I solve the library problem?

Thank you very much.
Barry



--- End Message ---
--- Begin Message ---


Make sure the \php\dlls directory is in your PATH.

barry wrote:
> 
> Hi,
> 
> I am new to php and I am trying to get it work on my w2k.  After I've
> enabled 2 extensions, php_gettext.dll and php_imap.dll, in the php.ini, I
> always get the error PHP Warning: Unable to load dynamic library
> 'c:/php/php_gettext.dll'   I am using the exe version of php.  I have the
> following queries,
> 
> - Should I use c:\ or c:/ in php.ini?
> - Is isapi version of php work on w2k?  I can't get it work!
> - How do I solve the library problem?
> 
> Thank you very much.
> Barry
> 
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

-- 

Craig Morrison
  http://www.mtsprofessional.com/
  A Win32 Email server that works for you.

--- End Message ---
--- Begin Message ---

Hi,

> Make sure the \php\dlls directory is in your PATH.

I had the same problem though all path-entries were correct. It seems
that some of the dll's are broken. I changed the given php_gd.dll for a
php_gd.dll that I downloaded form the net and see: It works !!!

Here are some links for downloading extensions:

http://129.123.109.76/chenxw/dataserver/php/php-4.0.6-Win32/extensions/
http://kromann.info/php4.php

I dont't know if they all work, but most of them do.

Good luck, Marcel

--
registered Fli4l-User #0388



--- End Message ---
--- Begin Message ---

Hi,

I've tried both ways, i.e. include the dir in the path and replace the dll,
but same error.

I just discovered one thing, one of the extensions, php_imap.dll, seems to
be loaded sucessufully. The error only seems to happend for php_gettext.dll
only.
PHP Warning: Unable to load dynamic library
'c:/php/extensions/gnu_gettext.dll' - §ä¤£¨ì«ü©wªº¼Ò²Õ¡C in Unknown on line
0

Barry




"Marcel Besancon" <[EMAIL PROTECTED]> ¼¶¼g©ó¶l¥ó
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> > Make sure the \php\dlls directory is in your PATH.
>
> I had the same problem though all path-entries were correct. It seems
> that some of the dll's are broken. I changed the given php_gd.dll for a
> php_gd.dll that I downloaded form the net and see: It works !!!
>
> Here are some links for downloading extensions:
>
> http://129.123.109.76/chenxw/dataserver/php/php-4.0.6-Win32/extensions/
> http://kromann.info/php4.php
>
> I dont't know if they all work, but most of them do.
>
> Good luck, Marcel
>
> --
> registered Fli4l-User #0388
>
>



--- End Message ---
--- Begin Message ---


barry wrote:
> 
> be loaded sucessufully. The error only seems to happend for php_gettext.dll
> only.
> PHP Warning: Unable to load dynamic library
> 'c:/php/extensions/gnu_gettext.dll' - §ä¤£¨ì«ü©wªº¼Ò²Õ¡C in Unknown on line
> 0

It is entirely possible that this extension was written for a version of PHP
prior to 4.1.0 and the net results of that is...

It won't work, unless you can find a newer version of the DLL that was written
for PHP 4.1.0 or greater.

-- 

Craig Morrison
  http://www.mtsprofessional.com/
  A Win32 Email server that works for you.

--- End Message ---
--- Begin Message ---


I wa

php-windows Digest 1 Apr 2002 00:23:10 -0000 Issue 1071

2002-03-31 Thread php-windows-digest-help


php-windows Digest 1 Apr 2002 00:23:10 - Issue 1071

Topics (messages 12852 through 12857):

retry
12852 by: blulagoon

Newbie config probs with php + apache under Win ME
12853 by: blulagoon

Re: Cookies not working right on Win 2000 and IIS 5
12854 by: barry

Re: generating imagemaps?
12855 by: Hugh Bothwell

Re: ASP vs PHP
12856 by: John Lim

Re: Nead Help With A Php Script
12857 by: martinahingis

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

I tried to send a message to this group, but it never appeared. It was
quite long, so forgive me if I make sure I can post before sending
again.

Blu


--- End Message ---
--- Begin Message ---

I set up Apache for Win32 many months ago, and it works extremely well
delivering not only HTML pages but Java Applets and Javascript. I am
fairly confident that it is working OK. Its version 1.3.12

I've downloaded and installed the zip file version of PHP into D:\php4\
Apache is D:\program files\apache group\apache\
I've editied the httpd.conf file to set ScriptAlias /php/
"D:/php4/" and added the two   AddType application/x-httpd-php .php and
.php4 respectively. Also added theAction application/x-httpd-php
D:/php4/php.exe

I've renamed the ini file to php.ini and popped it across to C:\windows
- I'm not sure if the paths and directories section is correct though.
There is something about includes, but none of the directories I've seen
cited in examples are directories I have under my php4 directory (i.e.
/includes and /lib)

I've run php -i from the command prompt and I get the screen fulls of
html, which makes me think this is a config issue.
I've created a file in my htdocs directory called phpinfo.php as
follows:



accessing this from localhost comes up with error "page not found"  (it
is there honest)

Also wrote an html page as follows:






This gives me a blank screen

The other html files in my htdocs directory are displayed as I would
expect.
I've also tried 
--- End Message ---
--- Begin Message ---

Hi,

I have similar problems.  I am using w2k server IIS5, php 4.1.2, and one of
the php programs that requires cookie is not working.  I've checked the
cookies directory but didn't find any cookie being created.  I've turned on
every parameters which seems to be cookie related in php.ini, but still
doesn't work.

If anyone know the trick, please help.

Thanks
Barry


"Arijit Chaudhuri" <[EMAIL PROTECTED]> ¼¶¼g©ó¶l¥ó
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> Apart from RedHat Linux, I have also started using PHP on Windows 2000
> Professional with MySQL database. Eveything is working perfectly except
> cookies. As an example, if I use the following code:
>
> setcookie("name", "test") ;
>print("$name") ;
> ?>
>
> "test" is not printed at first. If I do a browser refresh, it does get
> printed. This is true even if I set all relevent parameters for setcookie.
>
> The cookies work fine in Linux and also on all my clients Linux server.
>
> I am using the php.exe file from the InstallShield version of Windows PHP
> from php.net. Would greatly appreciate any help on where I am going wrong
or
> what needs to be done. The php.ini file has a session save path but
nothing
> for cookies.
>
> Regards,
> Arijit Chaudhuri
>
>



--- End Message ---
--- Begin Message ---

> I want to write a php script wich shows the user a large picture showing a
> lattice. every field of this lattice should be "clickable" & every field
> should have his own link. is this possible (generating an imagemap e.g.?)

(shrug) sure... I don't understand the need to do
it dynamically, but it can be done.


client-side image map syntax:




...


shape can be rect, circle, or poly; default is rect.
for rect, coords are left,top,right,bottom
for circle coords are x,y,radius
for poly, coords are x1,y1,x2,y2,

href is the link to go to; nohref means do nothing (this
can be useful for putting 'cutout' areas in the image map).

any number of areas can be defined, with earlier ones
taking precedence in case of overlap.


So you have to figure out the corner coordinates of
each section of the lattice and generate 
tags as needed.

Note: it's probably a good plan to include text links
or link to a text-based alternate page while you're
at it.



--- End Message ---
--- Begin Message ---

Hello Ciro,

For database access and automatic generation of forms, see
http://phplens.com/
You can create search/edit/new record forms automatically through the web
user
interface with little coding. It also has a low level PHP interface for
deep coding. This is a commercial product, developed by our company.

Regards, John

Ciro Martins <[EMAIL PROTECTED]> wrote in message

php-windows Digest 1 Apr 2002 15:15:38 -0000 Issue 1072

2002-04-01 Thread php-windows-digest-help


php-windows Digest 1 Apr 2002 15:15:38 - Issue 1072

Topics (messages 12858 through 12859):

Error - (include_path='c:\php4\pear') in Unknown on line 0
12858 by: Aleem

Configuring securely in IIS5
12859 by: Eric Gentry

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

I am getting the wierdest PHP error. I couldn't find anything on the web
regarding this error. The exact error is as follows:

[01-Apr-2002 02:45:41] PHP Warning:  Failed opening
'/apache/htdocs/php.php' for inclusion (include_path='c:\php4\pear') in
Unknown on line 0

I have put up online copies of my httpd.conf and php.ini files up at:

http://one.com.pk/tmp/httpd.conf.txt
http://one.com.pk/tmp/php.ini

I'm on a Win2K machine, running PHP v4.1.2. I was running 4.0.6 and then
ran the windows installer version of 4.1.2 but when that failed I got
the zipped version, and installed fresh in c:\php

I'm running Apache 1.3.42 and even installed the latest MDA Components
(2.7 RTM)

The error occurs even on a simple php page with the following:  ( http://one.com.pk/php.php )

The page appears blank and logs an error to the log file as pasted on
top of this mail. I have thus far tried all variations in the install
guide, copied php4ts and others from php/dll into the system32 folder,
copied the php.ini in system32, etc. I don’t understand why it's giving
me the same error even after a fresh install (I had the Zend Scripting
Engine installed before installing 4.1.2 but that shouldn't have left
any legacy files either because I complete remoed the php folder and
installed over... my guess is it has something to do with apache)

tia,
Aleem


--- End Message ---
--- Begin Message ---

I have been able to install php and get it running on our test server
running IIS5. Everything is going fine, but now I am beginning to ponder
the question, how do I secure this when it goes live?

I have read through the installation documentation, and read the
security
chapter of the php manual that I downloaded from the php.net website.

Various queries to Google have been unproductive, so I thought I may
check
here.

Now, I am not talking about script internals security (that will be
handled
more by our development team), just mainly how to configure php on the
server so that I don't have people tearing the darn thing down when this
site goes live. We are using the ISAPI module.

I have seen numerous tidbits on Apache, but we are going to be using
IIS.

Can anyone point me to a book, FAQ, examples, anything to set me on the
way?

Thanks a ton



--- End Message ---


php-windows Digest 2 Apr 2002 05:34:52 -0000 Issue 1073

2002-04-01 Thread php-windows-digest-help


php-windows Digest 2 Apr 2002 05:34:52 - Issue 1073

Topics (messages 12860 through 12883):

Re: Passing an array into a COM function
12860 by: Jeff Bendixsen

Re: Configuring securely in IIS5
12861 by: Robin Bolton
12862 by: Eric Gentry

Delphi & PHP
12863 by: Quique

Security using Apache & Windows
12864 by: Tim Mackenzie

Apache, PHP, Windows, and Security
12865 by: Tim Mackenzie

Same Problem
12866 by: martinahingis

How to add more domains on apache w2k
12867 by: martinahingis
12870 by: Shrock, Court
12871 by: martinahingis
12877 by: Vail, Warren
12878 by: Vail, Warren
12879 by: Jason Bouwmeester
12880 by: martinahingis

Re: strings with $ sign
12868 by: martinahingis

Re: Error - (include_path='c:\php4\pear') in Unknown on line 0
12869 by: Ryan Grove

COM Question
12872 by: Aron Pilhofer

Doesn't work
12873 by: martinahingis
12874 by: martinahingis

mail();
12875 by: martinahingis

Thanks everyone i solved it
12876 by: martinahingis

Re: Configuring securely in IIS5 under Windows 2000 Server
12881 by: Bruce Barnes

global variables headache
12882 by: Jon Lauridsen

XSLTransformation via Sablotron
12883 by: Jan Walter

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

So let me answer my question.. 

You idiot, RTFM!!!

There is documentation on the use of Variants in the COM section. Lots
of good support even for passing ByRef.

An example of using a COM array is like this:

  $PSearchCriteria[0] = "THIS";
  $PSearchCriteria[1] = "THAT";
  $SearchCriteria = new Variant($PSearchCriteria, VT_ARRAY);

Here is a result array passed by reference:

  $PResult = array();
  $Result = new Variant($PResult, VT_ARRAY | VT_BYREF);

There is no support for multi dimensioanl arrays

Jeff

On Thu, 28 Mar 2002 13:56:13 GMT, [EMAIL PROTECTED] (Jeff Bendixsen)
wrote:

>Hi
>
>I have an example in ASP calling a COM objectr that looks like this:
>
>...
>redim vArray(1,1)
>vArray(0,0)="Name1"
>vArray(1,0)="Value1"
>vArray(0,1)="Name2"
>vArray(1,1)="Value2"
>res=obj.SomeFunction(vArray,arrRes,CInt(100))
>...
>
>So far the authors will only tell me that they use Variant arrays. 
>
>ofcousre it all starts off like:
>$obj = new com("SynWeb.Application") or die("Error");
> if (is_object($obj)) {
>  $res = $obj->ConnectToRep($repository, $server);
>  ...
>
>Thats all fine and works. The problem comes with invoking this
>function that takes 2 arrays, Variant array to be more precise.
>I tried this:
>
>$SearchCriteria[0][0] = "Name1";
>$SearchCriteria[0][1] = "Value1";
>$SearchCriteria[1][0] = "Name2";
>$SearchCriteria[1][1] = "Value2";
>$Result = array();
>$res = $obj->SomeFunction($SearchCriteria, $Result, 10);
>
>or:
>
>$SearchCriteria[0][0] = "Name1";
>$SearchCriteria[1][0] = "Value1";
>$SearchCriteria[0][1] = "Name2";
>$SearchCriteria[1][1] = "Value2";
>$Result = array();
>$res = $obj->SomeFunction($SearchCriteria, $Result, 10);
>
>or:
>
>$SearchCriteria[0] = array("Name1" => "Value1");
>$Result = array();
>$res = $obj->SomeFunction($SearchCriteria, $Result, 10);
>
>I get:
>
>Warning:  Invoke() failed: Exception occurred.
> Source: SynWeb Description: Subscript out of range in
>c:\apache\htdocs\myscript.php on line 22
>
>plus about 50 other things I coulkd think of. Does anyone know if this
>is possible with PHP and how?
>
>BTW the ASP code does work I have had it running.
>
>Jeff


--- End Message ---
--- Begin Message ---

A good place to start may be the IIS Lockdown Tool:

http://www.microsoft.com/WINDOWS2000/downloads/recommended/iislockdown/defau
lt.asp


-Original Message-
From: Eric Gentry [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 01, 2002 8:15 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Configuring securely in IIS5


I have been able to install php and get it running on our test server
running IIS5. Everything is going fine, but now I am beginning to ponder
the question, how do I secure this when it goes live?

I have read through the installation documentation, and read the
security
chapter of the php manual that I downloaded from the php.net website.

Various queries to Google have been unproductive, so I thought I may
check
here.

Now, I am not talking about script internals security (that will be
handled
more by our development team), just mainly how to configure php on the
server so that I don't have people tearing the darn thing down when this
site goes live. We are using the ISAPI module.

I have seen numerous tidbits on Apache, but we are going to be using
IIS.

Can anyone point me to a book, FAQ, examples, anything to set me on the
way?

php-windows Digest 2 Apr 2002 17:45:06 -0000 Issue 1074

2002-04-02 Thread php-windows-digest-help


php-windows Digest 2 Apr 2002 17:45:06 - Issue 1074

Topics (messages 12884 through 12898):

Removing PHP
12884 by: Faisal Ashraf
12887 by: Faisal Ashraf

Re: [PHP-INST] XSLTransformation via Sablotron
12885 by: Steve at Puddletown

PHP and Apache 1.3
12886 by: Glider
12888 by: darius.burlega.electrolux.lt

Re: mail();
12889 by: Piotr Pluciennik

R: [PHP-WIN] mail();
12890 by: Alberto. Sartori

Re: Configuring securely in IIS5 under Windows 2000 Server
12891 by: Eric Gentry
12894 by: Ross Fleming
12896 by: Bryan Henry
12897 by: Bryan Henry
12898 by: Ross Fleming

Connecting to a database w/PHP and mysql
12892 by: Anthony Ritter

Re: Security using Apache & Windows
12893 by: Tim Mackenzie
12895 by: Ross Fleming

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

Hi People,
 
I am kinda new here but I hope this place is good for getting help
regarding php. my problem is that my system was running perfect I had
installed php on winxp was working fine then I upgrade it to the new
version and it got messed up my phpnuke web giving me problems not
working.
 
I wanna know how to completely remove php so I can reinstall it again I
hope I'll get the reply soon thank you and one more thing is there any
installer available which installs full package of php on windowz like
ActivePerl.
 
Thank you 
 
Regards,
 
Faisal

--- End Message ---
--- Begin Message ---

Thank for your reply Aleem,


Well it didn't worked I am still getting the same error.


I am getting this error I have removed all files then reinstalled the
setup.

Fatal error: Failed opening required 'mainfile.php'
(include_path='c:\php4\pear') in 


This folder was previously exits but now I have removed all files then
reinstalled it again 
I am running my site on IIS 5.

Please help me out 


Faisal 



-Original Message-
From: Aleem [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, April 02, 2002 2:53 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] Removing PHP


Faisal, what kind of problems ?
I just resolved a whole bunch of problems I have having after I upgraded
to 4.1.2

here's a quick check list:

add these to your apache file (or check the docs on the php site for
other servers): # CGI INSTALL
ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php.exe"

and these lines in php.ini under c:\\php.ini

register_globals = On
include_path = ".;c:\php\pear"
doc_root =


if these don't help, you can simply remove the php directory and remove
the php.ini file from your windows folder. Also delete php4ts.dll from
the SYSTEM or SYSTEM32 folder. If you copied some other DLLs in your
SYSTEM/SYSTEM32 folder don't worry about those... just copy the dlls
from your new php\dlls install into the SYSTEM/SYSTEM32 folder.

- aleem











> -Original Message-
> From: Faisal Ashraf [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 01, 2002 10:15 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Removing PHP
> 
> 
> Hi People,
>  
> I am kinda new here but I hope this place is good for getting
> help regarding php. my problem is that my system was running 
> perfect I had installed php on winxp was working fine then I 
> upgrade it to the new version and it got messed up my phpnuke 
> web giving me problems not working.
>  
> I wanna know how to completely remove php so I can reinstall
> it again I hope I'll get the reply soon thank you and one 
> more thing is there any installer available which installs 
> full package of php on windowz like ActivePerl.
>  
> Thank you
>  
> Regards,
>  
> Faisal
> 




--- End Message ---
--- Begin Message ---



-Original Message-
From: Jan Walter [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 01, 2002 9:20 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [PHP-INST] XSLTransformation via Sablotron


Hello,

I've used this sample code as well as the installation described at
http://shanx.com/php/xsl/getXsl.htm (using W2K, Apache 1.3.20, PHP
4.1.2.).



The result is that Sablotron itself (command line) works fine but this
code produces
following error "XML parser error 4: not well-formed (invalid token)".

I would appreciate any hint. Thanx alot.
-- 
=
[NAME] jan walter [ALIAS] john
[COMPANY] lerach s.r.o.
[GSM] (+420)(777)31 99 31
[SMS] john.sms(at)mujoskar.cz
[EMAIL] john(at)lerach.cz
[ICQ] 28353428
=

-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--- End Message ---
--- Begin Message ---

I'm new to this, I have Apache 1.3.23 installed on my XP box, 

php-windows Digest 3 Apr 2002 08:25:11 -0000 Issue 1075

2002-04-03 Thread php-windows-digest-help


php-windows Digest 3 Apr 2002 08:25:11 - Issue 1075

Topics (messages 12899 through 12914):

I am trying to get off of this list
12899 by: Steve at Puddletown
12914 by: Svensson, B.A.T. (HKG)

Passing Javascript Variables to PHP
12900 by: Wayne Hinch
12905 by: Nicole Amashta
12906 by: Mike Flynn
12908 by: Robin Bolton
12912 by: Mike Flynn

Editing setting session_save.path in the php.ini file doesn't register the change!!!
12901 by: Hammad Sophie
12902 by: Ryan Marrs
12904 by: Hammad Sophie
12910 by: Hammad Sophie
12911 by: Shrock, Court
12913 by: Hammad Sophie

Re: Security using Apache & Windows
12903 by: Tim Mackenzie

problem with mssql_fetch_array
12907 by: Andy Muth

Re: How to add more domains on apache w2k
12909 by: martinahingis

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

How can I get off of this list...I have requested many times and no worky...

[EMAIL PROTECTED]

--- End Message ---
--- Begin Message ---



> -Original Message-
> From: Steve at Puddletown
> Sent: Tuesday, April 02, 2002 7:54 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] I am trying to get off of this list
> 
> 
> How can I get off of this list...I have requested many times and no worky...


"You can check out, but you can never leave... " :)

> [EMAIL PROTECTED]
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
 ^^

Doesn't this work, or?

--- End Message ---
--- Begin Message ---

Hi all,
 
Does anyone know if it is possible to pass variables from JavaScript to
PHP?
 
Any help will be much appreciated
 
Many Thanks

--- End Message ---
--- Begin Message ---

One possible way to do this is, when submitting a form, set a hidden
variable to the value using javascript. Example:


function setVars( theForm )
{
 theForm.jsvar.value = 'somevalue';
 theForm.submit();
}


...







This is just a suggestion.

--
Nicole Amashta
Web Application Development


"Wayne Hinch" <[EMAIL PROTECTED]> wrote in message
01c1da71$79967e30$0300a8c0@gromit">news:01c1da71$79967e30$0300a8c0@gromit...
> Hi all,
>
> Does anyone know if it is possible to pass variables from JavaScript to
> PHP?
>
> Any help will be much appreciated
>
> Many Thanks
>



--- End Message ---
--- Begin Message ---

I have answered variations on this question at least 3 times.  Please check 
the archives.  JavaScript is client-side, PHP is server-side.  The only way 
to go from JavaScript to PHP (in that direction) is by going to a new page 
-- 1. Reloading the current page, with the relevant data in the query 
string; 2. Loading a new page, with the relevant data in the query string; 
3. Submitting a form, with the relevant data in hidden or other kinds of 
fields.

-Mike

At 07:09 PM 4/2/02 +0100, Wayne Hinch wrote:
>Hi all,
>
>Does anyone know if it is possible to pass variables from JavaScript to
>PHP?
>
>Any help will be much appreciated
>
>Many Thanks



--- End Message ---
--- Begin Message ---

Another way to pass data from JavaScript <-> PHP is with cookies.

Use JavaScript to set the cookie and once you reload the script, PHP will
have access to the variables stored in the cookie.

I implemented this in a real-time trivia game (using PHP for the backend
logic, and JavaScript for the client-side logic), and it worked quite well.


-Original Message-
From: Mike Flynn [mailto:[EMAIL PROTECTED]]
Sent: April 2, 2002 13:34
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] Passing Javascript Variables to PHP


I have answered variations on this question at least 3 times.  Please check
the archives.  JavaScript is client-side, PHP is server-side.  The only way
to go from JavaScript to PHP (in that direction) is by going to a new page
-- 1. Reloading the current page, with the relevant data in the query
string; 2. Loading a new page, with the relevant data in the query string;
3. Submitting a form, with the relevant data in hidden or other kinds of
fields.

-Mike

At 07:09 PM 4/2/02 +0100, Wayne Hinch wrote:
>Hi all,
>
>Does anyone know if it is possible to pass variables from JavaScript to
>PHP?
>
>Any help will be much appreciated
>
>Many Thanks



--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--- End Message ---
--- Begin Message ---

At 02:37 PM 4/2/02 -0700, Robin Bolton wrote:
>Another way to pass data from JavaScript <-> PHP is with cookies.

Good point!

-Mike


--- End Message ---
--- Begin Message ---


Hello fellow PHP windows users.

I installed Apache 1.3.23 and PHP 4.1.2 

php-windows Digest 3 Apr 2002 22:34:01 -0000 Issue 1076

2002-04-03 Thread php-windows-digest-help


php-windows Digest 3 Apr 2002 22:34:01 - Issue 1076

Topics (messages 12915 through 12922):

problems with include under windows
12915 by: secrgb

Re: Passing Javascript Variables to PHP
12916 by: Wayne Hinch

sendmail
12917 by: Graham Dawes

new to PHP...have some questions
12918 by: Matt Babineau
12919 by: Rasmus Lerdorf

testing for value in $HTTP_COOKIE_VARS
12920 by: Steve Yates
12921 by: Steve Yates

Re: [PHP-INST] XSLTransformation via Sablotron
12922 by: Phillip Fox

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

hey
i have apache installed and also php on a win machine
but this function does no t work
http://domain.com/);
?>
it gives an error, why?

BW sun aga secrgb aka jaan



--- End Message ---
--- Begin Message ---

Thanks everyone for the help, much appreciated. The problem was solved
by hiding text fields and doing it that way.

Thanks again,

Wayne

-Original Message-
From: Mike Flynn [mailto:[EMAIL PROTECTED]] 
Sent: 03 April 2002 01:51
To: Robin Bolton; [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] Passing Javascript Variables to PHP

At 02:37 PM 4/2/02 -0700, Robin Bolton wrote:
>Another way to pass data from JavaScript <-> PHP is with cookies.

Good point!

-Mike


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




--- End Message ---
--- Begin Message ---

I have had some problems with a php application slowing down when it tries
to send email. It will work but the same function will take 30 seconds
instead of instant when the application is required to send an email aswell.
I have been told that it may be that the problem is with a slow dns lookup
and because sendmail is trying to send the mail instantly the application
has to wait. The method around it was for unix and was:

For people having really slow posting because of email related issues, try
adding -ODevelieryMode=q to the sendmail_path php variable. Then it'll just
queue it, not even do a DNS lookup.

How can I do this for a W2K system

many thanks

Graham


--- End Message ---
--- Begin Message ---

I have been playing with the $_POST variable
 
how would I go about looping over the $_POST variable to retrieve the
variable and values?
 
I can do this:
 
<%
 
if (count($_POST) > 0) {
 /*send mail */%>send out mail<%
 $var1 = array_keys ($_POST);
 $var2 = array_values ($_POST);
 print_r ($var1);%><%
 print_r ($var2);
}
%>
 
This gets me the list to variable names and the list of their values...
 
How can I set local variable to those names and set the values to the
ones in the second list?
 
 
Matt Babineau
Web Developer
http://www.criticalcode.com  
Mobile: 603.943.4237
[EMAIL PROTECTED] 
 

--- End Message ---
--- Begin Message ---

foreach($_POST as $name=>$value) $$name = $value;

On Wed, 3 Apr 2002, Matt Babineau wrote:

> I have been playing with the $_POST variable
>
> how would I go about looping over the $_POST variable to retrieve the
> variable and values?
>
> I can do this:
>
> <%
>
> if (count($_POST) > 0) {
>  /*send mail */%>send out mail<%
>  $var1 = array_keys ($_POST);
>  $var2 = array_values ($_POST);
>  print_r ($var1);%><%
>  print_r ($var2);
> }
> %>
>
> This gets me the list to variable names and the list of their values...
>
> How can I set local variable to those names and set the values to the
> ones in the second list?
>
>
> Matt Babineau
> Web Developer
> http://www.criticalcode.com 
> Mobile: 603.943.4237
> [EMAIL PROTECTED]
>
>


--- End Message ---
--- Begin Message ---

With PHP 4.1.x defaulting to turning off the automatically registered global
variables, I am trying to code in such a way that the code will work on a
server running 4.0.x as well.  However I'm having trouble testing for the
existence of variables.

For example, given $HTTP_COOKIE_VARS...if the value $HTTP_COOKIE_VARS['foo']
does not exist PHP spits out a warning about an undefined index.  Yet this
is what I observe (given the cookie is defined):

in_array('mycookie', $HTTP_COOKIE_VARS) == false

echo array_values($HTTP_COOKIE_VARS) prints "Array"

$HTTP_COOKIE_VARS['mycookie'] == 'myvalue'

How can this be?  Is there a better way to test for a cookie's existence
besides in_array()?

I should note that before changing to the array notation, $mycookie ==
'myvalue' with PHP making the assignments.  For the record, my testbed is
PHP 4.1.2 on IIS 4.0 as a CGI app.

PS--I'm posting this to the .windows group since the .version4 group doesn't
allow posting??

Thanks,


 - Steve Yates
 - Why did Shakespeare use so many famous quotations in his work?

/ Taglines by Taglinator 2.5 - www.

php-windows Digest 4 Apr 2002 11:35:45 -0000 Issue 1077

2002-04-04 Thread php-windows-digest-help


php-windows Digest 4 Apr 2002 11:35:45 - Issue 1077

Topics (messages 12923 through 12927):

Re: Any credability lost...
12923 by: Brad Thomas

Re: testing for value in $HTTP_COOKIE_VARS
12924 by: Steve Yates

Re: Configuring securely in IIS5
12925 by: olinux

Random "CGI Error" ???
12926 by: Fabio

update?'
12927 by: Sandeep Murphy

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---


"Ross Fleming" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> It is after 6am, I am just going to bed after several friends have left my
> flat after copious amounts of vodka consumed.  Just thought people might
be
> interested to hear and share any similar stories! :)  OK, bed now, up-time
> and hang-over in 4½ hours now.  Yha
>
> R
>

Right :)
Vodka + PHP = Brainhurt



--- End Message ---
--- Begin Message ---

To follow up with the group, I received an answer via e-mail within a
few minutes with two methods (thanks AB).

(1)
$foo = @$HTTP_COOKIE_VARS["foo"];
# Where the @ suppresses the warnings on the call.
if ($foo)
{
}

(2)  The one I ended up using (modified a bit):
if ((isset($HTTP_COOKIE_VARS["foo"]) and ($HTTP_COOKIE_VARS["foo"] ==
'value'))
{
}

PHP short circuits the logic so method 2 doesn't throw the error on the
value test.  Or of course you can put the test for the value inside the if
{}.  Also for environment variables you can use getenv() rather than the
array.

 - Steve Yates
 - *  <- Tribble.!  <- Tribble With A Mohawk.

/ Taglines by Taglinator 2.5 - www.srtware.com /






--- End Message ---
--- Begin Message ---

Eric,

I am in the beginning of the same process. I do php,
unfortunately our company has just made a large
investment in an ASP/MSSQL based directory. I will be
building a content management system and moving site
from static to database driven
(www.insurancejournal.com). I'd love to share tips on
how to do this most effectively. I have heard that the
most recent build is much more stable as ISAPI module
so that's what I'll be trying - another issue I need
to sort out is how to keep url's search engine
friendly - ie. website.com/news/article_id/123

I will be using the latest php build from this site. I
think that this will probablybe much better configured
than whatever I would come up with.

http://www.php4win.com

Later,
Josh




--- Eric Gentry <[EMAIL PROTECTED]>
wrote:
> I have looked at the tool already, and it doesn't
> reference security for
> any issues with php.
> 
> I know what to do to the IIS server to secure it, my
> concern is over the
> addition of the php module and how it effects the
> security of the
> system.
> 
> -Original Message-
> From: Robin Bolton [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, April 01, 2002 10:52 AM
> To: Eric Gentry; [EMAIL PROTECTED]
> Subject: RE: [PHP-WIN] Configuring securely in IIS5
> 
> 
> A good place to start may be the IIS Lockdown Tool:
> 
>
http://www.microsoft.com/WINDOWS2000/downloads/recommended/iislockdown/d
> efau
> lt.asp
> 
> 
> -Original Message-
> From: Eric Gentry
> [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 01, 2002 8:15 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Configuring securely in IIS5
> 
> 
> I have been able to install php and get it running
> on our test server
> running IIS5. Everything is going fine, but now I am
> beginning to ponder
> the question, how do I secure this when it goes
> live?
> 
> I have read through the installation documentation,
> and read the
> security chapter of the php manual that I downloaded
> from the php.net
> website.
> 
> Various queries to Google have been unproductive, so
> I thought I may
> check here.
> 
> Now, I am not talking about script internals
> security (that will be
> handled more by our development team), just mainly
> how to configure php
> on the server so that I don't have people tearing
> the darn thing down
> when this site goes live. We are using the ISAPI
> module.
> 
> I have seen numerous tidbits on Apache, but we are
> going to be using
> IIS.
> 
> Can anyone point me to a book, FAQ, examples,
> anything to set me on the
> way?
> 
> Thanks a ton
> 
> 
> 
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
> 
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

--- End Message ---
--- Begin Message ---

I have a php page that is invoked as method in a form. It happens that (it
seems randomly) I obtain a :
---
CGI Error

The spec

php-windows Digest 4 Apr 2002 23:55:27 -0000 Issue 1078

2002-04-04 Thread php-windows-digest-help


php-windows Digest 4 Apr 2002 23:55:27 - Issue 1078

Topics (messages 12928 through 12942):

Bounces
12928 by: jmt2que001.sneakemail.com
12929 by: Mike Flynn

Using ODBC
12930 by: Someone Somewhere

PHP crash www service NT + IIS4
12931 by: Dave

R: [PHP-WIN] Using ODBC
12932 by: Alberto. Sartori

New to PHP Need Help
12933 by: Jason Tobias
12934 by: Mike Flynn
12939 by: Piotr Pluciennik

For John w/ Q about $_SESSION
12935 by: B.T.
12937 by: B.T.

session variables
12936 by: Lee, Ford

Re: Failed opening  for inclusion
12938 by: LaserJetter
12940 by: Ross Fleming

PHP and mySQL...
12941 by: Anthony Ritter

Login problem not in FAQ
12942 by: barry

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

I can't figure out how to get email bounces to come back so that I can remove them 
from my lists. Is there some way to do this? I am using the mail function. 

Troy

-
Protect yourself from spam, use http://sneakemail.com

--- End Message ---
--- Begin Message ---

At 09:19 AM 4/4/2002 +, you wrote:
>I can't figure out how to get email bounces to come back so that I can 
>remove them from my lists. Is there some way to do this? I am using the 
>mail function.
>
>Troy

If you mean remove them automatically, then I don't think there would be 
any way to do this other than setting the From: and Reply-To: headers to 
the address you want outgoing messages bounced to, then having PHP check 
that e-mail account's e-mail and detect bounced ones by parsing the 
messages.  That, or running your own mail server software.

If you mean manually, then you could just set the From: and Reply-To: 
headers to your e-mail address and all bounces would come back to that.

-Mike


--- End Message ---
--- Begin Message ---

Does anyone have any experience using ODBC to connect to an Access database,
I'm runing php and Apache in Windows 2000. Any help will be apreciated.


Thanks
Someone



--- End Message ---
--- Begin Message ---

Hi,

I have a problem with some php pages when I submit via post a form, www 
service crash!

on the event log I have this message:
The Open Procedure for service "ContentFilter" in DLL "QPerf.dll"

Any ideas?

Thanks in advance

Bye,
Dave


--- End Message ---
--- Begin Message ---

I've used several times an ODBC Connection with Access db. I used the COM object. I 
found a simply example:

$dbname="prova.mdb"; 
$query="SELECT * FROM users";

$connessione=new COM("ADODB.Connection");
$connessione->Open("DRIVER={Microsoft Access Driver (*.mdb)}; 
DBQ=C:\\inetpub\\wwwroot\\$dbname");
$rs=$connessione->execute($query);
if (!$rs->EOF)
 {
  while (!$rs->EOF)
  {
   $campo1=$rs->fields("name");
   $campo2=$rs->fields("surname");
   $campo3=$rs->fields("email");
   echo $campo1->value."";
   echo $campo2->value."";
   echo $campo3->value."";
  $rs->movenext();
  }
 }
$rs->close;
?>


-Messaggio originale-
Da: Someone Somewhere [mailto:[EMAIL PROTECTED]]
Inviato: giovedì 4 aprile 2002 17.45
A: [EMAIL PROTECTED]
Oggetto: [PHP-WIN] Using ODBC


Does anyone have any experience using ODBC to connect to an Access database,
I'm runing php and Apache in Windows 2000. Any help will be apreciated.


Thanks
Someone



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--- End Message ---
--- Begin Message ---

I am trying to define variables through an anchor tag to retrive data from
MySQL,  When the script runs it displays Array.  I am running WIN2K and IIS
5

echo "Camp Street Cafe";

Here is the script that is called.

$Location_Info";

?>






--- End Message ---
--- Begin Message ---

mysql_fetch_row() returns an associative array containing all columns 
retrieved from the database.  You can't echo an array directly.  In the 
associative array, the keys are the column names from the table, the values 
are the values you retrieved in that row.

So you could do this to see what you have:

...all the same code...
$Location_Info = mysql_fetch_row($result);
foreach($Location_Info as $key => $value) {
   echo "$key: $value\n";
}

That would display the row.  There's tons of tutorials on basic PHP<->MySQL 
stuff like this out on the web.  I recommend checking webmonkey.com, 
zend.com, phpbuilder.com, devshed.com.

Also, it's not great etiquette to send your message to multiple listservs 
at once.

-Mike

At 09:29 AM 4/4/2002 -0600, Jason Tobias wrote:
>I am trying to define variables through an anchor tag to retrive data from
>MySQL,  When the script runs it displays Array.  I am running WIN2K and IIS
>5
>
>echo "Camp Street Cafe";
>
>H

php-windows Digest 5 Apr 2002 16:29:35 -0000 Issue 1079

2002-04-05 Thread php-windows-digest-help


php-windows Digest 5 Apr 2002 16:29:35 - Issue 1079

Topics (messages 12943 through 12949):

Re: PHP and mySQL...
12943 by: ST Ooi
12944 by: Anthony Ritter
12948 by: Svensson, B.A.T. (HKG)

uploads
12945 by: Sandeep Murphy

Re: update?'
12946 by: Svensson, B.A.T. (HKG)
12947 by: Sandeep Murphy
12949 by: Mike Flynn

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

I've experience developing website using IIS, MySQL and PHP on Windows 2K
machine and upload it to a server that is running Apache, MySQL and PHP
on RedHat Linux 7.1 without a single code modification.

To upload files to your server, you need a FTP client,
to create a database that your local mahcine is running,
most server has some version of PHPMyAdmin.

Thanks

ST Ooi
Malaysia
http://www.shop-streets.com



- Original Message - 
From: "Anthony Ritter" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 05, 2002 8:15 AM
Subject: [PHP-WIN] PHP and mySQL...


> Using MS Windows 98, Apache, PHP and mySQL.
> 
> I've installed Apache on my hard drive to test a database driven website
> using PHP and mySQL.
> 
> Could somebody lead me through the steps if I want to continue using the
> mySQL database and PHP when the site goes live and the files are uploaded
> and published to my ISP's server?
> 
> Is this possible?
> 
> Thanking all in advance.
> Tony Ritter
> 
> 
> 
> 
> 
> 
> 
> 
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 


--- End Message ---
--- Begin Message ---

Sorry if my original question was confusing.

This is what I would like to accomplish:

I am currently developing a database on my website using mysql which is on
my harddrive.
I have installed Apache as well and I am using PHP.

My database is functioning fine on localhost.

I would like to find out the steps one takes in going from the process of
having this reside on my harddrive - localhost - in development - to my
ISP's server when it goes live.

Thanking all in advance.
Tony Ritter





--- End Message ---
--- Begin Message ---



> -Original Message-
> From: Anthony Ritter
> Sent: Friday, April 05, 2002 5:26 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] PHP and mySQL...
> 
> 
> Sorry if my original question was confusing.
> 
> This is what I would like to accomplish:
> 
> I am currently developing a database on my website using mysql which is on
> my harddrive.
> I have installed Apache as well and I am using PHP.
> 
> My database is functioning fine on localhost.
> 
> I would like to find out the steps one takes in going from the process of
> having this reside on my harddrive - localhost - in development - to my
> ISP's server when it goes live.

I think this is an issue to discuss with you IPS(?), or what exactly is it that you 
need to know?


> Thanking all in advance.
> Tony Ritter
> 
> 
> 
> 
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

--- End Message ---
--- Begin Message ---

hi,

I am trying to upload a file from an HTML form to an Oracle database which
has a column of type BLOB...This has been one of the most frustrating things
I hv done rather not hv done...

if anyone has achieved something of this kind, wud be gratefull if u can
mail/paste the relevant script here..

TIa,
sands

--- End Message ---
--- Begin Message ---

First of all, it is useful to know _which_ database system you are using, in order to 
give an answer, also weather the databases are
located within the same RDBMS or not.

And secondly your question is not related to php

Anyhow, to start with the syntax of your update statement, it looks suspicious. The 
UPDATE statement (according to ISO 9075) does
only take one(1) table name as a target table.

/Anders

> -Original Message-
> From: Sandeep Murphy [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 04, 2002 1:31 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] update?'
>
>
>
> [Sandeep Murphy]
>
> Hi,
>
>
>
> I need to update an entire table in one database with the values from
> another database...  My query reads like this:
>
>  update palmeira.t_colaboradores t, hr.member_status s, hr.member_data d
>
> set t.structure=s.structure,  t.depart_area=s.area  where t.cs_id=d.cs_id
> and d.cs_id=125
> [Sandeep Murphy]
>
> in the query, plameira and hr are the 2 diff databases
>
> any suggestions as to how to make this work???

--- End Message ---
--- Begin Message ---

hi,

sorry for missing out on the database type.. am using Mysql 3.23... am
trying to execute this query in query analyzer (Mascon) directly...

-Original Message-
From: S

php-windows Digest 6 Apr 2002 17:40:29 -0000 Issue 1080

2002-04-06 Thread php-windows-digest-help


php-windows Digest 6 Apr 2002 17:40:29 - Issue 1080

Topics (messages 12950 through 12952):

whois servers
12950 by: Arijit Chaudhuri
12951 by: Piotr Pluciennik

imagecreatefrom functions
12952 by: bene

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

Hi all,

I am looking for whois servers, specially for new domains like .biz, .name
and obscure ones like .la and .cc. Is there one server where I can get all?
Can look up registration details in separate registers but one server will
speed up the search.

Regards,
Arijit



--- End Message ---
--- Begin Message ---

Hi,

try this: http://www.geektools.com/cgi-bin/proxy.cgi

I also found a site with more options but today, at home computer I don't
remember and haven't got it... I'll try to check it in my office on monday and
then will send to you.

HTH

Piotr


Arijit Chaudhuri wrote:

> Hi all,
>
> I am looking for whois servers, specially for new domains like .biz, .name
> and obscure ones like .la and .cc. Is there one server where I can get all?
> Can look up registration details in separate registers but one server will
> speed up the search.
>
> Regards,
> Arijit
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php


--- End Message ---
--- Begin Message ---

Fatal error: Call to undefined function: imagecreatefromgif()

this is the error which always comes when i try to create an image from
gif,jpeg or png ...

i am using php version 4.1.2 on the iis 5.1

i also tryed the php_gd.dll as an extentiion, but i thought that i don't
need this extention anymore in php version 4.1.2 ...

is there anybody who can help me to solve the problem?

thanks



--- End Message ---


php-windows Digest 7 Apr 2002 13:27:24 -0000 Issue 1081

2002-04-07 Thread php-windows-digest-help


php-windows Digest 7 Apr 2002 13:27:24 - Issue 1081

Topics (messages 12953 through 12957):

Re: imagecreatefrom functions
12953 by: Ross Fleming
12954 by: Ross Fleming

Re: whois servers
12955 by: Arijit Chaudhuri

FastCGI ISAPI/NSAPI update
12956 by: Shane Caraveo

PHP script - Not going...
12957 by: Gordon Stewart

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

RTM, according to the manual, you need the GD extention installed to create
and write to gif's, but you can get info for images without the extention.
also, it says that the gd extention needs to be v1.6 or below to support the
gif functions.

Ross

-Original Message-
From: bene [mailto:[EMAIL PROTECTED]]
Sent: 06 April 2002 15:54
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] imagecreatefrom functions


Fatal error: Call to undefined function: imagecreatefromgif()

this is the error which always comes when i try to create an image from
gif,jpeg or png ...

i am using php version 4.1.2 on the iis 5.1

i also tryed the php_gd.dll as an extentiion, but i thought that i don't
need this extention anymore in php version 4.1.2 ...

is there anybody who can help me to solve the problem?

thanks



--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--- End Message ---
--- Begin Message ---

Further to my answer, I did a few tests, without the php_gd.dll module, I
got:
"call to undefined function"

with the php_gd.dll included, I got:
"No GIF support in this PHP build"

Don't know where you'd get an older version of php_gd.dll, maybe an older
version of PHP would have it?  Either that or can you use PNG images?
Because the php_gd module either supports one or the other.  <=v1.6 supports
.gif, >v1.6 supports .png

A quick search of google found a version of php_gd.dll but I couldn't get it
to work properly.  Perhaps someone reading this would be so kind to forward
a working link?

Ross



-Original Message-
From: bene [mailto:[EMAIL PROTECTED]]
Sent: 06 April 2002 15:54
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] imagecreatefrom functions


Fatal error: Call to undefined function: imagecreatefromgif()

this is the error which always comes when i try to create an image from
gif,jpeg or png ...

i am using php version 4.1.2 on the iis 5.1

i also tryed the php_gd.dll as an extentiion, but i thought that i don't
need this extention anymore in php version 4.1.2 ...

is there anybody who can help me to solve the problem?

thanks



--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--- End Message ---
--- Begin Message ---

Thanks a lot. It looks good. Will also look forward to the other site you
mentioned.

Regards,
Arijit

"Piotr Pluciennik" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> try this: http://www.geektools.com/cgi-bin/proxy.cgi
>
> I also found a site with more options but today, at home computer I don't
> remember and haven't got it... I'll try to check it in my office on monday
and
> then will send to you.
>
> HTH
>
> Piotr
>
>
> Arijit Chaudhuri wrote:
>
> > Hi all,
> >
> > I am looking for whois servers, specially for new domains like .biz,
.name
> > and obscure ones like .la and .cc. Is there one server where I can get
all?
> > Can look up registration details in separate registers but one server
will
> > speed up the search.
> >
> > Regards,
> > Arijit
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
>



--- End Message ---
--- Begin Message ---

I've posted a minor update that fixes a problem handling small post 
data.  The update in both source and binary are available at 
www.caraveo.com/fastcgi/

Regards,
Shane Caraveo


--- End Message ---
--- Begin Message ---

Ive been using Mysql/PHP for a short while - I sent this messaghe to a big
PHP group (not enough users though)  about a week ago - No reply...

Can anyone help..
PS - Slingshot.co.nz doesnt have PHP - its just a text file.. - Save to your
own  SQL server & test, Or just review the code - No viruses or anything..

Thanks.

G.
[EMAIL PROTECTED]

-



http://homepages.slingshot.co.nz/~gordon52/4.txt

Ive been learning MySql for about 1 week now - & joined a MySql
group - but some questions I ask are more PHP related & not directly
involving MySQL..

anyway, for my big test script, Ive got the above URL

Just 'view source' to view the PHP scripting language...

when running, it searches your databases & brings up a list of active
databases.

When selected, it brings up a list of tables within the database..

(those two functions are ok..)

Now - in the script,

php-windows Digest 8 Apr 2002 02:12:32 -0000 Issue 1082

2002-04-07 Thread php-windows-digest-help


php-windows Digest 8 Apr 2002 02:12:32 - Issue 1082

Topics (messages 12958 through 12958):

xmlrpc dll?
12958 by: dietrich

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

anyone know where i could find a dll for the xmlrpc-epi extension?
it's not distributed in the official zip.

thx,

dietrich



--- End Message ---


php-windows Digest 8 Apr 2002 17:53:35 -0000 Issue 1083

2002-04-08 Thread php-windows-digest-help


php-windows Digest 8 Apr 2002 17:53:35 - Issue 1083

Topics (messages 12959 through 12967):

Newbie Question
12959 by: Hubert DAUL
12963 by: Mike Flynn
12965 by: Mike Flynn
12966 by: Hubert DAUL

Re: update?'
12960 by: Sandeep Murphy

Cookies and IIS5
12961 by: John Braden

R: [PHP-WIN] Cookies and IIS5
12962 by: Alberto. Sartori

R: [PHP-WIN] Newbie Question
12964 by: Alberto. Sartori

Session Destroy with IE6
12967 by: Chip Snider

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

Hi ,

Here's my problem :

I read a data file (no sql file) which contains 8 lines, and in each line, 8
datas

(ex: name1;picture1;title1;anything1;everything1;nothing1)

and when i run it I see only one picture(the second data) and not all of
them

If someone could help me

TYA

Here the code :



Solid






");
print("$vignette");
   // I think it's wrong here but I dont know why
==>   print("");
print("$marque");
print("$nom");
print("$pdfproduit");
print("$commprod");
print("");
}


for ($c=0; $c<$num; $c++)
switch ($c)  {
case 0 :
{
$vignette = $data[$c];
break;
}

case 1 :
{
$photo= $data[$c];
break;
}

case 2 :
{
$marque= $data[$c];
break;
}

case 3 :
{
$nom = $data[$c];
break;
}

case 4 :
{
$pdfproduit= $data[$c];
break;
}

case 5 :
{
$commprod = $data[$c];
break;
}
}
 }
?>








--- End Message ---
--- Begin Message ---

Give this a shot...

");
 print("$vignette");
 print("");
 print("$marque");
 print("$nom");
 print("$pdfproduit");
 print("$commprod");
 print("");
   }
?>


At 08:54 AM 4/8/2002 +0200, Hubert DAUL wrote:
>Hi ,
>
>Here's my problem :
>
>I read a data file (no sql file) which contains 8 lines, and in each line, 8
>datas
>
>(ex: name1;picture1;title1;anything1;everything1;nothing1)
>
>and when i run it I see only one picture(the second data) and not all of
>them
>
>If someone could help me
>
>TYA
>
>Here the code :
>
>($fp, 1000, ";")) { $num = count ($data); $row++; if (isset($vignette)) { 
>print("
>"); print("$vignette"); // I think it's wrong here but I dont know why ==> 
>print("10e834.jpg"); print("$marque"); print("$nom"); 
>print("$pdfproduit"); print("$commprod"); print("
>"); } for ($c=0; $c<$num; $c++) switch ($c) { case 0 : { $vignette = 
>$data[$c]; break; } case 1 : { $photo= $data[$c]; break; } case 2 : { 
>$marque= $data[$c]; break; } case 3 : { $nom = $data[$c]; break; } case 4 
>: { $pdfproduit= $data[$c]; break; } case 5 : { $commprod = $data[$c]; 
>break; } } } ?>
>
>
>
>
>--
>PHP Windows Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php


Mike Flynn - Burlington, VT
http://www.mikeflynn.net/ - [EMAIL PROTECTED]
home=>work=>home=>store=>home [repeat daily]

--- End Message ---
--- Begin Message ---

At 03:31 PM 4/8/2002 +0200, Alberto. Sartori wrote:
>You should do the cicle and get the datas until you reach the end of file 
>aka feof($fp) or better, try to use fread()

Yup, good point.  Here's the modified code.. not using fread() though.  For 
non-binary data I think this should work ok though.

");
 print("$vignette");
 print("");
 print("$marque");
 print("$nom");
 print("$pdfproduit");
 print("$commprod");
 print("");
   }
   fclose($fp);
?>



--- End Message ---
--- Begin Message ---

Thanks for your help, but i've found what was wrong, it was in the code, but
in the data file
I wrote the picture name with first letter uppercase and unix server doesn(t
like it

Thanks again

Hubert
Lyon, France



--- End Message ---
--- Begin Message ---

thnx.. will try it out...

cheers,
sands

-Original Message-
From: Mike Flynn [mailto:[EMAIL PROTECTED]]
Sent: sexta-feira, 5 de Abril de 2002 17:27
To: Sandeep Murphy; 'Svensson, B.A.T. (HKG)'
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] update?'


I doubt there is any way to do this without using an intermediate step.  I 
would grab all the data you need from whichever tables you are grabbing 
from, into a temporary array in PHP, including whatever keys you are using 
to place them into the ot

php-windows Digest 9 Apr 2002 08:01:14 -0000 Issue 1084

2002-04-09 Thread php-windows-digest-help


php-windows Digest 9 Apr 2002 08:01:14 - Issue 1084

Topics (messages 12968 through 12978):

problems with imap_mail()
12968 by: Jeff Vandenberg

Rounding
12969 by: Wayne Hinch
12971 by: Ross Fleming
12974 by: Mike Flynn
12978 by: Ross Fleming

Re: mail() with attachments
12970 by: George Pitcher
12975 by: Mike Flynn

Re: whois servers
12972 by: Piotr Pluciennik
12973 by: Piotr Pluciennik

Re: Session Destroy with IE6
12976 by: Webmaster

Re: Cookies and IIS5
12977 by: Steve Yates

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

I'm having problems trying to get the imap_mail() function working. I have
the imap dll extention loaded up, and all of the other imap functions work
just fine.. open, close, check, popen, etc.  But when i try to use
imap_mail, one of the more important functions, it spits out at me.
"Warning: imap_mail() is not supported in this PHP build in c:\program
files\apache group\apache\htdocs\test.php on line 20
"

I'm running php 4.1.1 as a module for apache 1.3.22 on a win2k pro box.

I've tried to use the regular mail(), but that's been giving me problems as
well, but of a different sort, which I can work around, but would like to
get the imap functions working so that I can make a couple of other scripts.

Jeff


--- End Message ---
--- Begin Message ---

Hi all,
 
Is it possible to round to 2 decimal places in PHP without having to
push the data into mysql and out again?
 
Cheers,
 
Wayne

--- End Message ---
--- Begin Message ---

Multiply by 100, take the absolute value and divide by 100 again

-Original Message-
From: Wayne Hinch [mailto:[EMAIL PROTECTED]]
Sent: 08 April 2002 20:36
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Rounding


Hi all,
 
Is it possible to round to 2 decimal places in PHP without having to
push the data into mysql and out again?
 
Cheers,
 
Wayne


--- End Message ---
--- Begin Message ---

At 09:43 PM 4/8/02 +0100, Ross Fleming wrote:
>Multiply by 100, take the absolute value and divide by 100 again

That will round down to 2 decimal places.  To round to the nearest 2 
decimal places, to what Ross said but instead of getting the absolute 
value, just round it normally.

>Hi all,
>
>Is it possible to round to 2 decimal places in PHP without having to
>push the data into mysql and out again?
>
>Cheers,
>
>Wayne


--- End Message ---
--- Begin Message ---

Absolute, round, same thing.. ;)  Cheers mate

Ross

-Original Message-
From: Mike Flynn [mailto:[EMAIL PROTECTED]]
Sent: 09 April 2002 00:30
To: [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]
Subject: RE: [PHP-WIN] Rounding


At 09:43 PM 4/8/02 +0100, Ross Fleming wrote:
>Multiply by 100, take the absolute value and divide by 100 again

That will round down to 2 decimal places.  To round to the nearest 2 
decimal places, to what Ross said but instead of getting the absolute 
value, just round it normally.

>Hi all,
>
>Is it possible to round to 2 decimal places in PHP without having to
>push the data into mysql and out again?
>
>Cheers,
>
>Wayne


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--- End Message ---
--- Begin Message ---

Darvin Andrioli suggested, on 20020328:

> http://www.zend.com/zend/spotlight/sendmimeemailpart1.php

Sorry, I was none the wiser after reading this article, as to how to get php
to send an attachment with an email message. The attachment in this case is
being generated from db output and saved as a 'csv' file.

George
> > I'm doing a query/export/email routine and I can't find anything on
> > attachments. The manual says that attachments can be handled but
> > doesn't say
> > how or give any examples.
> >
> > I'm sure that this must be in widespread use, so can anyone give me a
> > pointer or two?
> >
> > George
> >



--- End Message ---
--- Begin Message ---

Hmm?  The article explains exactly how to do it.  You can make a multipart 
MIME e-mail where the first part is the message, and the 2nd part is the 
file attachment (and more parts for additional files).  The file data is 
encoded using base64 encoding in this example.  You just need to create the 
message body as it shows in the tutorial and then use PHP's mail() function 
to send it.

-Mike

At 08:45 AM 4/8/02 +0100, George Pitcher wrote:
>Darvin Andrioli suggested, on 20020328:
>
> > http://www.zend.com/zend/spotlight/sendmimeemailpart1.php
>
>Sorry, I was none the wiser after reading this article, as to how to get php
>to send an attachment with an email message. The attachment in this case is
>being generated from db output and saved as a 'csv' file.
>
>George


--- End Message ---
--- Begin Mes

php-windows Digest 9 Apr 2002 23:02:42 -0000 Issue 1085

2002-04-09 Thread php-windows-digest-help


php-windows Digest 9 Apr 2002 23:02:42 - Issue 1085

Topics (messages 12979 through 12989):

Re: Rounding
12979 by: Svensson, B.A.T. (HKG)
12982 by: Mike Flynn
12986 by: Svensson, B.A.T. (HKG)
12987 by: Mike Flynn
12989 by: Ross Fleming

Session information not stored in php 4.1.2
12980 by: Martin Kemp
12981 by: Fabian Deutsch
12983 by: Lee, Ford

FDF- how do I install?
12984 by: Thomas Holm

R: [PHP-WIN] FDF- how do I install?
12985 by: Alberto. Sartori

The directory name is invalid.
12988 by: dumbsnail

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

> -Original Message-
> From: Mike Flynn
> Sent: Tuesday, April 09, 2002 1:30 AM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED];
> [EMAIL PROTECTED]
> Subject: RE: [PHP-WIN] Rounding
> 
> 
> At 09:43 PM 4/8/02 +0100, Ross Fleming wrote:
> >Multiply by 100, take the absolute value and divide by 100 again
> 
> That will round down to 2 decimal places.  To round to the nearest 2 
> decimal places, to what Ross said but instead of getting the absolute 
> value, just round it normally.

What's "normal" rounding??

One can round with a roof function, or one can round with a sealing function,
or one can round always towards odd numbers, or always even number, or one can
round by adding or subtracting a factor 0,5 to the multiple before rounding,
or one can use a combination of the above, so I am curious about to know what's
normal, and why it is normal then?


//Anders - former financial programmer
 

--- End Message ---
--- Begin Message ---

Well, I suppose rounding by the dictionary's definition can mean any kind 
of approximation to a number of less significant digits, so I see your 
point.  But by the popular vernacular and by the default precision for any 
programming language's "round" function that I've encountered (including 
PHP's), the default precision is to round to the nearest integer.  Thus, by 
both of these modest leaps of assumption, normal rounding to me is rounding 
to the nearest integer.

-Mike

At 11:50 AM 4/9/2002 +0200, Svensson, B.A.T. (HKG) wrote:
> > That will round down to 2 decimal places.  To round to the nearest 2
> > decimal places, to what Ross said but instead of getting the absolute
> > value, just round it normally.
>
>What's "normal" rounding??


--- End Message ---
--- Begin Message ---

> Well, I suppose rounding by the dictionary's definition can mean any kind 
> of approximation to a number of less significant digits, so I see your 
> point.

To be a bit philosophical about it, yes. Rounding is always a matter of losing
information (e.g. precision), and you can never tell in what "direction" the
information was lost. 

Ex:

The number '2' I now have, was it - to be extreme - it '1,1' (a sealing
function) or was it '2,9' (a floor function) before? You can never really
tell...

> But by the popular vernacular and by the default precision for any 
> programming language's "round" function that I've encountered (including 
> PHP's), the default precision is to round to the nearest integer. 

Which integer is "nearest" for 1,5? 1 or 2? To round a decimal number is not
as straight forward as it might appear in the first case.

Anybody who happens to know what Kunts Handbook says in this issue?

> Thus, by 
> both of these modest leaps of assumption, normal rounding to me is rounding 
> to the nearest integer.

I agree that most rounding functions probably performs a sealing function
when the less significant decimal is >5 and a floor function when it is <5.

But what is a normal behavior when it is ==5 ???

In the bitter end this choice is up to the API writers own whim, but in most
case I guess (s)he ignore this case, and I would guess that most rounding
function then perform a floor function in the case of ==5 ().

The point I want to make is this: You'll never know until you tested it!

Because of this I believe it a bit ambiguous to say "normal" since it hardly
can't exist a "normal" way to perform a rounding. Or??

Secondly, because of this "phenomena" some programmers might frequently find
them self having to answers question from customer like:

"Why does we miss $ in this last summary report?". 


> At 11:50 AM 4/9/2002 +0200, Svensson, B.A.T. (HKG) wrote:
> > > That will round down to 2 decimal places.  To round to the nearest 2
> > > decimal places, to what Ross said but instead of getting the absolute
> > > value, just round it normally.
> >
> >What's "normal" rounding??
> 

--- End Message ---
--- Begin Message ---

At 05:49 PM 4/9/02 +0200, Svensson, B.A.T. (HKG) wrote:
>The number '2' I now have, was it - to be extreme - it '1,1' (a sealing
>f

php-windows Digest 10 Apr 2002 13:57:13 -0000 Issue 1086

2002-04-10 Thread php-windows-digest-help


php-windows Digest 10 Apr 2002 13:57:13 - Issue 1086

Topics (messages 12990 through 13000):

checking for characters
12990 by: brother
12991 by: Egil Helland
12992 by: Matt Hillebrand
12993 by: Ross Fleming
12994 by: Ross Fleming
12995 by: Matt Hillebrand
12997 by: Ross Fleming
12998 by: Svensson, B.A.T. (HKG)

Uploading large Files on IIS5
12996 by: Alexander Barisic

Re: Session information not stored in php 4.1.2
12999 by: Martin Kemp
13000 by: Lee, Ford

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

I tried my best to find a nifty function to check for letters in a string
but with no luck, maybe the sleepnesfactor has to do with it? (it's 01:05am
here in Sweden).

I have a form that posts some text, one field is a emailadressthing, I want
to check the string that this field produces and see if there is a @ and at
leaste one . after the @.

help me =)

z

/brother

--- End Message ---
--- Begin Message ---

Brush up on your patternmatching then, brother. Check the php.net manual 
on regexp.

If you want more readable code, try splitting the string (explode) on @ 
first, then split the segment after @ that you now have on . again.

Cheers,


Egil (in Norway, so I am way past bedtime myself :))

On Wednesday, April 10, 2002, at 01:07 AM, brother wrote:

> I tried my best to find a nifty function to check for letters in a 
> string
> but with no luck, maybe the sleepnesfactor has to do with it? (it's 
> 01:05am
> here in Sweden).
>
> I have a form that posts some text, one field is a emailadressthing, I 
> want
> to check the string that this field produces and see if there is a @ 
> and at
> leaste one . after the @.
>
> help me =)
>
> z
>
> /brother
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
--
egil helland / it consultant (mcse, web technology)
web: ikon.as / egil.net


--- End Message ---
--- Begin Message ---

I like Egil's idea of readable code using explode and regular
expressions. Or, you could use this function I wrote:

function isValidEmail($email) {
   if(strlen($email) < 6)
  return false;
   $at = -1;  // index of '@'
   for($i=0; $i$at && $imailto:[EMAIL PROTECTED]] 

Brush up on your patternmatching then, brother. Check the php.net manual

on regexp.

If you want more readable code, try splitting the string (explode) on @ 
first, then split the segment after @ that you now have on . again.

Cheers,


Egil (in Norway, so I am way past bedtime myself :))

On Wednesday, April 10, 2002, at 01:07 AM, brother wrote:

> I tried my best to find a nifty function to check for letters in a
> string
> but with no luck, maybe the sleepnesfactor has to do with it? (it's 
> 01:05am
> here in Sweden).
>
> I have a form that posts some text, one field is a emailadressthing, I
> want
> to check the string that this field produces and see if there is a @ 
> and at
> leaste one . after the @.
>
> help me =)
>
> z
>
> /brother
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
--
egil helland / it consultant (mcse, web technology)
web: ikon.as / egil.net


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




--- End Message ---
--- Begin Message ---

This was posted to the same group ages ago:

if(ereg(
"^[^@ ]+@([a-zA-Z0-9\-]+\.)+([a-zA-Z0-9\-]{2}|net|com|gov|mil|org|edu|int)$"
,$email))
{
  //email address is valid
}
else
{
  // it ain't
}

Or something like that.  I'd personally use a couple of explodes though

Ross


-Original Message-
From: Matt Hillebrand [mailto:[EMAIL PROTECTED]]
Sent: 10 April 2002 00:34
To: 'Egil Helland'; 'brother'
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] checking for characters


I like Egil's idea of readable code using explode and regular
expressions. Or, you could use this function I wrote:

function isValidEmail($email) {
   if(strlen($email) < 6)
  return false;
   $at = -1;  // index of '@'
   for($i=0; $i$at && $imailto:[EMAIL PROTECTED]]

Brush up on your patternmatching then, brother. Check the php.net manual

on regexp.

If you want more readable code, try splitting the string (explode) on @
first, then split the segment after @ that you now have on . again.

Cheers,


Egil (in Norway, so I am way past bedtime myself :))

On Wednesday, April 10, 2002, at 01:07 AM, brother wrote:

> I tried my best to find a nifty function to check for letters in a
> string
> but with no luck, maybe the sleepnesfactor has to do with it? (it's
> 01:05am
> here in Sweden).
>
> I have a form that posts some text, one field is a email

php-windows Digest 11 Apr 2002 02:31:46 -0000 Issue 1087

2002-04-10 Thread php-windows-digest-help


php-windows Digest 11 Apr 2002 02:31:46 - Issue 1087

Topics (messages 13001 through 13014):

Re: Uploading large Files on IIS5
13001 by: Fabian Deutsch
13003 by: Alexander Barisic
13004 by: Alexander Barisic
13008 by: Fabian Deutsch
13010 by: Christoph Grottolo

Another Newbie Question
13002 by: Nik Alleyne
13005 by: Mike Flynn
13007 by: Shrock, Court
13009 by: Robin Bolton

Newbie to php
13006 by: Nik Alleyne

Apache 2.0.35
13011 by: Chris Dion

PHP and Windows (newbie!!)
13012 by: Tiago Simões

Re: checking for characters -- preg_match()
13013 by: Matt Hillebrand

Tired of fighting - function doesn't exist !!
13014 by: Quique

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

Hallo,
in der php.ini gibt es den eintrag "upload_max_filesize = 2M" der vielleicht
zu klein eingestellt?

mfg
fabian deutsch


"Alexander Barisic" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Habe ein Riesenproblem:
> Betreibe einen IIS5 und habe eine HTML-Seite gebaut mit der man
Fileuploads
> per POST auf den Server ausführen kann.
>
> Rufe ich die Seite lokal vom Server selbst aus ab kann ich problemlos auch
> grosse Dateien hochladen. Nutze ich die Seite über unser lokales Netz kann
> ich Dateien bis ca. 120k problemlos hochladen. Bei grösseren Dateien
bricht
> der Upload ab und ich erhalte eine Fehlerseite (Server oder DNS nicht
> gefunden).
>
> Die Uploads dauern unverhältnismässig lange (60k über unser 100MBit Netz
ca.
> 10 bis 15 Sekunden) - allerdings nur beim Upload - der Download ist ok.
>
> Auf dem Server läuft der aktuelle Small Business Server. Zuerst klappten
> Uploads übers Netz bis ca. 60k - dann habe ich den ISA Server
> deinstalliert - nun klappts bis ca. 120k. Immer noch weit entfernt von
> perfekt...
>
> Das Script läuft unter PHP 4 (V4.2, V4.12 liefert aber das selbe
Ergebnis).
> Unter Java und Perl habe ich das gleiche Phänomen. Unter ASP habe ich's
noch
> nicht versucht.
>
> Das lokale Netz ist absolut stabil. Per FTP kann ich vom Client problemlos
> 500 MB Dateien hoch laden - nur halt nicht per HTTP.
>
> Habe auf dem Server alle Beschränkungen komplett aufgehoben (QoS,
> Bandbreiten- und Prozessorlastschranken im IIS, etc...). Habe auch schon
mal
> versucht in der Registry den UploadReadAhead zu erhöhen - kein Erfolg. Der
> inetinfo-Prozess auf dem Server sieht mir mit im Schnitt 8% CPU Last und
> 24MB RAM Nutzung auch ok aus.
>
> Zwischen Server und Client hängen keine sonstigen Komponenten (ausser
einem
> Switch). Das Problem besteht von verschiedenen Clients aus. Die Clients
> laufen unter W2K/IE 6, der Server mit W2K/IIS5 (bzw. Small Business
Server)
> jeweils mit allen aktuellen Fixes und Patches.
>
> Hat jemand eine Idee ? Ich weiss echt nicht weiter...
>
>
> --
> Alexander Barisic
>
> OLMeRO AG
> Industriestrasse 24
> CH-8305 Dietlikon
> Schweiz
>
> Telefon +41 - 1 - 805 44 69
> Telefax +41 - 1 - 805 44 65
> [EMAIL PROTECTED]
>
>



--- End Message ---
--- Begin Message ---

Sorry for posting in german - seems like I was a bit confused. So here you
are in english :


I'm having trouble with an HTML page handling file uploads via POST on an
IIS5.

If I open the page locally on the server it is working just fine. If I call
the page from a workstation in our LAN it works fine for uploading files up
to approximately 120k. All tries to upload files bigger than that result in
the server canceling the connection and returning an error page ("server or
DNS record not found").

The uploads are taking quiet long (about 10 to 15sec. for a 60k file over
the 100MBit LAN). Download speed is fine. FTP is working just fine
(uploading a 500 MB file to the server was no prob). The inetinfo-Process on
the server seems ok (8% CPU usage in average and about 24MB of RAM).

The server is running MS Small Business Server. First fileuploads up to 60k
worked fine - than I uninstalled the ISA-Server (Proxy and firewall) and now
it works for files up to about 120k.

The script is running under PHP4 (V4.2, but I tried 4.12 with the same
effect). Java and Perl are running into the same trouble.

The problem seems to be in the IIS (since it apears with PHP, Java and
Perl). We tried with Workstations running W2K/IE6, W2K/IE5 and NT4. The
server is running W2LK/IIS (packed in the Small Business Server).

Anyone got an idea ?

Alex



--- End Message ---
--- Begin Message ---

All values concerning file uploads in php.ini are set to 2 MB or more. But
the problem appears starting with files that are 120k...

Alex

"Fabian Deutsch" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hallo,
> i

php-windows Digest 11 Apr 2002 14:32:51 -0000 Issue 1088

2002-04-11 Thread php-windows-digest-help


php-windows Digest 11 Apr 2002 14:32:51 - Issue 1088

Topics (messages 13015 through 13031):

Apache 2 and PHP
13015 by: Gaylen Fraley
13016 by: Rasmus Lerdorf
13018 by: Helphand
13019 by: Helphand
13020 by: Rasmus Lerdorf
13021 by: Steffen
13022 by: Eric

Re: Tired of fighting - function doesn't exist !!
13017 by: Rasmus Lerdorf

Re: Uploading large Files on IIS5
13023 by: Svensson, B.A.T. (HKG)

Warnings...
13024 by: Martin.Andrew
13025 by: Daniel Reichenbach
13026 by: Martin.Andrew
13029 by: Daniel Reichenbach
13030 by: Martin.Andrew
13031 by: Daniel Reichenbach

Session Variable Problem
13027 by: R.S. Herhuth
13028 by: Mike Flynn

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

When trying to set up PHP with Apache 2, the following error occurs:

Syntax error on line 175 of  /Apache2/conf/httpd.conf:
Cannot load /php/sapi/php4apache.dll into server: One of the library files
nee
ded to run this application cannot be found.

How do I find what is missing?  It works under Apache 1.3.24

--
Gaylen
PHP KISGB v4.0.4 Guest Book http://www.gaylenandmargie.com/phpwebsite/




--- End Message ---
--- Begin Message ---

There is no Apache2 support for PHP yet.  Coming in a future version.

-Rasmus

On Wed, 10 Apr 2002, Gaylen Fraley wrote:

> When trying to set up PHP with Apache 2, the following error occurs:
>
> Syntax error on line 175 of  /Apache2/conf/httpd.conf:
> Cannot load /php/sapi/php4apache.dll into server: One of the library files
> nee
> ded to run this application cannot be found.
>
> How do I find what is missing?  It works under Apache 1.3.24
>
> --
> Gaylen
> PHP KISGB v4.0.4 Guest Book http://www.gaylenandmargie.com/phpwebsite/
>
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


--- End Message ---
--- Begin Message ---

At 09:51 PM 4/10/02 -0500, Gaylen Fraley wrote:
>When trying to set up PHP with Apache 2, the following error occurs:
>
>Syntax error on line 175 of  /Apache2/conf/httpd.conf:
>Cannot load /php/sapi/php4apache.dll into server: One of the library files
>nee
>ded to run this application cannot be found.
>
>How do I find what is missing?  It works under Apache 1.3.24

I had the same problem. I think it's an issue with the installer, it 
seemed to unzip
some files with bad file names (longfile name was set to the shortfile name).

My fix was to run the install a second time. Once I did that, everything
worked fine.

Scott





   


--- End Message ---
--- Begin Message ---

At 06:50 PM 4/10/02 -0700, Rasmus Lerdorf wrote:
>There is no Apache2 support for PHP yet.  Coming in a future version.

   That can't be right, I'm running Apache2 with PHP right now.

  Scott



--- End Message ---
--- Begin Message ---

Well, you are extremely lucky if you have the Apache module version of PHP
working with Apache 2.  It has been hit and miss version-wise for a while.
It will be solidified in a future version.  Perhaps 4.2, but probably not
stable until 4.3.

-Rasmus

On Wed, 10 Apr 2002, Helphand wrote:

> At 06:50 PM 4/10/02 -0700, Rasmus Lerdorf wrote:
> >There is no Apache2 support for PHP yet.  Coming in a future version.
>
>That can't be right, I'm running Apache2 with PHP right now.
>
>   Scott
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


--- End Message ---
--- Begin Message ---

Same here with running as module.
Running as cgi is running just fine with 4.1.2

Steffen

"Gaylen Fraley" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> When trying to set up PHP with Apache 2, the following error occurs:
>
> Syntax error on line 175 of  /Apache2/conf/httpd.conf:
> Cannot load /php/sapi/php4apache.dll into server: One of the library files
> nee
> ded to run this application cannot be found.
>
> How do I find what is missing?  It works under Apache 1.3.24
>
> --
> Gaylen
> PHP KISGB v4.0.4 Guest Book http://www.gaylenandmargie.com/phpwebsite/
>
>
>



--- End Message ---
--- Begin Message ---

Which version of PHP are you using? Do you mind post the PHP configuration
section of your Apache 2's httpd.conf? Thanks a lot!


"Helphand" <[EMAIL PROTECTED]> ¼¶¼g©ó¶l¥ó·s»D
:[EMAIL PROTECTED]
> At 06:50 PM 4/10/02 -0700, Rasmus Lerdorf wrote:
> >There is no Apache2 support for PHP yet.  Coming in a future version.
>
>That can't be right, I'm running Apache2 with PHP right now.
>
>   Scott
>
>



--- End Message ---
--- Begin Message ---

First of all, why not just use fsockopen() if all you need to do is
connect to a simp

php-windows Digest 12 Apr 2002 05:32:08 -0000 Issue 1089

2002-04-11 Thread php-windows-digest-help


php-windows Digest 12 Apr 2002 05:32:08 - Issue 1089

Topics (messages 13032 through 13047):

Dynamic querys to SQl Server
13032 by: R.S. Herhuth
13034 by: Svensson, B.A.T. (HKG)
13035 by: Mike Flynn

Re: whois servers
13033 by: Arijit Chaudhuri

COM interop and recordsets
13036 by: Fred Forsyth

Re: Another Newbie Question
13037 by: Nik Alleyne

Another Question!
13038 by: Nik Alleyne
13039 by: Svensson, B.A.T. (HKG)
13043 by: Mike Flynn

Session Errors
13040 by: Scott Carr

Problem Connecting to AS400 using ODBC
13041 by: Collins, Robert
13042 by: Svensson, B.A.T. (HKG)
13044 by: Collins, Robert

Problem with 4.0.6 through 4.2RC2
13045 by: Scott Carr

Re: Apache 2 and PHP
13046 by: Aasmund Sæter

Re: Configuring securely in IIS5 under Windows 2000 Server
13047 by: Svensson, B.A.T. (HKG)

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---


I'm new to php and I'm trying hard to get a grasp on pulling data from
SQL Server.

I'm looking for an efficient method for making dynamic queries to SQL server.



Basically what I have created so far is a page that dynamically builds
all of the column names of a database.  I have assigned each a unique
variable name.  When the user selects the check box next to the name and
submits the form, I am using the HTTP_POST_VARS() to explode out the
variables on the following page.  What I need to do though is create a
way to dynamically query the DB only returning the selected columns. 
What is an efficient way of doing this?

Does anyone know of any tutorials or examples that can get me close?

Ron

--- End Message ---
--- Begin Message ---

> From: R.S. Herhuth
> Sent: Thursday, April 11, 2002 4:41 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Dynamic querys to SQl Server
> 
> Basically what I have created so far is a page that dynamically builds
> all of the column names of a database.  I have assigned each a unique
> variable name.  When the user selects the check box next to the name and
> submits the form, I am using the HTTP_POST_VARS() to explode out the
> variables on the following page.  What I need to do though is create a
> way to dynamically query the DB only returning the selected columns. 
> What is an efficient way of doing this?
> 
> Does anyone know of any tutorials or examples that can get me close?

Effective and effective, and don't know if my suggestion is, but I (at
least the way I like to design things) is to pull all these things into
the database it self (but to be honest, it might mainly be because I
think it so bloody boring to write these web scripts.)

Anyhow, I uses the web server to passes (logical) messages to the data base,
and then the RDBMS resolves the requested "service" by performing some magical
dynamic bindings, e.g. looks up the proper stored procedure to execute, pass,
if needed, arguments and parameters to the stored procedure, and then BANG -
just feed back the answer to the web server, were the only purpose of the
web serer is to display whatever result set that was returned by the RDBMS.

So basically I view the web server only as a user interface management system,
and it purpose is only to display the information, and provide a communication
channel to the RDBMS to the enduser - no data processing is done at the webserer
end, mainly because the web server does have no clue what so ever what included
in the data base. 

What do I win with this? Well, I only once write a general communications
system at the web server end, and then I never ever need to do any more
programming at the webserver end since everything is controlled by the
RDBMS instead - no need for so called web-"programmers" anymore. A database
programmer is the only thing needed.

So the ingrediens for this cake is:

one Web Server
one RDBMS
a bit of Dynamic Name Binding
and lots of Information Hiding

--- End Message ---
--- Begin Message ---

If I understand you correctly, then you could try something like this:

===Page 1:
Select info to view...
 Name
 Email
 City

===Page 2:
$query  = 'SELECT ';
$first = true;
foreach ($columns AS $value) {
   if (!$first) {
 $query .= ', ';
   }
   else {
 $first = false;
   }
   $query .= $value;
}
$query .= 'FROM MyTable ';
$query .= 'ORDER BY Name';
$result = mysql_query($query);
echo '';
while ($row = mysql_fetch_row($result)) {
   echo '';
   foreach ($row AS $value) {
 echo "$value";
   }
   echo '';
}
echo '';

Obviously this is a pretty rough outline, but it gives you a basic idea of 
the way you could do this.  You can add bells & whistles and make it look 
nicer, add error checking, stuff 

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
13050 by: Chris Hogben

Different folder/ local test
13051 by: Tiago Simões
13054 by: Fabian Deutsch

String reduce
13052 by: Kriegers Horst
13053 by: Hugh Bothwell
13058 by: Nicola Delbono
13059 by: Matt Babineau
13060 by: Nicola Delbono

Instructions on how to resolve a DNS
13055 by: R.S. Herhuth
13056 by: Bob Curtis

PHP and ZIP
13057 by: Nicole Amashta

Tutorials on stored procedures using SQL Server
13061 by: R.S. Herhuth

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

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: [PHP-WIN] Re: Security using Apache & Windows
> 
> 
> No one can help?!  Please, please, please...
> 
> "Tim Mackenzie" <[EMAIL PROTECTED]> wrote in message
> > I'm running W2K with Apache and PHP4.  I'm going to be hosting a number of
> > websites that I would like to provide PHP support for.  What I don't want is
> > them to be able to access my entire file system.  They should, at most, be
> > only allowed read/write access to their site folder.  How do I go about
> > doing this?  I've looked around, but I haven't found something that
> > addresses this.  I know there's the basedir value (I think that's it), but I
> > don't understand how to use it.  Could somebody (several people) please post
> > any tips they have for securing the file system of a web server.  Thanks!

--- End Message ---
--- Begin Message ---

> 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 inherent security measure
> to be taken with PHP?  In short, if the OS/web server is fairly secure,
> PHP does not break that, correct?  That is my main concern.

As Bruce mentioned in another letter: security could potential be broken
by bad scripting on the server - you need to set up a policy about
what and what's not should be allowed. For example, submitting files
to the server, might induce a security problem, since people with less
moral might upload a "home made" script as a file, and then execute
that script on your server to explore further security issues. 

--- End Message ---
--- Begin Message ---

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 PROTECTED]">news:[EMAIL PROTECTED]...
> Good evening everyone,
> I am new (very new) to php. I was doing some research on the net and learn
> of this packaged and after reading just a couple of pages, i figure i
should
> learn this instead of ASP. It looks so easy. Anyhow here is my problem.
>
> I am trying to connect to the database (MySQL) however, I can't I am
> connecting to the server, but I cannot connect to my sample database.
>
> Here is my script?
>  mysql_connect("nik", "", "") or
>   die("could not connect to the database");
> mysql_select_db("guestbook") or
> die ("could not connect to the specified database");
> ?>
> I'm getting the "could not connect to the specified database" message.
>
> Please Help
> Thx
> Nik
>
>



--- End Message ---
--- Begin Message ---

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 in the
httpd.conf file i couldn't see the php script on the designated folder. I
know that in the other case i had to access via http://localhost/test.php
path. How do i test a page that is, let's say, in the c:\website\ folder?
(after i configured its path in httpd.conf file, of course)

i know that i should put something like this in the httpd.conf file


AddType application/x-httpd-php .php .phtml .php3
#Next line is optional (for viewing so

php-windows Digest 13 Apr 2002 10:20:30 -0000 Issue 1091

2002-04-13 Thread php-windows-digest-help


php-windows Digest 13 Apr 2002 10:20:30 - Issue 1091

Topics (messages 13062 through 13074):

Different folder | Local test - Help!! (part2)
13062 by: Tiago Simões
13063 by: Nicole Amashta
13074 by: firepages

Re: Another Newbie Question
13064 by: Nicole Amashta
13065 by: Nicole Amashta

Re: String reduce
13066 by: Ross Fleming
13069 by: Nicole Amashta
13070 by: Nicole Amashta
13071 by: Nicole Amashta

Re: PHP and ZIP
13067 by: Ross Fleming
13068 by: Nicole Amashta

Re: Tutorials on stored procedures using SQL Server
13072 by: Fabian Deutsch
13073 by: Marck D Pearlstone

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

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
configure the httpd.conf file (in the conf Apache subfolder) like this:

#this is the bottom part of the conf file


DocumentRoot "C:\merda"
ServerName website.localhost



AddType application/x-httpd-php .php
AddType application/x-httpd-php .php4
#Next line is optional (for viewing source)
AddType application/x-httpd-php-source .phps



and in the hosts.sam file in the C:\Windows\

127.0.0.1   localhost
127.0.0.1   website.localhost

It "sounds good to me. So why it doesn't work? Any ideas?






--- End Message ---
--- Begin Message ---

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 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
> configure the httpd.conf file (in the conf Apache subfolder) like this:
>
> #this is the bottom part of the conf file
>
> 
> DocumentRoot "C:\merda"
> ServerName website.localhost
> 
>
> 
> AddType application/x-httpd-php .php
> AddType application/x-httpd-php .php4
> #Next line is optional (for viewing source)
> AddType application/x-httpd-php-source .phps
> 
>
>
> and in the hosts.sam file in the C:\Windows\
>
> 127.0.0.1   localhost
> 127.0.0.1   website.localhost
>
> It "sounds good to me. So why it doesn't work? Any ideas?
>
>
>
>
>



--- End Message ---
--- Begin Message ---

Why not just set your DocumentRoot to "C:/"

or set up an alias - its much more likely to work than a virtual host

  Alias /C/ "c:/"

   DirectoryIndex index.php index.htm index.html


you would then access as

http://localhost/C/


"Tiago SimõEs" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 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
> configure the httpd.conf file (in the conf Apache subfolder) like this:
>
> #this is the bottom part of the conf file
>
> 
> DocumentRoot "C:\merda"
> ServerName website.localhost
> 
>
> 
> AddType application/x-httpd-php .php
> AddType application/x-httpd-php .php4
> #Next line is optional (for viewing source)
> AddType application/x-httpd-php-source .phps
> 
>
>
> and in the hosts.sam file in the C:\Windows\
>
> 127.0.0.1   localhost
> 127.0.0.1   website.localhost
>
> It "sounds good to me. So why it doesn't work? Any ideas?
>
>
>
>
>



--- End Message ---
--- Begin Message ---

 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 connect to the
specified database. Reason: " mysql_error_message());


Notice that you need to get the return from mysql_connect and pass it as 2nd
param to mysql_select_db.

Hope that works.


--
Nicole Amashta
Web Application Development
ABOL Software, Inc.
"Nik Alleyne" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Good evening everyone,
> I am new (very new) to ph

php-windows Digest 14 Apr 2002 01:36:06 -0000 Issue 1092

2002-04-13 Thread php-windows-digest-help


php-windows Digest 14 Apr 2002 01:36:06 - Issue 1092

Topics (messages 13075 through 13079):

Re: Instructions on how to resolve a DNS
13075 by: Curtis Strite

Re: Tutorials on stored procedures using SQL Server
13076 by: Fabian Deutsch

Premature end of header script
13077 by: M.L.

Re: String reduce
13078 by: Hugh Bothwell

Re: PHP and Windows (newbie!!)
13079 by: olinux

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

Go to www.dyndns.org.  

I use their server for www.killerpigs.com and www.madwhiteman.com both
of which are run of a domain hosted locally at my house. 

Enjoy!



-Original Message-
From: R.S. Herhuth [mailto:[EMAIL PROTECTED]] 
Sent: Friday, April 12, 2002 9:03 AM
Cc: [EMAIL PROTECTED]
Subject: [PHP-WIN] Instructions on how to resolve a DNS


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 Mailing List (http://www.php.net/)
To unsubscribe, v



--- End Message ---
--- Begin Message ---


"Marck D Pearlstone" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 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-programmed sequences of SQL instructions in
> a "subroutine" type format for simplified execution of standardised
> functions. These are known as Stored Procedures.
>
> --
> Cheers -- .\\arck D. Pearlstone -- Consultant Software Engineer
> ___
> \ BrainStorm - Brain extension - see http://www.brainstormsw.com  /
>  \ PGP Key ID: 0x929DCDA0 | www: http://www.silverstones.com /
>
>

Thanks now I've got an idea :)

fabian deutsch



--- End Message ---
--- Begin Message ---

Hi,

I have configured Apache 2.0 in a Windows 2000 Prof. version. The web server
is working fine except for the php scripting  ( perl is ok though ). For all
the php pages I have tried I always get the same error :"Premature end of
header script", I have tested the same php scripts in the command line and
they run without error. Any ideas? I have been surfing the net the for a
while and I have found lots of comments on this problem but  no clear
solution. ( the php output seems ok to me:  there is a blank line after the
headers ). I am using php-4.1.2.
thanks

m.l.





--- End Message ---
--- Begin Message ---


"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

alternatively,

$newstr = preg_replace("/;+/",";",$str);



--- End Message ---
--- Begin Message ---

open httpd conf witha text editor (you can find it in
the apache root folder)

find DocumentRoot and change it to whatever you like.
(I think that you will need to change this in 2
places.)

For my setup I have d:\projects\ as the root web
folder. All of my website projects are contained in
folders inside "projects" 

thus localhost/websitename/ retrieves the website
project

olinux

--- Tiago Simões <[EMAIL PROTECTED]> wrote:
> Hello everybody!
> 
> I'm just entering the wonderful world of PHP and i
> already have a doubt. I
> installed the apache server on my Windows ME :-p, to
> use for local tests. I
> have to acess it manually (meaning i have to click
> the apache startup
> everytime i want to do something...). Anyway i
> proceded to install PHP (on
> c:\php\, and everything went ok. I test my first php
> file ( a simple echo
> command) at the http://localhost directory (or
> c:\program files\apache
> group\apache\htdocs). It all went ok. So i started
> wondering if it detected
> a php outside of that path, like in the desktop or
> some other folder (since
> i'm very keen on having my sites in specif 
> folders). Unfortunately it
> didn't, it just showed the php as a txt file. Is
> there anyway to make the
> files readable everywhere?
> 
> Thanks in advance,
> Tiago Simões
> 
> 
> 
> 
> 
> 
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

--- End Messa

php-windows Digest 14 Apr 2002 14:15:06 -0000 Issue 1093

2002-04-14 Thread php-windows-digest-help


php-windows Digest 14 Apr 2002 14:15:06 - Issue 1093

Topics (messages 13080 through 13085):

Frontpage- help!
13080 by: JJ in MD_USA
13081 by: Scott Carr

Zip Code mysql db
13082 by: Russell Griechen

Re: Tutorials on stored procedures using SQL Server
13083 by: Christoph Grottolo
13084 by: John Lim

Re: Apache 2.0.35
13085 by: Haagen Waade

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

All I want to do is have MS Frontpage 2000 be able to interpret the php3
files.  Does this mean that I have to install a server on my Win98 OS?  I
have downloaded and installed PHP.exe and all that, and also the rocket
addin from MS knowledgebase, but it still doesn't seem to interpret.

Thanks for any help,
JJ



--- End Message ---
--- Begin Message ---

Download a copy of Apache.  It runs on Win32 OS, and just about anywhere else
you happen to be.  

If you have problems setting it up, I'll help you.

http://httpd.apache.org

-- 
Scott Carr
OpenOffice.org
Whiteboard-Doc Maintainer
http://whiteboard.openoffice.org/doc/


Quoting JJ in MD_USA <[EMAIL PROTECTED]>:

> All I want to do is have MS Frontpage 2000 be able to interpret the php3
> files.  Does this mean that I have to install a server on my Win98 OS?  I
> have downloaded and installed PHP.exe and all that, and also the rocket
> addin from MS knowledgebase, but it still doesn't seem to interpret.
> 
> Thanks for any help,
> JJ
> 
> 
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 


-
This mail sent through IMP: http://horde.org/imp/

--- End Message ---
--- Begin Message ---

I need to search for the nearest entity in range of 100?? miles.
I have a mysqldump...city table does not have a zip_code field or
zip_code_id
I would prefer to enter in zip_code either/or by memory or by data
input...maybe a zip+4 or foreign. In some tables (city for instance)I
would want to use zip_code_id and others I would use zip_code and use
info supplied by others or entered by others.
is there an option to use:

CREATE TABLE zip_code (
   zip_code varchar (15)
PRIMARY KEY (zip_code)
and would this serve as lookup table?
Any other comments appreciated
I realize I would have to alter the city table shown below.
#
# Table structure for table 'city, country, state'
#
CREATE TABLE city (
   city_id mediumint(9) DEFAULT '0' NOT NULL auto_increment,
   name varchar(75) NOT NULL,
   latitude float(7,5) DEFAULT '0.0' NOT NULL,
   longitude float(7,5) DEFAULT '0.0' NOT NULL,
   state_id tinyint(4) DEFAULT '0' NOT NULL,
   PRIMARY KEY (city_id),
   KEY name (name),
   KEY latitude (latitude),
   KEY longitude (longitude),
   KEY state_id (state_id)

CREATE TABLE state (
   state_id tinyint(4) DEFAULT '0' NOT NULL auto_increment,
   abbrev char(2) NOT NULL,
   name varchar(30) NOT NULL,
   country_id char(2) NOT NULL,
   PRIMARY KEY (state_id),
   KEY country_id (country_id),
   KEY name (name),
   KEY abbrev (abbrev)CREATE TABLE country (
   country_id char(2) NOT NULL,
   name varchar(50) NOT NULL,
   PRIMARY KEY (country_id),
   KEY name (name)

Russell Griechen


--- End Message ---
--- Begin Message ---

There's a tutorial on PHP/SQL Server stored procedures at
http://www.devarticles.com/content.php?articleId=100

Christoph


"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



--- End Message ---
--- Begin Message ---

Try www.sqlteam.com

"R.S. Herhuth" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> Anyone know of any internet based tutorials on using stored procedures
> with SQL Server?
>
> Thanks,
> ROn



--- End Message ---
--- Begin Message ---

4.2.0 RC3 is out, and with Apache2 support.

But how to configure it with apache2 ? I see there is a
/experimental/apache2filter.dll
I guess this is the new module for apache2, but how do I configure it in
httpd.conf
I've tried to load it as an module, but did not get it to work.


"Chris Dion" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Now that there is a binary out for apache 2 for windows...are we going to
> get a binary for php for apache 2?  Anyone know?  Or how I can manage to
> compile php for apache2?
>
>



--- End Message ---


php-windows Digest 15 Apr 2002 11:54:21 -0000 Issue 1094

2002-04-15 Thread php-windows-digest-help


php-windows Digest 15 Apr 2002 11:54:21 - Issue 1094

Topics (messages 13086 through 13093):

Maybe why ImageTTFtext() does not work on Windows machines...
13086 by: The Walters

PHP + IIS Problem
13087 by: Dian Nedeltchev
13088 by: Rasmus Lerdorf
13091 by: Steve

Re: Apache 2.0.35
13089 by: Steffen

MySQL-max and transaction isolation level ?
13090 by: Sviss Cobazor

Something involving php, but not windows.
13092 by: Michael Reynolds

Re: Security using Apache & Windows
13093 by: Tim Mackenzie

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

I think this might be why ImageTTFtext from the Image Functions does not
work when using GD 2.0.0 or higher (php_gd2.dll). If you use php_gd.dll this
function works but the GD library doesn't support true color support. If you
want true color support you have to use php_gd2.dll but then this function
doesnt work. Anyone experiencing the same problem? Could anyone recompile
the php_gd2.dll with Freetype and see if this is the problem?


Does anyone know if the same person who compiled php_gd.dll also
compiled php_gd2.dll?

I think the problem might be that whoever compiled the php_gd2.dll that
ships with PHP forgot to compile FreeType library while compiling GD.
This is only a guess because I heard someone say that ImageTTFtext works
on unix machines which leads me to believe this is the problem. I would
test it myself but I don't know how to compile the file :-(




--- End Message ---
--- Begin Message ---

Hello,
i have a problem with php and IIS.
I'm not sure where is the real problem, but when I want to pass a parameter
to web page
and after that print the value of this parameter , is not working.
An Example
http://www.xxxyyy.com/test.php?a=20
and into my web page i have :



not working ..
i don't have idea where is the problem?
Can you help me ?
Dian Nedeltchev



--- End Message ---
--- Begin Message ---

Turn on register_globals in your php.ini file or use $_GET['a']

On Sun, 14 Apr 2002, Dian Nedeltchev wrote:

> Hello,
> i have a problem with php and IIS.
> I'm not sure where is the real problem, but when I want to pass a parameter
> to web page
> and after that print the value of this parameter , is not working.
> An Example
> http://www.xxxyyy.com/test.php?a=20
> and into my web page i have :
>
> 
>
> not working ..
> i don't have idea where is the problem?
> Can you help me ?
> Dian Nedeltchev
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


--- End Message ---
--- Begin Message ---

Dian

add double quotes after print around the variable $a
like so: 





Dian Nedeltchev wrote:
> 
> Hello,
> i have a problem with php and IIS.
> I'm not sure where is the real problem, but when I want to pass a parameter
> to web page
> and after that print the value of this parameter , is not working.
> An Example
> http://www.xxxyyy.com/test.php?a=20
> and into my web page i have :
> 
> 
> 
> not working ..
> i don't have idea where is the problem?
> Can you help me ?
> Dian Nedeltchev

--- End Message ---
--- Begin Message ---

This works for me:

LoadModule php4_module d:/bin/php/experimental/apache2filter.dll
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

Steffen


"Haagen Waade" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 4.2.0 RC3 is out, and with Apache2 support.
>
> But how to configure it with apache2 ? I see there is a
> /experimental/apache2filter.dll
> I guess this is the new module for apache2, but how do I configure it in
> httpd.conf
> I've tried to load it as an module, but did not get it to work.
>
>
> "Chris Dion" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Now that there is a binary out for apache 2 for windows...are we going
to
> > get a binary for php for apache 2?  Anyone know?  Or how I can manage to
> > compile php for apache2?
> >
> >
>
>



--- End Message ---
--- Begin Message ---

Hi NG.

Can anybody tell me what the possible isolation levels for MySQL-max means
while using BDB tables?
The meaning of each possible isolation level isn't described, only what
levels are possible to set.

You can start your server with one of the following values:

transaction-isolation= READ-UNCOMMITTED, READ-COMMITTED, REPEATABLE-READ,
SERIALIZABLE

But what does each of these mean?

thanks in advance...

~ Sviss




--- End Message ---
--- Begin Message ---

I know this is the windows list, but for 1 question, I don't
feel the need to subscribe to the other lists.  Would anyone
be able to tell me how to run a single php script as root,
but apache still run as a 

php-windows Digest 16 Apr 2002 03:15:47 -0000 Issue 1095

2002-04-15 Thread php-windows-digest-help


php-windows Digest 16 Apr 2002 03:15:47 - Issue 1095

Topics (messages 13094 through 13115):

Re: Apache 2.0.35
13094 by: Chris Dion
13115 by: Haagen Waade

Re: String reduce
13095 by: Kriegers Horst

Re: Tutorials on stored procedures using SQL Server
13096 by: Svensson, B.A.T. (HKG)

Re: MySQL-max and transaction isolation level ?
13097 by: Svensson, B.A.T. (HKG)
13098 by: Svensson, B.A.T. (HKG)

HELP! Connect or no connect, that's the question...
13099 by: Syd.gmx.net
13114 by: Brad Thomas

Processing forms and emailing results
13100 by: R.S. Herhuth

Re: Security using Apache & Windows
13101 by: Mike Flynn
13102 by: Svensson, B.A.T. (HKG)

How do Pear::DB and ADODB stack up against each other?
13103 by: Asendorf, John

Re: Something involving php, but not windows.
13104 by: Ray Hunter

Re: Frontpage- help!
13105 by: Woolsey, Fred
13109 by: Roger

extention php for win
13106 by: Kimkof.aol.com

PHP stable and for production
13107 by: Roger
13108 by: Roger
13110 by: Christoph Grottolo

Re: Problems with mail()
13111 by: Patrick Reagan

COM and ADODB access
13112 by: Scott Carr

Re: PHP and ZIP
13113 by: Jeff Waldock

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

Tried that still can't start apache2.  What version and stuff are you using
and are you sure that's all you added to your http.conf?

--Chris

"Steffen" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> This works for me:
>
> LoadModule php4_module d:/bin/php/experimental/apache2filter.dll
> AddType application/x-httpd-php .php
> AddType application/x-httpd-php-source .phps
>
> Steffen
>
>
> "Haagen Waade" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > 4.2.0 RC3 is out, and with Apache2 support.
> >
> > But how to configure it with apache2 ? I see there is a
> > /experimental/apache2filter.dll
> > I guess this is the new module for apache2, but how do I configure it in
> > httpd.conf
> > I've tried to load it as an module, but did not get it to work.
> >
> >
> > "Chris Dion" <[EMAIL PROTECTED]> wrote in message
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > Now that there is a binary out for apache 2 for windows...are we going
> to
> > > get a binary for php for apache 2?  Anyone know?  Or how I can manage
to
> > > compile php for apache2?
> > >
> > >
> >
> >
>
>



--- End Message ---
--- Begin Message ---

Thx, Steffen!

I got it to work now.
I still had the old php.ini file, and php4ts.dll file (from 4.1.2); and even
that is working with the apache2filer!
Guess it's not depenent on the php version then?

Chirs: yes, this is all you need to enable php.

h.

"Chris Dion" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Tried that still can't start apache2.  What version and stuff are you
using
> and are you sure that's all you added to your http.conf?
>
> --Chris
>
> "Steffen" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > This works for me:
> >
> > LoadModule php4_module d:/bin/php/experimental/apache2filter.dll
> > AddType application/x-httpd-php .php
> > AddType application/x-httpd-php-source .phps
> >
> > Steffen
> >
> >
> > "Haagen Waade" <[EMAIL PROTECTED]> wrote in message
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > 4.2.0 RC3 is out, and with Apache2 support.
> > >
> > > But how to configure it with apache2 ? I see there is a
> > > /experimental/apache2filter.dll
> > > I guess this is the new module for apache2, but how do I configure it
in
> > > httpd.conf
> > > I've tried to load it as an module, but did not get it to work.
> > >
> > >
> > > "Chris Dion" <[EMAIL PROTECTED]> wrote in message
> > > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > > Now that there is a binary out for apache 2 for windows...are we
going
> > to
> > > > get a binary for php for apache 2?  Anyone know?  Or how I can
manage
> to
> > > > compile php for apache2?
> > > >
> > > >
> > >
> > >
> >
> >
>
>



--- End Message ---
--- Begin Message ---

Thanks to all who helped me

Horst

> -Message d'origine-
> De:   Hugh Bothwell [SMTP:[EMAIL PROTECTED]]
> Date: vendredi, 12. avril 2002 16:02
> À:[EMAIL PROTECTED]
> Objet:[PHP-WIN] Re: String reduce
> 
> 
> "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
> 
> alternatively,
> 
> $newstr 

php-windows Digest 16 Apr 2002 16:56:41 -0000 Issue 1096

2002-04-16 Thread php-windows-digest-help


php-windows Digest 16 Apr 2002 16:56:41 - Issue 1096

Topics (messages 13116 through 13128):

Re: PHP stable and for production
13116 by: Mike Maltese

PHP/MySQL Query Prob
13117 by: Jason Soza

Problem with uploading Files with PHP 4.1.2 on IIS
13118 by: Uhaj
13120 by: Evan
13124 by: Mike Flynn

Re: Apache 2.0.35
13119 by: Chris Dion

Outputting a string from mysql database
13121 by: q
13123 by: The Walters
13125 by: Mike Flynn

Security Alert! PHP CGI cannot be accessed directly.
13122 by: Faisal Ashraf
13128 by: Shane Caraveo

Re: COM and ADODB access
13126 by: Scott Carr
13127 by: Scott Carr

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

I use PHP as an Apache module on Win2K Server in a production
environment with absolutely no problems. I've tried 4.1.1 and 4.1.2 w/
IIS (ISAPI) and have found that it is still not stable enough for a
working site. The executeable (CGI) works great but is not very
efficient if you have much traffic. Keep in mind that that is my
experience and of course, your mileage may vary. I think the only time I
didn't have any problems was with 4.0.6/IIS/Win2K Pro and some good
karma. Think about Apache, it's stable, highly configurable and people
won't be going after it like they do IIS. You should see my logs, the
script kiddies are going after the "scripts" and "MSADC" directories
like crazy.

Mike

-Original Message-
From: Roger [mailto:[EMAIL PROTECTED]] 
Sent: Monday, April 15, 2002 11:48 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] PHP stable and for production


Hi,

I listened that php on windows is not considered for produtions ans
stable. I listed that it is like a test version for windows and is not
safe use in night traffic sites with database access.

Could some one confirmar that infor to me?

Thanks in Advance
Rogerio



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--- End Message ---
--- Begin Message ---

Hey... new to the list, but didn't have time to lurk and watch the traffic,
kind of in a bind here. I apologize in advance if I do something wrong...

Using this code:
generation;
$year = $row->year;
$owner = $row->owner;
$email = $row->email;
$pic1 = $row->pic1;
$tmb1 = $row->tmb1;
printf("", $pic1);
printf("%s",$generation);
printf("%s",$year);
printf("%s",$owner);
printf("%s", $email, 
$email);
printf("", 
$pic1, $tmb1);
}

/* Free resultset */
mysql_free_result($result);

/* Closing connection */
mysql_close($link);
?>

I'm successfully able to retrieve and display information for year='1991'.
It works great. However, if I replace '1991' with any other year that I KNOW
there's a matching record for, I get no results. So if I were to replace
year='1991' with year='1990', no results would be produced although the same
query given directly in MySQL will give results. Make sense? This same
problem happens with other fields too, it seems really selective. I can use
WHERE color='red' and get results, but color='black' returns nothing,
although there are matching records.

Any ideas? I need to get this fixed but I'm not sure what's wrong!

Thanks in advance,
Jason
(PHP 4.1.2 Win32)
(MySQL 3.23)


--- End Message ---
--- Begin Message ---

I have problem with uploading files - have anyone some idea?

php.ini:
.
file_uploads = On
upload_tmp_dir = C:\Inetpub\Upload\
upload_max_filesize = 4M
.

upload.php:
\n";
  echo "Orign   : ".$userfile_name ."\n";
  echo "Type: ".$userfile_type ."\n";
  echo "Size: ".$userfile_size."\n";
  }
?>



Send this file: 




The response seems OK, but new file is not on hard drive
Response:
Name : C:\Inetpub\Upload\php14E4.tmp
orign : Test.doc
Type : application/msword
size: 19456

Thanks



--- End Message ---
--- Begin Message ---

This works for me:
 if (is_uploaded_file($HTTP_POST_FILES['userfile']['tmp_name'])) {
//Get the extension
  $split_nomefile = explode(".",$_FILES['userfile']['name']);
  $ext = $split_nomefile[ count($split_nomefile)-1 ];
//Create the new filename
  $NomeFile = $_POST["Materia"]."_".date("Y-m-d-H-i-s").".".$ext;
//Move from tmp-dir t

php-windows Digest 17 Apr 2002 08:36:51 -0000 Issue 1097

2002-04-17 Thread php-windows-digest-help


php-windows Digest 17 Apr 2002 08:36:51 - Issue 1097

Topics (messages 13129 through 13133):

Re: Security Alert! PHP CGI cannot be accessed directly.
13129 by: Faisal Ashraf
13132 by: Steve Yates

Re: Outputting a string from mysql database
13130 by: Nicole Amashta

Re: COM and ADODB access
13131 by: Alan Popow

apache2 and AcceptPathInfo
13133 by: firepages

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

101% sure I done the same but now I have rectifyed the problem by
installing php from php  installer cuz manualy thing was giving me that
error.

Thank you

Faisal



This e-mail is confidential and may also be privileged. If you are not
the intended recipient, please notify us and delete the email from your
computer immediately; you should not copy or use it for any purpose, nor
disclose its contents to any other person.


-Original Message-
From: Shane Caraveo [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, April 16, 2002 9:54 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] Security Alert! PHP CGI cannot be accessed
directly.


Are you sure you changed the correct ini file or didn't misspell it?  I 
use this all the time, no problem.

Faisal Ashraf wrote:
>  
> Hi All,
>  
> I have installed new version of php on my xp box I am running iis for 
> my web's now I am getting this error even I have modified the php.ini 
> file value cgi.force_redirect=0 but I am still getting the same 
> problem any one could tell me how to remove this error ?
>  
> Thank You
>  
> Faisal Ashraf
> Manager Customer Care
> Gem Net
> www.gem.net.pk
>  
>  
> Security Alert! PHP CGI cannot be accessed directly.
> 
> This PHP CGI binary was compiled with force-cgi-redirect enabled. This

> means that a page will only be served up if the REDIRECT_STATUS CGI 
> variable is set. This variable is set, for example, by Apache's Action

> directive redirect.
> 
> 
> You may disable this restriction by recompiling the PHP binary with 
> the --disable-force-cgi-redirect switch. If you do this and you have 
> your PHP CGI binary accessible somewhere in your web tree, people will

> be able to circumvent .htaccess security by loading files through the 
> PHP parser. A good way around this is to define doc_root in your 
> php.ini file to something other than your top-level DOCUMENT_ROOT. 
> This way you can separate the part of your web space which uses PHP 
> from the normal part using .htaccess security. If you do not have any 
> .htaccess restrictions anywhere on your site you can leave doc_root 
> undefined. If you are running IIS, you may safely set 
> cgi.force_redirect=0 in php.ini.
> 
> 
> 




-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--- End Message ---
--- Begin Message ---

"Faisal Ashraf" <[EMAIL PROTECTED]> wrote in message
000501c1e534$57f88750$648505ca@faisal">news:000501c1e534$57f88750$648505ca@faisal...
> one could tell me how to remove this error ?

> If
> you are running IIS, you may safely set cgi.force_redirect=0 in php.ini.

Read just a bit further.  :)

 - Steve Yates
 - Love is grand.  Divorce is around twenty grand.

/ Taglines by Taglinator - www.srtware.com /





--- End Message ---
--- Begin Message ---

Depending on how the data was inserted. If the data was inserted via a php
script, then trying to insert data with a single quote ( ' ) in it would
throw an error and the query wouldn't complete. The entire query would fail.

If you want to insert ' in a database, either use escape the ' with a \' ..
which, if the data was submitted through a form via php, the ' are escaped
with slashes by default. So, when you bring up that data from the database
to display, you can use the php function stripSlashes() to remove that
backslash. You could use the addSlash() funciton if you are adding data that
wasn't necessary submittted through a form to escape that single quote. You
can also replace the ' (and double) quotes with their ascii equivalents.

Just some tips I thought I might share.

Good luck,
--
-
Nicole Amashta
Web Application Developer
www.aeontrek.com
"Mike Flynn" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Are you sure that that last field truly contains "J B's Supermarket" in
the
> database?  Are you sure the error wasn't produced while INSERTING the data
> into the database, thus resulting in only "J B" being put into the
> database?  You should view your database data directly, like by using a
> webmin utility.  If you do $row_info = mysql_fetch_row($result), and then
> show the row with the company name, a single quote (') shouldn't mess it
> up.  But single quotes can mess up a

php-windows Digest 17 Apr 2002 21:58:17 -0000 Issue 1098

2002-04-17 Thread php-windows-digest-help


php-windows Digest 17 Apr 2002 21:58:17 - Issue 1098

Topics (messages 13134 through 13143):

mssql, query and schoolboy error
13134 by: Rob Fraser

win configuration
13135 by: Ivan Soloviev

Apache 2.0.35 & php 4.2.0 RC4 includes
13136 by: Chris Fraser

Strange problem 'window.open'
13137 by: Fabio
13139 by: R'twick Niceorgaw
13142 by: Fabio

Re: [PHP] win configuration
13138 by: Geoff Hankerson

NT-Challenge-Response-Auth under Win2000/Apache/PHP?
13140 by: Andreas Kolbe

 tag and sessions
13141 by: Dale Heil

PHP Warning:  No File Uploaded in Unknown on Line 0.. any ideas?
13143 by: Ethan Nelson

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

Dear All,
I hope somebody can help me. I am new to PHP (I've used ASP for three
years:-( ) and I'm loving PHP and trying to get my work to convert but
I've coming across a error with mssql_query() explorer its just crashes
with a php.exe 'memory could not be read error'. I'm sure it a school
boy error from me but I'm just stuck, please help me code is..
===
$link = mssql_connect ("laptop", "sa", "elmwood");
print ("LINK was $link");
 
$back = mssql_select_db ( "elmback",$link); 
print("back was $back");
 
$query = "SELECT * FROM tblperson";
print("query was $query");
 
$result = mssql_query($query,$link); //JUST CRASHES ON THIS LINE
 
$r = mssql_rows_affected ( $link);
print("rows affected was $r");
 
$close =  mssql_close ($link);
print("close was $close");
 
 
=
I run IIS4, NT4 (SP6a) and SQL 7 on the same machine as its my
development one, out of date maybe but you should see my clothes but PHP
was test downloaded a month ago - any ideas from a white knight?
best regards 
Rob

--- End Message ---
--- Begin Message ---

Hello!
Is it possible to configure php under w2k, IIS5.0 for different hosts
separately? In particular to set different include paths?
Thank you.
..
Ivan Soloviev [EMAIL PROTECTED]


--- End Message ---
--- Begin Message ---

Greetings,
   Is anyone having problems with includes or include path with this configuration?

I'm running Apache 2.0.35/php 4.2.0 RC4 on WinXP pro.

Warning: Failed opening 'mod//index.php' for inclusion (include_path='.;c:\php4\pear') 
in D:
\Internet\Apache\htdocs\urswerks\mod.php on line 14

--
"The dogmas of the quiet past are inadequate for the stormy present. The occasion is 
piled high 
with difficulty, and we must rise to the occasion. As our case is new, so we must 
think anew, 
and act anew. We must disentrall ourselves, and then we shall save our country.We can 
not 
escape history. We will be remembered, in spite of ourselves. The fiery trial through 
which we 
pass will light us down in honor or dishonor, to the last generation. We shall nobly 
save, or 
meanly lose our last best hope of Earth."   Annual Message to 
Congress, 
Concluding Remarks, December 1, 1862
   
- 
President Abraham Lincoln  
Copyleft 2001: http://www.gnu.org/licenses/fdl.html
 

   
   





--- End Message ---
--- Begin Message ---

This is my page:
--

















window.open('totale.php?IDT=".$IDT."','leftframe');";   // 
<--- !!! here is
the problem !!!



--


The marked line should open the php page in 'leftframe' frame: some time
this is not done and I get the error:


CGI Error
The specified CGI application misbehaved by not returning a complete set of
HTTP headers. The headers it did return are:


I try to reload the main page and 'totale.php' is opened in the right way.
The problem seems to be is in the window.open that sometimes loads the wrong
page or none. If I put an alert('test'); befone the window.open, that window
is opened *always*.

Is there some setting to look for in php.ini or this method to open windows
is not correct?


Thanx, Fabio


--- End Message ---
--- Begin Message ---

You are using php  inside a javascript code without the  tags!

change the problem line as below and it may work

window.open('totale.php?IDT= "'+  + '"','leftframe');"; // <---
!!! here is
the problem !!!

R'twick
--

php-windows Digest 18 Apr 2002 10:04:57 -0000 Issue 1099

2002-04-18 Thread php-windows-digest-help


php-windows Digest 18 Apr 2002 10:04:57 - Issue 1099

Topics (messages 13144 through 13154):

Re: PHP Warning:  No File Uploaded in Unknown on Line 0 .. any ideas?
13144 by: Shrock, Court
13145 by: Ethan Nelson

Re: COM and ADODB access
13146 by: Alan Brown

pspell activation
13147 by: Eduards Cauna
13148 by: Ross Fleming

Forward Link
13149 by: Wayne Hinch
13150 by: brother
13151 by: Wayne Hinch
13152 by: Matt Williams
13153 by: brother

Using Access with PHP via ODBC
13154 by: Brian McGarvie

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

.html files are not normally parsed by php...do you have your webserver
setup to parse .html files using PHP?

> -Original Message-
> From: Ethan Nelson [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 17, 2002 3:08 PM
> To: '[EMAIL PROTECTED]'
> Subject: [PHP-WIN] PHP Warning: No File Uploaded in Unknown 
> on Line 0..
> any ideas?
> 
> 
> hey there..
> 
> this has been on my nerves all day today.. here is the problem..
> 
> I have a form.. it looks like this:
> 
> echo " enctype=\"multipart/form-data\">\n";
> echo "Header:\n";
> echo "\n";
> echo "Body:\n";
> echo " rows=10>\n";
> echo "Image:\n";
> echo "\n";
> echo " special\">\n";
> echo "\n";
> 
> mgr.html's first line of code looks like this:
> 
> die();
> 
> my browser output is this:
> 
> PHP Warning: No file uploaded in Unknown on line 0 
> 
> I have no idea how this is happening.. it seems that php is 
> letting me know
> that i didn't upload a file BEFORE it even parses the 
> mgr.html file.  All i
> want to do is to get rid of this error message, perferiably 
> in the php.ini
> file (i am running php 4.3.0-dev on a win2k box). I have 
> "display_errors =
> Off" in my php.ini file.
> 
> any ideas?
> 
> -Chris
> 
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

--- End Message ---
--- Begin Message ---

sorry, forgot to mention that, the server is set up to parse .html files..
everything else works just fine, it's just that when i post a form with a
file input element in it, and that element is left blank it lets me know
that there was no file uploaded.  (which I normally wouldn't mind except
that it kills the header redirects and breaks the page a bit).

Thanks.


-Original Message-
From: Shrock, Court [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 17, 2002 3:04 PM
To: Ethan Nelson; '[EMAIL PROTECTED]'
Subject: RE: [PHP-WIN] PHP Warning: No File Uploaded in Unknown on Line
0 .. any ideas?


.html files are not normally parsed by php...do you have your webserver
setup to parse .html files using PHP?

> -Original Message-
> From: Ethan Nelson [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 17, 2002 3:08 PM
> To: '[EMAIL PROTECTED]'
> Subject: [PHP-WIN] PHP Warning: No File Uploaded in Unknown 
> on Line 0..
> any ideas?
> 
> 
> hey there..
> 
> this has been on my nerves all day today.. here is the problem..
> 
> I have a form.. it looks like this:
> 
> echo " enctype=\"multipart/form-data\">\n";
> echo "Header:\n";
> echo "\n";
> echo "Body:\n";
> echo " rows=10>\n";
> echo "Image:\n";
> echo "\n";
> echo " special\">\n";
> echo "\n";
> 
> mgr.html's first line of code looks like this:
> 
> die();
> 
> my browser output is this:
> 
> PHP Warning: No file uploaded in Unknown on line 0 
> 
> I have no idea how this is happening.. it seems that php is 
> letting me know
> that i didn't upload a file BEFORE it even parses the 
> mgr.html file.  All i
> want to do is to get rid of this error message, perferiably 
> in the php.ini
> file (i am running php 4.3.0-dev on a win2k box). I have 
> "display_errors =
> Off" in my php.ini file.
> 
> any ideas?
> 
> -Chris
> 
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

--- End Message ---
--- Begin Message ---

There were definitely two nasty bugs in the COM code which I believe that I
have fixed and checked into CVS. But the root cause of your problem is
actually a COM exception thrown by ADODB.Connection. I see this exception
when I pass "position" (a valid field name in the database) in a SQL queries
through the execute method. And most strangely the component does not seem
to populate the IErrorInfo in this case, which is why your:

if ($DB->Errors->Count > 0)
{
print $DB->Errors[0]->description;
}

code resulted in a php_OLECHAR_tochar() error - the underlying object placed
a NULL in the VARIANT of type VT_BSTR.

e.g.
Open("Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=i:\\tmp\\test.mdb");
$DB->execute("SELECT position FROM foobar"); # I guess positio

php-windows Digest 18 Apr 2002 22:22:38 -0000 Issue 1100

2002-04-18 Thread php-windows-digest-help


php-windows Digest 18 Apr 2002 22:22:38 - Issue 1100

Topics (messages 13155 through 13182):

R: [PHP-WIN] Using Access with PHP via ODBC
13155 by: Alberto. Sartori

Creating a "nice" link
13156 by: R.S. Herhuth
13157 by: Steve Bradwell
13158 by: Nicole Amashta
13159 by: Brian McGarvie
13182 by: Matt Parlane

help with upload IIS php 4.1.2
13160 by: cybero
13162 by: cybero
13163 by: Nicole Amashta

R: [PHP-WIN] help with upload IIS php 4.1.2
13161 by: Alberto. Sartori

Re: Forward Link
13164 by: Nicole Amashta

my php.ini
13165 by: cybero
13166 by: Nicole Amashta
13167 by: Nicole Amashta
13168 by: Nicole Amashta
13169 by: Nicole Amashta
13171 by: Nicole Amashta
13172 by: cybero

php SiteManager
13170 by: Steve Bradwell

How can i install PHP as an Apache module on windows 2000?
13173 by: Guilherme Dávalos
13174 by: cybero

executing windows command with php
13175 by: Evans, Josh
13176 by: Dash McElroy
13177 by: Nicole Amashta

Apache 1.3 / Win2KPro / PHP4
13178 by: Thomas Maynard

Trouble w/Apache on WinME
13179 by: Ken Villines

Connecting to a remote database
13180 by: R.S. Herhuth
13181 by: Matt Babineau

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

Try this (from pscode.com):

Open("DRIVER={Microsoft Access Driver (*.mdb)}; 
DBQ=C:\\inetpub\\wwwroot\\php\\mydb.mdb");
// SQL statement to build recordset.
$rs = $conn->Execute("SELECT myfield FROM mytable");
echo "Below is a list of values in the MYDB.MDB database, MYABLE table, MYFIELD 
field.";
// Display all the values in the records
// et
while (!$rs->EOF) { 
$fv = $rs->Fields("myfield");
echo "Value: ".$fv->value."\n";
$rs->MoveNext();
} 
$rs->Close(); 
?>

-Messaggio originale-
Da: Brian McGarvie [mailto:[EMAIL PROTECTED]]
Inviato: giovedì 18 aprile 2002 12.06
A: [EMAIL PROTECTED]
Oggetto: [PHP-WIN] Using Access with PHP via ODBC


Hi,

I'm developing an application which is built on top of an existing MS
Access Database,  when the DB is not opened/windows client to the DB is
opened it creates a lock, which in turn prevents PHP from accessing the
Database, is there any solutions to this?

Thanks in advance

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--- End Message ---
--- Begin Message ---


I am creating a few links on the fly that have to pass variables to the
next page:

echo 'next page'

The problem is that I don't want that information to appear in the
address field (more like a method=post instead of a method=get).  How
can I do that?

I was trying to use sessions under W2k, php4, Apache and all my pages
hang and never load once I start the session so I can't use sessions :-(

Any ideas?

Thanks,
Ron

--- End Message ---
--- Begin Message ---

Hey Ron,

I am using php4, apache and win98 and sessions work ok for me, I am pretty
new to php but I have found sessions are the easiest and most practical way
to store vars, I was using cookies before...which work really well but can
get a little tedious to use when you have alot of variables because you have
to parse them all out of the cookie string.

So unless there is a known issue with w2k i wouldn't rule out sessions,
otherwise use cookies.

hope this helps,
Steve.


-Original Message-
From: R.S. Herhuth [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 18, 2002 9:00 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Creating a "nice" link



I am creating a few links on the fly that have to pass variables to the
next page:

echo 'next page'

The problem is that I don't want that information to appear in the
address field (more like a method=post instead of a method=get).  How
can I do that?

I was trying to use sessions under W2k, php4, Apache and all my pages
hang and never load once I start the session so I can't use sessions :-(

Any ideas?

Thanks,
Ron

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---
--- Begin Message ---

I have php 4.0.6 on Win2k and Apache ... i use session and have no problem.
If you need help setting up your php.ini for sessions, let me know.

You need to make sure that the session directory exists (the one that is
setup in yoru php.ini should point to a directory that exists. Double check
that path.)

Good luck and don't rule out sessions just yet ;)

Nicole Amashta
Web Application Development
--
-
Nicole Amashta
Web Application Developer
www.aeontrek.com
"R.S. Herhuth" <[EMAIL PROTECTED]

php-windows Digest 19 Apr 2002 11:43:30 -0000 Issue 1101

2002-04-19 Thread php-windows-digest-help


php-windows Digest 19 Apr 2002 11:43:30 - Issue 1101

Topics (messages 13183 through 13189):

can't view php
13183 by: joey
13184 by: Steff

Re: Connecting to a remote database
13185 by: Steff

Re: Apache 2.0.35 & php 4.2.0 RC4 includes
13186 by: Steff

fastcgi under iis
13187 by: Jean-Philippe Palha
13188 by: Jean-Philippe Palha

write text with MING  error...
13189 by: Franky

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

Everytime i try to view a php file on my server it prompts me to download
the file then opens it up in word pad. I can view any other file just not
php.

Can anyone help me with this problem please?




--- End Message ---
--- Begin Message ---

It looks like your web server hasn't been told to handle php files the 
way the are intended to. which web server are you using? check the php 
manual for installation advice - and perhaps also the web server's.

HTH steff

Joey wrote:
> Everytime i try to view a php file on my server it prompts me to download
> the file then opens it up in word pad. I can view any other file just not
> php.
> 
> Can anyone help me with this problem please?
> 
> 
> 


--- End Message ---
--- Begin Message ---

further on you should tell your DBMS that not only local scripts 
(users), but also external users may access your database. this is done 
by modifying the table "db" in the database "mysql". with this table you 
can control which hosts may access your dbs. the simplest but also most 
risky way is to set host = % and db = %. db = "DB" and host = 
"your.remote.machine" (or for several domains or IP-ranges) would be 
safer already (the rest of the fields/permissions to be set per row are 
mostly self-explaining).


HTH steff

Matt Babineau wrote:
> Try to access the SQL DB by IP Address. If you want to access it from
> outside you LAN, The machine the SQL DB is on has to have an external
> IP.
> 
> Matt Babineau
> Freelance Internet Developer
> e: [EMAIL PROTECTED] 
> p: 603.943.4237
> w: http://www.illuminatistudios.com
>  
> 
> 
> -Original Message-
> From: R.S. Herhuth [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, April 18, 2002 3:57 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Connecting to a remote database
> 
> 
> Newbie alert!
> 
> 
> I am able to connect to a SQL Server Database on my local network by
> specifying the host as "testHost" the database is "DB".  My question is
> if I'm outside the network what is the correct syntax that I need to
> call in the host in order to access the database?
> 
> Thanks,
> ROn
> 


--- End Message ---
--- Begin Message ---

Have you set up PHP based on php.ini-recommended? Look out for the 
include_path directive in your php.ini(-recommended) and remove the 
semi-colon at the beginning of the line. I assume you're used to provide 
the full path for every file to be included

include("../my_include_files/inc_file.php");

I just set up php 4.1.2 and encountered the same "problem". I guess 
include_path='.;c:\php4\pear' is the default build-in php include path. 
So you have to override it using the php.ini directive. (In your case 
the important part in this directive is probably the period !?)

HTH steff

Chris Fraser wrote:
> Greetings,
>Is anyone having problems with includes or include path with this configuration?
> 
> I'm running Apache 2.0.35/php 4.2.0 RC4 on WinXP pro.
> 
> Warning: Failed opening 'mod//index.php' for inclusion 
>(include_path='.;c:\php4\pear') in D:
> \Internet\Apache\htdocs\urswerks\mod.php on line 14
> 
> --
> "The dogmas of the quiet past are inadequate for the stormy present. The occasion is 
>piled high 
> with difficulty, and we must rise to the occasion. As our case is new, so we must 
>think anew, 
> and act anew. We must disentrall ourselves, and then we shall save our country.We 
>can not 
> escape history. We will be remembered, in spite of ourselves. The fiery trial 
>through which we 
> pass will light us down in honor or dishonor, to the last generation. We shall nobly 
>save, or 
> meanly lose our last best hope of Earth."   Annual Message to 
>Congress, 
> Concluding Remarks, December 1, 1862
>  
>- 
> President Abraham Lincoln  
> Copyleft 2001: http://www.gnu.org/licenses/fdl.html  
>   
>   
>  
>  
>
> 
> 
> 


--- End Message ---
--- Begin Message ---

Hi php dev,

First,

php-windows Digest 20 Apr 2002 03:33:26 -0000 Issue 1102

2002-04-19 Thread php-windows-digest-help


php-windows Digest 20 Apr 2002 03:33:26 - Issue 1102

Topics (messages 13190 through 13204):

A Breath fo Fresh Air -- Bandwidth Waster
13190 by: R.S. Herhuth

mysql_fetch_array()
13191 by: Guilherme Dávalos

Creating dynamic variables and assigning values in a while statement
13192 by: Robert Trembath
13197 by: Nicole Amashta

Re: can't view php
13193 by: joey
13194 by: Dash McElroy
13196 by: Nicole Amashta
13204 by: joey

Re: .php unrecognizable extension
13195 by: Nicole Amashta
13198 by: Nicole Amashta

Re: mssql, query and schoolboy error
13199 by: Nicole Amashta
13200 by: Nicole Amashta

Security Risk w/ PHP and Apache 1.3.x
13201 by: Benjamin Scherrey

inclusion error
13202 by: Bryan Maynard

Upload Help
13203 by: Waldemar Brand Neto

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---


I just want to say that after two weeks of working with PHP I'm finally
getting it (thanks to this list and it's contributors!).  PHP rocks!

Ron

--- End Message ---
--- Begin Message ---

Hi folks,

I'm trying to run an application, made on PHP3/LINUX, on PHP 4.1.2/Windows in module 
scheme. But its seems be reclaiming that mysql_fetch_array() function doesn't work at 
4.1.2 version. How can i fix it?

 [ ]'s

Pajé


--- End Message ---
--- Begin Message ---

Good morning everyone,

Kinda got stuck here. Must be brain dead this morning. I'm trying to
loop thru a results set from a mysql query that will always return an
array of 13 results. I need to loop thru using a while statement and
create dynamic variables $temp1 - $temp13 and $tempcolor1 - $tempcolor13
to assign values to each of these variables as I loop thru. Here's the
code, please review and advise, suggest whatever. This script is used to
build a line graph in php from the data in the $temp variables.

$counter = "0";
//loop thru wells to create line plots
while( $row = mysql_fetch_array( $query ) )
{
//define global
$temp="ydata$counter";
global $$temp;
$tempcolor="ydata$counter";
global $$tempcolor;
// Create the linear plot
$ydata = explode(",", $row[CurveData]);
$$temp = $ydata;

//Set Line Plot Color
$lineplot->SetColor("$color[$counter]");
$$tempcolor = $lineplot;

//add 1 to counter
$counter = $counter + 1;
}

//define lines
$lineplot0=new LinePlot($temp0);
$lineplot1=new LinePlot($temp1);
$lineplot2=new LinePlot($temp2);
$lineplot3=new LinePlot($temp3);
$lineplot4=new LinePlot($temp4);
$lineplot5=new LinePlot($temp5);
$lineplot6=new LinePlot($temp6);
$lineplot7=new LinePlot($temp7);
$lineplot8=new LinePlot($temp8);
$lineplot9=new LinePlot($temp9);
$lineplot10=new LinePlot($temp10);
$lineplot11=new LinePlot($temp11);
$lineplot12=new LinePlot($temp12);

//set colors
$lineplot0->SetColor("$tempcolor0");
$lineplot1->SetColor("$tempcolor1");
$lineplot2->SetColor("$tempcolor2");
$lineplot3->SetColor("$tempcolor3");
$lineplot4->SetColor("$tempcolor4");
$lineplot5->SetColor("$tempcolor5");
$lineplot6->SetColor("$tempcolor6");
$lineplot7->SetColor("$tempcolor7");
$lineplot8->SetColor("$tempcolor8");
$lineplot9->SetColor("$tempcolor9");
$lineplot10->SetColor("$tempcolor10");
$lineplot11->SetColor("$tempcolor11");
$lineplot12->SetColor("$tempcolor12");

//ad lines
$graph->Add($lineplot0);
$graph->Add($lineplot1);
$graph->Add($lineplot2);
$graph->Add($lineplot3);
$graph->Add($lineplot4);
$graph->Add($lineplot5);
$graph->Add($lineplot6);
$graph->Add($lineplot7);
$graph->Add($lineplot8);
$graph->Add($lineplot9);
$graph->Add($lineplot10);
$graph->Add($lineplot11);
$graph->Add($lineplot12);

HELP

--
D. Robert Trembath
Chief Software Engineer
Bacterial BarCodes Inc.
e|[EMAIL PROTECTED] 



--- End Message ---
--- Begin Message ---

>>> $counter = "0";

This line may work in your code, but if you are assigning numbers, you don't
need to put quotes around them since they are numbers and not strings.

If you then want to use that number as part of a string, do like you did:

$temp="ydata$counter";

or do like so:

$temp="ydata " .  $counter;

I don't use the $$ thing, so I'm not sure what you are doing there.
SO, what is the error you are getting? Or what is/isn't happening with your
code? Can you be more specific?


--
Nicole Amashta
Web Application Developer
www.aeontrek.com


"Robert Trembath" <[EMAIL PROTECTED]> wrote in message
000201c1e7b5$bdcdc300$4001a8c0@roblaptop">news:000201c1e7b5$bdcdc300$4001a8c0@roblaptop...
> Good morning everyone,
>
> Kinda got stuck here. Must be brain dead this morning. I'm trying to
> loop thru a results set fro

php-windows Digest 20 Apr 2002 16:01:58 -0000 Issue 1103

2002-04-20 Thread php-windows-digest-help


php-windows Digest 20 Apr 2002 16:01:58 - Issue 1103

Topics (messages 13205 through 13211):

Re: can't view php
13205 by: joey

Re: Apache 2.0.35
13206 by: Red
13208 by: Steffen
13209 by: Red

Apache 2.0.35 w/PHP
13207 by: Michael

Re: Problem with uploading Files with PHP 4.1.2 on  IIS
13210 by: Waldemar Brand Neto

Set Apache's $REMOTE_USER externally
13211 by: Sek-Mun Wong

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

ok well since my page works great on my hosting server which uses Linux i'm
just gonna install linux. My version of Windows just doesn't support it.


"Joey" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> yes i've tried that too *sigh* :( i've read the manual over and over again
> and installed it a few times and added all those lines ppl suggested but
> still no luck. I'm about to just give up. I know how to work PHP but I
just
> can't find where this problem comes from. Maybe it's a windows thingy who
> knows, maybe i need IIS on my system which of course doesn't come with Win
> XP Home Edition. I read something about webpage in management tools in
> Windows but i don't have that so i can't change things there.  I really do
> appreciate all your reactions and replies.
>
> it's probably just one simple thingy somewhere BUT WHERE.
>
>
> "Nicole Amashta" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Keep reading the documentation ... if that's the only line you added,
you
> > aren't done.
> >
> > --
> > Nicole Amashta
> > Web Application Developer
> > www.aeontrek.com
> >
> >
> > "Joey" <[EMAIL PROTECTED]> wrote in message
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > Ok i'm using Apache 1.3.24 and PHP 4.1.2 and the windows platform is
XP
> > home
> > > edition
> > >
> > > yes i've added this line in my httpd.conf file
> > > AddType application/x-httpd-php .php
> > >
> > > "Joey" <[EMAIL PROTECTED]> wrote in message
> > > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > > Everytime i try to view a php file on my server it prompts me to
> > download
> > > > the file then opens it up in word pad. I can view any other file
just
> > not
> > > > php.
> > > >
> > > > Can anyone help me with this problem please?
> > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>



--- End Message ---
--- Begin Message ---


"Steffen" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> This works for me:
>
> LoadModule php4_module d:/bin/php/experimental/apache2filter.dll
> AddType application/x-httpd-php .php
> AddType application/x-httpd-php-source .phps
>
> Steffen
>
>
> "Haagen Waade" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > 4.2.0 RC3 is out, and with Apache2 support.
> >
> > But how to configure it with apache2 ? I see there is a
> > /experimental/apache2filter.dll
> > I guess this is the new module for apache2, but how do I configure it in
> > httpd.conf
> > I've tried to load it as an module, but did not get it to work.
> >
> >
> > "Chris Dion" <[EMAIL PROTECTED]> wrote in message
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > Now that there is a binary out for apache 2 for windows...are we going
> to
> > > get a binary for php for apache 2?  Anyone know?  Or how I can manage
to
> > > compile php for apache2?

Hi

Where does one fine the apache2filter.dll

I have latest release of both apache 2 and php4.1.2.  Win32 binaries.

My apache2/modules does not appear to have mod_php4.c contained therein
either.

I know I must be missing something, and I am a bit new to all of this.

Hope you guys can help.  I tried to load it all up, but after allding the
LoadModule lines in to the apache config file apache would not start :-(

Thanks for any help.

Sara



--- End Message ---
--- Begin Message ---

It's in 4.2 RC4 (not in 4.1.2)


Steffen


> Hi
>
> Where does one fine the apache2filter.dll
>
> I have latest release of both apache 2 and php4.1.2.  Win32 binaries.
>
> My apache2/modules does not appear to have mod_php4.c contained therein
> either.
>
> I know I must be missing something, and I am a bit new to all of this.
>
> Hope you guys can help.  I tried to load it all up, but after allding the
> LoadModule lines in to the apache config file apache would not start :-(
>
> Thanks for any help.
>
> Sara
>
>



--- End Message ---
--- Begin Message ---


"Steffen" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> It's in 4.2 RC4 (not in 4.1.2)
>
>
> Steffen
>
>
> > Hi
> >
> > Where does one fine the apache2filter.dll
> >
> > I have latest release of both apache 2 and php4.1.2.  Win32 binaries.
> >
>

php-windows Digest 21 Apr 2002 13:56:47 -0000 Issue 1104

2002-04-21 Thread php-windows-digest-help


php-windows Digest 21 Apr 2002 13:56:47 - Issue 1104

Topics (messages 13212 through 13213):

Re: Problem with uploading Files with PHP 4.1.2 on IIS
13212 by: Mike Flynn

mail atachment
13213 by: Camelia Moldovan

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

At 11:56 AM 4/20/02 -0300, Waldemar Brand Neto wrote:
>Dear Myke I have this problem too. When I save the uploaded file im Mysql it
>save the path of the file and not the image itself. How cam I read the file
>and save into a BLOB field.
>
>Thanks.
>
>Waldemar

Try something like this:
$the_file = $HTTP_POST_FILES['fileinputfieldname']['tmp_name'];
$thebindata = addslashes(fread(fopen($the_file, "r"), filesize($the_file)));


--- End Message ---
--- Begin Message ---


Hi! How can I attach a file to a mail using PHP ?

I tried to use some existing classes but I received lots of errors.

Thanks.

 



-
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
--- End Message ---


php-windows Digest 22 Apr 2002 04:00:46 -0000 Issue 1105

2002-04-21 Thread php-windows-digest-help


php-windows Digest 22 Apr 2002 04:00:46 - Issue 1105

Topics (messages 13214 through 13218):

Re: mail atachment
13214 by: Mike Flynn

problem with copy and move_uploaded_file
13215 by: masa

Security with PHP4, Apache, and Win9x
13216 by: Rick Kunkel
13218 by: RoboTeddy

Re: Outputting a string from mysql database
13217 by: jeff

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

At 06:56 AM 4/21/02 -0700, Camelia Moldovan wrote:

>Hi! How can I attach a file to a mail using PHP ?
>
>I tried to use some existing classes but I received lots of errors.

http://www.phpbuilder.com/columns/kartic2807.php3

-Mike


--- End Message ---
--- Begin Message ---

I'm using php 4.2 apache 1.3. and win98.
here is my html code. It's straight from PHP docs.





Send this file: 





and here is my PHP code. Because I could 'nt get the copy or
move_uploaded_file working I just tried to print the stuff
out. So here is my php code. (test.php)



RESULT:

none
0


I have tried evrything with the php.ini file (I think ??)
and with the .conf file of apache to. Somewhere I must go
wrong... but where ?




--- End Message ---
--- Begin Message ---

Heya folks.  I'm using Windows 98SE, Apache 1.3.6, and PHP 4.1.3 as an
Apache module.  My question concerns security in this environment.  Since
there are no real "users" in Win9x, is the Apache/PHP combo able to do
whatever the heck it wants to my filesystem?

I'm not versed in PHP yet, but from the things I've read, it looks like
filesystem objects can be read, written, or modified, and since Win9x has
no user-level security in it, I'm basically screwed if someone decides to
put a malicious PHP file on my server.

Does this sound right?

Thanks,

Rick Kunkel




--- End Message ---
--- Begin Message ---

You're partly right.

Relying on OS-based security isn't very practical in unix as well. As of
now, someone can screw you over if they go "unlink(C:/);" Instead, try
relying on safe mode, open base dir restrictions, disabled functions, etc.
You can set these up on a per-vhost basis in your apache configuration using
php_admin_value and other directives. Check the manual for more.
Ted
- Original Message -
From: "Rick Kunkel" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, April 21, 2002 8:08 PM
Subject: [PHP-WIN] Security with PHP4, Apache, and Win9x


> Heya folks.  I'm using Windows 98SE, Apache 1.3.6, and PHP 4.1.3 as an
> Apache module.  My question concerns security in this environment.  Since
> there are no real "users" in Win9x, is the Apache/PHP combo able to do
> whatever the heck it wants to my filesystem?
>
> I'm not versed in PHP yet, but from the things I've read, it looks like
> filesystem objects can be read, written, or modified, and since Win9x has
> no user-level security in it, I'm basically screwed if someone decides to
> put a malicious PHP file on my server.
>
> Does this sound right?
>
> Thanks,
>
> Rick Kunkel
>
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>



--- End Message ---
--- Begin Message ---

J B's Supermarket is correct and it was inserted into tthe database without
using a form and php.

"Mike Flynn" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Are you sure that that last field truly contains "J B's Supermarket" in
the
> database?  Are you sure the error wasn't produced while INSERTING the data
> into the database, thus resulting in only "J B" being put into the
> database?  You should view your database data directly, like by using a
> webmin utility.  If you do $row_info = mysql_fetch_row($result), and then
> show the row with the company name, a single quote (') shouldn't mess it
> up.  But single quotes can mess up a query.  Because if you think about
> your query, if you do it like this:
> INSERT INTO table (Name) VALUES ('J B's Supermarket')
> you can see how the single quote in the Name is messing up the query for
> MySQL -- it's making MySQL think it's the end of the value for Name.  You
> need to escape single quotes when inserting them into a MySQL database.
If
> you do it via a form and have magicquotes turned on in your PHP.INI, then
> it's done automatically.  Otherwise, you have to do it yourself.
>
> At 05:15 AM 4/16/2002 -0400, q wrote:
> >I have a field in a mysql table called table which is called names.
> >Examples of the information in this column :
> >
> >
> >Name
> >
> >Lottery Company
> >Mark MiniMark
> >J B's Supermarket
> >
> >
> >I connect to the datbase successful and I use the following php line to
> >get the information from the row: $row_info=mysql_fetch_row($result)
> >
> >Howe

php-windows Digest 22 Apr 2002 16:17:56 -0000 Issue 1106

2002-04-22 Thread php-windows-digest-help


php-windows Digest 22 Apr 2002 16:17:56 - Issue 1106

Topics (messages 13219 through 13231):

Get Username From Windows Login
13219 by: Jack

PHP on IIS5 WIN2K Problem - Help?
13220 by: James Meers
13222 by: James Meers

R: [PHP-WIN] PHP on IIS5 WIN2K Problem - Help?
13221 by: Alberto. Sartori

Quoted Dynamic Strings are killing me
13223 by: R.S. Herhuth

Quoted Dynamic Strings are killing me (Second Attempt)
13224 by: R.S. Herhuth
13226 by: Steve Bradwell
13227 by: Mike Flynn
13229 by: DL Neil

R: [PHP-WIN] Quoted Dynamic Strings are killing me (Second Attempt)
13225 by: Alberto. Sartori

Problem using ImageTTFText
13228 by: Alberto. Sartori

serialize or implode functions?
13230 by: Afan Pasalic

problems with the ucwords fuction
13231 by: Cassiano Dal Pizzol

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

Dear all
 I'm using IIS Server 4.0,  what i want to do is to prevent user to provide
another login before they can reach my Intranet, so i had setted the php to
grep the username from the windows, but here is the problem, the username
that greped out was "IUSER_MICROSOFT", is there anyway that make the IIS to
detect the username see if it is a valid account, then pass that account to
php instead of using "IUSER_MICROSFOT".
I want to show the user account of the real logged in user, not
"IUSER_MICROSOFT".


--
Thx a lot!
Jack
[EMAIL PROTECTED]



--- End Message ---
--- Begin Message ---

 I have installed PHP on my server and it works fine, however, whenever
executing a script in a new browser window, i always get prompted to enter a
username and password!?

I have given 'everyone' and 'I_USER' full access to the folder and IIS

This is probably a school boy error, anyone know what im banging on about?




--- End Message ---
--- Begin Message ---

I already have both IUSR and IWAM both full access on the directory
security???



I have tried all combinations with IUSR on its own and IWAM on its own,
still no luck



Grr...



"Alberto. Sartori" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]
...
Try adding IWAM_Machinename

-Messaggio originale-
Da: James Meers [mailto:[EMAIL PROTECTED]]
Inviato: lunedì 22 aprile 2002 10.50
A: [EMAIL PROTECTED]
Oggetto: [PHP-WIN] PHP on IIS5 WIN2K Problem - Help?


 I have installed PHP on my server and it works fine, however, whenever
executing a script in a new browser window, i always get prompted to enter a
username and password!?

I have given 'everyone' and 'I_USER' full access to the folder and IIS

This is probably a school boy error, anyone know what im banging on about?




--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




--- End Message ---
--- Begin Message ---

Try adding IWAM_Machinename

-Messaggio originale-
Da: James Meers [mailto:[EMAIL PROTECTED]]
Inviato: lunedì 22 aprile 2002 10.50
A: [EMAIL PROTECTED]
Oggetto: [PHP-WIN] PHP on IIS5 WIN2K Problem - Help?


 I have installed PHP on my server and it works fine, however, whenever
executing a script in a new browser window, i always get prompted to enter a
username and password!?

I have given 'everyone' and 'I_USER' full access to the folder and IIS

This is probably a school boy error, anyone know what im banging on about?




-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--- End Message ---
--- Begin Message ---


I have been trying to create strings dynamically by combining text and
variables.  Because SQL wants single quotes surrounding the values I
have been forced to create the string as follows:

--- End Message ---
--- Begin Message ---

I have been trying to create strings dynamically by combining text and
variables.  Because SQL wants single quotes surrounding the values I
have been forced to create the string as follows (all variables have
been previuosly set earlier on the page):


$query = "select bio FROM individual WHERE last_name ='".
$selectedLastname ."' AND first_name ='". $selectedFirstname ."' AND market
='".$selectedMarket."'";

Which seems to be good to me but when I echo the query it parses out
like this:

select bio FROM individual WHERE last_name ='Appleyard
selectedFirstname=Peter selectedMarket=Atlanta' AND first_name ='' AND
market ='' 


What am I missing...or doing wrong?  This seems so straightforward but
I'm getting beat up something horrible!

Thanks,
Ron Herhuth

--- End Message ---
--- Begin Message ---

Hey Ron,
I just echoed your $query string just like you have it and I get the quotes
around the values. 

I put this in a file:

$selecte

  1   2   3   4   5   6   7   8   9   10   >