php-windows Digest 11 May 2001 19:47:59 -0000 Issue 592

Topics (messages 7484 through 7495):

Question about strftime function
        7484 by: Michel Laine

Re: Need some HELP Please !
        7485 by: Walter Schruefer

HELP WITH PHP INSTALL!
        7486 by: Fusion

ISAPI
        7487 by: Daniel Sichta
        7489 by: Phil Driscoll

PHP Conference in July
        7488 by: Asendorf, John

LDAP By Example
        7490 by: Dickerson, Monty

Re: PHP 4.0.5 COM bugs
        7491 by: BigPants

Access Violation with XML_PARSE in PWS
        7492 by: BigPants

New function help
        7493 by: Tim Lofstrom
        7494 by: Tim Lofstrom

Re: need some help with apahce-php-mysql under windows
        7495 by: J. Wynia

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]


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


Configuration: PHP 4.04pl1 and MySQL 3.23.35 on a W98SE / PWS.

I am trying to output the week number in a simple calendar application i
have.
(Why don't any of the calendars examples out there have week numbers?)

In the php manual it says:

strftime
Usage: string strftime (string format [, int timestamp])

%U - week number of the current year as a decimal number, starting with
the first Sunday as the first day of the first week
%V - The ISO 8601:1988 week number of the current year as a decimal
number, range 01 to 53, where week 1 is the first week that has at least
4 days in the current year, and with Monday as the first day of the
week.
%W - week number of the current year as a decimal number, starting with
the first Monday as the first day of the first week

I believe that i (located in sweden) should use the %V option.
So if i run this code:

<?
$currYear=2001;
$currMonth=5;
$currDay=10;

$week = strftime("%A %V %U %W",
mktime(0,0,0,$currMonth,$currDay,$currYear));
echo $week;
?>

I get this output: "Thursday 18 19".
It seems like the %V does not show.
Why not?
"19" is correct, but i really feel more comfortable if i could get the
%V option going.

Does it have something to do with setlocale()?
By the way, how the #Ī%& do a call to the setlocale() function look like
if i want Swedish settings?

--

Michel Laine

NOTE!
If you reply directly to me (instead of the list) you have to remove the
NOSPAM in the email address before replying!





ok, here ar the details:

CPU: AMD Athlon 850
RAM: 128 MB
Windows 98 SE

Xiami Vsn 2.5b4   -  in a folder c:\Xitami
PHP 4.0.5  -  in a folder c:\php4

Then we changed in Xitami's "defaults.cfg"
     [Filter]
        .php=C:\PHP4\php.exe
        .php3=C:\PHP4\php.exe
        .phtml=C:\PHP4\php.exe

    [Mime]
        Php=application/x-httpd-php
        Php3=application/x-httpd-php
        Phtml=application/x-httpd-php

Next thing, we modified "php.ini" in Windows system
    ; Directory in which the loadable extensions (modules) reside.
    extension_dir=c:\php4

After restarting the server we can load html-files into the browser with no
problem, but if we call a .php file (even without any php tags), the screen
remains blank.
In the debug file of Xitami it reads:

    2001/05/10 16:44:27: Resolving URL request: /bteam/Seite3.php
    2001/05/10 16:44:27:  - URL handled by filter 'C:\PHP4\php.exe'
    2001/05/10 16:44:27: - request refers to a normal readable file
    2001/05/10 16:44:27: Transfer file=C:\WINDOWS\TEMP\pipe0001.flt size=0
from=0

Hope this helps to identify my problem...


Thanks in advance

Vern DeHaven schrieb:

> Network BlitzTHANK YOU times 1000!  This installer uses 4.0.4, which seems
> to work beautifully with PWS.  I could not get 4.0.5 or 4.0.6 to work with
> it.
>
> OK now, what kind of functionality is mising?  Hmm...
>
> Another thousand thanks,
> Vern DeHaven
>
> "DJ" <[EMAIL PROTECTED]> wrote in message
> 9derdj$e07$[EMAIL PROTECTED]">news:9derdj$e07$[EMAIL PROTECTED]...
> > I just finished installing PHP on a Win98 PC with Microsoft Personal Web
> > Server.
> >
> > I'd downloaded the Windows PHP setup here:  http://php.weblogs.com/  Be
> sure
> > to read the readme file.
> >
> > Have you done this?
> >
> >
> > "Walter Schruefer" <[EMAIL PROTECTED]> wrote in message
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > Hi everybody !
> > >
> > >
> > > We are trying to install PHP 4.0.5 and Xitami 2.5 on a win98
> > > and we donīt get PHP to work. Is anybody available to give
> > > us some ideas where to look first?
>
> _________________________________________________________
>
> Do You Yahoo!?
>
> Get your free @yahoo.com address at http://mail.yahoo.com
>
> --
> 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]

--
_______________________________________________
Walter E. Schruefer
ESS Vertriebs GmbH
Liborius-Wagner-Strasse 15
D-97076 Wuerzburg

Tel.:  (+49) (0) 9 31/2 77 95
Fax:   (+49) (0) 9 31/2 77 90

http://www.ess-gmbh.de/





I have re-downloaded and installed php but i get an error on my  win200 box saying (no 
point in msrtv.dll or something..) can you help me?




Hi all there,
My cfg: W2000,Apache 1.3.14, php4.0.5 as CGI.
In this cfg pages are loading very slow. How can I change httpd.conf to use
php as ISAPI module
Thank you


Ing. Daniel Šichta
CUSTOM.web s.r.o.
Hodžova 13
01001 Žilina, SLOVAKIA
++421 89 564 3474
mobile ++421 905 839 334
www.customweb.sk <http://www.customweb.sk>
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
ICQ: 84700861

---
Odchádzajúca správa neobsahuje vírusy.
Skontrolované antivírusovým systémom AVG (http://www.grisoft.cz).
Verzia: 6.0.251 / Vírusová databáza: 124 - dátum vydania: 26. 4. 2001





ISAPI is for the Microsoft web server, IIS. You need the apache module
version of php. It is included in the zip Windows distribution on the
downloads page at www.php.net

Cheers
--
Phil Driscoll
Dial Solutions
+44 (0)113 294 5112
http://www.dialsolutions.com
http://www.dtonline.org





So who's going to be at the PHP Conference in July?  I talked my boss in to
sending me to the "only PHP classes offered on earth."

http://conferences.oreillynet.com/cs/os2001/pub/10/register.html

John

---------------------
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





HOWDY

Can anyone point me toward any opensource projects for an LDAP
explorer/client written in php? 
And/or a book with a good chapter on using LDAP from php (not Hughes'
cookbook)?

Regards,
Monty Dickerson 






I also have encountered an access violation when using xml_parse

How do we solve/get round it ?

Phil
"Alain Samoun" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Yes, COM is completely broken in 4.05
> Alain
>
> On Wed, May 02, 2001 at 06:51:14PM +1000, Jason Gan wrote:
> > I ran a brief ADODB test and it gave me an Access Violation Error.
> >
> > PHP has encountered an Access Violation at 2474FF04
> >
> > when parsing this line:
> >
> > $fields = $rs->Fields;
> >
> > where $rs is the recordset from the SQL database.
> >
> >
> > I got the following error messages when using MSXML Parser 3.01 to load
an
> > XML string:
> >
> > PHP has encountered an Access Violation at 011C2655
> >
> > and
> >
> > PHP has encountered an Access Violation at 011C265B
> >
> >
> > --
> > 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]
>
> --
> 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]
>






I am getting an access violation error when using the xml_parse function. No
other xml function gives me any trouble.
I am using Win98 PWS / PHP 4

HELP!!!

Phil






Looking for reverse_array as a user added function. Anyone have it?

I have been working on a new script on my Windows development platform,
which has array_reverse in it, uploaded it to the production site, which
does not have the latest on it, and which I cannot update. Someone else's
area of responsibility, so I have to wait.

Meanwhile, I think I can write the function, and add it as a user function
(until the update goes through), but I am also sure that someone else could
do it much better, if it is not already done.

While I was at it I decided to, but could not get the php.net site to
respond, check what other surprises may await me, (differences between my
development version and the production version).

Does anyone have the updates between 4.0B2 and 4.05

Until next ....

Tim Lofstrom
MCSE (but the E does not mean engineer anymore in Canada? (;>)






Here is my attempt: Any improvements welcomed.


function array_reverse_priv ($WorkArray)
{
        $CountWorkArray = count($WorkArray) ;
        for ($i = 0 ; $i < $CountWorkArray ; ++$i)
        {
                $NewArray[$i] = array_pop ($WorkArray) ;
        }
        return $NewArray ;
}

Until next ....

Tim Lofstrom
M.C.S.E.

Original:

Looking for reverse_array as a user added function. Anyone have it?






There's a link to start MySQL in your start menu under PHPTriad along with
the one to start Apache. MySQL flashes a DOS window and then stays running
in the background until you reboot. PHPMyAdmin is installed along with
PHPTriad and is in c:\apache\htdocs\phpmyadmin.

hi all, hope you can help me
i'm new with php, i downloaded phptriad for windows
already installed it, but i don't know how to start mysql
I'm looking for phpmyadmin but can't find it
thanks a lot to all for reading this mail and hope you can help me
Xytras





Reply via email to