php-windows Digest 1 Oct 2002 07:53:38 -0000 Issue 1365

Topics (messages 16078 through 16089):

Re: String truncate problem of varchar when interfacing with a MS SQL server
        16078 by: konchim

Re: Any Squirrelmail users running on Windows NT 5 under IIS 5?
        16079 by: konchim

Re: porting to 4.2.3 - variable interpolation
        16080 by: konchim
        16081 by: Brian 'Bex' Huff

dynamic combo boxes
        16082 by: Tim Blackwell
        16083 by: Scott Carr
        16084 by: Vail, Warren

Re: error: loading extensions / php_xslt.dll on win32
        16085 by: Mark Johnson

fsockopen timeout not working
        16086 by: Scott Dowd

UNC document roots -- possible?
        16087 by: Rick Osborne

Re: Anyone know how to set IMAP
        16088 by: Uttam
        16089 by: Manuel Lemos

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 ---
maybe you set it to "BLOB"
can support more char.

"B.A.T. Svensson" <[EMAIL PROTECTED]>
???????:001701c26877$326ac450$[EMAIL PROTECTED]
> > I don't know how to work around this problem; is it possible that this
is a bug,
> > or that I have to run a certain command on the MS SQL before I fetch
that variable?
>
> No, its a settings problem for you: default column widths are set to 255
characters.
>
> > If so, which command would it be?
>
> It is for 99% dependent on your data communication/exchange protocol,
> which one are you using? ODBC? If so, check out these manual page:
>
> http://www.php.net/manual/en/function.odbc-longreadlen.php
> http://www.php.net/manual/en/function.odbc-field-len.php


--- End Message ---
--- Begin Message ---
It is your script problem
the script header must not have space!!
I meet this problem before

"R.S. Herhuth" <[EMAIL PROTECTED]>
???????:[EMAIL PROTECTED]
>
> I'm trying to get Squirrel Mail running under Windows NT 5 running IIS 5
> and I was wondering if someone might be able to give me a hand.
> Specifically I'm getting a ton of "Warning: Cannot add header
> information - headers already sent..." errors.  I was wondering if there
> is a setting (or settings) that I might need to send to get this thing
running.
>
> Thanks,
> Ron


--- End Message ---
--- Begin Message ---
Are you using XP?
I also use php 4.2.3 , have many problem
so i down grade to 4.2.2
i suggest you down grade,haha...

"Ignatius Reilly" <[EMAIL PROTECTED]>
???????:00a601c268a2$71f00060$[EMAIL PROTECTED]
> Hullo,
>
> After upgrading from 4.2.2 to 4.2.3, I met an annoying problem:
>
> I POST a form with fields budget_w1, budget_w2, ...
>
> $_POST['budget_w{$i}'] used to work, but does not anymore with 4.2.3:
> Notice: Use of undefined constant budget_w - assumed 'budget_w' in
> c:\apache\...
>
> Anybody can give me a hint?
>
> Merci!
>
> Ignatius
> ____________________________________________
>


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

A couple of ideas... the '' and "" string encapsulators do behave 
slightly differently in PHP, so you might want to try double quotes. 
Second, are you sure $i is being set? Third, you may need to do this:

$key = 'budget_w{$i}';
$value = $_POST['$key'];

be sure to echo the value for $key to make sure $i is what you think it 
should be.

-- 

Brian 'Bex' Huff
[EMAIL PROTECTED]
Phone: 952-903-2023
Fax: 952-829-5424

> Hullo,
> 
> After upgrading from 4.2.2 to 4.2.3, I met an annoying problem:
> 
> I POST a form with fields budget_w1, budget_w2, ...
> 
> $_POST['budget_w{$i}'] used to work, but does not anymore with 4.2.3:
> Notice: Use of undefined constant budget_w - assumed 'budget_w' in
> c:\apache\...
> 
> Anybody can give me a hint?
> 
> Merci!
> 
> Ignatius



--- End Message ---
--- Begin Message ---
hi--i'm having some trouble autoloading a combo box with a mysql column.
could someone help please

thanks,

tim


--- End Message ---
--- Begin Message ---
Sample Code:  
         $strRET .= "<select name=\"Script\">";
         $strRET .= "<option value=\"0\">Select Script:</option>";
         $dialscripts = $GLOBALS['db']->query("SELECT * FROM dialscripts WHERE
CO_ID=" . $_SESSION['CO_ID']);

         if (!DB::isError($dialscripts)) {
            while ($row = $dialscripts->fetchRow(DB_FETCHMODE_ASSOC)) {
               $strRET .= "<option value=\"" . $row['DSKey'] . "\"";
               if ($fldScript == $row['DSKey']) {
                  $strRET .= "selected";
               }
                
               $strRET .= ">" . $row['Script'] . "</option>\n"; 
                  
            }
         }

         $strRET .= "</select>";

-- 
Scott Carr
OpenOffice.org
Documentation Maintainer
http://documentation.openoffice.org/


Quoting Tim Blackwell <[EMAIL PROTECTED]>:

> hi--i'm having some trouble autoloading a combo box with a mysql column.
> could someone help please
> 
> thanks,
> 
> tim
> 
> 
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 


-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/
--- End Message ---
--- Begin Message ---

I'd recommend you do a view source on your finished page and make sure one
to the option tags has the SELECTED parameter and troubleshoot from there.

good luck,

Warren Vail
Tools, Metrics & Quality Processes

-----Original Message-----
From: Tim Blackwell [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 2:01 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] dynamic combo boxes


hi--i'm having some trouble autoloading a combo box with a mysql column.
could someone help please

thanks,

tim



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
I still seem to be having a problem. When I run depends on my php_xslt.dll
it says:

  "At least one module has an unresolved import due to a missing export
function in an implicitly dependent module."

When I look, I see a call to _ecalloc from php4ts.dll that is marked with a
red icon.

I just downloaded the 4.2.3 version of PHP for windows and I'm using the
php4ts.dll that came with the installation.
I'm running W2K Advance Server...

I have gathered all the DLLs that I figured that should have, namely:

php_xslt.dll
sablot.dll
expat.dll
libexpat.dll
xmlparse.dll
xmltok.dll

Any clues as to why I would have a problem with the php4ts.dll?

"Marco Siegl" <[EMAIL PROTECTED]> wrote in message
news:007701c25bc1$1eab6540$2a01a8c0@source...
> Hi,
>
> after trying weird behaviour of php on my win32,
> i found a rersolution to the php_xslt.dll extension installting problem
> but not for using the xslt functions:
>
> first:
> in your php.ini, you have to write: extension_dir = c:/php/extensions
> no extra slashes, foward slashes, backward slashes, no "" or anything
else.
>
> second:
> copy the 4 following .dll's to your windows/system32 directory
> - php/php4ts.dll
> - php/extensions/php_xslt.dll
> - php/dlls/expat.dll
> - php/dlls/sablot.dll
>
> after that copying process, simply restart your apache webserver.
> (no full reboot is needed.)
>
> ... and now you'll see the xslt enabled flag in phpinfo()
>
> => you think it works, BUT...
> there is something wrong with sablotron or apache, because if you use the
> xslt_process() function, sablotron tries to read the foo.xslt from
Apaches'
> ServerRoot,
> (a local path, e.g.  "c:\program files\apache\apache group\foo.xslt")
> instead of reading it
> from Apaches' DocumentRoot - any suggestions?
>
> Ok, i tried using local path for reading the foo.xslt to process and
> sablotron replies
> with a "unknown encoding" error - the output file is empty, no log file is
> created
> while using the xslt_set_log() function. - again any suggestions?
>
> This strange behaviour - that there is at the moment no possible way to
> generate from
> xml and xslt using sablotron (php_xslt.dll) on win32 - forces me to look
for
> another possibility.
>
> Sad, but true ... the blending nightmare has to come to an end.
> PHP says, it offers your powerful xslt functions, but you can't use them.
>
> any help would be very appreciated,
> mailto: [EMAIL PROTECTED]
>
>
> ----- Original Message -----
> From: "Marco Siegl" <[EMAIL PROTECTED]>
> Newsgroups: php.general
> To: <[EMAIL PROTECTED]>
> Sent: Friday, September 13, 2002 4:05 AM
> Subject: error: loading extensions / php_xslt.dll on win32
>
>
> > hi there @php.net,
> > please, can you help me enabling the extensions in php?
> >
> > i tried for hours to accomplish the right settings, but it seems, the
> > solution is out
> > of reach. you'll find a mini screenshot of my error message so you'll
see
> > exactly
> > what i mean.
> >
> > machine details: php v4.2.3, apache v2.0.40., winXP
> >
> > php is installed in "c:\system\php\"
> > the 'extensiom_dir' in the php.ini  is "c:\system\php\extensions\"
> >
> > i only found little information about people having the same trouble,
and
> i
> > tried
> > copying the *.dll files from the php/dlls and php/extensions dir to
> > "c:windows,
> > c:\windows\system, c:\windows\system32" - but no effect.
> >
> > thank you in advance,
> > mailto [EMAIL PROTECTED]
> >
>
>


--- End Message ---
--- Begin Message ---
I have a PHP application that goes out an checks all our servers via
SNMP when requested. Trouble is, if the server is not available, the
fsockopen never times out and therefore never moves onto the next
server. I am running 4.2.3 on IIS (NT4). I read there was a bug with
previous versions, but I have just upgraded and still seems to be a
problem ......
 
$fp = fsockopen ($servername, 524, $errno, $errstr, 30);
         
    if (!$fp) {
     ........
    } 
    
    else {
     ........
    }
--- End Message ---
--- Begin Message ---
Heya, folks, I'm banging my head against a wall here, so any help would be 
great.  It's a bit long, but I'm hoping that this provides every last 
detail you might need to help me figure out what I'm doing wrong.

We have 3 servers at our office, in the following configuration:

     DEATHSTAR               TATOOINE                     HOTH
Win2K Web Server <---> Win2K File Server <-SMB-> RedHat 7.3 Web Server

On DEATHSTAR we're running ColdFusion MX, and I'm trying to get PHP 4.2.3 
up and running.  TATOOINE is a standard Win2K file server, with a share 
named DESIGN that has all of our web site content on it.  I can get to this 
share with Samba on HOTH (which is also running CFMX), where it is mounted 
as "/mojo/design".  The web servers are both mapped to the same share and 
directory (\\Tatooine\Design\intranet.mojointeractive.com\website) for 
their document root, for which the default page is a ColdFusion file 
(index.cfm):

     http://intra.mojointeractive.com/     [DEATHSTAR]
     http://hoth.mojointeractive.com/      [HOTH]

It've got an ultra-simple PHP test page in the root that simply shows its 
own source:

     http://hoth.mojointeractive.com/test.php

Obviously, this works fine on the Linux server which I guess means that my 
PHP install there worked.  However, as you can see when you try to access 
the same page from the Windows server, you get an error:

     http://intra.mojointeractive.com/test.php

     "Warning: Failed opening '\\Tatooine\Design
     \intranet.mojointeractive.com\website\test.php' for
     inclusion (include_path='.') in Unknown on line 0"

I saw this thread on MARC:

     http://marc.theaimsgroup.com/?l=php-windows&m=99793552726088&w=2

Which basically says that the solution is to run IIS as a domain user that 
has permissions on the remote machine.  Sounds right, since I basically 
have to do the same thing for the ColdFusion service to get it to work.  I 
used a domain user that I knew could access the share and set up all of the 
IIS services to logon as that user.  (It started throwing errors to just 
have the WWW service running as the user, and not the IIS Admin and FTP 
services, as well.)  Then I started getting a different error, this time 
not just for my PHP files, but also for my CF files:

     "A required privilege is not held by the client"

This page gave me an idea on how to fix it:

     http://support.softartisans.com/kb/viewfaqs.asp?product=SA-Admin

I needed to add the user to the list of users allowed to logon as a service 
and act as part of the operating system.  I was rather surprised that it 
let me start the services in the first place, but I gave it a shot.  Reboot 
to take effect, and reload the pages.  Still no go.  I note that this page 
tells me another step in the process:

     http://www.aspupload.com/manual_security.html

It says that I also have to set the IIS Application Protection option to 
LOW (which I had specifically set to HIGH because the install instructions 
told me to).  I tried that, and it got my CF pages working again, but I was 
back to the same "failed opening" error with PHP.

I've seen several solutions for getting UNC files to work with fopen(), but 
I can't seem to find any solutions for getting PHP to work with UNC 
document roots.  Can anyone help me on this?  Or at least give me a pointer?

Thanks,
-R


--- End Message ---
--- Begin Message ---
as far as i know, you can not use the mail function without a mail server in
windows.

by the way, whome you want to send mail w/o mail server i.e. another windows
user or linux user or anyone else??

regds,

-----Original Message-----
From: konchim [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 01, 2002 00:31
To: [EMAIL PROTECTED]
Subject: Re: Anyone know how to set IMAP


I can't use the mail function
I know how to send attachments and get mail in php
but i don't know how to set the function at windows and apache or php

"Manuel Lemos" <[EMAIL PROTECTED]>
???????:[EMAIL PROTECTED]
> Hello,
>
> On 09/29/2002 02:03 PM, Konchim wrote:
> > Anyone know how to set IMAP
> > I use WinXP apache Php4.0
> > where can i download a Dll for php IMAP?
>
> The IMAP extension comes with standard PHP distribution for Windows
and
> is in the extensions directory.
>
>
> > And How to set it use my SMTP Account?
> > I didn't have Email server can i use PHP's Mail Function?
>
> I do not know if you can configure that.
>
> Anyway, if you are looking for composing and sending MIME formatted
> messages with attachments, HTML with embedded images or text and HTML
> versions in the same message, you may want to look into this class
that
> provides that with plenty of explanatory examples:
>
> http://www.phpclasses.org/mimemessage
>
> --
>
> Regards,
> Manuel Lemos
>



--- End Message ---
--- Begin Message ---
Hello,

On 09/30/2002 04:01 PM, Konchim wrote:
> I can't use the mail function
> I know how to send attachments and get mail in php
> but i don't know how to set the function at windows and apache or php

The class that I mentioned has sub-classes that provide alternative 
methods to sending messages via  the mail() function, including sending 
via SMTP server which is more likely what you need to send messages in 
Windows. It can even send messages directly to recipients SMTP server 
which may be useful if you need to send urgent messages or if you do not 
have a SMTP server.

Regards,
Manuel Lemos


> "Manuel Lemos" <[EMAIL PROTECTED]>
> ???????:[EMAIL PROTECTED]
> 
>>Hello,
>>
>>On 09/29/2002 02:03 PM, Konchim wrote:
>>
>>>Anyone know how to set IMAP
>>>I use WinXP apache Php4.0
>>>where can i download a Dll for php IMAP?
>>
>>The IMAP extension comes with standard PHP distribution for Windows and
>>is in the extensions directory.
>>
>>
>>
>>>And How to set it use my SMTP Account?
>>>I didn't have Email server can i use PHP's Mail Function?
>>
>>I do not know if you can configure that.
>>
>>Anyway, if you are looking for composing and sending MIME formatted
>>messages with attachments, HTML with embedded images or text and HTML
>>versions in the same message, you may want to look into this class that
>>provides that with plenty of explanatory examples:
>>
>>http://www.phpclasses.org/mimemessage



-- 

Regards,
Manuel Lemos

--- End Message ---

Reply via email to