php-windows Digest 25 Jul 2002 15:25:32 -0000 Issue 1257
Topics (messages 14927 through 14938):
tricky session question
14927 by: Kit Kerbel
14928 by: Nicole Amashta
In php coders near Atlanta GA?
14929 by: Nicole Amashta
Re: Can php generate MS word doc format?
14930 by: Scott Carr
14931 by: Nicole Amashta
14932 by: Peter
14936 by: Olav Bringedal
14937 by: Brian Huff
Re: reading input from a magnetic stripe and then parsing it to a MySQL database for
querry?
14933 by: Mentor Mala
14934 by: Ross Fleming
extensions error - kills server
14935 by: Adam Jackett
Include Issues Windoes 2000
14938 by: Chris Schmidt
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 am attempting to paginate some results. All code is on the same page, so
keep that in mind. So i query for the results i want, all is fine and
dandy. when i click on the link to go to the next page of results, all is
lost. Any ideas as to how to tackle this issue?
thanx,
Kit
_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com
--- End Message ---
--- Begin Message ---
You can store arrays in sessions ... you may be able to store objects in
sessions, although I don't think you can do objects with PHP's sessions.
Is the data such that you can store it in an array? If not, store the ID's
of the data and then requery again on the next page ...
good luck,
--
Nicole Amashta
Web Application Developer
www.aeontrek.com
- - - - -
Hey! Want to know how I $AVE MONEY shopping online? Ask me how and I will
get you a FREE membership to my shopping club!
- - - - -
Got PayPal ? https://www.paypal.com/refer/pal=paypal%40aeontrek.com
- - - - -
I am an official Associates of Free-Banners.com. Find out how you can start
driving insane traffic to your website.
Click the link:
http://affiliate.free-banners.com/cgi-bin/adserver/affiliate?iid=311051
"Kit Kerbel" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I am attempting to paginate some results. All code is on the same page,
so
> keep that in mind. So i query for the results i want, all is fine and
> dandy. when i click on the link to go to the next page of results, all is
> lost. Any ideas as to how to tackle this issue?
>
> thanx,
> Kit
>
>
>
> _________________________________________________________________
> Chat with friends online, try MSN Messenger: http://messenger.msn.com
>
--- End Message ---
--- Begin Message ---
Hello, I'm wondering if there are any PHP programmers/developers in the
Atlanta metro area, particularly other females. Looking to find like-minded
friends who would be interested in embarking on a project with me.
Thanks!
--
Nicole Amashta
Web Application Developer
www.aeontrek.com
- - - - -
Hey! Want to know how I $AVE MONEY shopping online? Ask me how and I will
get you a FREE membership to my shopping club!
- - - - -
Got PayPal ? https://www.paypal.com/refer/pal=paypal%40aeontrek.com
- - - - -
I am an official Associates of Free-Banners.com. Find out how you can start
driving insane traffic to your website.
Click the link:
http://affiliate.free-banners.com/cgi-bin/adserver/affiliate?iid=311051
--- End Message ---
--- Begin Message ---
If you have Word installed, you can create an object and create the document
that way.
Otherwise, no, PHP can't create Word DOCS internally.
<SHAMELESS:PLUG>
On the other hand, you can create and manipulate OpenOffice.org docs directly
inside of PHP using XML. The format is open and easy to understand. (Of
course, it is around 550 pages, but at least it is all there, eh.)
I am working with this as well as a Perl script, if you are interested.
</SHAMLESS:PLUG>
--
Scott Carr
OpenOffice.org
Documentation Maintainer
http://documentation.openoffice.org/
Quoting Nicole Amashta <[EMAIL PROTECTED]>:
> This is the first place I am going to look for an answer to this...
>
> Can PHP generate a word document formatted file? If so, can someone point me
> to where I might find some documentation for this. I checked php.net and
> typed "doc" in the search field for functions .... I'll search elsewhere
> also.
>
> Thanks in advance!
>
> --
> Nicole Amashta
> Web Application Developer
> www.aeontrek.com
>
> - - - - -
> Hey! Want to know how I $AVE MONEY shopping online? Ask me how and I will
> get you a FREE membership to my shopping club!
>
> - - - - -
> Got PayPal ? https://www.paypal.com/refer/pal=paypal%40aeontrek.com
> - - - - -
> I am an official Associates of Free-Banners.com. Find out how you can start
> driving insane traffic to your website.
> Click the link:
> http://affiliate.free-banners.com/cgi-bin/adserver/affiliate?iid=311051
>
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/
--- End Message ---
--- Begin Message ---
Thanks,
But I don't have (or want to) MS Word Doc on my computer. So I thought I'd
just use PHP to dynamically generate a Word doc. I just need to convert my
resume to a word document. Plain ASCII txt files must not be good enough for
those employers.
Thanks!
--
Nicole Amashta
Web Application Developer
www.aeontrek.com
- - - - -
Hey! Want to know how I $AVE MONEY shopping online? Ask me how and I will
get you a FREE membership to my shopping club!
- - - - -
Got PayPal ? https://www.paypal.com/refer/pal=paypal%40aeontrek.com
- - - - -
I am an official Associates of Free-Banners.com. Find out how you can start
driving insane traffic to your website.
Click the link:
http://affiliate.free-banners.com/cgi-bin/adserver/affiliate?iid=311051
"Scott Carr" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> If you have Word installed, you can create an object and create the
document
> that way.
>
> Otherwise, no, PHP can't create Word DOCS internally.
>
> <SHAMELESS:PLUG>
> On the other hand, you can create and manipulate OpenOffice.org docs
directly
> inside of PHP using XML. The format is open and easy to understand. (Of
> course, it is around 550 pages, but at least it is all there, eh.)
>
> I am working with this as well as a Perl script, if you are interested.
> </SHAMLESS:PLUG>
>
> --
> Scott Carr
> OpenOffice.org
> Documentation Maintainer
> http://documentation.openoffice.org/
>
>
> Quoting Nicole Amashta <[EMAIL PROTECTED]>:
>
> > This is the first place I am going to look for an answer to this...
> >
> > Can PHP generate a word document formatted file? If so, can someone
point me
> > to where I might find some documentation for this. I checked php.net and
> > typed "doc" in the search field for functions .... I'll search elsewhere
> > also.
> >
> > Thanks in advance!
> >
> > --
> > Nicole Amashta
> > Web Application Developer
> > www.aeontrek.com
> >
> > - - - - -
> > Hey! Want to know how I $AVE MONEY shopping online? Ask me how and I
will
> > get you a FREE membership to my shopping club!
> >
> > - - - - -
> > Got PayPal ? https://www.paypal.com/refer/pal=paypal%40aeontrek.com
> > - - - - -
> > I am an official Associates of Free-Banners.com. Find out how you can
start
> > driving insane traffic to your website.
> > Click the link:
> > http://affiliate.free-banners.com/cgi-bin/adserver/affiliate?iid=311051
> >
> >
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
> -------------------------------------------------
> This mail sent through IMP: http://horde.org/imp/
--- End Message ---
--- Begin Message ---
Nicole,
if you have StarOffice or OpenOffice on your machine or have access to it it
can save into MS Word Doc format.. just use the save as..
cheers
> -----Original Message-----
> From: Nicole Amashta [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, 25 July 2002 1:36 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] Can php generate MS word doc format?
>
>
> Thanks,
>
> But I don't have (or want to) MS Word Doc on my computer. So I
> thought I'd
> just use PHP to dynamically generate a Word doc. I just need to convert my
> resume to a word document. Plain ASCII txt files must not be good
> enough for
> those employers.
>
> Thanks!
>
> --
> Nicole Amashta
> Web Application Developer
> www.aeontrek.com
>
> - - - - -
> Hey! Want to know how I $AVE MONEY shopping online? Ask me how and I will
> get you a FREE membership to my shopping club!
>
> - - - - -
> Got PayPal ? https://www.paypal.com/refer/pal=paypal%40aeontrek.com
> - - - - -
> I am an official Associates of Free-Banners.com. Find out how you
> can start
> driving insane traffic to your website.
> Click the link:
> http://affiliate.free-banners.com/cgi-bin/adserver/affiliate?iid=311051
>
> "Scott Carr" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > If you have Word installed, you can create an object and create the
> document
> > that way.
> >
> > Otherwise, no, PHP can't create Word DOCS internally.
> >
> > <SHAMELESS:PLUG>
> > On the other hand, you can create and manipulate OpenOffice.org docs
> directly
> > inside of PHP using XML. The format is open and easy to
> understand. (Of
> > course, it is around 550 pages, but at least it is all there, eh.)
> >
> > I am working with this as well as a Perl script, if you are interested.
> > </SHAMLESS:PLUG>
> >
> > --
> > Scott Carr
> > OpenOffice.org
> > Documentation Maintainer
> > http://documentation.openoffice.org/
> >
> >
> > Quoting Nicole Amashta <[EMAIL PROTECTED]>:
> >
> > > This is the first place I am going to look for an answer to this...
> > >
> > > Can PHP generate a word document formatted file? If so, can someone
> point me
> > > to where I might find some documentation for this. I checked
> php.net and
> > > typed "doc" in the search field for functions .... I'll
> search elsewhere
> > > also.
> > >
> > > Thanks in advance!
> > >
> > > --
> > > Nicole Amashta
> > > Web Application Developer
> > > www.aeontrek.com
> > >
> > > - - - - -
> > > Hey! Want to know how I $AVE MONEY shopping online? Ask me how and I
> will
> > > get you a FREE membership to my shopping club!
> > >
> > > - - - - -
> > > Got PayPal ? https://www.paypal.com/refer/pal=paypal%40aeontrek.com
> > > - - - - -
> > > I am an official Associates of Free-Banners.com. Find out how you can
> start
> > > driving insane traffic to your website.
> > > Click the link:
> > >
> http://affiliate.free-banners.com/cgi-bin/adserver/affiliate?iid=311051
> > >
> > >
> > >
> > >
> > > --
> > > PHP Windows Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> > >
> >
> >
> > -------------------------------------------------
> > This mail sent through IMP: http://horde.org/imp/
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
> Quoting Nicole Amashta <[EMAIL PROTECTED]>:
> This is the first place I am going to look for
> an answer to this...
> Can PHP generate a word document formatted
> file? If so, can someone point me
> to where I might find some documentation for
> this. I checked php.net and
> typed "doc" in the search field for functions
> .... I'll search elsewhere also.
>
> Thanks in advance!
>
> --
> Nicole Amashta
Word has a closed fileformat for its documents, unlike
openOffice and StarOffice. But as always with
file-formats the least common denominator is likely to
be the best. For Word I have found this to be
Rich-text format (rtf), which is (almost) readable,to
work well on Word. However, I read an article on
phpbuilder.com about it, a while ago. I suggest you go
there and look if it fits your needs.
Another option is to use COM, but that means you got
to have Word on your PC, and isn't exactly a way of
doing things if you don't like cryptic error messages
and strange behaviour from your PC.
=====
Olav Bringedal
jaggu.org
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
--- End Message ---
--- Begin Message ---
Check out the COM interface. You can load Microsoft Word as a COM
component in PHP, and do things like "TypeText", "SaveAs", etc. There
is a sample in the documentation specificly for this, but the COM syntax
may vary depending on which version of word you have. Expect to spend
some time playing with the COM interface before anything works right.
--
Brian 'Bex' Huff
[EMAIL PROTECTED]
Phone: 952-903-2023
Fax: 952-829-5424
> This is the first place I am going to look for an answer to this...
>
> Can PHP generate a word document formatted file? If so, can someone point me
> to where I might find some documentation for this. I checked php.net and
> typed "doc" in the search field for functions .... I'll search elsewhere
> also.
--- End Message ---
--- Begin Message ---
-----Original Message-----
Eh?? Well first off I wouldn't be using php to do it... I'd use a
language
such as C++ or VB to do it, given you're probably wanting to communicate
with a serial/parallel/usb port to drive the reader and extract the
(probably) binary data from a card swipe, I don't know how well (if at
all)
PHP would do this. Then you just parse it using either a pattern
matching
(Perl-like?) parser if it's a complicated pattern, or a simpler bit by
bit
analysis if it's something simple (such as an ID number). Then insert
the
data to whatever DB you like. Don't know the in's and out's of DB
access
from C++ etc but I'd imagine there will be a dll or something that
already
takes the hard work out of this.
That is what I imagined...
---------------------
Sorry if this is a bit vague, but it matches the question! :) All I'm
saying is, choose a programming language that is more suited to this.
Are
you trying to secure a website with a card swipe or something?... That
would likely involve the PHP script running at the same time as the card
swipe happening. And having the card swipe attached to the web-server.
More details are really needed.
-- NOT AT ALL.. Thanks.. what I am trying to do actually is maintain
bank accounts through a secure server. What needs to happen is to allow
users to access their bank accounts over the Internet, but through a
card swiping system. Yeah.. NOT SO FUN TO ACCOMPLISH it.. but Thanks
anyways for your response Ross..
Mentor Mala
--- End Message ---
--- Begin Message ---
> -----Original Message-----
> From: Mentor Mala [mailto:[EMAIL PROTECTED]]
> Sent: 25 July 2002 08:33
> To: [EMAIL PROTECTED]
> Subject: RE: [PHP-WIN] reading input from a magnetic stripe and then
> parsing it to a MySQL database for querry?
> -- NOT AT ALL.. Thanks.. what I am trying to do actually is maintain
> bank accounts through a secure server. What needs to happen is to allow
> users to access their bank accounts over the Internet, but through a
> card swiping system. Yeah.. NOT SO FUN TO ACCOMPLISH it.. but Thanks
> anyways for your response Ross..
>
So you want the users to swipe a card at their machine, which captures the
details and sends it to the secure server, correct? Through internet
explorer or similar? Well first off, php won't do this, not from the client
end. If you are installing card-swipes on the client machines, you'll need
a program that reads this information and sends it to the server. This
server could well be php driven. the problem is sending the raw data to the
server. It would be quite hard to mask (at the client end) what data is
sent to the server. The connection may well be secure, but you're still
sending text from the client, which the user could easily spoof. The best
way to do this IMHO would be a sort of challenge/response type thing. ie
the server never asks for the entire card information, rather asks questions
about the card. These questions should be enough that there is little or no
doubt the user has swiped the card, but the raw card data is never revealed.
You'll need an application running at the client end to achieve this
however, and this will involve each station having the software installed.
Is this meant to be a public solution? It doesn't sound plausible I'm
afraid, given each user will need to have a card reader on their machine,
plus the software to read it and communicate with the server.
Ross
--- End Message ---
--- Begin Message ---
When I try to enable any extensions, it kills the server, making it
impossible to view any website.
I've tried multiple versions of PHP with multiple php.ini files.
I've made sure the extension_dir was pointing to the correct extension
directory, and that the extensions I tried to enable did in fact exist.
Still nothing.
In order for my websites to work at all, I cannot have extensions enabled.
Has anyone encountered this before? If so, is there a solution (aside from
moving to a linux box).
Any help is graciously appreciated.
Adam Jackett
Allaboutwebsites.com Inc.
--- End Message ---
--- Begin Message ---
I have two server
FS = File Server
WS = Web server
WS is IIS and is conecting to a share on FS.
So the path to the PHP files is
\\FS\iisweb\phpfiles\
So if i call test.php and that is located at http://WS/client/test.php
and config is at http:\\WS\phpfiles\config.php
test.php has this as a line:
include("\\FS\iisweb\phpfiles\config.php")
or
include("..\phpfiles\config.php")
I get that a file can not be found
Does PHP for windows work with Shares?
--- End Message ---