php-windows Digest 10 Sep 2001 09:07:23 -0000 Issue 747

Topics (messages 9275 through 9282):

Re: bug in class?
        9275 by: Alain Samoun
        9279 by: jlim.natsoft.com.my

Using com_get() or com_propget()
        9276 by: Kelvin Param

Re: php4apache.dll not loading under W98/Apache/PHP4.0.4
        9277 by: Ignatius Teo

Re: What's my problem with nl2br and a text file?
        9278 by: Brad Thomas

Re: PHP on W2K/IIS5 issues
        9280 by: Roman Spanner

Unable to fork???
        9281 by: Leon

Re: mail(); Help
        9282 by: Christoph Biernoth

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]


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


Hi John:
I should have though of ADODB of course, so after more testing, it seems
that the problem is not the number of functions, but their 'complexity',
more probably the quantity of memory they take globally. It seems that it's
like PHP is reserving some memory for each function and reaches a maximum.
I'm not familiar enough with the gpf message, but does "PHP caused an
invalid page fault" points to a memory problem?
Alain

On Sun, Sep 09, 2001 at 06:44:54PM +0800, John Lim wrote:
> Hi Alain,
> 
> ADODB has more functions in a class and it doesn't crash as a CGI on
> Windows. Must be something else.
> 
> Ciao,
> John
> 
> "Alain Samoun" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > I have a class with several functions, 20 at this time. If I add a new
> > function (21 total), when I call the class, I get a gpf that says:
> >
> > PHP caused an invalid page fault in
> > module PHP4TS.DLL at 015f:1008b842.
> >
> > If I add the new function and get rid of any one of the other functions,
> the
> > gpf disappears, and everything is fine with any functions that I use.
> > My conclusion is that under windows 98 with Apache 1.3.9 and PHP4.06 as
> CGI,
> > the maximum number of functions allowed in a class is 20.
> > This should be declared as a bug, but can anyone in this list confirms it?
> > Alain
> >
> 
> 
> 
> -- 
> PHP Windows 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]




Hi Alain,

The GPF crash could mean anything. Perhaps increasing the amount of memory 
in php.ini

     memory_limit=8M            

might help.

Regards, John

---
"Stressed spelled backwards is desserts."
[EMAIL PROTECTED]   NATSOFT MALAYSIA  (60)3-706 1216
 
   Visit this web site for Asian and local Internet news
     http://webfeet.editthispage.com/
   My PHP website:
     http://php.weblogs.com/




Hello.

How does one translate the following so that com_get() or com_propget()
can be used in its place?

This works: $fv=@$oRecordset->Fields[0]->Value;

I want translate the above to this form: $fv=com_get(???,???);

I am using the COM functions in PHP4 for Win32 to access the Active
Directory.

Thanks in advance.


Kelvin





The main reason php4apache.dll will not load would be because there is
something misconfigured in php.ini - probably one of the extensions are not
being loaded.
I would comment out the extensions in php.ini and try loading php4apache.dll
again,then turn the extensions on one at a time and see what breaks.

Ignatius
BTW, you should get 4.0.6


----- Original Message -----
From: "Jean Philippe Reis" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, September 09, 2001 2:28 AM
Subject: [PHP-WIN] Re: php4apache.dll not loading under W98/Apache/PHP4.0.4


>
> "Darren Ls" <[EMAIL PROTECTED]> escreveu na mensagem
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> >
> > "Jean Philippe Reis" <[EMAIL PROTECTED]> wrote in message
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > I'm using windows 98, Apache 1.3.19 and php 4.0.4, and it used to work
> > fine
> > > until some weeks ago. Now when I start apache, with php configured as
a
> > > module, it gives me the folowing error:
> > > "Syntax error on line 190 of c:/programas/apache
> > > group/apache/conf/httpd.conf:
> > > Cannot load c:/programas/php/sapi/php4apache.dll into server: (31) A
> > device
> > > connected to
> > > the system is not working:"
> > > (Last sentence is a translation from portuguese).
> > > First, it gave me an error because of odbc32.dll, but the I
de-installed
> > and
> > > re-installed Access 2000, and it started to give this other error.
> > > It has always worked fine before with this config. The error must (at
> > least
> > > that's what i think...) dll related.
> >
> > it depends whats on whats on line 190 of httpd.conf
> > >
> > >
> >
> >
> Well on the 190 and 191 line of httpd.conf is the following:
>
> LoadModule php4_module c:/programas/php/sapi/php4apache.dll
> AddType application/x-httpd-php .php4
>
> As I said before, it has always worked fine with this config., until
> recently.
>
>
>
> --
> PHP Windows 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]
>





Yes!
I've got this exact same problem

I think it has something to do with the format of a text file not recording
file break positions
But that doesn't really explain why notepad can display them perfect :(


"John Asendorf" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Why am I having such a hard time with this code?
>
>
> $doc = "doc.txt";
> $text = nl2br ( readfile ("D:\\foob\\bar\\foo\\$doc" ) );
> echo $text;
>
> OR
>
> $doc = "doc.txt
> $text = readfile ( "D:\\foob\\bar\\foo\\$doc" );
> $text = nl2br ( $text );
> echo $text;
>
>
> NEITHER of these give me any breaks...  I'm at my wits end here.  This
seems
> like a no brainer... I get the text file without any problem, but there
are
> no breaks in what is echoed.  Anyone?
>
> PHP 4.0.7-dev from php4win
>
> ---------------------
> John Asendorf - [EMAIL PROTECTED]
> Web Applications Developer
> http://www.lcounty.com - NEW FEATURES ADDED DAILY!
> Licking County, Ohio, USA
> 740-349-3631
> Aliquando et insanire iucundum est
>






Rich

That seems to have sorted it.

Cheers

Roman


"Richard Powys" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I had the same problem.
>
> I change my \ to / and I dont appear to get these error messages anymore.
> However that doesnt mean that its all working.
>
> HTH.
>
>
> "Roman Spanner" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > I have install PHP 4.0.6 as per the install.txt.
> >
> > Everything is fine (in terms the test script runs), but it cannot load
the
> > some of the extensions.  I get the following erros;
> >
> > Unable to load dynamic library 'c:\php\extensions/php_domxml.dll' - The
> > specified module could not be found.
> > Unable to load dynamic library 'c:\php\extensions/php_sablot.dll' - The
> > specified module could not be found.
> > Unable to load dynamic library 'c:\php\extensions/php_domxml.dll' - The
> > specified module could not be found.
> > Unable to load dynamic library 'c:\php\extensions/php_domxml.dll' - The
> > specified module could not be found.
> > Unable to load dynamic library 'c:\php\extensions/php_sablot.dll' - The
> > specified module could not be found.
> > Unable to load dynamic library 'c:\php\extensions/php_sablot.dll' - The
> > specified module could not be found.
> >
> > The two files in question (php_domxml.dll and php_sablot.dll) are
> correctly
> > located in 'c:\php\extentions'.  I've noticed that the actually path is
> not
> > quite right, in terms of mixed use of \ and /.  Can this have anything
to
> do
> > with it?
> >
> > Do these two files need additional support  files in order for them to
> work
> > properly?
> >
> > Thanks in advance
> >
> > Roman
> >
> >
>
>






Hi all

I am witnessing a odd error:
PHP unable to fork in ......

This script is stiill able to run etc.
What is this?

Cheers
Leon





You forgot to declare $sitename and $admin_mail as global variables in your
function.

Either declare them global by adding the following line to your function:
   global $site_name, $admin_mail;
or use the PHP-GLOBALS-Array:

function new_user_mail ($username, $password, $email, $name, $homepage){
...

"From: $GLOBALS["site_name"]\r\nReply-to: $GLOBALS["admin_mail"]\r\n");

}


"Chris Burwell" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I am having a little trouble getting my script to work correctly. PHP send
> the mail out fine, but when i see the mail in my inbox, it have no from
> address. I have tryed to figure out why this is not working, but i have
gad
> no sucess. I have enclosed the code below, any help is greatly
appreciated!
> ---------------------------
> function new_user_mail ($username, $password, $email, $name, $homepage)
> {
> $subject = "Welcome to the $site_name community!";
> $body = "Thank you for registering to become a memeber of the $sitename
> community!
> You have registered with the following information:
> Username : $username
> Password : $password
> Name : $name
> E-Mail : $email
> Homepage : $homepage
>
> You are now able to login to our community at this time. If you have any
> questions you may contact our administrator.
> If you did not sign up for this account simply reply to this E-Mail with
the
> word 'REMOVE' in the body.
>
> Have Fun!";
> mail($email,
> $subject,
> $body,
> "From: $site_name\r\nReply-to: $admin_mail\r\n");
> }
> ----------------------------------------
>




Reply via email to