php-windows Digest 26 Jan 2003 13:21:24 -0000 Issue 1556

Topics (messages 18100 through 18105):

Re: PHP and Win95
        18100 by: J Veenhuijsen
        18102 by: Cam Dunstan

converting a Recorset into an XML string
        18101 by: Octavio Herrera

Re: Newbie email question
        18103 by: Dash McElroy

A Date and Time Library for all seasons
        18104 by: John Lim

php-win2k error in apache as isapi module
        18105 by: Vikas Pande

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 have a 133 Mhz machine running win95/PHP/MySQL and also acts as a mailserver.

BTW the webserver is SAMBAR 5.0

Jochem


Conny Wikman wrote:
Can anyone please help me?

I installed Apache 1.3.27 on my Windows 95 machine, which is a P120MHz (I
know I am a bit retro).The webserver works fine but I can't configure PHP4.
After editing the php.ini and httpd.conf files I restarted the server and
made a test.php file. The syntax in the .php is correct since I copied it
from an article.

When trying to access the test file I get a error message saying:
"The PHP.EXE file is linked to missing export KERNEL32.DLL"
Can anyone explain what it means and even better how I could solve this
problem.

Thank you very much in advance!
Conny



--- End Message ---
--- Begin Message ---
Conny,
This is not a solution to your kernal32 problem necessarily though I suspect
it might be by default, but try to upgrade to Win98 if you can, Second
Edition if possible. and run PHP in CGI mode.   For development purposes
(but not production of course) this is the by far easiest platform to work
on.  When you look back on the list, a huge number of problems are either
setup or config or permission dramas on higher platforms.   With win98 and
CGI none of these are an issue, typically.

I have often thought that a "one click" no-brainer bullet-proof beginners
totally automatic installer package for the apache mysql php trio would be a
good thing -  complete with a little developer`s environment, project
organiser, code editor, sample scripts and so forth.  There`s some great
tools out there, including installer packs, may aimed at established
developers,  but nothing quite like this, as far as I know, for free.

What does the membership at large think of the value of such for
ewcomers?  - with a STRONG emphasis on freedom from drama to help newcomers
get airborne rather than optimum fanciness or performance for high volume
developers??

Cheers.







----- Original Message -----
From: "Conny Wikman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, January 25, 2003 5:35 PM
Subject: [PHP-WIN] PHP and Win95


> Can anyone please help me?
>
> I installed Apache 1.3.27 on my Windows 95 machine, which is a P120MHz (I
> know I am a bit retro).The webserver works fine but I can't configure
PHP4.
> After editing the php.ini and httpd.conf files I restarted the server and
> made a test.php file. The syntax in the .php is correct since I copied it
> from an article.
>
> When trying to access the test file I get a error message saying:
> "The PHP.EXE file is linked to missing export KERNEL32.DLL"
> Can anyone explain what it means and even better how I could solve this
> problem.
>
> Thank you very much in advance!
> Conny
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--- End Message ---
--- Begin Message ---
Hello everybody, I make a function that lets you convert a recordset
obtained via mysql_query() into an XML string:
maybe could be helpfull to yours

this is the function

it have 3 parameters:    $rs is the recordset you want to convert
                                    $padre is the name for the parent node
that will contain every record on the recordset
                                    $hijo is the name for the child node
that will contain a single record in the recordset



function rs2xml($rs,$padre,$hijo){
 $num_campos=mysql_num_fields($rs);
 $num_filas=mysql_num_rows($rs);

 if($padre!="-1")
  $xml="<$padre>\n";
 else
  $xml="";

 $cont1=0;
 while($cont1<$num_filas){
  $fila=mysql_fetch_array($rs);
  $xml.="<$hijo>\n";
  $cont=0;
  while($cont<$num_campos){
   $nombre_campo=mysql_field_name($rs,$cont);
   $valor_campo=$fila[$cont];
   $xml.="<".$nombre_campo.">".$valor_campo."</".$nombre_campo.">\n";
   $cont++;
  }
  $xml.="</$hijo>\n";
  $cont1++;
 }
 if($padre!="-1")
 $xml.="</$padre>\n";
 return $xml;
}

I hope this will be helpful for you

OCTAVIO HERRERA




--- End Message ---
--- Begin Message ---
Sorry for the late reply - the MsSQL worm of late knocked out my email :(

So, your PHP server is offsite. What kind of access to this machine do you
have? Is it simply FTP/HTTP? If so, your options will be limited.

If you don't have access to PHP.INI, you could use the ini_set() command:

ini_set("SMTP", "newvalue");
ini_set("sendmail_from","[EMAIL PROTECTED]");

You would have to do that each time you wanted to send mail.

It is possible (if the host is using Apache) you can set up a ".htaccess"
file (you'll have to change that in the config because windows hates dot
filenames) to change the values there. The syntax is like php_value, I
don't use it enough to remember exactly what it wants.

Debugging would most likely require some kind of administrative access to
either the web server or the mail server. Most likely the mail server. I
have had relay issues abound with Exchange servers (even when set to their
DEFAULT relay capable status, stupid *stupid* Microslop). I gave up and
just pointed it to my linux box instead. Worked fine for internal emails,
though (i.e. for domains Exchange handled).

-Dash

Acid absorbs 47 times it's weight in excess Reality.

On Sat, 25 Jan 2003, Alex Davis wrote:

> Is there a way to debug the script on remote server?
>
>
> "Dash McElroy" <[EMAIL PROTECTED]> wrote in message
> news:<[EMAIL PROTECTED]>...
> > Alex,
> >
> > You have to point it at your ISP's SMTP server (assuming this is for
> > home). Check your mail program for your SMTP server. Sendmail is a
> > unix thing, although there are similar programs available for Windows,
>
> > your best bet is to use an existing server. Mail from unknown sources
> > is likely to be rejected or declared "spam". Your PHP.INI file holds
> > the key. Change it (and the mail from value) and restart your web
> > server.
> >
> > -Dash
> >
> > A physicist is an atom's way of knowing about atoms.
> >             -- George Wald
> >
> > On Fri, 24 Jan 2003, Alex Davis wrote:
> >
> > > I followed the instructions in a php manual to write a script that
> > > will send emails using mail() function.  Only one problem, where is
> > > my sendmail program on windows XP. Or what do i need to configure in
>
> > > the php.ini file?
> > >
> > >
> > >
> > > --
> > > PHP Windows Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> > >
> >
>
>
>

--- End Message ---
--- Begin Message ---
Download: http://php.weblogs.com/adodb_date_time_library

PHP native date functions use integer timestamps for computations.
Because of this, dates are restricted to the years 1901-2038 on Unix
and 1970-2038 on Windows due to integer overflow for dates
beyond those years.

This has been frustrating for me, so i developed this library to overcome
these limitation by replacing the native function's signed integers
(normally
32-bits) with PHP floating point numbers (normally 64-bits) when
necessary. This library supports dates from 100 A.D. to billions of years in
the future.

It also fixes the problem of negative timestamps (pre-1970)  not supported
on Windows.

To use, simply replace

 getdate()  with  adodb_getdate()
 date()     with  adodb_date()
 gmdate()   with  adodb_gmdate()
 mktime()   with  adodb_mktime()
 gmmktime() with  adodb_gmmktime()

This library is available as a standalone PHP file, and you do not have
to use the ADOdb database abstraction classes if you do not want to.

Performance

For high speed, this library uses the native date functions where possible,
and only switches to PHP code when the dates fall outside the 32-bit signed
integer range.

Quality Assurance

For QA, several thousand dates were randomly generated and the results
of the adodb_* date functions were compared with the native PHP versions.
Years between 100 A.D. and 3000 A.D were also tested. The code is
Y2K compliant




--- End Message ---
--- Begin Message ---
What is going wrong and where it is going wrong I dont
know?

I was trying my first script with sessions.
Before testing the script, I did following change in
php.ini in winnt\system32
register_globals=Off
The code I was trying was:
-----
<?php

$os = "BSD";

session_register($os);  

$name = "devon";

$devon = "my name";

session_register($name);        //registers variable "devon"
with value "my name"
?>
-----
Immediately I got the error the following error
a
Critical Error Button
Message: The Instruction at "0x006c956c" referenced
memory at "0x8b2b43b1:. The memory could not be
"read". Click OK to terminate the program. Click
Cancel to debug the problem.

Please help me where have I gone wrong:
either in modifying php.ini
or choosing php as apache module
or anything else in configuration.

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
--- End Message ---

Reply via email to