[PHP-WIN] Vars not accepted in script.php?var=xy

2002-07-01 Thread Uwe Birkenhain

Hi,
I try to use PHP on my Win98 PC. It is mainly running but there is a
problem:
When I want to submit variables in the url
(http://localhost/script.php?var=xy),
the script will not know them and show me the message "Notice: undefined
variable var ..."

Conditions which depend on var will not work.

I thougt that perhaps there has something to be enabled in php.ini - but
couldn't find anything.


The next problem, which is perhaps connected to the first:
When using something like:
  while ($row = mysql_fetch_array($result)) {
   $name = $row[name]; }

I get the message:
"Notice: Use of undefined constant name - assumed 'name' in ..."

It is working and can be suppressed by not let php show the warnings - but
I'm surprised about it.


Has anybody the right hint for me?

Uwe

PS.: Those scripts run very well when used on the webserver - but not at
home.



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




[PHP-WIN] Re: Vars not accepted in script.php?var=xy

2002-07-01 Thread Uwe Birkenhain

When uploading this question, I received an older answer:
> - is it now neccessary to define variables before I use them???

No, but realize 4.2 changed how variables are referenced.  By default
register_globals is set to off now.

- Steve Yates

and that's it: when I set register_globals to 'on' it's working - thank's
Steve!

But since it is recommended to use 'off' (and will be standard in the
future):
does that mean that it's not longer possible to pass variables in an URL

greetings,
Uwe


Uwe Birkenhain schrieb in Nachricht
<[EMAIL PROTECTED]>...
>Hi,
>I try to use PHP on my Win98 PC. It is mainly running but there is a
>problem:
>When I want to submit variables in the url
>(http://localhost/script.php?var=xy),
>the script will not know them and show me the message "Notice: undefined
>variable var ..."
>
>Conditions which depend on var will not work.
>
>I thougt that perhaps there has something to be enabled in php.ini - but
>couldn't find anything.
>
>
>The next problem, which is perhaps connected to the first:
>When using something like:
>  while ($row = mysql_fetch_array($result)) {
>   $name = $row[name]; }
>
>I get the message:
>"Notice: Use of undefined constant name - assumed 'name' in ..."
>
>It is working and can be suppressed by not let php show the warnings - but
>I'm surprised about it.
>
>
>Has anybody the right hint for me?
>
>Uwe
>
>PS.: Those scripts run very well when used on the webserver - but not at
>home.
>
>



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




RE: [PHP-WIN] Vars not accepted in script.php?var=xy

2002-07-01 Thread Rich Gray

1st issue: If you are using v.4.2.x of PHP then globals are turned off by
default as a security measure. You can either switch back on globals defined
bt default by changing register_globals to On in your php.ini file (not a
good idea for security however) or change your code to use the super global
array i.e. $_GET['var']

2nd issue: try $row['name'] in single quotes

HTH
Rich

-Original Message-
From: Uwe Birkenhain [mailto:[EMAIL PROTECTED]]
Sent: 01 July 2002 08:46
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Vars not accepted in script.php?var=xy


Hi,
I try to use PHP on my Win98 PC. It is mainly running but there is a
problem:
When I want to submit variables in the url
(http://localhost/script.php?var=xy),
the script will not know them and show me the message "Notice: undefined
variable var ..."

Conditions which depend on var will not work.

I thougt that perhaps there has something to be enabled in php.ini - but
couldn't find anything.


The next problem, which is perhaps connected to the first:
When using something like:
  while ($row = mysql_fetch_array($result)) {
   $name = $row[name]; }

I get the message:
"Notice: Use of undefined constant name - assumed 'name' in ..."

It is working and can be suppressed by not let php show the warnings - but
I'm surprised about it.


Has anybody the right hint for me?

Uwe

PS.: Those scripts run very well when used on the webserver - but not at
home.



--
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-WIN] HELP!!!

2002-07-01 Thread Brian McGarvie

I have a failrly complex web-application...

Its running on Windows 2000 Server, IIS, PHP 4.1.2 (running php as cgi), Integrates 
with MySQL and MS Access...

My Problem is...

It works fine using IE 5.5+ (PC/Mac), NN4/NN6 (PC/Mac), however when I try to use IE 
5.0 (PC) it does'nt!

Anyone care to help me out? Had similar problems and might be able to enlighten me?

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




RE: [PHP-WIN] HELP!!!

2002-07-01 Thread Jarrad Kabral

sorry you'll have to be a little more specific than "it doesnt work, whats
wrong"


Jarrad Kabral



-Original Message-
From: Brian McGarvie [mailto:[EMAIL PROTECTED]]
Sent: Monday, 1 July 2002 6:20 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] HELP!!!


I have a failrly complex web-application...

Its running on Windows 2000 Server, IIS, PHP 4.1.2 (running php as cgi),
Integrates with MySQL and MS Access...

My Problem is...

It works fine using IE 5.5+ (PC/Mac), NN4/NN6 (PC/Mac), however when I try
to use IE 5.0 (PC) it does'nt!

Anyone care to help me out? Had similar problems and might be able to
enlighten me?

-- 
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




Re: [PHP-WIN] HELP!!!

2002-07-01 Thread Julie Meloni

BM> It works fine using IE 5.5+ (PC/Mac), NN4/NN6 (PC/Mac), however when I try to use 
IE 5.0 (PC) it does'nt!

PHP doesn't know what browser you are using, nor does it care (unless
you tell it to).  Provide more information about what "isn't working"
and someone can probably help you out.  For example, if "isn't
working" means "my cookies aren't being accepted", then someone will help
you with testing cookie settings in your browser. And so on.


- Julie

--> Julie Meloni
--> [EMAIL PROTECTED]
--> www.thickbook.com

Find "Sams Teach Yourself MySQL in 24 Hours" at
http://www.amazon.com/exec/obidos/ASIN/0672323494/thickbookcom-20


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




RE: [PHP-WIN] HELP!!!

2002-07-01 Thread Brian McGarvie

It is using sessions from the outset...

As soon as I goto the URL it IE5.0 warns about cookies and i obviously allow it to 
make it...

> -Original Message-
> From: Brian McGarvie 
> Sent: 01 July 2002 9:20 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] HELP!!!
> 
> 
> I have a failrly complex web-application...
> 
> Its running on Windows 2000 Server, IIS, PHP 4.1.2 (running 
> php as cgi), Integrates with MySQL and MS Access...
> 
> My Problem is...
> 
> It works fine using IE 5.5+ (PC/Mac), NN4/NN6 (PC/Mac), 
> however when I try to use IE 5.0 (PC) it does'nt!
> 
> Anyone care to help me out? Had similar problems and might be 
> able to enlighten me?
> 
> -- 
> 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




RE: [PHP-WIN] HELP!!!

2002-07-01 Thread Brian McGarvie

Entering data in the form and then pressing submit... it just stays at the form, 
doesn't even try to progress...

> -Original Message-
> From: Julie Meloni [mailto:[EMAIL PROTECTED]]
> Sent: 01 July 2002 9:20 AM
> To: Brian McGarvie
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] HELP!!!
> 
> 
> BM> It works fine using IE 5.5+ (PC/Mac), NN4/NN6 (PC/Mac), 
> however when I try to use IE 5.0 (PC) it does'nt!
> 
> PHP doesn't know what browser you are using, nor does it care (unless
> you tell it to).  Provide more information about what "isn't working"
> and someone can probably help you out.  For example, if "isn't
> working" means "my cookies aren't being accepted", then 
> someone will help
> you with testing cookie settings in your browser. And so on.
> 
> 
> - Julie
> 
> --> Julie Meloni
> --> [EMAIL PROTECTED]
> --> www.thickbook.com
> 
> Find "Sams Teach Yourself MySQL in 24 Hours" at
> http://www.amazon.com/exec/obidos/ASIN/0672323494/thickbookcom-20
> 
> 

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




Re[2]: [PHP-WIN] HELP!!!

2002-07-01 Thread Julie Meloni

BM> Entering data in the form and then pressing submit... it just stays at the form, 
doesn't even try to progress...

View Source and verify that you have a form action present.

- Julie

--> Julie Meloni
--> [EMAIL PROTECTED]
--> www.thickbook.com

Find "Sams Teach Yourself MySQL in 24 Hours" at
http://www.amazon.com/exec/obidos/ASIN/0672323494/thickbookcom-20


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




[PHP-WIN] Re: php error logging

2002-07-01 Thread Joris Pinnoo

sorry, I forgot to tell. I'am running IIS

still any good ideas?

thanks,

Joris

"Alex Elderson" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Let your webserver log for you.
>
> if u run apache with VH do:
>
>
> >
>
>ErrorLog c:/web/logs/webserver.hardinxveld.netflex.nl-error_log
>CustomLog c:/web/logs/webserver.hardinxveld.netflex.nl-access_log
common
>
> 
>
> in your php.ini:
>
> ;error_log
>
> - Original Message -
> From: "Joris Pinnoo" <[EMAIL PROTECTED]>
> Newsgroups: php.windows
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, June 27, 2002 12:26 AM
> Subject: php error logging
>
>
> > in php.ini my error_log directive has a specific value :
c:\php\error.log
> >
> > so all the errors are logged in one file.
> >
> > how do you make multiple log-files? each file containing the errors from
> one
> > specific website.
> >
> > any ideas?
> >
> > thanks,
> > Joris Pinnoo
> >
> >
>
>
>



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




php-windows Digest 1 Jul 2002 08:58:58 -0000 Issue 1219

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


php-windows Digest 1 Jul 2002 08:58:58 - Issue 1219

Topics (messages 14481 through 14498):

filemtime()
14481 by: James Mclean
14482 by: Peter
14483 by: Matt Parlane

Re: function call 
14484 by: toby z

Re: errormessage: undefined variables - why define them?
14485 by: Uwe Birkenhain
14487 by: Steve Yates

Re: 404 error not being triggered for files with a php extension
14486 by: Steve Yates

Re: Problems acessing post data
14488 by: Steve Yates

Vars not accepted in script.php?var=xy
14489 by: Uwe Birkenhain
14490 by: Uwe Birkenhain
14491 by: Rich Gray

HELP!!!
14492 by: Brian McGarvie
14493 by: Jarrad Kabral
14494 by: Julie Meloni
14495 by: Brian McGarvie
14496 by: Brian McGarvie
14497 by: Julie Meloni

Re: php error logging
14498 by: Joris Pinnoo

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,

Anyone know if the function filemtime() is available in php, running
under IIS 5 on Windows 2000 Server?

(i hate windows, why cant the world use Unix?)

Cheers

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

do a search for it in the manual :)  if it works on php unix it will work with php 
windows :)

-Original Message-
From: James Mclean [mailto:[EMAIL PROTECTED]]
Sent: Monday, 1 July 2002 2:15 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] filemtime()



Hi,

Anyone know if the function filemtime() is available in php, running
under IIS 5 on Windows 2000 Server?

(i hate windows, why cant the world use Unix?)

Cheers

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


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

Hi James...

Yep - filemtime() works fine on Windows.

And to answer Peter - it's not safe to assume that if something works on
*nix PHP, it will work on Windows PHP - have a look a usleep(), or perhaps
the entire PCNTL function family.

Thanks,

Matt

"James McLean" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> Hi,
>
> Anyone know if the function filemtime() is available in php, running
> under IIS 5 on Windows 2000 Server?
>
> (i hate windows, why cant the world use Unix?)
>
> Cheers



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

thnx bruce, paul, chris, cal ...

but i ve tried it 
inlcude doesnt work 
i keep gettin this error:


Warning: Failed opening
'http:\localhost\cat_disply.php' for inclusion
(include_path='C:\WINDOWS\system32\inetsrv\php') in
e:\final project\zroot\z3.php on line 3


my tries to make line 3 work are:

1. $cat = include 'http:\\localhost\cat_disply.php' ;

2. $cat = include 'cat_disply.php' ;

and even without $cat variable 

3. require_once(cat_disply.php);

4. require(cat_disply.php);

5.require($DOCUMENT_ROOT . "cat_disply.php");

and i get another error (for require):

Fatal error: Failed opening required 'e:/final
project/zrootcat_disply.php' (include_path='E:\final
project\zroot') in e:\final project\zroot\z3.php on
line 3

i even tried return $cat; in cat_dislpy
but nothing seems to be working

out of sheer desperation  i tried changing the include
path in php.ini to my localhost but to no use


will someone plz help 

& im mailin on the "right" list now .


thnx a miion ... everyone 


toby ...







__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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

It was again very easy,
I woke up this morning (at 6) and remembered that there are different
possibilites to adjust the behavior of errormessages in php.ini - and that
was it: "show all errormessages and warnings" - what I never have on the
server. And then php will will warn me - and will later fill that variable
with an empty string.

Thanks for the help,
Uwe

But there remains the question why the programs are not running anyway - but
I will try first.

I nice and sunny week to everybody!


Uwe Birkenhain schrieb in Nachricht
<[EMAIL PROTECTED]>...
>Hi everybody,
>I have PHP 4.21 since today running on my win98-PC (YEAH!)
>
>Now I try the programs which I usually use on a webserver -
>they work basically, but I get a lot of errormessages like "Undefined
>variable: mod in ."
>
>Two questions:
>- is it now neccessary to define variables before I use them??? Or is it a
>windows-problem? Or what?
>- some of the undefined variables are defined, but in an include-file - why
>might this be a problem?
>
>Thank's a lot for any help,
>Uwe
>
>





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

"Uwe Birkenhain" <[EMAIL PROTECTED]> wrote in message
[EMA

[PHP-WIN] IIS problem

2002-07-01 Thread Erik Bartos

Hi!
I installed succesfully IIS V5.1 and PHP 4.2.1 under WinXP Professional.
After running my php scripts I got error "winsock.dll unusable. 1009". Can
you help me with this problem? Is there bad configuration of IIS or missing
paths in php.ini?
JErik



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




[PHP-WIN] 3 tier web app w/ php

2002-07-01 Thread Alvin Tan

how can i develop a 3 tier app with php?

alvin

__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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




Re: [PHP-WIN] Using Bzip2 to create an archive... SECOND REQUEST

2002-07-01 Thread Adrian Ritchie



"Mikey" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> OK, as I said - I have already read this - if you can find where it shows
> how to create an *archive* within this compressed file, please let me
> know...
>
> Mikey
>
> > -Original Message-
> > From: Dash McElroy [mailto:[EMAIL PROTECTED]]
> > Sent: 25 June 2002 23:24
> > To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
> > Subject: RE: [PHP-WIN] Using Bzip2 to create an archive... SECOND
> > REQUEST
> >
> >
> > http://www.php.net/manual/en/ref.bzip2.php
> >
> > In particular, look at bzopen() and bzclose(), as well as bzread().
> >
> > -Dash
> >
> > -Original Message-
> > From: Mikey [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, June 25, 2002 3:23 PM
> > To: [EMAIL PROTECTED]
> > Subject: FW: [PHP-WIN] Using Bzip2 to create an archive... SECOND
REQUEST
> >
> >
> >
> >
> > > -Original Message-
> > > From: Mikey [mailto:[EMAIL PROTECTED]]
> > > Sent: 24 June 2002 18:42
> > > To: [EMAIL PROTECTED]
> > > Subject: [PHP-WIN] Using Bzip2 to create an archive...
> > >
> > >
> > > Hi there!
> > >
> > > I was wondering if anyone here had used the bzip functions to create
an
> > > archive?  The documentation shows only how to compress strings,
> > yet I want
> > > to create an archive similar to the HTML documentation available from
> > > php.net
> > >
> > > TIA,
> > >
> > > mikey
> > >
> > >
> > > --
> > > 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-WIN] Function question

2002-07-01 Thread Matt Babineau

I have written a couple functions in a PHP page. Is there any way to
make those functions available to other PHP pages, aside from pulling
them out of the page and making include() or require() reference to
them? I am wondering if PHP has a system similar to ColdFusion's Custom
Tag?
 
Matt Babineau
MCWD / CCFD
-
e:   [EMAIL PROTECTED]
p: 603.943.4237
w:   http://www.criticalcode.com
PO BOX 601
Manchester, NH 03105
 



[PHP-WIN] Re: Set Locale

2002-07-01 Thread Daniel Berwig

setlocale (LC_ALL, "PT_BR");

or if under windows:
setlocale (LC_ALL, "Portuguese Brazil");

Best Regards,

Daniel Berwig.


"Saci" <[EMAIL PROTECTED]> escreveu na mensagem
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> For example
>
> setlocale(LC_ALL, "De");
> setlocale(LC_ALL, 'nl_NL');
>
> Where I can found a table with all locale strings available ?
>
> What is the string to set locale to Brazilian locale ?
>
>



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




RE: [PHP-WIN] Using Bzip2 to create an archive... SECOND REQUEST

2002-07-01 Thread Mikey

Sorry Adrian, this is from the manual and only shows how to compress a
single string within an bz2 file - what I want to know how to do is compress
a number of files within the file, creating an archive... (Much like the way
the PHP manual is distributed)

Mikey

> -Original Message-
> From: Adrian Ritchie [mailto:[EMAIL PROTECTED]]
> Sent: 01 July 2002 13:11
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] Using Bzip2 to create an archive... SECOND
> REQUEST
>
>
> 
> $filename = "/tmp/testfile.bz2";
> $str = "This is a test string.\n";
>
> // open file for writing
> $bz = bzopen($filename, "w");
>
> // write string to file
> bzwrite($bz, $str);
>
> // close file
> bzclose($bz);
>
> // open file for reading
> $bz = bzopen($filename, "r");
>
> // read 10 characters
> print bzread($bz, 10);
>
> // output until end of the file (or the next 1024 char) and close it.
> print bzread($bz);
>
> bzclose($bz);
>
> ?>
>
> "Mikey" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > OK, as I said - I have already read this - if you can find
> where it shows
> > how to create an *archive* within this compressed file, please let me
> > know...
> >
> > Mikey
> >
> > > -Original Message-
> > > From: Dash McElroy [mailto:[EMAIL PROTECTED]]
> > > Sent: 25 June 2002 23:24
> > > To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
> > > Subject: RE: [PHP-WIN] Using Bzip2 to create an archive... SECOND
> > > REQUEST
> > >
> > >
> > > http://www.php.net/manual/en/ref.bzip2.php
> > >
> > > In particular, look at bzopen() and bzclose(), as well as bzread().
> > >
> > > -Dash
> > >
> > > -Original Message-
> > > From: Mikey [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, June 25, 2002 3:23 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: FW: [PHP-WIN] Using Bzip2 to create an archive... SECOND
> REQUEST
> > >
> > >
> > >
> > >
> > > > -Original Message-
> > > > From: Mikey [mailto:[EMAIL PROTECTED]]
> > > > Sent: 24 June 2002 18:42
> > > > To: [EMAIL PROTECTED]
> > > > Subject: [PHP-WIN] Using Bzip2 to create an archive...
> > > >
> > > >
> > > > Hi there!
> > > >
> > > > I was wondering if anyone here had used the bzip functions to create
> an
> > > > archive?  The documentation shows only how to compress strings,
> > > yet I want
> > > > to create an archive similar to the HTML documentation
> available from
> > > > php.net
> > > >
> > > > TIA,
> > > >
> > > > mikey
> > > >
> > > >
> > > > --
> > > > 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




[PHP-WIN] php4ts error

2002-07-01 Thread David M. Doggette

After successfully installing and using PHP, I all of a sudden got this
error (on win2k with IIS):

The HTTP server encountered an unhandled exception while processing the
ISAPI Application '

php4ts!zend_strndup + 0x2B

+ 0xA05E5983

'.

For additional information specific to this message please visit the
Microsoft Online Support site located at:
http://www.microsoft.com/contentredirect.asp.

Does anyone have a clue how to fix.  Please include
[EMAIL PROTECTED] on your response.


--
David M. Doggette
2002 Certified Interwoven Consultant
301.725.0299



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




RE: [PHP-WIN] Re: errormessage: undefined variables - why define them?

2002-07-01 Thread Dash McElroy

PHP will also bark at you if you don't put quotes around other functions,
like date:

date(mdy); will bark at you while:
date("mdy"); will not.

-Dash

-Original Message-
From: Uwe Birkenhain [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, June 30, 2002 9:54 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Re: errormessage: undefined variables - why define them?


It was again very easy,
I woke up this morning (at 6) and remembered that there are different
possibilites to adjust the behavior of errormessages in php.ini - and that
was it: "show all errormessages and warnings" - what I never have on the
server. And then php will will warn me - and will later fill that variable
with an empty string.

Thanks for the help,
Uwe

But there remains the question why the programs are not running anyway - but
I will try first.

I nice and sunny week to everybody!


Uwe Birkenhain schrieb in Nachricht
<[EMAIL PROTECTED]>...
>Hi everybody,
>I have PHP 4.21 since today running on my win98-PC (YEAH!)
>
>Now I try the programs which I usually use on a webserver -
>they work basically, but I get a lot of errormessages like "Undefined
>variable: mod in ."
>
>Two questions:
>- is it now neccessary to define variables before I use them??? Or is it a
>windows-problem? Or what?
>- some of the undefined variables are defined, but in an include-file - why
>might this be a problem?
>
>Thank's a lot for any help,
>Uwe
>
>





-- 
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




RE: [PHP-WIN] function call ????

2002-07-01 Thread Dash McElroy

Toby:

You might want to try the path name, not the URL (unless you really want to
include the URL). I've also had errors pop up when you don't put double
quotes around the file name. Also, can you input an include statement to a
variable?!? I've never tried that, and I don't see why you would want to?

Try

include "cat_display.php";

or include "e:\final project\zroot\cat_display.php";

as well as commenting out your PHP.INI's include_path line.

Also, the error messages should give you a clue:

Warning: Failed opening
'http:\localhost\cat_disply.php' for inclusion
(include_path='C:\WINDOWS\system32\inetsrv\php') in
e:\final project\zroot\z3.php on line 3

http:\localhost won't work...

Fatal error: Failed opening required 'e:/final
project/zrootcat_disply.php' (include_path='E:\final
project\zroot') in e:\final project\zroot\z3.php on
line 3

Look at the path name, there is no slash between zroot and cat_display.php.

Take a real hard look at your syntax and try again.

-Dash

-Original Message-
From: toby z [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, June 30, 2002 9:50 PM
To: [EMAIL PROTECTED]; php hlp list
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] function call 


thnx bruce, paul, chris, cal ...

but i ve tried it 
inlcude doesnt work 
i keep gettin this error:


Warning: Failed opening
'http:\localhost\cat_disply.php' for inclusion
(include_path='C:\WINDOWS\system32\inetsrv\php') in
e:\final project\zroot\z3.php on line 3


my tries to make line 3 work are:

1. $cat = include 'http:\\localhost\cat_disply.php' ;

2. $cat = include 'cat_disply.php' ;

and even without $cat variable 

3. require_once(cat_disply.php);

4. require(cat_disply.php);

5.require($DOCUMENT_ROOT . "cat_disply.php");

and i get another error (for require):

Fatal error: Failed opening required 'e:/final
project/zrootcat_disply.php' (include_path='E:\final
project\zroot') in e:\final project\zroot\z3.php on
line 3

i even tried return $cat; in cat_dislpy
but nothing seems to be working

out of sheer desperation  i tried changing the include
path in php.ini to my localhost but to no use


will someone plz help 

& im mailin on the "right" list now .


thnx a miion ... everyone 


toby ...







__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

-- 
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




RE: [PHP-WIN] Using Bzip2 to create an archive... SECOND REQUEST

2002-07-01 Thread Dash McElroy

I got it... You want to have several files in the bz2 file, no?

Does bz2 support that or do you have to tar it first? I think you just might
have to tar it first.

-Dash

-Original Message-
From: Mikey [mailto:[EMAIL PROTECTED]] 
Sent: Monday, July 01, 2002 8:12 AM
To: Adrian Ritchie; [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] Using Bzip2 to create an archive... SECOND REQUEST


Sorry Adrian, this is from the manual and only shows how to compress a
single string within an bz2 file - what I want to know how to do is compress
a number of files within the file, creating an archive... (Much like the way
the PHP manual is distributed)

Mikey

> -Original Message-
> From: Adrian Ritchie [mailto:[EMAIL PROTECTED]]
> Sent: 01 July 2002 13:11
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] Using Bzip2 to create an archive... SECOND
> REQUEST
>
>
> 
> $filename = "/tmp/testfile.bz2";
> $str = "This is a test string.\n";
>
> // open file for writing
> $bz = bzopen($filename, "w");
>
> // write string to file
> bzwrite($bz, $str);
>
> // close file
> bzclose($bz);
>
> // open file for reading
> $bz = bzopen($filename, "r");
>
> // read 10 characters
> print bzread($bz, 10);
>
> // output until end of the file (or the next 1024 char) and close it.
> print bzread($bz);
>
> bzclose($bz);
>
> ?>
>
> "Mikey" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > OK, as I said - I have already read this - if you can find
> where it shows
> > how to create an *archive* within this compressed file, please let me
> > know...
> >
> > Mikey
> >
> > > -Original Message-
> > > From: Dash McElroy [mailto:[EMAIL PROTECTED]]
> > > Sent: 25 June 2002 23:24
> > > To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
> > > Subject: RE: [PHP-WIN] Using Bzip2 to create an archive... SECOND
> > > REQUEST
> > >
> > >
> > > http://www.php.net/manual/en/ref.bzip2.php
> > >
> > > In particular, look at bzopen() and bzclose(), as well as bzread().
> > >
> > > -Dash
> > >
> > > -Original Message-
> > > From: Mikey [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, June 25, 2002 3:23 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: FW: [PHP-WIN] Using Bzip2 to create an archive... SECOND
> REQUEST
> > >
> > >
> > >
> > >
> > > > -Original Message-
> > > > From: Mikey [mailto:[EMAIL PROTECTED]]
> > > > Sent: 24 June 2002 18:42
> > > > To: [EMAIL PROTECTED]
> > > > Subject: [PHP-WIN] Using Bzip2 to create an archive...
> > > >
> > > >
> > > > Hi there!
> > > >
> > > > I was wondering if anyone here had used the bzip functions to create
> an
> > > > archive?  The documentation shows only how to compress strings,
> > > yet I want
> > > > to create an archive similar to the HTML documentation
> available from
> > > > php.net
> > > >
> > > > TIA,
> > > >
> > > > mikey
> > > >
> > > >
> > > > --
> > > > 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

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




[PHP-WIN] PHP or Apache error?!?

2002-07-01 Thread Nicholas Stuart

Hello all, I seem to be having an odd problem with uploading files. The
problem is I'm trying to upload multiple files at a time, but when I try
to do anything more then 10 megs it doesnt work. It doesnt give any error
reports or anything it just goes to the page and acts as if no files were
uploaded at all. Change the files around so that the total is under 10M
and it works fine. I'm pretty sure I've checked all the settings for PHP
but I could have missed something. Not sure about Apache but couldnt find
anything for that either.
Thanks for the help!
-Nick



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




RE: [PHP-WIN] PHP or Apache error?!?

2002-07-01 Thread Nicholas Stuart

Yes I already changed that. Like I said before it works for anything up to
10 megs, but once it seems to get to 11 it doesnt work. All the settings
are well over 10 and I dont know what else to look for.
Thanks again.
-Nick

Dash McElroy said:
> Have you checked your php.ini?
>
> Taken from mine:
>
> ; Maximum allowed size for uploaded files.
> upload_max_filesize = 2M
>
> There is a call you can make in PHP to change it for certain scripts,
> although I'm not sure what it is.
>
> -Dash
>
> -Original Message-
> From: Nicholas Stuart [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 01, 2002 11:43 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] PHP or Apache error?!?
>
>
> Hello all, I seem to be having an odd problem with uploading files. The
> problem is I'm trying to upload multiple files at a time, but when I try
> to do anything more then 10 megs it doesnt work. It doesnt give any
> error reports or anything it just goes to the page and acts as if no
> files were uploaded at all. Change the files around so that the total is
> under 10M and it works fine. I'm pretty sure I've checked all the
> settings for PHP but I could have missed something. Not sure about
> Apache but couldnt find anything for that either.
> Thanks for the help!
> -Nick
>
>
>
> --
> 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




RE: [PHP-WIN] Using Bzip2 to create an archive... SECOND REQUEST

2002-07-01 Thread Mikey

Thanks guys - I think this is the answer I was looking for - now to find tar
for win32... :-)

Mikey

> -Original Message-
> From: Dash McElroy [mailto:[EMAIL PROTECTED]]
> Sent: 01 July 2002 18:31
> To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED]
> Subject: RE: [PHP-WIN] Using Bzip2 to create an archive... SECOND
> REQUEST
>
>
> I got it... You want to have several files in the bz2 file, no?
>
> Does bz2 support that or do you have to tar it first? I think you
> just might
> have to tar it first.
>
> -Dash
>
> -Original Message-
> From: Mikey [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 01, 2002 8:12 AM
> To: Adrian Ritchie; [EMAIL PROTECTED]
> Subject: RE: [PHP-WIN] Using Bzip2 to create an archive... SECOND REQUEST
>
>
> Sorry Adrian, this is from the manual and only shows how to compress a
> single string within an bz2 file - what I want to know how to do
> is compress
> a number of files within the file, creating an archive... (Much
> like the way
> the PHP manual is distributed)
>
> Mikey
>
> > -Original Message-
> > From: Adrian Ritchie [mailto:[EMAIL PROTECTED]]
> > Sent: 01 July 2002 13:11
> > To: [EMAIL PROTECTED]
> > Subject: Re: [PHP-WIN] Using Bzip2 to create an archive... SECOND
> > REQUEST
> >
> >
> >  >
> > $filename = "/tmp/testfile.bz2";
> > $str = "This is a test string.\n";
> >
> > // open file for writing
> > $bz = bzopen($filename, "w");
> >
> > // write string to file
> > bzwrite($bz, $str);
> >
> > // close file
> > bzclose($bz);
> >
> > // open file for reading
> > $bz = bzopen($filename, "r");
> >
> > // read 10 characters
> > print bzread($bz, 10);
> >
> > // output until end of the file (or the next 1024 char) and close it.
> > print bzread($bz);
> >
> > bzclose($bz);
> >
> > ?>
> >
> > "Mikey" <[EMAIL PROTECTED]> wrote in message
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > OK, as I said - I have already read this - if you can find
> > where it shows
> > > how to create an *archive* within this compressed file, please let me
> > > know...
> > >
> > > Mikey
> > >
> > > > -Original Message-
> > > > From: Dash McElroy [mailto:[EMAIL PROTECTED]]
> > > > Sent: 25 June 2002 23:24
> > > > To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
> > > > Subject: RE: [PHP-WIN] Using Bzip2 to create an archive... SECOND
> > > > REQUEST
> > > >
> > > >
> > > > http://www.php.net/manual/en/ref.bzip2.php
> > > >
> > > > In particular, look at bzopen() and bzclose(), as well as bzread().
> > > >
> > > > -Dash
> > > >
> > > > -Original Message-
> > > > From: Mikey [mailto:[EMAIL PROTECTED]]
> > > > Sent: Tuesday, June 25, 2002 3:23 PM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: FW: [PHP-WIN] Using Bzip2 to create an archive... SECOND
> > REQUEST
> > > >
> > > >
> > > >
> > > >
> > > > > -Original Message-
> > > > > From: Mikey [mailto:[EMAIL PROTECTED]]
> > > > > Sent: 24 June 2002 18:42
> > > > > To: [EMAIL PROTECTED]
> > > > > Subject: [PHP-WIN] Using Bzip2 to create an archive...
> > > > >
> > > > >
> > > > > Hi there!
> > > > >
> > > > > I was wondering if anyone here had used the bzip
> functions to create
> > an
> > > > > archive?  The documentation shows only how to compress strings,
> > > > yet I want
> > > > > to create an archive similar to the HTML documentation
> > available from
> > > > > php.net
> > > > >
> > > > > TIA,
> > > > >
> > > > > mikey
> > > > >
> > > > >
> > > > > --
> > > > > 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
>
>


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




RE: [PHP-WIN] Using Bzip2 to create an archive... SECOND REQUEST

2002-07-01 Thread Dash McElroy

http://www.weihenstephan.de/~syring/win32/UnxUtils.html

or cygwin:

http://sources.redhat.com/cygwin/

-Dash

-Original Message-
From: Mikey [mailto:[EMAIL PROTECTED]] 
Sent: Monday, July 01, 2002 12:57 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] Using Bzip2 to create an archive... SECOND REQUEST


Thanks guys - I think this is the answer I was looking for - now to find tar
for win32... :-)

Mikey

> -Original Message-
> From: Dash McElroy [mailto:[EMAIL PROTECTED]]
> Sent: 01 July 2002 18:31
> To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED]
> Subject: RE: [PHP-WIN] Using Bzip2 to create an archive... SECOND
> REQUEST
>
>
> I got it... You want to have several files in the bz2 file, no?
>
> Does bz2 support that or do you have to tar it first? I think you
> just might
> have to tar it first.
>
> -Dash
>
> -Original Message-
> From: Mikey [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 01, 2002 8:12 AM
> To: Adrian Ritchie; [EMAIL PROTECTED]
> Subject: RE: [PHP-WIN] Using Bzip2 to create an archive... SECOND REQUEST
>
>
> Sorry Adrian, this is from the manual and only shows how to compress a
> single string within an bz2 file - what I want to know how to do
> is compress
> a number of files within the file, creating an archive... (Much
> like the way
> the PHP manual is distributed)
>
> Mikey
>
> > -Original Message-
> > From: Adrian Ritchie [mailto:[EMAIL PROTECTED]]
> > Sent: 01 July 2002 13:11
> > To: [EMAIL PROTECTED]
> > Subject: Re: [PHP-WIN] Using Bzip2 to create an archive... SECOND
> > REQUEST
> >
> >
> >  >
> > $filename = "/tmp/testfile.bz2";
> > $str = "This is a test string.\n";
> >
> > // open file for writing
> > $bz = bzopen($filename, "w");
> >
> > // write string to file
> > bzwrite($bz, $str);
> >
> > // close file
> > bzclose($bz);
> >
> > // open file for reading
> > $bz = bzopen($filename, "r");
> >
> > // read 10 characters
> > print bzread($bz, 10);
> >
> > // output until end of the file (or the next 1024 char) and close it.
> > print bzread($bz);
> >
> > bzclose($bz);
> >
> > ?>
> >
> > "Mikey" <[EMAIL PROTECTED]> wrote in message
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > OK, as I said - I have already read this - if you can find
> > where it shows
> > > how to create an *archive* within this compressed file, please let me
> > > know...
> > >
> > > Mikey
> > >
> > > > -Original Message-
> > > > From: Dash McElroy [mailto:[EMAIL PROTECTED]]
> > > > Sent: 25 June 2002 23:24
> > > > To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
> > > > Subject: RE: [PHP-WIN] Using Bzip2 to create an archive... SECOND
> > > > REQUEST
> > > >
> > > >
> > > > http://www.php.net/manual/en/ref.bzip2.php
> > > >
> > > > In particular, look at bzopen() and bzclose(), as well as bzread().
> > > >
> > > > -Dash
> > > >
> > > > -Original Message-
> > > > From: Mikey [mailto:[EMAIL PROTECTED]]
> > > > Sent: Tuesday, June 25, 2002 3:23 PM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: FW: [PHP-WIN] Using Bzip2 to create an archive... SECOND
> > REQUEST
> > > >
> > > >
> > > >
> > > >
> > > > > -Original Message-
> > > > > From: Mikey [mailto:[EMAIL PROTECTED]]
> > > > > Sent: 24 June 2002 18:42
> > > > > To: [EMAIL PROTECTED]
> > > > > Subject: [PHP-WIN] Using Bzip2 to create an archive...
> > > > >
> > > > >
> > > > > Hi there!
> > > > >
> > > > > I was wondering if anyone here had used the bzip
> functions to create
> > an
> > > > > archive?  The documentation shows only how to compress strings,
> > > > yet I want
> > > > > to create an archive similar to the HTML documentation
> > available from
> > > > > php.net
> > > > >
> > > > > TIA,
> > > > >
> > > > > mikey
> > > > >
> > > > >
> > > > > --
> > > > > 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
>
>


-- 
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-WIN] Tons of notices and warnings...for what reason?

2002-07-01 Thread Mike

I've installed IIS, MySQL, and PHP on my computer...When I a bulletin board
(PHP), I get around 50 errors...I went to the company that makes the board,
and they said to turn register_globals on...and nothing changed...Here's the
list of errors:

Notice: Undefined variable: nocache in c:\inetpub\wwwroot\global.php on line
23

Notice: Undefined variable: query_id in
c:\inetpub\wwwroot\admin\db_mysql.php on line 99

Notice: Undefined property: in c:\inetpub\wwwroot\admin\db_mysql.php on line
99

Notice: Use of undefined constant template - assumed 'template' in
c:\inetpub\wwwroot\global.php on line 54

Warning: Cannot add header information - headers already sent by (output
started at c:\inetpub\wwwroot\global.php:23) in
c:\inetpub\wwwroot\global.php on line 319

Warning: Cannot add header information - headers already sent by (output
started at c:\inetpub\wwwroot\global.php:23) in
c:\inetpub\wwwroot\global.php on line 322

Notice: Use of undefined constant template - assumed 'template' in
c:\inetpub\wwwroot\global.php on line 335

Notice: Use of undefined constant template - assumed 'template' in
c:\inetpub\wwwroot\global.php on line 335

Notice: Use of undefined constant template - assumed 'template' in
c:\inetpub\wwwroot\global.php on line 335

Notice: Use of undefined constant template - assumed 'template' in
c:\inetpub\wwwroot\global.php on line 335

Notice: Use of undefined constant template - assumed 'template' in
c:\inetpub\wwwroot\global.php on line 335

Notice: Use of undefined constant template - assumed 'template' in
c:\inetpub\wwwroot\global.php on line 335

Notice: Undefined variable: query_id in
c:\inetpub\wwwroot\admin\db_mysql.php on line 99

Notice: Undefined property: in c:\inetpub\wwwroot\admin\db_mysql.php on line
99

Notice: Use of undefined constant template - assumed 'template' in
c:\inetpub\wwwroot\global.php on line 180

Notice: Undefined variable: url in c:\inetpub\wwwroot\global.php on line 354

Notice: Undefined variable: bbtimezoneoffset in
c:\inetpub\wwwroot\global.php on line 360

Notice: Undefined variable: bbusername in c:\inetpub\wwwroot\index.php on
line 24

Notice: Use of undefined constant lastpost - assumed 'lastpost' in
c:\inetpub\wwwroot\index.php on line 37

Notice: Use of undefined constant allowposting - assumed 'allowposting' in
c:\inetpub\wwwroot\index.php on line 44

Notice: Use of undefined constant forumid - assumed 'forumid' in
c:\inetpub\wwwroot\index.php on line 49

Notice: Use of undefined constant title - assumed 'title' in
c:\inetpub\wwwroot\index.php on line 50

Notice: Use of undefined constant description - assumed 'description' in
c:\inetpub\wwwroot\index.php on line 53

Notice: Use of undefined constant replycount - assumed 'replycount' in
c:\inetpub\wwwroot\index.php on line 57

Notice: Use of undefined constant threadcount - assumed 'threadcount' in
c:\inetpub\wwwroot\index.php on line 58

Notice: Use of undefined constant lastpost - assumed 'lastpost' in
c:\inetpub\wwwroot\index.php on line 61

Notice: Use of undefined constant lastpost - assumed 'lastpost' in
c:\inetpub\wwwroot\index.php on line 62

Notice: Use of undefined constant lastpost - assumed 'lastpost' in
c:\inetpub\wwwroot\index.php on line 63

Notice: Undefined index: forumhomebit in c:\inetpub\wwwroot\global.php on
line 176

Notice: Undefined variable: query_id in
c:\inetpub\wwwroot\admin\db_mysql.php on line 99

Notice: Undefined property: in c:\inetpub\wwwroot\admin\db_mysql.php on line
99

Notice: Use of undefined constant template - assumed 'template' in
c:\inetpub\wwwroot\global.php on line 180

Notice: Undefined variable: forumbits in c:\inetpub\wwwroot\index.php(69) :
eval()'d code on line 1

Notice: Undefined index: forumhome in c:\inetpub\wwwroot\global.php on line
176

Notice: Undefined variable: query_id in
c:\inetpub\wwwroot\admin\db_mysql.php on line 99

Notice: Undefined property: in c:\inetpub\wwwroot\admin\db_mysql.php on line
99

Notice: Use of undefined constant template - assumed 'template' in
c:\inetpub\wwwroot\global.php on line 180

Notice: Undefined variable: newposts in c:\inetpub\wwwroot\index.php(72) :
eval()'d code on line 16

Notice: Use of undefined constant findword - assumed 'findword' in
c:\inetpub\wwwroot\global.php on line 70

Notice: Use of undefined constant replaceword - assumed 'replaceword' in
c:\inetpub\wwwroot\global.php on line 70

Notice: Use of undefined constant findword - assumed 'findword' in
c:\inetpub\wwwroot\global.php on line 70

Notice: Use of undefined constant replaceword - assumed 'replaceword' in
c:\inetpub\wwwroot\global.php on line 70

Notice: Use of undefined constant findword - assumed 'findword' in
c:\inetpub\wwwroot\global.php on line 70

Notice: Use of undefined constant replaceword - assumed 'replaceword' in
c:\inetpub\wwwroot\global.php on line 70

Notice: Use of undefined constant findword - assumed 'findword' in
c:\inetpub\wwwroot\global.php on line 70

Notice: Use of undefined constant replaceword - assumed 'replace

php-windows Digest 1 Jul 2002 23:38:40 -0000 Issue 1220

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


php-windows Digest 1 Jul 2002 23:38:40 - Issue 1220

Topics (messages 14499 through 14513):

IIS problem
14499 by: Erik Bartos

3 tier web app w/ php
14500 by: Alvin Tan

Re: Using Bzip2 to create an archive... SECOND REQUEST
14501 by: Adrian Ritchie
14504 by: Mikey
14508 by: Dash McElroy
14511 by: Mikey
14512 by: Dash McElroy

Function question
14502 by: Matt Babineau

Re: Set Locale
14503 by: Daniel Berwig

php4ts error
14505 by: David M. Doggette

Re: errormessage: undefined variables - why define them?
14506 by: Dash McElroy

Re: function call 
14507 by: Dash McElroy

PHP or Apache error?!?
14509 by: Nicholas Stuart
14510 by: Nicholas Stuart

Tons of notices and warnings...for what reason?
14513 by: Mike

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 installed succesfully IIS V5.1 and PHP 4.2.1 under WinXP Professional.
After running my php scripts I got error "winsock.dll unusable. 1009". Can
you help me with this problem? Is there bad configuration of IIS or missing
paths in php.ini?
JErik



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

how can i develop a 3 tier app with php?

alvin

__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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



"Mikey" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> OK, as I said - I have already read this - if you can find where it shows
> how to create an *archive* within this compressed file, please let me
> know...
>
> Mikey
>
> > -Original Message-
> > From: Dash McElroy [mailto:[EMAIL PROTECTED]]
> > Sent: 25 June 2002 23:24
> > To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
> > Subject: RE: [PHP-WIN] Using Bzip2 to create an archive... SECOND
> > REQUEST
> >
> >
> > http://www.php.net/manual/en/ref.bzip2.php
> >
> > In particular, look at bzopen() and bzclose(), as well as bzread().
> >
> > -Dash
> >
> > -Original Message-
> > From: Mikey [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, June 25, 2002 3:23 PM
> > To: [EMAIL PROTECTED]
> > Subject: FW: [PHP-WIN] Using Bzip2 to create an archive... SECOND
REQUEST
> >
> >
> >
> >
> > > -Original Message-
> > > From: Mikey [mailto:[EMAIL PROTECTED]]
> > > Sent: 24 June 2002 18:42
> > > To: [EMAIL PROTECTED]
> > > Subject: [PHP-WIN] Using Bzip2 to create an archive...
> > >
> > >
> > > Hi there!
> > >
> > > I was wondering if anyone here had used the bzip functions to create
an
> > > archive?  The documentation shows only how to compress strings,
> > yet I want
> > > to create an archive similar to the HTML documentation available from
> > > php.net
> > >
> > > TIA,
> > >
> > > mikey
> > >
> > >
> > > --
> > > 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 ---

Sorry Adrian, this is from the manual and only shows how to compress a
single string within an bz2 file - what I want to know how to do is compress
a number of files within the file, creating an archive... (Much like the way
the PHP manual is distributed)

Mikey

> -Original Message-
> From: Adrian Ritchie [mailto:[EMAIL PROTECTED]]
> Sent: 01 July 2002 13:11
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] Using Bzip2 to create an archive... SECOND
> REQUEST
>
>
> 
> $filename = "/tmp/testfile.bz2";
> $str = "This is a test string.\n";
>
> // open file for writing
> $bz = bzopen($filename, "w");
>
> // write string to file
> bzwrite($bz, $str);
>
> // close file
> bzclose($bz);
>
> // open file for reading
> $bz = bzopen($filename, "r");
>
> // read 10 characters
> print bzread($bz, 10);
>
> // output until end of the file (or the next 1024 char) and close it.
> print bzread($bz);
>
> bzclose($bz);
>
> ?>
>
> "Mikey" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > OK, as I said - I have already read this - if you can find
> where it shows
> > how to create an *archive* within this compressed file, please let me
> > know...
> >
> > Mikey
> >
> > > -Original Message-
> > > From: Dash McElroy [mailto:[EMAIL PROTECTED]]
> > > Sent: 25 June 2002 23:24
> > > To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
> > > Subject: RE: [PHP-WIN] Using Bzip2 to create an archive... SECOND
> > > REQUEST
> > >
> > >
> > > http://www.php.net/manual/en/ref.bzip2.php
> > >
> > > In particular, look at bzopen() and bzclose(), 

Re: [PHP-WIN] Tons of notices and warnings...for what reason?

2002-07-01 Thread Julie Meloni

M> Notice: Use of undefined constant replaceword - assumed 'replaceword' in
M> c:\inetpub\wwwroot\global.php on line 70


M> Anyway, I'm pretty sure it's one little tiny setting,

error reporting setting in php.ini.  There are options in the file;
it's probably E_ALL right now, you can set it lower (and restart your
server).


- Julie

--> Julie Meloni
--> [EMAIL PROTECTED]
--> www.thickbook.com

Find "Sams Teach Yourself MySQL in 24 Hours" at
http://www.amazon.com/exec/obidos/ASIN/0672323494/thickbookcom-20


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




RE: [PHP-WIN] Tons of notices and warnings...for what reason?

2002-07-01 Thread Dash McElroy

Sounds like they need to make better code.

-Dash

-Original Message-
From: Mike [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, June 30, 2002 6:52 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Tons of notices and warnings...for what reason?


I've installed IIS, MySQL, and PHP on my computer...When I a bulletin board
(PHP), I get around 50 errors...I went to the company that makes the board,
and they said to turn register_globals on...and nothing changed...Here's the
list of errors:

Notice: Undefined variable: nocache in c:\inetpub\wwwroot\global.php on line
23

Notice: Undefined variable: query_id in
c:\inetpub\wwwroot\admin\db_mysql.php on line 99

Notice: Undefined property: in c:\inetpub\wwwroot\admin\db_mysql.php on line
99

Notice: Use of undefined constant template - assumed 'template' in
c:\inetpub\wwwroot\global.php on line 54

Warning: Cannot add header information - headers already sent by (output
started at c:\inetpub\wwwroot\global.php:23) in
c:\inetpub\wwwroot\global.php on line 319

Warning: Cannot add header information - headers already sent by (output
started at c:\inetpub\wwwroot\global.php:23) in
c:\inetpub\wwwroot\global.php on line 322

Notice: Use of undefined constant template - assumed 'template' in
c:\inetpub\wwwroot\global.php on line 335

Notice: Use of undefined constant template - assumed 'template' in
c:\inetpub\wwwroot\global.php on line 335

Notice: Use of undefined constant template - assumed 'template' in
c:\inetpub\wwwroot\global.php on line 335

Notice: Use of undefined constant template - assumed 'template' in
c:\inetpub\wwwroot\global.php on line 335

Notice: Use of undefined constant template - assumed 'template' in
c:\inetpub\wwwroot\global.php on line 335

Notice: Use of undefined constant template - assumed 'template' in
c:\inetpub\wwwroot\global.php on line 335

Notice: Undefined variable: query_id in
c:\inetpub\wwwroot\admin\db_mysql.php on line 99

Notice: Undefined property: in c:\inetpub\wwwroot\admin\db_mysql.php on line
99

Notice: Use of undefined constant template - assumed 'template' in
c:\inetpub\wwwroot\global.php on line 180

Notice: Undefined variable: url in c:\inetpub\wwwroot\global.php on line 354

Notice: Undefined variable: bbtimezoneoffset in
c:\inetpub\wwwroot\global.php on line 360

Notice: Undefined variable: bbusername in c:\inetpub\wwwroot\index.php on
line 24

Notice: Use of undefined constant lastpost - assumed 'lastpost' in
c:\inetpub\wwwroot\index.php on line 37

Notice: Use of undefined constant allowposting - assumed 'allowposting' in
c:\inetpub\wwwroot\index.php on line 44

Notice: Use of undefined constant forumid - assumed 'forumid' in
c:\inetpub\wwwroot\index.php on line 49

Notice: Use of undefined constant title - assumed 'title' in
c:\inetpub\wwwroot\index.php on line 50

Notice: Use of undefined constant description - assumed 'description' in
c:\inetpub\wwwroot\index.php on line 53

Notice: Use of undefined constant replycount - assumed 'replycount' in
c:\inetpub\wwwroot\index.php on line 57

Notice: Use of undefined constant threadcount - assumed 'threadcount' in
c:\inetpub\wwwroot\index.php on line 58

Notice: Use of undefined constant lastpost - assumed 'lastpost' in
c:\inetpub\wwwroot\index.php on line 61

Notice: Use of undefined constant lastpost - assumed 'lastpost' in
c:\inetpub\wwwroot\index.php on line 62

Notice: Use of undefined constant lastpost - assumed 'lastpost' in
c:\inetpub\wwwroot\index.php on line 63

Notice: Undefined index: forumhomebit in c:\inetpub\wwwroot\global.php on
line 176

Notice: Undefined variable: query_id in
c:\inetpub\wwwroot\admin\db_mysql.php on line 99

Notice: Undefined property: in c:\inetpub\wwwroot\admin\db_mysql.php on line
99

Notice: Use of undefined constant template - assumed 'template' in
c:\inetpub\wwwroot\global.php on line 180

Notice: Undefined variable: forumbits in c:\inetpub\wwwroot\index.php(69) :
eval()'d code on line 1

Notice: Undefined index: forumhome in c:\inetpub\wwwroot\global.php on line
176

Notice: Undefined variable: query_id in
c:\inetpub\wwwroot\admin\db_mysql.php on line 99

Notice: Undefined property: in c:\inetpub\wwwroot\admin\db_mysql.php on line
99

Notice: Use of undefined constant template - assumed 'template' in
c:\inetpub\wwwroot\global.php on line 180

Notice: Undefined variable: newposts in c:\inetpub\wwwroot\index.php(72) :
eval()'d code on line 16

Notice: Use of undefined constant findword - assumed 'findword' in
c:\inetpub\wwwroot\global.php on line 70

Notice: Use of undefined constant replaceword - assumed 'replaceword' in
c:\inetpub\wwwroot\global.php on line 70

Notice: Use of undefined constant findword - assumed 'findword' in
c:\inetpub\wwwroot\global.php on line 70

Notice: Use of undefined constant replaceword - assumed 'replaceword' in
c:\inetpub\wwwroot\global.php on line 70

Notice: Use of undefined constant findword - assumed 'findword' in
c:\inetpub\wwwroot\global.php on line 70

Notice: Use of undefined constant replacewor

RE: [PHP-WIN] Tons of notices and warnings...for what reason?

2002-07-01 Thread Peter


Warning: Cannot add header information - headers already sent by (output
started at c:\inetpub\wwwroot\global.php:23) in
c:\inetpub\wwwroot\global.php on line 319


Mike,

When ever sending headers always make sure the php tags and header info are before 
anything else in the page 

eg




also make sure there are no blank lines before opening the php tags
then try your page... you may find that some of the other messages you are getting 
will dissapear when the headers are set

Cheers

Peter


Re: [PHP-WIN] case-sensitive

2002-07-01 Thread Chris Schmidt

include("config.php");
does not work;

"Peter" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> PHP variable names are case sensitive aren't they?
>
> It might just be that config.php can be found by Win2000 without the
> $includepath-as if you were typing include("config.php");
>
>
> "Chris Schmidt" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Sorry.
> >
> > I have an Windows 2000 box running PHP as CGI
> >
> > I use this
> > $includePath ="../";
> > include($includepath."config.php");
> >
> > Works on my Windows 2000
> >
> > not on unix.
> >
> > I change $includePath to $includepath and it works on both.
> >
> > "Stuart Dallas" <[EMAIL PROTECTED]> wrote in message
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > On Tuesday, June 25, 2002 at 9:27:42 PM, "Chris Schmidt" wrote:
> > >
> > > > Why on windows is PHP not case-sensitive but on Unix it is?  And can
> > this be
> > > > configured
> > >
> > > If you mean filenames, this is a choice the filesystem designers made
> and
> > there
> > > is no way to change it. If this is not what you mean, please be more
> > specific.
> > >
> > > --
> > > Stuart
> > >
> >
> >
>
>



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




RE: [PHP-WIN] case-sensitive

2002-07-01 Thread Peter




include("config.php");
does not work;



where is config.php in relation to the document that is calling it?

eg say your using http://www.blah.com/foo.php and that needs the config.php file..

if you use just include("config.php"); then config.php must be in the same place as 
foo.php

if config.php is in say config dir .. then use include("config/config.php");  

i use win 2k and use include with no probs all the time..

the thing to remember is you have to make the include point to where abouts the file 
is in your web tree.



[PHP-WIN] New book: PHP Programming for Windows

2002-07-01 Thread Manuel Lemos

Hello,

I just would like to let you know about this book that I think it is of 
the interest all PHP Windows users.

It seems that finally there is a book about how to do PHP Windows 
programming using Windows specific resources. Here you may find a review 
that was just published.

Title: PHP Programming for Windows
http://www.phpclasses.org/products.html/id/0735711690.html

Regards,
Manuel Lemos


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




[PHP-WIN] Followed install.txt... and NOTHING

2002-07-01 Thread news.per.connect.net.au

I am using Windows XP Professional version 2002.

I have followed the instructions of install.txt that came with the zipped
package at
http://www.php.net/do_download.php?download_file=php-4.2.1-Win32.zip a
number of times and I get no output when I try to write PHP files.  For
example, a simple  tag will display a blank page on my
browser.  I have tried running it through Apache version 1.3.24  (I must
admit I don't really know what I'm doing or what this all means).  All I
want to do is start using the PHP language with MySQL eventually.  Are there
simpler ways to configure this?  I'm stuck!

Thanks :o)



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




RE: [PHP-WIN] Followed install.txt... and NOTHING

2002-07-01 Thread Peter

wot messages do you have coming up on your browser?


-Original Message-
From: news.per.connect.net.au [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 2 July 2002 1:40 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Followed install.txt... and NOTHING


I am using Windows XP Professional version 2002.

I have followed the instructions of install.txt that came with the zipped
package at
http://www.php.net/do_download.php?download_file=php-4.2.1-Win32.zip a
number of times and I get no output when I try to write PHP files.  For
example, a simple  tag will display a blank page on my
browser.  I have tried running it through Apache version 1.3.24  (I must
admit I don't really know what I'm doing or what this all means).  All I
want to do is start using the PHP language with MySQL eventually.  Are there
simpler ways to configure this?  I'm stuck!

Thanks :o)



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




Re: [PHP-WIN] Tons of notices and warnings...for what reason?

2002-07-01 Thread Tracker 1

okay, in your php.ini in your windows folder, you have "register_globals"
set to on?  correct?  okay, the next thing you will want to do is restart
iis... if you are in win2k, start..run "iisreset" without the quotes..

this is especially needed if you are using the isapi module..

--
===
Michael J. Ryan  -  tracker1[*at*]theroughnecks.com
Roughneck BBS: http://www.theroughnecks.net  telnet://theroughnecks.net
===
Y!: aztracker1 - aim: azTracker1 - icq: 4935386 - msn: see email
One program for aim/icq/yahoo/msn/irc  -  http://www.trillian.cc/


"Dash McElroy" <[EMAIL PROTECTED]> wrote in message
ABA3F1F1A223D411BE6C006008A6F7E260437B@MSX1-PTON">news:ABA3F1F1A223D411BE6C006008A6F7E260437B@MSX1-PTON...
> Sounds like they need to make better code.
>
> -Dash
>
> -Original Message-
> From: Mike [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, June 30, 2002 6:52 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Tons of notices and warnings...for what reason?
>
>
> I've installed IIS, MySQL, and PHP on my computer...When I a bulletin board
> (PHP), I get around 50 errors...I went to the company that makes the board,
> and they said to turn register_globals on...and nothing changed...Here's the
> list of errors:
>
> Notice: Undefined variable: nocache in c:\inetpub\wwwroot\global.php on line
> 23
>
> Notice: Undefined variable: query_id in
> c:\inetpub\wwwroot\admin\db_mysql.php on line 99
>
> Notice: Undefined property: in c:\inetpub\wwwroot\admin\db_mysql.php on line
> 99
>
> Notice: Use of undefined constant template - assumed 'template' in
> c:\inetpub\wwwroot\global.php on line 54
>
> Warning: Cannot add header information - headers already sent by (output
> started at c:\inetpub\wwwroot\global.php:23) in
> c:\inetpub\wwwroot\global.php on line 319
>
> Warning: Cannot add header information - headers already sent by (output
> started at c:\inetpub\wwwroot\global.php:23) in
> c:\inetpub\wwwroot\global.php on line 322
>
> Notice: Use of undefined constant template - assumed 'template' in
> c:\inetpub\wwwroot\global.php on line 335
>
> Notice: Use of undefined constant template - assumed 'template' in
> c:\inetpub\wwwroot\global.php on line 335
>
> Notice: Use of undefined constant template - assumed 'template' in
> c:\inetpub\wwwroot\global.php on line 335
>
> Notice: Use of undefined constant template - assumed 'template' in
> c:\inetpub\wwwroot\global.php on line 335
>
> Notice: Use of undefined constant template - assumed 'template' in
> c:\inetpub\wwwroot\global.php on line 335
>
> Notice: Use of undefined constant template - assumed 'template' in
> c:\inetpub\wwwroot\global.php on line 335
>
> Notice: Undefined variable: query_id in
> c:\inetpub\wwwroot\admin\db_mysql.php on line 99
>
> Notice: Undefined property: in c:\inetpub\wwwroot\admin\db_mysql.php on line
> 99
>
> Notice: Use of undefined constant template - assumed 'template' in
> c:\inetpub\wwwroot\global.php on line 180
>
> Notice: Undefined variable: url in c:\inetpub\wwwroot\global.php on line 354
>
> Notice: Undefined variable: bbtimezoneoffset in
> c:\inetpub\wwwroot\global.php on line 360
>
> Notice: Undefined variable: bbusername in c:\inetpub\wwwroot\index.php on
> line 24
>
> Notice: Use of undefined constant lastpost - assumed 'lastpost' in
> c:\inetpub\wwwroot\index.php on line 37
>
> Notice: Use of undefined constant allowposting - assumed 'allowposting' in
> c:\inetpub\wwwroot\index.php on line 44
>
> Notice: Use of undefined constant forumid - assumed 'forumid' in
> c:\inetpub\wwwroot\index.php on line 49
>
> Notice: Use of undefined constant title - assumed 'title' in
> c:\inetpub\wwwroot\index.php on line 50
>
> Notice: Use of undefined constant description - assumed 'description' in
> c:\inetpub\wwwroot\index.php on line 53
>
> Notice: Use of undefined constant replycount - assumed 'replycount' in
> c:\inetpub\wwwroot\index.php on line 57
>
> Notice: Use of undefined constant threadcount - assumed 'threadcount' in
> c:\inetpub\wwwroot\index.php on line 58
>
> Notice: Use of undefined constant lastpost - assumed 'lastpost' in
> c:\inetpub\wwwroot\index.php on line 61
>
> Notice: Use of undefined constant lastpost - assumed 'lastpost' in
> c:\inetpub\wwwroot\index.php on line 62
>
> Notice: Use of undefined constant lastpost - assumed 'lastpost' in
> c:\inetpub\wwwroot\index.php on line 63
>
> Notice: Undefined index: forumhomebit in c:\inetpub\wwwroot\global.php on
> line 176
>
> Notice: Undefined variable: query_id in
> c:\inetpub\wwwroot\admin\db_mysql.php on line 99
>
> Notice: Undefined property: in c:\inetpub\wwwroot\admin\db_mysql.php on line
> 99
>
> Notice: Use of undefined constant template - assumed 'template' in
> c:\inetpub\wwwroot\global.php on line 180
>
> Notice: Undefined variable: forumbits in c:\inetpub\wwwroot\index.php(69) :
> eval()'d code on line 1
>
> Notice: Undefined index

Re: [PHP-WIN] Followed install.txt... and NOTHING

2002-07-01 Thread Tracker 1

it probably isn't interpreting the php at all...

First, follow the steps for manual installation, this involves creating
a php4 folder, and copying the php.ini to the x:\windows folder, and
some of the dll files to the x:\windows\system32 folder...

alternatively you can copy *.exe and *.dll to the windows\system folder.
(this was easier, although, admitedly slopier, but fine for a dev install)

once you have the files in place.. create a test.php file in it you
will have simply  ...  and from a command prompt type:
php.exe -c test.php

if this works, then php is installed... once you have php installed,
and configured (see php.ini), you will then need to configure apache.

in httpd.conf, you will want to uncomment the following lines...
ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php .phtml
Action application/x-httpd-php "/php/php.exe"

this should be all you need to have php configured as a cgi for apache
on win32...  personally, I prefer iis, simply because of other support
(asp, .net, etc)... but to each their own. :)

--
===
Michael J. Ryan  -  tracker1[*at*]theroughnecks.com
Roughneck BBS: http://www.theroughnecks.net  telnet://theroughnecks.net
===
Y!: aztracker1 - aim: azTracker1 - icq: 4935386 - msn: see email
One program for aim/icq/yahoo/msn/irc  -  http://www.trillian.cc/


"Peter" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> wot messages do you have coming up on your browser?
>
>
> -Original Message-
> From: news.per.connect.net.au [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, 2 July 2002 1:40 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Followed install.txt... and NOTHING
>
>
> I am using Windows XP Professional version 2002.
>
> I have followed the instructions of install.txt that came with the zipped
> package at
> http://www.php.net/do_download.php?download_file=php-4.2.1-Win32.zip a
> number of times and I get no output when I try to write PHP files.  For
> example, a simple  tag will display a blank page on my
> browser.  I have tried running it through Apache version 1.3.24  (I must
> admit I don't really know what I'm doing or what this all means).  All I
> want to do is start using the PHP language with MySQL eventually.  Are there
> simpler ways to configure this?  I'm stuck!
>
> Thanks :o)
>
>
>
> --
> 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




RE: [PHP-WIN] Followed install.txt... and NOTHING

2002-07-01 Thread Peter

make sure these lines are in your httpd.conf file in the conf dir of apache

LoadModule php4_module c:/php/sapi/php4apache.dll
AddType application/x-httpd-php .php4 .php .htm .php3 .inc
AddType application/x-httpd-php-source .phps

also make sure you have copied the php.ini file to you windows dir... ( if you can't 
see that file there will be a file called php.ini.dist or something like that and copy 
that there an rename it to php.ini)

and it should work.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 2 July 2002 2:10 PM
To: Peter
Subject: Re: [PHP-WIN] Followed install.txt... and NOTHING


I get no messages... its as if the PHP scripting wasnt present!

- Original Message -
From: "Peter" <[EMAIL PROTECTED]>
Newsgroups: php.windows
To: "news.per.connect.net.au" <[EMAIL PROTECTED]>;
<>
Sent: Tuesday, July 02, 2002 12:14 PM
Subject: RE: [PHP-WIN] Followed install.txt... and NOTHING


> wot messages do you have coming up on your browser?
>
>
> -Original Message-
> From: news.per.connect.net.au [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, 2 July 2002 1:40 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Followed install.txt... and NOTHING
>
>
> I am using Windows XP Professional version 2002.
>
> I have followed the instructions of install.txt that came with the zipped
> package at
> http://www.php.net/do_download.php?download_file=php-4.2.1-Win32.zip a
> number of times and I get no output when I try to write PHP files.  For
> example, a simple  tag will display a blank page on my
> browser.  I have tried running it through Apache version 1.3.24  (I must
> admit I don't really know what I'm doing or what this all means).  All I
> want to do is start using the PHP language with MySQL eventually.  Are
there
> simpler ways to configure this?  I'm stuck!
>
> Thanks :o)
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>