php-windows Digest 21 Apr 2004 03:02:47 -0000 Issue 2218

Topics (messages 23497 through 23504):

Mething of Tracing PHP Script on Windows
        23497 by: Stan Shaw

Problems compiling php_imap.dll with SSL-Support for Windows
        23498 by: Icwd.aol.com

Re: Can you receive email with php?
        23499 by: Brent
        23500 by: Justin Patrin

problems installing IMAP dll.
        23501 by: Brent
        23502 by: Brent

form textbox with search
        23503 by: Anthony Ritter
        23504 by: Brent

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 ---
I inherited a website script that is not functioning properly.  Is there a
PHP trace function of some type that will allow me to see the generated code
of the "if" statements and "variables"?
-- 
Regards,
Stan Shaw                              [EMAIL PROTECTED]
Phone: (413) 599-0399          Fax:   (413) 599-0421
Excell.Net Owner/Operator    http://www.Excell.Net/
928 Owners Club President    http://www.928OC.org/
928Racing.net Team Member http://www.928Racing.net/

"Liberty once lost is lost forever." - John Adams

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

I run into trouble compiling php_imap.dll with
SSL-Support for Windows from the standard
php_modules.dsw

Sources I tried are
php 4.3.6 and 4.3.4
imap-2001 and imap2001a
openssl-0.9.7d

OpenSSL and cclient.lib builds without problems.

Here the errors from the build process:
--------------------Konfiguration: imap - Win32
Release_TS--------------------
Kompilierung läuft...
php_imap.c
Linker-Vorgang läuft...
   Bibliothek Release_TS/php_imap.lib und Objekt Release_TS/php_imap.exp
wird erstellt
cclient.lib(utf8.obj) : error LNK2001: Nichtaufgeloestes externes Symbol
__pctype
cclient.lib(newsrc.obj) : error LNK2001: Nichtaufgeloestes externes Symbol
__pctype
cclient.lib(mbxnt.obj) : error LNK2001: Nichtaufgeloestes externes Symbol
__pctype
cclient.lib(imap4r1.obj) : error LNK2001: Nichtaufgeloestes externes Symbol
__pctype
cclient.lib(misc.obj) : error LNK2001: Nichtaufgeloestes externes Symbol
__pctype
cclient.lib(rfc822.obj) : error LNK2001: Nichtaufgeloestes externes Symbol
__pctype
cclient.lib(os_w2k.obj) : error LNK2001: Nichtaufgeloestes externes Symbol
__pctype
cclient.lib(mail.obj) : error LNK2001: Nichtaufgeloestes externes Symbol
__pctype
cclient.lib(mtxnt.obj) : error LNK2001: Nichtaufgeloestes externes Symbol
__pctype
cclient.lib(tenexnt.obj) : error LNK2001: Nichtaufgeloestes externes Symbol
__pctype
cclient.lib(utf8.obj) : error LNK2001: Nichtaufgeloestes externes Symbol
___mb_cur_max
cclient.lib(newsrc.obj) : error LNK2001: Nichtaufgeloestes externes Symbol
___mb_cur_max
cclient.lib(mbxnt.obj) : error LNK2001: Nichtaufgeloestes externes Symbol
___mb_cur_max
cclient.lib(imap4r1.obj) : error LNK2001: Nichtaufgeloestes externes Symbol
___mb_cur_max
cclient.lib(misc.obj) : error LNK2001: Nichtaufgeloestes externes Symbol
___mb_cur_max
cclient.lib(rfc822.obj) : error LNK2001: Nichtaufgeloestes externes Symbol
___mb_cur_max
cclient.lib(os_w2k.obj) : error LNK2001: Nichtaufgeloestes externes Symbol
___mb_cur_max
cclient.lib(mail.obj) : error LNK2001: Nichtaufgeloestes externes Symbol
___mb_cur_max
cclient.lib(mtxnt.obj) : error LNK2001: Nichtaufgeloestes externes Symbol
___mb_cur_max
cclient.lib(tenexnt.obj) : error LNK2001: Nichtaufgeloestes externes Symbol
___mb_cur_max
cclient.lib(os_w2k.obj) : error LNK2001: Nichtaufgeloestes externes Symbol
_daylight
OLDNAMES.lib(daylight.obj) : error LNK2001: Nichtaufgeloestes externes
Symbol _daylight
cclient.lib(os_w2k.obj) : error LNK2001: Nichtaufgeloestes externes Symbol
[EMAIL PROTECTED]
cclient.lib(os_w2k.obj) : error LNK2001: Nichtaufgeloestes externes Symbol
[EMAIL PROTECTED]
cclient.lib(os_w2k.obj) : error LNK2001: Nichtaufgeloestes externes Symbol
[EMAIL PROTECTED]
cclient.lib(os_w2k.obj) : error LNK2001: Nichtaufgeloestes externes Symbol
[EMAIL PROTECTED]
OLDNAMES.lib(daylight.obj) : error LNK2001: Nichtaufgeloestes externes
Symbol __daylight
..\..\Release_TS/php_imap.dll : fatal error LNK1120: 8 unaufgeloeste externe
Verweise
Fehler beim Ausführen von link.exe.

Build environment is MS Visual C++ 6.0
and Microsoft Platform SDK February 2003
(php itself compiled fine)

Any hints?

Thx,
Mathias

--- End Message ---
--- Begin Message ---
Thanks Ignatius,

I am trying to install the php_imap.dll extension onto my php server,
all I did was set the extensions_dir and then uncomment out the ; in front
of the
extension=php_imap.dll on my windows XP box which is a php and apache
server.
When I try and access it I get the error;

"Unknown():Unable to load dynamic library 'c:\php\extensions\php_imap.dll' -
The specified procedure could not be found."

Any ideas??
Thanks heaps,
Brent.



"Ignatius Reilly" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Have a look at the PHP IMAP functions.
>
> _________________________
> ----- Original Message -----
> From: "Brent" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, April 20, 2004 7:47 AM
> Subject: [PHP-WIN] Can you receive email with php?
>
>
> > Hi, just wondering if anyone knows of some plugin or class etc that will
> > allow
> > me to receive email from a mail server via pop3. i have looked at PHP
> mailer
> > but
> > that only seems to send emails.
> > Thanks,
> > Brent.
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >

--- End Message ---
--- Begin Message --- Brent wrote:

Hi, just wondering if anyone knows of some plugin or class etc that will
allow
me to receive email from a mail server via pop3. i have looked at PHP mailer
but
that only seems to send emails.
Thanks,
Brent.

http://pear.php.net/package/Mail_IMAP


--
paperCrane <Justin Patrin>

--- End Message ---
--- Begin Message ---
I am trying to install the php_imap.dll extension onto my php server,
all I did was set the extensions_dir and then uncomment out the ; in front
of the
extension=php_imap.dll on my windows XP box which is a php and apache
server.
When I try and access it I get the error;

"Unknown():Unable to load dynamic library 'c:\php\extensions\php_imap.dll' -
The specified procedure could not be found."

Any ideas??
Thanks heaps,
Brent.


--- End Message ---
--- Begin Message ---
Actually the error pops up in a notice window everytime php is used by the
looks of it.
ie. each time i open a php file on my server!!!

"Brent" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I am trying to install the php_imap.dll extension onto my php server,
> all I did was set the extensions_dir and then uncomment out the ; in front
> of the
> extension=php_imap.dll on my windows XP box which is a php and apache
> server.
> When I try and access it I get the error;
>
> "Unknown():Unable to load dynamic library
'c:\php\extensions\php_imap.dll' -
> The specified procedure could not be found."
>
> Any ideas??
> Thanks heaps,
> Brent.
>

--- End Message ---
--- Begin Message ---
Greets,
The following code snippet receives data from a textbox named searchtext if
the user types in a word.

It then tries to match that word from the mysql database using:

$searchtext = $_POST['searchtext'];
if ($searchtext != '') { // Some search text was specified
  $where .= " AND blurb LIKE '%$searchtext%'";
}

and adding on to the WHERE sql statement.

If the user clicks the submit _without_ inserting a word, the whole database
is output due to the basic select sql statement of:

$select = 'SELECT DISTINCT merch.ID, merch.blurb, merch.price';
$from   = ' FROM merch';
$where  = ' WHERE 1=1  ';

I am trying to work out a way to display a page that might say - "Please
enter a word" if the user fails to insert a word in the textbox.

Any help greatly appreciated.
TR
.................


<?php
$dbcnx = mysql_connect('localhost', 'root', 'mypass');
mysql_select_db('sitename');

// The basic SELECT statement
$select = 'SELECT DISTINCT merch.ID, merch.blurb, merch.price';
$from   = ' FROM merch';
$where  = ' WHERE 1=1  ';

$lid = $_REQUEST['lid'];
if ($lid != '') { // An lot is selected
  $where .= " AND lid='$lid'";
}

$searchtext = $_POST['searchtext'];
if ($searchtext != '') { // Some search text was specified
  $where .= " AND blurb LIKE '%$searchtext%'";
}
?>

<table border="1" align="center">
<tr><th>Click for
details</th><th>Description</th><th>Price</th><th>Edit</th><th>Delete</th><t
h>Photo</th></tr>

//etc.............

--- End Message ---
--- Begin Message ---
Perhaps you could test the string length using strlen() and then if 0 dont
issue
the SQL statement rather a msg to the user.
if((strlen($searchtext))>0){ issue sql }else{echo'enter a search string you
stupid user';},
or you could use java scripts to validate the form 1st.
brent


"Anthony Ritter" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Greets,
> The following code snippet receives data from a textbox named searchtext
if
> the user types in a word.
>
> It then tries to match that word from the mysql database using:
>
> $searchtext = $_POST['searchtext'];
> if ($searchtext != '') { // Some search text was specified
>   $where .= " AND blurb LIKE '%$searchtext%'";
> }
>
> and adding on to the WHERE sql statement.
>
> If the user clicks the submit _without_ inserting a word, the whole
database
> is output due to the basic select sql statement of:
>
> $select = 'SELECT DISTINCT merch.ID, merch.blurb, merch.price';
> $from   = ' FROM merch';
> $where  = ' WHERE 1=1  ';
>
> I am trying to work out a way to display a page that might say - "Please
> enter a word" if the user fails to insert a word in the textbox.
>
> Any help greatly appreciated.
> TR
> .................
>
>
> <?php
> $dbcnx = mysql_connect('localhost', 'root', 'mypass');
> mysql_select_db('sitename');
>
> // The basic SELECT statement
> $select = 'SELECT DISTINCT merch.ID, merch.blurb, merch.price';
> $from   = ' FROM merch';
> $where  = ' WHERE 1=1  ';
>
> $lid = $_REQUEST['lid'];
> if ($lid != '') { // An lot is selected
>   $where .= " AND lid='$lid'";
> }
>
> $searchtext = $_POST['searchtext'];
> if ($searchtext != '') { // Some search text was specified
>   $where .= " AND blurb LIKE '%$searchtext%'";
> }
> ?>
>
> <table border="1" align="center">
> <tr><th>Click for
>
details</th><th>Description</th><th>Price</th><th>Edit</th><th>Delete</th><t
> h>Photo</th></tr>
>
> //etc.............

--- End Message ---

Reply via email to