php-windows Digest 12 Feb 2009 16:20:52 -0000 Issue 3573
Topics (messages 29175 through 29178):
Re: Access Violation
29175 by: Elizabeth M Smith
29176 by: John Mertic
Using the power of the PC to find new species in lists
29177 by: Bill Mudry
Information on function caller?
29178 by: Sascha Meyer
Administrivia:
To subscribe to the digest, e-mail:
php-windows-digest-subscr...@lists.php.net
To unsubscribe from the digest, e-mail:
php-windows-digest-unsubscr...@lists.php.net
To post to the list, e-mail:
php-wind...@lists.php.net
----------------------------------------------------------------------
--- Begin Message ---
Louis Solomon [SteelBytes] wrote:
> forget the ISAPI, use FastCGI. In my experience the ISAPI has never
> been stable or working fully.
>
> mmm, not sure FastCGI is available for IIS for XP, so since it's
> probably only a dev machine go to just php as cgi. that works fine on
> all OSes
>
> Louis
>
Yes, you'll have much better luck with fastcgi - and yes the fastcgi
stuff works on IIS 5.1 which ships with XP (just use the IIS 6.0
installer for fastcgi from iis.net)
Have fun,
Elizabeth
--- End Message ---
--- Begin Message ---
FastCGI will work on XP with the installer designed for Windows Server
2003, although it's not offically supported.
John Mertic
jmer...@gmail.com
Sent from my iPod
On Feb 11, 2009, at 8:02 PM, "Louis Solomon [SteelBytes]" <lo...@steelbytes.com
> wrote:
forget the ISAPI, use FastCGI. In my experience the ISAPI has never
been stable or working fully.
mmm, not sure FastCGI is available for IIS for XP, so since it's
probably only a dev machine go to just php as cgi. that works fine
on all OSes
Louis
--------------------------------------------------
From: "Herb Munson" <herbmun...@q.com>
Sent: Thursday, February 12, 2009 11:52 AM
To: <php-wind...@lists.php.net>
Subject: [PHP-WIN] Access Violation
I've installed PHP 5.2.6 ISAPI on Windows XP with IIS 5.1.
It works - sort of. I get frequent 500 errors (IE) or "Access
Violation"
errors (firefox). Often, I cannot open phpinfo.php even once after
starting
the browser. Once I get the error, I can (very rarely) fix the
problem by
running synciwam. Sometimes shutting down the browser and
restarting it
works. More often, I can shut it down and restart several times to
no
avail. Sometimes I give up and reboot (and it still might not work).
Sometimes (but very rarely) things will work fine for hours.
Basically, I see no pattern. I've seen references to bugs in php
that might
cause this, but not for 5.2.6. Since success is so intermittent, I
can't
really be sure if running synciwam is responsible for anything.
Does anyone have any idea how many poor souls are trying to run this
combination (5.2.6 + ISAPI + IIS 5.1)? (I got no responses to an
earlier
plea; maybe no one is running this combination.)
Are there any clues in the hex address of the error? Is there a
way to
determine whether this is a PHP problem, or an MS problem - or my
setup
problem? I'm tending to think it is PHP, since I don't see how the
usual
source of errors (file security) would be exercised differently
when opening
the same site (phpinfo).
This is driving me nuts, and it's a very short trip. Does anyone
have a
suggestion (other than chuck XP - I'm kinda stuck with that on my
desk)?
Thanks in advance.
herb
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
I have spent years now trying to find as many species of plants that
are wood and woody. A common practice has been to manually compare
the woods listed in one file (usually text (.ascii, doc, comma delimited, etc.)
,
spreadsheet or database file) that lists the species I already have found
(ie. a master list to compare against) against a target list of species.
The major task of each comparison has been to separate out new species
not yet in the master list and --- write them into a new file.
Since the master list now has over 6,000 species listed, you can just
imagine that manual comparisons took me hours and hours if not even
days! I know, too, that rushing through to compare two lists is one of
the most classical applications for which you could use a computer.
What takes me hours to do it should be able to whip through in
seconds! I have a large collection of target files, so having computer
power to do this would be equivalent to lighting a rocket under the project!
I am surprised that it has been that hard for me to find something that
would work when this should be quite basic coding.
There are all kinds of file comparison programs out there. The largest
problem I have come across using them is that they show the results
side by side as only color differences --- where I need all new records
to the master file to be written into a new file instead. I have been a bit
surprised how hard it has been to find such programs since this is
one of the tenants of basic computer training, such as how ISAM files
used to be merged and compared very frequently in mainframe days
to update company records.
Any suggestions on code in PHP or even a finished application
that would do this? If I could get the code, that would be even better
so later I can tweak it to fit what I do even more. A simple comparison
would be just fine for now. Later I hope to improve on it in number of
ways such as:
- Eliminating duplicates before comparison
- Being able to do comparisons on a variety of file formats
- Facilities to massage target files into a common set of
fields before trying to compare them. The target files can
come in all kinds of file formats and layouts that need
massaging before comparisons would mean anything.
- Cleaning out control characters and other garbage from a
target file before comparisons.
--- but for now and for some time to come, all this extra is a lot of
coding work that can wait ;-) . I would be so elated just to be able
to run though such file comparisons in record breaking speeds
compared to my manual methods.
P.S. -- I am just starting to gain some proficiency in using PHP.
Studying such code would also be a good learning exercise.
Always in thanks for any help given,
Bill Mudry
Mississauga, Ontario
--- End Message ---
--- Begin Message ---
Hi group,
I am unsatisfied with the following situation and would like to ask your advice
on how to handle this:
all of my scripts use a central custom database connection class that handles
Oracle connections & stored procedures; this works pretty good, but there's one
major drawback of this approach:
whenever an sql query fails, the error is reported by the OCI class with the
line number of the $oci->execute() function, but this is not really helpful, I
need the line from where my custom oci function was called.
To give you an example:
[CODE]
function eoci_execute ($sql){
$cursor = oci_new_cursor ($this->dbh);
$stmt = oci_parse ($this->dbh, $sql);
oci_bind_by_name ($stmt, "cursor", $cursor, -1, OCI_B_CURSOR);
oci_execute ($stmt); // <---- this is where the error occurs
...
}
$arrValues = $eoci_execute($sql); // <--- but I would like to know this line
instead of the above line!!
[/CODE]
is there any way (like special variables) to get information on a function's
caller? Or should I best throw an Exception, so that the error is reported back
to the caller?
Thanks in advance!
--
Jetzt 1 Monat kostenlos! GMX FreeDSL - Telefonanschluss + DSL
für nur 17,95 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a
--- End Message ---