Re: [PHP] Netscape 4.77 and PHP

2001-04-15 Thread Adam

try sending us the sample code. I use netscape 4 for testing and it seems to
work just fine.



-- 
PHP General 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] sessions problem (and spec. Mozilla vs Opera)

2001-04-15 Thread Martin Skjöldebrand

On my login page (index.php) I have at the top

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]




Re: [PHP] Sorry :(

2001-04-15 Thread Plutarck

Remember: There are no stupid questions. Only stupid people.


...*couldn't resist*

;)


--
Plutarck
Should be working on something...
...but forgot what it was.


""Chris Anderson"" <[EMAIL PROTECTED]> wrote in message
002b01c0c528$7ea85a60$0d1012d1@null">news:002b01c0c528$7ea85a60$0d1012d1@null...
> Well thanks everyone, don't feel like I'm "leeching" from the community
> anymore. Now when it comes to me and napster, thats another story
> - Original Message -
> From: "Brian Clark" <[EMAIL PROTECTED]>
> To: "PHP is not a drug." <[EMAIL PROTECTED]>
> Sent: Saturday, April 14, 2001 7:47 PM
> Subject: Re: [PHP] Sorry :(
>
>
> > Hi Chris,
> >
> > @ 3:51:02 PM on 4/14/2001, Chris Anderson wrote:
> >
> > > I realized that'll that I don't do much to help this community. I
> > > rarely reply to people's questions. Mainly because I have 56.6 and
> > > when I get mail people answered already. I also ask alot of
> > > questions. Just saying thanks for putting up with me. Chris, The 17
> > > yr Old Php Coder
> >
> > As far as I'm concerned, you don't have a thing to be sorry about.
> >
> > There isn't a thing wrong with asking questions here. In fact, if you
> > have a good book and this list to get help from, you're far more
> > likely to become successful with PHP.
> >
> > -Brian
> > --
> >  PGP is spoken here: 0xE4D0C7C8
> >  Please, DO NOT carbon copy me on list replies.
> >
> >
> >
> > --
> > PHP General 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 General 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 General 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]




Re: [PHP] Netscape 4.77 and PHP

2001-04-15 Thread Martin Skjöldebrand

Adam wrote:

> try sending us the sample code. I use netscape 4 for testing and it seems
> to work just fine.

My whole project is based on inserting pieces of html. Works like a dream 
in Netscape 4.75 Linux.

M.

-- 
PHP General 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]




Re: [PHP] converting DATETIME to a readable date.

2001-04-15 Thread Plutarck

The I "now" get a date from MySQL (hehe) is to use UNIX_TIMESTAMP then feed
it over to date.

That way if I want to change the way the date is displayed, I don't have to
touch my query syntax. And I personally find it easier to use PHP's date()
function rather than MySQL's.


--
Plutarck
Should be working on something...
...but forgot what it was.


"Chris Adams" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> On 14 Apr 2001 17:31:02 -0700, DRN <[EMAIL PROTECTED]> wrote:
> >$date = $row["date"];
> >
> >$new_date = date("l, j M Y, G:i:s", strtotime($date));
> >~~
> >
> >but I cannot get this to work :(, I get an "unexpected error in
> >date()"
>
> At a guess strtotime() is choking on the format MySQL used to return the
date,
> which would lead date() to fail as well.
>
> The best way of handling this is to eliminate the need for your program to
> worry about the day formats. Modify your mysql query so that instead of
"SELECT
> date" you have something like "SELECT UNIX_TIMESTAMP(date) AS date". Then
you
> can simply use date($row["date"]) directly. Alternately, you could use
MySQL's
> date formatting function to return the desired format directly. In either
case,
> you'll save a great deal of trouble by avoiding the need for PHP and MySQL
to
> be parsing each other's human-readable date formats.
>
> --
> PHP General 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 General 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]




Re: [PHP] Netscape 4.77 and PHP

2001-04-15 Thread B. van Ouwerkerk


>I've created a test.php file that dynamically loads HTML.. works totally
>fine in IE 5, but when I test it with Netscape 4.77 -- nothing comes up...
>just a totally blank page.
>
>Anyone know why this might be happening?

Yes. You made one or more mistakes in the HTML code you're sending to the 
browser. NS is less forgiving then M$ IE.

Just take a closer look at the HTML code..

Bye,


B.


-- 
PHP General 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]




RE: [PHP] Sorry :(Just Testing)

2001-04-15 Thread Effendi Mahfud



> -Original Message-
> From: Plutarck [SMTP:[EMAIL PROTECTED]]
> Sent: Sunday, April 15, 2001 4:38 PM
> To:   [EMAIL PROTECTED]
> Subject:  Re: [PHP] Sorry :(
> 
> Remember: There are no stupid questions. Only stupid people.
> 
> 
> ...*couldn't resist*
> 
> ;)
> 
> 
> --
> Plutarck
> Should be working on something...
> ...but forgot what it was.
> 
> 
> ""Chris Anderson"" <[EMAIL PROTECTED]> wrote in message
> 002b01c0c528$7ea85a60$0d1012d1@null">news:002b01c0c528$7ea85a60$0d1012d1@null...
> > Well thanks everyone, don't feel like I'm "leeching" from the community
> > anymore. Now when it comes to me and napster, thats another story
> > - Original Message -
> > From: "Brian Clark" <[EMAIL PROTECTED]>
> > To: "PHP is not a drug." <[EMAIL PROTECTED]>
> > Sent: Saturday, April 14, 2001 7:47 PM
> > Subject: Re: [PHP] Sorry :(
> >
> >
> > > Hi Chris,
> > >
> > > @ 3:51:02 PM on 4/14/2001, Chris Anderson wrote:
> > >
> > > > I realized that'll that I don't do much to help this community. I
> > > > rarely reply to people's questions. Mainly because I have 56.6 and
> > > > when I get mail people answered already. I also ask alot of
> > > > questions. Just saying thanks for putting up with me. Chris, The 17
> > > > yr Old Php Coder
> > >
> > > As far as I'm concerned, you don't have a thing to be sorry about.
> > >
> > > There isn't a thing wrong with asking questions here. In fact, if you
> > > have a good book and this list to get help from, you're far more
> > > likely to become successful with PHP.
> > >
> > > -Brian
> > > --
> > >  PGP is spoken here: 0xE4D0C7C8
> > >  Please, DO NOT carbon copy me on list replies.
> > >
> > >
> > >
> > > --
> > > PHP General 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 General 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 General 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 General 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]




Re: [PHP] Netscape 4.77 and PHP

2001-04-15 Thread Ben Quick

Do you use tables?

If so, check all , ,  and  tags have a closing tag to go
with them

-Original Message-
From: Jason Caldwell <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: 15 April 2001 06:55
Subject: [PHP] Netscape 4.77 and PHP


>I've created a test.php file that dynamically loads HTML.. works totally
>fine in IE 5, but when I test it with Netscape 4.77 -- nothing comes up...
>just a totally blank page.
>
>Anyone know why this might be happening?
>
>Thanks.
>Jason
>
>
>
>
>--
>PHP General 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 General 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]




Re: [PHP] Sorry :(

2001-04-15 Thread Richard

hahaha
""Plutarck"" <[EMAIL PROTECTED]> wrote in message
9bbq7u$9vr$[EMAIL PROTECTED]">news:9bbq7u$9vr$[EMAIL PROTECTED]...
> Remember: There are no stupid questions. Only stupid people.
>
>
> ...*couldn't resist*
>
> ;)
>
>
> --
> Plutarck
> Should be working on something...
> ...but forgot what it was.
>
>
> ""Chris Anderson"" <[EMAIL PROTECTED]> wrote in message
> 002b01c0c528$7ea85a60$0d1012d1@null">news:002b01c0c528$7ea85a60$0d1012d1@null...
> > Well thanks everyone, don't feel like I'm "leeching" from the community
> > anymore. Now when it comes to me and napster, thats another story
> > - Original Message -
> > From: "Brian Clark" <[EMAIL PROTECTED]>
> > To: "PHP is not a drug." <[EMAIL PROTECTED]>
> > Sent: Saturday, April 14, 2001 7:47 PM
> > Subject: Re: [PHP] Sorry :(
> >
> >
> > > Hi Chris,
> > >
> > > @ 3:51:02 PM on 4/14/2001, Chris Anderson wrote:
> > >
> > > > I realized that'll that I don't do much to help this community. I
> > > > rarely reply to people's questions. Mainly because I have 56.6 and
> > > > when I get mail people answered already. I also ask alot of
> > > > questions. Just saying thanks for putting up with me. Chris, The 17
> > > > yr Old Php Coder
> > >
> > > As far as I'm concerned, you don't have a thing to be sorry about.
> > >
> > > There isn't a thing wrong with asking questions here. In fact, if you
> > > have a good book and this list to get help from, you're far more
> > > likely to become successful with PHP.
> > >
> > > -Brian
> > > --
> > >  PGP is spoken here: 0xE4D0C7C8
> > >  Please, DO NOT carbon copy me on list replies.
> > >
> > >
> > >
> > > --
> > > PHP General 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 General 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 General 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 General 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]




Re: [PHP] Sorry :(Just Testing)

2001-04-15 Thread Richard

There is PHP.TEST if you would like to test your posts


"Effendi Mahfud" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
>
> > -Original Message-
> > From: Plutarck [SMTP:[EMAIL PROTECTED]]
> > Sent: Sunday, April 15, 2001 4:38 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: [PHP] Sorry :(
> >
> > Remember: There are no stupid questions. Only stupid people.
> >
> >
> > ...*couldn't resist*
> >
> > ;)
> >
> >
> > --
> > Plutarck
> > Should be working on something...
> > ...but forgot what it was.
> >
> >
> > ""Chris Anderson"" <[EMAIL PROTECTED]> wrote in message
> > 002b01c0c528$7ea85a60$0d1012d1@null">news:002b01c0c528$7ea85a60$0d1012d1@null...
> > > Well thanks everyone, don't feel like I'm "leeching" from the
community
> > > anymore. Now when it comes to me and napster, thats another story
> > > - Original Message -
> > > From: "Brian Clark" <[EMAIL PROTECTED]>
> > > To: "PHP is not a drug." <[EMAIL PROTECTED]>
> > > Sent: Saturday, April 14, 2001 7:47 PM
> > > Subject: Re: [PHP] Sorry :(
> > >
> > >
> > > > Hi Chris,
> > > >
> > > > @ 3:51:02 PM on 4/14/2001, Chris Anderson wrote:
> > > >
> > > > > I realized that'll that I don't do much to help this community. I
> > > > > rarely reply to people's questions. Mainly because I have 56.6 and
> > > > > when I get mail people answered already. I also ask alot of
> > > > > questions. Just saying thanks for putting up with me. Chris, The
17
> > > > > yr Old Php Coder
> > > >
> > > > As far as I'm concerned, you don't have a thing to be sorry about.
> > > >
> > > > There isn't a thing wrong with asking questions here. In fact, if
you
> > > > have a good book and this list to get help from, you're far more
> > > > likely to become successful with PHP.
> > > >
> > > > -Brian
> > > > --
> > > >  PGP is spoken here: 0xE4D0C7C8
> > > >  Please, DO NOT carbon copy me on list replies.
> > > >
> > > >
> > > >
> > > > --
> > > > PHP General 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 General 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 General 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 General 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 General 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] Mailbox and PHP

2001-04-15 Thread Richard

Greetings.

I have no problem writing an email client in PHP, which sends emails and
such things. One thing only, can I check someones POP3, such as mine,
through PHP? If so, what should be needed to complete it..? The server I am
using is running Linux FreeBSd (I think..) with the options for the user to
change quite alot..

- Richard



-- 
PHP General 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]




Re: [PHP] PHP without a webserver

2001-04-15 Thread Yasuo Ohgaki
You can use PHP for many purposes.

You can use PHP
- General scripting language. (Use GCI binary with -q option. You may need
other setting to meet your purpose)
- GUI Application development (USE PHP-GTK)

Refer to following link for PHP-GTK

http://gtk.php.net/

There is compiler (I don't use it so I'm not sure if it is a really a compiler
or not) for PHP that works under Windows. Look for my post in mailing list
archive for URL. (I think you can find, if you search "Compiler" as keyword.)

Regards,
--
Yasuo Ohgaki


""Plutarck"" <[EMAIL PROTECTED]> wrote in message
9b9qu0$786$[EMAIL PROTECTED]">news:9b9qu0$786$[EMAIL PROTECTED]...
> I've heard much about how PHP is far more than just a language for web
> programming, and I agree. I agree enough that I would like to actually try
> it. I'd like to use PHP scripting in a C/C++ program that doesn't need a
> webserver as an intermediary. I basically want to use PHP in a
> standalone/TCP-IP program rather than having to build a whole "IMF-esk"
> hairball myself.
>
>
> Are there any articles or documentation which focuses, or at least would
> give me useful information, on how such a task would be accomplished? I'm
> looking at the API documentation itself which will be helpful, but is there
> anything a little more "pointed" than that?
>
> I'd love to see PHP grow an arm of offline scripting. It would just be
> _perfect_ for compiling high-level developer-friendly scripts into a format
> usable for 3D real-time environment manipulation, for instance.
>
>
>
> --
> Plutarck
> Should be working on something...
> ...but forgot what it was.
>
>
>
>
>
> --
> PHP General 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 General 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]


RE: [PHP] What's XML's Purpose??

2001-04-15 Thread Sander Pilon

XML, IMHO, can best be regarded as a layer between the real data and the
application.

We used to make up new formats for allmost every type of data exchange.
Every type had its own format, its own parser, and because of that the
same mistakes were made over and over again. Some formats weren't
extensible. Parsers contain(ed) bugs. 

XML solves all this. If your data is suitable to be encapsulated in xml
(meaning its not binary data and a little tag-overhead isn't a big deal)
there is no need for these mistakes anymore. You can use a trusted,
standard format, which is extensible and readable, and you can use
standard tools to read and write the data. (no more, or at least less,
bugs in parsers.)

-S


-- 
PHP General 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]




Re: [PHP] Netscape 4.77 and PHP

2001-04-15 Thread Matt Friedman

This is almost always an html problem, not a php one.

If a table tag or something isn't closed properly netscape will show a blank
screen. IE is more (too) forgiving and assumes it knows where you meant to
put the tag.

Check your html and you'll fix it.

Matt Friedman
Spry New Media
http://www.sprynewmedia.com


- Original Message -
From: "Jason Caldwell" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, April 14, 2001 10:55 PM
Subject: [PHP] Netscape 4.77 and PHP


> I've created a test.php file that dynamically loads HTML.. works totally
> fine in IE 5, but when I test it with Netscape 4.77 -- nothing comes up...
> just a totally blank page.
>
> Anyone know why this might be happening?
>
> Thanks.
> Jason
>
>
>
>
> --
> PHP General 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 General 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]




Re: [PHP] Mailbox and PHP

2001-04-15 Thread Martin Skjöldebrand

Richard wrote:

> Greetings.
> 
> I have no problem writing an email client in PHP, which sends emails
> and
> such things. One thing only, can I check someones POP3, such as mine,
> through PHP? If so, what should be needed to complete it..? The server I
> am using is running Linux FreeBSd (I think..) with the options for the
> user to change quite alot..


You can find a class lib in the e-mail section at the address below. Don't 
know how good it is, but I've done a (very) quick test and it does work.

http://phpclasses.upperdesign.com/browse.html/package/2

-- 
PHP General 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]




Re: [PHP] Mailbox and PHP

2001-04-15 Thread Plutarck

Check out PHPost: http://webgadgets.com/

It doesn't use IMAP, so you can probably learn quite a bit how POP3 mail can
be handled.

One of these days I'm going to actually figure it out myself...


--
Plutarck
Should be working on something...
...but forgot what it was.


""Richard"" <[EMAIL PROTECTED]> wrote in message
9bc03m$3ad$[EMAIL PROTECTED]">news:9bc03m$3ad$[EMAIL PROTECTED]...
> Greetings.
>
> I have no problem writing an email client in PHP, which sends emails
and
> such things. One thing only, can I check someones POP3, such as mine,
> through PHP? If so, what should be needed to complete it..? The server I
am
> using is running Linux FreeBSd (I think..) with the options for the user
to
> change quite alot..
>
> - Richard
>
>
>
> --
> PHP General 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 General 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]




Re: [PHP] Netscape 4.77 and PHP

2001-04-15 Thread Miles Thompson

Jason,

Netscape is really fussy about closing tags. Have you checked to make 
certain you don't have a table open?

Try capturing the source of the page and running it through tidy. 
(Available at http://www.w3.org/People/Raggett/tidy/ )

Miles

At 10:55 PM 4/14/01 -0700, Jason Caldwell wrote:
>I've created a test.php file that dynamically loads HTML.. works totally
>fine in IE 5, but when I test it with Netscape 4.77 -- nothing comes up...
>just a totally blank page.
>
>Anyone know why this might be happening?
>
>Thanks.
>Jason
>
>
>
>
>--
>PHP General 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 General 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] test

2001-04-15 Thread george

Just a test

-- 
george
chiefmonkey@wisemonkeydesign.co.uk
remove my_pants to reply

-- 
PHP General 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] search string

2001-04-15 Thread Joseph Bannon

What is the function to search a string? Basically, I want search a string
(a url) to see if it has "www.yahoo.com" in it and if yes, tell the user
their submission cannot be accepted.

J




-- 
PHP General 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]




Re: [PHP] Mailbox and PHP

2001-04-15 Thread Richard

Thanks alot, seems to work allright.

- Richard

"Martin Skjöldebrand" <[EMAIL PROTECTED]> wrote in message
9bc8bf$5kb$[EMAIL PROTECTED]">news:9bc8bf$5kb$[EMAIL PROTECTED]...
> Richard wrote:
>
> > Greetings.
> >
> > I have no problem writing an email client in PHP, which sends emails
> > and
> > such things. One thing only, can I check someones POP3, such as mine,
> > through PHP? If so, what should be needed to complete it..? The server I
> > am using is running Linux FreeBSd (I think..) with the options for the
> > user to change quite alot..
>
>
> You can find a class lib in the e-mail section at the address below. Don't
> know how good it is, but I've done a (very) quick test and it does work.
>
> http://phpclasses.upperdesign.com/browse.html/package/2
>
> --
> PHP General 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 General 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] Creating thumbnails

2001-04-15 Thread Lauri Vain

Hello everybody,

I just finished reading a message from the server root and I have been told that
the server I have to work with by our current project doesn't support GD and
they can't install it neither.

We will, however, need to create thumbnails from larger images (JPEG). Are there
any other solutions that don't require installing? Some CGI scripts or something
similar perhaps?

Or does anybody have any other ideas? Perhaps letting another server to do the
thumbnailing? There will be only a max of 20 images per day which have to
be converted to a 100*200px image.

Our main scripting language will be PHP and the database will be some form of
SQL.

Thanks in advance!

Yours,
Lauri






-- 
PHP General 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] getcwd()

2001-04-15 Thread kenny.hibs

Is there a php3 alternative to the  getcwd() function

kenny


-- 
PHP General 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-general Digest 15 Apr 2001 18:00:22 -0000 Issue 629

2001-04-15 Thread php-general-digest-help


php-general Digest 15 Apr 2001 18:00:22 - Issue 629

Topics (messages 48619 through 48642):

Re: next release?
48619 by: Plutarck

Netscape 4.77 and PHP
48620 by: Jason Caldwell
48621 by: Adam
48624 by: Martin Skjöldebrand
48626 by: B. van Ouwerkerk
48628 by: Ben Quick
48634 by: Matt Friedman
48637 by: Miles Thompson

sessions problem (and spec. Mozilla vs Opera)
48622 by: Martin Skjöldebrand

Re: Sorry :(
48623 by: Plutarck
48629 by: Richard

Re: converting DATETIME to a readable date.
48625 by: Plutarck

Re: Sorry :(Just Testing)
48627 by: Effendi Mahfud
48630 by: Richard

Mailbox and PHP
48631 by: Richard
48635 by: Martin Skjöldebrand
48636 by: Plutarck
48640 by: Richard

Re: PHP without a webserver
48632 by: Yasuo Ohgaki

Re: What's XML's Purpose??
48633 by: Sander Pilon

test
48638 by: george

search string
48639 by: Joseph Bannon

Creating thumbnails
48641 by: Lauri Vain

getcwd()
48642 by: kenny.hibs

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]


--



Nope, it 4.0.5 hasn' been released yet.

However at one point I believe there was a 4.0.6dev source code on CVS,
before the Midgaard extension required another round of release candidates.
So I think that's where the mentions came from.

And I'm sure some people are planning their features to be in 4.0.6. Then
again, there are probably people who claim their features will be in PHP5 ;)



--
Plutarck
Should be working on something...
...but forgot what it was.


"Michael Kimsal" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I'm seeing references to functions that 'are' in 4.0.6, but I wasn't
> even
> aware that 4.0.5 was released yet.  I've seen references to RCs for
> 4.0.5,
> but nothing's on the php.net page.  Did I miss something?
>
>
>
>
> --
> PHP General 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've created a test.php file that dynamically loads HTML.. works totally
fine in IE 5, but when I test it with Netscape 4.77 -- nothing comes up...
just a totally blank page.

Anyone know why this might be happening?

Thanks.
Jason







try sending us the sample code. I use netscape 4 for testing and it seems to
work just fine.






Adam wrote:

> try sending us the sample code. I use netscape 4 for testing and it seems
> to work just fine.

My whole project is based on inserting pieces of html. Works like a dream 
in Netscape 4.75 Linux.

M.





>I've created a test.php file that dynamically loads HTML.. works totally
>fine in IE 5, but when I test it with Netscape 4.77 -- nothing comes up...
>just a totally blank page.
>
>Anyone know why this might be happening?

Yes. You made one or more mistakes in the HTML code you're sending to the 
browser. NS is less forgiving then M$ IE.

Just take a closer look at the HTML code..

Bye,


B.





Do you use tables?

If so, check all , ,  and  tags have a closing tag to go
with them

-Original Message-
From: Jason Caldwell <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: 15 April 2001 06:55
Subject: [PHP] Netscape 4.77 and PHP


>I've created a test.php file that dynamically loads HTML.. works totally
>fine in IE 5, but when I test it with Netscape 4.77 -- nothing comes up...
>just a totally blank page.
>
>Anyone know why this might be happening?
>
>Thanks.
>Jason
>
>
>
>
>--
>PHP General 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]
>
>





This is almost always an html problem, not a php one.

If a table tag or something isn't closed properly netscape will show a blank
screen. IE is more (too) forgiving and assumes it knows where you meant to
put the tag.

Check your html and you'll fix it.

Matt Friedman
Spry New Media
http://www.sprynewmedia.com


- Original Message -
From: "Jason Caldwell" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, April 14, 2001 10:55 PM
Subject: [PHP] Netscape 4.77 and PHP


> I've created a test.php file that dynamically loads HTML.. works totally
> fine in IE 5, but when I test it with Netscape 4.77 -- nothing comes up...
> just a totally blank page.
>
> Anyone know why this might be happening?
>
> Thanks.
> Jason
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To 

[PHP] Access/SQL Server?

2001-04-15 Thread Bob Clingan

What to I need to do/configure in order for PHP 4 to be able to connect to
Access and/or SQL Server databases?

--Bob



-- 
PHP General 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-CVS] cvs: php4 /ext/standard file.c

2001-04-15 Thread Alexander Feldman

sasha   Sun Apr 15 11:42:51 2001 EDT

  Modified files:  
/php4/ext/standard  file.c 
  Log:
  We shoud not fseek in a pipe and this caused a problem with popen and
  fgets on the platforms where the buffer fix was applied (Solaris, FreeBSD).
  Now the fseek is done only when the handle is of type fopen.
  
  
Index: php4/ext/standard/file.c
diff -u php4/ext/standard/file.c:1.150 php4/ext/standard/file.c:1.151
--- php4/ext/standard/file.c:1.150  Sat Apr  7 14:46:43 2001
+++ php4/ext/standard/file.cSun Apr 15 11:42:50 2001
@@ -20,7 +20,7 @@
+--+
  */
 
-/* $Id: file.c,v 1.150 2001/04/07 21:46:43 sniper Exp $ */
+/* $Id: file.c,v 1.151 2001/04/15 18:42:50 sasha Exp $ */
 
 /* Synced with php 3.0 revision 1.218 1999-06-16 [ssb] */
 
@@ -921,7 +921,7 @@
/* needed because recv doesnt put a null at the end*/
memset(buf,0,len+1);
 #ifdef HAVE_FLUSHIO
-   if (!issock) {
+   if (type == le_fopen) {
fseek((FILE*)what, 0, SEEK_CUR);
}
 #endif
@@ -969,7 +969,7 @@
}
 
 #ifdef HAVE_FLUSHIO
-   if (!issock) {
+   if (type == le_fopen) {
fseek((FILE*)what, 0, SEEK_CUR);
}
 #endif
@@ -1172,7 +1172,9 @@
ret = SOCK_WRITEL((*arg2)->value.str.val,num_bytes,socketd);
} else {
 #ifdef HAVE_FLUSHIO
-   fseek((FILE*)what, 0, SEEK_CUR);
+   if (type == le_fopen) {
+   fseek((FILE*)what, 0, SEEK_CUR);
+   }
 #endif
ret = fwrite((*arg2)->value.str.val,1,num_bytes,(FILE*)what);
}
@@ -1814,7 +1816,9 @@

if (!issock) {
 #ifdef HAVE_FLUSHIO
-   fseek((FILE*)what, 0, SEEK_CUR);
+   if (type == le_fopen)
+   fseek((FILE*)what, 0, SEEK_CUR);
+   }
 #endif
return_value->value.str.len = fread(return_value->value.str.val, 1, 
len, (FILE*)what);
return_value->value.str.val[return_value->value.str.len] = 0;



-- 
PHP CVS 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-CVS] cvs: php4 /ext/standard file.c

2001-04-15 Thread Alexander Feldman

sasha   Sun Apr 15 12:03:13 2001 EDT

  Modified files:  
/php4/ext/standard  file.c 
  Log:
  Fixed typo.
  
  
Index: php4/ext/standard/file.c
diff -u php4/ext/standard/file.c:1.151 php4/ext/standard/file.c:1.152
--- php4/ext/standard/file.c:1.151  Sun Apr 15 11:42:50 2001
+++ php4/ext/standard/file.cSun Apr 15 12:03:12 2001
@@ -20,7 +20,7 @@
+--+
  */
 
-/* $Id: file.c,v 1.151 2001/04/15 18:42:50 sasha Exp $ */
+/* $Id: file.c,v 1.152 2001/04/15 19:03:12 sasha Exp $ */
 
 /* Synced with php 3.0 revision 1.218 1999-06-16 [ssb] */
 
@@ -1816,7 +1816,7 @@

if (!issock) {
 #ifdef HAVE_FLUSHIO
-   if (type == le_fopen)
+   if (type == le_fopen) {
fseek((FILE*)what, 0, SEEK_CUR);
}
 #endif



-- 
PHP CVS 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]




Re: [PHP] What's XML's Purpose??

2001-04-15 Thread Manuel Lemos

Hello Chris,

On 14-Apr-01 16:07:59, you wrote:


>Alright I'll start this out by saying I have a subscription to "Visual Basic
>Programmers Journal". Before I converted and realized that I loved PHP so
>much I used ASP. Well it seems that in this magazine that XML is a hot topic
>in the MS world. I know XML can be used by PHP, but is there a point? I only
>know 2 things about it:
>1) You can make your own tags:
>
>2) It's supposedly good for databasing?

>If its for databasing, why not just use MySQL( or a variation). Am I missing
>something here?

Actually XML is yet another Internet mania, pretty much like Java.  Java
represented the dream of some programmers of "write once run everywhere".
XML represents the dream of one data/document source, many target medias
(HTML, WML, PDF, etc...).

The problem is that all this flexibility comes at a price, most frequently
CPU time.  For general Internet development this is a kind of waste,
because the usual latency in deliverying information is already a problem,
it gets worse if the information servers have to interpret Java programs or
process XML formatted information to serve the user requests.

Good sense tells that if you can serve content without going through the
hops of transforming raw data (database, etc...) into XML to later
transforme it into HTML, you'd better go directly from raw data to HTML or
else your hardware bill will be much higher when you attempt to scale up.

Now, if you mean to use XML for purposes that do not require extra
processing on demand when you are serving your content, it may provide
extra flexibility that may save you a lot and hand-programming.

Take for instance this example.  Metabase is a PHP database abstraction
package that lets you develop applications that are database independent.
This means that if you use Metabase you can write applications that may
work seeminglessly with different databases.  Just figure how much porting
efforts you will save when you figure that MySQL is not enough.

To help you develop fully portable applications, Metabase not only provides
a database independent API, but also provides a database independent means
to install and maintain database schemas.

Metabase uses a custom XML format to describe database schemas:  tables,
fields, indexes and sequences.  It comes with a parser that extracts the
schema description from those XML files.  Then the Metabase manager is able
to install that schema by creating all the tables and sequences that are
described.

If someday you change your database schema, Metabase manager is also able
to figure the changes and alter the schema of the previously installed
database without affecting any data added to the database since the it was
installed or updated for the last time.

Metabase manager is also able to dump in its XML format a installed
database schema along with any data stored in the database so you can
install it in another database server without information loss.

The use of XML in Metabase is just an example of how it can be used for a
purpose that improves your development process and does not affect the
ability of your applications to serve data to the users with great
performance impact, like when you get when you use XML/XSL to serve data on
demand.

Metabase is free and is avaliable here:

http://phpclasses.UpperDesign.com/browse.html/package/20

Regards,
Manuel Lemos

Web Programming Components using PHP Classes.
Look at: http://phpclasses.UpperDesign.com/?[EMAIL PROTECTED]
--
E-mail: [EMAIL PROTECTED]
URL: http://www.mlemos.e-na.net/
PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp
--


-- 
PHP General 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]




Re: [PHP] What's XML's Purpose??

2001-04-15 Thread Manuel Lemos

Hello Plutarck,

On 14-Apr-01 17:07:42, you wrote:

>I use to be really enthusiastically pro-XML just as I was getting into PHP,
>but now I've basically taken a "XML shmexXML" approach. I get the initial
>attraction, but I would think the love would fade off a bit.

>The key that so many people seem to forget is the best way to do HTML is
>with, *gasp*, HTML!

Exactly!


>If you just want a webpage, XML is using a canon to kill a fly. It's like
>creating classes and objects in PHP for sending text emails.

>Sure you can do it...but why?

Maybe you miss the point of using classes and objects in general
programming.  Classes encapsulate behaviour and data.  They are just a
capsule of script functions and related data.

Sending mails correctly formatted is not such a trivial job.  If you write
a class that encapsulates that takes you may reuse it several times without
having to be reminded of the details of sending e-mails.

If you don't know how to correctly send e-mails, you may reuse a class
written by someone else.  All you need to learn is the class API.  This
level of reusability has been saving many developers thousands of hours,
making their projects viable to deploy.

If you doubt it, you may look at the PHP Classes repository:

http://phpclasses.UpperDesign.com/

There are now over 200 classes that have been used by over 30.000 of PHP
programmers.  Not all classes are that much useful and popular, but in
particular in the top downloads page you can seen that many classes have
been downloaded by many thousands of users:

http://phpclasses.UpperDesign.com/browse.html/top


>XML is new. Common society doesn't do well with new. They always manage to
>screw it up somehow.

>XML started as an extensible markup language...that's it. That's all it was
>supposed to do! Now people are using it to query databases, and concoct
>entire search engines, and they are trying to use it to control access to
>restricted data, etc etc.

>It's the same thing that happened with Java. People just aren't good with
>"new".

Right, like with Java, time will tell what uses of XML are viable and
desirable.



>XML is nice, and for some things it's even great. But it's not the death of
>plain old HTML, just like ISDN didn't kill POTS (remember when ISDN was "the
>future of telecom"?).

>I fear that there are too many cooks in the kitchen on XML, all with a
>seasoning all their own that they are dead set on adding to the broth.

Yes, everybody wants to invent their own XML format! :-)


>But for me, I say let people play with their Java and XML and new fangled
>widgets. I'll take my PHP and plain-old HTML, and I'll create twice as much
>material with just as high a quality, and I won't need to spend an extra
>minute learning a bleeding-edge technology.

>Life's too short to spend it learning how to live it. Translation: Better to
>program than to learn yet _another_ language.

...  unless using such language brings you great benefits that outweight
its costs.


Regards,
Manuel Lemos

Web Programming Components using PHP Classes.
Look at: http://phpclasses.UpperDesign.com/?[EMAIL PROTECTED]
--
E-mail: [EMAIL PROTECTED]
URL: http://www.mlemos.e-na.net/
PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp
--


-- 
PHP General 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]




Re: [PHP] Display Formatted Query Results

2001-04-15 Thread Manuel Lemos

Hello Jeff,

On 14-Apr-01 21:50:21, you wrote:

>Hi All,

>My apologies if this is too wordy.

>This is driving me nuts.  I have very little experience or knowledge of PHP
>and MySQL but have been put in a position that requires me to build several
>applications that require me to figure them out.  I am making progress,
>though.  Here is my first delimit:

I am not sure if this solves your whole problem, but you may want to try this
PHP query result table display class:

http://phpclasses.UpperDesign.com/browse.html/package/130

Manuel Lemos


>I have a form page that looks like this:
>http://www.webtinker.com/fran_info.htm This form has several things going
>on.  1st, the first pull down list needs to reflect the same info as the two
>location descriptions.  2nd, the two locations "Round Table Discussion" will
>grow to an unknown number of entries over time so the two may become 6 or 8
>or...  My first big (for me) hurdle is to figure out how to get these to
>show up at the top of this form in order of the date with the closest one
>first.  They need to be in the same format as they appear but with
>additional rows showing as more entries are made.  The ones showing can't be
>past due, or, don't show past dates.

>What I have figured out so far is how to populate the pull down, how to make
>the admin form to fill in the needed info into the MySQL table and I have
>had limited success in displaying the meeting info at the top of the form.
>I just can't figure out how to make them wrap into groups of info, say with
>5 entries of different meetings.  Do I need a separate query for each row of
>info using the limit statement in the query or is there a way to do this
>using  arrays?  I have just about every book available and just can't
>find a good example of this type of formatted query results.  How do I
>approach this?

>Here is the table I am using:

>CREATE TABLE rnd_tbl (
>   id tinyint(10) DEFAULT '0' NOT NULL auto_increment,
>   location varchar(100) NOT NULL,
>   address varchar(45) NOT NULL,
>   address2 varchar(45) NOT NULL,
>   city varchar(50) NOT NULL,
>   state char(2) NOT NULL,
>   zip varchar(14) NOT NULL,
>   day char(3) NOT NULL,
>   date varchar(25) NOT NULL,
>   time varchar(25) NOT NULL,
>   phone varchar(15) NOT NULL,
>   PRIMARY KEY (id)
>);

>Many Thanks!!
>Short Circuit


>-- 
>PHP General 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]



Regards,
Manuel Lemos

Web Programming Components using PHP Classes.
Look at: http://phpclasses.UpperDesign.com/?[EMAIL PROTECTED]
--
E-mail: [EMAIL PROTECTED]
URL: http://www.mlemos.e-na.net/
PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp
--


-- 
PHP General 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] PCRE vs. POSIX

2001-04-15 Thread bill

hi everyone,

i have been using perl for quite some time, but after getting used to
php4, i think it rocks.

i am wondering which is better, performance-wise, when trying to match the
same text: PCRE or POSIX extended in php4?

cheers,
Bill



-- 
PHP General 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]




Re: [PHP] PCRE vs. POSIX

2001-04-15 Thread CC Zona

In article <[EMAIL PROTECTED]>,
 [EMAIL PROTECTED] (bill) wrote:

> i have been using perl for quite some time, but after getting used to
> php4, i think it rocks.
> 
> i am wondering which is better, performance-wise, when trying to match the
> same text: PCRE or POSIX extended in php4?

PCRE.

-- 
CC

-- 
PHP General 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] accepting credit cards

2001-04-15 Thread Tyler Longren

Hello everyone,

I know this has been discussed many times before.  I even read the past
threads in the list archives.  I've written a shopping cart/catalog that
uses mysql on the backend.  I need to be able to accept cc orders.  Is
Paypal a good choice?  I've never really use any service like this before.
When the user orders an item, will they have to leave my website?

Thanks,
Tyler


-- 
PHP General 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] list table by date

2001-04-15 Thread Augusto Cesar Castoldi


I have a little mysql question. I'm using php to list  a table from mysql.

I'm doing: $result=mysql_query("select * from messagem where flag=1 order
by
date");

But The first list of the "mysql_fetch_row($result)" is the first date. I
want to start printing by the last date.

But I want to know if I can do this by the mysql_query. I don't want this:

$i = mysql_numrows($result);
while ($i >= 0) {
  print mysql_result($result, $i, 'date')."";
}

regards,

Augusto Cesar Castoldi




-- 
PHP General 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] SQL Query syntax error... Help?

2001-04-15 Thread Scott VanCaster

I've only been trying to learn this stuff for a few days and thought I was
on a roll, but now have run into a problem I don't get at all.  In my script
I have the following sql query and am receiving the following error when it
executes "You have an error in your SQL syntax near '' at line 1."

Any idea what my problem is?  I removed the WHERE id=$id and it works, but
updates every record of course :(

I'm lost here.  Thanks for any help.

$sql ="UPDATE members SET ".
  "name='$name', ".
  "email='$email', ".
  "icq='$icq', ".
  "password='$password', ".
  "loginid='$loginid', ".
  "countryid='$countryid', ".
  "gtlogin='$gtlogin', ".
  "gtpass='$gtpass', ".
  "swirvelogin='$swirvelogin', ".
  "swirvepass='$swirvepass' ".
  "WHERE id=$id" ;



-- 
PHP General 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]




Re: [PHP] SQL Query syntax error... Help?

2001-04-15 Thread Augusto Cesar Castoldi

What do you have in the id variable?

It's contents can be the problem.

regards,

Augusto Cesar Castoldi

On Sun, 15 Apr 2001, Scott VanCaster wrote:

> I've only been trying to learn this stuff for a few days and thought I was
> on a roll, but now have run into a problem I don't get at all.  In my script
> I have the following sql query and am receiving the following error when it
> executes "You have an error in your SQL syntax near '' at line 1."
>
> Any idea what my problem is?  I removed the WHERE id=$id and it works, but
> updates every record of course :(
>
> I'm lost here.  Thanks for any help.
>
> $sql ="UPDATE members SET ".
>   "name='$name', ".
>   "email='$email', ".
>   "icq='$icq', ".
>   "password='$password', ".
>   "loginid='$loginid', ".
>   "countryid='$countryid', ".
>   "gtlogin='$gtlogin', ".
>   "gtpass='$gtpass', ".
>   "swirvelogin='$swirvelogin', ".
>   "swirvepass='$swirvepass' ".
>   "WHERE id=$id" ;
>
>
>
> --
> PHP General 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 General 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]




Re: [PHP] SQL Query syntax error... Help?

2001-04-15 Thread Felix Kronlage

On Sun, Apr 15, 2001 at 04:20:07PM -0500, Scott VanCaster wrote:

> Any idea what my problem is?  I removed the WHERE id=$id and it works, but
> updates every record of course :(

Have you tried putting the $id in quotes too?

| WHERE = '$id' 

if that doesn't help, print the sql-statement to STDOUT (e.g. probably to the
browser) and take a look at it, that way it is easier to see where the
error is.

-fkr
-- 
gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0  8A48 0D31 9BD3 D9AC 74D0 
  |http://www.hazardous.org/ | whois -h whois.ripe.de FKR-RIPE  |
  |all your base are belong to us  |  shame on me  | fkr@IRCnet | 


-- 
PHP General 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]




Re: [PHP] SQL Query syntax error... Help?

2001-04-15 Thread Scott VanCaster

id is the primary key for the table.  If I add echo ($id); before the query
it echos a 15, which is correct.  Well, it's the right id for the test
person I'm logged into the site as anyway.  I'm missing something here :)


"Augusto Cesar Castoldi" <[EMAIL PROTECTED]> wrote in message
Pine.A41.4.32.0104151924060.11846-10@marte">news:Pine.A41.4.32.0104151924060.11846-10@marte...
> What do you have in the id variable?
>
> It's contents can be the problem.
>
> regards,
>
> Augusto Cesar Castoldi
>
> On Sun, 15 Apr 2001, Scott VanCaster wrote:
>
> > I've only been trying to learn this stuff for a few days and thought I
was
> > on a roll, but now have run into a problem I don't get at all.  In my
script
> > I have the following sql query and am receiving the following error when
it
> > executes "You have an error in your SQL syntax near '' at line 1."
> >
> > Any idea what my problem is?  I removed the WHERE id=$id and it works,
but
> > updates every record of course :(
> >
> > I'm lost here.  Thanks for any help.
> >
> > $sql ="UPDATE members SET ".
> >   "name='$name', ".
> >   "email='$email', ".
> >   "icq='$icq', ".
> >   "password='$password', ".
> >   "loginid='$loginid', ".
> >   "countryid='$countryid', ".
> >   "gtlogin='$gtlogin', ".
> >   "gtpass='$gtpass', ".
> >   "swirvelogin='$swirvelogin', ".
> >   "swirvepass='$swirvepass' ".
> >   "WHERE id=$id" ;
> >
> >
> >
> > --
> > PHP General 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 General 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 General 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]




Re: [PHP] SQL Query syntax error... Help?

2001-04-15 Thread Scott VanCaster

I "think" I tried that.  Let me go try that again to be sure.

Oh, and what's STDOUT ?  I'm just getting started here and haven't even seen
that yet :)

I can't believe how fast the responses are either.  Thanks to all for
helping others out so quickly :)

"Felix Kronlage" <[EMAIL PROTECTED]> wrote in message
20010415232649.A11407@mad">news:20010415232649.A11407@mad...
> On Sun, Apr 15, 2001 at 04:20:07PM -0500, Scott VanCaster wrote:
>
> > Any idea what my problem is?  I removed the WHERE id=$id and it works,
but
> > updates every record of course :(
>
> Have you tried putting the $id in quotes too?
>
> | WHERE = '$id'
>
> if that doesn't help, print the sql-statement to STDOUT (e.g. probably to
the
> browser) and take a look at it, that way it is easier to see where the
> error is.
>
> -fkr
> --
> gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0  8A48 0D31 9BD3 D9AC 74D0
>   |http://www.hazardous.org/ | whois -h whois.ripe.de FKR-RIPE  |
>   |all your base are belong to us  |  shame on me  | fkr@IRCnet |
>
>
> --
> PHP General 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 General 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]




Re: [PHP] SQL Query syntax error... Help?

2001-04-15 Thread Scott VanCaster

I changed $id to '$id'

No more error, but nothing updates.  Assuming it's because with the single
quotes nothing in the table matches?

"Felix Kronlage" <[EMAIL PROTECTED]> wrote in message
20010415232649.A11407@mad">news:20010415232649.A11407@mad...
> On Sun, Apr 15, 2001 at 04:20:07PM -0500, Scott VanCaster wrote:
>
> > Any idea what my problem is?  I removed the WHERE id=$id and it works,
but
> > updates every record of course :(
>
> Have you tried putting the $id in quotes too?
>
> | WHERE = '$id'
>
> if that doesn't help, print the sql-statement to STDOUT (e.g. probably to
the
> browser) and take a look at it, that way it is easier to see where the
> error is.
>
> -fkr
> --
> gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0  8A48 0D31 9BD3 D9AC 74D0
>   |http://www.hazardous.org/ | whois -h whois.ripe.de FKR-RIPE  |
>   |all your base are belong to us  |  shame on me  | fkr@IRCnet |
>
>
> --
> PHP General 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 General 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]




Re: [PHP] SQL Query syntax error... Help?

2001-04-15 Thread Scott VanCaster

Well, I added the echo($id); back in and am just getting $id printed, so it
looks like I have another problem :(

Now to see if I can find it and figure it out.


""Scott VanCaster"" <[EMAIL PROTECTED]> wrote in message
9bd3pv$qbd$[EMAIL PROTECTED]">news:9bd3pv$qbd$[EMAIL PROTECTED]...
> id is the primary key for the table.  If I add echo ($id); before the
query
> it echos a 15, which is correct.  Well, it's the right id for the test
> person I'm logged into the site as anyway.  I'm missing something here :)
>
>
> "Augusto Cesar Castoldi" <[EMAIL PROTECTED]> wrote in message
> Pine.A41.4.32.0104151924060.11846-10@marte">news:Pine.A41.4.32.0104151924060.11846-10@marte...
> > What do you have in the id variable?
> >
> > It's contents can be the problem.
> >
> > regards,
> >
> > Augusto Cesar Castoldi
> >
> > On Sun, 15 Apr 2001, Scott VanCaster wrote:
> >
> > > I've only been trying to learn this stuff for a few days and thought I
> was
> > > on a roll, but now have run into a problem I don't get at all.  In my
> script
> > > I have the following sql query and am receiving the following error
when
> it
> > > executes "You have an error in your SQL syntax near '' at line 1."
> > >
> > > Any idea what my problem is?  I removed the WHERE id=$id and it works,
> but
> > > updates every record of course :(
> > >
> > > I'm lost here.  Thanks for any help.
> > >
> > > $sql ="UPDATE members SET ".
> > >   "name='$name', ".
> > >   "email='$email', ".
> > >   "icq='$icq', ".
> > >   "password='$password', ".
> > >   "loginid='$loginid', ".
> > >   "countryid='$countryid', ".
> > >   "gtlogin='$gtlogin', ".
> > >   "gtpass='$gtpass', ".
> > >   "swirvelogin='$swirvelogin', ".
> > >   "swirvepass='$swirvepass' ".
> > >   "WHERE id=$id" ;
> > >
> > >
> > >
> > > --
> > > PHP General 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]
et
> > >
> >
> >
> > --
> > PHP General 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 General 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 General 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]




Re: [PHP] SQL Query syntax error... Help?

2001-04-15 Thread Scott VanCaster

Nevermind everyone, I'm an idiot :)

I had the case wrong.  I needed $ID, not $id  !

Thanks for the assistance though.  Nice to know ya'll are here.

Scott


""Scott VanCaster"" <[EMAIL PROTECTED]> wrote in message
9bd394$ikn$[EMAIL PROTECTED]">news:9bd394$ikn$[EMAIL PROTECTED]...
> I've only been trying to learn this stuff for a few days and thought I was
> on a roll, but now have run into a problem I don't get at all.  In my
script
> I have the following sql query and am receiving the following error when
it
> executes "You have an error in your SQL syntax near '' at line 1."
>
> Any idea what my problem is?  I removed the WHERE id=$id and it works, but
> updates every record of course :(
>
> I'm lost here.  Thanks for any help.
>
> $sql ="UPDATE members SET ".
>   "name='$name', ".
>   "email='$email', ".
>   "icq='$icq', ".
>   "password='$password', ".
>   "loginid='$loginid', ".
>   "countryid='$countryid', ".
>   "gtlogin='$gtlogin', ".
>   "gtpass='$gtpass', ".
>   "swirvelogin='$swirvelogin', ".
>   "swirvepass='$swirvepass' ".
>   "WHERE id=$id" ;
>
>
>
> --
> PHP General 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 General 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]




RE: [PHP] SQL Query syntax error... Help?

2001-04-15 Thread Chris Cocuzzo

scott,

try the entire SQL statement without single quotes around those variables.
except for when your setting the WHERE part. Try:

$sql ="UPDATE members SET ".
  "name=$name, ".
  "email=$email, ".
  "icq=$icq, ".
  "password=$password, ".
  "loginid=$loginid, ".
  "countryid=$countryid, ".
  "gtlogin=$gtlogin, ".
  "gtpass=$gtpass, ".
  "swirvelogin=$swirvelogin, ".
  "swirvepass=$swirvepass ".
  "WHERE id='$id'" ;

I could be wrong though, but just my two cents.

chris
www.variancecreations.net



-Original Message-
From: Scott VanCaster [mailto:[EMAIL PROTECTED]]
Sent: Sunday, April 15, 2001 5:20 PM
To: [EMAIL PROTECTED]
Subject: [PHP] SQL Query syntax error... Help?


I've only been trying to learn this stuff for a few days and thought I was
on a roll, but now have run into a problem I don't get at all.  In my script
I have the following sql query and am receiving the following error when it
executes "You have an error in your SQL syntax near '' at line 1."

Any idea what my problem is?  I removed the WHERE id=$id and it works, but
updates every record of course :(

I'm lost here.  Thanks for any help.

$sql ="UPDATE members SET ".
  "name='$name', ".
  "email='$email', ".
  "icq='$icq', ".
  "password='$password', ".
  "loginid='$loginid', ".
  "countryid='$countryid', ".
  "gtlogin='$gtlogin', ".
  "gtpass='$gtpass', ".
  "swirvelogin='$swirvelogin', ".
  "swirvepass='$swirvepass' ".
  "WHERE id=$id" ;



--
PHP General 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 General 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]




RE: [PHP] SQL Query syntax error... Help?

2001-04-15 Thread Chris Cocuzzo

NEVERMIND! :)



-Original Message-
From: Scott VanCaster [mailto:[EMAIL PROTECTED]]
Sent: Sunday, April 15, 2001 6:05 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] SQL Query syntax error... Help?


Nevermind everyone, I'm an idiot :)

I had the case wrong.  I needed $ID, not $id  !

Thanks for the assistance though.  Nice to know ya'll are here.

Scott


""Scott VanCaster"" <[EMAIL PROTECTED]> wrote in message
9bd394$ikn$[EMAIL PROTECTED]">news:9bd394$ikn$[EMAIL PROTECTED]...
> I've only been trying to learn this stuff for a few days and thought I was
> on a roll, but now have run into a problem I don't get at all.  In my
script
> I have the following sql query and am receiving the following error when
it
> executes "You have an error in your SQL syntax near '' at line 1."
>
> Any idea what my problem is?  I removed the WHERE id=$id and it works, but
> updates every record of course :(
>
> I'm lost here.  Thanks for any help.
>
> $sql ="UPDATE members SET ".
>   "name='$name', ".
>   "email='$email', ".
>   "icq='$icq', ".
>   "password='$password', ".
>   "loginid='$loginid', ".
>   "countryid='$countryid', ".
>   "gtlogin='$gtlogin', ".
>   "gtpass='$gtpass', ".
>   "swirvelogin='$swirvelogin', ".
>   "swirvepass='$swirvepass' ".
>   "WHERE id=$id" ;
>
>
>
> --
> PHP General 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 General 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 General 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]




Re: [PHP] Netscape 4.77 and PHP

2001-04-15 Thread Jason Caldwell

WOW !

Thanks everyone... great responses :-)

I will look at my tables... no doubt I goofed somewhere.

Jason


""Jason Caldwell"" <[EMAIL PROTECTED]> wrote in message
9bbd0v$686$[EMAIL PROTECTED]">news:9bbd0v$686$[EMAIL PROTECTED]...
> I've created a test.php file that dynamically loads HTML.. works totally
> fine in IE 5, but when I test it with Netscape 4.77 -- nothing comes up...
> just a totally blank page.
>
> Anyone know why this might be happening?
>
> Thanks.
> Jason
>
>
>
>
> --
> PHP General 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 General 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]




Re: [PHP] list table by date

2001-04-15 Thread Seung-woo Nam

You can sort in descending order in your sql statement

select * from messagem where flag-1 order by date desc

Seung-woo Nam

Augusto Cesar Castoldi wrote:
> 
> I have a little mysql question. I'm using php to list  a table from mysql.
> 
> I'm doing: $result=mysql_query("select * from messagem where flag=1 order
> by
> date");
> 
> But The first list of the "mysql_fetch_row($result)" is the first date. I
> want to start printing by the last date.
> 
> But I want to know if I can do this by the mysql_query. I don't want this:
> 
> $i = mysql_numrows($result);
> while ($i >= 0) {
>   print mysql_result($result, $i, 'date')."";
> }
> 
> regards,
> 
> Augusto Cesar Castoldi
>

-- 
PHP General 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] unregister part of array in session

2001-04-15 Thread Tobias Talltorp

I know how to unset a specific value in an ordinary array:
unset ($array["one"]);
How do I do this if my array is in a session?

Here is my code:
 "number one", two=> "Number two", three=> "Number
three");
session_register("array");
?>

I tried this... Didn't work:


Thanks,
// Tobias Talltorp




-- 
PHP General 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]




RE: [PHP] getcwd()

2001-04-15 Thread Don Read


On 15-Apr-01 kenny.hibs wrote:
> Is there a php3 alternative to the  getcwd() function
> 

try:
$cwd=`pwd`;
-- or --
$cwd=`/bin/pwd`;

Regards,
-- 
Don Read   [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to 
   steal the neighbor's newspaper, that's the time to do it.

-- 
PHP General 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]




Re: [PHP] accepting credit cards

2001-04-15 Thread Tobias Talltorp

I don´t have any experience in this area either, but I found this article on
Php-bilder.com. It might be useful for you:
http://www.phpbuilder.com/columns/matt2305.php3
(Curl is a part of PHP now... http://www.php.net/manual/en/ref.curl.php)

You might find these sections in the manual rewarding aswell:
http://www.php.net/manual/en/ref.pfpro.php
http://www.php.net/manual/en/ref.cybercash.php

I don´t know how much they cost or anything... Anyone who knows?

// Tobias Talltorp


""Tyler Longren"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello everyone,
>
> I know this has been discussed many times before.  I even read the past
> threads in the list archives.  I've written a shopping cart/catalog that
> uses mysql on the backend.  I need to be able to accept cc orders.  Is
> Paypal a good choice?  I've never really use any service like this before.
> When the user orders an item, will they have to leave my website?
>
> Thanks,
> Tyler
>
>
> --
> PHP General 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 General 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] store array in a file?

2001-04-15 Thread jaxon


Hey all, can someone make a recommendation here?

I want to keep site structural info pulled from a database in an array, and
store it in a flat file that can eliminate the database hit.

Then I'll just delete the file when structure changes, and regenerate it
with a call to a recreation script that does the necessary sql once.

So 
 - does this make sense?
 - how to sore the array in a flat file
 - any way to make the array global once loaded?

Thanks for any pointers!

cheers,
jaxon


-- 
PHP General 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]




Re: [PHP] Oracle Connection

2001-04-15 Thread Andrew Hill

You can use ODBC as well.
Compile PHP with iODBC (http://www.iodbc.org) and you can use an ODBC driver
instead of the oci - this can bypass the Oracle client install in many
cases.

Best regards,
Andrew

Andrew Hill . Director Technology Evangelism
OpenLink Software . www.openlinksw.com
Internet Data Integration Technology



On 4/10/01 11:53 AM, "Brian S. Dunworth" <[EMAIL PROTECTED]> wrote:

> At 08:42 AM 4/10/01 -0700, Dunaway, Brian wrote:
> 
>> I need to access a remote oracle database. What I mean is that the machine
>> that is allowed access to the oracle database is not running php...I have
>> access to the machine with the oracle access from my machine which is
>> running php. Boy that sounds confusing.
> 
>  No, not really.
> 
>> anyway I am setting my environment with putenv(oracle_home=/something) and
>> putenv(oracle_sid=database)...what can I do? any ideas?
> 
>  I'm assuming that this isn't working for you.  Make sure you set
> NLS_LANG etc, as well in your environment, as specified in the PHP
> documentation.
> 
>  Do you have an Oracle client installed on the machine that has PHP
> installed on it?  Did you compile PHP with oci8 support?
> 
>  Here, our web server (Linux) has Apache/PHP and Oracle Net8 client
> installed.  The Net8 client talks to our Sun box with Oracle 8i
> installed.  Works with PHP with no hitches.
> 
>> Brian D.
> 
>  yeah, me too.  :)
> 
>> Running PHP 4
> 
>  yeah, me too.  :)
> 
> - Brian
> 
> -
>   Brian S. Dunworth
>   Sr. Software Development Engineer
>   Oracle Database Administrator
>   The Printing House, Ltd.
> 
>   (850) 875-1500  x225
>   <[EMAIL PROTECTED]>
> -
> 


-- 
PHP General 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] MySQL Data to a HTML-Form

2001-04-15 Thread Denis Mettler

Hi,

I got Data from my Database,
but how can I show them in a textfiled within a html form?
Any ideas?

Thanks in advance.

--
Best Regards
Denis


-- 
PHP General 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]




Re: [PHP] search string

2001-04-15 Thread Brian Clark

Hi Joseph,

@ 12:08:46 PM on 4/15/2001, Joseph Bannon wrote:

> What is the function to search a string? Basically, I want search a string
> (a url) to see if it has "www.yahoo.com" in it and if yes, tell the user
> their submission cannot be accepted.



-Brian
--
 PGP is spoken here: 0xE4D0C7C8
 Please, DO NOT carbon copy me on list replies.



-- 
PHP General 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]




Re: [PHP] test

2001-04-15 Thread Brian Clark

Hi George,

@ 7:19:12 PM on 4/15/2001, george wrote:

...
> User-Agent: MT-NewsWatcher/3.1 (PPC)
> Subject: [PHP] test

> Just a test

Use news://alt.test next time, please.

-Brian
--
 PGP is spoken here: 0xE4D0C7C8
 Please, DO NOT carbon copy me on list replies.



-- 
PHP General 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]




Re: [PHP] limiting page for printing

2001-04-15 Thread Brian Clark

Hi Fabian,

@ 11:47:22 PM on 4/14/2001, Fabian Fabela wrote:

...
> I have a page with a lot of data, all of this data is formated in
> that page to be printed, in a table with 500 px width, but how can I
> messure the length of the page with my results, for example a query
> can give me exactly the height of the page, but other queries can
> give me more of the height of the page and the results are cutted at
> the end when I send the page to the printer.

> How can I solve this problem?

I don't think you can. Are you not getting the rest of the material on
the next half of the second sheet or something? I don't understand
what you're saying here.

-Brian
--
 PGP is spoken here: 0xE4D0C7C8
 Please, DO NOT carbon copy me on list replies.



-- 
PHP General 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]




Re: [PHP] Creating thumbnails

2001-04-15 Thread Brian Clark

Hi Lauri,

@ 11:55:51 AM on 4/15/2001, Lauri Vain wrote:

...
> I just finished reading a message from the server root and I have
> been told that the server I have to work with by our current project
> doesn't support GD and they can't install it neither.

> We will, however, need to create thumbnails from larger images
> (JPEG). Are there any other solutions that don't require installing?
> Some CGI scripts or something similar perhaps?

...
> Our main scripting language will be PHP and the database will be
> some form of SQL.

Ask your sysadmin if the server has ImageMagick or NetPBM installed.
You can use either of those to create thumbnails using system().

-Brian
--
 PGP is spoken here: 0xE4D0C7C8
 Please, DO NOT carbon copy me on list replies.



-- 
PHP General 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]




Re: [PHP] store array in a file?

2001-04-15 Thread Brian Clark

Hi jaxon,

@ 7:32:10 PM on 4/15/2001, jaxon wrote:

...
> I want to keep site structural info pulled from a database in an
> array, and store it in a flat file that can eliminate the database
> hit.

Then you'll be hitting the disk too (really, either way), but I doubt
that's going to speed it up very much.

> Then I'll just delete the file when structure changes, and regenerate it
> with a call to a recreation script that does the necessary sql once.

> So
>  - does this make sense?

No, I'm lost.

>  - how to sore the array in a flat file

One way is to implode() the data from an array into a single line
(separated by whatever you wish), then write the line to the file on
disk.

http://www.php.net/manual/en/function.implode.php

>  - any way to make the array global once loaded?

By using global?

http://www.php.net/manual/it/language.variables.scope.php

-Brian
--
 PGP is spoken here: 0xE4D0C7C8
 Please, DO NOT carbon copy me on list replies.



-- 
PHP General 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]




Re: [PHP] Access/SQL Server?

2001-04-15 Thread Brian Clark

Hi Bob,

@ 2:40:21 PM on 4/15/2001, Bob Clingan wrote:

> What to I need to do/configure in order for PHP 4 to be able to
> connect to Access and/or SQL Server databases?

http://www.php.net/manual/en/install.configure.php#install.configure.databases

-Brian
--
 PGP is spoken here: 0xE4D0C7C8
 Please, DO NOT carbon copy me on list replies.



-- 
PHP General 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]




Re: [PHP] unregister part of array in session

2001-04-15 Thread Brian Clark

Hi Tobias,

@ 7:01:41 PM on 4/15/2001, Tobias Talltorp wrote:

...
> I tried this... Didn't work:
>  session_start();
> session_unregister("array[one]");
?>>

Why not save the values to a temp variable, destroy the session, unset
the value you want to unset, then register it again?

-Brian
--
 PGP is spoken here: 0xE4D0C7C8
 Please, DO NOT carbon copy me on list replies.



-- 
PHP General 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]




Re: [PHP] MySQL Data to a HTML-Form

2001-04-15 Thread Brian Clark

Hi Denis,

@ 8:13:41 PM on 4/15/2001, Denis Mettler wrote:

> I got Data from my Database, but how can I show them in a textfiled
> within a html form? Any ideas?

Show us some code?

Assuming you've gotten the data into a $row->column, just echo it
into the value of one of the form fields:




-Brian
--
 PGP is spoken here: 0xE4D0C7C8
 Please, DO NOT carbon copy me on list replies.



-- 
PHP General 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]




Re: [PHP] Access/SQL Server?

2001-04-15 Thread Andrew Hill

Locally on a Win32 box, use the odbc functions built in, with a local DSN.

On Unix, compile php with iodbc (http://www.iodbc.org) and use an ODBC
driver to connect to the SQLServer or Access db on the Win32 box.

You can use OpenLink's drivers if you like -

For SQLServer:
- install Multi-Tier driver from www.openlinksw.com, with client as unix
and server as win box.
- configure DSN in unix side odbc.ini, per the example.
- test with odbctest
- use odbc_connect() in your script, making sure you have specified
putenv("ODBCINI=/path/to/odbc.ini");

For Access
-similar to above, but unix side DSN needs to pass Database field as
name of a Win32 side DSN using the native MS driver.  The ServerType should
also be ODBC instead of Access on the unix side.

Please let me know if you require assistance.


Best regards,
Andrew

Andrew Hill . Director Technology Evangelism
OpenLink Software . www.openlinksw.com
Internet Data Integration Technology



On 4/15/01 2:40 PM, "Bob Clingan" <[EMAIL PROTECTED]> wrote:

> What to I need to do/configure in order for PHP 4 to be able to connect to
> Access and/or SQL Server databases?
> 
> --Bob
> 
> 


-- 
PHP General 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-CVS] cvs: php4 /ext/ircg ircg.c

2001-04-15 Thread Sascha Schumann

sas Sun Apr 15 17:24:14 2001 EDT

  Modified files:  
/php4/ext/ircg  ircg.c 
  Log:
  Add support for banlists
  
  
Index: php4/ext/ircg/ircg.c
diff -u php4/ext/ircg/ircg.c:1.57 php4/ext/ircg/ircg.c:1.58
--- php4/ext/ircg/ircg.c:1.57   Sat Apr 14 11:49:04 2001
+++ php4/ext/ircg/ircg.cSun Apr 15 17:24:14 2001
@@ -16,7 +16,7 @@
+--+
  */
 
-/* $Id: ircg.c,v 1.57 2001/04/14 18:49:04 sas Exp $ */
+/* $Id: ircg.c,v 1.58 2001/04/16 00:24:14 sas Exp $ */
 
 #include "php.h"
 #include "php_ini.h"
@@ -62,6 +62,8 @@
FMT_MSG_WHOIS_END,
FMT_MSG_MODE_VOICE,
FMT_MSG_MODE_OP,
+   FMT_MSG_BANLIST,
+   FMT_MSG_BANLIST_END,
NO_FMTS
 };
 
@@ -135,7 +137,9 @@
"%f is on channel %c",
"End of whois for %f",
"%f sets voice flag of %t to %m on %c",
-   "%f sets channel operator flag of %t to %m on %c"
+   "%f sets channel operator flag of %t to %m on %c",
+   "banned from %c: %m",
+   "end of ban list for %c"
 };
 
 #define MSG(conn, type) \
@@ -508,6 +512,24 @@
msg_send(conn, &m);
 }
 
+static void banlist_handler(irconn_t *ircc, smart_str *channel, smart_str *mask, void 
+*conn_data)
+{
+   php_irconn_t *conn = conn_data;
+   smart_str m = {0};
+
+   format_msg(MSG(conn, FMT_MSG_BANLIST), channel, NULL, NULL, mask, &m);
+   msg_send(conn, &m);
+}
+
+static void end_of_banlist_handler(irconn_t *ircc, smart_str *channel, void 
+*conn_data)
+{
+   php_irconn_t *conn = conn_data;
+   smart_str m = {0};
+
+   format_msg(MSG(conn, FMT_MSG_BANLIST_END), channel, NULL, NULL, NULL, &m);
+   msg_send(conn, &m);
+}
+
 static void user_add(irconn_t *ircc, smart_str *channel, smart_str *users,
int nr, void *dummy)
 {
@@ -974,6 +996,11 @@
 
 #if IRCG_API_VERSION >= 20010310
irc_register_hook(conn, IRCG_IDLE_RECV_QUEUE, idle_recv_queue);
+#endif
+
+#if IRCG_API_VERSION >= 20010416
+   irc_register_hook(conn, IRCG_BANLIST, banlist_handler);
+   irc_register_hook(conn, IRCG_ENDOFBANLIST, end_of_banlist_handler);
 #endif
 }
 



-- 
PHP CVS 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]




Re: [PHP] store array in a file?

2001-04-15 Thread Brian Clark


@ 8:12:51 PM on 4/15/2001, Brian Clark wrote:

...
> http://www.php.net/manual/it/language.variables.scope.php

Oops. replace 'it' with 'en'

-Brian
--
 PGP is spoken here: 0xE4D0C7C8
 Please, DO NOT carbon copy me on list replies.



-- 
PHP General 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]




Re: [PHP] unregister part of array in session

2001-04-15 Thread Yasuo Ohgaki
You are registered $array as session,
You need to unset() element. I think it should work.

Regards,
--
Yasuo Ohgaki


""Tobias Talltorp"" <[EMAIL PROTECTED]> wrote in message
9bd8un$kqt$[EMAIL PROTECTED]">news:9bd8un$kqt$[EMAIL PROTECTED]...
> I know how to unset a specific value in an ordinary array:
> unset ($array["one"]);
> How do I do this if my array is in a session?
>
> Here is my code:
>  session_start();
> $array = array(one=> "number one", two=> "Number two", three=> "Number
> three");
> session_register("array");
> ?>
>
> I tried this... Didn't work:
>  session_start();
> session_unregister("array[one]");
> ?>
>
> Thanks,
> // Tobias Talltorp
>
>
>
>
> --
> PHP General 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 General 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]


Re: [PHP] unregister part of array in session

2001-04-15 Thread Brian Clark


@ 8:18:31 PM on 4/15/2001, Brian Clark wrote:

...
> Why not save the values to a temp variable, destroy the session,
> unset the value you want to unset, then register it again?

Well I take that back. Read the first two comments here:

http://www.php.net/manual/en/function.session-unset.php

By doing what I originally suggested, I guess they'd end up with a
different session, which isn't what you want obviously.

-Brian
--
 PGP is spoken here: 0xE4D0C7C8
 Please, DO NOT carbon copy me on list replies.



-- 
PHP General 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]




Re: [PHP] store array in a file?

2001-04-15 Thread Juan C. Borrero

The info pulled from a Database (Mysql) is already stored in an array, then
you can move the pointer back and forward when you need it. You can send it
to the first "record" and re read it several times...

withmysql_data_seek ($result, 0);  goes to the first record again.

JuanCaBo

- Original Message -
From: "jaxon" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, April 15, 2001 6:32 PM
Subject: [PHP] store array in a file?


>
> Hey all, can someone make a recommendation here?
>
> I want to keep site structural info pulled from a database in an array,
and
> store it in a flat file that can eliminate the database hit.
>
> Then I'll just delete the file when structure changes, and regenerate it
> with a call to a recreation script that does the necessary sql once.
>
> So
>  - does this make sense?
>  - how to sore the array in a flat file
>  - any way to make the array global once loaded?
>
> Thanks for any pointers!
>
> cheers,
> jaxon
>
>
> --
> PHP General 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 General 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] Re: Need Feedback

2001-04-15 Thread PHP General List

Hi all, 

Thanks for the feedback and based on what I read, I will be keeping the sites up for 
at least a few more months.  I would like to see decent use of the site so tell people 
about them.  That will be my determinining factor when I rethink the sites in June or 
July.  They are free and do not require one to be a list member to read or respond to 
the author.  You must be a list member to post to the list, though.


Thanks again to those that wrote me and enjoy. 

David Fordham 

-- Original Message -- 


>Hi all, 
> 
>I have had this website that captures the list email messages and placed it into a 
>searchable db.  I did this as a learning exercise and
think it is pretty cool but am wondering if I should just shut em down. 
> 
>Take a look and if I get enough feedback, I will keep them running for at least a few 
>more months.  I have a PHP and a MYSQL list db,
here are the URLs: 
> 
>http://www.summittech.com/mysqlmail.php3 
>http://www.summittech.com/phpgenmail.php3 
> 
>They are free and I am not doing anything with the data. 
> 
>Let me know, 
> 
>David Fordham 
> 

-- 
PHP General 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]




Re: [PHP] search string

2001-04-15 Thread Tobias Talltorp

I think you want regular expressions...

Try this on for size:
$str = "http://www.yahoo.com/somedir/somepage.html";

if (preg_match("/www.yahoo.com/i", $str)) {
 print "Your submission cannot be accepted";
} else {
 print "You are good";
}

If you want to read up on regular expressions:
http://www.php.net/manual/en/ref.pcre.php (Faster than ereg)
http://www.php.net/manual/en/ref.regex.php

// Tobias Talltorp


""Joseph Bannon"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> What is the function to search a string? Basically, I want search a string
> (a url) to see if it has "www.yahoo.com" in it and if yes, tell the user
> their submission cannot be accepted.
>
> J
>
>
>
>
> --
> PHP General 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 General 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]




Re: [PHP] search string

2001-04-15 Thread dempsejn

Even better, try strstr...it'll be faster than a regexp for a simple 
search of a string for another string.

-jack

- Original Message -
From: "Tobias Talltorp" <[EMAIL PROTECTED]>
Date: Sunday, April 15, 2001 7:20 pm
Subject: Re: [PHP] search string

> I think you want regular expressions...
> 
> Try this on for size:
> $str = "http://www.yahoo.com/somedir/somepage.html";
> 
> if (preg_match("/www.yahoo.com/i", $str)) {
> print "Your submission cannot be accepted";
> } else {
> print "You are good";
> }
> 
> If you want to read up on regular expressions:
> http://www.php.net/manual/en/ref.pcre.php (Faster than ereg)
> http://www.php.net/manual/en/ref.regex.php
> 
> // Tobias Talltorp
> 
> 
> ""Joseph Bannon"" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > What is the function to search a string? Basically, I want 
> search a string
> > (a url) to see if it has "www.yahoo.com" in it and if yes, tell 
> the user
> > their submission cannot be accepted.
> >
> > J
> >
> >
> >
> >
> > --
> > PHP General 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: php-list-
> [EMAIL PROTECTED]>
> 
> 
> 
> -- 
> PHP General 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: php-list-
> [EMAIL PROTECTED]
> 


-- 
PHP General 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]




Re: [PHP] search string

2001-04-15 Thread Brian Clark

Hi Tobias,

@ 7:20:00 PM on 4/15/2001, Tobias Talltorp wrote:

> I think you want regular expressions...

> Try this on for size:
> $str = "http://www.yahoo.com/somedir/somepage.html";

> if (preg_match("/www.yahoo.com/i", $str)) {
>  print "Your submission cannot be accepted";
> } else {
>  print "You are good";
> }
...

I doubt there is a need to use regular expressions just to find out of
a string has yahoo.com in it.

-Brian
--
 PGP is spoken here: 0xE4D0C7C8
 Please, DO NOT carbon copy me on list replies.



-- 
PHP General 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]




Re: [PHP] Easy News Script

2001-04-15 Thread Sandeep Hundal

i wrote one a few months back, and use it as a diary. the enhanced
one out for release soon will look more like the slashdot system, but
much easier.
http://www.wde.org/php/

/sunny

--- Chris Anderson <[EMAIL PROTECTED]> wrote: > I prefer to
write my own
> - Original Message -
> From: "Zeus" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, April 12, 2001 10:11 AM
> Subject: [PHP] Easy News Script
> 
> 
> I'm sure many of you heard of newsphp ? (the newspro-clone).
> 
> Somehow I felt attached to it except that it doesn't use databases
> for its
> file storing.
> 
> Does anyone know a good similar script (easy to setup) that uses
> mySQL?
> 
> 
> 
> 
> -- 
> PHP General 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]
> 



Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie

-- 
PHP General 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] a quick date and session id question

2001-04-15 Thread Sandeep Hundal

Hi all,

I got two small questions. I'm trying to make an events calendar for
my site, in which I want people to input in future dates, and then
have the database display events by date.

NOw they will probably be given a form which allows them to choose,
and then gets inputted into the datase as a number : MMDD. But I
want to display the data as "Monday, 20 April 2001. How can I do
this? Or should I change the way I input data??

Secondly, Anyone know fof a good tutorial explaining what sessionid's
in php are for and how to use them??

TIA!

/sunny


Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie

-- 
PHP General 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] Want a Good Book for Ref on PHP

2001-04-15 Thread Manisha

Hi all,

I am just entering into PHP world. First what I did is, I signed for PHP 
mailing list.

I want to buy a good PHP book for my initial start and may be later on as a 
reference. I know there are lot in the market. Can anybody suggest a good 
book among them ?

manisha


-- 
PHP General 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]




Re: [PHP] Want a Good Book for Ref on PHP

2001-04-15 Thread Kath

Professional PHP Programming:
http://www.amazon.com/exec/obidos/ASIN/1861002963/qid=987388364/sr=1-12/ref=
sc_b_13/002-2263539-0333643

PHP Fast & Easy Web Development:
http://www.amazon.com/exec/obidos/ASIN/076153055X/qid=987388364/sr=1-9/ref=s
c_b_10/002-2263539-0333643

I started with these books and STILL refer to them today.

- Kath

- Original Message -
From: "Manisha" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, April 15, 2001 10:46 PM
Subject: [PHP] Want a Good Book for Ref on PHP


> Hi all,
>
> I am just entering into PHP world. First what I did is, I signed for PHP
> mailing list.
>
> I want to buy a good PHP book for my initial start and may be later on as
a
> reference. I know there are lot in the market. Can anybody suggest a good
> book among them ?
>
> manisha
>
>
> --
> PHP General 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 General 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]




RE: [PHP] a quick date and session id question

2001-04-15 Thread Maxim Maletsky

Hi,

All you need is to insert the data into the database as

MMDD

and then pull it out reformatting it with mySQL functions:


SELECT
DATE_FORMAT(date, "%W, %e %M %Y") AS date
FROM
table
;

this will return you the date in "Monday, 20 April 2001" format

Consult with mySQL (or other SQL DB) manuals searching for DATE_FORMAT.





Sincerely,

 Maxim Maletsky
 Founder, Chief Developer

 PHPBeginner.com (Where PHP Begins)
 [EMAIL PROTECTED]
 www.phpbeginner.com






-Original Message-
From: Sandeep Hundal [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 16, 2001 11:33 AM
To: php
Subject: [PHP] a quick date and session id question


Hi all,

I got two small questions. I'm trying to make an events calendar for
my site, in which I want people to input in future dates, and then
have the database display events by date.

NOw they will probably be given a form which allows them to choose,
and then gets inputted into the datase as a number : MMDD. But I
want to display the data as "Monday, 20 April 2001. How can I do
this? Or should I change the way I input data??

Secondly, Anyone know fof a good tutorial explaining what sessionid's
in php are for and how to use them??

TIA!

/sunny


Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie

-- 
PHP General 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 General 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]




Re: [PHP] a quick date and session id question

2001-04-15 Thread Brian Clark

Hi Sandeep,

@ 10:33:16 PM on 4/15/2001, Sandeep Hundal wrote:

...
> NOw they will probably be given a form which allows them to choose,
> and then gets inputted into the datase as a number : MMDD. But I
> want to display the data as "Monday, 20 April 2001. How can I do
> this?

Yes, with strtotime():



...
> Secondly, Anyone know fof a good tutorial explaining what sessionid's
> in php are for and how to use them??

Try here: 


-Brian
--
 PGP is spoken here: 0xE4D0C7C8
 Please, DO NOT carbon copy me on list replies.



-- 
PHP General 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]




Re: [PHP] a quick date and session id question

2001-04-15 Thread Brian Clark


@ 10:56:48 PM on 4/15/2001, Brian Clark wrote:

...
> function decipherDate($string, $format)
> {

Oops, you'll probably want to give $format a default value if one
isn't passed. And maybe change the returns if you want to do something
like:

if(!decipherDate('blah'))
...

>if(!$formatted = @date($format, strtotime($string)))
>   return 'Unable to understand decipher date string.';
>return $formatted;
> }

> /* Sunday, April 15 20001 */
> print decipherDate('20010415',"l, j F Y");

> print "\n";

> /* 'Unable to understand decipher date string. */

I may be dyslexic or something, I'm not sure.

> print decipherDate('thisisgarbage234',"l, j F Y");

> print "\n";

> /* Tuesday, 8 March 2005 */
> print decipherDate('march 8, 2005',"l, j F Y");

> ?>


-Brian
--
 PGP is spoken here: 0xE4D0C7C8
 Please, DO NOT carbon copy me on list replies.



-- 
PHP General 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]




Re: [PHP] Want a Good Book for Ref on PHP

2001-04-15 Thread Manisha

Whether these books cover PHP 4 also ?

manisha

At 10:54 PM 4/15/01 -0400, Kath wrote:
>Professional PHP Programming:
>http://www.amazon.com/exec/obidos/ASIN/1861002963/qid=987388364/sr=1-12/ref=
>sc_b_13/002-2263539-0333643
>
>PHP Fast & Easy Web Development:
>http://www.amazon.com/exec/obidos/ASIN/076153055X/qid=987388364/sr=1-9/ref=s
>c_b_10/002-2263539-0333643
>
>I started with these books and STILL refer to them today.
>
>- Kath
>
>- Original Message -
>From: "Manisha" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Sunday, April 15, 2001 10:46 PM
>Subject: [PHP] Want a Good Book for Ref on PHP
>
>
> > Hi all,
> >
> > I am just entering into PHP world. First what I did is, I signed for PHP
> > mailing list.
> >
> > I want to buy a good PHP book for my initial start and may be later on as
>a
> > reference. I know there are lot in the market. Can anybody suggest a good
> > book among them ?
> >
> > manisha
> >
> >
> > --
> > PHP General 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 General 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]




Re: [PHP] Want a Good Book for Ref on PHP

2001-04-15 Thread Brian Clark

Hi Kath,

@ 10:54:03 PM on 4/15/2001, Kath wrote:

> Professional PHP Programming:
...

> PHP Fast & Easy Web Development:
...

> I started with these books and STILL refer to them today.

A good one to add to your collection would be
_PHP Developer's Cookbook_ ISBN: 0672319241

Though it's not something that teaches PHP from the ground up, it's
one of the best PHP books that I own.

-Brian
--
 PGP is spoken here: 0xE4D0C7C8
 Please, DO NOT carbon copy me on list replies.



-- 
PHP General 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] MySQL Query Question

2001-04-15 Thread Jeff Holzfaster

Hi,

I have a couple questions... first, is there a notable MySQL General List
like this one?

Second, how do you write this query properly, or can it be done?

select concat(date_format(date, "%W, %e %M %Y")," ",time) as date from TABLE
order by date DESC;

Thanks!
Jeff


-- 
PHP General 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]




RE: [PHP] Want a Good Book for Ref on PHP

2001-04-15 Thread Tyrone Mills

Hi Manisha

I use and recommend Beginning PHP 4, published by WROX and PHP Developer's
Cookbook, published by SAMS. I started with the Beginning PHP 4 book, the
PHP Manual, this list and phpbuilder.com. That was all I needed to get a
good introduction and grounding into PHP programming. The PHP Developer's
Cookbook just takes it all to the next level and gives me useable examples
to real world problems.

Enjoy,

Tyrone

-Original Message-
From: Brian Clark [mailto:[EMAIL PROTECTED]]
Sent: Sunday, April 15, 2001 8:12 PM
To: PHP is not a drug.
Subject: Re: [PHP] Want a Good Book for Ref on PHP


Hi Kath,

@ 10:54:03 PM on 4/15/2001, Kath wrote:

> Professional PHP Programming:
...

> PHP Fast & Easy Web Development:
...

> I started with these books and STILL refer to them today.

A good one to add to your collection would be
_PHP Developer's Cookbook_ ISBN: 0672319241

Though it's not something that teaches PHP from the ground up, it's
one of the best PHP books that I own.

-Brian
--
 PGP is spoken here: 0xE4D0C7C8
 Please, DO NOT carbon copy me on list replies.



--
PHP General 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 General 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]




Re: [PHP] Want a Good Book for Ref on PHP

2001-04-15 Thread Kath

Yes, they do.

- Kath

- Original Message -
From: "Manisha" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, April 15, 2001 11:11 PM
Subject: Re: [PHP] Want a Good Book for Ref on PHP


> Whether these books cover PHP 4 also ?
>
> manisha
>
> At 10:54 PM 4/15/01 -0400, Kath wrote:
> >Professional PHP Programming:
>
>http://www.amazon.com/exec/obidos/ASIN/1861002963/qid=987388364/sr=1-12/ref
=
> >sc_b_13/002-2263539-0333643
> >
> >PHP Fast & Easy Web Development:
>
>http://www.amazon.com/exec/obidos/ASIN/076153055X/qid=987388364/sr=1-9/ref=
s
> >c_b_10/002-2263539-0333643
> >
> >I started with these books and STILL refer to them today.
> >
> >- Kath
> >
> >- Original Message -
> >From: "Manisha" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Sunday, April 15, 2001 10:46 PM
> >Subject: [PHP] Want a Good Book for Ref on PHP
> >
> >
> > > Hi all,
> > >
> > > I am just entering into PHP world. First what I did is, I signed for
PHP
> > > mailing list.
> > >
> > > I want to buy a good PHP book for my initial start and may be later on
as
> >a
> > > reference. I know there are lot in the market. Can anybody suggest a
good
> > > book among them ?
> > >
> > > manisha
> > >
> > >
> > > --
> > > PHP General 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 General 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 General 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]




Re: [PHP] MySQL Query Question

2001-04-15 Thread CC Zona

In article <[EMAIL PROTECTED]>,
 [EMAIL PROTECTED] ("Jeff Holzfaster") wrote:

> I have a couple questions... first, is there a notable MySQL General List
> like this one?

Yes.  The list on mysql.com is quite active and, like this one, it's common 
to get responses directly from one of the developers.  (Another similarity: 
the MySQL list is also archived at marc.theaimesgroup.com)  The most 
notable difference is that AFAIK there is no official news mirror of the 
MySQL list as there is for the PHP.net lists.  Darn it.

> Second, how do you write this query properly, or can it be done?
> 
> select concat(date_format(date, "%W, %e %M %Y")," ",time) as date from TABLE
> order by date DESC;

The MySQL manual has a chapter on date/time fuctions.  Or is it the 'order 
by' clause that's giving you trouble...?  I assume that 'date' is a 
reserved word, so it may be confusing mysql.  In which case, try using a 
different alias, like 'f_date".

-- 
CC

-- 
PHP General 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] file upload failed....:(

2001-04-15 Thread JoshuaHu

I use PHP 4.04p11 on Apache.
But my upload.php can't work...
f1 is the name of file-upload-variable

Upload successfully";
  $fname=substring (strrchr($f1_name,"\"),1);
 }
unlink ($f1);
?>

The browser returns
Parse error: parse error in c:/inetpub/php_root/upload.php on line 8
Can anyone tell me where I make mistake...
thanks a lot



-- 
PHP General 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]




RE: [PHP] MySQL Query Question

2001-04-15 Thread Jeff Holzfaster




> The MySQL manual has a chapter on date/time factions.  Or is it
> the 'order
> by' clause that's giving you trouble...?  I assume that 'date' is a
> reserved word, so it may be confusing mysql.  In which case, try using a
> different alias, like 'f_date".


This works:  select date_format(date, "%W, %e %M %Y") as date from table
This doesn't:  select concat(date_format(date, "%W, %e %M %Y")," ",time) as
time_of_day

I'm wondering if it is possible to use concat in this way and how if it is
possible.  Maybe this is a question better suited for the MySQL list.

Thanks!
Jeff


-- 
PHP General 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]




RE: [PHP] file upload failed....:(

2001-04-15 Thread Ankur Verma

try

Upload successfully";
  $fname=substring (strrchr($f1_name,"\\"),1);
 }
unlink ($f1);
?>

also the substring() function does not exist until unless you have written
it yourself for the code. The standard function is substr().

hope that helps

regards

Ankur Verma
New Delhi
India

-Original Message-
From: JoshuaHu [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 16, 2001 9:28 AM
To: [EMAIL PROTECTED]
Subject: [PHP] file upload failed:(


I use PHP 4.04p11 on Apache.
But my upload.php can't work...
f1 is the name of file-upload-variable

Upload successfully";
  $fname=substring (strrchr($f1_name,"\"),1);
 }
unlink ($f1);
?>

The browser returns
Parse error: parse error in c:/inetpub/php_root/upload.php on line 8
Can anyone tell me where I make mistake...
thanks a lot



--
PHP General 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 General 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]




Re: [PHP] Netscape 4.77 and PHP

2001-04-15 Thread Jason Caldwell

that was it

i was missing the closing 

thanks


""Jason Caldwell"" <[EMAIL PROTECTED]> wrote in message
9bbd0v$686$[EMAIL PROTECTED]">news:9bbd0v$686$[EMAIL PROTECTED]...
> I've created a test.php file that dynamically loads HTML.. works totally
> fine in IE 5, but when I test it with Netscape 4.77 -- nothing comes up...
> just a totally blank page.
>
> Anyone know why this might be happening?
>
> Thanks.
> Jason
>
>
>
>
> --
> PHP General 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 General 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-CVS] cvs: php4 /ext/pcre php_pcre.c

2001-04-15 Thread Andrei Zmievski

andrei  Sun Apr 15 21:56:31 2001 EDT

  Modified files:  
/php4/ext/pcre  php_pcre.c 
  Log:
  @- Fixed a bug with /e modifier in preg_replace(), that would not correctly
  @  replace two-digit references if single digit references were present
  @  before them. This fixed bug #10218. (Andrei)
  
  
Index: php4/ext/pcre/php_pcre.c
diff -u php4/ext/pcre/php_pcre.c:1.90 php4/ext/pcre/php_pcre.c:1.91
--- php4/ext/pcre/php_pcre.c:1.90   Tue Mar 13 08:39:47 2001
+++ php4/ext/pcre/php_pcre.cSun Apr 15 21:56:31 2001
@@ -16,12 +16,13 @@
+--+
  */
 
-/* $Id: php_pcre.c,v 1.90 2001/03/13 16:39:47 fmk Exp $ */
+/* $Id: php_pcre.c,v 1.91 2001/04/16 04:56:31 andrei Exp $ */
 
 #include "php.h"
 #include "php_globals.h"
 #include "php_pcre.h"
 #include "ext/standard/info.h"
+#include "ext/standard/php_smart_str.h"
 
 #if HAVE_PCRE || HAVE_BUNDLED_PCRE
 
@@ -584,37 +585,36 @@
int *offsets, int count, char **result)
 {
zval retval;/* Return value from 
evaluation */
-   char backref_buf[4],/* Buffer for string version of 
backref */
-   *code,  /* PHP code string */
-   *new_code,  /* Code as result of 
substitution */
+   char*eval_str_end,  /* End of eval string */
*match, /* Current match for a 
backref */
*esc_match, /* Quote-escaped match 
*/
*walk,  /* Used to walk the 
code string */
+   *segment,   /* Start of segment to 
+append while walking */
 walk_last; /* Last walked 
character */
-   int  code_len;  /* Length of the code 
string */
-   int  new_code_len;  /* Length of the substituted 
code string */
int  match_len; /* Length of the match 
*/
int  esc_match_len; /* Length of the quote-escaped 
match */
int  result_len;/* Length of the result of the 
evaluation */
int  backref;   /* Current backref */
char*compiled_string_description;
+   smart_strcode = {0};
CLS_FETCH();
ELS_FETCH();

-   /* Save string to be evaluated, since we will be modifying it */
-   code = estrndup(eval_str, eval_str_len);
-   walk = code;
-   new_code_len = code_len = eval_str_len;
+   eval_str_end = eval_str + eval_str_len;
+   walk = segment = eval_str;
walk_last = 0;

-   while (*walk) {
+   while (walk < eval_str_end) {
/* If found a backreference.. */
if ('\\' == *walk || '$' == *walk) {
+   smart_str_appendl(&code, segment, walk - segment);
if (walk_last == '\\') {
-   memmove(walk-1, walk, code_len - (walk - code) + 1);
+   code.c[code.len-1] = *walk++;
+   segment = walk;
walk_last = 0;
continue;
}
+   segment = walk;
if (preg_get_backref(walk+1, &backref)) {
if (backref < count) {
/* Find the corresponding string match and 
substitute it
@@ -632,30 +632,27 @@
esc_match_len = 0;
match_len = 0;
}
-   sprintf(backref_buf, "%c%d", *walk, backref);
-   new_code = php_str_to_str(code, code_len,
- 
backref_buf, (backref > 9) ? 3 : 2,
- 
esc_match, esc_match_len, &new_code_len);
+   smart_str_appendl(&code, esc_match, esc_match_len);
 
/* Adjust the walk pointer */
-   walk = new_code + (walk - code) + match_len;
+   walk += (backref > 9 ? 3 : 2);
+   segment = walk;
 
/* Clean up and reassign */
if (esc_match_len)
efree(esc_match);
-   efree(co

[PHP] fwrite not writing

2001-04-15 Thread CC Zona

This function suddenly stopped working, and I just can't seem to figure out 
why.  The only change made recently is that now the value of $force at 
calltime is sometimes true instead of being undefined or null.  

build_file("file_content","/path/to/file.inc","w",TRUE);

function build_file($func_name,$filepath,$mode="w",$force=FALSE)
   {
   if($force or !file_exists($filepath) or !filesize($filepath)) //echo 
filesize($filepath) shows '0'
  { 
  $content=$func_name(); //echo $content shows it's all there
   $fp=fopen($filepath,$mode); 
   fwrite($fp,$content);
   rewind($fp); #temp test
  $read_back=fread($fp,10); #temp test
  echo "file content:\n $read_back"; #temp test, displays nothing
 fclose($fp); 
  }
   }

I've tried putting echoes and "or die('Error on __LINE__')" on every line, 
checked all the variable values, and found no answers from that.  
Everything shows exactly as it should be except that the content that 
echoes out so nicely *doesn't ever get written to the file*.  The function 
runs to the end without error and the file's modification date is even 
updated.  But the file remains empty. I'm probably missing something 
ridiculously obvious, but would someone please be kind enough to point out 
what it is?  Thank you!!

-- 
CC

-- 
PHP General 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]




Re: [PHP] MySQL Query Question

2001-04-15 Thread CC Zona

In article <[EMAIL PROTECTED]>,
 [EMAIL PROTECTED] ("Jeff Holzfaster") wrote:

> This works:  select date_format(date, "%W, %e %M %Y") as date from table
> This doesn't:  select concat(date_format(date, "%W, %e %M %Y")," ",time) as
> time_of_day
> 
> I'm wondering if it is possible to use concat in this way and how if it is
> possible.  Maybe this is a question better suited for the MySQL list.

Yu'huh. 

Questions about making MySQL do stuff --> MySQL list
Questions about making PHP do stuff --> PHP lists

Questions about making PHP & MySQL play nice with each other...it's a 
judgement call.  IMO, the PHP-DB list is the best (certainly the most 
thematically appropriate) place for PHP/MySQL integration issues, but YMMV.

-- 
CC

-- 
PHP General 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]




Re: [PHP] Want a Good Book for Ref on PHP

2001-04-15 Thread Martin Skjöldebrand

Kath wrote:

> Professional PHP Programming:
> 
http://www.amazon.com/exec/obidos/ASIN/1861002963/qid=987388364/sr=1-12/ref=
> sc_b_13/002-2263539-0333643

I've got Beginning PHP 4 (recommended) on the back cover of which it says 
that the next book could be "Professional PHP Programming.".
However from what I saw in the book shop they cover lots of the same 
ground. I (and my employer) wouldn't like to pay for the same stuff again.
Is there a significant difference between the two?

Martin S.

-- 
PHP General 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]




Re: [PHP] SQL Query syntax error... Help?

2001-04-15 Thread Plutarck

In the future, to make things easier on yourself, when you get a query
syntax error add an "echo $sql;" line right before your query.

Almost every time I have a query problem, that solves it.


--
Plutarck
Should be working on something...
...but forgot what it was.


""Scott VanCaster"" <[EMAIL PROTECTED]> wrote in message
9bd394$ikn$[EMAIL PROTECTED]">news:9bd394$ikn$[EMAIL PROTECTED]...
> I've only been trying to learn this stuff for a few days and thought I was
> on a roll, but now have run into a problem I don't get at all.  In my
script
> I have the following sql query and am receiving the following error when
it
> executes "You have an error in your SQL syntax near '' at line 1."
>
> Any idea what my problem is?  I removed the WHERE id=$id and it works, but
> updates every record of course :(
>
> I'm lost here.  Thanks for any help.
>
> $sql ="UPDATE members SET ".
>   "name='$name', ".
>   "email='$email', ".
>   "icq='$icq', ".
>   "password='$password', ".
>   "loginid='$loginid', ".
>   "countryid='$countryid', ".
>   "gtlogin='$gtlogin', ".
>   "gtpass='$gtpass', ".
>   "swirvelogin='$swirvelogin', ".
>   "swirvepass='$swirvepass' ".
>   "WHERE id=$id" ;
>
>
>
> --
> PHP General 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 General 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-general Digest 16 Apr 2001 06:07:44 -0000 Issue 630

2001-04-15 Thread php-general-digest-help


php-general Digest 16 Apr 2001 06:07:44 - Issue 630

Topics (messages 48643 through 48707):

Access/SQL Server?
48643 by: Bob Clingan
48674 by: Brian Clark
48677 by: Andrew Hill

Re: What's XML's Purpose??
48644 by: Manuel Lemos
48645 by: Manuel Lemos

Re: Display Formatted Query Results
48646 by: Manuel Lemos

PCRE vs. POSIX
48647 by: bill
48648 by: CC Zona

accepting credit cards
48649 by: Tyler Longren
48665 by: Tobias Talltorp

list table by date
48650 by: Augusto Cesar Castoldi
48662 by: Seung-woo Nam

SQL Query syntax error... Help?
48651 by: Scott VanCaster
48652 by: Augusto Cesar Castoldi
48653 by: Felix Kronlage
48654 by: Scott VanCaster
48655 by: Scott VanCaster
48656 by: Scott VanCaster
48657 by: Scott VanCaster
48658 by: Scott VanCaster
48659 by: Chris Cocuzzo
48660 by: Chris Cocuzzo
48707 by: Plutarck

Re: Netscape 4.77 and PHP
48661 by: Jason Caldwell
48703 by: Jason Caldwell

unregister part of array in session
48663 by: Tobias Talltorp
48675 by: Brian Clark
48679 by: Yasuo Ohgaki
48680 by: Brian Clark

Re: getcwd()
48664 by: Don Read

store array in a file?
48666 by: jaxon
48673 by: Brian Clark
48678 by: Brian Clark
48681 by: Juan C. Borrero

Re: Oracle Connection
48667 by: Andrew Hill

MySQL Data to a HTML-Form
48668 by: Denis Mettler
48676 by: Brian Clark

Re: search string
48669 by: Brian Clark
48683 by: Tobias Talltorp
48684 by: dempsejn.georgetown.edu
48685 by: Brian Clark

Re: test
48670 by: Brian Clark

Re: limiting page for printing
48671 by: Brian Clark

Re: Creating thumbnails
48672 by: Brian Clark

Re: Need Feedback
48682 by: PHP General List

Re: Easy News Script
48686 by: Sandeep Hundal

a quick date and session id question
48687 by: Sandeep Hundal
48690 by: Maxim Maletsky
48691 by: Brian Clark
48692 by: Brian Clark
48696 by: Chris Adams

Want a Good Book for Ref on PHP
48688 by: Manisha
48689 by: Kath
48693 by: Manisha
48694 by: Brian Clark
48697 by: Tyrone Mills
48698 by: Kath
48706 by: Martin Skjöldebrand

MySQL Query Question
48695 by: Jeff Holzfaster
48699 by: CC Zona
48701 by: Jeff Holzfaster
48705 by: CC Zona

file upload failed:(
48700 by: JoshuaHu
48702 by: Ankur Verma

fwrite not writing
48704 by: CC Zona

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]


--



What to I need to do/configure in order for PHP 4 to be able to connect to
Access and/or SQL Server databases?

--Bob






Hi Bob,

@ 2:40:21 PM on 4/15/2001, Bob Clingan wrote:

> What to I need to do/configure in order for PHP 4 to be able to
> connect to Access and/or SQL Server databases?

http://www.php.net/manual/en/install.configure.php#install.configure.databases

-Brian
--
 PGP is spoken here: 0xE4D0C7C8
 Please, DO NOT carbon copy me on list replies.






Locally on a Win32 box, use the odbc functions built in, with a local DSN.

On Unix, compile php with iodbc (http://www.iodbc.org) and use an ODBC
driver to connect to the SQLServer or Access db on the Win32 box.

You can use OpenLink's drivers if you like -

For SQLServer:
- install Multi-Tier driver from www.openlinksw.com, with client as unix
and server as win box.
- configure DSN in unix side odbc.ini, per the example.
- test with odbctest
- use odbc_connect() in your script, making sure you have specified
putenv("ODBCINI=/path/to/odbc.ini");

For Access
-similar to above, but unix side DSN needs to pass Database field as
name of a Win32 side DSN using the native MS driver.  The ServerType should
also be ODBC instead of Access on the unix side.

Please let me know if you require assistance.


Best regards,
Andrew

Andrew Hill . Director Technology Evangelism
OpenLink Software . www.openlinksw.com
Internet Data Integration Technology



On 4/15/01 2:40 PM, "Bob Clingan" <[EMAIL PROTECTED]> wrote:

> What to I need to do/configure in order for PHP 4 to be able to connect to
> Access and/or SQL Server databases?
> 
> --Bob
> 
> 





Hello Chris,

On 14-Apr-01 16:07:59, you wrote:


>Alright I'll start this out by saying I have a subscription to "Visual Basic
>Programmers Journal". Before I converted and realized that I loved PHP so
>much I used ASP. Well it seems that in this magazine that XML is a hot topic
>in the MS world. I know XML can be use

Re: [PHP] fwrite not writing

2001-04-15 Thread Plutarck

What is this:

!filesize($filepath)

Add this above your if loop:

$filesize = filesize($filepath);
echo $filesize;


That might be causing your loop not to execute...if not, I'm not sure what's
wrong.


--
Plutarck
Should be working on something...
...but forgot what it was.


"CC Zona" <[EMAIL PROTECTED]> wrote in message
9bdv8u$2la$[EMAIL PROTECTED]">news:9bdv8u$2la$[EMAIL PROTECTED]...
> This function suddenly stopped working, and I just can't seem to figure
out
> why.  The only change made recently is that now the value of $force at
> calltime is sometimes true instead of being undefined or null.
>
> build_file("file_content","/path/to/file.inc","w",TRUE);
>
> function build_file($func_name,$filepath,$mode="w",$force=FALSE)
>{
>if($force or !file_exists($filepath) or !filesize($filepath)) //echo
> filesize($filepath) shows '0'
>   {
>   $content=$func_name(); //echo $content shows it's all there
>$fp=fopen($filepath,$mode);
>fwrite($fp,$content);
>rewind($fp); #temp test
>   $read_back=fread($fp,10); #temp test
>   echo "file content:\n $read_back"; #temp test, displays
nothing
>  fclose($fp);
>   }
>}
>
> I've tried putting echoes and "or die('Error on __LINE__')" on every line,
> checked all the variable values, and found no answers from that.
> Everything shows exactly as it should be except that the content that
> echoes out so nicely *doesn't ever get written to the file*.  The function
> runs to the end without error and the file's modification date is even
> updated.  But the file remains empty. I'm probably missing something
> ridiculously obvious, but would someone please be kind enough to point out
> what it is?  Thank you!!
>
> --
> CC
>
> --
> PHP General 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 General 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]




Re: [PHP] Want a Good Book for Ref on PHP

2001-04-15 Thread Plutarck

Personally, I never even bought a PHP book. I learned from the web
only...hehe.

First, go to zend.com and check out their tutorial and article sections.
Then check out their links section, which just so happens to have links to
17 books, 10 of which are non-english.

Check out phpbuilder.com, devshed.com, and phpbeginner.com. weberdev is also
a good one.


First of course, read the PHP manual. I basically learned everything I
needed to from those sites. The rest comes from just hacking out code.

PHP changed alot during the books writing process, so it's really rather
impossible to get a totally updated book. For instance if you started
writing a book now on PHP v4.0.5, PHP would be nearing version 5 before it
ever hit a bookshelf.


--
Plutarck
Should be working on something...
...but forgot what it was.


"Manisha" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi all,
>
> I am just entering into PHP world. First what I did is, I signed for PHP
> mailing list.
>
> I want to buy a good PHP book for my initial start and may be later on as
a
> reference. I know there are lot in the market. Can anybody suggest a good
> book among them ?
>
> manisha
>
>
> --
> PHP General 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 General 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]




Re: [PHP] Want a Good Book for Ref on PHP

2001-04-15 Thread eschmid+sic

On Mon, Apr 16, 2001 at 01:23:46AM -0500, Plutarck wrote:
 
> First, go to zend.com and check out their tutorial and article sections.
> Then check out their links section, which just so happens to have links to
> 17 books, 10 of which are non-english.

Why don't you visit php.net/books.php? There you can find much more books.

> First of course, read the PHP manual. I basically learned everything I
> needed to from those sites. The rest comes from just hacking out code.

Many thanks! I'havent noticed that some people read this manual.
 
> PHP changed alot during the books writing process, so it's really rather
> impossible to get a totally updated book. For instance if you started
> writing a book now on PHP v4.0.5, PHP would be nearing version 5 before it
> ever hit a bookshelf.

I don't see your point here, PHP version 4 and 5 would be compatible. If
you are interested into the latest features, you have to read journals
instead of books. 

-Egon

-- 
LinuxTag, Stuttgart, Germany: July 5-8 2001: http://www.linuxtag.de/
All known books about PHP and related books: http://php.net/books.php 
Concert Band of the University of Hohenheim: http://www.concert-band.de/
First and second bestselling book in German: http://www.php-buch.de/

-- 
PHP General 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] fetching recursive mail parts

2001-04-15 Thread Madis Malv

I have that message (at the end of this message) which has recursive 
parts. First part is a message itself and second is an attachment. 
Message part is divided into two parts (text/plain and text/html). Is 
there any way I can fetch only text/html that is part[0]->part[1] to 
$body variable with imap functions?

Thanks,
Madis

*
This is a multi-part message in MIME format.

--=_NextPart_000_0012_01C0C331.9C5F9EE0
Content-Type: multipart/alternative;
boundary="=_NextPart_001_0013_01C0C331.9C5F9EE0"


--=_NextPart_001_0013_01C0C331.9C5F9EE0
Content-Type: text/plain;
charset="iso-8859-4"
Content-Transfer-Encoding: quoted-printable

see kiri on qp formaadis
vaatame, mis formaadis on attachment

--=_NextPart_001_0013_01C0C331.9C5F9EE0
Content-Type: text/html;
charset="iso-8859-4"
Content-Transfer-Encoding: quoted-printable








see kiri on qp formaadis
vaatame, mis formaadis on=20
attachment

--=_NextPart_001_0013_01C0C331.9C5F9EE0--

--=_NextPart_000_0012_01C0C331.9C5F9EE0
Content-Type: application/x-msexcel;
name="EXHIBIT_C.xls"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="EXHIBIT_C.xls"

0M8R4KGxGuEAPgADAP7/CQAGAAABGQ
AA
EAAA/v///wD+ABgAAAD///
//
//
//etc.

--=_NextPart_000_0012_01C0C331.9C5F9EE0--



-- 
PHP General 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]