php-windows Digest 30 Mar 2001 00:13:15 -0000 Issue 517

Topics (messages 6366 through 6388):

Re: PHP and Filesystem - Solution
        6366 by: Fernando Madruga
        6367 by: Fernando Madruga

Re: PHP and Filesystem - Solution Fixed
        6368 by: Fernando Madruga

IMAP
        6369 by: Ben Cairns
        6375 by: Fernando Madruga

Coding Ping and Traceroute in PHP
        6370 by: Vinay

Insert query in Oracle database using php and COM
        6371 by: Julian

Javascript
        6372 by: Tom Mathews
        6373 by: Fernando Madruga
        6378 by: Michael Rudel

Re: windows COM object +PHP
        6374 by: Alain Samoun

Re: %V for strftime does not work under Windows NT
        6376 by: Herbert Groot Jebbink

Re: HELP!!! (PHP-WINDOWS98-APACHE)
        6377 by: Bhala

ob_gzhandler
        6379 by: Schulz, Evan

Extensions directory trouble for CURL and Sablotron
        6380 by: Justin Baird

PHP & IIS5 problem
        6381 by: anderzzo

Addition to previous post
        6382 by: Justin Baird
        6386 by: Pablo Vera

Problems with the Header function
        6383 by: Hugo Alexandre Almeida Soares Dias

array in Session-Vars?
        6384 by: Thomas Häger

PHP & IIS5
        6385 by: anderzzo

How do I know if my Apache is crushing or not?
        6387 by: Yasuo Ohgaki

Regular expression under PHP for Win? Missing?
        6388 by: Yasuo Ohgaki

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]


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


First, if you're trying to get just the name of a file in a url, use
basename().
Then remove stripslahes as it corrupts binary data.
This would result in the following code that I've *TESTED* with some image
urls
and modified to print a nicely formated progress; I've also renamed some
variables...

<?php
  $basepath = "d:\\lix"; // replace with your own path (DON'T END WITH
SLASHES!!)
  $flist    = fopen( "$basepath\\images.txt", "r" ) or die( "Unable to find
images.txt!\n" );
  while( !feof( $flist ) ) {
    $url = trim( fgets( $flist, 4096 ) );
// I don't know WHY you would want to compare $url to 'Navigation', but I've
kept it...
// If it's not needed, replace the 'if' line with the following one:
//    if ( $url ) { // ignore empty lines...
    if ( $url && $url != "Navigation" ) {
      $fn      = "$basepath\\images\\" . basename( $url );
      echo       "Copying $url\n     => $fn\n        ";
      $foutput = fopen( $fn,  "wb" );
      $fgrab   = fopen( $url, "rb" ); // "r" also seems to work...
      $kb = 0;
      while( !feof($fgrab) ) {
        $grabbed = fread( $fgrab, 1024 );
        $kb++;
        if ( ( $kb % 10 ) == 0 ) {
          echo "*"; // write an asterisk for every 10 KB grabbed...
        } else {
          echo "."; // write a dot for each KB grabbed...
        };
        fwrite( $foutput, $grabbed, strlen( $grabbed ) );
      };
      echo "\n"; // ready output for next url...
      fclose( $foutput );
      fclose( $fgrab   );
    };
  };
  fclose( $flist );
?>


-----Original Message-----
From: Thomas W. Badera [mailto:[EMAIL PROTECTED]]
Sent: quarta-feira, 28 de Março de 2001 17:20
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] PHP and Filesystem


Another question....

I've got a script that is supposed to read URLs out of a text file, open the
image at the URL, then copy it to the local computer.  The code follows:

<?php

$input = fopen("d:\\webs\\sportspotonline.com\\data\\images.txt", "r");
while (!feof($input)
{
 $buffer = trim(fgets($input, 4096));
 if ($buffer != "Navigation")
 {
  $fnArray = explode("/", $buffer);
  $fn = $fnArray[sizeof($fnArray)-1];
  $fn = "d:\\webs\\sportspotonline.com\\data\\images\\".$fn;
  $output = fopen($fn, "wb");
  $grab = fopen($buffer, "rb");
  while ($grabbed = fread($grab, 4096);)
  {
   $grabbed = stripslashes($grabbed);
   fwrite($output, $grabbed, strlen($grabbed));
  }
  fclose($output);
  fclose($grab);
 }
}
fclose($input);

?>

The images this saves are all corrupt.... openable, partially viewable, but
corrupt.  Any idea?

--TWB


---
Thomas W. Badera
WebTeam Manager
Clarkson University
< [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]




Some lines were wrapped on my previous msg; this one fixes that, so you can
simply copy/paste the block of code into a file...

Bye,
  Madruga

-----Original Message-----
From: Fernando Madruga [mailto:[EMAIL PROTECTED]]
Sent: quinta-feira, 29 de Março de 2001 13:34
To: Thomas W. Badera; [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] PHP and Filesystem - Solution


First, if you're trying to get just the name of a file in a url, use
basename().
Then remove stripslahes as it corrupts binary data.
This would result in the following code that I've *TESTED* with some image
urls and modified to print a nicely formated progress; I've also renamed
some variables...

<?php
  // replace with your own path (DON'T END WITH SLASHES!!)
  $basepath = "d:\\lix";
  $flist    = fopen( "$basepath\\images.txt", "r" )
              or die( "Unable to find images.txt!\n" );
  while( !feof( $flist ) ) {
    $url = trim( fgets( $flist, 4096 ) );
// I don't know WHY you would want to compare $url to 'Navigation', but I've
// kept it. If it's not needed, replace the 'if' line with the following:
//    if ( $url ) { // ignore empty lines...
    if ( $url && $url != "Navigation" ) {
      $fn      = "$basepath\\images\\" . basename( $url );
      echo       "Copying $url\n     => $fn\n        ";
      $foutput = fopen( $fn,  "wb" );
      $fgrab   = fopen( $url, "rb" ); // "r" also seems to work...
      $kb = 0;
      while( !feof($fgrab) ) {
        $grabbed = fread( $fgrab, 1024 );
        $kb++;
        if ( ( $kb % 10 ) == 0 ) {
          echo "*"; // write an asterisk for every 10 KB grabbed...
        } else {
          echo "."; // write a dot for each KB grabbed...
        };
        fwrite( $foutput, $grabbed, strlen( $grabbed ) );
      };
      echo "\n"; // ready output for next url...
      fclose( $foutput );
      fclose( $fgrab   );
    };
  };
  fclose( $flist );
?>


-----Original Message-----
From: Thomas W. Badera [mailto:[EMAIL PROTECTED]]
Sent: quarta-feira, 28 de Março de 2001 17:20
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] PHP and Filesystem


Another question....

I've got a script that is supposed to read URLs out of a text file, open the
image at the URL, then copy it to the local computer.  The code follows:

<?php

$input = fopen("d:\\webs\\sportspotonline.com\\data\\images.txt", "r");
while (!feof($input)
{
 $buffer = trim(fgets($input, 4096));
 if ($buffer != "Navigation")
 {
  $fnArray = explode("/", $buffer);
  $fn = $fnArray[sizeof($fnArray)-1];
  $fn = "d:\\webs\\sportspotonline.com\\data\\images\\".$fn;
  $output = fopen($fn, "wb");
  $grab = fopen($buffer, "rb");
  while ($grabbed = fread($grab, 4096);)
  {
   $grabbed = stripslashes($grabbed);
   fwrite($output, $grabbed, strlen($grabbed));
  }
  fclose($output);
  fclose($grab);
 }
}
fclose($input);

?>

The images this saves are all corrupt.... openable, partially viewable, but
corrupt.  Any idea?

--TWB


---
Thomas W. Badera
WebTeam Manager
Clarkson University
< [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]




You may want to add the following line just after '<?php' so as to set the
script execution timeout to one hour instead of the default 30 seconds...

  set_time_limit( 3600 ); // Set script timeout to 1 hour

HTH,
  Madruga

-----Original Message-----
From: Fernando Madruga [mailto:[EMAIL PROTECTED]]
Sent: quinta-feira, 29 de Março de 2001 13:39
To: Thomas W. Badera; [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] PHP and Filesystem - Solution


Some lines were wrapped on my previous msg; this one fixes that, so you can
simply copy/paste the block of code into a file...

Bye,
  Madruga

-----Original Message-----
From: Fernando Madruga [mailto:[EMAIL PROTECTED]]
Sent: quinta-feira, 29 de Março de 2001 13:34
To: Thomas W. Badera; [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] PHP and Filesystem - Solution


First, if you're trying to get just the name of a file in a url, use
basename().
Then remove stripslahes as it corrupts binary data.
This would result in the following code that I've *TESTED* with some image
urls and modified to print a nicely formated progress; I've also renamed
some variables...

<?php
  // replace with your own path (DON'T END WITH SLASHES!!)
  $basepath = "d:\\lix";
  $flist    = fopen( "$basepath\\images.txt", "r" )
              or die( "Unable to find images.txt!\n" );
  while( !feof( $flist ) ) {
    $url = trim( fgets( $flist, 4096 ) );
// I don't know WHY you would want to compare $url to 'Navigation', but I've
// kept it. If it's not needed, replace the 'if' line with the following:
//    if ( $url ) { // ignore empty lines...
    if ( $url && $url != "Navigation" ) {
      $fn      = "$basepath\\images\\" . basename( $url );
      echo       "Copying $url\n     => $fn\n        ";
      $foutput = fopen( $fn,  "wb" );
      $fgrab   = fopen( $url, "rb" ); // "r" also seems to work...
      $kb = 0;
      while( !feof($fgrab) ) {
        $grabbed = fread( $fgrab, 1024 );
        $kb++;
        if ( ( $kb % 10 ) == 0 ) {
          echo "*"; // write an asterisk for every 10 KB grabbed...
        } else {
          echo "."; // write a dot for each KB grabbed...
        };
        fwrite( $foutput, $grabbed, strlen( $grabbed ) );
      };
      echo "\n"; // ready output for next url...
      fclose( $foutput );
      fclose( $fgrab   );
    };
  };
  fclose( $flist );
?>


-----Original Message-----
From: Thomas W. Badera [mailto:[EMAIL PROTECTED]]
Sent: quarta-feira, 28 de Março de 2001 17:20
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] PHP and Filesystem


Another question....

I've got a script that is supposed to read URLs out of a text file, open the
image at the URL, then copy it to the local computer.  The code follows:

<?php

$input = fopen("d:\\webs\\sportspotonline.com\\data\\images.txt", "r");
while (!feof($input)
{
 $buffer = trim(fgets($input, 4096));
 if ($buffer != "Navigation")
 {
  $fnArray = explode("/", $buffer);
  $fn = $fnArray[sizeof($fnArray)-1];
  $fn = "d:\\webs\\sportspotonline.com\\data\\images\\".$fn;
  $output = fopen($fn, "wb");
  $grab = fopen($buffer, "rb");
  while ($grabbed = fread($grab, 4096);)
  {
   $grabbed = stripslashes($grabbed);
   fwrite($output, $grabbed, strlen($grabbed));
  }
  fclose($output);
  fclose($grab);
 }
}
fclose($input);

?>

The images this saves are all corrupt.... openable, partially viewable, but
corrupt.  Any idea?

--TWB


---
Thomas W. Badera
WebTeam Manager
Clarkson University
< [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]

-- 
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 am trying to check the number of new messages in an IMAP mailbox, I ma using 
this code but it doesn't seem to work, the username, password, host etc are 
correct, but still no cigar...any ideas?

Thanks

$mbox = imap_open("{your.imap.host}","username","password",OP_HALFOPEN)
      || die("can't connect: ".imap_last_error());
 
$status = imap_status($mbox,"{your.imap.host}INBOX",SA_ALL);
if($status) {
  print("Messages:   ". $status->messages   )."<br>\n";
  print("Recent:     ". $status->recent     )."<br>\n";
  print("Unseen:     ". $status->unseen     )."<br>\n";
  print("UIDnext:    ". $status->uidnext    )."<br>\n";
  print("UIDvalidity:". $status->uidvalidity)."<br>\n"; 
} else
  print "imap_status failed: ".imap_lasterror()."\n";
 
imap_close($mbox);


-- Ben Cairns - Head Of Technical Operations
intasept.COM
Tel: 01332 365333
Fax: 01332 346010
E-Mail: [EMAIL PROTECTED]
Web: http://www.intasept.com

"MAKING sense of
the INFORMATION
TECHNOLOGY age
@ WORK......"





I'v tried that piece of code on my exchange based imap and it failed; I then
tried it on my external, unix based, mail account and it worked perfectly,
after I used /pop3:110 after the server name, e.g.:
"{milu.ipn.pt/pop3:110}INBOX"...
Are you trying to use it with an MS Exchange Server?

Bye,
  Madruga

-----Original Message-----
From: Ben Cairns [mailto:[EMAIL PROTECTED]]
Sent: quinta-feira, 29 de Março de 2001 14:50
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] IMAP


I am trying to check the number of new messages in an IMAP mailbox, I ma
using 
this code but it doesn't seem to work, the username, password, host etc are 
correct, but still no cigar...any ideas?

Thanks

$mbox = imap_open("{your.imap.host}","username","password",OP_HALFOPEN)
      || die("can't connect: ".imap_last_error());
 
$status = imap_status($mbox,"{your.imap.host}INBOX",SA_ALL);
if($status) {
  print("Messages:   ". $status->messages   )."<br>\n";
  print("Recent:     ". $status->recent     )."<br>\n";
  print("Unseen:     ". $status->unseen     )."<br>\n";
  print("UIDnext:    ". $status->uidnext    )."<br>\n";
  print("UIDvalidity:". $status->uidvalidity)."<br>\n"; 
} else
  print "imap_status failed: ".imap_lasterror()."\n";
 
imap_close($mbox);


-- Ben Cairns - Head Of Technical Operations
intasept.COM
Tel: 01332 365333
Fax: 01332 346010
E-Mail: [EMAIL PROTECTED]
Web: http://www.intasept.com

"MAKING sense of
the INFORMATION
TECHNOLOGY age
@ WORK......"


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

  I am looking to make simple function that could show similar results as
Ping and Traceroute. I cannot execute these command thrrough exec methiod
cose i dont have thos function. SO i want to try it in different way. Can
anyone sugggest me as how to code that.

Waiting for reply.

Vinay






i did this :

  $oConn = new COM("ADODB.Connection");
  $oConn ->ConectionString = <<<<<<<<string>>>>>>>>  ;

  the next command works fine:

  $oConn->Execute( "insert into Paciente
(nid,nombre,Apell1,Apell2,Sexo,NHisto,FNac) values
(10042,'wfcwsfvwsvcsw','ewfrewfrew','dsfdsfsf','Hombre','121219',to_date('12
/1/1980','MM-DD-YYYY')) ");


  but if i execute this one the php fails with an error of memory:

  $oConn->Execute("insert into Peticion
(NID,NPet,NPac,Diagnostico,FPet,Medico,Servicio,FPetFin,nidPass,obsPet,obsIn
f,codSer,itt) values
(10060,'56',10040,3,to_date('29-03-2001','DD-MM-YYYY'),'Julian','urgencias
',to_date('12-1-2001','DD-MM-YYYY'),1,'oooo','ttt','urgencias ','vv')");



if i copy into a sql tool and execute it works fine!!!!.

Somebody knows why?

Regards






Before you shout at me, I know that this isn't the right place for this
question, but you're all always so helpful that I thought I'd ask anyway
(grovel grovel..)

I'm playing around with php and javascript again, passing variables from
one to the other. I've got stuck on something too basic to mention
though - I want to open a new window using the jscript window.open()
method, but when I pass in the URL, I also want to pass in a
querystring.
I've got this so far: -
function OpenANewWindow(IDent)
 {
 
msgWindow=window.open("ContentsWindow.php3?ID=IDent","displayWindow","menubar=no,width=500,height=300")

    }

The IDent that is passed into the funtion is an integer, and that bit is
fine, but how do I dereference it in the querystring so that what gets
passed to the new window is along the lines of  (say the value of IDent
is 6)
ContentsWindow.php3?ID=6

Thanks

Tom





Have you tried the string concatenation operator?
e.g.: 
 msgWindow=window.open( "ContentsWindow.php3?ID=" . IDent,
"displayWindow","menubar=no,width=500,height=300")

I don't know if it's '.' or '&' or whatever: just check your docs on
javascript and look for string concatenation.

HTH,
  Madruga

The IDent that is passed into the funtion is an integer, and that bit is
fine, but how do I dereference it in the querystring so that what gets
passed to the new window is along the lines of  (say the value of IDent
is 6)
ContentsWindow.php3?ID=6

Thanks

Tom





msgWindow=window.open("ContentsWindow.php3?ID="+IDent,"displayWindow","menubar=no,width=500,height=300")

Greetinx,
  Mike

> -----Original Message-----
> From: Tom Mathews [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 29, 2001 6:05 PM
> To: PHP Windows lista
> Subject: [PHP-WIN] Javascript
> 
> 
> Before you shout at me, I know that this isn't the right 
> place for this
> question, but you're all always so helpful that I thought I'd 
> ask anyway
> (grovel grovel..)
> 
> I'm playing around with php and javascript again, passing 
> variables from
> one to the other. I've got stuck on something too basic to mention
> though - I want to open a new window using the jscript window.open()
> method, but when I pass in the URL, I also want to pass in a
> querystring.
> I've got this so far: -
> function OpenANewWindow(IDent)
>  {
>  
> msgWindow=window.open("ContentsWindow.php3?ID=IDent","displayW
> indow","menubar=no,width=500,height=300")
> 
>     }
> 
> The IDent that is passed into the funtion is an integer, and 
> that bit is
> fine, but how do I dereference it in the querystring so that what gets
> passed to the new window is along the lines of  (say the 
> value of IDent
> is 6)
> ContentsWindow.php3?ID=6
> 
> Thanks
> 
> Tom
> 
> 




Try this tutorial, some say it's good ;)
http://www.phpbuilder.com/columns/alain20001003.php3

Alain
On Thu, Mar 29, 2001 at 12:38:28AM -0600, Glenn wrote:
> Hallo!
> 
> I have read the PHP manual but I can't get PHP load a COM object.
> Can anybody help me :-)
> 
> Best regards.
> //Glenn
> 
> _____________________________________________
> Free email with personality! Over 200 domains!
> http://www.MyOwnEmail.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]




Fernando Madruga wrote:

> <?
>   $curloc = setlocale( "LC_ALL", "" );
>   echo "Current Locale = $curloc\n";
> ?>

Current Locale = English_United States.1252 

As fas as I can see it is the Windows implementation, it works
on Linux, IRIX, AIX.

hgj

> 
> I believe it must be some implementation issue: I've tried all that and
> even tried an example from PHP's manual (under gmstrftime), where I
> added the %V:
> 
> <?
>   setlocale ('LC_TIME', 'en_US');
>   echo strftime ("*%V* %b %d %Y %H:%M:%S", mktime (20,0,0,12,31,98))."\n";
>   echo gmstrftime ("*%V* %b %d %Y %H:%M:%S", mktime (20,0,0,12,31,98))."\n";
> ?>
> 
> On my Windows 98 SE machine I get nothing with %V !!
> 
> HTH,
>   Madruga
> 
> -----Original Message-----
> From: Herbert Groot Jebbink [mailto:[EMAIL PROTECTED]]
> Sent: terça-feira, 27 de Março de 2001 7:45
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] %V for strftime does not work under Windows NT
> 
> Hi,
> 
> Whatever I do, I can't get the weeknumer with %V in strftime, %W does
> work, I'm using PHP 4.0.4pl1 under NT.
> 
> It works under IRIX and Linux (also PHP 4.0.4pl1)
> 
> Greetings, Herbert
> 
> <?php
> 
>   setlocale("LC_ALL", "english");
>   $week = strftime("%V",mktime());
>   echo "-$week-";
> 
>   setlocale ("LC_TIME", "");
>   $week = strftime("%V",mktime());
>   echo "-$week-";
> 
>   setlocale ("LC_TIME", "C");
>   $week = strftime("%V",mktime());
>   echo "-$week-";
> 
>   setlocale('LC_TIME', 'SWEDISH');
>   $week = strftime("%V",mktime());
>   echo "-$week-";
> 
> ?>
> 
> Greetings, Herbert
> 
> --
> 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]




I think my problem is that I am trying to run PHP not in CGI mode or what
ever....I think I need the php4apache.dll thing tho & for some resion I dont
have it. =\
<[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello again,
> Ok, I began thinking about your problem, and I think I remeber something
> about this, I was not able to do just "php" on the actions and aliases, I
had
> to do php4 for some reason.  but I loaded uup apache today and tried the
cgi
> version, and it worked, heres the following thats located in my httpd.conf
> file:
>
> (change D:/server/apps/php/ to your php location)
>
> ScriptAlias /php4/ "D:/server/apps/php/"
> Action application/x-httpd-php4 "/php4/php.exe"
> AddType application/x-httpd-php4 .php
>
>
> Hope this helps.
>
> ~Jeff
>






First off, has the issue with the big memory problem with ob_gzhandler in
4.0.4 been fixed in PL1? (There isn't a changelog for PL1)

Secondly, what level of compression does ob_gzhandler use by default (1-9)?
Is there any way to specify it?

Thanks,

Evan




I am running PHP 4.04 on IIS 4.0/NT 4 sp 4 as a CGI.  I am trying to run the
CURL, DOMXML, Java, PDF, and Sablotron extensions.  As of right now
everything but CURL and Sablotron work.  The .ini reads as follows

extension_dir = c:/php4/extensions/

I have tried

c:/php4/extensions
c:\php4\extensions
c:\php4\extensions\

I also have copied all the .dlls to both the winnt\system32 and \php4
directories and tried

c:\php4
c:\winnt\system32

I am really having trouble understanding why it is only these two extensions
that are failing to work.  Any help that you guys could give would be
greatly appreciated.






I've installed PHP on my Win2000 Server with IIS5
and it worked fine in a week until today!

All I get when I try to reach a .php page is, The page can't be found!
In the systemlog, it says that the WWW publishing service has been
unexpected ended.
(don't know the exact translation for that :)

Even not a simple "hello" script works!
Anyone knows why?






I tried changing a random .dll to php_sablot.dll.  The system loaded the
module but of course died when it realized that it was the wrong library.
When I switched back to the real php_sablot.dll it gave me the module cannot
be found error.  This is a completely unexplainable error in my eyes but I
hope someone out there can prove me wrong







Thursday, March 29, 2001, 2:44:45 PM, Justin wrote:

JB> I tried changing a random .dll to php_sablot.dll.  The system loaded the
JB> module but of course died when it realized that it was the wrong library.
JB> When I switched back to the real php_sablot.dll it gave me the module cannot
JB> be found error.  This is a completely unexplainable error in my eyes but I
JB> hope someone out there can prove me wrong

Did you copied the file "sablot.dll" from \PHP\dlls to your
Windows\System or WinNT\System32 directory ?  This is a support
.dll for php_sablot.dll.

Pablo







Hi there,

I'm using PHP with Windows 2k Adv. Server (IIS).

I'ma having a problem in some executions of the function Header. Sometimes
it returns me an error. I.E.
header("Location: alertas.php?erro=3&ti&tip=$tip"); 
exit;

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


Once more i say that this error only occurs sometimes and not always. I
don't send anykind of HTML before the Header function not even a blank
space.

As i'm having a co-worker with this problem too, and he isn't registered in
the ML (YET) in the reply add as a CC [EMAIL PROTECTED]

Thank you.


Hugo Dias
Web-programmer
MNI - Médicos na Internet
www.mni.pt
www.saudenainternet.pt
www.listamedica.com
MNI- Um mundo de médicos




Hi all,

i need to use an array in a session variable.
On a page i fill the Sessionvar :
    $HTTP_SESSION_VARS["xy"] []=$whatever
    (The var is registered with session_register("xy"))
I mean that the entry would made at the end of the array, is it not so?

But evrey time i proove the entries with count($HTTP_SESSION_VARS["xy"]) ,
there are only one entry.


Have somebody an idea?

Thank,

Thomas






I've installed PHP on my Win2000 Server with IIS5
and it worked fine in a week until today!

All I get when I try to reach a .php page is, The page can't be found!
In the systemlog, it says that the WWW publishing service has been
unexpected ended.
(don't know the exact translation for that :)

Even not a simple "hello" script works!
Anyone knows why?








Under UNIX, there will be core file and can use gdb what program creates core file. What about under Windows 2000? How do I know if my Apache is crushed or not? Thanks in advance. -- Yasuo Ohgaki



Hello all, I would like to know standard regular expression functions (ereg(), eregi(), etc) are missing in PHP for Windows? (I use PHP4.0.5RC1 from www.php4win.de) Thanks -- Yasuo Ohgaki

Reply via email to