php-install Digest 7 Apr 2002 00:56:33 -0000 Issue 779
Topics (messages 6566 through 6572):
Trouble with Install
6566 by: Eric Brophy
Re: Mail in HTML Format
6567 by: Jonathan Hilgeman
Re: Compiling with IMAP
6568 by: Andreas Sussitz
php-4.2.0RC2 compile and install problems
6569 by: Sebastian Wolfgarten
6572 by: Yasuo Ohgaki
PHP finding files based on the ? and a partial file name -- this could interest you
6570 by: Jeffrey_N_Dyke.Keane.com
PHP and PWS solved
6571 by: Distefano Felice
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 ---
Hello,
I am having trouble being able to access the extension dlls in Windows 2000
Server, with the newest version of PHP, running IIS, using the CGI binary
file php.exe. The problem I am having is I get a warning telling me that the
dlls cannot be found. I have tried to change the extension_dir link to where
the files reside but I still get the error.
I am trying to run the script:
<?php
$hostname = "66.17.18.92";
$username = "sa";
$password = "proto_solutions!";
$dbName = "Protosolutions";
MSSQL_CONNECT($hostname,$username,$password) or DIE("DATABASE FAILED
TO RESPOND.");
mssql_select_db($dbName) or DIE("Table unavailable");
$query = "SELECT * FROM users";
$result = MSSQL_QUERY($query);
$number = MSSQL_NUM_ROWS($result);
$i=0;
if ($number == 0) :
print "No data?";
elseif ($number > 0) :
print "Data:";
while ($i < $number) :
$fname = mssql_result($result,$i,"fname");
print $fname;
print "";
$i++;
endwhile;
endif;
?>
Can you please help me out?
Eric
Eric Brophy
Protosolutions.com
http://www.protosolutions.com
[EMAIL PROTECTED]
209-951-6924
--- End Message ---
--- Begin Message ---
Hi Salvador,
Here's an example of a big HTML mail with PHP (I took this from the
reference manual). You don't have to include things like additional
recipients, or the carbon-copy/blind-carbon-copy, if you don't need them.
those are all for just sending the e-mail to more people, and you can leave
out the code for them if you are only sending the e-mail to one person.
<?
// ======================================
// main recipient
// ======================================
$to = "Jorge <[EMAIL PROTECTED]>";
// ======================================
// additional recipients
// ======================================
$to .= " , ";
$to .= "Ernesto <[EMAIL PROTECTED]>";
$to .= " , ";
$to .= "Juan Pablo <[EMAIL PROTECTED]>";
// ======================================
// subject of email
// ======================================
$subject = "Hola!";
// ======================================
// HTML email message
// ======================================
$message = '
<html>
<body>
<b>Como estas?</b>
</body>
</html>
';
// ======================================
// this makes it into a HTML message
// ======================================
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
// ======================================
// sender of the e-mail (your info)
// ======================================
$headers .= "From: Salvador Gil <[EMAIL PROTECTED]>\r\n";
// ======================================
// carbon-copy and/or blind-carbon-copy
// ======================================
$headers .= "Cc: [EMAIL PROTECTED]\r\n";
$headers .= "Bcc: [EMAIL PROTECTED]\r\n";
// ======================================
// send the e-mail
// ======================================
mail($to, $subject, $message, $headers);
?>
-----Original Message-----
From: Salvador Gil [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 04, 2002 6:06 PM
To: [EMAIL PROTECTED]
Subject: [PHP-INST] Mail in HTML Format
Any body can help me?
I trying to send a mail in HTML Format, but I get it in text format.
--- End Message ---
--- Begin Message ---
no idea?
--
with kind regards
Andreas Sussitz
"Andreas Sussitz" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> hello everyone!
>
> I'm getting the following compile-errors when trying to do with imap.
>
> any solution or suggestion on http://www.php.net/manual/en/ref.imap.php
> didn't work for me :-(
>
> I'm using OpenBSD with c-client installed from the ports-library (tried
> compiling manual too, seems to work fine)
>
> any ideas?
>
> thanks,
> andreas
>
>
>
>
>
>
./configure --with-mysql --with-apxs=/usr/local/apache/current/bin/apxs --wi
> th-gettext --with-imap --with-kerberos --with-imap-ssl
>
>
> ..
> ..
> Making all in main
> /bin/sh /usr/local/src/httpd/php-4.1.2/libtool --silent --mode=compile
>
cc -I. -I/usr/local/src/httpd/php-4.1.2/main -I/usr/local/src/httpd/php-4.1
>
.2/main -I/usr/local/src/httpd/php-4.1.2 -I/usr/local/apache/1.3.24/include
> -I/usr/local/src/httpd/php-4.1.2/Zend -I/usr/local/include -I/usr/local/in
cl
>
ude/c-client -I/usr/local/src/httpd/php-4.1.2/ext/mysql/libmysql -I/usr/loca
>
l/src/httpd/php-4.1.2/ext/xml/expat -DMOD_SSL=208108 -DEAPI -DUSE_EXPAT -I/
> usr/local/src/httpd/php-4.1.2/TSRM -g -O2 -prefer-pic -c
> internal_functions.c
> In file included from internal_functions.c:33:
> /usr/local/src/httpd/php-4.1.2/ext/imap/php_imap.h:79: syntax error before
> `MAILSTREAM'
> /usr/local/src/httpd/php-4.1.2/ext/imap/php_imap.h:90: syntax error before
> `SIZEDTEXT'
> /usr/local/src/httpd/php-4.1.2/ext/imap/php_imap.h:97: syntax error before
> `SIZEDTEXT'
> /usr/local/src/httpd/php-4.1.2/ext/imap/php_imap.h:188: syntax error
before
> `STRINGLIST'
> *** Error code 1
>
> Stop in /usr/local/src/httpd/php-4.1.2/main.
> *** Error code 1
>
> Stop in /usr/local/src/httpd/php-4.1.2/main (line 37 of
> /usr/local/src/httpd/php-4.1.2/build/rules.mk).
> *** Error code 1
>
> Stop in /usr/local/src/httpd/php-4.1.2 (line 37 of
> /usr/local/src/httpd/php-4.1.2/build/rules.mk).
>
>
>
--- End Message ---
--- Begin Message ---
Hi,
I'm trying to install php 4.2.0RC2 on apache 2.0.32
but when I compile the software I get this error:
Making all in apache2filter
make[2]: Entering directory
`/home/sebastian/apachenew/php-4.2.0RC2/sapi/apache2filter'
make[3]: Entering directory
`/home/sebastian/apachenew/php-4.2.0RC2/sapi/apache2filter'
/bin/sh /home/sebastian/apachenew/php-4.2.0RC2/libtool --silent
--mode=compile gcc -I.
-I/home/sebastian/apachenew/php-4.2.0RC2/sapi/apache2filter
-I/home/sebastian/apachenew/php-4.2.0RC2/main
-I/home/sebastian/apachenew/php-4.2.0RC2 -I/usr/local/apache2/include
-I/home/sebastian/apachenew/php-4.2.0RC2/Zend -I/usr/local/include
-I/usr/local/include/freetype
-I/home/sebastian/apachenew/php-4.2.0RC2/ext/mysql/libmysql
-I/home/sebastian/apachenew/php-4.2.0RC2/ext/xml/expat -D_REENTRANT
-I/home/sebastian/apachenew/php-4.2.0RC2/TSRM -DTHREAD=1 -g -O2 -pthread
-DZTS -prefer-pic -c sapi_apache2.c
sapi_apache2.c: In function `php_apache_sapi_ub_write':
sapi_apache2.c:58: too few arguments to function `apr_brigade_create'
sapi_apache2.c:61: too few arguments to function
`apr_bucket_transient_create'
sapi_apache2.c: In function `php_apache_sapi_flush':
sapi_apache2.c:174: too few arguments to function `apr_brigade_create'
sapi_apache2.c:175: too few arguments to function
`apr_bucket_flush_create'
sapi_apache2.c: In function `php_input_filter':
sapi_apache2.c:257: too few arguments to function `apr_brigade_create'
sapi_apache2.c: In function `php_output_filter':
sapi_apache2.c:331: too few arguments to function `apr_brigade_create'
sapi_apache2.c:386: too few arguments to function
`apr_bucket_transient_create'
sapi_apache2.c:395: too few arguments to function
`apr_bucket_eos_create'
make[3]: *** [sapi_apache2.lo] Error 1
make[3]: Leaving directory
`/home/sebastian/apachenew/php-4.2.0RC2/sapi/apache2filter'
make[2]: *** [all-recursive] Error 1
How can I solve this?
Thanks and bye,
Sebastian
--- End Message ---
--- Begin Message ---
Check out CVS version (PHP_4_2_0 brach)
Get Apache 2.0.35. Then it should be fine.
--
Yasuo Ohgaki
Sebastian Wolfgarten wrote:
> Hi,
>
> I'm trying to install php 4.2.0RC2 on apache 2.0.32
> but when I compile the software I get this error:
>
> Making all in apache2filter
> make[2]: Entering directory
> `/home/sebastian/apachenew/php-4.2.0RC2/sapi/apache2filter'
> make[3]: Entering directory
> `/home/sebastian/apachenew/php-4.2.0RC2/sapi/apache2filter'
> /bin/sh /home/sebastian/apachenew/php-4.2.0RC2/libtool --silent
> --mode=compile gcc -I.
> -I/home/sebastian/apachenew/php-4.2.0RC2/sapi/apache2filter
> -I/home/sebastian/apachenew/php-4.2.0RC2/main
> -I/home/sebastian/apachenew/php-4.2.0RC2 -I/usr/local/apache2/include
> -I/home/sebastian/apachenew/php-4.2.0RC2/Zend -I/usr/local/include
> -I/usr/local/include/freetype
> -I/home/sebastian/apachenew/php-4.2.0RC2/ext/mysql/libmysql
> -I/home/sebastian/apachenew/php-4.2.0RC2/ext/xml/expat -D_REENTRANT
> -I/home/sebastian/apachenew/php-4.2.0RC2/TSRM -DTHREAD=1 -g -O2 -pthread
> -DZTS -prefer-pic -c sapi_apache2.c
> sapi_apache2.c: In function `php_apache_sapi_ub_write':
> sapi_apache2.c:58: too few arguments to function `apr_brigade_create'
> sapi_apache2.c:61: too few arguments to function
> `apr_bucket_transient_create'
> sapi_apache2.c: In function `php_apache_sapi_flush':
> sapi_apache2.c:174: too few arguments to function `apr_brigade_create'
> sapi_apache2.c:175: too few arguments to function
> `apr_bucket_flush_create'
> sapi_apache2.c: In function `php_input_filter':
> sapi_apache2.c:257: too few arguments to function `apr_brigade_create'
> sapi_apache2.c: In function `php_output_filter':
> sapi_apache2.c:331: too few arguments to function `apr_brigade_create'
> sapi_apache2.c:386: too few arguments to function
> `apr_bucket_transient_create'
> sapi_apache2.c:395: too few arguments to function
> `apr_bucket_eos_create'
> make[3]: *** [sapi_apache2.lo] Error 1
> make[3]: Leaving directory
> `/home/sebastian/apachenew/php-4.2.0RC2/sapi/apache2filter'
> make[2]: *** [all-recursive] Error 1
>
> How can I solve this?
>
> Thanks and bye,
> Sebastian
>
>
--- End Message ---
--- Begin Message ---
Hello
I have a bunch of sites that I build for my company, all running PHP.
Today a user accessed a page, accidentally mind you, by typing a ? followed
by a partial file name. Now, i can understand why. but this should not
happen. It does not happen on other webservers if the page is an .html
page, only if it is a .php page. Here are a little more of the specifics.
Sorry, i had to change the names to protect the innocent...or my company.
;)
there is a file in this folder called form_reg.php So the actual path is
http://webserver.com/folder/form_reg.php. They were able to access this
page by typing http://webserver.com/folder/?reg.php. They completely left
out the "form" and the "_" and still got the page...problem is that i am no
longer using this version of the form and just kept it in a folder off of
the webserver root, which i guess that I shouldn't do. They were able to
submit the form...which still worked fine, but sent the recipient
infomation that they did not need.
anywho... I wanted to pass this info out here, as this could happen with
any .php URL...and possibly get you in trouble with old versions of code
stored within the document root.
Sorry for the long message, but i thought this was interesting and worth
sharing
Jeff
--- End Message ---
--- Begin Message ---
Copy php4ts.dll and php4isapi.dll in c:\windows\system and reboot,
optionally you can copy all contents of "dlls" folder in c:\windows\system.
Notice: if you connect to database with ASP you will need to reboot to
connect with PHP and viceversa.
Good luck.
--- End Message ---