php-windows Digest 9 May 2001 04:51:43 -0000 Issue 587

Topics (messages 7358 through 7373):

Ora_fetch
        7358 by: Tom Mathews

Re: Get rows over certain data
        7359 by: Susan Ottwell

anti-advocacy: Larry Seltzer, pcmag May'01 pub.
        7360 by: Dickerson, Monty
        7361 by: Bradley Miller
        7362 by: Robert Trembath
        7366 by: Joe Brown

Re: Installing PHP on PWS4.0
        7363 by: Vern DeHaven
        7364 by: Ermanno Iannacci
        7365 by: Vern DeHaven

Re: PHP and HTML
        7367 by: Martijn Weisbeek
        7368 by: Joe Brown

Re: fread() and windows directory permissions
        7369 by: Mike Flynn

cgi error
        7370 by: Deborah Dennison
        7371 by: Asendorf, John

Re: Netscape and $PHP_SELF?
        7372 by: Chris Boothe
        7373 by: phobo

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]


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


Hi all

I've just had to revert to Ora (as opposed to OCI) functions for a
backward site and I'm having a problem: -

I'm doing the following

1) ora_parse and ora_exec on a SELECT statement
2) ora_fetch_into on the cursor from (1)

What seems to happen is that when it encounters any null values in the
table, the fetch returns the previous good value from that column
instead.

Anyone else seen this or (preferably) know a solution? The same doesn't
appear to happen using OCI_Fetch on my own server.

Cheers

Tom




just Search the online docs at http://www.mysql.com for 'timestamp'

The mySQL online docs are your best friend!

Susan Ottwell
TechBox
Netanya, Israel


>From: "PHPWIN" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Subject: [PHP-WIN] Get rows over certain data
>Date: Mon, 7 May 2001 11:06:04 +0800
>
>Hi
>    Anyone knows how to retrieve rows over a certain date in MySql if the 
>rows all have a datetime field, of type timestamp .
>Like to get the rows modified in the last week or 3 days or just today?
>
>Thanks
>Xon

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.





Today boss comes in and says, "Seen pcmag's story about php? says it is
bad."  Argh:
http://www.zdnet.com/products/stories/reviews/0,4161,2711724,00.html

What's the scoop on Larry Seltzer anyway.  You here, Larry?  His review is
rather 1-sided, negative.  Not good for free software's encroachment into
the corporate zone.  Of course the points he raises are all true and widely
known.  He mentions only one strength.  

I don't think Larry has actually been in the trenches doing real work on the
web.  Either that or he is/was paid to do it with Micro$oft ASP or Allaire's
Cold Fusion.  Maybe he is on the payroll of one of these?  It's a
possibility that should be investigated.

Thanks for nothing, Larry Seltzer.

Cheers,
MD






At 02:04 PM 5/8/01 -0500, Dickerson, Monty wrote:
>Today boss comes in and says, "Seen pcmag's story about php? says it is
>bad."  Argh:
>http://www.zdnet.com/products/stories/reviews/0,4161,2711724,00.html

I read it too -- just one more reason to keep my mission critical stuff on
Linux . . . and just toy with the Win/PHP combo for a while.  I love PHP,
but I still use CF too.  It's like using a hammer to install a screw . ..
it gets the job done, but I like to use the best tool for the job.

-- Bradley Miller




What a crock! I've been using PHP on Win2K for a year tying to MySQL with
great success in a production environment. I run 13 portals and several
other web applications from PHP on Linux and Win2K and the code has been
completely portable with a few small modifications. I agree, I doubt he's
ever developed any real apps with PHP. Maybe he'd change his tune.

We're running a DNA fingerprint library containing thousands of samples and
tying into the processing database for the analysis real-time from PHP,
MySQL, Win2K in a production environment. It runs perfect! I think he needs
to do  a little more RESEARCH before making irrational and judgemental
statements!!!! Larry soak your head!

My two cents,
Robert Trembath
CTO





LOL...

I think his article is fine.  PC-MAG caters to mostly windows users.  And
honestly, there are issues in php that haven't matured to 5 * rating.  I
think the developers are making leaps and bounds toward a solid windows
product.  There are many compilicatons that will cause the average PC-MAG
many headaches.

PHP is the best language on the market, IMO, but I'm a developer, not a
PC-MAG subscriber.

PC-MAG lost my patronage a long time ago because of technically weak
articles, such as this, perhaps they will loose you partrons as well.

-Joe

""Dickerson, Monty"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Today boss comes in and says, "Seen pcmag's story about php? says it is
> bad."  Argh:
> http://www.zdnet.com/products/stories/reviews/0,4161,2711724,00.html
>
> What's the scoop on Larry Seltzer anyway.  You here, Larry?  His review is
> rather 1-sided, negative.  Not good for free software's encroachment into
> the corporate zone.  Of course the points he raises are all true and
widely
> known.  He mentions only one strength.
>
> I don't think Larry has actually been in the trenches doing real work on
the
> web.  Either that or he is/was paid to do it with Micro$oft ASP or
Allaire's
> Cold Fusion.  Maybe he is on the payroll of one of these?  It's a
> possibility that should be investigated.
>
> Thanks for nothing, Larry Seltzer.
>
> Cheers,
> MD
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>






Thanks for the response, Phil.  I have tried both CGI and ISAPI to no
avail.  php.exe -i returns no errors, as OmniHTTPd (running on the same
machine) serves up PHP fine.  I'm thinking there's something odd with
how and what keys need to be added to the registry.  I have a Win2000
server to play with, maybe I'll have better luck.

Peace,
Vern DeHaven

--- Phil Driscoll <[EMAIL PROTECTED]> wrote:
> Firstly the ISAPI module won't work well with PWS so go for the cgi
> installation using php.exe instead.
> If that doesn't work, run php.exe -i from the command line, and the
> error
> messages displayed will tell you what's wrong.


__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/




I don't know if there's some relationship, but PHP 4.0.5 is the first
version of PHP that failed running on my W98+PWS4 box.

----- Original Message -----
From: "Vern DeHaven" <[EMAIL PROTECTED]>
To: "Phil Driscoll" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, May 08, 2001 10:11 PM
Subject: Re: [PHP-WIN] Installing PHP on PWS4.0


> Thanks for the response, Phil.  I have tried both CGI and ISAPI to no
> avail.  php.exe -i returns no errors, as OmniHTTPd (running on the same
> machine) serves up PHP fine.  I'm thinking there's something odd with
> how and what keys need to be added to the registry.  I have a Win2000
> server to play with, maybe I'll have better luck.
>
> Peace,
> Vern DeHaven
>
> --- Phil Driscoll <[EMAIL PROTECTED]> wrote:
> > Firstly the ISAPI module won't work well with PWS so go for the cgi
> > installation using php.exe instead.
> > If that doesn't work, run php.exe -i from the command line, and the
> > error
> > messages displayed will tell you what's wrong.
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great prices
> http://auctions.yahoo.com/
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>





That is the version I am running also.  I have the 4.0.6-dev from
Sourceforge.  I'll try that and an earlier version and see what happens.

----- Original Message -----
From: "Ermanno Iannacci" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 08, 2001 4:16 PM
Subject: Re: [PHP-WIN] Installing PHP on PWS4.0


> I don't know if there's some relationship, but PHP 4.0.5 is the first
> version of PHP that failed running on my W98+PWS4 box.



_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com





> Don't know a clean way how to get round this problem though (without
having
> to use redirects or similar things in the index.html)

I believe you can do so using a .htaccess on Apache. This comes from the
Apache-manual:

*** Redirect Now Usable in .htaccess Files ***
The Redirect directive can now be used in .htaccess files when the FileInfo
directive has been set on. This allows users to redirect parts of their
directories without requiring CGI scripts.

And from another part of the manual:
Example:
Redirect /service http://foo2.bar.com/service

Greetings,

Martijn Weisbeek
http://weisbeek.cjb.net





Well, you can tell apache to filter html through php by adding the .html
extension to the directive suchas:

AddType application/x-httpd-php .php .html

If you serve a lot of .html, this will probably slow your server down
because all .html files will be filtered through php

You can set index.php as your directory index, so directory urls point to a
index.php page instead of index.html

<IfModule mod_dir.c>
    DirectoryIndex index.php
</IfModule>

Now http://yourserver.com/ automatically points to
http://yourserver.com/index.php

I believe both options may be set through .htaccess files, but I have not
studied that method of configuration.

""[EMAIL PROTECTED]"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> On a standard Apache you cannot just put php scripts in html files, since
> the apache won't pass them on to the php-interpreter. However it is
probably
> not true, that the files come without the php-code. You just cannot see it
> in the Browser since it is hidden inside <?php...?> tags. But if you look
at
> the sourcecode of the page your borwser is displaying you're likely to see
> your complete php-source in there as well.
> So just rename your files to an extension that is interpreted as php and
> everything should wqork fine. (ususally .php or .php4)
> I know that there is a problem if you want to have a php page as your
> default page, since most webhosters will accept only index.htm(l) for
that.
> Don't know a clean way how to get round this problem though (without
having
> to use redirects or similar things in the index.html)
>
> > -----Original Message-----
> > From: Jordy [mailto:[EMAIL PROTECTED]]
> > Sent: Dienstag, 8. Mai 2001 14:57
> > To: [EMAIL PROTECTED]
> > Subject: [PHP-WIN] PHP and HTML
> >
> >
> > Hi there,
> > I have Php 4.0.5 and Apache Web Server,
> > It all works fine when I open php files, but
> > when I open html file with php scripts in it, it
> > doesn't work I just simply see the normal html but without any
> > scripts.. as
> > it doesn't use PHP in HTML .. could
> > someone please help!!!
> >
> > Thx
> > mail it to [EMAIL PROTECTED]
> >
> > Jordy
> >
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>






Try $dirname = "c:\\temp";
I need to use dos-style backslashes on my Windows machine for all file 
system-related functions.

I find this code helps quite a bit for looping through directories for 
whatever reason:
   $dir_name = '\\stuff\\folder';
   $dir_handle = opendir($dir_name);
   while (($curr_file = readdir($dir_handle)) !== false) {
     if ($curr_file != '.' && $curr_file != '..') {
       if (is_dir($actual_dir.'\\'.$curr_file)) {
        // do stuff for a directory
         // for example, $subfolders[] = $curr_file;
       }
       else {
         // do stuff for a file
        // for example, $files[] = $curr_file;
       }
     }
   }


Today's alienated gem:
"Send your favorite mom lots of love and affection, free of shipping 
charges!" -- Seen on a shopping site

               -=- Mike Flynn - Burlington, VT -=-
[EMAIL PROTECTED]  http://www.mikeflynn.net/  * Give blood *
  Wouldn't the free market, in its true form, be anarchy?





Hello,

Newbie needs help. I get the following error when trying to execute a
script on my Windows 2000 machine running IIS

cgi error:
The specified CGI application misbehaved by not returning a complete set of
HTTP headers. The headers it did return are:

That's it. Can someone help me out?

Thanks
Deb








This usually happens to me when I type in a page that doesn't exist but has
the .php ending to it.  Check the URL.

I still haven't figured out why though.  I hosed my server about 4 weeks
ago, that has been happening ever since, but it didn't used to happen.

---------------------
John Asendorf - [EMAIL PROTECTED]
Web Applications Developer
http://www.lcounty.com - NEW FEATURES ADDED DAILY!
Licking County, Ohio, USA
740-349-3631
Aliquando et insanire iucundum est


> -----Original Message-----
> From: Deborah Dennison [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 08, 2001 6:54 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] cgi error
> 
> 
> Hello,
> 
> Newbie needs help. I get the following error when trying to execute a
> script on my Windows 2000 machine running IIS
> 
> cgi error:
> The specified CGI application misbehaved by not returning a 
> complete set of
> HTTP headers. The headers it did return are:
> 
> That's it. Can someone help me out?
> 
> Thanks
> Deb
> 
> 
> 
> 
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: 
> [EMAIL PROTECTED]
> 




I know what you are saying it is a bit odd.

The problem is that
<a href=\"$HTTP_HOST$PHP_SELF?id=$id&act=v\">$id</a>

is being called within a function and the $HTTP_HOST, etc. seem to be set to
null within the function.

Thanks,


Chris Boothe
[EMAIL PROTECTED]
----- Original Message -----
From: "Mike Flynn" <[EMAIL PROTECTED]>
To: "Chris Boothe" <[EMAIL PROTECTED]>
Sent: Tuesday, May 08, 2001 6:58 PM
Subject: Re: [PHP-WIN] Netscape and $PHP_SELF?


> $PHP_SELF is on the server side, since PHP is a server-side scripting
> language.  The user's browser has no bearing on the value $PHP_SELF gets
> because it is all done on the server before the page even reaches the
> user.  Try viewing the source in the two different browsers and confirming
> that it really is different and doesn't just appear that way from the
> browser window?
>
> -Mike
>
> At 11:22 PM 5/7/01 -0400, you wrote:
> >My script works fine in IE 5.5 however a hyperlink is missing the script
> >name when it is displayed in Netscape Navigator 4.77.
> >
> >echo "<td align=\"center\"><a
href=\"$PHP_SELF?id=$id&act=v\">$id</a></td>\n";
> >
> >Instead of view.php?id=1&act=v I get ?id=1&act=v
> >which doesn't work obviously.
> >
> >Thanks,
> >
> >Chris Boothe
> >[EMAIL PROTECTED]
>
> Today's alienated gem:
> "Send your favorite mom lots of love and affection, free of shipping
> charges!" -- Seen on a shopping site
>
>                -=- Mike Flynn - Burlington, VT -=-
> [EMAIL PROTECTED]  http://www.mikeflynn.net/  * Give blood *
>   Wouldn't the free market, in its true form, be anarchy?
>





I've experienced this - i think its a 'feature' of Netscape 4.7x which
doesn't seem to exist with Netscape 6 or IE4+. Ensure that you are using
globals.

I think its because IE inserts a 'current path/file' into URLS if only
"?asdadsa" exists as an URL.

Siggy

----- Original Message -----
From: "Chris Boothe" <[EMAIL PROTECTED]>
To: "Mike Flynn" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, May 09, 2001 1:10 PM
Subject: Re: [PHP-WIN] Netscape and $PHP_SELF?


> I know what you are saying it is a bit odd.
>
> The problem is that
> <a href=\"$HTTP_HOST$PHP_SELF?id=$id&act=v\">$id</a>
>
> is being called within a function and the $HTTP_HOST, etc. seem to be set
to
> null within the function.
>
> Thanks,
>
>
> Chris Boothe
> [EMAIL PROTECTED]
> ----- Original Message -----
> From: "Mike Flynn" <[EMAIL PROTECTED]>
> To: "Chris Boothe" <[EMAIL PROTECTED]>
> Sent: Tuesday, May 08, 2001 6:58 PM
> Subject: Re: [PHP-WIN] Netscape and $PHP_SELF?
>
>
> > $PHP_SELF is on the server side, since PHP is a server-side scripting
> > language.  The user's browser has no bearing on the value $PHP_SELF gets
> > because it is all done on the server before the page even reaches the
> > user.  Try viewing the source in the two different browsers and
confirming
> > that it really is different and doesn't just appear that way from the
> > browser window?
> >
> > -Mike
> >
> > At 11:22 PM 5/7/01 -0400, you wrote:
> > >My script works fine in IE 5.5 however a hyperlink is missing the
script
> > >name when it is displayed in Netscape Navigator 4.77.
> > >
> > >echo "<td align=\"center\"><a
> href=\"$PHP_SELF?id=$id&act=v\">$id</a></td>\n";
> > >
> > >Instead of view.php?id=1&act=v I get ?id=1&act=v
> > >which doesn't work obviously.
> > >
> > >Thanks,
> > >
> > >Chris Boothe
> > >[EMAIL PROTECTED]
> >
> > Today's alienated gem:
> > "Send your favorite mom lots of love and affection, free of shipping
> > charges!" -- Seen on a shopping site
> >
> >                -=- Mike Flynn - Burlington, VT -=-
> > [EMAIL PROTECTED]  http://www.mikeflynn.net/  * Give blood *
> >   Wouldn't the free market, in its true form, be anarchy?
> >
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>



Reply via email to