php-windows Digest 18 Mar 2001 22:07:35 -0000 Issue 498

Topics (messages 6118 through 6122):

Using Java extension with IIS5 has problem
        6118 by: Kick

Problem with php4 and PWS
        6119 by: John

Need help bad, select element of form using time
        6120 by: Zachary Harris
        6121 by: Alain Samoun

Re: explode!
        6122 by: Scott Bernard

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]


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


I install php4.04pl on Windows2000. My php.ini configured as below:

extension_dir = c:\php4.04\extensions
extension=php_java.dll

[Java]
java.class.path =
"C:\php4.04\extensions\php_java.jar;C:\jdk1.3\jre\lib\rt.jar"
java.home = c:\jdk1.3
java.library = C:\jdk1.3\jre\bin\hotspot\jvm.dll
java.library.path = "C:\php4.04\extensions\"

When I run following file:

<?
 $system= new Java("java.lang.System");
 print "Java version=".$system->getProperty("java.version")."<br>\n";
 print "Java vendor=".$system->getProperty("java.vendor")."<p>\n\n";
?>

I got error mesg:

Fatal error: Unable to load Java Library jvm.dll, error: can't find app need
with to run this program in E:\WebSites\test\java.php on line 2

What can I do?

Any help is welcome!

Eric







Dear all,

I have downloaded php4_0_4-win32 and tried to install it according to
the instructions in install.txt, which is found in the folder README.

After that, I tried to load a simple .php file with PWS but I get an
error message that says "One of the library files needed to run this
application cannot be found."

Can someone help me.


Thank you.




I have a project that a I am working on and have come across a major
snafu.  It is my first time using PHP for a project and I have been
asked for a form element wherein the user can select a time based on 15
minute increments for the next 6 hours.  Unfortunately, it doesn't seem
like the time parts of PHP are as robust as VBScript/ASP (don't hit me)
and this thing has me stumped.

Any and all help would be greatly appreciated.

Please email me at my address.





It's not too clear what you want to do, can you post a snippet of your code
where you have problems?
Alain

On Sun, Mar 18, 2001 at 12:46:00PM -0500, Zachary Harris wrote:
> I have a project that a I am working on and have come across a major
> snafu.  It is my first time using PHP for a project and I have been
> asked for a form element wherein the user can select a time based on 15
> minute increments for the next 6 hours.  Unfortunately, it doesn't seem
> like the time parts of PHP are as robust as VBScript/ASP (don't hit me)
> and this thing has me stumped.
> 
> Any and all help would be greatly appreciated.
> 
> Please email me at my address.
> 
> 
> -- 
> 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 hat you have a problem with the "/".
The path in the database is ok with the "/", but if you add that path, to
the local "c:\inet..." it will not work, because the "/" must be "\".
Why dont you put the field in a string variable and replace the "/" with "\"
?

Scotty.

-----Mensaje original-----
De: Bacon Luvva [mailto:[EMAIL PROTECTED]]
Enviado el: Sabado, 17 de Marzo de 2001 05:38 p.m.
Para: PHP
Asunto: [PHP-WIN] explode!


I have a news database. One of the fields in the database is a field
that describes the path to an image on the server.   ie:
../images/imagefile.gif

I  have a script that deletes news stories from the database and this is
where I am stuck.
Everything works okay when deleting the story but when it comes to the
deletion of the image file... no go.

I have used the unlink function

if  ( ! ($delimage=unlink($imagefield)))
{
DisplayErrMsg(sprint("internal error %d:%s\n",
mysql_errno(), mysql_error()));
exit();
}


The function fails with:

Warning: Unlink failed (No such file or directory) in
c:\Inetpub\wwwroot/news/admin/delete_news.php on line 24
internal error 0:

I know that the info in the database is a URL (../images/imagefile.gif)
and not an actual path.

Is there a way to strip the url back to the image name and replace it
with the path so the file can be removed?.

I have explored the possibilities of the explode function and believe
this is the function I need to use? (so far without much success!)
Thus I have come to you fine folk for some help on how I might do this.

Grateful for any pointers on this one,

Regards,

Karl.



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



Reply via email to