php-windows Digest 28 Apr 2005 06:57:21 -0000 Issue 2650
Topics (messages 25925 through 25929):
Re: Process Control in Windowz
25925 by: David M. Patterson
Re: Web based Accounting / COM
25926 by: michael
Newcomer
25927 by: Barry Fawthrop
25928 by: Jason Barnett
echo delayed?
25929 by: Irvin Piraman
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[email protected]
----------------------------------------------------------------------
--- Begin Message ---
Aaron,
The easiest way that I have found to do this is to use
SysInternals (http://www.sysinternals.com) pskill utility.
You'll find it on their site under:
- Windows NT/2K/XP/2K3
- Utilities
- PsTools vx.y
I just shell out a pskill command.
Hope this helps.
David M. Patterson
Consulting Software Engineer
-----Original Message-----
From: Wagner, Aaron [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 26, 2005 10:36 AM
To: php windows
Subject: Process Control in Windowz
Has anybody used process control for PHP in Apache2. I have processes
that lock and become zombie process. I would like a way to kill them
with out having to bounce Apache2 service.
Running on win2k,
Server Version: Apache/2.0.48 (Win32) mod_perl/1.99_13-dev Perl/v5.8.3
PHP/4.3.4
Thanx
aaron
--- End Message ---
--- Begin Message ---
Sounds like your questions need to be directed to the Peachtree support
team. COM in terms of technology is a little dated to go learning (unless
it is essential), you should probably look to some software that provides
Web Service access. Depending on how big their (Peachtree) web interface is
(and or how it was developed) you may want to look at modifying that to suit
the browser you are using (unless they have loads of widgets that are i.e.
specific of course).
Jason Barnett writes:
The question: can anyone point me to a good howto for building COM
components? It would be great if there were open source tools for
building the actual COM object. It would be better if the howto was
geared towards building COM objects for web apps. Obviously the web pages
will be written in PHP so if there is a reference for PHP <-> COM
interoperability that would be the best!
The details:
My company is a longtime user of the the Peachtree Accounting software.
It's very cheap compared to all of the features it provides ($849
multi-user) and it meets most of our needs. However, my boss recently
told me that we need to be able to support a few features remotely.
- Our install guys need to be able to enter expense reports
- The boss wants to be able to get Cash Flow / Financial reports
- Sales wants to be able to do quotes
- Peachtree provides a free SDK (provided you understand COM ;)
http://www.peachtree.com/partners/addonpartners/
P.S. Yes we know about the web interface that is available from Best /
Peachtree. However, their pages require IE in order to function and that
is simply unacceptable.
P.P.S. If anyone out there knows of another program that is comparable to
Peachtree in features (and already has good web support) then feel free to
let me know about that alternative. We're looking to upgrade
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Hi All
As a newcomer to the list and PHP, I was wondering:
I have been programming for 8 years now, in C and mostly in Delphi / Pascal.
I am used to the C constraint and syntax, which it appears that PHP follows.
1) Are there any good tutorials, that will take a programmer (like
myself) and
expose them to the PHP specifics? So far I have come across PHP tutorials
but for novices who don't know programming.
2) I have developed many ISAPI apps using Delphi, which are web based apps
How secure is your code when a .php file is called via a web browser? Can
visitors see your code or is it all hidden for them and they just see
the HTML
results?
Thanks in advance
Barry
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.10.3 - Release Date: 4/25/2005
--- End Message ---
--- Begin Message ---
Barry Fawthrop wrote:
Hi All
As a newcomer to the list and PHP, I was wondering:
I have been programming for 8 years now, in C and mostly in Delphi /
Pascal.
I am used to the C constraint and syntax, which it appears that PHP
follows.
Pretty much. There are very, very few cases where C function !== PHP
function. Oh, and all PHP variables are structs with multiple
"equivalent" properties for string, float, etc.
1) Are there any good tutorials, that will take a programmer (like
myself) and
expose them to the PHP specifics? So far I have come across PHP tutorials
but for novices who don't know programming.
php.net manual is the best way to go. Zend.com has some advanced
tutorials (and they pretty much support PHP as well). Either that or
ask your question here on the list.
2) I have developed many ISAPI apps using Delphi, which are web based apps
How secure is your code when a .php file is called via a web browser? Can
visitors see your code or is it all hidden for them and they just see
the HTML
results?
<?php
/** Code that is in between here is not usually visible to web browsers.
Rather this is used to generate HTML markup, or XML, or whatever. The
exception to this is if your server is configured to show the source
with (for example) .phps files, but by default .php files produce markup
only. */
phpinfo();
/** The above command will dump your system information */
?>
Thanks in advance
Barry
--- End Message ---
--- Begin Message ---
Hi all!
I have the following script:
# date/time stamp
$dt_stamp = date("Ymd.H.i.s");
# the directories
$basedir = str_replace("/","\\",dirname($_SERVER['SCRIPT_FILENAME']));
$shotdir = $basedir."\\sat.shots\\";
echo "downloading satellite snapshots...";
# load the images
$satloc = file_get_contents($basedir."\satloc.txt");
$images = explode("\n",$satloc);
for ( $i=0; $i <= count($images); $i++ )
{
$i_name = trim(basename($images[$i]));
$i_type = trim(strtolower(substr($i_name, -3)));
switch ($i_type) {
case "jpg" :
$img = loadjpeg(trim($images[$i]));
imagejpeg($img,$shotdir.$dt_stamp."-".$i_name);
break;
case "gif" :
$img = loadgif(trim($images[$i]));
imagegif($img,$shotdir.$dt_stamp."-".$i_name);
break;
}
}
echo " done.";
The script above works perfectly, well almost...
The problem is that when I run it, I don't see the message "downloading
satellite snapshots..." that I expect
to show on the browser before the images are acquired. Instead I get
"downloading satellite snapshots... done."
after the script finish execution.
Is this echo delay normal?
TIA
--
Irvin
--- End Message ---