php-windows Digest 2 Jul 2002 12:59:05 -0000 Issue 1221

Topics (messages 14514 through 14525):

Re: Tons of notices and warnings...for what reason?
        14514 by: Julie Meloni
        14515 by: Dash McElroy
        14516 by: Peter
        14522 by: Tracker 1

Re: case-sensitive
        14517 by: Chris Schmidt
        14518 by: Peter

New book: PHP Programming for Windows
        14519 by: Manuel Lemos

Followed install.txt... and NOTHING
        14520 by: news.per.connect.net.au
        14521 by: Peter
        14523 by: Tracker 1
        14524 by: Peter

Downloading files?
        14525 by: Alex Elderson

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

--- End Message ---
--- Begin Message ---
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 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 '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 '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 '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 '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

The scripts run fine on tons of other people's servers...just not mine...so
I know the problem is on my end....

Anyway, I'm pretty sure it's one little tiny setting, but I can't figure out
for the life of me what it is...Anything you need to know, just ask...I can
tell you just about anything about the config ('cept password ;))

Also, if it isn't blatantly obvious, I'm new to PHP...Do you know of any
tutorials that could be considered light reading?  I've read the PHP manual
on php.net up to the function ref....

Sincerely,
--<Mike>--



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
<snip>
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
</snip>

Mike,

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

eg

<?
header(blah);
?>
<html>

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
--- End Message ---
--- Begin Message ---
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: 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 '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 '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 '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 '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 '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
>
> The scripts run fine on tons of other people's servers...just not mine...so
> I know the problem is on my end....
>
> Anyway, I'm pretty sure it's one little tiny setting, but I can't figure out
> for the life of me what it is...Anything you need to know, just ask...I can
> tell you just about anything about the config ('cept password ;))
>
> Also, if it isn't blatantly obvious, I'm new to PHP...Do you know of any
> tutorials that could be considered light reading?  I've read the PHP manual
> on php.net up to the function ref....
>
> Sincerely,
> --<Mike>--
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php


--- End Message ---
--- Begin Message ---
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
> > >
> >
> >
>
>


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

<snip>

include("config.php");
does not work;
</snip>


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.
--- End Message ---
--- Begin Message ---
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

--- End Message ---
--- Begin Message ---
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 <?PHP phpinfo();?> 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)


--- End Message ---
--- Begin Message ---
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 <?PHP phpinfo();?> 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

--- End Message ---
--- Begin Message ---
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 <?PHP phpinfo();?> ...  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 <?PHP phpinfo();?> 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
>
>


--- End Message ---
--- Begin Message ---
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 <?PHP phpinfo();?> 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
>
>
--- End Message ---
--- Begin Message ---
Hi,

I have made a php script ware you can download some files, but it doesn't
work very well

After the first "echo fread($fc, 10240);" line it will send some strange
data

what to do?



      if (!($fc = fopen($path . $file, "rb"))) {
        echo "error\n";
        exit;
      }
      $file_size = filesize($path . $file);

      ob_end_clean();
      ignore_user_abort(false);

      if(strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE')){
        // IE cannot download from sessions without a cache
        header('Cache-Control: public');
      }
      header("Content-type: application/octet-stream");
      header("Content-Disposition: attachment; filename=\"".$file."\"");
      header("Content-length: ".(string)($file_size));
      if ($description!="") {
          header("Content-Description: " . $description);
      }

      while(!feof($fc)) {
        set_time_limit(5);
        echo fread($fc, 10240);
        flush();
      }

      fclose($fc);
      exit;

--- End Message ---

Reply via email to