php-windows Digest 28 Jan 2003 10:01:46 -0000 Issue 1559

Topics (messages 18123 through 18129):

Re: Redirecting to index.php
        18123 by: cybot
        18124 by: Brian 'Bex' Huff

Re: How do i load my new activex dll?
        18125 by: Brian 'Bex' Huff

Re: php-win2k error in apache as isapi module
        18126 by: cybot

incomplete phpsrvlt.jar
        18127 by: WalWit

parsing tricky text file
        18128 by: George Pitcher
        18129 by: J.Veenhuijsen

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 ---
check your httpd.conf at DirectoryIndex

Dave wrote:
Hey guys,

I am wondering how, when people go to my main site, http://splix.dyndns.org,
they get redirected to index.php.

I am used to using HTML, where the first page the user sees is index.html.
How can I do this with PHP?

Thank,
Dave


--
Sebastian Mendel

[EMAIL PROTECTED]

www.sebastianmendel.de
www.tekkno4u.de
www.nofetish.com

--- End Message ---
--- Begin Message ---
this isn't a function of PHP, its a function of your web server. You need to tell your web server (or ISP) to use index.php just like it would use index.htm or index.html.

Check the Apache docs or IIS docs for more info...

--

Brian 'Bex' Huff
[EMAIL PROTECTED]
Phone: 952-903-2023
Fax: 952-829-5424

Hey guys,

I am wondering how, when people go to my main site, http://splix.dyndns.org,
they get redirected to index.php.

I am used to using HTML, where the first page the user sees is index.html.
How can I do this with PHP?

Thank,
Dave



--- End Message ---
--- Begin Message ---
If you have made a COM object, you can use the COM PHP functions, documented here:

http://www.php.net/manual/en/ref.com.php

If you just have a normal, cheezy DLL, you'll have to use the somewhat less tested, and possibly less stable, Win32API extension:

http://www.php.net/manual/en/ref.w32api.php

Lots of handy tips are at the bottom of these pages in the comments sections...

--

Brian 'Bex' Huff
[EMAIL PROTECTED]
Phone: 952-903-2023
Fax: 952-829-5424


hey ya,

I have made a new dll "prjMD5.dll" in visual basic's, so i can use the same
MD 5 hash for my website, and my chat server passwords.

anyhow.

Now i have my new DLL

How do i load the function in my dll?

My function's Name is "MD5Encrypt"

and only has 1 value: "password"

ie: $hased = md5encrypt($password);

but i dont know how to load the dll..
ne 1 wish to help me with this please?

Thanks
My email address is
w_pearsall[at]yahoo.co.uk



--- End Message ---
--- Begin Message ---
why do you not try

session_start();
$_SESSION["BSD"] = '';
$_SESSION["devon"] = "my name";

 ???

Vikas Pande wrote:
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
--
Sebastian Mendel

[EMAIL PROTECTED]

www.sebastianmendel.de
www.tekkno4u.de
www.nofetish.com

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

Configuration:
Windows 2000 Professional
Apache 1.3
Tomcat 4.0
PHP 4.3.0

I'm trying to run PHP 4 as a servlet under Tomcat. However the phpsrvlt.jar
only contains net.php.reflect.class but according to configuration
information it should also have servlet.class and formatter.class. Where can
I find these classes ?

I found a phpservlet.jar from an older PHP version but then I get the error
that procedure php_unregister_ini_entries does not exist.

Any information regarding this issue would be great.

Walter.
=May the source be with you=


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

I'm looking for some advice.

One of my suppliers (big publisher) has sent me a file containing records of
their books. The file is anabsolute nightmare.

There are approx 8000 records and the format is like this (actual record):

-T&F eBook data rec.1534 @ 27/01/2003
VISBN 0203445570
OSBN  0-203-44557-0
EBK1  0203548310
EBK2  0203651057
EBK3  020375381X
EBK4  0203273567
OTOP
OTART
OTI   Creative Mathematics
OSUB
USAU  Upitis |f Rena |u Queens University |c Kingston, Ontario |x
      Canada
USAU  Phillips |f Eileen |u Teacher |c Vancover |x Canada
USAU  Higginson |f William |u Queens University |c Kingston |x
      Canada
EDIT
INTRO
FORWD Pimm |f David |u The Open University x| UK
TRANS
2BIND 0415164621 |P 70.00 |U 100.00 |B Hb |A  |M 1 |T Creative
      Mathematics
VPR   11.99
USPRI 17.99
OTBPR 19.99 |U 25.95 |D 17/07/1997
USBDG
MFDT
ERT   GB US CA AU NZ ZA IE
ORT
NRT
TTY
OBIND eB
PDUE  11/03/2002
VIZE
VEXT  192
OILLS 40 illustrations
LEVEL
OSER
OIMP  RoutledgeFalmer
LIBPR
OALT
OPPQ
OCATL This book shows how creative maths can <I>really</I> work.
      Exploring the ways in which maths skills can be learned
      through cross-curricular activities based on visual arts
      and music, the book presents maths as a meaningful and
      exciting subject which holds no fears for children.<BR> The
      authors recognise that while maths-phobia prevails in our
      increasingly mathematicised world, attitudes and
      approaches to teaching the subject need to be reviewed,
      and issues such as gender stereotyping, which encourage
      maths-apathy, need to be tackled at an early stage.<BR>
      Within this collection of classroom-based stories are
      detailed examples of integrative mathematic projects;
      these will give teachers the confidence to try out
      cross-curricular activities in their classes. The book
      also provides support with difficult areas such as
      assessment, planning and development.<BR> Fascinating to
      read in its own right this book will appeal to the
      specialist and non-specialist alike.<BR>
OCONC This book shows how creative maths can <I>really</I> work.
      Exploring the ways in which maths skills can be learned
      through cross-curricular activities based on visual arts
      and music, the book presents maths as a meaningful and
      exciting subject which holds no fears for children.<BR> The
      authors recognise that while maths-phobia prevails in our
      increasingly mathematicised world, attitudes and
      approaches to teaching the subject need to be reviewed,
      and issues such as gender stereotyping, which encourage
      maths-apathy, need to be tackled at an early stage.<BR>
      Within this collection of classroom-based stories are
      detailed examples of integrative mathematic projects;
      these will give teachers the confidence to try out
      cross-curricular activities in their classes. The book
      also provides support with difficult areas such as
      assessment, planning and development.<BR> Fascinating to
      read in its own right this book will appeal to the
      specialist and non-specialist alike.<BR>
OCATS Exploring the ways in which maths skills can be learned
      through cross-curricular projects on arts and music, this
      book presents maths as a meaningful and exciting subject
      which holds no fear for children.
OQUO  'This is a fascinating book ... which gives detailed case
      studies.' |I Infant Equipment
OCNT
FCONT
OWRIT
VEDIT 1
BICAC U
BSUB1 J
BSUB2 JD
BSUB3
BICAV RF
SUBJ1 SB150000
SUBJ2
SUBJ3
VPROD EB
VACDE WEB
CREAT MFK - AUTO |D 2002 07 19

So as you see, the filed names are at the left hand side with the data
starting at position 6 (5 if the line-start is 0). I usually use Excell to
clean up this sort of stuff but those fields with a lot of text in them just
get trashed in the process.

I have used Frontier to parse ACARS logs in the past and I thought that PHP
might be able to help out here.

I want to be able to convert the fieldname (where it is duplicated in a
record) so that each one is unique. Strip out returns, replacing with [tab]
and the producing an output file that can be imported into a db (MySQL
eventually but I'm using FileMaker right now).

Any suggestions (that do not involve a pistol)?

George in Oxford






























===

George Pitcher
HERON Technical Manager
Ingenta plc
23-38 Hythe Bridge Street, Oxford, OX1 2ET
T  +44 (0)1865 799137 direct
T  +44 (0)1865 799000 switchboard
F  +44 (0)1865 799134
E  [EMAIL PROTECTED]

www.ingenta.com
Ingenta: Empowering the exchange of academic and professional content
online.

--- End Message ---
--- Begin Message ---
What I would do in this case is writing my own little
parser program to spool it in to a MySQL database.
I often use Delphi for this.

What is the record delimiter?
OTOP with nothing behind it means emty field?

Execept for the USAU fields it seem all very fieldname/content like.

Jochem


George Pitcher wrote:
Hi,

I'm looking for some advice.

One of my suppliers (big publisher) has sent me a file containing records of
their books. The file is anabsolute nightmare.

There are approx 8000 records and the format is like this (actual record):

-T&F eBook data rec.1534 @ 27/01/2003
VISBN 0203445570
OSBN  0-203-44557-0
EBK1  0203548310
EBK2  0203651057
EBK3  020375381X
EBK4  0203273567
OTOP
OTART
OTI   Creative Mathematics
OSUB
USAU  Upitis |f Rena |u Queens University |c Kingston, Ontario |x
      Canada
USAU  Phillips |f Eileen |u Teacher |c Vancover |x Canada
USAU  Higginson |f William |u Queens University |c Kingston |x
      Canada
EDIT
INTRO
FORWD Pimm |f David |u The Open University x| UK
TRANS
2BIND 0415164621 |P 70.00 |U 100.00 |B Hb |A  |M 1 |T Creative
      Mathematics
VPR   11.99
USPRI 17.99
OTBPR 19.99 |U 25.95 |D 17/07/1997
USBDG
MFDT
ERT   GB US CA AU NZ ZA IE
ORT
NRT
TTY
OBIND eB
PDUE  11/03/2002
VIZE
VEXT  192
OILLS 40 illustrations
LEVEL
OSER
OIMP  RoutledgeFalmer
LIBPR
OALT
OPPQ
OCATL This book shows how creative maths can <I>really</I> work.
      Exploring the ways in which maths skills can be learned
      through cross-curricular activities based on visual arts
      and music, the book presents maths as a meaningful and
      exciting subject which holds no fears for children.<BR> The
      authors recognise that while maths-phobia prevails in our
      increasingly mathematicised world, attitudes and
      approaches to teaching the subject need to be reviewed,
      and issues such as gender stereotyping, which encourage
      maths-apathy, need to be tackled at an early stage.<BR>
      Within this collection of classroom-based stories are
      detailed examples of integrative mathematic projects;
      these will give teachers the confidence to try out
      cross-curricular activities in their classes. The book
      also provides support with difficult areas such as
      assessment, planning and development.<BR> Fascinating to
      read in its own right this book will appeal to the
      specialist and non-specialist alike.<BR>
OCONC This book shows how creative maths can <I>really</I> work.
      Exploring the ways in which maths skills can be learned
      through cross-curricular activities based on visual arts
      and music, the book presents maths as a meaningful and
      exciting subject which holds no fears for children.<BR> The
      authors recognise that while maths-phobia prevails in our
      increasingly mathematicised world, attitudes and
      approaches to teaching the subject need to be reviewed,
      and issues such as gender stereotyping, which encourage
      maths-apathy, need to be tackled at an early stage.<BR>
      Within this collection of classroom-based stories are
      detailed examples of integrative mathematic projects;
      these will give teachers the confidence to try out
      cross-curricular activities in their classes. The book
      also provides support with difficult areas such as
      assessment, planning and development.<BR> Fascinating to
      read in its own right this book will appeal to the
      specialist and non-specialist alike.<BR>
OCATS Exploring the ways in which maths skills can be learned
      through cross-curricular projects on arts and music, this
      book presents maths as a meaningful and exciting subject
      which holds no fear for children.
OQUO  'This is a fascinating book ... which gives detailed case
      studies.' |I Infant Equipment
OCNT
FCONT
OWRIT
VEDIT 1
BICAC U
BSUB1 J
BSUB2 JD
BSUB3
BICAV RF
SUBJ1 SB150000
SUBJ2
SUBJ3
VPROD EB
VACDE WEB
CREAT MFK - AUTO |D 2002 07 19

So as you see, the filed names are at the left hand side with the data
starting at position 6 (5 if the line-start is 0). I usually use Excell to
clean up this sort of stuff but those fields with a lot of text in them just
get trashed in the process.

I have used Frontier to parse ACARS logs in the past and I thought that PHP
might be able to help out here.

I want to be able to convert the fieldname (where it is duplicated in a
record) so that each one is unique. Strip out returns, replacing with [tab]
and the producing an output file that can be imported into a db (MySQL
eventually but I'm using FileMaker right now).

Any suggestions (that do not involve a pistol)?

George in Oxford






























===

George Pitcher
HERON Technical Manager
Ingenta plc
23-38 Hythe Bridge Street, Oxford, OX1 2ET
T  +44 (0)1865 799137 direct
T  +44 (0)1865 799000 switchboard
F  +44 (0)1865 799134
E  [EMAIL PROTECTED]

www.ingenta.com
Ingenta: Empowering the exchange of academic and professional content
online.


--- End Message ---

Reply via email to