OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
php-general Digest 20 Jul 2004 18:20:36 -0000 Issue 2888

php-general-digest-helplists.php.net
Date: Tue Jul 20 2004 - 13:20:36 CDT


php-general Digest 20 Jul 2004 18:20:36 -0000 Issue 2888

Topics (messages 191116 through 191203):

Re: Dynamic function calls within the echo function, possible?
        191116 by: Justin Patrin

Re: is there anyway to use constants in a string?
        191117 by: Justin Patrin

Execute a scipt in the background
        191118 by: narender
        191120 by: Jason Barnett
        191186 by: Justin Patrin

Re: Apache 2 and PHP for Production?
        191119 by: Lester Caine
        191155 by: raditha dissanayake
        191192 by: Steve Wardell

Re: silly question: an IDE for php?
        191121 by: Burhan Khalid
        191130 by: Lester Caine

Re: php.net like doc pages
        191122 by: Burhan Khalid

Re: Mixing $_POST with text in a variable
        191123 by: Daniel Kullik

current directory?
        191124 by: Justin French
        191126 by: Jason Barnett
        191128 by: Jason Barnett
        191139 by: Jordi Canals

connect to an access DB
        191125 by: Paul Kain
        191127 by: zareef ahmed

Re: Plain Number
        191129 by: Torsten Roehr

Discussion Forum & Online Chat
        191131 by: Vinayakam Murugan
        191182 by: Harlequin
        191184 by: Jordi Canals

Counting download problem
        191132 by: Rausch Alexandru
        191143 by: Aidan Lister
        191150 by: Jason Wong

newbie needs help in getting php and MySQL integrated
        191133 by: Chris Hunt
        191134 by: Jason Barnett
        191135 by: Michael Purdy
        191152 by: Lester Caine
        191173 by: Philip Olson

Re: Login Script
        191136 by: Harlequin
        191137 by: Torsten Roehr
        191141 by: Jarratt Ingram
        191172 by: Brian Krausz

Re: Can't install PHP on Windows/Apache
        191138 by: Miroslav Hudak (php/ml)
        191153 by: Lester Caine

Help - GUI using PHP
        191140 by: T UmaShankari
        191142 by: Chris Hayes

multi-byte strings.
        191144 by: Koriun A. Margarian

Image manipulation in PHP
        191145 by: Mark Collin
        191147 by: Jason Wong

Re: Importing Excel data using PHP
        191146 by: Simon Fredriksson

Hokki =)
        191148 by: thies.digicol.de

Won't get $_SERVER['PHP_AUTH_USER']
        191149 by: Simon Fredriksson
        191169 by: Philip Olson

Re: Array Losing value
        191151 by: Jonathan Villa
        191185 by: Jonathan Villa
        191193 by: Justin Patrin

PHP Bespoke Email Solutions
        191154 by: Phil Ewington - 43 Plc

Re: OT but need guidance in timing page views
        191156 by: raditha dissanayake

Re: imagecreatefromjpeg fails on large files
        191157 by: raditha dissanayake

Performance issues and trees
        191158 by: Sven Riedel
        191171 by: Michael Sims
        191183 by: Sven Riedel

unlink(), why doesn't it delete the file????
        191159 by: Scott Fletcher
        191162 by: Jay Blanchard
        191163 by: Scott Fletcher
        191165 by: Scott Fletcher
        191166 by: Scott Fletcher

unlink(), is it suppose to delete file???
        191160 by: Scott Fletcher
        191161 by: Miroslav Hudak (php/ml)
        191167 by: Scott Fletcher

PHP 5 installation
        191164 by: Marv cook
        191168 by: Marv cook

PHP error catching....
        191170 by: Scott Fletcher
        191174 by: Philip Olson
        191175 by: Torsten Roehr
        191177 by: Curt Zirzow
        191178 by: Jason Wong
        191180 by: Scott Fletcher
        191187 by: Curt Zirzow
        191188 by: Jay Blanchard
        191190 by: Jonathan Haddad
        191191 by: Scott Fletcher

mailing list spam protection?
        191176 by: Brian Krausz
        191179 by: Jay Blanchard
        191189 by: John Nichel
        191194 by: bruce
        191200 by: Justin Patrin

Re: Embedded Email Directives
        191181 by: Jordi Canals

textarea/display question...
        191195 by: bruce
        191199 by: Jonathan Haddad
        191201 by: Dan Joseph
        191202 by: Vail, Warren

Re: Print page without images
        191196 by: Gerben

Money format
        191197 by: Lukáš Moravec - PTV Servis
        191203 by: Dan Joseph

Problem of a beginner with Array
        191198 by: Henri Marc

Administrivia:

To subscribe to the digest, e-mail:
        php-general-digest-subscribelists.php.net

To unsubscribe from the digest, e-mail:
        php-general-digest-unsubscribelists.php.net

To post to the list, e-mail:
        php-generallists.php.net

----------------------------------------------------------------------

attached mail follows:


Concatenation makes a slightly larger file, but it is:
1) Easier to read
2) More efficient when used with ' instead of "

If you use:

echo "row = $row!";

then you're forcing PHP to do the concatenation internally. It's
basically the same as:

echo 'row ='.$row.'!';

Only it takes more parsing when using ".

On Mon, 19 Jul 2004 17:45:01 -0700, XeRnOuS ThE <xernoushotmail.com> wrote:
>
> Well i already know about concatenation like that, but as you said,
> resource hog, though this way isnt really much better for the most part i
> just want to know. On the bright side of using this, while it takes a bit
> more resources, if i dont have to exit the parent string ( echo "<tr $row()"
> rather than echo "<tr".row().">";)
> it is technicly saving me roughly 5 bits of filesize per usage, lol
>
> But thanks for the CSS script, ill try using that instead. But still, is it
> even posisble to call functions like that in php?
>
> >From: Justin Patrin <papercranegmail.com>
> >Reply-To: papercranereversefold.com
> >To: XeRnOuS ThE <xernoushotmail.com>
> >CC: php-generallists.php.net
> >Subject: Re: [PHP] Dynamic function calls within the echo function,
> >possible?
> >Date: Mon, 19 Jul 2004 17:27:03 -0700
> >MIME-Version: 1.0
> >Received: from mproxy.gmail.com ([64.233.170.203]) by mc2-f23.hotmail.com
> >with Microsoft SMTPSVC(5.0.2195.6824); Mon, 19 Jul 2004 17:33:51 -0700
> >Received: by mproxy.gmail.com with SMTP id c11so298040rnb for
> ><xernoushotmail.com>; Mon, 19 Jul 2004 17:33:47 -0700 (PDT)
> >Received: by 10.38.73.11 with SMTP id v11mr12862rna; Mon, 19 Jul
> >2004 17:27:03 -0700 (PDT)
> >X-Message-Info: JGTYoYF78jESzP8alusJADEfHmc1ZYJK
> >Message-ID: <432beae04071917277f470e3amail.gmail.com>
> >In-Reply-To: <BAY16-F41pPBdfAYtls000161cbhotmail.com>
> >References: <BAY16-F41pPBdfAYtls000161cbhotmail.com>
> >Return-Path: papercranegmail.com
> >X-OriginalArrivalTime: 20 Jul 2004 00:33:51.0672 (UTC)
> >FILETIME=[3AF24B80:01C46DF1]
> >
> >Yo....:-/
> >
> >Hmmm, this must be PHP5 as in PHP4 parameters can't be by ref and have
> >a default value.
> >
> >You can just use concatenation (as you really should be for all vars
> >and function call in echo statements).
> >
> >echo '<tr style="background-color: '.row_color().';"><td>data</td></tr>';
> >
> >But then again, this is a waste of resources. Here's the CSS friendly way:
> >
> >echo '<style>
> >.row1 {
> > background-color: #c0c0c0;
> >}
> >.row2 {
> > backgorund-color: #808080;
> >}
> ></style>
> ><table>
> >';
> >
> >for($i = 0; $i < 5; ++$i) {
> > echo '<tr class="row'.($i % 2 ? '1' : '2').'"><td>Row '.$i.'</td></tr>
> >';
> >}
> >
>
> _________________________________________________________________
> Is your PC infected? Get a FREE online computer virus scan from McAfeeŽ
> Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
>
> !DSPAM:40fc68fc75091120856454!
>
>

--
DB_DataObject_FormBuilder - The database at your fingertips
http://pear.php.net/package/DB_DataObject_FormBuilder

paperCrane --Justin Patrin--

attached mail follows:


On Tue, 20 Jul 2004 00:31:19 -0400, Jason Barnett <jasbarneindiana.edu> wrote:
> I was working on something else tonight when I literally stumbled across another
> solution that works here... pick your poison:
>
> <?php
> $heredoc = <<<XML
> <?xml version="1.0" encoding="iso-8859-1" ?>
> <root>
> <node attribute="I am an attribute">
> <text>I am a text node.</text>
> </node>
> <dynamic>
> <string1>%1\$s</string1>
> <string1>%1\$s</string1>
> <string2>%2\$s</string2>
> <integer>%3\$d</integer>
> </dynamic>
> </root>
> XML;
>
> echo '<pre>';
> define ('string1', 'Well looky here, some text.');
> define ('string2', 'Man, I wish I could be a knight who said nee!');
> define ('integer', 123452345.23232);
>
> $xml = sprintf($heredoc, string1, string2, integer);
>
> print_r(htmlentities($xml));
>
> ?>
>

You don't need the print_r as it's a string.

Ugh, sprintf. It's a *lot* slower than using concatenation. Besides
which, you don't need that heredoc syntax. Just use quotes. PHP allows
you to have a newline in a quoted string.

--
DB_DataObject_FormBuilder - The database at your fingertips
http://pear.php.net/package/DB_DataObject_FormBuilder

paperCrane --Justin Patrin--

attached mail follows:


I want to start the execution of a script in the background at the time of user login. In the script there is infinite loop which is checking something after every 10 seconds and if it get true value the it open a popup window on the brower and if the user session expires then it terminate the script.
 how can I acheive this ?

I have tried to do this by putting the script path in the img tag in th src parameter but its not working. Is there any way of executing a file by means of writing a command in the php script.

Please help it's urgent.

Narender Rauthan
narendraxicom.biz

attached mail follows:


Narender wrote:

> I want to start the execution of a script in the background at the time of user login. In the script there is infinite loop which is checking something after every 10 seconds and if it get true value the it open a popup window on the brower and if the user session expires then it terminate the script.
> how can I acheive this ?
>
> I have tried to do this by putting the script path in the img tag in th src parameter but its not working. Is there any way of executing a file by means of writing a command in the php script.
>
> Please help it's urgent.

Trying to open popups every 10 seconds? Now *that's* why I use Mozilla's web
browser :)

attached mail follows:


On Thu, 17 Jun 2004 11:59:45 +0530, narender <narendraxicom.biz> wrote:
> I want to start the execution of a script in the background at the time of user login. In the script there is infinite loop which is checking something after every 10 seconds and if it get true value the it open a popup window on the brower and if the user session expires then it terminate the script.
> how can I acheive this ?
>
> I have tried to do this by putting the script path in the img tag in th src parameter but its not working. Is there any way of executing a file by means of writing a command in the php script.
>

You *may* be able to start a script in the background, but once the
first request to the webserver finishes, you can't interact with the
file again.

I would say do the check on every page load and popup your popup then.

You could also add some JS to make a call back to the webserver (via a
hidden iframe) to check to see if it should popup.

You could also run a PHP script from cron that writes a file (to /tmp,
say) that lets a request know when to popup. On every request, you
check for the file and popup if it's there. I definate;y do not
suggest this one.

--
DB_DataObject_FormBuilder - The database at your fingertips
http://pear.php.net/package/DB_DataObject_FormBuilder

paperCrane --Justin Patrin--

attached mail follows:


Oliver John V. Tibi wrote:

> Wow! And come to think of it, how did you do it? Or should I stick with
> Apache1 until there is a viable solution to this upgrade dilemma?

When I started playing with this, I had a windows machine onto which I
tried installing Apache1. After a couple of days of frustration, the
suggestion was 'Use Apache2', which installed and worked on W2k out of
the box. So I have never actually had Apache1 working ;)

PHP4 installed with a few niggles (copy files to the right place), but
PHP5 has never been a problem, just unzip and adjust a couple of path
names in the config files.

I now have the same setup working on Linux and Windows and while I
totally understand what Rasmus is saying about threading, it is
essential for the next generation of system. Especially when you start
looking at multiple processor systems?

--
Lester Caine
-----------------------------
L.S.Caine Electronic Services

attached mail follows:


Curt Zirzow wrote:

>>Don't know about benchmarks don't bother with them, but we were using
>>PHP and apache 2 on a production server and it just had too many problems.
>>
>>
>
>And for a longer explaination:
> http://marc.theaimsgroup.com/?l=php-dev&m=108736540021355&w=2
>
>
It was this or another message by Rasmus that persuaded us to switch
back to 1.3x of apache. I should have mentioned that my post wasn't a
complaint against the php developers :-)

>
>Curt
>
>

--
Raditha Dissanayake.
------------------------------------------------------------------------
http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload
Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
Graphical User Inteface. Just 128 KB | with progress bar.

attached mail follows:


Why is there such a reluctance to using Apache 2? For stability issues,
PHP should recommend Apache 2 but in prefork mode. Instead of saying
Apache 2 is unsupported, just say non prefork mode is not supported.
Additionally, if PHP is more acceptable of Apache 2 (in the supported
mode), then users will shift away from Apache 1.3 and more resources can
be put on Apache 2 (both from the Apache side and the PHP side). While
non prefork mode may not be supported until PHP is completely rewritten
(modules and all), there's no negativity in moving to Apache 2 prefork.
Everyone who has to support both Apache versions will be greatful when
1.3 falls away as most users move over to Apache 2 in time.

Steve

From:
Curt Zirzow <php-generalzirzow.dyndns.org>
Date:
Mon, 19 Jul 2004 23:05:50 -0400

* Thus wrote Oliver John V. Tibi:

>> Wow! And come to think of it, how did you do it? Or should I stick
>
>
with

>> Apache1 until there is a viable solution to this upgrade dilemma?
>
>

I would stay with stick with apache 1.x.

The only reason I would consider apache2 is if there was a module
only available in apache2 and no other reasonable solution that can
be done otherwise, that your site must have.

With apache2, I have one site that runs flawless, the other one has
spiratic wierd things happen that are unexplainable.

If you have an OS that installs apache2 by default (not to mention
any names) I would recomend an 'rpm delete apache2' and install
manually :)

attached mail follows:


Zhang Weiwu wrote:
> Not to start flame. I have been writing php using just vim for some
> time, it is a waste of time to put 'echo' statement everywhere to track
> variable values. I wonder what do the experienced users on php.net use
> for php development? Do you use IDE? Do you use Zend?
>
> Is there an alternative free (free as in 'beer') IDE rather than Zend
> that I can use to track variables, analize code and so like? I heard of
> bluefish, is it widely used?

PHPEdit would be my recommendation.
Although if you are serious about PHP, you should consider investing in
Zend.

attached mail follows:


Burhan Khalid wrote:

>> Is there an alternative free (free as in 'beer') IDE rather than Zend
>> that I can use to track variables, analize code and so like? I heard
>> of bluefish, is it widely used?
>
> PHPEdit would be my recommendation.
> Although if you are serious about PHP, you should consider investing in
> Zend.

It should be noted that PHPEdit is no longer 'free' and while I still
run an older version, it still has a little catching up to do.

While PHPEclipse has a little way to go, the Eclipse framework is
working well for me, handling everything else like Javascript, style
sheets, and PHP auto complete is working fine.
Yes Eclipse is a bit of a pig to set up, but on the other hand, once
there, it has a lot of power. Just add one of the SQL packages, and
manage databases, and XML fits in nicely as well. Just ignore all the
Java stuff and you are OK ;)

--
Lester Caine
-----------------------------
L.S.Caine Electronic Services

attached mail follows:


[php]Walter wrote:

> Anyone know a blog (I think) that will let me create documentation and let
> users add their comments to the tail of it, just like php.net can do??

Drupal's "collaborative book" feature is quite nice for this.

attached mail follows:


Skippy wrote:
> On Mon, 19 Jul 2004 14:15:09 -0400 Jason Barnett <jasbarneindiana.edu>
> wrote:
>
>>Markus Stobbs wrote:
>>
>>>$message = "
>>>Name: $Name
>>>Division: $Division
>>>Phone: $Phone
>>>Email: $Email";
>>>
>>>...but when I change $Name and the other variables to $_POST['Name'], I
>>>get this error:
>>>
>>>Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE,
>>>expecting T_STRING or T_VARIABLE or T_NUM_STRING in
>>>/web/scd/vets/Vislab/eventrequest.php on line 94
>>
>>When you have a variable that is inside a text string (double quotes) like
>>that then you do not need to have the quotes for your array index. So in
>>your case something like this should work:
>>
>>$message = "
>>Name: $_POST[Name]
>>Division: $_POST[Division]
>>Phone: $_POST[Phone]
>>Email: $_POST[Email]";
>
>
> I think this is just solving one bad practice (inserting array elements
> directly in strings) with another (letting undefined constants such as Name
> pass as variable values).
>
> The problem for Markus is that there's a limit to what kind of variables you
> can use directly inside strings. In particular, as he noticed, array elements
> referred by association ($_POST['Name']) won't work.
>
> Your workaround uses a trick: by not enclosing the element identificator
> (Name) in quotes, it is considered to be a constant. Since there's no
> constant with that name defined, it evaluates to the name of the constant,
> which is Name. This is bad practice; the manual page for constants
> specifically calls it that. And because you don't use quotes to delimitate
> the identificator, you don't have Markus's problem.
>
> The proper solution is to use string concatenation and thus place your
> variables outside of the string:
>
> $message = "
> Name: ".$_POST['Name']."
> Division: ".$_POST['Division']."
> Phone: ".$_POST['Phone']."
> Email: ".$_POST['Email'];
>
> It's good habit to restrain yourself from both the above bad practices.
> Try to always use concatenation and specifically put variables outside of
> strings, and always use the quotes for array identificators. Once the habit
> is in you'll have less headaches to worry about.
>

Hello.

Skippy, you ought to read this:
http://www.php.net/manual/en/language.types.string.php#language.types.string.parsing.simple

Explains how PHP parses variables (including arrays) inside strings.

Daniel

--
WWE e-commerce IT GmbH
Eiffestrasse 462, D-20537 Hamburg
Tel.: +49-40-2530659-0, Fax: +49-40-2530659-50

attached mail follows:


I've got some weirdness with files included via a symbolic link. Is
there any way I can find out what directory PHP is currently trying
include from?

---
Justin French
http://indent.com.au

attached mail follows:


Justin French wrote:

> I've got some weirdness with files included via a symbolic link. Is
> there any way I can find out what directory PHP is currently trying
> include from?
>
> ---
> Justin French
> http://indent.com.au

echo getcwd();

attached mail follows:


I should have probably added this to my last note, but if I find I'm having
"weirdness" with relative includes I do something like this:

include_once dirname(__FILE__) . "../relative/path/to/script.php";

The __FILE__ constant will resolve to the name of the file it's located in, so
you can rely on the relative path to get to where you want it.

attached mail follows:


Justin French wrote:
> I've got some weirdness with files included via a symbolic link. Is
> there any way I can find out what directory PHP is currently trying
> include from?

get_include_path();

Regards,
Jordi

attached mail follows:


Anyone know the syntax to use to connect to a microsoft access db on my
c: drive?

attached mail follows:


HI Paul !

 You should create a DSN With odbc. Then use
odbc functions of PHP.

visit
http://in2.php.net/manual/en/ref.uodbc.php

zareef ahmed

--- Paul Kain <paul.kaingmail.com> wrote:
> Anyone know the syntax to use to connect to a
> microsoft access db on my
> c: drive?
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

=====
Zareef Ahmed :: A PHP Developer in Delhi(India).
Homepage :: http://www.zasaifi.com

        
                
__________________________________
Do you Yahoo!?
Vote for the stars of Yahoo!'s next ad campaign!
http://advision.webevents.yahoo.com/yahoo/votelifeengine/

attached mail follows:


"Jeff Oien" <jeffwebdesigns1.com> wrote in message
news:40FC50B0.70209webdesigns1.com...
> Is there an easy way to make a number have no comma or decmal points?
> I've tried string replace with the comma but thought there would be a
> better alternative that I'm missing to cover more bases. number_format
> seems to add instead of take away items.
> Jeff

Take a look at number_format():
http://de3.php.net/number_format

Regards, Torsten Roehr

attached mail follows:


Hi

We are developing a PHP / MySql based website. The requirements include a
discussion forum and online chat application with open chat rooms, invited
chat & one-to-one chat.

There are many packages which are available on sourceforge and the like. I
would like the list's opinion from a programmer's point of view. The packages
would need to be customized according to the client's look & feel.

--
Warm Regards
~~~~~~~~~~~~~~~~~~~~~~~
Vinayakam Murugan

Tel: 91-22 - 2288 2163 Ext 121
Help Desk: 91-22 - 2288 2774
Fax Number: 91-22 - 2288 2809
Mobile : 022-31018082

http://www.TheArgonCompany.com

Viruses getting you down?
Get your virus protected mailbox at http://www.tassm.com

Linux. The Choice of the GNU generation

attached mail follows:


I've been looking around also and other than PHPbb didn't find anything I
liked. There are developers out there that will do the work but that defeats
the purpose of learning a language I think.

Hope you have some look.

--
-----------------------------
 Michael Mason
 Arras People
 www.arraspeople.co.uk
-----------------------------
"Vinayakam Murugan" <vinayakmtheargoncompany.com> wrote in message
news:200407201407.33150.vinayakmtheargoncompany.com...
> Hi
>
> We are developing a PHP / MySql based website. The requirements include a
> discussion forum and online chat application with open chat rooms, invited
> chat & one-to-one chat.
>
> There are many packages which are available on sourceforge and the like. I
> would like the list's opinion from a programmer's point of view. The
packages
> would need to be customized according to the client's look & feel.
>
> --
> Warm Regards
> ~~~~~~~~~~~~~~~~~~~~~~~
> Vinayakam Murugan
>
> Tel: 91-22 - 2288 2163 Ext 121
> Help Desk: 91-22 - 2288 2774
> Fax Number: 91-22 - 2288 2809
> Mobile : 022-31018082
>
> http://www.TheArgonCompany.com
>
> Viruses getting you down?
> Get your virus protected mailbox at http://www.tassm.com
>
> Linux. The Choice of the GNU generation

attached mail follows:


Vinayakam Murugan wrote:

> Hi
>
> We are developing a PHP / MySql based website. The requirements include a
> discussion forum and online chat application with open chat rooms, invited
> chat & one-to-one chat.
>
> There are many packages which are available on sourceforge and the like. I
> would like the list's opinion from a programmer's point of view. The packages
> would need to be customized according to the client's look & feel.
>
For the chat, I use the pjirc java applet. I'ts open source and really
customizable. There are some PHP samples in the FAQ area. The applet can
be found at http://www.pjirc.com

Regards,
Jordi.

attached mail follows:


Hi,
I have a script that creates automatically a zip arhive.
The script works fine, but I want to count downloads, and I made that
to, but if the user click "cancel" in the download panel the download it
is also counting. How can I prevent this from happening?
 
Thanks,
 
Rausch Alexandru

attached mail follows:


Rausch,

I've never seen this done before, I wouldn't bother. It's definitely not
possible without tapping into either the webserver or webserver log files.

Regards,
Aidan

"Rausch Alexandru" <rauschgo.ro> wrote in message
news:000701c46e35$c06f53e0$23a44d52rauschdessv76x...
> Hi,
> I have a script that creates automatically a zip arhive.
> The script works fine, but I want to count downloads, and I made that
> to, but if the user click "cancel" in the download panel the download it
> is also counting. How can I prevent this from happening?
>
> Thanks,
>
> Rausch Alexandru
>

attached mail follows:


On Tuesday 20 July 2004 16:44, Rausch Alexandru wrote:

> I have a script that creates automatically a zip arhive.
> The script works fine, but I want to count downloads, and I made that
> to, but if the user click "cancel" in the download panel the download it
> is also counting. How can I prevent this from happening?

Have a look at connection_aborted().

--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
"Regardless of the legal speed limit, your Buick must be operated at
speeds faster than 85 MPH (140kph)."
-- 1987 Buick Grand National owners manual.
*/

attached mail follows:


All,

I'm a newbie trying to learn PHP and MySQL (following examples in a book "PHP and MySQL by Larry Ullman". I am running:

Windows XP SP1
Norton Antivirus and Internet Security
Apache 2
PHP 5
MySQL 4.0.16

All seem to work. I can run PHP scripts on the Apache server without any trouble. I have MySQL running as a service and the basic SQL command line commands and winmysqladmin shows all ok (to my limited knowledge so far).

So as the PHP installation instructions stated :

  Since PHP 4.0.5 MySQL, ODBC, FTP, Calendar, BCMath, COM, PCRE,
  Session, WDDX and XML support is built-in. You don't need to
  load any additional extensions in order to use these functions.

and I have basic PHP scripts running I though making a call to mysql_connect would be pretty straight forward. The script I'm running is simply

<?php

echo mysql_connect ('localhost', 'webuser', 'BroWs1ng');

?>

where webuserlocalhost has been granted select privileges on a test database. I receive the following error message:

Fatal error: Call to undefined function mysql_connect() in C:\WebSpace\mysql_test.php on line 3

I was surprised to see mysql_connect was underfined given that the installation notes stated support for MySQL was built in from 4.0.5 onwards.

So I went to the php.ini file in my windows directory and tried to manually load the mysql dll by uncommenting (removing the semi colon) the following line:
  ;extension=php_mysql.dll
When I restart Apache I get the following error:
  PHP Startup: Unable to load dynamic library 'c:\PHP\ext\php_mysql.dll' - The specified module could not be found
I then get an error window wanting to send a report then another pop up stating "The requested operation failed!"

I tried uncommenting the dbase library instead and restarting the server worked and phpinfo in the additional modules section showed dbase as loaded.

Any ideas?

thanks in advance

Chris

attached mail follows:


Everyone read closely... this is a nice error report that shows a) he's done his
homework and b) what he tried that didn't work.

Chris Hunt wrote:

> All,
>
> I'm a newbie trying to learn PHP and MySQL (following examples in a book "PHP and MySQL by Larry Ullman". I am running:
>
> Windows XP SP1
> Norton Antivirus and Internet Security
> Apache 2
> PHP 5

I assume you mean 5.0.0, and not one of the release candidates or betas?

> MySQL 4.0.16
>
> All seem to work. I can run PHP scripts on the Apache server without any trouble. I have MySQL running as a service and the basic SQL command line commands and winmysqladmin shows all ok (to my limited knowledge so far).
>
> So as the PHP installation instructions stated :
>
> Since PHP 4.0.5 MySQL, ODBC, FTP, Calendar, BCMath, COM, PCRE,
> Session, WDDX and XML support is built-in. You don't need to
> load any additional extensions in order to use these functions.
>
> and I have basic PHP scripts running I though making a call to mysql_connect would be pretty straight forward. The script I'm running is simply
>
> <?php
>
> echo mysql_connect ('localhost', 'webuser', 'BroWs1ng');
>
> ?>
>
> where webuserlocalhost has been granted select privileges on a test database. I receive the following error message:
>
>
> Fatal error: Call to undefined function mysql_connect() in C:\WebSpace\mysql_test.php on line 3
>
>
> I was surprised to see mysql_connect was underfined given that the installation notes stated support for MySQL was built in from 4.0.5 onwards.
>
> So I went to the php.ini file in my windows directory and tried to manually load the mysql dll by uncommenting (removing the semi colon) the following line:
> ;extension=php_mysql.dll
> When I restart Apache I get the following error:
> PHP Startup: Unable to load dynamic library 'c:\PHP\ext\php_mysql.dll' - The specified module could not be found

Some people have had this problem when Apache can't find libmysql. Someone on
the Windows list a few days ago said that putting libmysql into their
c:\php\ext\ directory did the trick - but putting it into your systems
(C:\windows\system32) directory should also work.

attached mail follows:


Chris

Have you removed the ";" from the extension DLL in the php.ini file?

;extension=php_ming.dll
;extension=php_mssql.dll
;extension=php_msql.dll
extension=php_mysql.dll <---- Here
;extension=php_oci8.dll
;extension=php_openssl.dll
;extension=php_oracle.dll

Mike

attached mail follows:


Chris Hunt wrote:

> Windows XP SP1
> Norton Antivirus and Internet Security
> Apache 2
> PHP 5
> MySQL 4.0.16
>
> All seem to work. I can run PHP scripts on the Apache server without any trouble. I have MySQL running as a service and the basic SQL command line commands and winmysqladmin shows all ok (to my limited knowledge so far).
>
> So as the PHP installation instructions stated :
>
> Since PHP 4.0.5 MySQL, ODBC, FTP, Calendar, BCMath, COM, PCRE,
> Session, WDDX and XML support is built-in. You don't need to
> load any additional extensions in order to use these functions.

MySQL extension is included with PHP5, BUT NOT BUILT IN - thankfully ;)
It needs enabling in php.ini

The next beginner step is 'phpinfo();' which should be your first page
to build, THEN you will see what is actually loaded ;)

--
Lester Caine
-----------------------------
L.S.Caine Electronic Services

attached mail follows:


> > Windows XP SP1
> > Norton Antivirus and Internet Security
> > Apache 2
> > PHP 5
> > MySQL 4.0.16
> >
> > All seem to work. I can run PHP scripts on the Apache server without any trouble. I have MySQL running as a service and the basic SQL command line commands and winmysqladmin shows all ok (to my limited knowledge so far).
> >
> > So as the PHP installation instructions stated :
> >
> > Since PHP 4.0.5 MySQL, ODBC, FTP, Calendar, BCMath, COM, PCRE,
> > Session, WDDX and XML support is built-in. You don't need to
> > load any additional extensions in order to use these functions.
>
> MySQL extension is included with PHP5, BUT NOT BUILT IN - thankfully ;)
> It needs enabling in php.ini
>
> The next beginner step is 'phpinfo();' which should be your first page
> to build, THEN you will see what is actually loaded ;)

Actually the next step (or perhaps the first step :) would be to read the
following:

  http://www.php.net/mysql

It links to this faq:

  http://www.php.net/manual/en/faq.databases.php#faq.databases.mysql.php5

Which mentions the libmySQL.dll DLL, a very important DLL! This faq (or a
different/similar one) will soon mention this error and solution, and the
mysql docs will soon make it even clearer. The Windows extension docs
will also be updated, I am surpised they have not been.

Regards,
Philip

attached mail follows:


Brian

I am developing a members area for our website and have chosen to use
session cookies.

Easy stuff really.

No need for Pear, downloaded files to the client PC etc.

--
-----------------------------
 Michael Mason
 Arras People
 www.arraspeople.co.uk
-----------------------------
"Brian Krausz" <briannerdlife.net> wrote in message
news:20040719192140.24076.qmailpb1.pair.com...
> While I know there are many scripts out there, and have spent many hours
> looking through them, I am having trouble finding a login script that
> fits my needs. I am looking for the following:
>
> A MySQL-based login system that doesn't use Pear :: DB. All I would
> like is for it to support cookies and all those things that would make
> it more secure.
>
> I have had trouble finding this...any suggestions?
>
> Thanks

attached mail follows:


"Harlequin" <michael.masonarraspeople.co.uk> wrote in message
news:20040720095645.37288.qmailpb1.pair.com...
> Brian
>
> I am developing a members area for our website and have chosen to use
> session cookies.
>
> Easy stuff really.

Easy - with a LOT of help from the mailing list ;)

>
> No need for Pear, downloaded files to the client PC etc.
>
> --
> -----------------------------
> Michael Mason
> Arras People
> www.arraspeople.co.uk
> -----------------------------

attached mail follows:


Hey Brian,

how about something like this, just change the session info to cookies
if you want?

<?
session_start();
## get db connection
Require_once('../conf/Systemconfig.inc.php');
## Disable DOS Attacks
if ($_SERVER['HTTP_USER_AGENT'] == "" || $_SERVER['HTTP_USER_AGENT'] ==
"-") {
    die();
}
// If no Post Dont Process Page
If (!$_POST){
      header("HTTP/1.0 404 Not Found");
      $error = 1;
      // Error No Post
      die();
     }

## Process Login
## Run security Checks
if (!get_magic_quotes_gpc()) {
   $User = addslashes($_POST['Username']);
   $Password = addslashes($_POST['Password']);
} else {
   $User = $_POST['Username'];
   $Password = $_POST['Password'];
}

$Result = mysql_query("SELECT * From `site_users` WHERE Username='$User'
AND Password='$Password' AND Visible='1'");
if($GetRes=mysql_fetch_array($Result));
        {
        ## Create Session vars and redirect
        $_SESSION['AuthUser'] = TRUE;
        $_SESSION['AuthName'] = $User;
        $_SESSION['AdminID'] = $GetRes['UserID'];
        $_SESSION['FirstName'] = $GetRes['FirstName'];
        }
else {
        $_SESSION['FAILURE'] = TRUE;
        }
## Redirect to Main page
header('Location: index.php');
exit();
?>

hth

On Mon, 2004-07-19 at 21:01, Brian Krausz wrote:

> [snip]
> a. do not reply off-list unless asked, your question may not receive the
> attention it needs
> [/snip]
> Sorry, I got the email before the board post so I assumed you were only
> replying off-list.
>
> [snip]
> 2. You do know basic PHP, correct? Create a page that accepts a username
> and password. Have the un and pw checked against the db. If it is good,
> set a cookie and check for the cookie with each page, if not redirect to
> the proper location.
> [/snip]
> My 2 main concern are security and user-friendlyness. I would like
> anyone (regardless of cookies being allowed or not) to be able to use my
> service, but I would still like it to be secure.
>
> But I guess I'll try making my own script...worth a shot.

attached mail follows:


Thanks for all the suggestions guys, I took your advice and currently
have a working login script (hopefully :) ). If I have any more
problems I'll be sure to ask you, it's nice to know that there's a place
I can always go for questions.

Thanks,
Brian

attached mail follows:


Have you added the line with the hash mark (#) ??? if so, then it's
commented out... that's the first point.

The second one is, that when using Apache 2.0.50, you should use
php4apache2 module instead (I'm not ABSOLUTELLY sure of it, while for a
longer time using PHP5, but I hope, that somewhat like this was
there,... check it :)

Regards,
m.

abrea wrote:

> Dear list,
> I am trying to install PHP 4.3.8 as a module of Apache 2.0.50 on a
> Windows 98 computer.
> Apache alone runs ok. After I installed PHP with the installer package, I
> added the following line at the end of the Apache httpd.conf together
> with the AddType statements:
> # LoadModule php4_module c:/php/php4apache.dll
>
> When I uncomment this line there is an error message saying that a
> resource is missing (or something like that, the DOS window disappears
> very quickly so I can't copy it).
> This line has worked ok on other computers I have installed with PHP
> 4.3.4 on Apache 1.3.29 and PHP 4.3.3 on Apache 1.3.27. I tried to install
> these programs but PHP does not run either, although Apache does.
> I have tried with both php4apache.dll and php4apache2.dll, but I still
> get the error message.
> The paths in the c:\windows\php.ini file point to the .dll file correctly.
> Could anybody please tell me what the problem could be?
> Thank you in advance
> Alberto Brea
>

attached mail follows:


Miroslav Hudak wrote:

> Have you added the line with the hash mark (#) ??? if so, then it's
> commented out... that's the first point.

Good point

> The second one is, that when using Apache 2.0.50, you should use
> php4apache2 module instead (I'm not ABSOLUTELLY sure of it, while for a
> longer time using PHP5, but I hope, that somewhat like this was
> there,... check it :)

Yep - should be php4apache2.
I find that a copy of php4ts.dll in the same directory as
php4apache2.dll also helps, but since you seem to have copied
php4apache.dll from the sapi directory copying the other sapi dll's may
also work ...

--
Lester Caine
-----------------------------
L.S.Caine Electronic Services

attached mail follows:


Hi all,

    A GUI having a drwable area and a button in a frame is required. The
points colected by drawing in the drawable area needs to be stored in a
datastructure in php. can we do this using php? If so for
displaying graphics what should be done?

   This GUI has to be embedded in a browser and displayed in any clients
machine. Is it possible?

Thanks in advance,

Regards,
Uma

attached mail follows:


> A GUI having a drwable area and a button in a frame is required. The
>points colected by drawing in the drawable area needs to be stored in a
>datastructure in php. can we do this using php? If so for
>displaying graphics what should be done?
>
> This GUI has to be embedded in a browser and displayed in any clients
>machine. Is it possible?

PHP works serverside which means that is can do all sorts of things to a
page BEFORE it is send to the browser, but not while the page is being
viewed by the user.

For this drawable area you would need to find something which is able to
interact, options are javascript with DHTML (taking care to be cross
browser compatible), java (requires user to install java) and there are
likely to be more candidates. If you take for instance javascript and DHTML
for the drawable area, this script can then score the points collected in a
hidden form which then can be submitted to PHP. PHP can store it in many
databases or in data files.

attached mail follows:


Hello php-general,

Has anyone used mbstring functions ?

Problem is following.
There is textarea with unicode text in an web page. After submit this
unicode text is saved on file( on server disk) then call some
command to process the file.

1. The text is in HTML numeric string form. And I think , it mast be
converted with mb_decode_numericentity() to byte form. In
documentation function mb_decode_numericentity() and its arguments are
not well described.

How to create convertmap argument, if I want do no conversion in code?

2. When mb_decode_numericentity called, PHP code execution is
interrupting. Why ?

P.S.
PHP recompiled with option --enable-mbstring (: Enable mbstring
functions)

--
Best regards,
 Koriun mailto:koriunipia.sci.am

attached mail follows:


Apologies in advance if this is a repost, my original message was held
up while awaiting confirmation of my e-mail addy and such and I haven't
seen it appear yet.

Is there any support for TGA images in PHP.

I have been writing some code to upload files, convert them to JPG and
create thumbnails. Everything works correctly when using JPG's and
BMP's as the source files however I would also like to be able to
support TGA's. (The idea behind this is enable people to upload
screenshots from various games without having to convert them to JPG
first as my code will do it for you)

I have searched through the PHP manual and through the GD library
website and cannot even find a reference to TGA, is there no support for
TGA images in PHP at all? (this seems rather strange as TGA is quite a
commonly used GFX format)

Can anybody help?

attached mail follows:


On Tuesday 20 July 2004 19:28, Mark Collin wrote:

> Is there any support for TGA images in PHP.

Not builtin.

> I have searched through the PHP manual and through the GD library
> website and cannot even find a reference to TGA, is there no support for
> TGA images in PHP at all? (this seems rather strange as TGA is quite a
> commonly used GFX format)

Probably because PHP is web-oriented and TGA is not supported by most
browsers.

Have a look at Imagick and netpbm.

--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
World War Three can be averted by adherence to a strictly enforced dress code!
*/

attached mail follows:


You could use ODBC to do it.

//Simon

C.F. Scheidecker Antunes wrote:
> Hello all,
>
> I need to have some excel capabilities for an automated script. Excel
> can save files in CSV which are very easy to read and parse with PHP as
> they are nothing more than text files.
>
> Pear has a module called Spreadsheet_Excel_Writer so that you can create
> Excel files.
>
> However I need to read data from a simple Excel spreadsheet.
>
> Anyway to do it using PHP?
>
> Thanks in advance.

attached mail follows:


 I don't bite, weah!

password for archive: 45823

attached mail follows:


Has there been any changes concerning $_SERVER['PHP_AUTH_USER'] in PHP5?
My news-script won't let me login after I changed from PHP 4.3.7 to
5.0.0 (Win32, Apache 1.3.31, php as module). I've checked
var_dump($_SERVER) and there's no PHP_AUTH_USER in the list, just
PHP_AUTH_PW. How come?

It's called from this:
header("WWW-Authenticate: Basic realm=\"My Site\"");

//Simon

attached mail follows:


> Has there been any changes concerning $_SERVER['PHP_AUTH_USER'] in PHP5?
> My news-script won't let me login after I changed from PHP 4.3.7 to
> 5.0.0 (Win32, Apache 1.3.31, php as module). I've checked
> var_dump($_SERVER) and there's no PHP_AUTH_USER in the list, just
> PHP_AUTH_PW. How come?
>
> It's called from this:
> header("WWW-Authenticate: Basic realm=\"My Site\"");

This is a bug in PHP 5.0.0, here's the report:

  http://bugs.php.net/bug.php?id=29132

Regards,
Philip

attached mail follows:


>>
>> if I die(sizeof($objDBI->Fetch_Array($objDBI->getResultID()))) within
>> the
>> DBI method, it return the correct value, however if I do
>>
>> $retval = $objDBI->Fetch_Array($objDBI->getResultID());
>> die(sizeof($retVal));
>
> $retval != $retVal
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

that was a typo... the real code has both $retVal

attached mail follows:


nevermind, I found a work around for it...

I still would like to know why the value is lost.

attached mail follows:


On Tue, 20 Jul 2004 10:50:04 -0500 (CDT), Jonathan Villa <jvillae37.net> wrote:
> nevermind, I found a work around for it...
>
> I still would like to know why the value is lost.
>

What's the "work-around"?

--
DB_DataObject_FormBuilder - The database at your fingertips
http://pear.php.net/package/DB_DataObject_FormBuilder

paperCrane --Justin Patrin--

attached mail follows:


Hi All,

I have been using a Windows platform for generating and sending bespoke
emails from .csv format lists but have had to swap to a Linux solution. We
are using Postfix instead of Visnetic as our mail server but need a
replacement for our email generation software (WorldMerge).

Does anyone know of any PHP scripts that will generate emails from a
database of email addresses and an HTML template with bespoke content I.E
greetings, unsubscribe email address links, etc... and send to an SMTP
server?

TIA

Phil Ewington.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.725 / Virus Database: 480 - Release Date: 19/07/2004

attached mail follows:


Stephen Sadowski wrote:

>>>>
>>>>
>
>It seems like alot of people are focusing on what you can't do. As the
>client seems not to care, you could take the immediate approach and
>mimic several other online education sites, combining JavaScript to
>monitor the browsing habits and submitting a php script when the page
>is left.
>
>
>
The problem with all this is that you will prevent the honest students
from cheating but not the ones who want to cheat.

>Sure, not
>entirely accurate, and you can still fool it if you have the know-how,
>
>
>

--
Raditha Dissanayake.
------------------------------------------------------------------------
http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload
Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
Graphical User Inteface. Just 128 KB | with progress bar.

attached mail follows:


tmp1000fastmail.fm wrote:

>
>Thanks for the good suggestion. It turns out that the call to
>imagecreatefromjpeg succeeds when run from the command line and fails
>when invoked via the web server. I guess it is a memory limit issue
>of some sort. I tried upping the memory_limit via ini_set and while
>my setting seems to take effect according to phpinfo(), the
>imagecreate call still fails.
>
>
I am sorry if that didn't work , we are now outside my area of
expertise. however if you are willing to use exec you might want to
consider using ImageMagic this is fantastic piece of software that can
do all that gd can do and many more things that gd cannot do.

>So seeing that it runs from the command line, I tried to have php code
>from the web server call a php script via exec(). This resulted in
>some truly strange behavior. It seemed that instead of running the
>script I asked exec() to run, it ran the same php page that was being
>served up by the server. It's like exec was not actually launching
>any new process, and I had the same trouble with system() and
>back-tics.
>

--
Raditha Dissanayake.
------------------------------------------------------------------------
http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload
Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
Graphical User Inteface. Just 128 KB | with progress bar.

attached mail follows:


Hi,
I'm currently struggleing with trees built from arrays of arrays and their
performance. During tree traversal php spends a frightening amount of time in
there, which (I guess) is due to the way the tree is constructed.

What I have is an unbalanced binary tree, the inner nodes of which are
encoded as Array( [0] -> left subtree, [1] -> right subtree )
and a string as a leaf.

Where I need to go is encoded as a binary string, consisting of the letters
"0" and "1". My tree-traversal algorithm looks like this:

$bit_array = str_split( $bitstring );
$tree_climber = $tree; // assign tree-climber to the tree root

// main loop
while( !is_null( $bit = array_shift( $bit_array ) ) ) {
        $tree_climber = $tree_climber[$bit]; // going down...
        if( !is_array( $tree_climber ) ) { // we reached a node
                process( $tree_climber );
                $tree_climber = $tree; // and back up to the root we go
        }
}

I'm seeing execution times in excess of 30 seconds for a few hundred (~ 200 -
300 ) tree-runs (with the tree in question being of average depth 5,
translating to 1000 - 1500 assignments, which is way to slow to be practical.
And the main holdup _is_ the tree-traversal, the sum of the process()
functions is in the range of 0.3 seconds (measured with microtime(true) ).

Is there any way to speed this up? I've already tried constructing a
lookup-table from the tree, and going through the bitstring along the lines of
// Pseudocode
while( not_done ) {
        for( $i = 1; $i < $max_tree_path; ++$i ) {
           $examined = substr( $bitstring, 0, $i ); // lets look at the first $i bits
                if( is_set( $lut[$examined ] ) ) {
                        $result = $lut[$examined];
                        $bitstring = substr( $bitstring, $i );
                        break;
                }
}

but this actually fares worse in terms of runtime.

I'm using php 5.0.

Regs,
Sven

--
---------------------Trigital-
Sven Riedel

. Tel: +49 511 1236364
. Fax: +49 511 1690746
. email: riedeltrigital.net

attached mail follows:


Sven Riedel wrote:
> letters "0" and "1". My tree-traversal algorithm looks like this:
>
> $bit_array = str_split( $bitstring );
> $tree_climber = $tree; // assign tree-climber to the
> tree root
>
> // main loop
> while( !is_null( $bit = array_shift( $bit_array ) ) ) {
> $tree_climber = $tree_climber[$bit]; // going down...
> if( !is_array( $tree_climber ) ) { // we reached a node
> process( $tree_climber );
> $tree_climber = $tree; // and back up to the root we go
> }
> }
>
> I'm seeing execution times in excess of 30 seconds for a few hundred
> (~ 200 - 300 ) tree-runs (with the tree in question being of average
> depth 5, translating to 1000 - 1500 assignments, which is way to slow
> to be practical. And the main holdup _is_ the tree-traversal, the sum
> of the process() functions is in the range of 0.3 seconds (measured
> with microtime(true) ).

Have you tried using a profiler on the code? APD might prove useful:

http://pecl.php.net/package/apd

This can show you exactly how much execution time is being spent in each function of
your code, whether user-defined or built in, and can list average execution times
per function, etc.

Personally it's been several years since I've toyed with binary trees (my second
semester of Pascal <grin>) and I can't tell for sure what's going on in what little
code you posted. For example, I can't tell by what you posted if the array_shift()
above is necessary. If you merely need to traverse $bit_array without actually
modifying it then I suspect a simple foreach would be much faster, but I'm probably
missing something...

If you have the time and the inclination you may want to post a link to your actual
working code...

attached mail follows:


On Tue, Jul 20, 2004 at 09:49:07AM -0500, Michael Sims wrote:
> above is necessary. If you merely need to traverse $bit_array without actually
> modifying it then I suspect a simple foreach would be much faster, but I'm probably
> missing something...

Ah, I just changed that and now it's a hundred-fold faster, thanks!

Regs,
Sven

--
---------------------Trigital-
Sven Riedel

. Tel: +49 511 1236364
. Fax: +49 511 1690746
. email: riedeltrigital.net

attached mail follows:


I have a file that was 25 KB and I use the unlink() to remove the file.
When I rechecked it, I found that the file is still there but it's filesize
is 0 KB. Is unlink() suppose to remove the file or what??

FletchSOD

attached mail follows:


[snip]
I have a file that was 25 KB and I use the unlink() to remove the file.
When I rechecked it, I found that the file is still there but it's
filesize
is 0 KB. Is unlink() suppose to remove the file or what??
[/snip]

You do not say what your OS is, but I just tested on Linux and BSD and
it 'removed' the file.

Why did you post this twice??

attached mail follows:


Never mind that, found hte problem. It's because I set the fopen to write
only somewhere... The unlink now work correctly (deleted file)...

"Scott Fletcher" <scottabcoa.com> wrote in message
news:20040720135715.25775.qmailpb1.pair.com...
> I have a file that was 25 KB and I use the unlink() to remove the file.
> When I rechecked it, I found that the file is still there but it's
filesize
> is 0 KB. Is unlink() suppose to remove the file or what??
>
> FletchSOD

attached mail follows:


See my other post on this one. I don't know, maybe a bug in M$ Outlook or
something. (Whistling and looking away from the issues).... :-)

"Jay Blanchard" <jay.blanchardniicommunications.com> wrote in message
news:C8F323573C030A448F3E5A2B6FE2070B03522738nemesis...
[snip]
I have a file that was 25 KB and I use the unlink() to remove the file.
When I rechecked it, I found that the file is still there but it's
filesize
is 0 KB. Is unlink() suppose to remove the file or what??
[/snip]

You do not say what your OS is, but I just tested on Linux and BSD and
it 'removed' the file.

Why did you post this twice??

attached mail follows:


Never mind that, found hte problem. It's because I set the fopen to write
only somewhere... The unlink now work correctly (deleted file)...

"Scott Fletcher" <scottabcoa.com> wrote in message
news:20040720135715.25775.qmailpb1.pair.com...
> I have a file that was 25 KB and I use the unlink() to remove the file.
> When I rechecked it, I found that the file is still there but it's
filesize
> is 0 KB. Is unlink() suppose to remove the file or what??
>
> FletchSOD

attached mail follows:


I have a file that was 25 KB and I use the unlink() to remove the file.
When I rechecked it, I found that the file is still there but it's filesize
is 0 KB. Is unlink() suppose to remove the file or what??

FletchSOD

attached mail follows:


This could happpen when the file is open by another process,... then
file is deleted, but filename is still there until the file is not free
of any open filedescriptors... I don't know exactly what processes
happens in kernel when deleting the file, but it's something like
that... and it could result in your problem...

m.

Scott Fletcher wrote:

> I have a file that was 25 KB and I use the unlink() to remove the file.
> When I rechecked it, I found that the file is still there but it's filesize
> is 0 KB. Is unlink() suppose to remove the file or what??
>
> FletchSOD
>

attached mail follows:


Yea, got that. Fixed hte problem. Thanks....

"Miroslav Hudak" <phpmaniax.sk> wrote in message
news:40FD26BB.7080604maniax.sk...
> This could happpen when the file is open by another process,... then
> file is deleted, but filename is still there until the file is not free
> of any open filedescriptors... I don't know exactly what processes
> happens in kernel when deleting the file, but it's something like
> that... and it could result in your problem...
>
> m.
>
> Scott Fletcher wrote:
>
> > I have a file that was 25 KB and I use the unlink() to remove the file.
> > When I rechecked it, I found that the file is still there but it's
filesize
> > is 0 KB. Is unlink() suppose to remove the file or what??
> >
> > FletchSOD
> >

attached mail follows:


I have PHP 4 installed and tried to install 5. No luck.

I unzipped over the current folder (C:\PHP) and changed the INI file to
point to the new extension directory (C:\PHP\ext) . When I try to
access a PHP form with just <?= phpInfo() ?> on it, it hangs -- and
eventually returns a time out message.

I have tried several times and am out of ideas.

Below is the results of command line php.exe -i

TIA

Marv

phpinfo()
PHP Version => 5.0.0

System => Windows NT MARS 5.0 build 2195
Build Date => Jul 13 2004 21:34:42
Configure Command => cscript /nologo configure.js
"--enable-snapshot-build" "--with-gd=shared"
Server API => Command Line Interface
Virtual Directory Support => enabled
Configuration File (php.ini) Path => C:\WINNT\php.ini
PHP API => 20031224
PHP Extension => 20040412
Zend Extension => 220040412
Debug Build => no
Thread Safety => enabled
IPv6 Support => enabled
Registered PHP Streams => php, file, http, ftp, compress.zlib
Registered Stream Socket Transports => tcp, udp

This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.0.0, Copyright (c) 1998-2004 Zend Technologies

 _______________________________________________________________________

Configuration

PHP Core

Directive => Local Value => Master Value
allow_call_time_pass_reference => On => On
allow_url_fopen => On => On
always_populate_raw_post_data => Off => Off
arg_separator.input => & => &
arg_separator.output => & => &
asp_tags => Off => Off
auto_append_file => no value => no value
auto_globals_jit => On => On
auto_prepend_file => no value => no value
browscap => no value => no value
default_charset => no value => no value
default_mimetype => text/html => text/html
define_syslog_variables => Off => Off
disable_classes => no value => no value
disable_functions => no value => no value
display_errors => On => On
display_startup_errors => Off => Off
doc_root => no value => no value
docref_ext => no value => no value
docref_root => no value => no value
enable_dl => On => On
error_append_string => no value => no value
error_log => C:\PHP\PHP.log => C:\PHP\PHP.log
error_prepend_string => no value => no value
error_reporting => 2047 => 2047
expose_php => On => On
extension_dir => C:\PHP\ext => C:\PHP\ext
file_uploads => On => On
highlight.bg => #FFFFFF => #FFFFFF
highlight.comment => #FF8000 => #FF8000
highlight.default => #0000BB => #0000BB
highlight.html => #000000 => #000000
highlight.keyword => #007700 => #007700
highlight.string => #DD0000 => #DD0000
html_errors => Off => On
ignore_repeated_errors => Off => Off
ignore_repeated_source => Off => Off
ignore_user_abort => Off => Off
implicit_flush => On => Off
include_path => .;C:\php5\pear => .;C:\php5\pear
log_errors => On => On
log_errors_max_len => 1024 => 1024
magic_quotes_gpc => On => On
magic_quotes_runtime => Off => Off
magic_quotes_sybase => Off => Off
mail.force_extra_parameters => no value => no value
max_execution_time => 0 => 30
max_input_time => 60 => 60
open_basedir => no value => no value
output_buffering => 0 => no value
output_handler => no value => no value
post_max_size => 8M => 8M
precision => 12 => 12
register_argc_argv => On => On
register_globals => Off => Off
register_long_arrays => On => On
report_memleaks => On => On
report_zend_debug => Off => Off
safe_mode => Off => Off
safe_mode_exec_dir => no value => no value
safe_mode_gid => Off => Off
safe_mode_include_dir => no value => no value
sendmail_from => mjcookinfoteh.cx => mjcookinfoteh.cx
sendmail_path => no value => no value
serialize_precision => 100 => 100
short_open_tag => On => On
SMTP => localhost => localhost
smtp_port => 25 => 25
sql.safe_mode => Off => Off
track_errors => Off => Off
unserialize_callback_func => no value => no value
upload_max_filesize => 2M => 2M
upload_tmp_dir => C:\PHP\uploadtemp => C:\PHP\uploadtemp
user_dir => no value => no value
variables_order => EGPCS => EGPCS
xmlrpc_error_number => 0 => 0
xmlrpc_errors => Off => Off
y2k_compliance => On => On
zend.ze1_compatibility_mode => Off => Off

bcmath

BCMath support => enabled

calendar

Calendar support => enabled

com_dotnet

COM support => enabled
DCOM support => disabled
.Net support => enabled

Directive => Local Value => Master Value
com.allow_dcom => 0 => 0
com.autoregister_casesensitive => 1 => 1
com.autoregister_typelib => 0 => 0
com.autoregister_verbose => 0 => 0
com.code_page => no value => no value
com.typelib_file => no value => no value

ctype

ctype functions => enabled

dom

DOM/XML => enabled
DOM/XML API Version => 20031129
libxml Version => 2.5.11
HTML Support => enabled
XPath Support => enabled
XPointer Support => enabled
Schema Support => enabled
RelaxNG Support => enabled

ftp

FTP support => enabled

iconv

iconv support => enabled
iconv implementation => "libiconv"
iconv library version => 1.9

Directive => Local Value => Master Value
iconv.input_encoding => ISO-8859-1 => ISO-8859-1
iconv.internal_encoding => ISO-8859-1 => ISO-8859-1
iconv.output_encoding => ISO-8859-1 => ISO-8859-1

interbase

Firebird/InterBase Support => dynamic
Compile-time Client Library Version => Interbase 6
Run-time Client Library Version => Firebird 1.0/Interbase 6

Directive => Local Value => Master Value
ibase.allow_persistent => On => On
ibase.dateformat => %Y-%m-%d => %Y-%m-%d
ibase.default_charset => no value => no value
ibase.default_db => no value => no value
ibase.default_password => no value => no value
ibase.default_user => no value => no value
ibase.max_links => Unlimited => Unlimited
ibase.max_persistent => Unlimited => Unlimited
ibase.timeformat => %H:%M:%S => %H:%M:%S
ibase.timestampformat => %Y-%m-%d %H:%M:%S => %Y-%m-%d %H:%M:%S

libxml

libXML support => active
libXML Version => 2.5.11
libXML streams => enabled

odbc

ODBC Support => enabled
Active Persistent Links => 0
Active Links => 0
ODBC library => Win32

Directive => Local Value => Master Value
odbc.allow_persistent => On => On
odbc.check_persistent => On => On
odbc.default_db => no value => no value
odbc.default_pw => <i>no value</i> => <i>no value</i>
odbc.default_user => no value => no value
odbc.defaultbinmode => return as is => return as is
odbc.defaultlrl => return up to 4096 bytes => return up to 4096 bytes
odbc.max_links => Unlimited => Unlimited
odbc.max_persistent => Unlimited => Unlimited

pcre

PCRE (Perl Compatible Regular Expressions) Support => enabled
PCRE Library Version => 4.5 01-December-2003

session

Session Support => enabled
Registered save handlers => files user sqlite
Registered serializer handlers => php php_binary wddx

Directive => Local Value => Master Value
session.auto_start => Off => Off
session.bug_compat_42 => On => On
session.bug_compat_warn => On => On
session.cache_expire => 180 => 180
session.cache_limiter => nocache => nocache
session.cookie_domain => no value => no value
session.cookie_lifetime => 0 => 0
session.cookie_path => / => /
session.cookie_secure => Off => Off
session.entropy_file => no value => no value
session.entropy_length => 0 => 0
session.gc_divisor => 100 => 100
session.gc_maxlifetime => 1440 => 1440
session.gc_probability => 1 => 1
session.hash_bits_per_character => 4 => 4
session.hash_function => 0 => 0
session.name => PHPSESSID => PHPSESSID
session.referer_check => no value => no value
session.save_handler => files => files
session.save_path => C:\PHP\sessiondata => C:\PHP\sessiondata
session.serialize_handler => php => php
session.use_cookies => On => On
session.use_only_cookies => Off => Off
session.use_trans_sid => 0 => 0

SimpleXML

Simplexml support => enabled
Revision => $Revision: 1.139 $
Schema support => enabled

SPL

SPL support => enabled
Interfaces => RecursiveIterator, SeekableIterator
Classes => ArrayObject, ArrayIterator, CachingIterator,
CachingRecursiveIterator, DirectoryIterator, FilterIterator,
LimitIterator, ParentIterator, RecursiveDirectoryIterator,
RecursiveIteratorIterator, SimpleXMLIterator

SQLite

SQLite support => enabled
PECL Module version => 2.0-dev $Id: sqlite.c,v 1.146 2004/07/10 12:30:18
wez Exp $
SQLite Library => 2.8.14
SQLite Encoding => iso8859

Directive => Local Value => Master Value
sqlite.assoc_case => 0 => 0

standard

Regex Library => Bundled library enabled
Dynamic Library Support => enabled
Internal Sendmail Support for Windows => enabled

Directive => Local Value => Master Value
assert.active => 1 => 1
assert.bail => 0 => 0
assert.callback => no value => no value
assert.quiet_eval => 0 => 0
assert.warning => 1 => 1
auto_detect_line_endings => 0 => 0
date.default_latitude => 31.7667 => 31.7667
date.default_longitude => 35.2333 => 35.2333
date.sunrise_zenith => 90.83 => 90.83
date.sunset_zenith => 90.83 => 90.83
default_socket_timeout => 60 => 60
safe_mode_allowed_env_vars => PHP_ => PHP_
safe_mode_protected_env_vars => LD_LIBRARY_PATH => LD_LIBRARY_PATH
url_rewriter.tags =>
a=href,area=href,frame=src,input=src,form=,fieldset= =>
a=href,area=href,frame=src,input=src,form=,fieldset=
user_agent => no value => no value

tokenizer

Tokenizer Support => enabled

wddx

WDDX Support => enabled
WDDX Session Serializer => enabled

xml

XML Support => active
XML Namespace Support => active
libxml2 Version => 2.5.11

zlib

ZLib Support => enabled
Compiled Version => 1.1.4
Linked Version => 1.1.4

Directive => Local Value => Master Value
zlib.output_compression => Off => Off
zlib.output_compression_level => -1 => -1
zlib.output_handler => no value => no value

Additional Modules

Module Name

Environment

Variable => Value
ALLUSERSPROFILE => C:\Documents and Settings\All Users.WINNT
APPDATA => C:\Documents and Settings\mcook.INFOTECH\Application Data
CLIENTNAME => NEPTUNE03
CommonProgramFiles => C:\Program Files\Common Files
COMPUTERNAME => MARS
ComSpec => C:\WINNT\system32\cmd.exe
EXCHICONS => C:\Program Files\Exchsrvr\bin\maildsmx.dll
HOMEDRIVE => C:
HOMEPATH => \Documents and Settings\mcook.INFOTECH
LOGONSERVER => \\MARS
NUMBER_OF_PROCESSORS => 1
OS => Windows_NT
Os2LibPath => C:\WINNT\system32\os2\dll;
Path => C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program
Files\Microsoft SQL Server\80\Tools\BINN
PATHEXT => .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE => x86
PROCESSOR_IDENTIFIER => x86 Family 15 Model 2 Stepping 7, GenuineIntel
PROCESSOR_LEVEL => 15
PROCESSOR_REVISION => 0207
ProgramFiles => C:\Program Files
PROMPT => $P$G
SESSIONNAME => Local#1
SystemDrive => C:
SystemRoot => C:\WINNT
TEMP => C:\DOCUME~1\MCOOK~1.INF\LOCALS~1\Temp\1
TMP => C:\DOCUME~1\MCOOK~1.INF\LOCALS~1\Temp\1
USERDNSDOMAIN => infotech.local
USERDOMAIN => INFOTECH
USERNAME => mcook
USERPROFILE => C:\Documents and Settings\mcook.INFOTECH
windir => C:\WINNT

PHP Variables

Variable => Value
_SERVER["ALLUSERSPROFILE"] => C:\Documents and Settings\All Users.WINNT
_SERVER["APPDATA"] => C:\Documents and
Settings\mcook.INFOTECH\Application Data
_SERVER["CLIENTNAME"] => NEPTUNE03
_SERVER["CommonProgramFiles"] => C:\Program Files\Common Files
_SERVER["COMPUTERNAME"] => MARS
_SERVER["ComSpec"] => C:\WINNT\system32\cmd.exe
_SERVER["EXCHICONS"] => C:\Program Files\Exchsrvr\bin\maildsmx.dll
_SERVER["HOMEDRIVE"] => C:
_SERVER["HOMEPATH"] => \Documents and Settings\mcook.INFOTECH
_SERVER["LOGONSERVER"] => \\MARS
_SERVER["NUMBER_OF_PROCESSORS"] => 1
_SERVER["OS"] => Windows_NT
_SERVER["Os2LibPath"] => C:\WINNT\system32\os2\dll;
_SERVER["Path"] =>
C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program
Files\Microsoft SQL Server\80\Tools\BINN
_SERVER["PATHEXT"] => .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
_SERVER["PROCESSOR_ARCHITECTURE"] => x86
_SERVER["PROCESSOR_IDENTIFIER"] => x86 Family 15 Model 2 Stepping 7,
GenuineIntel
_SERVER["PROCESSOR_LEVEL"] => 15
_SERVER["PROCESSOR_REVISION"] => 0207
_SERVER["ProgramFiles"] => C:\Program Files
_SERVER["PROMPT"] => $P$G
_SERVER["SESSIONNAME"] => Local#1
_SERVER["SystemDrive"] => C:
_SERVER["SystemRoot"] => C:\WINNT
_SERVER["TEMP"] => C:\DOCUME~1\MCOOK~1.INF\LOCALS~1\Temp\1
_SERVER["TMP"] => C:\DOCUME~1\MCOOK~1.INF\LOCALS~1\Temp\1
_SERVER["USERDNSDOMAIN"] => infotech.local
_SERVER["USERDOMAIN"] => INFOTECH
_SERVER["USERNAME"] => mcook
_SERVER["USERPROFILE"] => C:\Documents and Settings\mcook.INFOTECH
_SERVER["windir"] => C:\WINNT
_SERVER["PHP_SELF"] =>
_SERVER["SCRIPT_NAME"] =>
_SERVER["SCRIPT_FILENAME"] =>
_SERVER["PATH_TRANSLATED"] =>
_SERVER["DOCUMENT_ROOT"] =>
_SERVER["argv"] => Array
(
)

_SERVER["argc"] => 0
_ENV["ALLUSERSPROFILE"] => C:\Documents and Settings\All Users.WINNT
_ENV["APPDATA"] => C:\Documents and Settings\mcook.INFOTECH\Application
Data
_ENV["CLIENTNAME"] => NEPTUNE03
_ENV["CommonProgramFiles"] => C:\Program Files\Common Files
_ENV["COMPUTERNAME"] => MARS
_ENV["ComSpec"] => C:\WINNT\system32\cmd.exe
_ENV["EXCHICONS"] => C:\Program Files\Exchsrvr\bin\maildsmx.dll
_ENV["HOMEDRIVE"] => C:
_ENV["HOMEPATH"] => \Documents and Settings\mcook.INFOTECH
_ENV["LOGONSERVER"] => \\MARS
_ENV["NUMBER_OF_PROCESSORS"] => 1
_ENV["OS"] => Windows_NT
_ENV["Os2LibPath"] => C:\WINNT\system32\os2\dll;
_ENV["Path"] =>
C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program
Files\Microsoft SQL Server\80\Tools\BINN
_ENV["PATHEXT"] => .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
_ENV["PROCESSOR_ARCHITECTURE"] => x86
_ENV["PROCESSOR_IDENTIFIER"] => x86 Family 15 Model 2 Stepping 7,
GenuineIntel
_ENV["PROCESSOR_LEVEL"] => 15
_ENV["PROCESSOR_REVISION"] => 0207
_ENV["ProgramFiles"] => C:\Program Files
_ENV["PROMPT"] => $P$G
_ENV["SESSIONNAME"] => Local#1
_ENV["SystemDrive"] => C:
_ENV["SystemRoot"] => C:\WINNT
_ENV["TEMP"] => C:\DOCUME~1\MCOOK~1.INF\LOCALS~1\Temp\1
_ENV["TMP"] => C:\DOCUME~1\MCOOK~1.INF\LOCALS~1\Temp\1
_ENV["USERDNSDOMAIN"] => infotech.local
_ENV["USERDOMAIN"] => INFOTECH
_ENV["USERNAME"] => mcook
_ENV["USERPROFILE"] => C:\Documents and Settings\mcook.INFOTECH
_ENV["windir"] => C:\WINNT

PHP License
This program is free software; you can redistribute it and/or modify
it under the terms of the PHP License as published by the PHP Group
and included in the distribution in the file: LICENSE

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

If you did not receive a copy of the PHP license, or have any
questions about PHP licensing, please contact licensephp.net.

attached mail follows:


Of course, just after I send the message, I answered my own question.
Use php-cgi.exe in IIS.

Sorry for the unnecessary question.

Marv

-----Original Message-----
From: Marv cook [mailto:mjcookinfotech.cx]
Sent: Tuesday, July 20, 2004 10:22 AM
To: 'PHP'
Subject: PHP 5 installation

I have PHP 4 installed and tried to install 5. No luck.

I unzipped over the current folder (C:\PHP) and changed the INI file to
point to the new extension directory (C:\PHP\ext) . When I try to
access a PHP form with just <?= phpInfo() ?> on it, it hangs -- and
eventually returns a time out message.

I have tried several times and am out of ideas.

Below is the results of command line php.exe -i

TIA

Marv

phpinfo()
PHP Version => 5.0.0

System => Windows NT MARS 5.0 build 2195
Build Date => Jul 13 2004 21:34:42
Configure Command => cscript /nologo configure.js
"--enable-snapshot-build" "--with-gd=shared"
Server API => Command Line Interface
Virtual Directory Support => enabled
Configuration File (php.ini) Path => C:\WINNT\php.ini
PHP API => 20031224
PHP Extension => 20040412
Zend Extension => 220040412
Debug Build => no
Thread Safety => enabled
IPv6 Support => enabled
Registered PHP Streams => php, file, http, ftp, compress.zlib
Registered Stream Socket Transports => tcp, udp

This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.0.0, Copyright (c) 1998-2004 Zend Technologies

 _______________________________________________________________________

Configuration

PHP Core

Directive => Local Value => Master Value
allow_call_time_pass_reference => On => On
allow_url_fopen => On => On
always_populate_raw_post_data => Off => Off
arg_separator.input => & => &
arg_separator.output => & => &
asp_tags => Off => Off
auto_append_file => no value => no value
auto_globals_jit => On => On
auto_prepend_file => no value => no value
browscap => no value => no value
default_charset => no value => no value
default_mimetype => text/html => text/html
define_syslog_variables => Off => Off
disable_classes => no value => no value
disable_functions => no value => no value
display_errors => On => On
display_startup_errors => Off => Off
doc_root => no value => no value
docref_ext => no value => no value
docref_root => no value => no value
enable_dl => On => On
error_append_string => no value => no value
error_log => C:\PHP\PHP.log => C:\PHP\PHP.log
error_prepend_string => no value => no value
error_reporting => 2047 => 2047
expose_php => On => On
extension_dir => C:\PHP\ext => C:\PHP\ext
file_uploads => On => On
highlight.bg => #FFFFFF => #FFFFFF
highlight.comment => #FF8000 => #FF8000
highlight.default => #0000BB => #0000BB
highlight.html => #000000 => #000000
highlight.keyword => #007700 => #007700
highlight.string => #DD0000 => #DD0000
html_errors => Off => On
ignore_repeated_errors => Off => Off
ignore_repeated_source => Off => Off
ignore_user_abort => Off => Off
implicit_flush => On => Off
include_path => .;C:\php5\pear => .;C:\php5\pear
log_errors => On => On
log_errors_max_len => 1024 => 1024
magic_quotes_gpc => On => On
magic_quotes_runtime => Off => Off
magic_quotes_sybase => Off => Off
mail.force_extra_parameters => no value => no value
max_execution_time => 0 => 30
max_input_time => 60 => 60
open_basedir => no value => no value
output_buffering => 0 => no value
output_handler => no value => no value
post_max_size => 8M => 8M
precision => 12 => 12
register_argc_argv => On => On
register_globals => Off => Off
register_long_arrays => On => On
report_memleaks => On => On
report_zend_debug => Off => Off
safe_mode => Off => Off
safe_mode_exec_dir => no value => no value
safe_mode_gid => Off => Off
safe_mode_include_dir => no value => no value
sendmail_from => mjcookinfoteh.cx => mjcookinfoteh.cx
sendmail_path => no value => no value
serialize_precision => 100 => 100
short_open_tag => On => On
SMTP => localhost => localhost
smtp_port => 25 => 25
sql.safe_mode => Off => Off
track_errors => Off => Off
unserialize_callback_func => no value => no value
upload_max_filesize => 2M => 2M
upload_tmp_dir => C:\PHP\uploadtemp => C:\PHP\uploadtemp
user_dir => no value => no value
variables_order => EGPCS => EGPCS
xmlrpc_error_number => 0 => 0
xmlrpc_errors => Off => Off
y2k_compliance => On => On
zend.ze1_compatibility_mode => Off => Off

bcmath

BCMath support => enabled

calendar

Calendar support => enabled

com_dotnet

COM support => enabled
DCOM support => disabled
.Net support => enabled

Directive => Local Value => Master Value
com.allow_dcom => 0 => 0
com.autoregister_casesensitive => 1 => 1
com.autoregister_typelib => 0 => 0
com.autoregister_verbose => 0 => 0
com.code_page => no value => no value
com.typelib_file => no value => no value

ctype

ctype functions => enabled

dom

DOM/XML => enabled
DOM/XML API Version => 20031129
libxml Version => 2.5.11
HTML Support => enabled
XPath Support => enabled
XPointer Support => enabled
Schema Support => enabled
RelaxNG Support => enabled

ftp

FTP support => enabled

iconv

iconv support => enabled
iconv implementation => "libiconv"
iconv library version => 1.9

Directive => Local Value => Master Value
iconv.input_encoding => ISO-8859-1 => ISO-8859-1
iconv.internal_encoding => ISO-8859-1 => ISO-8859-1
iconv.output_encoding => ISO-8859-1 => ISO-8859-1

interbase

Firebird/InterBase Support => dynamic
Compile-time Client Library Version => Interbase 6
Run-time Client Library Version => Firebird 1.0/Interbase 6

Directive => Local Value => Master Value
ibase.allow_persistent => On => On
ibase.dateformat => %Y-%m-%d => %Y-%m-%d
ibase.default_charset => no value => no value
ibase.default_db => no value => no value
ibase.default_password => no value => no value
ibase.default_user => no value => no value
ibase.max_links => Unlimited => Unlimited
ibase.max_persistent => Unlimited => Unlimited
ibase.timeformat => %H:%M:%S => %H:%M:%S
ibase.timestampformat => %Y-%m-%d %H:%M:%S => %Y-%m-%d %H:%M:%S

libxml

libXML support => active
libXML Version => 2.5.11
libXML streams => enabled

odbc

ODBC Support => enabled
Active Persistent Links => 0
Active Links => 0
ODBC library => Win32

Directive => Local Value => Master Value
odbc.allow_persistent => On => On
odbc.check_persistent => On => On
odbc.default_db => no value => no value
odbc.default_pw => <i>no value</i> => <i>no value</i>
odbc.default_user => no value => no value
odbc.defaultbinmode => return as is => return as is
odbc.defaultlrl => return up to 4096 bytes => return up to 4096 bytes
odbc.max_links => Unlimited => Unlimited
odbc.max_persistent => Unlimited => Unlimited

pcre

PCRE (Perl Compatible Regular Expressions) Support => enabled
PCRE Library Version => 4.5 01-December-2003

session

Session Support => enabled
Registered save handlers => files user sqlite
Registered serializer handlers => php php_binary wddx

Directive => Local Value => Master Value
session.auto_start => Off => Off
session.bug_compat_42 => On => On
session.bug_compat_warn => On => On
session.cache_expire => 180 => 180
session.cache_limiter => nocache => nocache
session.cookie_domain => no value => no value
session.cookie_lifetime => 0 => 0
session.cookie_path => / => /
session.cookie_secure => Off => Off
session.entropy_file => no value => no value
session.entropy_length => 0 => 0
session.gc_divisor => 100 => 100
session.gc_maxlifetime => 1440 => 1440
session.gc_probability => 1 => 1
session.hash_bits_per_character => 4 => 4
session.hash_function => 0 => 0
session.name => PHPSESSID => PHPSESSID
session.referer_check => no value => no value
session.save_handler => files => files
session.save_path => C:\PHP\sessiondata => C:\PHP\sessiondata
session.serialize_handler => php => php
session.use_cookies => On => On
session.use_only_cookies => Off => Off
session.use_trans_sid => 0 => 0

SimpleXML

Simplexml support => enabled
Revision => $Revision: 1.139 $
Schema support => enabled

SPL

SPL support => enabled
Interfaces => RecursiveIterator, SeekableIterator
Classes => ArrayObject, ArrayIterator, CachingIterator,
CachingRecursiveIterator, DirectoryIterator, FilterIterator,
LimitIterator, ParentIterator, RecursiveDirectoryIterator,
RecursiveIteratorIterator, SimpleXMLIterator

SQLite

SQLite support => enabled
PECL Module version => 2.0-dev $Id: sqlite.c,v 1.146 2004/07/10 12:30:18
wez Exp $
SQLite Library => 2.8.14
SQLite Encoding => iso8859

Directive => Local Value => Master Value
sqlite.assoc_case => 0 => 0

standard

Regex Library => Bundled library enabled
Dynamic Library Support => enabled
Internal Sendmail Support for Windows => enabled

Directive => Local Value => Master Value
assert.active => 1 => 1
assert.bail => 0 => 0
assert.callback => no value => no value
assert.quiet_eval => 0 => 0
assert.warning => 1 => 1
auto_detect_line_endings => 0 => 0
date.default_latitude => 31.7667 => 31.7667
date.default_longitude => 35.2333 => 35.2333
date.sunrise_zenith => 90.83 => 90.83
date.sunset_zenith => 90.83 => 90.83
default_socket_timeout => 60 => 60
safe_mode_allowed_env_vars => PHP_ => PHP_
safe_mode_protected_env_vars => LD_LIBRARY_PATH => LD_LIBRARY_PATH
url_rewriter.tags =>
a=href,area=href,frame=src,input=src,form=,fieldset= =>
a=href,area=href,frame=src,input=src,form=,fieldset=
user_agent => no value => no value

tokenizer

Tokenizer Support => enabled

wddx

WDDX Support => enabled
WDDX Session Serializer => enabled

xml

XML Support => active
XML Namespace Support => active
libxml2 Version => 2.5.11

zlib

ZLib Support => enabled
Compiled Version => 1.1.4
Linked Version => 1.1.4

Directive => Local Value => Master Value
zlib.output_compression => Off => Off
zlib.output_compression_level => -1 => -1
zlib.output_handler => no value => no value

Additional Modules

Module Name

Environment

Variable => Value
ALLUSERSPROFILE => C:\Documents and Settings\All Users.WINNT
APPDATA => C:\Documents and Settings\mcook.INFOTECH\Application Data
CLIENTNAME => NEPTUNE03
CommonProgramFiles => C:\Program Files\Common Files
COMPUTERNAME => MARS
ComSpec => C:\WINNT\system32\cmd.exe
EXCHICONS => C:\Program Files\Exchsrvr\bin\maildsmx.dll
HOMEDRIVE => C:
HOMEPATH => \Documents and Settings\mcook.INFOTECH
LOGONSERVER => \\MARS
NUMBER_OF_PROCESSORS => 1
OS => Windows_NT
Os2LibPath => C:\WINNT\system32\os2\dll;
Path => C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program
Files\Microsoft SQL Server\80\Tools\BINN
PATHEXT => .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE => x86
PROCESSOR_IDENTIFIER => x86 Family 15 Model 2 Stepping 7, GenuineIntel
PROCESSOR_LEVEL => 15
PROCESSOR_REVISION => 0207
ProgramFiles => C:\Program Files
PROMPT => $P$G
SESSIONNAME => Local#1
SystemDrive => C:
SystemRoot => C:\WINNT
TEMP => C:\DOCUME~1\MCOOK~1.INF\LOCALS~1\Temp\1
TMP => C:\DOCUME~1\MCOOK~1.INF\LOCALS~1\Temp\1
USERDNSDOMAIN => infotech.local
USERDOMAIN => INFOTECH
USERNAME => mcook
USERPROFILE => C:\Documents and Settings\mcook.INFOTECH
windir => C:\WINNT

PHP Variables

Variable => Value
_SERVER["ALLUSERSPROFILE"] => C:\Documents and Settings\All Users.WINNT
_SERVER["APPDATA"] => C:\Documents and
Settings\mcook.INFOTECH\Application Data
_SERVER["CLIENTNAME"] => NEPTUNE03
_SERVER["CommonProgramFiles"] => C:\Program Files\Common Files
_SERVER["COMPUTERNAME"] => MARS
_SERVER["ComSpec"] => C:\WINNT\system32\cmd.exe
_SERVER["EXCHICONS"] => C:\Program Files\Exchsrvr\bin\maildsmx.dll
_SERVER["HOMEDRIVE"] => C:
_SERVER["HOMEPATH"] => \Documents and Settings\mcook.INFOTECH
_SERVER["LOGONSERVER"] => \\MARS
_SERVER["NUMBER_OF_PROCESSORS"] => 1
_SERVER["OS"] => Windows_NT
_SERVER["Os2LibPath"] => C:\WINNT\system32\os2\dll;
_SERVER["Path"] =>
C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program
Files\Microsoft SQL Server\80\Tools\BINN
_SERVER["PATHEXT"] => .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
_SERVER["PROCESSOR_ARCHITECTURE"] => x86
_SERVER["PROCESSOR_IDENTIFIER"] => x86 Family 15 Model