php-windows Digest 1 Jul 2002 23:38:40 -0000 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 ---
<?php
$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
> >
> >
>
--- 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
>
>
> <?php
>
> $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
>
>
>
--- End Message ---
--- Begin Message ---
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
>
>
> <?php
>
> $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
--- End Message ---
--- Begin Message ---
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
> >
> >
> > <?php
> >
> > $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
>
>
--- End Message ---
--- Begin Message ---
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
> >
> >
> > <?php
> >
> > $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
--- End Message ---
--- Begin Message ---
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: <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]
p: 603.943.4237
w: <http://www.criticalcode.com/> http://www.criticalcode.com
PO BOX 601
Manchester, NH 03105
--- End Message ---
--- Begin Message ---
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 ?
>
>
--- End Message ---
--- Begin Message ---
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
--- End Message ---
--- Begin Message ---
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
--- End Message ---
--- Begin Message ---
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 millllllllion ... 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
--- End Message ---
--- Begin Message ---
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
--- End Message ---
--- Begin Message ---
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
--- End Message ---
--- Begin Message ---
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>--
--- End Message ---