[PHP-WIN] Re: cURL: curl_exec returning chopped up result on a POST operation

2002-07-11 Thread Per

John Palmer wrote:
> System:
> 
> BSDI 4.1
> Apache 1.3.26
> PHP 4.1.2
> cURL 7.9.8
> 
> I have the following function in PHP:
> 
>  function XMLExec($command)
> {
> 
> 
> $ch = curl_init();
> curl_setopt($ch, CURLOPT_URL, http://host.name/.cgi-bin/cgiprogram);
> curl_setopt($ch, CURLOPT_POST, 1);
> curl_setopt($ch, CURLOPT_FAILONERROR, 1);
> curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
> curl_setopt($ch, CURLOPT_POSTFIELDS, $command);
> curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
> 
> $res = curl_exec($ch);
> curl_close($ch);
> 
> return $res;
> 
> }
> 
> 
> Really simple little thing. The CGI-BIN program is a C program that returns XML 
>output. The first line
> is Content-type: text/html, then a blank line and then XML
> 
> Problem: Sometimes, especially when the XML output is long (maybe 12k or so),  the 
>output that ends up in
> the $res string is all chopped up. Usually, the first part of the output is present, 
>but then a  huge chunk is 
> missing and then a middle section is there and then the end of the output is chopped 
>off.
> 
> Has anyone seen this before? The only error that I can see is that when Apache 
>starts, it whines about
> PHP not being compiled with EAPI. Other  than that, no other problems.
> 
> I'm wondering if there is a buffering problem somwhere but I havent found any 
>mention of this
> on any lists
> 
> 
> 

There has been a buffer problem with the curl module but it should be 
fixed in CVS. I' not sure if this has anything to do with your problem.

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

/Per


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-WIN] Re: Trapping PHP errors

2002-07-11 Thread Per

Matt Babineau wrote:
> Does anyone know of a way to trap PHP errors and have them automatically
> emailed to an email address? I am trying to do some remote testing on a
> script but the problem it is it's server to server interaction so I
> can't see what is going on! Any ideas?
>  
> Matt Babineau
> MCWD / CCFD
> -
> e:   [EMAIL PROTECTED]
> p: 603.943.4237
> w:   http://www.criticalcode.com
> PO BOX 601
> Manchester, NH 03105
>  
> 

Look in chapter 15 Error Handling in the documentation, there is an 
example that might help you.

/Per


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-WIN] second argument in strtotime seems to have no effect

2002-07-11 Thread Per

Second argument in strtotime seems to have no effect.

strtotime("2001-02-02 12:01:01",98700);
strtotime("2001-02-02 12:01:01",1000);
strtotime("2001-02-02 12:01:01",time());
strtotime("2001-02-02 12:01:01");

all gives the same output: 98661. Am I or the function erronous?

/Per


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-WIN] Formless post question

2002-07-11 Thread Rich Gray

I am doing a formless post to a CGI script on another site (PayPal). I am
doing this because the current site design has 2 different submit images on
a single form which need to post different data to the CGI script (after
registering the customer in the local database) dependent upon whcih image
gets clicked.

The PayPal CGI script has user interaction - the user has to login.

I am doing the formless post by using fsockopen() and fputs() to open the
http port and posting the data which seems to be working fine...and I
receive the raw http headers and html code when I read the open socket...
now for the $64m question - how can I emulate a normal form submit in
actually *loading* the page that is sent by the CGI script in the normal
fashion? If I don't read the data on the open socket then my script just
dies with no output...

Am I trying to do something very stupid here? :)

TIA
Rich


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




php-windows Digest 11 Jul 2002 13:03:15 -0000 Issue 1235

2002-07-11 Thread php-windows-digest-help


php-windows Digest 11 Jul 2002 13:03:15 - Issue 1235

Topics (messages 14690 through 14710):

strange error
14690 by: fungi
14691 by: Peter
14692 by: fungi
14693 by: Peter
14694 by: fungi
14695 by: fungi
14696 by: Peter
14697 by: fungi
14698 by: fungi
14699 by: Honza Hejdrych
14701 by: fungi
14702 by: Peter
14703 by: Peter
14704 by: fungi

Re: Calling Windows DLL Files
14700 by: Luis Ferro

form variables ... back to the same page ?
14705 by: toby z
14706 by: James Mclean

Re: curl_exec returning chopped up result on a POST operation
14707 by: Per

Re: Trapping PHP errors
14708 by: Per

second argument in strtotime seems to have no effect
14709 by: Per

Formless post question
14710 by: Rich Gray

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 ---

I have problem testing PHP on my own server setup with IIS5.
I tested my server with



and everything goes fine, but when i test another program such as










it prints out

Notice: Undefined variable: cisco in c:\inetpub\wwwroot\fungi.php3 on line 8

but when i tested it on my schools' server, it runs fine..

why is this happening?

ps. i am using the latest PHP version








--- End Message ---
--- Begin Message ---

try this..


and maybe add $PHP_SELF for the action.


Cheers

> -Original Message-
> From: fungi [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, 11 July 2002 12:14 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] strange error
> 
> 
> I have problem testing PHP on my own server setup with IIS5.
> I tested my server with
> 
>  phpinfo();
> ?>
> 
> and everything goes fine, but when i test another program such as
> 
> 
> 
> 
> 
> 
> 
>  echo("$cisco");
> ?>
> 
> 
> it prints out
> 
> Notice: Undefined variable: cisco in 
> c:\inetpub\wwwroot\fungi.php3 on line 8
> 
> but when i tested it on my schools' server, it runs fine..
> 
> why is this happening?
> 
> ps. i am using the latest PHP version
> 
> 
> 
> 
> 
> 
> 
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
--- End Message ---
--- Begin Message ---

still doesn't work..
i changed the register_globals from "off" to "on" in php.ini
and tested the original code. This time it works, but it still displays
undefined variable "cisco"

why?



"Peter" <[EMAIL PROTECTED]>
???:[EMAIL PROTECTED]
> try this..
>
>  if ($submit)
> {
> echo("$cisco");
> }
> ?>
> and maybe add $PHP_SELF for the action.
>
>
> Cheers
>
> > -Original Message-
> > From: fungi [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, 11 July 2002 12:14 PM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP-WIN] strange error
> >
> >
> > I have problem testing PHP on my own server setup with IIS5.
> > I tested my server with
> >
> >  > phpinfo();
> > ?>
> >
> > and everything goes fine, but when i test another program such as
> >
> > 
> > 
> > 
> > 
> > 
> > 
> >  > echo("$cisco");
> > ?>
> > 
> >
> > it prints out
> >
> > Notice: Undefined variable: cisco in
> > c:\inetpub\wwwroot\fungi.php3 on line 8
> >
> > but when i tested it on my schools' server, it runs fine..
> >
> > why is this happening?
> >
> > ps. i am using the latest PHP version
> >
> >
> >
> >
> >
> >
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >



--- End Message ---
--- Begin Message ---

am not sure... it works fine for me ...

do you have allow_call_time_pass_reference set to on? in php.ini?



> -Original Message-
> From: fungi [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, 11 July 2002 12:54 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] strange error
> 
> 
> still doesn't work..
> i changed the register_globals from "off" to "on" in php.ini
> and tested the original code. This time it works, but it still displays
> undefined variable "cisco"
> 
> why?
> 
> 
> 
> "Peter" <[EMAIL PROTECTED]>
> ???:[EMAIL PROTECTED]
> > try this..
> >
> >  > if ($submit)
> > {
> > echo("$cisco");
> > }
> > ?>
> > and maybe add $PHP_SELF for the action.
> >
> >
> > Cheers
> >
> > > -Original Message-
> > > From: fungi [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, 11 July 2002 12:14 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: [PHP-WIN] strange error
> > >
> > >
> > > I have problem testing PHP on my own server setup with IIS5.
> > > I tested my server with
> > >
> > >  > > phpinfo();
> > > ?>
> > >
> > > and everything goes fine, but when i test another program such as
> > >
> >

Re: [PHP-WIN] Re: Calling Windows DLL Files

2002-07-11 Thread Todd Williamsen

Luis,

That is fine and dandy for anybody, but this needs to be idiot proof;
meaning he has a bunch of girls maybe high school kids working there doing
this stuff and if the wrong information goes into the wrong patients files
he could get his ass in a sling legally.

You are right, re-writing a scanning program is the wrong way of doing it,
but there is a way to do an API call which would call the TWAIN32.dll file,
Photoshop does it, and most imaging applications do as well.  Now, being
able to tie in the scanning application with this application looks like the
easy part, the hard part is getting those newly scanned files in a folder
where they belong and being automatically tied into the patient's
information is the hard part.

I am thinking PHP isn't up to this task, and Visual Basic will be better
suited, damn I hate saying that!



"Luis Ferro" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi there,
>
> For a complex task as such, and without needing to "rewrite" the wheel
> (that means write a new scanning program) i would use:
>
> a) a scanner that works in a networked environment and as the ability to
> send the scannings to emails (i remmeber that the network scanners from
> HP can do it - even if they are a bit weird to configure...)
> b) create either a global mail drop box to send all scanned documents to
> it or create a mail box for each patient...
> c) write a much simpler pop3/imap program to handle the archiving needs
> with a web interface...
>
> For scanning, the good doctor would only need to go to the scanner,
> place the document and press a button... in the scanner
>
> For archiving, he would just go to the site and place the newly scanned
> documents in the patient file...
>
> Cheers,
> Luis Ferro
> TelaDigital
>
> P.S.- warning... the HP net scanners are weird to configure as they
> require a domain to "distribute" the scannings and have some limitations
> with regard of the ip network settings of the scanning server and the ip
> of the scanners by themselfs. They must reside in the same net mask...
> which in large distributed networks is a no-no... apart from that, they
> work very well...
>




-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-WIN] XML with IIS

2002-07-11 Thread Johannes Hiemer

Hi,
how can I get the XML-Functions working under win2k with IIS? Is there any
DLL? Or ist there any way to manage it without this functions?
Thx for help!

Ciao Johannes Hiemer



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-WIN] Re: XML parser file

2002-07-11 Thread Johannes Hiemer


"Mathew Joseph" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> hi there,
>  does any one have copies of XMlparser.dll and xmltok.dll. these files
> seem to be missing on my comp. could someone send it across.
> thanks,
> Mathew
>

Hm I am searching for them too.




-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP-WIN] Re: Calling Windows DLL Files

2002-07-11 Thread Dash McElroy

I would think the only way to get the info automatically into the patient's
file is if you had some kind of seriously accurate OCR software that knew
where to look on the image and then used that for it's criteria of where to
go. Knowing that OCR is periodically unreliable... you won't want to do
that.

Realistically, _someone_ will have to tell the document where to go. You'll
also need to develop a process for auditing accuracy and other audits to
make sure that the info is in the right spot. Here's an idea:

1. The document needs some sort of identification, be it a cover page or a
sticky note in a strategic space
2. User scans document and tells it where to go (however you write this...)
and PHP puts it in that patient's database entry (assuming you're using a
database. You're using a database, right?).
3. At the end of the scanning, user audits their scanning to make sure all
is well
4. Periodically (i.e. weekly, monthly, whatever the doc decides), someone
does an audit to make sure that all the data is where it should be.

I've worked on a system like this, and while it was a bit of a pain
sometimes, the process is what makes the product usable. It _is_ a part of
the product.

Good luck (and don't say Visual Basic again :-> )

-Dash

-Original Message-
From: Todd Williamsen [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, July 11, 2002 6:11 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] Re: Calling Windows DLL Files


Luis,

That is fine and dandy for anybody, but this needs to be idiot proof;
meaning he has a bunch of girls maybe high school kids working there doing
this stuff and if the wrong information goes into the wrong patients files
he could get his ass in a sling legally.

You are right, re-writing a scanning program is the wrong way of doing it,
but there is a way to do an API call which would call the TWAIN32.dll file,
Photoshop does it, and most imaging applications do as well.  Now, being
able to tie in the scanning application with this application looks like the
easy part, the hard part is getting those newly scanned files in a folder
where they belong and being automatically tied into the patient's
information is the hard part.

I am thinking PHP isn't up to this task, and Visual Basic will be better
suited, damn I hate saying that!



"Luis Ferro" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi there,
>
> For a complex task as such, and without needing to "rewrite" the wheel
> (that means write a new scanning program) i would use:
>
> a) a scanner that works in a networked environment and as the ability to
> send the scannings to emails (i remmeber that the network scanners from
> HP can do it - even if they are a bit weird to configure...)
> b) create either a global mail drop box to send all scanned documents to
> it or create a mail box for each patient...
> c) write a much simpler pop3/imap program to handle the archiving needs
> with a web interface...
>
> For scanning, the good doctor would only need to go to the scanner,
> place the document and press a button... in the scanner
>
> For archiving, he would just go to the site and place the newly scanned
> documents in the patient file...
>
> Cheers,
> Luis Ferro
> TelaDigital
>
> P.S.- warning... the HP net scanners are weird to configure as they
> require a domain to "distribute" the scannings and have some limitations
> with regard of the ip network settings of the scanning server and the ip
> of the scanners by themselfs. They must reside in the same net mask...
> which in large distributed networks is a no-no... apart from that, they
> work very well...
>




-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-WIN] Available PHP Whitepapers

2002-07-11 Thread R.S. Herhuth


My CIO is impressed with what I have been accomplishing using PHP and is
considering updating a few of their aging ASP applications, but he needs
textual ammunition to present to the management committee to do so.  So
I was wondering if anyone knows of any technical whitepapers on PHP
geared towards management that I could give him to salivate over.

Thanks,
Ron

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP-WIN] Formless post question

2002-07-11 Thread Ross Fleming

If I understand it, you COULD simply have a page with a form that points to
the CGI script, but you want to simulate this instead, correct?

If this is the case, you need to send that data as part of the HTTP headers
when requesting the page (instead of simply fputs-ing the GET / HTTP/1.1 or
whatever).  You can either extend the URI with the data (request the file
"cgi-bin/script?foo=bar&var=other") in other words, a simulation of . fputs() something like:

GET /cgi-bin/script?foo=bar&var=other HTTP/1.1
(two \n's to end the headers)

The other option (simulating  is to make a POST request
to the server instead of a GET, followed by the data.  You'd fputs()
something like:

POST /cgi-bin/script HTTP/1.0
Content-type: application/x-www-form-urlencoded
Content-length: 200 (I think this just needs to be longer than all the data)
(blank line here)
foo=bar
var=other
(two \n's to end the headers)

I _think_ it sounds like you've already accomplished this.  The next step is
to read the data coming back from the cgi script and echo it to your php
output.  There are a few niggling things in my mind, such as a server
redirect possibly happening, so you would have to test the headers that came
back from the cgi script.  If it's a 200 OK message, then you can feel free
to just echo the html.  I think you could probably use fpassthru() or
something similar (although I think this is quite a resource hog for large
files, and you're probably best reading it line at a time
($reading=fread($socket_name, 4096); followed by an echo $reading; until the
end of the file).

Hope that helps!

Ross



-Original Message-
From: Rich Gray [mailto:[EMAIL PROTECTED]]
Sent: 11 July 2002 14:04
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Formless post question


I am doing a formless post to a CGI script on another site (PayPal). I am
doing this because the current site design has 2 different submit images on
a single form which need to post different data to the CGI script (after
registering the customer in the local database) dependent upon whcih image
gets clicked.

The PayPal CGI script has user interaction - the user has to login.

I am doing the formless post by using fsockopen() and fputs() to open the
http port and posting the data which seems to be working fine...and I
receive the raw http headers and html code when I read the open socket...
now for the $64m question - how can I emulate a normal form submit in
actually *loading* the page that is sent by the CGI script in the normal
fashion? If I don't read the data on the open socket then my script just
dies with no output...

Am I trying to do something very stupid here? :)

TIA
Rich


--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-WIN] Misbehaving Headers

2002-07-11 Thread R.S. Herhuth


I'm trying a trick I found on converting a report from generatated HTML
to an Excel spreadsheet.  Apparently there is a bug in MSIE that
requires that I use the following syntax to pass a link in order for the
headers to pick up on the fact that it is an Excel Spreadsheet that I'm after.

First page (test.html)


export to excel



Second page (excel_export.php) in the same directory as test.html:

 
header("Content-Type:  application/vnd.ms-excel"); 
header("Expires: 0"); 
header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); 

include "DBinfo.php"; 

$connect = mssql_connect($host,$user,$pass) or die ($host." not
accessible."); 
if ($DB) mssql_select_db($DB)or die('USE '.$DB.' failed!'); 

$query = "SELECT last_name, first_name, nickname, division, title, id
FROM individual WHERE last_name LIKE'A%'"; 
$result = mssql_query($query); 
$numRows = mssql_num_rows($result); 

echo""; 
for($i=0; $i<$numRows; $i++){   
echo ""; 
$row = mssql_fetch_array($result); 
echo " 
 
$row[last_name] 
$row[first_name] 
$row[division] 
$row[title] 
"; 
} 
echo ""; 

?>






The error I keep getting is:


page 1: 
export to excel 

page 2: 

"; 
for($i=0; $i<$numRows; $i++){   
echo ""; 
$row = mssql_fetch_array($result); 
echo " 
 
$row[last_name] 
$row[first_name] 
$row[division] 
$row[title] 
"; 
} 
echo ""; 

?> 


The error I keep getting is:

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



Am I doing something incorrectly?  

Ron

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-WIN] Re: Calling Windows DLL Files

2002-07-11 Thread Scott Hurring

As was said before, PHP cannot do anything on a different computer
than the script is running.  What might be the best option is to use
PHP for the web-enabled interface and database manipulation
and then create a simple VB/C++ microsoft GUI that would
simply scan the document in, upload it and fire up MSIE to the
webpage showing a list of "newly scanned documents".

Perhaps check out PHP-GTK for writing win32 GUI apps
with PHP.

--
Scott Hurring
Systems Programmer
EAC Corporation
scott (*) eac.com
--
"Todd Williamsen" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Luis,
>
> That is fine and dandy for anybody, but this needs to be idiot proof;
> meaning he has a bunch of girls maybe high school kids working there doing
> this stuff and if the wrong information goes into the wrong patients files
> he could get his ass in a sling legally.
>
> You are right, re-writing a scanning program is the wrong way of doing it,
> but there is a way to do an API call which would call the TWAIN32.dll file,
> Photoshop does it, and most imaging applications do as well.  Now, being
> able to tie in the scanning application with this application looks like the
> easy part, the hard part is getting those newly scanned files in a folder
> where they belong and being automatically tied into the patient's
> information is the hard part.
>
> I am thinking PHP isn't up to this task, and Visual Basic will be better
> suited, damn I hate saying that!
>
>
>
> "Luis Ferro" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Hi there,
> >
> > For a complex task as such, and without needing to "rewrite" the wheel
> > (that means write a new scanning program) i would use:
> >
> > a) a scanner that works in a networked environment and as the ability to
> > send the scannings to emails (i remmeber that the network scanners from
> > HP can do it - even if they are a bit weird to configure...)
> > b) create either a global mail drop box to send all scanned documents to
> > it or create a mail box for each patient...
> > c) write a much simpler pop3/imap program to handle the archiving needs
> > with a web interface...
> >
> > For scanning, the good doctor would only need to go to the scanner,
> > place the document and press a button... in the scanner
> >
> > For archiving, he would just go to the site and place the newly scanned
> > documents in the patient file...
> >
> > Cheers,
> > Luis Ferro
> > TelaDigital
> >
> > P.S.- warning... the HP net scanners are weird to configure as they
> > require a domain to "distribute" the scannings and have some limitations
> > with regard of the ip network settings of the scanning server and the ip
> > of the scanners by themselfs. They must reside in the same net mask...
> > which in large distributed networks is a no-no... apart from that, they
> > work very well...
> >
>
>
>



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-WIN] Re: Misbehaving Headers

2002-07-11 Thread Christoph Grottolo

In www.php.net/header you'll find notes about IE misbehaving with headers.

Christoph

R.S. Herhuth wrote:

> I'm trying a trick I found on converting a report from generatated
> HTML to an Excel spreadsheet.  Apparently there is a bug in MSIE that
> requires that I use the following syntax to pass a link in order for
> the headers to pick up on the fact that it is an Excel Spreadsheet
> that I'm after. 
> 
> 
> Am I doing something incorrectly?
> 
> Ron


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-WIN] Re: File Upload

2002-07-11 Thread Alexandr Polupanov

The file, which i'm uploading seems to appear in temp folder only when
upload is finished. So i can't track upload progress.
Help.



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-WIN] Trouble with my session variables

2002-07-11 Thread Matias

Hi there. I´m Matias from Argentina.
Here´s my problem.
I´m using latest php ver. under Win ME, w/ Apache
I can correctly start my sessions, register my variables, access them from another 
script than the one they are registered BUT when i "unregister" a variable or 
"destroy" a session an error message apears. It says that my path to php sessions is 
probably incorrect. But when i start the session for the first time it is well created 
in the right directory.
I would apreciate a lot if anyone could help me out.
Thanx.

 Matías P. Pereyra



php-windows Digest 12 Jul 2002 01:17:27 -0000 Issue 1236

2002-07-11 Thread php-windows-digest-help


php-windows Digest 12 Jul 2002 01:17:27 - Issue 1236

Topics (messages 14711 through 14721):

Re: Calling Windows DLL Files
14711 by: Todd Williamsen
14714 by: Dash McElroy
14718 by: Scott Hurring

XML with IIS
14712 by: Johannes Hiemer

Re: XML parser file
14713 by: Johannes Hiemer

Available PHP Whitepapers
14715 by: R.S. Herhuth

Re: Formless post question
14716 by: Ross Fleming

Misbehaving Headers
14717 by: R.S. Herhuth
14719 by: Christoph Grottolo

Re: File Upload
14720 by: Alexandr Polupanov

Trouble with my session variables
14721 by: Matias

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 ---

Luis,

That is fine and dandy for anybody, but this needs to be idiot proof;
meaning he has a bunch of girls maybe high school kids working there doing
this stuff and if the wrong information goes into the wrong patients files
he could get his ass in a sling legally.

You are right, re-writing a scanning program is the wrong way of doing it,
but there is a way to do an API call which would call the TWAIN32.dll file,
Photoshop does it, and most imaging applications do as well.  Now, being
able to tie in the scanning application with this application looks like the
easy part, the hard part is getting those newly scanned files in a folder
where they belong and being automatically tied into the patient's
information is the hard part.

I am thinking PHP isn't up to this task, and Visual Basic will be better
suited, damn I hate saying that!



"Luis Ferro" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi there,
>
> For a complex task as such, and without needing to "rewrite" the wheel
> (that means write a new scanning program) i would use:
>
> a) a scanner that works in a networked environment and as the ability to
> send the scannings to emails (i remmeber that the network scanners from
> HP can do it - even if they are a bit weird to configure...)
> b) create either a global mail drop box to send all scanned documents to
> it or create a mail box for each patient...
> c) write a much simpler pop3/imap program to handle the archiving needs
> with a web interface...
>
> For scanning, the good doctor would only need to go to the scanner,
> place the document and press a button... in the scanner
>
> For archiving, he would just go to the site and place the newly scanned
> documents in the patient file...
>
> Cheers,
> Luis Ferro
> TelaDigital
>
> P.S.- warning... the HP net scanners are weird to configure as they
> require a domain to "distribute" the scannings and have some limitations
> with regard of the ip network settings of the scanning server and the ip
> of the scanners by themselfs. They must reside in the same net mask...
> which in large distributed networks is a no-no... apart from that, they
> work very well...
>




--- End Message ---
--- Begin Message ---

I would think the only way to get the info automatically into the patient's
file is if you had some kind of seriously accurate OCR software that knew
where to look on the image and then used that for it's criteria of where to
go. Knowing that OCR is periodically unreliable... you won't want to do
that.

Realistically, _someone_ will have to tell the document where to go. You'll
also need to develop a process for auditing accuracy and other audits to
make sure that the info is in the right spot. Here's an idea:

1. The document needs some sort of identification, be it a cover page or a
sticky note in a strategic space
2. User scans document and tells it where to go (however you write this...)
and PHP puts it in that patient's database entry (assuming you're using a
database. You're using a database, right?).
3. At the end of the scanning, user audits their scanning to make sure all
is well
4. Periodically (i.e. weekly, monthly, whatever the doc decides), someone
does an audit to make sure that all the data is where it should be.

I've worked on a system like this, and while it was a bit of a pain
sometimes, the process is what makes the product usable. It _is_ a part of
the product.

Good luck (and don't say Visual Basic again :-> )

-Dash

-Original Message-
From: Todd Williamsen [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, July 11, 2002 6:11 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] Re: Calling Windows DLL Files


Luis,

That is fine and dandy for anybody, but this needs to be idiot proof;
meaning he has a bunch of girls maybe high school kids working there doing
this stuff and if the wrong information goes into the wrong patients files
he could get his ass in a sling legally.

You are right, re-writing a scanning program is the wrong way of doing it,
but there is

Re: [PHP-WIN] Re: File Upload

2002-07-11 Thread toby z

alex 


file, which i'm uploading seems to appear in
> temp folder only when
> upload is finished

copy($userfile, "c:/uploadz/" . $unique_id."-".
$userfile_name )

c:\uploads is my dir fo uploaded files

so u ve to specify the dir where u awnt ur uploads to
get saved


toby .

__
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-WIN] Single website Unix + Windows servers

2002-07-11 Thread olinux

I am working on integrating our current website to
apache/redhat/php/mysql

Due to a recent investment in an ASP project I must
have the windows / SQL server machine running this
application.

Any suggestions to keeping the site 'seamless' or
ideas that will help

Thank you,
olinux


--- Matt Parlane <[EMAIL PROTECTED]> wrote:
> Hi Brian...
> 
> I have it set up just like Robert, and I really
> think it's the way to go -
> having Apache as the web-accessible server gives me
> much more peace of mind
> than having IIS sitting out there just waiting to be
> attacked.
> 
> Do you realize you can have content served by IIS
> accessed without using the
> :8080 (or whatever) port number?
> I'm not sure if you're aware of this but here's the
> relevant parts of my
> httpd.conf:
> 
> NameVirtualHost *
> LoadModule proxy_module modules/mod_proxy.so
> LoadModule proxy_connect_module
> modules/mod_proxy_connect.so
> LoadModule proxy_http_module
> modules/mod_proxy_http.so
> 
> 
>  ServerName zevi.net
>  ServerAlias zevi.net www.zevi.net
>  ProxyRequests Off
>  ProxyPass / http://zevi.net:4040/
>  ProxyPassReverse / http://zevi.net:4040/
> 
> 
> 
>  ServerName newworkstudio.com
>  ServerAlias newworkstudio.com www.newworkstudio.com
>  DocumentRoot "C:/htdocs/newworkstudio.com"
>  DirectoryIndex index.html
> 
> 
> So, for each ASP site (or for each site served by
> IIS), just add a
> VirtualHost entry using the ProxyPass directive to
> send it to the IIS
> server.  The IIS server doesn't have to be on the
> same computer by the way -
> or even the same network...
> 
> Hope that helps.
> 
> Matt Parlane
> Zevi Interactive
> [EMAIL PROTECTED]
> 
> "Brian McGarvie" <[EMAIL PROTECTED]>
> wrote in message
>
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I will probably do this the other way round as we
> have a few sites...
> 
> so if i have a single file with a frame and point
> contents of frame to
> apache this should work?
> 
> > -Original Message-
> > From: Collins, Robert [mailto:[EMAIL PROTECTED]]
> > Sent: 09 July 2002 4:41 PM
> > To: Brian McGarvie; [EMAIL PROTECTED];
> > [EMAIL PROTECTED]
> > Subject: RE: [PHP] Dual Server...
> >
> >
> > I have Apache and  IIS coexisting on my intranet
> server and
> > the way I set
> > them up was to put each on a different port.
> (Apache serves
> > http://intranet
> > and IIS serves http://intranet:8080) this appears
> to work
> > fine. Hope this
> > helps
> >
> > Robert W. Collins II
> > Webmaster
> > New Orleans Regional Transit Authority
> > Phone : (504) 248-3826
> > Fax: (504) 248-3866
> > Email : [EMAIL PROTECTED]
> 
> >
> >
> >
> > -Original Message-
> > From: Brian McGarvie
> [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, July 09, 2002 10:39 AM
> > To: [EMAIL PROTECTED];
> [EMAIL PROTECTED]
> > Subject: [PHP] Dual Server...
> >
> >
> > OK following from my thread 'Browser Issues' I
> have found
> > that when serving
> > the site from apache, that the aforementioned
> errors go
> > away... mostly...
> >
> > OK so... What is the best way to setup so that
> IIS/Apache co-exist...
> >
> > I'd like to keep the 'entry' to the site on IIS as
> we have other sites
> > too... and use apache to serve the content of it.
> >
> > Any help mucho appreciated... also working to a
> deadline!
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit:
> http://www.php.net/unsub.php
> >
> >
> 
> 
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


__
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-WIN] Re: Closest store location by zip code

2002-07-11 Thread olinux

would you like to post it?

I think that there is also a class at
www.phpclasses.com

olinux

--- "R.S. Herhuth" <[EMAIL PROTECTED]>
wrote:
> 
> I actually found a free PERL script that uses a zip
> code database and
> the math to calculate the closest store (by zip
> code) to a user entered
> address.  I have converted it to work under php.  So
> thanks to all the
> idiots who felt it necessary to poke fun at me
> instead of trying to help.
> 
> Ron
> 
> Scott Hurring wrote:
> > 
> > Actually, a fine gentleman from Nigera the other
> day
> > emailed me the encrypted source code to just such
> > a script all i had to do was give him my bank
> > account information and let him transfer over
> > $25 million to me so i could afford some machines
> > to crack the encryption.  :-)
> > 
> > --
> > Scott Hurring
> > Systems Programmer
> > EAC Corporation
> > scott (*) eac.com
> > --
> > "Paul Roberts" <[EMAIL PROTECTED]> wrote in
> message
> > 007301c226bc$fda2d790$96eb86d9@laptop1">news:007301c226bc$fda2d790$96eb86d9@laptop1...
> > No but when you find it please post it here.
> > 
> > - Original Message -
> > From: "George Nicolae" <[EMAIL PROTECTED]>
> > To: <>
> > Sent: Monday, July 08, 2002 9:16 PM
> > Subject: [PHP-WIN] Re: Closest store location by
> zip code
> > 
> > Does any one know a php script that send to my
> account unlimited money?
> > 
> > --
> > 
> > Best regards,
> > George Nicolae
> > IT Manager
> > ___
> > PaginiWeb.com  - Professional Web Design
> > www.PaginiWeb.com
> > 
> > "R.S. Herhuth" <[EMAIL PROTECTED]>
> wrote in message
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > >
> > > Does any one know of a php script to calculate
> the closest store to a
> > > user entered zip code?
> > >
> > > Thanks,
> > > Ron
> > 
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit:
> http://www.php.net/unsub.php
> > 
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit:
> http://www.php.net/unsub.php
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


__
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-WIN] Re: Single website Unix + Windows servers

2002-07-11 Thread Matt Parlane

Try:
http://www.phpbuilder.com/columns/banahan20010720.php3

I'd also try setting up Apache on your windows box - on a different port if
you have to.  It just moves you one step closer to what it would be like
running on linux.

Matt

"Olinux" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I am working on integrating our current website to
> apache/redhat/php/mysql
>
> Due to a recent investment in an ASP project I must
> have the windows / SQL server machine running this
> application.
>
> Any suggestions to keeping the site 'seamless' or
> ideas that will help
>
> Thank you,
> olinux
>
>
> --- Matt Parlane <[EMAIL PROTECTED]> wrote:
> > Hi Brian...
> >
> > I have it set up just like Robert, and I really
> > think it's the way to go -
> > having Apache as the web-accessible server gives me
> > much more peace of mind
> > than having IIS sitting out there just waiting to be
> > attacked.
> >
> > Do you realize you can have content served by IIS
> > accessed without using the
> > :8080 (or whatever) port number?
> > I'm not sure if you're aware of this but here's the
> > relevant parts of my
> > httpd.conf:
> >
> > NameVirtualHost *
> > LoadModule proxy_module modules/mod_proxy.so
> > LoadModule proxy_connect_module
> > modules/mod_proxy_connect.so
> > LoadModule proxy_http_module
> > modules/mod_proxy_http.so
> >
> > 
> >  ServerName zevi.net
> >  ServerAlias zevi.net www.zevi.net
> >  ProxyRequests Off
> >  ProxyPass / http://zevi.net:4040/
> >  ProxyPassReverse / http://zevi.net:4040/
> > 
> >
> > 
> >  ServerName newworkstudio.com
> >  ServerAlias newworkstudio.com www.newworkstudio.com
> >  DocumentRoot "C:/htdocs/newworkstudio.com"
> >  DirectoryIndex index.html
> > 
> >
> > So, for each ASP site (or for each site served by
> > IIS), just add a
> > VirtualHost entry using the ProxyPass directive to
> > send it to the IIS
> > server.  The IIS server doesn't have to be on the
> > same computer by the way -
> > or even the same network...
> >
> > Hope that helps.
> >
> > Matt Parlane
> > Zevi Interactive
> > [EMAIL PROTECTED]
> >
> > "Brian McGarvie" <[EMAIL PROTECTED]>
> > wrote in message
> >
>
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > I will probably do this the other way round as we
> > have a few sites...
> >
> > so if i have a single file with a frame and point
> > contents of frame to
> > apache this should work?
> >
> > > -Original Message-
> > > From: Collins, Robert [mailto:[EMAIL PROTECTED]]
> > > Sent: 09 July 2002 4:41 PM
> > > To: Brian McGarvie; [EMAIL PROTECTED];
> > > [EMAIL PROTECTED]
> > > Subject: RE: [PHP] Dual Server...
> > >
> > >
> > > I have Apache and  IIS coexisting on my intranet
> > server and
> > > the way I set
> > > them up was to put each on a different port.
> > (Apache serves
> > > http://intranet
> > > and IIS serves http://intranet:8080) this appears
> > to work
> > > fine. Hope this
> > > helps
> > >
> > > Robert W. Collins II
> > > Webmaster
> > > New Orleans Regional Transit Authority
> > > Phone : (504) 248-3826
> > > Fax: (504) 248-3866
> > > Email : [EMAIL PROTECTED]
> > 
> > >
> > >
> > >
> > > -Original Message-
> > > From: Brian McGarvie
> > [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, July 09, 2002 10:39 AM
> > > To: [EMAIL PROTECTED];
> > [EMAIL PROTECTED]
> > > Subject: [PHP] Dual Server...
> > >
> > >
> > > OK following from my thread 'Browser Issues' I
> > have found
> > > that when serving
> > > the site from apache, that the aforementioned
> > errors go
> > > away... mostly...
> > >
> > > OK so... What is the best way to setup so that
> > IIS/Apache co-exist...
> > >
> > > I'd like to keep the 'entry' to the site on IIS as
> > we have other sites
> > > too... and use apache to serve the content of it.
> > >
> > > Any help mucho appreciated... also working to a
> > deadline!
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit:
> > http://www.php.net/unsub.php
> > >
> > >
> >
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>
> __
> Do You Yahoo!?
> Sign up for SBC Yahoo! Dial - First Month Free
> http://sbc.yahoo.com



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php