php-general Digest 11 Apr 2001 13:33:12 -0000 Issue 621

Topics (messages 48104 through 48159):

Re: huge PHP file, hardcore processing
        48104 by: Christian Dechery

Re: Developing new PHP modules
        48105 by: Yasuo Ohgaki

Re: assignment operator works for comparison??
        48106 by: Yasuo Ohgaki
        48122 by: Maxim Derkachev
        48125 by: Harshdeep S Jawanda
        48139 by: Renze Munnik

Re: Forcing a dynamic created text file to be saved
        48107 by: Stuart J. Browne
        48109 by: Pierre-Yves Lemaire
        48111 by: Lindsay Adams

Re: __ $8/mo php hosting on 24/7, OC3+ web server ___
        48108 by: Seung-woo Nam
        48158 by: Jeffrey Greer

TTF Support
        48110 by: Jennifer
        48131 by: maatt

Need Feedback
        48112 by: PHP General List
        48113 by: Jason Murray

Properly formatted ereg??
        48114 by: Black S.
        48115 by: Jason Murray
        48116 by: Rasmus Lerdorf

online detection
        48117 by: Gary Munitz
        48120 by: mailing_list.gmx.at
        48143 by: andreas.landmark.noxtension.com
        48146 by: Christian Reiniger
        48147 by: KPortsmout.aol.com
        48150 by: Jason Stechschulte

compile problems
        48118 by: Mark Maggelet

radio groups in loop form
        48119 by: Peter Houchin

Re: session variables
        48121 by: mailing_list.gmx.at

Re: shared memory
        48123 by: Rasmus Lerdorf

Are calling COM applications a trojan?
        48124 by: Zeus
        48127 by: Zeus
        48152 by: Pierre-Yves Lemaire
        48156 by: Zeus

*** HTML Programming question *** no php at all...
        48126 by: David Diaz i Torrico
        48159 by: Chris Albanese

Can't redeclare already declared function
        48128 by: kenny.hibs

Mail Function
        48129 by: RealGM
        48130 by: Zeus
        48133 by: RealGM
        48135 by: Zeus

Problem with writing text with GD
        48132 by: Johan Holst Nielsen

PHPemPT
        48134 by: Carlos Serrão

a simple diary / news system for download
        48136 by: Sandeep Hundal

Re: upload problem (uid)
        48137 by: b0ld b0lb

Re: .htpasswd encryption
        48138 by: Hervé PARISSI

install LONG_MAX
        48140 by: Plamen Slavov

string comparsion "inf"
        48141 by: marco.banaj.vishay.com

Re: php.ini
        48142 by: Christian Reiniger

header( )
        48144 by: Patrick Dunford

Apache configuration
        48145 by: Alexis Antonakis
        48154 by: B. van Ouwerkerk
        48155 by: Jon Haworth

PHP, LDAP & ldap_set_option
        48148 by: Holger Flocken
        48149 by: Stig Venaas

Re: Can't make apache with PHP and mysql!!
        48151 by: Mohamed Ould

No new topic using reply please.
        48153 by: Yasuo Ohgaki

[ Swift eNetwork ] Matrix
        48157 by: [ rswfire ]

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]


----------------------------------------------------------------------


At 10:20 11/4/2001 +0900, you wrote:
>I think DLL for MS SQL Server will work with Apache for Windows/PHP for 
>Windows.
>There are many basic functions are not supported under PHP for Windows, but it
>work fine for me other than those missing functions. If your server may have
>multiple IP addressees, it's easy to co-exist with IIS.
>
>How about give it a try?


I guess I don't have multiple IP adresses on my server... can't I just 
install Apache and have it listen on port 8080 instead? Will it co-exist 
nicely with IIS?

____________________________
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer





If you take a look at PHP source code, you'll find some description for making
new modules. I think you need to read source to understand how to code a new
module. Not much descriptions, but PHP manual has section for it, too.

I use emacs to browse C/C++ sources, but you can use lxr.php.net or cvs.php.net
to browse PHP source.

Regards,
--
Yasuo Ohgaki


"Carlos Serrão" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi all,
>
> I don't know if I'm in the correct mailling list or not, but
> could someone provide me with some information about the developement
> of new PHP modules (documentation, source-code, ...) ?
>
> Thanks in advance.
>
> Best regards,
>
> _____________________________________________________________
> Carlos Serrão                          [EMAIL PROTECTED]
>                                  http://www.carlos-serrao.com
> DCTI - IS/IT Department        IS/IT Research and Development
> ADETTI/ISCTE - Av.Forcas Armadas     1600-082 LISBOA Portugal
> Tel.: +351217903064/+351217903901         Fax:  +351217935300
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>





> if($shiny = 0) This line is the same as if ((shiny = 0) == TRUE) It's common error with PHP and C. You could make use of this like if ($fp = fopen($filename,'r')) since this is the same as if (($fp = fopen($filename,'r')) == TRUE) code after this line is executed when fopen() success to open file. Regards, -- Yasuo Ohgaki ""Dan"" <[EMAIL PROTECTED]> wrote in message 9avrti$olc$[EMAIL PROTECTED]">news:9avrti$olc$[EMAIL PROTECTED]... > This confused me for awhile, because the single equal sign seemed to work > for comparison, but created inexplicable errors in my programs. It seems > strange to me that a successful variable value assignment does not return > true. > > example: > > <? > > $shiny = 1; > if($shiny = 0){ echo("This wont print"); } > echo( $shiny ); //this will return 0 > > ?> > > --Dan > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] >



Hello Dan,

Wednesday, April 11, 2001, 1:29:22 AM, you wrote:


>>
>>  > if($shiny = 0){
>> This does not compare anyting, it assigns 0 to $shiny

D> yes i know, but shouldnt this operation return true?

No. This operator returns the value assigned (0 in this case, which is
false). This expression will always return false.

-- 
Best regards,
Maxim Derkachev mailto:[EMAIL PROTECTED]
Symbol-Plus Publishing Ltd.
phone: +7 (812) 324-53-53
http://www.Books.Ru -- All Books of Russia
 






Hi,

Dan wrote:

> >  > if($shiny = 0){
> > This does not compare anyting, it assigns 0 to $shiny
>
> yes i know, but shouldnt this operation return true?

No, it doesn't return true.

The "=" operator returns the value of the expression on its right hand side.
Therefore, the statement given above is equivalent to (as far as the if is
concerned):

     if (0) {

because the "=" operator returns 0, the value on its right hand side.

That is why a statement like:

     a = b = c = 2

sets all the above variables to 2. Otherwise, if it were to operate the way you
think it should, it would set "c" to 2 and "a" and "b" to "true" ;-).

Hope that clears up things for you.

--
Regards,
Harshdeep Singh Jawanda.






Dan wrote:
> 
> This confused me for awhile, because the single equal sign seemed to work
> for comparison, but created inexplicable errors in my programs.  It seems
> strange to me that a successful variable value assignment does not return
> true.
> 
> example:
> 
> <?
> 
>  $shiny = 1;
>  if($shiny = 0){ echo("This wont print"); }
>  echo( $shiny ); //this will return 0
> 
> ?>
> 
> --Dan
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]


Okay...

First:
Checking if $shiny equals 0:

if ($shiny == 0) {

But that's already been discussed.
If you _realy_ want to check if the assignment succeeded:

if (($shiny = 0) == 0) {

Try the following example:

-----
$a = "Hello";
$b = "Wold";

if ($b == $a)
  print "Yes, b equals a<BR>\n";
else
  print "No, b doesn't equal a<BR>\n";

if (($b = $a) == $a)
  print "Yes... now b equals a<BR>\n";
else
  print "Oops... b still doesn't equal a!<BR>\n";
-----

Output will be:

No, b doesn't equal a
Yes... now b equals a

-- 

* R&zE:

***************************
**  Renze Munnik
**
**  E: [EMAIL PROTECTED]
**  M: +31 6 218 111 43
***************************





"Lindsay Adams" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
You are not going to be able to use PHP to tell the client browser to do
anything.

you are going to have to embed either a java.applet, or javascript to do it.
I don¹t know a whole lot about either, so I don't know if they are even a
possibility.

On 4/10/01 2:29 PM, "Nando2" <[EMAIL PROTECTED]> wrote:

> Hello all!
>
> I have a PHP4 script that produces a text file and I would like that when
the
> user access this script the text content of it was forced to be saved
meaning
> that when the user selects it he/she will have the save dialog form to
save
> the text file with the filename specified in the header function. So far I
> have managed to create the text file dynamicaly but still I have to click
the
> browser's save button to save the file with the determined filename. I
wanted
> it to be forced.
>
> Does anyone know how to do it ?
>
> Here's the code :
>
> <?php
>
>   // Carlos Fernando Scheidecker Antunes : Test saving text files with PHP
>   // this sets the content type as being plain text
>
>   header("Content-Type : text/plain; charset=\"iso-8859-1\"");
>
>   // this sets the file name
>
>   header("Content-Disposition: filename=\"test.txt\"");
>
>   // creates the dynamic content of the text file here
>
>   print("TextFile test\r\n\");
>   for ($i=1; $i < 100; $i++) {
>       print("This is line number ".$i."\r\n");
>   }
>
> ?>


try:

header("Content-Type: unknown/unknown");
....
browswer won't know what type of file it is, so will prompt to save.. should
get the file-name right from the other.

bkx






After you have created the file, use this to force a downlaod.
This will downlaod anything, even an html file.

$fileName = basename($downloadFile);
header("Content-disposition: attachment; filename=\"$fileName\"");
header("Content-type: application-download");
header("Pragma: no-cache");
header("Expires: 0");
$fn=fopen($downloadFile,"r");
fpassthru($fn);
fclose($fn);
exit;

py

"No matter what you know, someone will know more :)"

At 12:01 PM 4/11/01 +1000, you wrote:

>"Lindsay Adams" <[EMAIL PROTECTED]> wrote in message
>[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>You are not going to be able to use PHP to tell the client browser to do
>anything.
>
>you are going to have to embed either a java.applet, or javascript to do it.
>I don¹t know a whole lot about either, so I don't know if they are even a
>possibility.
>
>On 4/10/01 2:29 PM, "Nando2" <[EMAIL PROTECTED]> wrote:
>
> > Hello all!
> >
> > I have a PHP4 script that produces a text file and I would like that when
>the
> > user access this script the text content of it was forced to be saved
>meaning
> > that when the user selects it he/she will have the save dialog form to
>save
> > the text file with the filename specified in the header function. So far I
> > have managed to create the text file dynamicaly but still I have to click
>the
> > browser's save button to save the file with the determined filename. I
>wanted
> > it to be forced.
> >
> > Does anyone know how to do it ?
> >
> > Here's the code :
> >
> > <?php
> >
> >   // Carlos Fernando Scheidecker Antunes : Test saving text files with PHP
> >   // this sets the content type as being plain text
> >
> >   header("Content-Type : text/plain; charset=\"iso-8859-1\"");
> >
> >   // this sets the file name
> >
> >   header("Content-Disposition: filename=\"test.txt\"");
> >
> >   // creates the dynamic content of the text file here
> >
> >   print("TextFile test\r\n\");
> >   for ($i=1; $i < 100; $i++) {
> >       print("This is line number ".$i."\r\n");
> >   }
> >
> > ?>
>
>
>try:
>
>header("Content-Type: unknown/unknown");
>....
>browswer won't know what type of file it is, so will prompt to save.. should
>get the file-name right from the other.
>
>bkx
>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]


+ ======================
+ Pierre-Yves Lem@ire
+ E-MedHosting.com
+ (514) 729-8100
+ [EMAIL PROTECTED]
+ ======================





I stand happily corrected :)


On 4/10/01 7:01 PM, "Stuart J. Browne" <[EMAIL PROTECTED]> wrote:



> 
> "Lindsay Adams" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> You are not going to be able to use PHP to tell the client browser to do
> anything.
> 
> you are going to have to embed either a java.applet, or javascript to do it.
> I don1t know a whole lot about either, so I don't know if they are even a
> possibility.
> 
> On 4/10/01 2:29 PM, "Nando2" <[EMAIL PROTECTED]> wrote:
> 
>> Hello all!
>> 
>> I have a PHP4 script that produces a text file and I would like that when
> the
>> user access this script the text content of it was forced to be saved
> meaning
>> that when the user selects it he/she will have the save dialog form to
> save
>> the text file with the filename specified in the header function. So far I
>> have managed to create the text file dynamicaly but still I have to click
> the
>> browser's save button to save the file with the determined filename. I
> wanted
>> it to be forced.
>> 
>> Does anyone know how to do it ?
>> 
>> Here's the code :
>> 
>> <?php
>> 
>>   // Carlos Fernando Scheidecker Antunes : Test saving text files with PHP
>>   // this sets the content type as being plain text
>> 
>>   header("Content-Type : text/plain; charset=\"iso-8859-1\"");
>> 
>>   // this sets the file name
>> 
>>   header("Content-Disposition: filename=\"test.txt\"");
>> 
>>   // creates the dynamic content of the text file here
>> 
>>   print("TextFile test\r\n\");
>>   for ($i=1; $i < 100; $i++) {
>>       print("This is line number ".$i."\r\n");
>>   }
>> 
>> ?>
> 
> 
> try:
> 
> header("Content-Type: unknown/unknown");
> ....
> browswer won't know what type of file it is, so will prompt to save.. should
> get the file-name right from the other.
> 
> bkx
> 
> 





Jeffrey Greer wrote:
> 
> I'm not trying to provide the level of service of a large isp or even
> get 100 customers.  I would just like to pay for my half of the web
> portal.  I thought $8/mo for my service would be a good value for php
> programmers who do not need a high level of security.
> 
> Would you say $8/mo is not a good value for the level of service I
> will provide?
> 
> Web hosting is not my main business.  I'm a software developer.
> 
Well, then what's that all about 'hosting your business' thing on your
website? And I wonder how will you possibly garantee the uptime you talk
about on the site? $8 is a cheap price only if you can actually provide
certain level of service. 

Seung-woo Nam




On 10 Apr 2001 19:08:03 -0700, [EMAIL PROTECTED] (Seung-woo Nam)
wrote:

>Jeffrey Greer wrote:
>> 
>> I'm not trying to provide the level of service of a large isp or even
>> get 100 customers.  I would just like to pay for my half of the web
>> portal.  I thought $8/mo for my service would be a good value for php
>> programmers who do not need a high level of security.
>> 
>> Would you say $8/mo is not a good value for the level of service I
>> will provide?
>> 
>> Web hosting is not my main business.  I'm a software developer.
>> 
>Well, then what's that all about 'hosting your business' thing on your
>website? And I wonder how will you possibly garantee the uptime you talk
>about on the site? $8 is a cheap price only if you can actually provide
>certain level of service. 
>
>Seung-woo Nam

This site has been up for about 4 years.  Downtime has been less than
a couple hours.  Crackers have infiltrated the system once, but didn't
get very far.  Why would you worry about uptime so much?  Is 1/2 per
year too much down time?

I will be applying security updates.  

--
Jeff Greer
- B.S. computer science - Univ. MO - Rolla
- I do web hosting and development.  Details
  at http://www.singlesconnection.org/services/




How do I find out if my installation supports this?

I am on a virtual server, and I know my host has Apache installed
with mod_php4

Is there something that I can check to see if the FreeType
library is there when I only have a virtual server?

And if it wasn't installed, is there any way that I can do this
locally without having root access?

Jennifer




> Is there something that I can check to see if the FreeType
> library is there when I only have a virtual server?

Put phpinfo() on a page - look under the gd library section.

> And if it wasn't installed, is there any way that I can do this
> locally without having root access?

Don't think so.

Matt






Hi all, 

I have had this website that captures the list email messages and places them into a 
searchable db.  I did this as a learning exercise and think it is pretty cool but am 
wondering if I should just shut em down.

Take a look and if I get enough feedback, I will keep them running for at least a few 
more months.  I have a PHP and a MYSQL list db, here are the URLs:

http://www.summittech.com/mysqlmail.php3
http://www.summittech.com/phpgenmail.php3

They are free and I am not doing anything with the data.

Let me know,

David Fordham




> Take a look and if I get enough feedback, I will keep them 
> running for at least a few more months.  I have a PHP and a 
> MYSQL list db, here are the URLs:

It looks great, and very handy (though, I thought this stuff was
archived somewhere searchable already...?). The only suggestion
I have is that you should obscure the email addresses somehow,
perhaps like Freshmeat does by changing an address "[EMAIL PROTECTED]" 
to "whee-at-foo-dot-bar" to avoid spambots.

Jason

-- 
Jason Murray
[EMAIL PROTECTED]
Web Design Team, Melbourne IT
Fetch the comfy chair!




How would I write an ereg to use the value of $PHP_SELF and look for a
distinct folder? For instance. say I have:

ereg("^/anythinghere/coverage/anthythinghere.html?", $PHP_SELF
           ||||||||||||||||||||||||||
|||||||||||||||||||||||||||||||||||||||

So basically it is looking for the "/coverage/" folder, anything can come
before it, and anything after it??

Thanks All!!






> ereg("^/anythinghere/coverage/anthythinghere.html?", $PHP_SELF
>            ||||||||||||||||||||||||||
> |||||||||||||||||||||||||||||||||||||||
> 
> So basically it is looking for the "/coverage/" folder, 
> anything can come before it, and anything after it??

if (strstr($PHP_SELF, "/coverage/"))
{
  echo "Got it";
}
else
{
  die(); // ;)
}

Jason




strstr($PHP_SELF,"/coverage/")

Absolutely no reason to use a regular expression when all you are doing is
picking a simple string out of another.

-Rasmus

On Tue, 10 Apr 2001, Black S. wrote:

> How would I write an ereg to use the value of $PHP_SELF and look for a
> distinct folder? For instance. say I have:
>
> ereg("^/anythinghere/coverage/anthythinghere.html?", $PHP_SELF
>            ||||||||||||||||||||||||||
> |||||||||||||||||||||||||||||||||||||||
>
> So basically it is looking for the "/coverage/" folder, anything can come
> before it, and anything after it??
>
> Thanks All!!
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>





Does anyone know how to detect when a user connects to the Internet similar
to ICQ?






> Does anyone know how to detect when a user connects to the Internet
> similar
> to ICQ?

I think you mean messages on  pages like "321 user online"!
As HTTP is a stateless protocol, you can't really know this!!!
It's only an estimation - and you can use sessions to realize this (ask how
many sessions are active - and end a session after a short time like 5
minutes!)

witty

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net





On Wed, Apr 11, 2001 at 08:10:22AM +0200, [EMAIL PROTECTED] produced this golden 
nugget:
> > Does anyone know how to detect when a user connects to the Internet
> > similar
> > to ICQ?
> 
> I think you mean messages on  pages like "321 user online"!
> As HTTP is a stateless protocol, you can't really know this!!!
> It's only an estimation - and you can use sessions to realize this (ask how
> many sessions are active - and end a session after a short time like 5
> minutes!)
> 
> witty

There is a way to do it, _if_ the user is using an IM service, for
icq the easiest way would prolly be to use the icq module for
perl (i don't know whether there is a PHP class for icq), and then
use that to generate your page...

Mirabilis has made it possible to have the little "online" icon
if you like... check out their site for more info...

I dunno whether this is possible for AIM/etc...

-- 
andreas.landmark




On Wednesday 11 April 2001 06:23, you wrote:
> Does anyone know how to detect when a user connects to the Internet
> similar to ICQ?

Sure. Three main possibilities:

(1) Install a wire tap at his telephone line, together with some logic to 
detect connection attempts

(2) Do the same, but at his provider's dialin box. (more difficult)

(3) Install a proper trojan on the user's machine

Most criminals use possibility 3 ;-)

-- 
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)

AAAAA - American Association Against Acronym Abuse




In a message dated 11/04/2001 12:58:11 GMT Daylight Time, [EMAIL PROTECTED] 
writes:

<< > Does anyone know how to detect when a user connects to the Internet
 > similar to ICQ?
 
 Sure. Three main possibilities:
 
 (1) Install a wire tap at his telephone line, together with some logic to 
 detect connection attempts
 
 (2) Do the same, but at his provider's dialin box. (more difficult)
 
 (3) Install a proper trojan on the user's machine
 
 Most criminals use possibility 3 ;-) >>


Hmmmm I wonder which one ICQ uses :-)

Ade




On Wed, Apr 11, 2001 at 08:00:56AM -0400, [EMAIL PROTECTED] wrote:
> Hmmmm I wonder which one ICQ uses :-)

ICQ doesn't detect whether or not a person is online.  It doesn't detect
whether or not a person is browsing the Internet.  All it detects is
whether or not a person is connected to the Internet AND using their
application.  Checking if someone is online is much, much more
difficult.

-- 
Jason Stechschulte
[EMAIL PROTECTED]
--
:  - cut in regexps

I don't think we reached consensus on that.  We're still backtracking...
             -- Larry Wall in <[EMAIL PROTECTED]>




Hi , I'm having compile problems with php4.04pl1 and the latest
development version (where can I get older?)

here's what the end of make looks like:

.libs/libphp4.a(xml.o): In function `xml_parser_dtor':
/home/certscape/php4-200104102145/ext/xml/xml.c:304: undefined
reference to `php_XML_ParserFree'
.libs/libphp4.a(xml.o): In function `php_if_xml_parser_create':
/home/certscape/php4-200104102145/ext/xml/xml.c:1091: undefined
reference to `php_XML_ParserCreate'
/home/certscape/php4-200104102145/ext/xml/xml.c:1095: undefined
reference to `php_XML_SetUserData'
.libs/libphp4.a(xml.o): In function `php_if_xml_set_element_handler':
/home/certscape/php4-200104102145/ext/xml/xml.c:1214: undefined
reference to `php_XML_SetElementHandler'
.libs/libphp4.a(xml.o): In function
`php_if_xml_set_character_data_handler':
/home/certscape/php4-200104102145/ext/xml/xml.c:1233: undefined
reference to `php_XML_SetCharacterDataHandler'
.libs/libphp4.a(xml.o): In function
`php_if_xml_set_processing_instruction_handler':
/home/certscape/php4-200104102145/ext/xml/xml.c:1252: undefined
reference to `php_XML_SetProcessingInstructionHandler'
.libs/libphp4.a(xml.o): In function `php_if_xml_set_default_handler':
/home/certscape/php4-200104102145/ext/xml/xml.c:1270: undefined
reference to `php_XML_SetDefaultHandler'
.libs/libphp4.a(xml.o): In function
`php_if_xml_set_unparsed_entity_decl_handler':
/home/certscape/php4-200104102145/ext/xml/xml.c:1289: undefined
reference to `php_XML_SetUnparsedEntityDeclHandler'
.libs/libphp4.a(xml.o): In function
`php_if_xml_set_notation_decl_handler':
/home/certscape/php4-200104102145/ext/xml/xml.c:1307: undefined
reference to `php_XML_SetNotationDeclHandler'
.libs/libphp4.a(xml.o): In function
`php_if_xml_set_external_entity_ref_handler':
/home/certscape/php4-200104102145/ext/xml/xml.c:1325: undefined
reference to `php_XML_SetExternalEntityRefHandler'
.libs/libphp4.a(xml.o): In function `php_if_xml_parse':
/home/certscape/php4-200104102145/ext/xml/xml.c:1394: undefined
reference to `php_XML_Parse'
.libs/libphp4.a(xml.o): In function `php_if_xml_parse_into_struct':
/home/certscape/php4-200104102145/ext/xml/xml.c:1428: undefined
reference to `php_XML_SetDefaultHandler'
/home/certscape/php4-200104102145/ext/xml/xml.c:1429: undefined
reference to `php_XML_SetElementHandler'
/home/certscape/php4-200104102145/ext/xml/xml.c:1430: undefined
reference to `php_XML_SetCharacterDataHandler'
/home/certscape/php4-200104102145/ext/xml/xml.c:1432: undefined
reference to `php_XML_Parse'
.libs/libphp4.a(xml.o): In function `php_if_xml_get_error_code':
/home/certscape/php4-200104102145/ext/xml/xml.c:1450: undefined
reference to `php_XML_GetErrorCode'
.libs/libphp4.a(xml.o): In function `php_if_xml_error_string':
/home/certscape/php4-200104102145/ext/xml/xml.c:1465: undefined
reference to `php_XML_ErrorString'
.libs/libphp4.a(xml.o): In function
`php_if_xml_get_current_line_number':
/home/certscape/php4-200104102145/ext/xml/xml.c:1484: undefined
reference to `php_XML_GetCurrentLineNumber'
.libs/libphp4.a(xml.o): In function
`php_if_xml_get_current_column_number':
/home/certscape/php4-200104102145/ext/xml/xml.c:1500: undefined
reference to `php_XML_GetCurrentColumnNumber'
.libs/libphp4.a(xml.o): In function
`php_if_xml_get_current_byte_index':

I don't even want any of this xml crap. any pointers appreciated.
thanks,
- Mark





hiya,

I have a radio button in a loop with the rest of the form, how ever when i go to do 
the mutliple update it clears all but the updated radio buttons(rest of form data is 
fine just the update on radio buttons) could some one pls give me an idea why, when 
every thing else works propperly with the script

heres the code (only concerning the radio buttons)

<?
if ($submit) {
//echo "Values submitted via POST method:<br>";
reset ($HTTP_POST_VARS);
while (list ($key, $val) = each ($HTTP_POST_VARS)) {
   //echo "$key => $val<br>";
}
reset($id);
while (list ($key, $val) = each ($id)) {
   //echo "Key: $key => Value: $val;<br>";

rs="update...
rs .= "quote='".$quote[$key]."',";
...
rs .= WHERE id='$id[$key];
$result = mysql_query($rs,$db);
        print mysql_error($db);

        } 
}
?>

rest of form
<input type="radio" name="avail[]" value="y" <? if ($avail == 'y') { echo 'CHECKED'; 
}?>> // repeated line with 'n' & 'pending' instead of 'y'

Peter Houchin
[EMAIL PROTECTED]
=========================================================
     _____                              __   /\
    /_/_/_\                            /  |_/  \
   /_/_/_    __  __  __   __          /         \
   \_/_/_\  /_/ /_/ /_/  /_/          \   _     /
 ___\_\_\/ /_/_/_/ /_//\/_/            \_/ \/\_/
 \_//_/_/ /_/_/_/ /_/ \/_/                    v
     ________   ________________________________________
    /_/_/_/_/  /_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
   /_/_ _/_/ ______  __   __  /_/ ____      __     ______
  /_/_/_/_/ /_/_/_/ /_/  /_/ /_/ /_/\_\    /_/    /_/_/_/
 /_/  \_\  /_/ _/  /_//\/_/ /_/ /_/__\_\  /_/___ _\_\_\
/_/    \_\/_/_/_/ /_/ \/_/ /_/ /_/    \_\/_/_/_//_/_/_/
=========================================================
Telephone : (03) 9329 1455  Facsimile : (03) 9329 6755
************* We rent the dot in .COM!  **************
 




>   I tried using a cookie I still had the same problem that it worked first
> time but even if you stayed on the page and put a sencond entry in it
> would
> not work,

then you:
set the cookie incorrectly
overwrite/delete the cookie by mistake
your browser does not support cookies
...

read
http://php.net/manual/en/features.cookies.php
and
http://php.net/manual/en/function.setcookie.php

try the example there!

witty

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net





One of the things you have to realize is that Apache-1.3.x is is
single-threaded pre-forking multi-process web server.  That means that you
have many processes handling requests.  You never know which process will
take a request, so storing any sort of data in a process won't do much
good as the next request may come in on another process.

This restriction, although somewhat cumbersome, forces you to build web
applications that will automatically be capable of being distributed
across multiple web servers.  If you cache things in a web server process
and the next hit comes in on a completely different machine you are out of
luck.

For the specific example of query caching that you gave, you need to
rethink your approach.  Caching database query results in user space makes
absolutely no sense.  There is no better place to cache query results than
in the database itself.  Leaving such results in the database also allows
you to run multiple web servers against a single large backend database
and still make use of the query cache.

You could put some things in shared memory if you know you will never move
beyond a single server, but shared memory is a limited resource and
somewhat cumbersome to work with.

-Rasmus

On Mon, 9 Apr 2001, Stephen Haberman wrote:

> Hello,
>
> I've recently started PHP development after a few years of working with ASP.
> So far I really like PHP, but am having trouble using some of the techniques
> I had in ASP.  For example, I really like using ASP's Application object to
> cache data in, but I can't seem to have an equivalent in PHP.
>
> (Due note that I'm also new to the Unix/Linux environment, so if I have any
> concepts glaringly wrong, please correct me).
>
> I've read over the System V shared memory functions, but I can't tell if
> these would accomplish what I'm looking to do?
>
> I guess what I really need to learn is how threading and synchronization
> works in Apache/PHP.  I had just mastered COM/ASP's
> single-thread/multi-threaded design and could write shared, multi-threaded
> ATL components that all the ASP pages could read from marshalling and all
> that.
>
> Are there any good resources/docs on the type of architecture PHP uses and
> how to accomplish the above in the Apache/PHP environment?  I've looked
> around at some books, but all I can find is basic
> here's-how-to-do-a-web-page type stuff.
>
> Ideally what I'd like would be an object that would stay loaded in memory
> (in-process) so that PHP scripts could call functions and variables against
> it with minimal overhead (specifically an object that could cache query
> results instead of each page requerying the database).  Is such a thing
> possible?  Or do I have to move over to Servlets/JSP to find this
> functionality?
>
> Thanks!
>
> - Stephen
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>





I'm sure many of you seasoned developers have used COM before (not necessary with PHP) 
but if PHP is a server-side language, how can it call a program on the client to open. 
Isn't it as deadly as a hacker opening your computer?

Lets see some sides :)

------------------------------------------
David Chua aka. Zeus
Founder, Frozened.com
------------------------------------------




Then,  how can it open a words document on the client side?

----- Original Message -----
From: Delbono <[EMAIL PROTECTED]>
To: Zeus <[EMAIL PROTECTED]>
Sent: Wednesday, 11 April, 2001 4:32 PM
Subject: Re: [PHP] Are calling COM applications a trojan?


> Com Apps, are not called on a client side.
> Actually, if you print out the version of the com application, it displays
> the version of the software installed on the server, not the one on the
> client.
>
> If I have Word2000 on m local PC and on the server I have Word97,
>
> a script taht prints App.Version, will print MSWord97.
>
>
> Sent: Wednesday, April 11, 2001 10:26 AM
> Subject: [PHP] Are calling COM applications a trojan?
>
>
> I'm sure many of you seasoned developers have used COM before (not
necessary
> with PHP) but if PHP is a server-side language, how can it call a program
on
> the client to open. Isn't it as deadly as a hacker opening your computer?
>
> Lets see some sides :)
>
> ------------------------------------------
> David Chua aka. Zeus
> Founder, Frozened.com
> ------------------------------------------
>
>
>






It can't.
If you put the appropriate header type (ms-word in this case), IE will open 
word. Netscape
and other browser will open a download dialog box of the document.

py


At 04:57 PM 4/11/01 +0800, you wrote:
>Then,  how can it open a words document on the client side?
>
>----- Original Message -----
>From: Delbono <[EMAIL PROTECTED]>
>To: Zeus <[EMAIL PROTECTED]>
>Sent: Wednesday, 11 April, 2001 4:32 PM
>Subject: Re: [PHP] Are calling COM applications a trojan?
>
>
> > Com Apps, are not called on a client side.
> > Actually, if you print out the version of the com application, it displays
> > the version of the software installed on the server, not the one on the
> > client.
> >
> > If I have Word2000 on m local PC and on the server I have Word97,
> >
> > a script taht prints App.Version, will print MSWord97.
> >
> >
> > Sent: Wednesday, April 11, 2001 10:26 AM
> > Subject: [PHP] Are calling COM applications a trojan?
> >
> >
> > I'm sure many of you seasoned developers have used COM before (not
>necessary
> > with PHP) but if PHP is a server-side language, how can it call a program
>on
> > the client to open. Isn't it as deadly as a hacker opening your computer?
> >
> > Lets see some sides :)
> >
> > ------------------------------------------
> > David Chua aka. Zeus
> > Founder, Frozened.com
> > ------------------------------------------
> >
> >
> >
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]


+ ======================
+ Pierre-Yves Lem@ire
+ E-MedHosting.com
+ (514) 729-8100
+ [EMAIL PROTECTED]
+ ======================





download dialog?

what will be in that dialog box?

And, I read a book saying that you can open a word document on the client
side and insert words in it.


----- Original Message -----
From: Pierre-Yves Lemaire <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, 11 April, 2001 3:54 PM
Subject: Re: [PHP] Are calling COM applications a trojan?


>
> It can't.
> If you put the appropriate header type (ms-word in this case), IE will
open
> word. Netscape
> and other browser will open a download dialog box of the document.
>
> py
>
>
> At 04:57 PM 4/11/01 +0800, you wrote:
> >Then,  how can it open a words document on the client side?
> >
> >----- Original Message -----
> >From: Delbono <[EMAIL PROTECTED]>
> >To: Zeus <[EMAIL PROTECTED]>
> >Sent: Wednesday, 11 April, 2001 4:32 PM
> >Subject: Re: [PHP] Are calling COM applications a trojan?
> >
> >
> > > Com Apps, are not called on a client side.
> > > Actually, if you print out the version of the com application, it
displays
> > > the version of the software installed on the server, not the one on
the
> > > client.
> > >
> > > If I have Word2000 on m local PC and on the server I have Word97,
> > >
> > > a script taht prints App.Version, will print MSWord97.
> > >
> > >
> > > Sent: Wednesday, April 11, 2001 10:26 AM
> > > Subject: [PHP] Are calling COM applications a trojan?
> > >
> > >
> > > I'm sure many of you seasoned developers have used COM before (not
> >necessary
> > > with PHP) but if PHP is a server-side language, how can it call a
program
> >on
> > > the client to open. Isn't it as deadly as a hacker opening your
computer?
> > >
> > > Lets see some sides :)
> > >
> > > ------------------------------------------
> > > David Chua aka. Zeus
> > > Founder, Frozened.com
> > > ------------------------------------------
> > >
> > >
> > >
> >
> >
> >--
> >PHP General Mailing List (http://www.php.net/)
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
> + ======================
> + Pierre-Yves Lem@ire
> + E-MedHosting.com
> + (514) 729-8100
> + [EMAIL PROTECTED]
> + ======================
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>






Sorry if someone takes that as an offtopic but, I can't find good
HTML/Javascript programming lists, if someone can point it out any I'd
apreciate it a lot.And haven't been able to find any reference to my
problem even searching for hours in google.


And the question here it goes, I've got a page with a header,
the header is a layer floating around the page, with Explorer I've no
problem but with Netscape, voilà, when the layer passes over a textbox,
select or some other typical form widget, the widget remains over the
layer. I've tried all the possible combinations with z-index with no
result.

There's any workaround to this?, I'm stuck.


Thank you very much in advance, and sorry if this is an offtopic.







In Netscape 4.x, form elemtents are always rendered as the top layer,
regardless of z-indexing. You need to move the form element. Netscape 6 (I
beleive) and IE5 are fine.

-----Original Message-----
From: David Diaz i Torrico [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 11, 2001 4:54 AM
To: [EMAIL PROTECTED]
Subject: [PHP] *** HTML Programming question *** no php at all...



Sorry if someone takes that as an offtopic but, I can't find good
HTML/Javascript programming lists, if someone can point it out any I'd
apreciate it a lot.And haven't been able to find any reference to my
problem even searching for hours in google.


And the question here it goes, I've got a page with a header,
the header is a layer floating around the page, with Explorer I've no
problem but with Netscape, voilà, when the layer passes over a textbox,
select or some other typical form widget, the widget remains over the
layer. I've tried all the possible combinations with z-index with no
result.

There's any workaround to this?, I'm stuck.


Thank you very much in advance, and sorry if this is an offtopic.



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]






Anyone help with this

Fatal error: Can't redeclare already declared function in header.php3 on
line 233
The troubl is that there is no line 233 so it must be looking at another
page?


header.php3

****************************************************
<?
/* Theme Creator for PHP-Nuke v0.1
 * Ricard Pillosu <[EMAIL PROTECTED]>
 * Grupo Aguila http://www.aguila.f2s.com
 */
?>

<html>
<head>
<title><?php include("config.php3"); echo $sitename; if($titletag) echo"
- $titletag"; ?></title>
<style rel=stylesheet type=text/css>
 A:link { font-weight: bold; }
 A:visited { font-weight: bold; }
</style>
</head>
<body bgcolor="#778899" text="#222222" link="#000000" vlink="#000000"
topmargin=5 leftmargin=0 rightmargin=0 marginheight=5>

<table border=0 cellpadding=4 cellspacing=0 width=100% align=center>
<tr><td bgcolor=778899>
<table border="0" cellspacing="0" cellpadding="1" width="100%"
bgcolor="#000000">
<tr><td>
<table border="0" cellspacing="0" cellpadding="3" width="100%"
bgcolor="333333">
<tr><td>
<a href="/"><img src="themes/Default/deflogo.gif" alt="<?php echo
"".translate("Welcome to").""; ?> <?php echo $sitename ?>" border=0></a>

</td><td align=right>
<form action="search.php3" method=post><font face=Arial,Helvetica size=2
color="ffffff">
<?php echo "".translate("Search").""; ?>
<input type=name name=query>
</form></tr>
<tr bgcolor="666666"><td colspan=2 bgcolor="666666">
<font face=Arial,Helvetica size=3 color=CCCCCC><?php echo "$titlebar"
?></td>
</td></tr></table>
</td></tr></table>
</td></tr><tr><td valign=top width=100% bgcolor=778899>
<table border=0 cellspacing=0 cellpadding=2 width=100%>
<tr><td valign=top width=150 bgcolor=778899>

<?php
include("themes/proves/boxes.php3");
// Show Left Blocks

main_box();
login_box();
admin_box();
left_boxes();
events_box();
?>

<img src=images/pix.gif border=0 width=150 height=1>
</td><td width=100% valign=top>
**************************************************************

any helpthanks in advance
kenny






Hi,

Tonight was my first attempt at using the mail() function, and running the script I 
had no problems with execution.  Everything seemed to go smoothly, except for one 
thing.  I never received an email.

I have consulted the manual and found nothing on the questions I am about to ask.  Is 
there any way of confirming whether an email was actually sent, or if there like a log 
file I can check?  The server is running php4 via apache on a linux machine.

Any help would be appeciated, as I have no idea what could (or could not) be happening.

Thank you,
Michael.




Try adding a

if (!mail(blah blah, balh blah ....)) {
echo "Mail not sent";
}

if (mail(blah bal.....)) {
echo "Mail sent";
}

Try these and subsitute what ever is in the mail() with your relevant
information.

----- Original Message -----
From: RealGM <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, 11 April, 2001 5:16 PM
Subject: [PHP] Mail Function



Hi,

Tonight was my first attempt at using the mail() function, and running the
script I had no problems with execution.  Everything seemed to go smoothly,
except for one thing.  I never received an email.

I have consulted the manual and found nothing on the questions I am about to
ask.  Is there any way of confirming whether an email was actually sent, or
if there like a log file I can check?  The server is running php4 via apache
on a linux machine.

Any help would be appeciated, as I have no idea what could (or could not) be
happening.

Thank you,
Michael.






Thanks for the reply...

It comes back mail sent, but nothing is actually arriving..

----- Original Message -----
From: Zeus <[EMAIL PROTECTED]>
To: RealGM <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, April 11, 2001 7:29 PM
Subject: Re: [PHP] Mail Function


> Try adding a
>
> if (!mail(blah blah, balh blah ....)) {
> echo "Mail not sent";
> }
>
> if (mail(blah bal.....)) {
> echo "Mail sent";
> }
>
> Try these and subsitute what ever is in the mail() with your relevant
> information.
>
> ----- Original Message -----
> From: RealGM <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, 11 April, 2001 5:16 PM
> Subject: [PHP] Mail Function
>
>
>
> Hi,
>
> Tonight was my first attempt at using the mail() function, and running the
> script I had no problems with execution.  Everything seemed to go
smoothly,
> except for one thing.  I never received an email.
>
> I have consulted the manual and found nothing on the questions I am about
to
> ask.  Is there any way of confirming whether an email was actually sent,
or
> if there like a log file I can check?  The server is running php4 via
apache
> on a linux machine.
>
> Any help would be appeciated, as I have no idea what could (or could not)
be
> happening.
>
> Thank you,
> Michael.
>
>
>





Check your SMTP settings. Its not a PHP problem anymore :)

See if the mail that its sending is your email address and if the
Sendmail\SMTP is properly configured.


----- Original Message -----
From: RealGM <[EMAIL PROTECTED]>
To: Zeus <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, 11 April, 2001 5:40 PM
Subject: Re: [PHP] Mail Function


> Thanks for the reply...
>
> It comes back mail sent, but nothing is actually arriving..
>
> ----- Original Message -----
> From: Zeus <[EMAIL PROTECTED]>
> To: RealGM <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Wednesday, April 11, 2001 7:29 PM
> Subject: Re: [PHP] Mail Function
>
>
> > Try adding a
> >
> > if (!mail(blah blah, balh blah ....)) {
> > echo "Mail not sent";
> > }
> >
> > if (mail(blah bal.....)) {
> > echo "Mail sent";
> > }
> >
> > Try these and subsitute what ever is in the mail() with your relevant
> > information.
> >
> > ----- Original Message -----
> > From: RealGM <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, 11 April, 2001 5:16 PM
> > Subject: [PHP] Mail Function
> >
> >
> >
> > Hi,
> >
> > Tonight was my first attempt at using the mail() function, and running
the
> > script I had no problems with execution.  Everything seemed to go
> smoothly,
> > except for one thing.  I never received an email.
> >
> > I have consulted the manual and found nothing on the questions I am
about
> to
> > ask.  Is there any way of confirming whether an email was actually sent,
> or
> > if there like a log file I can check?  The server is running php4 via
> apache
> > on a linux machine.
> >
> > Any help would be appeciated, as I have no idea what could (or could
not)
> be
> > happening.
> >
> > Thank you,
> > Michael.
> >
> >
> >
>





Hi

I have a problem with GD library. Then I write some text with the GD library
TTF function I get a very unreadable text :o(

The problem comes then the font is in size 9 and under!

Some know how to solve this problem?

/Johan





Hi all,
just to announce that a new PHP local users list is born.


It is called PHPemPT and it is dedicated to Portuguese users.

This list is useful both for new users as well as for advanced
users too.

You can find this list at:

http://groups.yahoo.com/group/phpempt

Best regards,

_____________________________________________________________
Carlos Serrão                          [EMAIL PROTECTED]
                                 http://www.carlos-serrao.com
DCTI - IS/IT Department        IS/IT Research and Development
ADETTI/ISCTE - Av.Forcas Armadas     1600-082 LISBOA Portugal
Tel.: +351217903064/+351217903901         Fax:  +351217935300





hi all,

just wanted to say thanks to everyone for helping me out with my php
enquires over the last few months. in the general free spirit
ofcourse, i'm going to try and make all the code that i write
available for free download.

anyway, for starters, i've made a simple diary / news system on my
homepage available for download. its damn simple to install and work
with, and needs mysql. it can also be used as a script for learning
on inputting and retrieving info from the mysql database.

http://www.wde.org/me/php/

cheers!!

/sunny

__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/




here is the error:
Warning: SAFE MODE Restriction in effect. The script whose uid is 522 is not 
allowed to access /tmp/phpupload/phptQdi31 owned by uid 0 in 
upload_in_imgs.php3 on line 127


>From: Rasmus Lerdorf <[EMAIL PROTECTED]>
>To: b0ld b0lb <[EMAIL PROTECTED]>
>CC: <[EMAIL PROTECTED]>
>Subject: Re: [PHP] upload problem (uid)
>Date: Tue, 10 Apr 2001 16:15:48 -0700 (PDT)
>
>Are you sure it is uid 0?  Unless your Apache is running as root it should
>be getting uploaded as the web server uid id.  Use the
>move_uploaded_file() function to move the file into place.
>
>-Rasmus
>
>On Wed, 11 Apr 2001, b0ld b0lb wrote:
>
> > Hi,
> >
> > if i upload via http the tempfile is written with uid 0 (root). After 
>that i
> > cant do anything with the file because the php user is not allowed to. 
>Why
> > is my uploaded file owned by root, and how do i solve that?
> >
> > PS. phpinfo shows that the apache user is nobody
> >
> > thx, b0ld
> >
> >
> > 
>_________________________________________________________________________
> > Get Your Private, Free E-mail from MSN Hotmail at 
>http://www.hotmail.com.
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]
>

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.





Brandon Orther wrote:

> Hello,
> 
> I am trying to make a script that creates .htpasswd files.  Does anyone
> know what encryption is used?
> 
> Thanks
> Brandon
> 
It can be crypt() or MD5 or SHA, you could call htpasswd.
See man htpasswd under *nix.




Hi all,
i try to install e php-4.0.4pl1 on a redhat 6.0 with apache_1.3.19,
but when i try to make php i get the following error message:

 make[1]: Entering directory `/home/plamen/www/php-4.0.4pl1/Zend'
/bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main
   -DXML_BYTE_ORDER=12  -g -O2 -c zend_hash.c
zend_hash.c: In function `zend_hash_add_or_update':
zend_hash.c:257: `LONG_MAX' undeclared (first use in this function)
zend_hash.c:257: (Each undeclared identifier is reported only once
zend_hash.c:257: for each function it appears in.)
zend_hash.c: In function `zend_hash_del_key_or_index':
zend_hash.c:502: `LONG_MAX' undeclared (first use in this function)
zend_hash.c: In function `zend_hash_find':
zend_hash.c:852: `LONG_MAX' undeclared (first use in this function)
zend_hash.c: In function `zend_hash_exists':
zend_hash.c:902: `LONG_MAX' undeclared (first use in this function)
make[1]: *** [zend_hash.lo] Error 1
make[1]: Leaving directory `/home/plamen/www/php-4.0.4pl1/Zend'
make: *** [all-recursive] Error 1  

Does someone have any ideas how to fix this?
i do not know where the problem is





Hi all,

I got a problem comparing the string "inf" with another in PHP3. It is
used as File-Extention for information-files on our system. When
comparing the following all works fine and the expected result is given:

"otto"  =  "karl" =>0
"otto"  =  "otto" =>1
"otto"! = "karl"  =>1
"otto"! =  "otto" =>0

The following problem occurs when comparing the string "inf":

"inf" = "otto" =>0 correct result
"inf" = "inf"   =>0  incorrect result!!!! expected 1
"inf" != "otto" =>1 correct result
"inf" != "inf" => 1 incorrect result!!! expected: 0

Does anybody have any idea what´s wrong with the string "inf"? It is not
an reserved word.

Tahnks in advance

Marco





On Tuesday 10 April 2001 10:58, you wrote:
> Is it possible to override the maximum script execution time as set in
> php.ini using an Apache directive like this in an .htaccess file?:
>
> php_value max_execution_time = 60

What about simply trying it? :)

-- 
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)

AAAAA - American Association Against Acronym Abuse




Can someone explain "header" to me?

Does it mean you can send HTTP headers with any script if you are loading 
another document?

There are two possibilities that interest me:

1. Sending username and password for authorisation in a protected area. This 
of course is done by browsers when they get a 401 and ask the user for their 
username and password in a dialog box. I would like to ask them for the data 
in a form then send it to the page in question.

2. Passing in variables to a script without specifying them as part of the 
URL. Like a form that uses POST to submit variables to a script without them 
being displayed in the URL when the page loads.  

-- 
=======================================================================
Patrick Dunford, Christchurch, NZ - http://pdunford.godzone.net.nz/

   If only for this life we have hope in Christ, we are to be
pitied more than all men.
    -- 1 Corinthians 15:19
http://www.heartlight.org/cgi-shl/todaysverse.cgi?day=20010411
=======================================================================
Created by Mail2Sig - http://pdunford.godzone.net.nz/software/mail2sig/




Hi,

I am having problems in trying to configure Apache on my PC correctly.

FYI I am using Win95 and PHP4.

I have configured Apache so that it will run PHP scripts, however when I try
to start a session I get the following messages:
---
Warning: open(/tmp\sess_20e483a01d217181f5379858afee4cf4, O_RDWR) failed: m
(2) in d:\apache\htdocs\session.php on line 2

Warning: open(/tmp\sess_20e483a01d217181f5379858afee4cf4, O_RDWR) failed: m
(2) in Unknown on line 0

Warning: Failed to write session data (files). Please verify that the
current setting of session.save_path is correct (/tmp) in Unknown on line 0
----

I can see that the script cannot locate the '/tmp' directory.  What my
question is where does this '/tmp' directory need to be created and do I
need to update the 'httpd.conf' file accordingly, and if so where within it?

Many thanks
Alexis






>I can see that the script cannot locate the '/tmp' directory.  What my
>question is where does this '/tmp' directory need to be created and do I
>need to update the 'httpd.conf' file accordingly, and if so where within it?

On Linux I would say your php.ini

I don't know that much about PHP on Windooz guess it's the same.

Bye,


B.





/tmp is the directory used on Unix systems to store session info. On a
windows box you will need to change it to something like c:\temp or
c:\apache\sessions. IIRC it's in your php.ini file, not httpd.conf.

HTH
Jon


-----Original Message-----
From: Alexis Antonakis [mailto:[EMAIL PROTECTED]]
Sent: 11 April 2001 12:56
To: Php-General@Lists. Php. Net
Subject: [PHP] Apache configuration


Hi,

I am having problems in trying to configure Apache on my PC correctly.

FYI I am using Win95 and PHP4.

I have configured Apache so that it will run PHP scripts, however when I try
to start a session I get the following messages:
---
Warning: open(/tmp\sess_20e483a01d217181f5379858afee4cf4, O_RDWR) failed: m
(2) in d:\apache\htdocs\session.php on line 2

Warning: open(/tmp\sess_20e483a01d217181f5379858afee4cf4, O_RDWR) failed: m
(2) in Unknown on line 0

Warning: Failed to write session data (files). Please verify that the
current setting of session.save_path is correct (/tmp) in Unknown on line 0
----

I can see that the script cannot locate the '/tmp' directory.  What my
question is where does this '/tmp' directory need to be created and do I
need to update the 'httpd.conf' file accordingly, and if so where within it?

Many thanks
Alexis


**********************************************************************
'The information included in this Email is of a confidential nature and is 
intended only for the addressee. If you are not the intended addressee, 
any disclosure, copying or distribution by you is prohibited and may be 
unlawful. Disclosure to any party other than the addressee, whether 
inadvertent or otherwise is not intended to waive privilege or confidentiality'

**********************************************************************




Hi,

I want to use the LDAP functions of PHP to process every entry in an LDAP
directory. Unfortunately the directory contains more than 20000 entries and
the PHP LDAP functions
(ldap_search/ldap_list) report that the timelimit (30 seconds) has been
exceed.

I tried to use ldap_set_option($ds, LDAP_OPT_TIMELIMIT, 0), but this
function doesn't seem to work properly.

I'm currently using Apache 1.3.19 with PHP 4.0.4pl1 and Netscape LDAP SDK
version 4.1.

Does anybody know how I can remove the time limit?

Thanks in advance!

Holger Flocken
[EMAIL PROTECTED]







On Wed, Apr 11, 2001 at 02:07:04PM +0200, Holger Flocken wrote:
> Hi,
> 
> I want to use the LDAP functions of PHP to process every entry in an LDAP
> directory. Unfortunately the directory contains more than 20000 entries and
> the PHP LDAP functions
> (ldap_search/ldap_list) report that the timelimit (30 seconds) has been
> exceed.
> 
> I tried to use ldap_set_option($ds, LDAP_OPT_TIMELIMIT, 0), but this
> function doesn't seem to work properly.
> 
> I'm currently using Apache 1.3.19 with PHP 4.0.4pl1 and Netscape LDAP SDK
> version 4.1.
> 
> Does anybody know how I can remove the time limit?

If the LDAP server supports it and is willing the option should work.
You might want to look at the server config if you are able to. To
test if the option works, you might try to set the timeout to say 10s.
If it works I expect you to be able to shorten the timeout, but the
server might refuse extending it.

Stig




I don't find any idea on what this error is due?
I can not include PHP support in apache.

Mohamed Ould a écrit :

> Hi,
>
> I goot this error when "make" apache with php:
>
> usr/local/mysql/lib/libmysqlclient.a(my_compress.o): In function
> `my_uncompress':
> my_compress.o(.text+0x9a): undefined reference to `uncompress'
> /usr/local/mysql/lib/libmysqlclient.a(my_compress.o): In function
> `my_compress_alloc':
> my_compress.o(.text+0x12a): undefined reference to `compress'
> collect2: ld returned 1 exit status
> make[2]: *** [target_static] Erreur 1
> make[2]: Quitte le répertoire `/usr/local/etc/apache_1.3.14/src'
> make[1]: *** [build-std] Erreur 2
> make[1]: Quitte le répertoire `/usr/local/etc/apache_1.3.14'
> make: *** [build] Erreur 2
>
> Can anyone helps.
>
> Thanks
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]





Hello all, I think most of users knows about news://news.php.net and list archives, if you use your mail client's reply button, it becomes part of a thread. (It does not start new thread) Therefore, do not post new topic using reply button. Regards, -- Yasuo Ohgaki



[  I will never again repeat this message to the PHP Mailing List out 
of courtesy for all of the respected members of this list.  For those 
of you whom take the time to read this email, thank you, and I hope you 
find its contents useful to your present and future endeavors...  ]

http://matrix.swifte.net/



Hello!!

My name is Robert S. White.  Today's my 24th birthday.  Birthdays are 
special to me, so today has already turned out to be very exciting.    
However, today holds an even greater significance for me than the 
passing of another year.  Today, I am officially launching the 
completion of a two-year development project to the world, Swift 
eNetwork.  I am offering an innovative new service to the Internet 
market and communities, one that I believe could potentially benefit 
many members of the PHP community.



So, what is Swift eNetwork?  ************

Swift eNetwork is an international networking resource for businesses, 
organizations, groups, and individuals of diverse backgrounds and 
interests.

I know, that's a pretty mundane definition.  The depth and complexities 
of Swift eNetwork run very deeply.  And the advantages of having a web 
presence at Swift eNetwork are plentiful.

Building your website at Swift eNetwork is a simple process.  From your 
Client Control Panel, you have access to all of the tools and resources 
you need to maintain a professional and dynamic web presence online.



How does Swift eNetwork work for you?  ************

- Creates a dynamic and professional web presence to you and your 
visitors.

- Provides you with visitors best served by your business or 
organization.

- Allows easy customization of your website without the complicated 
process of programming.  (Unless, of course, you like to program, and 
that option is available too... :)

- Provides easy access to a diverse set of tools geared toward your 
business or organizational needs.



What are the resources and tools available to you?  ************

- Client Control Panel
- Real-Time Account Information
- Website Wizard
- Webmaster Mailbox
- Website Statistics & Analysis
- Website Maintenance
- Online Self-Help Library
- Around-The-Clock Technical Support
- Advertising & Marketing Essentials
- Applications (Plugins)



How does Swift eNetwork relate to the PHP community?

Well, on several levels actually.

First of all, Swift eNetwork is powered by all open source 
technologies:  Linux, Apache, PHP, MySQL.

Secondly, Swift eNetwork is powered by its own class-oriented language, 
eNetwizard.  I designed eNetwizard using PHP and MySQL.  Included with 
eNetwizard is an extensive core library, each class (there's about 
twenty so far) handling a specific function of the network.  eNetwizard 
also includes an extensive and ever-growing library of plugin 
applications (around fifteen so far), based upon the demands of my 
clients.  Each plugin works like an application that is completely 
integrated into the Swift eNetwork infrastructure (the matrix).  Some 
web presence accounts include access to the eNetwizard class library 
(along with online reference materials to get you up to speed with the 
powerful language) and access to a subset of the PHP functions as well, 
allowing my clients to build their own applications right into the 
Swift eNetwork infrastructure.

Web presence accounts are as little as $25/mth.  And if you sign up for 
a web presence account before May 1, 2001, I'll give you one month free 
for every month you initially pay for.  =)



************

Once again, I want to thank you for your time.  If you have any 
questions about Swift eNetwork or are interested in becoming a client 
or an associate of Swift eNetwork, please feel free to email me.  Also, 
to gain instant access to your web matrix at Swift eNetwork, sign up 
online at http://matrix.swifte.net/


Sincerely,

Robert S. White
President, Si
http://si.swifte.net/
http://rswfire.swifte.net/


To learn more about Swift eNetwork, visit the matrix:
http://matrix.swifte.net/

















Reply via email to