php-windows Digest 19 May 2001 06:55:04 -0000 Issue 606

Topics (messages 7735 through 7745):

Why i can't write to remote file ?
        7735 by: m.aprea
        7736 by: Darren
        7745 by: m.aprea

Re: extracting email addresses
        7737 by: Matei Mihai

Newbie advice :: Local User Groups are good
        7738 by: Dickerson, Monty

Re: MS Access + Linux + PHP
        7739 by: Tim Uckun

Loading CURL
        7740 by: Todd Cary
        7741 by: Steve Perrin'
        7744 by: Todd Cary

Any good editor for PHP in Windows?
        7742 by: news.php.net
        7743 by: Jason Wynia

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

I write a html page with a form with two parameter;
neckties (the unit-cost)  and the number of neckties, the action
associated to submit
is a PHP file "calculate.php" that writes to a remote file
"datafile.txt" as follows:

          :
          :
Total cost of the neckties  <?php   $result = $neckties * $number;
echo $result;
                                         $fp =
fopen("http://localhost/examples/datafile.txt","w";);
       if (!$fp) {
       echo "<p>Unable to open remote file for writing.\n";
       exit;}
        fputs($fp,$result);
         fclose($fp);
          echo "total";
          echo $result;
                                             ?>
          :
          :

When I call my html page and i give dates (e.g. 30 and 3) and click
submit, the file calculate.php
runs but i have the message:

Total cost of the neckties 90
Warning: fopen("http://localhost/examples/datafile.txt","w";) - No error
in c:\webshare\wwwroot\examples\calculate.php on line 11

Unable to open remote file for writing.

The line 11 is that contains fopen.

I have Win98, Apache 1.3.19, PHP4.

Where is the problem, inside Apache or inside PHP4. I think inside
Apache, but whewre into the httpd.conf file ??
Thank you in advance





"m.aprea" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi everyone,
>
> I write a html page with a form with two parameter;
> neckties (the unit-cost)  and the number of neckties, the action
> associated to submit
> is a PHP file "calculate.php" that writes to a remote file
> "datafile.txt" as follows:
>
>           :
>           :
> Total cost of the neckties  <?php   $result = $neckties * $number;
> echo $result;
>                                          $fp =
> fopen("http://localhost/examples/datafile.txt","w";);
>        if (!$fp) {
>        echo "<p>Unable to open remote file for writing.\n";
>        exit;}
>         fputs($fp,$result);
>          fclose($fp);
>           echo "total";
>           echo $result;
>                                              ?>
>           :
>           :
>
> When I call my html page and i give dates (e.g. 30 and 3) and click
> submit, the file calculate.php
> runs but i have the message:
>
> Total cost of the neckties 90
> Warning: fopen("http://localhost/examples/datafile.txt","w";) - No error
> in c:\webshare\wwwroot\examples\calculate.php on line 11
>
> Unable to open remote file for writing.
>
> The line 11 is that contains fopen.
>
> I have Win98, Apache 1.3.19, PHP4.
>
> Where is the problem, inside Apache or inside PHP4. I think inside
> Apache, but whewre into the httpd.conf file ??
> Thank you in advance
>
I am thinking thatyou don't have right access. Have you tried omitting the
http header"









Darren wrote:

> "m.aprea" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Hi everyone,
> >
> > I write a html page with a form with two parameter;
> > neckties (the unit-cost)  and the number of neckties, the action
> > associated to submit
> > is a PHP file "calculate.php" that writes to a remote file
> > "datafile.txt" as follows:
> >
> >           :
> >           :
> > Total cost of the neckties  <?php   $result = $neckties * $number;
> > echo $result;
> >                                          $fp =
> > fopen("http://localhost/examples/datafile.txt","w";);
> >        if (!$fp) {
> >        echo "<p>Unable to open remote file for writing.\n";
> >        exit;}
> >         fputs($fp,$result);
> >          fclose($fp);
> >           echo "total";
> >           echo $result;
> >                                              ?>
> >           :
> >           :
> >
> > When I call my html page and i give dates (e.g. 30 and 3) and click
> > submit, the file calculate.php
> > runs but i have the message:
> >
> > Total cost of the neckties 90
> > Warning: fopen("http://localhost/examples/datafile.txt","w";) - No error
> > in c:\webshare\wwwroot\examples\calculate.php on line 11
> >
> > Unable to open remote file for writing.
> >
> > The line 11 is that contains fopen.
> >
> > I have Win98, Apache 1.3.19, PHP4.
> >
> > Where is the problem, inside Apache or inside PHP4. I think inside
> > Apache, but whewre into the httpd.conf file ??
> > Thank you in advance
> >
> I am thinking thatyou don't have right access. Have you tried omitting the
> http header"
>
> --
> 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]

Hi Darren,

i  have tried omitting http, so the line 11 becomes :

$fp = fopen("c:/webshare/wwwwroot/examples/datafile.txt","w");

Is does not still work, and when i run it i have the warning message:

------------------------------------------------------------------
Total cost of the neckties 90
Warning: fopen("c:/webshare/wwwwroot/examples/datafile.txt","w") - No such
file or directory in c:\webshare\wwwroot\examples\calculate.php on line 11

Unable to open remote file for writing.
------------------------------------------------------------------


I don't understand where is the error ?

Thank you in advance









   I subscribe to Svensson opinion regarding Afan questions. I think that some of the 
people using this list should have a little more common sense. I am tired of those 
stupid repeating questions. When I became a member I was able to read all the problems 
posted, now I am thinking at unsubscribing because reading those questing became 
really exhausting. I had once a problem with the mail() function which now became a 
classical one, but before posting that problem on the list I searched the archives, 
and the annotated manual. So my advice to some of you would be : read the archives, 
consult the annotated manual (which is an wonderful resource), and only after that 
post your question to the list. In this way you will respect all the list's members 
(both active and passive) and their time resources. I think that the newbies don't 
have any reason to be discouraged, because considering Afan question he is not even a 
newbie :). 




> From: Matei Mihai [mailto:[EMAIL PROTECTED]]
>    I subscribe to Svensson opinion regarding Afan questions. 
> I think that some of the people using this list should have a 
> little more common sense. I am tired of those stupid 
> repeating questions. When I became a member I was able to 
> read all the problems posted, now I am thinking at 
> unsubscribing because reading those questing became really 
> exhausting. I had once a problem with the mail() function 
> which now became a classical one, but before posting that 
> problem on the list I searched the archives, and the 
> annotated manual. So my advice to some of you would be : read 
> the archives, consult the annotated manual (which is an 
> wonderful resource), and only after that post your question 
> to the list. In this way you will respect all the list's 
> members (both active and passive) and their time resources. I 
> think that the newbies don't have any reason to be 
> discouraged, because considering Afan question he is not even 
> a newbie :). 
> 

This is good advice.

Newbies: please join a local web guild or user group (or start one by
networking with people of similar interest or vocation) so that you can
tutor one another.  There wasn't one in my city so I *started* one and have
contributed way more than I get back from it; but I believe in
guilds/SIGs/user groups.  

Even if you live in Timbuk2, you can join a *virtual* user group; there are
communities of web developers to be found on USENET,
eGroups/groups.Yahoo.com, and many other places.

As we say in Texas, "cowboy up!" 
:)

Monty




At 10:53 AM 5/18/2001 +0200, you wrote:
>Hi there,
>cfg: linux, apache, php 4.04, MS Access
>is there any chance to get any data from access (php) on linux machine ?
>thank you for any help !!

I wrote an article about this.. It's here 
http://www.phpbuilder.com/columns/timuckun20001207.php3


:wq
Tim Uckun
Due Diligence Inc.  http://www.diligence.com/    Americas Background 
Investigation Expert.
If your company isn't doing background checks, maybe you haven't considered 
the risks of a bad hire.





My version of PHP is the pre-compiled Windows executable (4.0.5).  There
is a DLL, "php_curl.dll" that is in the extensions directory.  In the
PHP.INI I have

extension=php_curl.dll

like the other extension that I have specified (e.g.
php_interbase.dll).  The others load fine, but I get an error at startup
that it cannot *find* php_curl.dll.

What am I missing?

Todd

--
Todd Cary
Ariste Software
[EMAIL PROTECTED]






Hi Todd,

1: In 4.05 SSLEAY.DLL and LELEAY.DLL have a dependency for another DLL
titled MSVCR70.DLL which is a replacement for MSVCRT.DLL. It's not the curl
module itself, rather these later versions of ssleay and leleay that are
distributed with the binary.

2: So you have two choices, use the 4.04 SSLEAY and LELEAY dll's copying
into SYSTEM (W9x) or SYSTEM32 (NT+) or you could try copying MSVCRT.DLL to
MSVCR70.DLL. I suspect that the copy would work.

PS: You might try to get hold of DEPENDENCY WALKER 2, a freebie. A very good
tool, not sure where but a search should point you in the right direction.

For what it's worth I removed 4.05 and rolled back to 4.04, found a few
other things which did not behave correctly.

"Todd Cary" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> My version of PHP is the pre-compiled Windows executable (4.0.5).  There
> is a DLL, "php_curl.dll" that is in the extensions directory.  In the
> PHP.INI I have
>
> extension=php_curl.dll
>
> like the other extension that I have specified (e.g.
> php_interbase.dll).  The others load fine, but I get an error at startup
> that it cannot *find* php_curl.dll.
>
> What am I missing?
>
> Todd
>
> --
> Todd Cary
> Ariste Software
> [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]
>






Steve -

You have been a life saver!  Thanks to your detailed answer and implementing
Depwalker, I now have CURL installed.

Now to learn how to use it - but that seems rather straight forward.

Many, many thanks..........

Todd

--
Todd Cary
Ariste Software
[EMAIL PROTECTED]



Steve Perrin' wrote:

> Hi Todd,
>
> 1: In 4.05 SSLEAY.DLL and LELEAY.DLL have a dependency for another DLL
> titled MSVCR70.DLL which is a replacement for MSVCRT.DLL. It's not the curl
> module itself, rather these later versions of ssleay and leleay that are
> distributed with the binary.
>
> 2: So you have two choices, use the 4.04 SSLEAY and LELEAY dll's copying
> into SYSTEM (W9x) or SYSTEM32 (NT+) or you could try copying MSVCRT.DLL to
> MSVCR70.DLL. I suspect that the copy would work.
>
> PS: You might try to get hold of DEPENDENCY WALKER 2, a freebie. A very good
> tool, not sure where but a search should point you in the right direction.
>
> For what it's worth I removed 4.05 and rolled back to 4.04, found a few
> other things which did not behave correctly.
>
> "Todd Cary" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > My version of PHP is the pre-compiled Windows executable (4.0.5).  There
> > is a DLL, "php_curl.dll" that is in the extensions directory.  In the
> > PHP.INI I have
> >
> > extension=php_curl.dll
> >
> > like the other extension that I have specified (e.g.
> > php_interbase.dll).  The others load fine, but I get an error at startup
> > that it cannot *find* php_curl.dll.
> >
> > What am I missing?
> >
> > Todd
> >
> > --
> > Todd Cary
> > Ariste Software
> > [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]
> >
>
> --
> 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]





Hello,
  I wondering is they any good editor for PHP in windows, like Visual
Interdev for ASP

--
Thank you
Khaimun






http://www.phpide.de/

>   I wondering is they any good editor for PHP in windows, like Visual
> Interdev for ASP





Reply via email to