php-general Digest 13 Mar 2004 18:24:59 -0000 Issue 2644

Topics (messages 180316 through 180350):

Re: Apache Config: php_value "auto_prepend_file" & "auto_append_file"
        180316 by: electroteque
        180320 by: Rasmus Lerdorf

Re: Dumb
        180317 by: Burhan Khalid

variable passing
        180318 by: Martin S
        180319 by: Jason Davidson

Help w/Array Roadblock ( mental )
        180321 by: Joey
        180322 by: Robert Cummings

help for getimagesize
        180323 by: Norbert Pfeiffer
        180325 by: Richard Davey
        180330 by: Norbert Pfeiffer
        180331 by: Firman Wandayandi
        180333 by: Richard Davey
        180334 by: Richard Davey
        180337 by: Firman Wandayandi
        180339 by: Firman Wandayandi
        180342 by: Norbert Pfeiffer

Re: SMTP Authentication
        180324 by: Beauford
        180327 by: Elliot J. Balanza
        180329 by: Norbert Pfeiffer

PHP and Apache 2
        180326 by: trlists.clayst.com

Fetching apache directoryoptions
        180328 by: Simon Fredriksson

multipart/form-data and Array POST
        180332 by: Andy Lewis
        180335 by: Brian V Bonini
        180336 by: Raditha Dissanayake
        180338 by: Andy Lewis
        180340 by: Andy Lewis
        180341 by: Andy Lewis
        180344 by: Raditha Dissanayake

Create table .. script
        180343 by: Mike Mapsnac
        180347 by: Filip de Waard

Connect to MS-SQL 2000
        180345 by: edwardspl.ita.org.mo
        180348 by: Filip de Waard

Re: Installation of 4.3.4]
        180346 by: edwardspl.ita.org.mo

[PERL] Excel sheet reading
        180349 by: Sakitram

MySQL Writes Exception for PHP in License
        180350 by: Karl Timmermann

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've prob asked this before, when will it be possible to be able to use
Apache2 ? I assumed as you said before it was because it was the
"extensions" but are we saying now that libraries that php are compiled on
are too not thread safe ?


-----Original Message-----
From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]
Sent: Saturday, March 13, 2004 5:25 PM
To: Chris Wagner
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Apache Config: php_value "auto_prepend_file" &
"auto_append_file"


Yeah, probably a config leak in the Apache2 sapi module.  There is a
reason we don't suggest using PHP with Apache2 yet.  Use Apache1 and I bet
you won't have any problems.

-Rasmus

On Sat, 13 Mar 2004, Chris Wagner wrote:

> hi,
>
> i'm running a server with Fedora Core 1.  this is using Apache 2.0.48
> and PHP 4.3.4.
>
> i have my http server root at /var/www/html/.  i have some virtual hosts
> setup.
>
> i've just installed phpMyAdmin 2.5.6.  my problem lies within the
> auto_prepend_file and auto_append_file directives provided by PHP.  i
> have no default prepended or appended files, but have these directives
> set up for each virtual host.  so, the section of my httpd.conf file
> that takes care of this, looks like so:
>
> <Directory "/var/www/html/virtual_host1">
>   php_value auto_prepend_file /var/www/html/virtual_host1/header.php
>   php_value auto_append_file /var/www/html/virtual_host1/footer.php
> </Directory>
>
> <Directory "/var/www/html/virtual_host2">
>   php_value auto_prepend_file /var/www/html/virtual_host2/header.php
>   php_value auto_append_file /var/www/html/virtual_host2/footer.php
> </Directory>
>
>
> now, i have no header or footer defined for phpMyAdmin, which lies under
> /var/www/html/phpMyAdmin/.  but what happens, is that the header and
> footer from my 1st virtual host are randomly included, making phpMyAdmin
> look hideous, and often making it not work because it needs to place
> information in the HTML Header.  whether or not these files are included
> seems to be quite random, tho, as it does not happen all the time.  i
> could log into phpMyAdmin just fine, browse through a few tables, and
> then it will begin including the header and footer.  another thing i've
> noticed though, is that these files never get included in the Fedora
> Core Apache Test Page, which lies under /var/www/html/.
>
> i think this looks like a bug in either PHP or Apache...  any ideas?
>
> thanks!
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---
--- Begin Message ---
It's a chicken and egg problem.  Until enough people, especially core PHP
folks, start using Apache2 seriously, it is not going to have enough
experienced eyes fixing the various little niggly things like this.  In
this case it is unlikely to have anything to do with threading.  It's
probably simply a bug that none of us have seen before because we are not
using the server.  Then again, it could be a threading issue.  Until
someone takes a serious look at it we have no idea.

And this brings us to the core problem.  Debugging a complex threaded
system is difficult.  We don't have decent tools to help us and the pool
of developers available to us that can actually do this is smaller.  When
someone submits a bug that says something is broken in PHP under Apache2
we first need to know which OS we are dealing with.  Then which libc
version.  Then which extensions are enabled and which versions of the
3rd-party libraries we are dealing with.  And often we need to know
exactly how these 3rd-party libraries were compiled (compiler, compiler
version, compile-time flags).  This stuff can all be done of course, but
it is exponentially more difficult.

All this pretty much leaves us with only realistically being able to
guarantee that PHP will work with Apache2 when you use the prefork MPM
when we are talking about the general case of working across all operating
systems with all extensions.  There is no doubt that for a given OS, a
given libc and a given set of extensions and their correponding
3rd-party libraries Apache2+PHP can work very well.  But since we don't
know these combinations and we really want to make PHP useful across a
broad range of environments there is a big motivation to try to keep the
base architecture as simple as possible such that problems are transparent
and easy to fix with the relatively primitive debugging tools available to
us today.

So the current situation is that Apache2-prefork+PHP is a decent solution
but it hasn't been tested a whole lot.  And given that there are actually
very few feature benefits to moving from Apache1 to Apache2-prefork few
people are spending time battlehardening that combination.

My own personal belief which many people disagree with is that humans in
general are not smart enough to write threadsafe code on a large scale.
And furthermore, I do not believe it is something that should be done in
userspace at all.  The operating system should be in charge of most
efficiently scheduling when and where things should run.  And for all the
benefits that the threading-proponents will throw at you, there are quite
a few drawbacks as well.  Try benchmarking threaded malloc vs.
non-threaded malloc for example.  Heck, benchmark something linked against
libpthreads vs. not linked against it regardless of whether you are
explicitly calling any functions in it.  The results will probably
surprise you.  This little thread benchmark test program:
http://samba.org/ftp/unpacked/junkcode/thread_perf.c
can be used to have a look at just how much slower some very basic
operations are when run in a threaded environment.  And the more cpus you
throw in the machine the worse it scales.

Of course, some of this is being addressed in modern kernels.  The New
Posix Thread Library (NPTL) in the Linux 2.6 kernel does a much better job
when dealing with a lot of threads on SMP machines.  At the same time
however, the new O(1) scheduler in 2.6 also improves performance when
running with thousands of processes on an SMP machine.  Most people aren't
running bleeding edge kernels though.  Linux 2.4.x, FreeBSD 4.x, AIX 4.x
and many others do a piss-poor job of dealing with highly threaded apps,
especially on SMP boxes.

-Rasmus


On Sat, 13 Mar 2004, electroteque wrote:

> I've prob asked this before, when will it be possible to be able to use
> Apache2 ? I assumed as you said before it was because it was the
> "extensions" but are we saying now that libraries that php are compiled on
> are too not thread safe ?
>
>
> -----Original Message-----
> From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]
> Sent: Saturday, March 13, 2004 5:25 PM
> To: Chris Wagner
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] Apache Config: php_value "auto_prepend_file" &
> "auto_append_file"
>
>
> Yeah, probably a config leak in the Apache2 sapi module.  There is a
> reason we don't suggest using PHP with Apache2 yet.  Use Apache1 and I bet
> you won't have any problems.
>
> -Rasmus
>
> On Sat, 13 Mar 2004, Chris Wagner wrote:
>
> > hi,
> >
> > i'm running a server with Fedora Core 1.  this is using Apache 2.0.48
> > and PHP 4.3.4.
> >
> > i have my http server root at /var/www/html/.  i have some virtual hosts
> > setup.
> >
> > i've just installed phpMyAdmin 2.5.6.  my problem lies within the
> > auto_prepend_file and auto_append_file directives provided by PHP.  i
> > have no default prepended or appended files, but have these directives
> > set up for each virtual host.  so, the section of my httpd.conf file
> > that takes care of this, looks like so:
> >
> > <Directory "/var/www/html/virtual_host1">
> >   php_value auto_prepend_file /var/www/html/virtual_host1/header.php
> >   php_value auto_append_file /var/www/html/virtual_host1/footer.php
> > </Directory>
> >
> > <Directory "/var/www/html/virtual_host2">
> >   php_value auto_prepend_file /var/www/html/virtual_host2/header.php
> >   php_value auto_append_file /var/www/html/virtual_host2/footer.php
> > </Directory>
> >
> >
> > now, i have no header or footer defined for phpMyAdmin, which lies under
> > /var/www/html/phpMyAdmin/.  but what happens, is that the header and
> > footer from my 1st virtual host are randomly included, making phpMyAdmin
> > look hideous, and often making it not work because it needs to place
> > information in the HTML Header.  whether or not these files are included
> > seems to be quite random, tho, as it does not happen all the time.  i
> > could log into phpMyAdmin just fine, browse through a few tables, and
> > then it will begin including the header and footer.  another thing i've
> > noticed though, is that these files never get included in the Fedora
> > Core Apache Test Page, which lies under /var/www/html/.
> >
> > i think this looks like a bug in either PHP or Apache...  any ideas?
> >
> > thanks!
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

--- End Message ---
--- Begin Message --- PHP wrote:
Thanks, that is what I figured.

I really don't get rpm's, it seems you are stuck with whatever the packager
felt like putting in the rpm.
Want to add a library? Like zlib for example? then you have to re-compile it
yourself anyways.
They seem completely useless to me for anything but a very basic program
with no real compile options.

Well, you can always compile from source.


Or choose a distribution that doesn't use RPMs (like Debian, FreeBSD, Gentoo, et. al.)

[ trimmed the rest ]
--- End Message ---
--- Begin Message --- I have this in equip-lend-index.php and want to pass the variable $equipment back to the same page:

PRINT " <td valign=\"top\">Equipment: <form action=\"$USERPREFIX/equip-lend-index.php\" method=\"POST\" enctype=\"text/plain\">";
PRINT " <input type=\"radio\" name=\"equipment\" value=\"computer\" /> Computers";
PRINT " <input type=\"radio\" name=\"equipment\" value=\"phone\"/> Phones";
PRINT " <input name=\"Select\" value=\"select\" type=\"submit\" />";
PRINT " </form><br />";


Hitting Select (submit button) doesn't pass the value of $equipment back to the page. What am I doing wrong?

/M.
--- End Message ---
--- Begin Message ---
what is the code your using to try and retrieve the var.. are you using
$_REQUEST['equipment'];

jason
Martin S <[EMAIL PROTECTED]> wrote:
> 
> I have this in equip-lend-index.php and want to pass the variable 
> $equipment back to the same page:
> 
> PRINT "       <td valign=\"top\">Equipment: <form 
> action=\"$USERPREFIX/equip-lend-index.php\" method=\"POST\" 
> enctype=\"text/plain\">";
> PRINT "       <input type=\"radio\" name=\"equipment\" value=\"computer\" /> 
> Computers";
> PRINT "       <input type=\"radio\" name=\"equipment\" value=\"phone\"/> Phones";
> PRINT "       <input name=\"Select\" value=\"select\" type=\"submit\" />";
> PRINT "       </form><br />";
> 
> Hitting Select (submit button) doesn't pass the value of $equipment back 
> to the page. What am I doing wrong?
> 
> /M.
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

--- End Message ---
--- Begin Message ---
As you can see by the below code, I have tried many ways to store DB values
to a multi-dimensional array and then print them out.
The problem is I am missing something somewhere.
As you can see at the bottom of the code I created an array and printed the
entire content of the array, but getting it from DB to array and dumping it
has me lost some where.
 
Any help appreciated!!!!
 
J
 
 
 
<%
 
        $dbconn = mysql_pconnect("localhost", "joe", "thepassword");
        mysql_select_db("barfield", $dbconn);
 
$now=time();
        
 $query = "select * from articles where ( {$now} BETWEEN startdate AND
enddate)";

 
 $db_result = mysql_query($query, $dbconn);
 
$db_error  = mysql_error();
$db_rows   = mysql_num_rows($db_result);
 
while ($db_record < $db_rows) {
  
# -----
METHOD1---------------------------------------------------------------------
--------------------
#       $article_array[1]=mysql_result($db_result,$db_record,"articleid");
#      $article_array[2]=mysql_result($db_result,$db_record,"title");
 
# -----
METHOD2---------------------------------------------------------------------
--------------------
$article_array = array ( 
      array( "id" => mysql_result($db_result,$db_record,"articleid")),
      array( "title" => mysql_result($db_result,$db_record,"title"))
      );
print "Rec-" . $db_record . mysql_result($db_result,$db_record,"articleid")
. "--" . mysql_result($db_result,$db_record,"title") . "<br>";
print "ARec-" . $article_array[$db_record]['id']. "-" .
$article_array[$db_record]['title']  . "<br>";
$db_record++;
 
echo $db_record . " ". $article_array['id'] . " ".  $article_array['title']
. "<br>";
 
 }
 
echo "=====Old======================<br>";
for($i=0;$i<=count($article_array);$i++) {
  echo "Record Number = " . $i ." ";
echo "ID: " . $article_array[$i][0] . "----   Title: "
.$article_array[$i][1] . "<br>";
#        echo "<p><header URL-Frame='content'
URL='news/view_article.php?id=$article_array[$i][1]'><bullet-image><b>$artic
le_array[$i][2]</b></header>";
#        echo "<fullstory URL-Frame = 'content'
URL='news/view_article.php?id=$article_arra[$i][1]'>Full
story</fullstory></p>";
}
 
 
echo "=====New======================<br>";
for($i=0;$i<=count($article_array);$i++) {
print $article_array[$i]['id'];print ("##");print
$article_array[$i]['title'] . "<br>";
}
 
 
 

echo "=============The Below Works Perfect==============<br>";
 
$animals = array (
  array ( "name" => "Mike",
    "type" => "dog",
    "color" => "Blue",
    "age" => 7 ),
  array ( "name" => "Bob",
    "type" => "cat",
    "color" => "brown",
    "age" =>7 ),
  array ( "name" => "Joe",
    "type" => "squirrel",
    "color" => "green",
    "age" =>2 ),
  array ( "name" => "Jay",
    "type" => "cow",
    "color" => "pink",
    "age" => 5 )
     );
     
print $animals[0]["type"];print ("<br>");print $animals[0]["color"];
echo "===========================<br>";
 
for($i=0;$i<=count($animals);$i++) {
print $animals[$i]["type"];print ("---");print $animals[$i]["color"] .
"<br>";
}
 

%>

--- End Message ---
--- Begin Message ---
On Sat, 2004-03-13 at 04:35, Joey wrote:
> As you can see by the below code, I have tried many ways to store DB values
> to a multi-dimensional array and then print them out.
> The problem is I am missing something somewhere.
> As you can see at the bottom of the code I created an array and printed the
> entire content of the array, but getting it from DB to array and dumping it
> has me lost some where.
>  
> Any help appreciated!!!!

To help understand if your array building is wrong, or your attempt to
output the array. Try using

    print_r( $array );

To output the array to see it's structure. If you are viewing this in
your browser then it is better to do the following:

    echo '<pre>'."\n";
    print_r( $array );
    echo '</pre>'."\n";

Cheers,
Rob.
-- 
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for       |
| creating re-usable components quickly and easily.          |
`------------------------------------------------------------'

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

on a page the function getimagesize is supposed
to be applied on all possible formats.

Unfortunately I do not find anybody, who can
procure a sample for me for these three formats:
11 = JPX, 12 = JB2 and 13 = SWC.

People who would like to help me, here is the
output collecting main finds:
http://uris.npf/test/img/rally.jpg

Thank you for your work


m. b. G. Norbert
_____________________
normal:  02686-987103
Notruf:  0177-2363368
---------------------
e.o.m.

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

Saturday, March 13, 2004, 11:54:54 AM, you wrote:

NP> on a page the function getimagesize is supposed
NP> to be applied on all possible formats.

NP> Unfortunately I do not find anybody, who can
NP> procure a sample for me for these three formats:
NP> 11 = JPX, 12 = JB2 and 13 = SWC.

JPX and JB2 are JPEG-2000 File Formats. Not sure about SWC, but JPC is
a Jpeg2000 CodeStream.

You can download the excellent FREE XnView from www.xnview.com which
will load (and save) JPX and JB2 files (as well as hundreds of other
formats).

-- 
Best regards,
 Richard Davey
 http://www.phpcommunity.org/wiki/296.html

--- End Message ---
--- Begin Message ---
I'm sorry - bad reply ... :-(

Hi Richard,

unfortunately you err.
I use already XnView.
This program does not support the looked for formats.


m. b. G. Norbert
_____________________
normal:  02686-987103
Notruf:  0177-2363368
---------------------
e.o.m.

--- End Message ---
--- Begin Message ---
Hi Norbert, Hi Richard, Hi All,

Maybe you can use IrfanView, if still developed. :)
http://www.irfanview.com

I found JP2 converter only in it.

By the way I used XnView too, JP2 and JPEG-2000 converter err or need
registered. Have better idea cause I needed too or are someone know what?.

Regards,
    Firman

----- Original Message -----
From: "Norbert Pfeiffer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, March 13, 2004 10:13 PM
Subject: Re: [PHP] help for getimagesize


> I'm sorry - bad reply ... :-(
>
> Hi Richard,
>
> unfortunately you err.
> I use already XnView.
> This program does not support the looked for formats.
>
>
> m. b. G. Norbert
> _____________________
> normal:  02686-987103
> Notruf:  0177-2363368
> ---------------------
> e.o.m.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

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

Saturday, March 13, 2004, 3:13:10 PM, you wrote:

NP> I'm sorry - bad reply ... :-(

NP> Hi Richard,

NP> unfortunately you err.
NP> I use already XnView.
NP> This program does not support the looked for formats.

Yes, it does. Look harder.

-- 
Best regards,
 Richard Davey
 http://www.phpcommunity.org/wiki/296.html

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

Sunday, March 14, 2004, 3:33:16 PM, you wrote:

FW> By the way I used XnView too, JP2 and JPEG-2000 converter err or need
FW> registered. Have better idea cause I needed too or are someone know what?.

There is no difference between the free version and the registered
version at all. The only "difference" is that you are allowed to use
the registered version commercially.

I don't understand what the problem is. You load it up, you pick your
original image, you go to "Tools", "Convert", pick JP2 from the file
format list and it saves it. No errors at all. This is XnView 1.68.1
on Windows XP.

-- 
Best regards,
 Richard Davey
 http://www.phpcommunity.org/wiki/296.html

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

I right click the image in Browser Window and select Convert.., Select JP2
and click Go button. Then warning message appear "Contact your dealer", on
JPC too. XnView 1.68.1 on WinXP.

I don't know why?

Regards,
    Firman

----- Original Message -----
From: "Richard Davey" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, March 13, 2004 10:51 PM
Subject: Re[2]: [PHP] help for getimagesize


> Hello Firman,
>
> Sunday, March 14, 2004, 3:33:16 PM, you wrote:
>
> FW> By the way I used XnView too, JP2 and JPEG-2000 converter err or need
> FW> registered. Have better idea cause I needed too or are someone know
what?.
>
> There is no difference between the free version and the registered
> version at all. The only "difference" is that you are allowed to use
> the registered version commercially.
>
> I don't understand what the problem is. You load it up, you pick your
> original image, you go to "Tools", "Convert", pick JP2 from the file
> format list and it saves it. No errors at all. This is XnView 1.68.1
> on Windows XP.
>
> --
> Best regards,
>  Richard Davey
>  http://www.phpcommunity.org/wiki/296.html
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--- End Message ---
--- Begin Message ---
Ups, is not right place to discuss this...

Firman

----- Original Message ----- 
From: "Richard Davey" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, March 13, 2004 10:45 PM
Subject: Re[2]: [PHP] help for getimagesize


> Hello Norbert,
> 
> Saturday, March 13, 2004, 3:13:10 PM, you wrote:
> 
> NP> I'm sorry - bad reply ... :-(
> 
> NP> Hi Richard,
> 
> NP> unfortunately you err.
> NP> I use already XnView.
> NP> This program does not support the looked for formats.
> 
> Yes, it does. Look harder.
> 
> -- 
> Best regards,
>  Richard Davey
>  http://www.phpcommunity.org/wiki/296.html
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

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

I have a imagefile with    *.jp2 is type 10
you read harder ... ;-)

I search a imagefile with  *.jb2 is type 12
I search a imagefile with  *.jpx is type 11
I search a imagefile with  *.swc is type 13
also see http://de3.php.net/getimagesize

I have IrfanView, XnView and other progs ... :-((


m. b. G. Norbert
_____________________
normal:  02686-987103
Notruf:  0177-2363368
---------------------
e.o.m.

--- End Message ---
--- Begin Message ---
Thanks, I'll check them out..... 

-----Original Message-----
From: Manuel Lemos [mailto:[EMAIL PROTECTED] 
Sent: March 12, 2004 11:31 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: SMTP Authentication

Hello,

On 03/13/2004 12:54 AM, Beauford wrote:
> How would I set up PHP to use SMTP authentication when I send an 
> email. For example, in MS Outlook I have authentication set to use the 
> same settings as my incoming mail. I have searched around but haven't 
> found anything that deals with this.

The mail function does not support authentication. You may want to try this
class that comes with a wrapper function named smtp_mail(). It emulates the
mail() function but lets you specify the authentication
credentials:

http://www.phpclasses.org/mimemessage

You also need this:

http://www.phpclasses.org/smtpclass

-- 

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html

--
PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php

--- End Message ---
--- Begin Message ---
I still wonder, how your smtp server requires authentification even when
using the function internally. For my education please... does that means
that you are using a third party SMTP, meaning some SMTP outside your
server?

vamp

"Beauford" <[EMAIL PROTECTED]> escribió en el mensaje
news:[EMAIL PROTECTED]
> Thanks, I'll check them out.....
>
> -----Original Message-----
> From: Manuel Lemos [mailto:[EMAIL PROTECTED]
> Sent: March 12, 2004 11:31 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Re: SMTP Authentication
>
> Hello,
>
> On 03/13/2004 12:54 AM, Beauford wrote:
> > How would I set up PHP to use SMTP authentication when I send an
> > email. For example, in MS Outlook I have authentication set to use the
> > same settings as my incoming mail. I have searched around but haven't
> > found anything that deals with this.
>
> The mail function does not support authentication. You may want to try
this
> class that comes with a wrapper function named smtp_mail(). It emulates
the
> mail() function but lets you specify the authentication
> credentials:
>
> http://www.phpclasses.org/mimemessage
>
> You also need this:
>
> http://www.phpclasses.org/smtpclass
>
> -- 
>
> Regards,
> Manuel Lemos
>
> PHP Classes - Free ready to use OOP components written in PHP
> http://www.phpclasses.org/
>
> PHP Reviews - Reviews of PHP books and other products
> http://www.phpclasses.org/reviews/
>
> Metastorage - Data object relational mapping layer generator
> http://www.meta-language.net/metastorage.html
>
> --
> PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
> http://www.php.net/unsub.php

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

unfortunately you err.
I use already XnView.
This program does not support the looked for formats.


m. b. G. Norbert
_____________________
normal:  02686-987103
Notruf:  0177-2363368
---------------------
e.o.m.

--- End Message ---
--- Begin Message ---
> So the current situation is that Apache2-prefork+PHP is a decent solution
> but it hasn't been tested a whole lot.  

I am currently moving my app to an Apache 2 server.  I did not build 
the server (not my area of expertise) and don't know how how it was 
built, but I can talk to the folks who did it and find out.  It was 
their choice to go to Apache 2, but I still have time to get them to go 
back if need be.  I'd like to understand the recommendations more 
clearly.

Are there configurations of Apache 2 that are OK with PHP?  The above 
suggests prefork hasn't been tested but the remainder of your message 
suggests multithreading (which is different from prefork as I read the 
Apache docs -- right?) is even more problematic.  It sounds like this 
is what's behind the recommendation at 
http://us2.php.net/install.apache2 which says  "Do not use Apache 2.0 
and PHP in a production environment neither on Unix nor on Windows."  
But the same page says "The following versions of PHP are known to work 
with the most recent version of Apache 2.0:", so I'm not quite clear on 
what's being recommended.

FWIW httpd-l on the new server shows:

Compiled in modules:
  core.c
  mod_access.c
  mod_auth.c
  mod_include.c
  mod_log_config.c
  mod_env.c
  mod_setenvif.c
  mod_ssl.c
  prefork.c
  http_core.c
  mod_mime.c
  mod_status.c
  mod_autoindex.c
  mod_asis.c
  mod_suexec.c
  mod_cgi.c
  mod_negotiation.c
  mod_dir.c
  mod_imap.c
  mod_actions.c
  mod_userdir.c
  mod_alias.c
  mod_so.c

Thanks for any comments.

--
Tom

--- End Message ---
--- Begin Message ---
I wonder if it's possible to get the options (such as Indexes) for a directory via PHP. Any clue?


//Simon
--- End Message ---
--- Begin Message ---
Hello All,
 
I'm having a problem including an array in a hidden field for file
upload.
 
My first question is, can this be done? Can I actually include an array
in a hidden field on a POSTed PHP upload field?
 
If so do I have to encode the array. I use array's on my site and am
aware that I have to encode them to pass the values
from page to page but, for some reason I can't pass them thru a
multipart/form-data form upload. The file gets uploaded
with no problem.
 
If this is not possible is there some other method that I can use to do
this?
 
My Code:
 
<form action="<?=$PHP_SELF?>" method="POST" name="sendit"
enctype="multipart/form-data">
<input name="<?= $upload_file_name; ?>" type="file" size="60">
<input type="submit" value="Upload">
<?
echo "<input type=\"hidden" name=\"my_array\" value=\"" .
base64_encode(serialize($my_array)) . "\">";
?>
</form>
 
Once the file is uploaded $my_array has no value. Is there some catch to
this?
 
 
Thanks in advance!
 
 
 
 
 
 

--- End Message ---
--- Begin Message ---
On Sat, 2004-03-13 at 10:40, Andy Lewis wrote:
>  
> <form action="<?=$PHP_SELF?>" method="POST" name="sendit"
> enctype="multipart/form-data">
> <input name="<?= $upload_file_name; ?>" type="file" size="60">
> <input type="submit" value="Upload">
> <?
> echo "<input type=\"hidden" name=\"my_array\" value=\"" .
> base64_encode(serialize($my_array)) . "\">";
> ?>
> </form>
>  

What value are you trying to get from or place in "value" for the hidden
field?

-- 
Brian V Bonini <[EMAIL PROTECTED]>

--- End Message ---
--- Begin Message --- Andy Lewis wrote:

Hello All,

I'm having a problem including an array in a hidden field for file
upload.

My first question is, can this be done? Can I actually include an array
in a hidden field on a POSTed PHP upload field?


can be done


If so do I have to encode the array. I use array's on my site and am
aware that I have to encode them to pass the values
from page to page but, for some reason I can't pass them thru a
multipart/form-data form upload. The file gets uploaded
with no problem.


You are posting to $PHP_SELF, are you sure you are not clobbering your $my_array variable before you attempt to retrieve it's value? What is your register globals settings?



My Code:

<form action="<?=$PHP_SELF?>" method="POST" name="sendit"
enctype="multipart/form-data">
<input name="<?= $upload_file_name; ?>" type="file" size="60">
<input type="submit" value="Upload">
<?
echo "<input type=\"hidden" name=\"my_array\" value=\"" .
base64_encode(serialize($my_array)) . "\">";
?>
</form>


The code does not compile.



--
Raditha Dissanayake.
---------------------------------------------------------------
http://www.radinks.com/upload/ Drag and Drop Upload thousands of files and folders in a single
transfer. (HTTP or FTP)

--- End Message ---
--- Begin Message ---
I'm trying to pass an array of values. Then retrieve it on the next
page.

-----Original Message-----
From: Brian V Bonini [mailto:[EMAIL PROTECTED] 
Sent: Saturday, March 13, 2004 9:58 AM
To: Andy Lewis
Cc: PHP Lists
Subject: Re: [PHP] multipart/form-data and Array POST


On Sat, 2004-03-13 at 10:40, Andy Lewis wrote:
>  
> <form action="<?=$PHP_SELF?>" method="POST" name="sendit" 
> enctype="multipart/form-data"> <input name="<?= $upload_file_name; ?>"

> type="file" size="60"> <input type="submit" value="Upload">
> <?
> echo "<input type=\"hidden" name=\"my_array\" value=\"" .
> base64_encode(serialize($my_array)) . "\">";
> ?>
> </form>
>  

What value are you trying to get from or place in "value" for the hidden
field?

-- 
Brian V Bonini <[EMAIL PROTECTED]>

--- End Message ---
--- Begin Message ---
I am running:

 $my_array = unserialize(base64_decode($my_array));

on the array once it's POSTed.


-----Original Message-----
From: Raditha Dissanayake [mailto:[EMAIL PROTECTED] 
Sent: Saturday, March 13, 2004 10:18 AM
To: Andy Lewis
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] multipart/form-data and Array POST


Andy Lewis wrote:

>Hello All,
> 
>I'm having a problem including an array in a hidden field for file 
>upload.
> 
>My first question is, can this be done? Can I actually include an array

>in a hidden field on a POSTed PHP upload field?
>  
>
can be done

> 
>If so do I have to encode the array. I use array's on my site and am 
>aware that I have to encode them to pass the values from page to page 
>but, for some reason I can't pass them thru a multipart/form-data form 
>upload. The file gets uploaded with no problem.
>  
>
You are posting to $PHP_SELF, are you sure you are not clobbering your 
$my_array variable  before you attempt to retrieve it's value? What is 
your register globals settings?

> 
> 
>My Code:
> 
><form action="<?=$PHP_SELF?>" method="POST" name="sendit" 
>enctype="multipart/form-data"> <input name="<?= $upload_file_name; ?>" 
>type="file" size="60"> <input type="submit" value="Upload">
><?
>echo "<input type=\"hidden" name=\"my_array\" value=\"" .
>base64_encode(serialize($my_array)) . "\">";
>?>
></form>
>  
>
The code does not compile.



-- 
Raditha Dissanayake.
---------------------------------------------------------------
http://www.radinks.com/upload/ 
Drag and Drop Upload thousands of files and folders in a single
transfer.  (HTTP or FTP) 

--- End Message ---
--- Begin Message ---
register_globals = On



-----Original Message-----
From: Raditha Dissanayake [mailto:[EMAIL PROTECTED] 
Sent: Saturday, March 13, 2004 10:18 AM
To: Andy Lewis
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] multipart/form-data and Array POST


Andy Lewis wrote:

>Hello All,
> 
>I'm having a problem including an array in a hidden field for file 
>upload.
> 
>My first question is, can this be done? Can I actually include an array

>in a hidden field on a POSTed PHP upload field?
>  
>
can be done

> 
>If so do I have to encode the array. I use array's on my site and am 
>aware that I have to encode them to pass the values from page to page 
>but, for some reason I can't pass them thru a multipart/form-data form 
>upload. The file gets uploaded with no problem.
>  
>
You are posting to $PHP_SELF, are you sure you are not clobbering your 
$my_array variable  before you attempt to retrieve it's value? What is 
your register globals settings?

> 
> 
>My Code:
> 
><form action="<?=$PHP_SELF?>" method="POST" name="sendit" 
>enctype="multipart/form-data"> <input name="<?= $upload_file_name; ?>" 
>type="file" size="60"> <input type="submit" value="Upload">
><?
>echo "<input type=\"hidden" name=\"my_array\" value=\"" .
>base64_encode(serialize($my_array)) . "\">";
>?>
></form>
>  
>
The code does not compile.



-- 
Raditha Dissanayake.
---------------------------------------------------------------
http://www.radinks.com/upload/ 
Drag and Drop Upload thousands of files and folders in a single
transfer.  (HTTP or FTP) 

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

My Code:

<form action="<?=$PHP_SELF?>" method="POST" name="sendit" enctype="multipart/form-data"> <input name="<?= $upload_file_name; ?>" type="file" size="60"> <input type="submit" value="Upload">
<?
echo "<input type=\"hidden" name=\"my_array\" value=\"" .
base64_encode(serialize($my_array)) . "\">";
?>
</form>





The code does not compile.





Thank you for the 7 different copies of your messages which i recieved. You had missed the last part of my reply to your original post.


--
Raditha Dissanayake.
---------------------------------------------------------------
http://www.radinks.com/upload/ Drag and Drop Upload thousands of files and folders in a single
transfer. (HTTP or FTP)

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

When I need to create table I have to login into mysql and run the query. Is there a way to create some sort of scipt that can create all my tables?.So If I need create a table in new database I just run the script.

I know that I can do mysql_query("QUERY OF TABLE");
But is there another way of doing this?

Thanks

_________________________________________________________________
One-click access to Hotmail from any Web page – download MSN Toolbar now! http://clk.atdmt.com/AVE/go/onm00200413ave/direct/01/

--- End Message ---
--- Begin Message --- On Mar 13, 2004, at 5:24 PM, Mike Mapsnac wrote:
Hello

When I need to create table I have to login into mysql and run the query. Is there a way to create some sort of scipt that can create all my tables?.So If I need create a table in new database I just run the script.

I know that I can do mysql_query("QUERY OF TABLE");
But is there another way of doing this?

$sql = "CREATE TABLE `rss_cat` ( `id` int(11) NOT NULL auto_increment, `cat` varchar(50) NOT NULL default '', PRIMARY KEY (`id`) ) TYPE=MyISAM AUTO_INCREMENT=1"; mysql_query($sql);

Just use general SQL to create tables in PHP. This isn't the correct list for these kind of questions, since we have php-db for database related stuff.

Regards,

Filip de Waard
--- End Message ---
--- Begin Message ---
Dear you,

Can we control php direct connect to MS-SQL 2000 ( Another computer
machine ) ?

Thank for your help !!

Edward.

--- End Message ---
--- Begin Message --- On Mar 13, 2004, at 6:01 PM, [EMAIL PROTECTED] wrote:
Can we control php direct connect to MS-SQL 2000 ( Another computer
machine ) ?

RTFM, http://www.php.net/ms_sql.


Regards,

Filip de Waard
--- End Message ---
--- Begin Message ---
--- Begin Message ---
Dear Jason,

If I want to install php for the following function on Fedora Core 1 System
:

DOM XML, FTP, Gettext, IMAP, LDAP, MCAL, Mcrypt, MySQL, PostgreSQL, XML, GD,
MM  and MS-SQL 2000

Then which special configure commands ( parameters ) must be compiled with
php ?

Many thank for your help !

Edward.

Jason Wong wrote:

> On Friday 12 March 2004 00:07, [EMAIL PROTECTED] wrote:
>
> > Mine is Fedora Core 1 System ( without any update )...
> > So, which configure commands ( parameters ) must be compiled with this
> > system ?
>
>   ./configure
>
> would do fine. If you want bells and whistles then read the output of
>
>   ./configure --help
>
> and consult the manual.
>
> --
> Jason Wong -> Gremlins Associates -> www.gremlins.biz
> Open Source Software Systems Integrators
> * Web Design & Hosting * Internet & Intranet Applications Development *
> ------------------------------------------
> Search the list archives before you post
> http://marc.theaimsgroup.com/?l=php-general
> ------------------------------------------
> /*
> Win98 is called Win98 because you need to update at least 98% of your
> hardware before it can be installed
> */
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php




--- End Message ---

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

I can read values found in cell in Excel worksheet. But I can not read numeric value 
from it, always null string.

I had done this work using DBI.

How can I resolve this?

R. Kumaran


--- End Message ---
--- Begin Message --- So I guess PHP 5 can now include the MySQL libraries.

Anyone know if they will include them with the first release of PHP 5, or have plans to?

What difference will this make? I ask, because I read that just configuring with "--with-mysql=/usr" allows you to use MySQL with PHP 5. THis is how I always compiled with PHP 4, so I guess I don't really get how they included them before, and what the differences were/are going to be without the libraries?


Thanks! Karl

--- End Message ---

Reply via email to