php-windows Digest 30 Mar 2002 23:37:01 -0000 Issue 1070

Topics (messages 12841 through 12851):

fwrite
        12841 by: G-no / |{iller

Unable to load dynamic library
        12842 by: barry
        12843 by: Craig Morrison
        12845 by: Marcel Besancon
        12846 by: barry
        12847 by: Craig Morrison

PHP/Apache/MySQL Stability
        12844 by: Bob Sears

Stupid me
        12848 by: Bob Sears

Re: Parse error when using Javascript & php?
        12849 by: Steve

Website Login
        12850 by: RCAuction

generating imagemaps?
        12851 by: Mirko Ehlert

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 ---
How would I write to a regular .txt file? Im on Windows Xp with IIS
installed along with php. I wana make it so people type info into a form
txtbox then the txtbox info be written to the file sn.txt. (i'm also very
new to php)

// What I have.. (close but not good enough)

"<?php

$myfile = fopen("sn.txt","w");

print "The file $myfile should now be opened.";

print "<HR>";

$fp = fwrite($myfile,"test");

fclose($myfile);

?>"

--

-Alias:       |{iller
-Website: http://www.ai-syndicate.com
-AIM:        Prn2000Str
-Email:      [EMAIL PROTECTED]


--- End Message ---
--- Begin Message ---
Hi,

I am new to php and I am trying to get it work on my w2k.  After I've
enabled 2 extensions, php_gettext.dll and php_imap.dll, in the php.ini, I
always get the error PHP Warning: Unable to load dynamic library
'c:/php/php_gettext.dll'   I am using the exe version of php.  I have the
following queries,

- Should I use c:\ or c:/ in php.ini?
- Is isapi version of php work on w2k?  I can't get it work!
- How do I solve the library problem?

Thank you very much.
Barry


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

Make sure the \php\dlls directory is in your PATH.

barry wrote:
> 
> Hi,
> 
> I am new to php and I am trying to get it work on my w2k.  After I've
> enabled 2 extensions, php_gettext.dll and php_imap.dll, in the php.ini, I
> always get the error PHP Warning: Unable to load dynamic library
> 'c:/php/php_gettext.dll'   I am using the exe version of php.  I have the
> following queries,
> 
> - Should I use c:\ or c:/ in php.ini?
> - Is isapi version of php work on w2k?  I can't get it work!
> - How do I solve the library problem?
> 
> Thank you very much.
> Barry
> 
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

-- 

Craig Morrison
  http://www.mtsprofessional.com/
  A Win32 Email server that works for you.
--- End Message ---
--- Begin Message ---
Hi,

> Make sure the \php\dlls directory is in your PATH.

    I had the same problem though all path-entries were correct. It seems
that some of the dll's are broken. I changed the given php_gd.dll for a
php_gd.dll that I downloaded form the net and see: It works !!!

Here are some links for downloading extensions:

http://129.123.109.76/chenxw/dataserver/php/php-4.0.6-Win32/extensions/
http://kromann.info/php4.php

I dont't know if they all work, but most of them do.

Good luck, Marcel

--
registered Fli4l-User #00000388


--- End Message ---
--- Begin Message ---
Hi,

I've tried both ways, i.e. include the dir in the path and replace the dll,
but same error.

I just discovered one thing, one of the extensions, php_imap.dll, seems to
be loaded sucessufully. The error only seems to happend for php_gettext.dll
only.
PHP Warning: Unable to load dynamic library
'c:/php/extensions/gnu_gettext.dll' - 找不到指定的模組。 in Unknown on line
0

Barry




"Marcel Besancon" <[EMAIL PROTECTED]> 撰寫於郵件
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> > Make sure the \php\dlls directory is in your PATH.
>
>     I had the same problem though all path-entries were correct. It seems
> that some of the dll's are broken. I changed the given php_gd.dll for a
> php_gd.dll that I downloaded form the net and see: It works !!!
>
> Here are some links for downloading extensions:
>
> http://129.123.109.76/chenxw/dataserver/php/php-4.0.6-Win32/extensions/
> http://kromann.info/php4.php
>
> I dont't know if they all work, but most of them do.
>
> Good luck, Marcel
>
> --
> registered Fli4l-User #00000388
>
>


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

barry wrote:
> 
> be loaded sucessufully. The error only seems to happend for php_gettext.dll
> only.
> PHP Warning: Unable to load dynamic library
> 'c:/php/extensions/gnu_gettext.dll' - 找不到指定的模組。 in Unknown on line
> 0

It is entirely possible that this extension was written for a version of PHP
prior to 4.1.0 and the net results of that is...

It won't work, unless you can find a newer version of the DLL that was written
for PHP 4.1.0 or greater.

-- 

Craig Morrison
  http://www.mtsprofessional.com/
  A Win32 Email server that works for you.
--- End Message ---
--- Begin Message ---

I was running Win98/PHP/MySQL with no problems. Now that I have upgraded to 
WinXP, all I am greeted with is a blank
screen. Is there a versioning problem? If so, what releases of MySQL and 
PHP are compatible with WinXP? Or, what
settings must be tweaked in each of the three which will allow it to 
function properly?

Bob

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

Folks, forget about the question of WinXP/Apache/MySQL/PHP. I found the 
problem ... my brain was not connected to anything.
I'm up and running again.

--- End Message ---
--- Begin Message ---
Try making a seperate page to display inside the Iframe and put your
News variable on that page.....also make sure you are testing on either
Netscape 6 or IE 4, 5, or 6 :)

Todd Williamsen wrote:
> 
> DOH!!  Thanks ross
> 
> Umm... Now I cannot get the value of $news to display in the IFRAME... I
> used value="<? Echo "$news"; ?>, that didn't work
> 
> Then I put
> 
> <? Echo "$news"; ?>  between the <iframe> tags, that didn't work either
> 
> Any suggestions?
> 
> -----Original Message-----
> From: Ross Fleming [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 29, 2002 1:05 PM
> To: Todd WIlliamsen; [EMAIL PROTECTED]
> Subject: RE: [PHP-WIN] Parse error when using Javascript & php?
> 
> while ($row = mysql_fetch_array($result)) {
> $id = $row['id'];
> $news = $row['news'];
> echo "$news";
> ?>
> 
> Spot the missing closing brace }
> 
> -----Original Message-----
> From: Todd WIlliamsen [mailto:[EMAIL PROTECTED]]
> Sent: 29 March 2002 18:31
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Parse error when using Javascript & php?
> 
> Parse error line 117... there is no line 117..hehe!!  I am thinking that
> PHP
> doesn't like IFrames, or Javascript, or maybe just me?
> 
> Here is the code:
> 
> <html>
> <head>
> <title>Untitled Document</title>
> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
> 
> </head>
> <STYLE>
>   BODY {margin: 0pt; padding: 0pt; border: none}
>   IFRAME {width: 100%; height: 100%; border: none}
> </STYLE>
> <SCRIPT>
> // Default format is WYSIWYG HTML
> var format="HTML"
> 
> // Set the focus to the editor
> function setFocus() {
>  textEdit.focus()
> }
> 
> // Execute a command against the editor
> // At minimum one argument is required. Some commands
> // require a second optional argument:
> // eg., ("formatblock","<H1>") to make an H1
> 
> function execCommand(command) {
> textEdit.focus()
>  if (format=="HTML") {
>   var edit = textEdit.document.selection.createRange()
>   if (arguments[1]==null)
>    edit.execCommand(command)
>   else
>    edit.execCommand(command,false, arguments[1])
>   edit.select()
>   textEdit.focus()
>  }
> }
> 
> // Selects all the text in the editor
> function selectAllText(){
> 
> var edit = textEdit.document;
> 
> edit.execCommand('SelectAll');
> textEdit.focus();
> 
> }
> 
> function newDocument() {
>  textEdit.document.open()
>  textEdit.document.write("")
>  textEdit.document.close()
>  textEdit.focus()
> }
> 
> function loadDoc(htmlString) {
>  textEdit.document.open()
>  textEdit.document.write(htmlString)
>  textEdit.document.close()
> }
> // Initialize the editor with an empty document
> function initEditor() {
>  var htmlString = parent.document.all.EditorValue.value;
>  textEdit.document.designMode="On"
>  textEdit.document.open()
>  textEdit.document.write(htmlString)
>  textEdit.document.close()
>  textEdit.focus()
> }
> 
> // Swap between WYSIWYG mode and raw HTML mode
> function swapModes() {
>  if (format=="HTML") {
>   textEdit.document.body.innerText = textEdit.document.body.innerHTML
>   textEdit.document.body.style.fontFamily = "monospace"
>   textEdit.document.body.style.fontSize = "10pt"
>   format="Text"
>   }
>  else {
>      textEdit.document.body.innerHTML = textEdit.document.body.innerText
>      textEdit.document.body.style.fontFamily = ""
>      textEdit.document.body.style.fontSize =""
>      format="HTML"
>   }
>  // textEdit.focus()
>  var s = textEdit.document.body.createTextRange()
>  s.collapse(false)
>  s.select()
> }
> 
> window.onload = initEditor
> 
> </SCRIPT>
> <!-- Turn off the outer body scrollbars. The IFRAME editbox will display
> its
>      own scrollbars when necessary -->
> <BODY SCROLL=No>
> 
> <IFRAME ID=textEdit>
> <?
> include "variables.php";
> $connection = @mysql_connect("$dbserver", "$dbuser", "$dbpass") or
> die("Couldn't connect to database");
> $db = @mysql_select_db($dbname, $connection) or die("Could not select
> datababse");
> $sql = "SELECT id, news FROM $editortable ORDER BY id";
> $result = @mysql_query($sql,$connection) or die("Could not execute
> query");
> while ($row = mysql_fetch_array($result)) {
> $id = $row['id'];
> $news = $row['news'];
> echo "$news";
> ?>
> </IFRAME>
> <script>
> textEdit.focus();
> </script>
> 
> </body>
> </html>
> 
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Running win 2000 server with IIS
PHP as cgi
When going to the site, users are asked
for a username and password even though it
is setup for anonomous access.
It works fine with html pages.
Seems like the php.exe is causing the permission problem.



--- End Message ---
--- Begin Message ---
hi!

I want to write a php script wich shows the user a large picture showing a
lattice. every field of this lattice should be "clickable" & every field
should have his own link. is this possible (generating an imagemap e.g.?)

any litte hint will help me
thx in advance

cu
mirko


--- End Message ---

Reply via email to