RE: [PHP] Add Reply-To to this list(s)

2003-11-26 Thread Rasmus Lerdorf
Just to add an authoritative answer here.  Mucking up the reply-to header
is simply wrong.  I don't really care what arguments you come up with, it
makes no technical sense.  The list has been configured this way for years
and years and believe me, it is the safest and most flexible
configuration.  If you guys can't figure out how to use reply-all and
procmail to filter out duplicates if you don't want to see those, well,
then tough.  This is a technical mailing list.  I refuse to let a small
group of folks without the technical know-how make a mess of the list for
all of us who know how to deal with mailing lists correctly.

-Rasmus

On Wed, 26 Nov 2003, Nigel Jones wrote:

> Ok lets put it this way...
>
> There is LESS chance that a reply should be directed to X user than to the
> whole list
>
> If I want to CC something to the writer then let me but 99%(all together) of
> Mailing List Posts are directed to the actual List.
>
> Also why do we have to change clients? We have a FREEDOM of CHOICE
>
> If messing with the Reply-To headers then why does the NZPHPUG do it?
> ([EMAIL PROTECTED])
>
> Maybe we should consider a change or have a list like Digest(or whatever it
> is) where the Reply-To header is 'mugged'
>
> My 2 cents
>
>
>
> _
> Nigel Jones
> [EMAIL PROTECTED]
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP+FreeType installation headaches

2003-11-26 Thread Jason Wong
On Wednesday 26 November 2003 13:51, Daniel Hansen wrote:
> I am having a bear of a time getting FreeType compiled into PHP.
>
> I have successfully installed the RPM:
>
>   [EMAIL PROTECTED] rpms]# rpm -U
> freetype-2.1.3-6.i386.rpm
>   [EMAIL PROTECTED] php-4.3.1]# rpm -q freetype-2.1.3-6
>   freetype-2.1.3-6
>
> I know I need the "--with-freetype-dir=" argument in configure, and
> have tried:
>
>   --with-freetype-dir
>   --with-freetype-dir=/usr/lib/
>   --with-freetype-dir=/usr/lib

With RHL you probably want:

  --with-freetype-dir=/usr

However, recent versions of PHP has bundled both the gd & freetype libs so you 
may want to use those to save yourself some headache.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
"When the going gets tough, the tough get empirical."
-- Jon Carroll
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Add Reply-To to this list(s)

2003-11-26 Thread Jason Wong
On Wednesday 26 November 2003 04:55, Glenn E. Sieb wrote:
> > From: Eugene Lee [mailto:[EMAIL PROTECTED]
> >
> > If you would stop using M$ Outlook and switch to a better
> > mail client that supports mailing lists, your problem would be solved.
>
> Amusing--I've used Eudora.. I've used Mozilla.. I've used Netscape.. I
> don't see that behaviour in any of those. So, care to tell us which
> M$-Windows mail program supports this?

The Bat!

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
If I can have honesty, it's easier to overlook mistakes.
-- Kirk, "Space Seed", stardate 3141.9
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP+FreeType installation headaches

2003-11-26 Thread Daniel Hansen


Jason Wong wrote:

With RHL you probably want:

 --with-freetype-dir=/usr

I tried that -- no luck.  But the libfreetype* files are in /usr/lib

Someone else suggested installing the FT devel rpm (which I had not done 
earlier due to a download problem).  I am trying that now.  We'll see!

Thanks.

Dan

However, recent versions of PHP has bundled both the gd & freetype libs so you 
may want to use those to save yourself some headache.

 

--
==
For affordable custom Web solutions built on reliable, 
non-proprietary open-source technologies, Please visit
http://www.anacys.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Add Reply-To to this list(s)

2003-11-26 Thread Panos Konstantinidis
> 
> What's the problem with the "Reply All" button?
> 

  Which of the following words you just don't
understand: *some mail clients (eg yahoo) do not have
a "Reply All" button"?


__
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Add Reply-To to this list(s)

2003-11-26 Thread Jason Wong
On Wednesday 26 November 2003 04:56, Chris W. Parker wrote:
> Eugene Lee 
>
> on Tuesday, November 25, 2003 12:47 PM said:
> > If you would stop using M$ Outlook and switch to a better mail client
> > that supports mailing lists, your problem would be solved.
>
> The problem with your theory is that some of us are in corporate
> environments where personal email is not allowed and therefore a
> separate client would not work. 

If being able to use this list effectively is part of your job then you need 
to let your company know that you need a decent MUA to do your job properly.

If using this list is a personal thing, then do it in your own time, on your 
own computer with whatever software you choose to install.

> And we especially cannot abandon Outlook
> because afaik there are no other email clients that can talk to Exchange
> as well as Outlook can.

Well, then use Outlook as a client for Exchange, then use a proper MUA for 
email.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
Men of peace usually are [brave].
-- Spock, "The Savage Curtain", stardate 5906.5
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Add Reply-To to this list(s)

2003-11-26 Thread Dave G
To start out, I'd just like to make an observation. I've noticed
that some people in this thread have said how this argument has come up
many times, and they would even prefer that people look in the archives
to see what the results were of previous discussion. I find the fact
that the topic has come up multiple times in itself indicative of what
natural human expectations are. On the lists I belong to where responses
go only to the list, this topic has never come up before. Some lists I
have been on for years and years, and I swear this is the first time I
have ever encountered this issue, here on this list which uses this
system.

Before I pick out some statements that I'd like to comment
directly on, I wanted to point out a trend I've noticed which is an
assertion that people who do not like the reply-to-the-author approach
as opposed to the reply-to-the-list approach do not understand how to
use it properly. Or they do not know how to properly use the "reply to
all" button, or other nonsense.
I understand this list, my mail software, and the theory behind
the reply-to munging debate very well. Non comprehension or ability are
not at issue here. Don't assume that non-agreement equals non
understanding.

"My opinion is that this is a multi person discussion forum, not a
person to person forum."
I agree very strongly with this statement, and most of the email
that follows it. If someone posts a question, and gets a private email
solving the problem, how does everyone else benefit?
I want other people's answers to be on this list so I can learn,
and I want my answers to go to the list so that other people may build
on it and add more useful commentary.

"If you would stop using M$ Outlook and switch to a better mail
client..."
MS Outlook suffers from code bloat, but that does not mean it
does not successfully do the task that I acquired it for, which is to
receive, send, and filter my email, every day. And it has successfully
handled the many mailing lists I belong to, including this one. Blaming
the email client is just bias against brands.

"Just to add an authoritative answer here.  Mucking up the reply-to
header is simply wrong.  I don't really care what arguments you come up
with..."
This seems to describe the tone of the debate. The idea of an
authority on a matter that is incapable of considering alternate
viewpoints seems oxymoronic to me.

-- 
Cheers!
Dave G
[EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP+FreeType installation headaches

2003-11-26 Thread Jason Wong
On Wednesday 26 November 2003 15:06, Daniel Hansen wrote:
> Jason Wong wrote:
> >With RHL you probably want:
> >
> >  --with-freetype-dir=/usr
>
> I tried that -- no luck.  But the libfreetype* files are in /usr/lib
>
> Someone else suggested installing the FT devel rpm (which I had not done
> earlier due to a download problem).  I am trying that now.  We'll see!

Yes you have to install *-devel*.rpm for whatever libs you want to compile 
into php. And yes, =/usr should work once you've installed the devel package.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
Remember:  Silly is a state of Mind, Stupid is a way of Life.
-- Dave Butler
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Add Reply-To to this list(s)

2003-11-26 Thread - Edwin -
Okay, I thought I won't be posting again for this thread
but...

On Tue, 25 Nov 2003 23:30:37 -0800 (PST)
Panos Konstantinidis <[EMAIL PROTECTED]> wrote:

> > 
> > What's the problem with the "Reply All" button?
> > 
> 
>   Which of the following words you just don't
> understand: *some mail clients (eg yahoo) do not have
> a "Reply All" button"?

Which of the following words you just don't understand: The
"Reply All" button is just BESIDE (on the right side) of the
"Reply" button!

"Do You Yahoo!?"

--

- E -
__
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Add Reply-To to this list(s)

2003-11-26 Thread Jason Wong
On Wednesday 26 November 2003 15:30, Panos Konstantinidis wrote:
> > What's the problem with the "Reply All" button?
>
>   Which of the following words you just don't
> understand: *some mail clients (eg yahoo) do not have
> a "Reply All" button"?

Not sure if you're using the same Yahoo as I do, but my one has a [Reply All] 
button. But that's besides the point. The point is, if your mail client of 
choice is broken, get a better one.

Breaking the list to cater for broken mail clients is a ludicrous suggestion.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
What PROGRAM are they watching?
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Add Reply-To to this list(s)

2003-11-26 Thread Dave G
Edwin,
I read the articles you pointed out. I'm sorry, but I still have
not seen any argument that makes me think that the reply-to-the author
option is better. In another posting I've put forth some of my reasons.

And, what is your opinion regarding "Reply All"?
Reply all is very useful sometimes. In the case of this mailing
list, however, I see it as redundant. If I hit "Reply All", then the
person I'm responding gets it twice. Once directly, and once on the
list, as this mail I'm writing now does. Since you will get this via the
list, why do you also want to get it directly? 
In any case, no one is saying that "Reply All" should be deleted
as an option. The more options the better - respond to the list, the
list and the author, the author only... all these options should be
readily available. The debate is over what is the default behaviour. I
maintain that the point of a list is to have open discussion, that
people join precisely for the advantage of participating in a group, and
so the postings should default to going to the group, with secondary
options for posting off list.

-- 
Cheers!
Dave G
[EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Windows PHP permissions question

2003-11-26 Thread Burhan Khalid
Robin Kopetzky wrote:

Good Morning/Afternoon.

I have a program that is trying to write to a directory on a Windows server
and I don't know how to setup the permissions to read/write/delete just from
this directory. I have it permissions set to 'Everyone' but that doesn't
work.
Help?!?!
If you are on IIS, you need to set the script read/write permissions, 
iirc.  If you are on Apache, I don't think permissions come into play.

--
Burhan Khalid
phplist[at]meidomus[dot]com
http://www.meidomus.com
---
"Documentation is like sex: when it is good,
 it is very, very good; and when it is bad,
 it is better than nothing."
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Add Reply-To to this list(s)

2003-11-26 Thread Panos Konstantinidis

> Which of the following words you just don't
> understand: The
> "Reply All" button is just BESIDE (on the right
> side) of the
> "Reply" button!

  There is not such a button.

__
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Windows PHP permissions question

2003-11-26 Thread Jason Wong
On Wednesday 26 November 2003 02:38, Robin Kopetzky wrote:

> I have a program that is trying to write to a directory on a Windows server
> and I don't know how to setup the permissions to read/write/delete just
> from this directory. I have it permissions set to 'Everyone' but that
> doesn't work.
>
> Help?!?!

Search the archives "windows directory write permission"

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
The longest part of the journey is said to be the passing of the gate.
-- Marcus Terentius Varro
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Windows Environment Variables

2003-11-26 Thread Jason Wong
On Wednesday 26 November 2003 00:24, Rodney Green wrote:

> Is PHP able to access and use Windows Environment Variables? If so, is
> there a function or a reference you can point me to?

If any are available they would most likely be in:

  print_r($_SERVER)

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
If I don't see you in the future, I'll see you in the pasture.
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Is there a php built-in function to determine the number of dimensions of the array?

2003-11-26 Thread Pavel Jartsev
[EMAIL PROTECTED] wrote:
Hello all mailing list, I am wondering if it exists a PHP built-in function
to determine the numbers of dimensions of any type of array (indexed, and
associative), thanks for any help, bye.
http://www.php.net/manual/en/function.count.php

--
Pavel a.k.a. Papi
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Add Reply-To to this list(s)

2003-11-26 Thread Panos Konstantinidis
> 
> Breaking the list to cater for broken mail clients
> is a ludicrous suggestion.

  Do you think lame "arguments" like the following
aren't?

(from http://www.unicom.com/pw/reply-to-harmful.html)

"Some administrators justify Reply-To munging by
saying, "All responses should go directly to the list
anyway." This is arrogant. "

  (while sending a personal e-mail and noone else has
a chance to find about a particular problem and a
solution is not arrogant. I wonder what's the point of
mailing lists then?)

"You should allow *me* to decide exactly how I wish to
respond to a message."

  (This counterbalances  our "add a reply-to-all"
functionality messages. Probably the author didn't
take into account that *I* should also be allowed to
reply to all people and that this should be *my*
choice)


__
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] array problems

2003-11-26 Thread Jason Wong
On Wednesday 26 November 2003 04:45, Curtis Maurand wrote:

>   consider the following code (content.txt is tab delimited).
>
> $city = "Ipswitch";
> $content = fopen("content.txt", "r");
> $city_found = 0;
> while (!feof($content) && $city_found == 0)
>   {
> $my_line = fgets($content, "r");
> $content_array = explode("\t",$my_line);
> if ($content_array == $city)

You can't do this comparison, $city is a string and $content_array is an 
array. It's meaningless to compare them.

>   {
> print("Matched on $content_array[0]");
> $city_found = 1;
>   }
>   }
> print("$content_array[0]\n");
>
> Here's the trouble.
>
> inside the while loop $content_array is available to me.
> outside the loop $content_array is not available.  What
> am I doing wrong?

How did you confirm this observation?

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
/* Fuck me gently with a chainsaw... */
2.0.38 /usr/src/linux/arch/sparc/kernel/ptrace.c
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] eregi function?

2003-11-26 Thread Jason Wong
On Wednesday 26 November 2003 06:32, Jas wrote:
> Not sure how to do this but I have a call to a database which pulls the
> contents of a table into an array and I need a eregi string which will
> sift through the contents and put a line break (i.e. \n or ) after
> each ";", "}" or "{".  

If that is exactly what you need, then use str_replace().

>here is what I have so far...

[snip]

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
The Illiterati Programus Canto 1:
A program is a lot like a nose: Sometimes it runs, and
sometimes it blows.
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Add Reply-To to this list(s)

2003-11-26 Thread - Edwin -
Okay, I've seen my name so here we go again... ;)

On Wed, 26 Nov 2003 16:59:27 +0900
"Dave G" <[EMAIL PROTECTED]> wrote:

> Edwin,

Hi Dave,

>   I read the articles you pointed out. I'm sorry, but I
>   still have
> not seen any argument that makes me think that the
> reply-to-the author option is better. In another posting
> I've put forth some of my reasons.

Try this:
http://marc.theaimsgroup.com/?l=php-general&m=105700977431019&w=2

>> And, what is your opinion regarding "Reply All"?
>   Reply all is very useful sometimes. In the case of
>   this mailing
> list, however, I see it as redundant. If I hit "Reply All",
> then the person I'm responding gets it twice. Once
> directly, and once on the list, as this mail I'm writing
> now does. Since you will get this via the list, why do you
> also want to get it directly? 

One very good answer: (okay, you can count two)
http://marc.theaimsgroup.com/?l=php-general&m=106981188006409&w=2
http://marc.theaimsgroup.com/?l=php-general&m=106981297807237&w=2

>   In any case, no one is saying that "Reply All" should
>   be deleted
> as an option. The more options the better - respond to the
> list, the list and the author, the author only...

Um... this has been discussed as well. Most *other* mail
clients can do this--mine for one can do it ->
http://sylpheed.good-day.net/

> all these
> options should be readily available. The debate is over
> what is the default behaviour. I maintain that the point of
> a list is to have open discussion, that people join
> precisely for the advantage of participating in a group,
> and so the postings should default to going to the group,
> with secondary options for posting off list.

... and quoting Jason Wong, what else can I say?

http://marc.theaimsgroup.com/?l=php-general&m=106983314920667&w=2

[quote]
Breaking the list to cater for broken mail clients is a
ludicrous suggestion.
[/quote]

--

- E -
__
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Certificate failure for (IMAP)

2003-11-26 Thread Jason Wong
On Monday 24 November 2003 04:45, QT wrote:

> I try your advise which is imap open sample like follows and I get;
>
> Warning: imap_open(): Couldn't open stream {mail.smsavantaj.com:110/pop3

[snip]

It looks like you tried the example in the manual. As the same example worked 
for me I think that code should be OK.

Which leaves network and accessibility problems. Are you sure there are no 
firewall or other restrictions preventing you from accessing the mailserver? 
Have you tried accessing other mailservers?

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
Post proelium, praemium.
[After the battle, the reward.]
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Add Reply-To to this list(s)

2003-11-26 Thread Dave G
[quote]
Breaking the list to cater for broken mail clients is a ludicrous
suggestion.
[/quote]

I don't know who is talking about broken anything, but I'm
certainly not. I don't think this list is broken, or that my email
software is broken, or that anyone else's is, or that other lists that
handle this issue differently are broken...
Nothing as far as I can see is "broken". Everything is working
in the ways that people are intending them to work. It's the intentions
that are under question. To me the debate is not about what is the way
that any of the software is built, because that can be altered. It's
whether or not the chosen design is the most logical design.
So far it seems to me that there are two sides on this. On one
side are those who think that educated users of the internet and mail
and mailing lists have this system set up this way because it gives the
best set of options. And on the other side are those who think that
having a reply-to-list option makes more sense because it is a more
natural expectation of how mailing lists work.
Let's put tribal feelings of allegiance aside. Both points of
view are rational.
I tend towards the side that follows the "natural expectation"
model because I don't think it comes at the expense of any options. To
me the whole point of a group discussion is the group. So to default to
replying not to the group, but to the individuals in it, seems to run
contrary to the reasons I joined. That is where I am starting from, it's
got nothing to do with anyone's choice of software on either the client
or server side.

-- 
Cheers!
Dave G
[EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Add Reply-To to this list(s)

2003-11-26 Thread Jason Wong
On Wednesday 26 November 2003 17:26, Dave G wrote:

> [quote]
> Breaking the list to cater for broken mail clients is a ludicrous
> suggestion.
> [/quote]

[snip]

>   I tend towards the side that follows the "natural expectation"
> model because I don't think it comes at the expense of any options. To
> me the whole point of a group discussion is the group. So to default to
> replying not to the group, but to the individuals in it, seems to run
> contrary to the reasons I joined. That is where I am starting from, it's
> got nothing to do with anyone's choice of software on either the client
> or server side.

Simply put, there are mail clients available which are mailing-list aware. To 
reply to the list you hit the "reply-to-list" button , to reply to the sender 
you hit the "reply" button, to reply to everybody and their dogs hit the 
"reply-to-all" button.

Now the mail client that you're using does not handle mailing-lists correctly, 
so instead of looking for a better mail client you want the mailing-list 
fixed instead?

It's a bit like saying "damn, I can't fully utilise the features of MS 
Exchange  with my non-Outlook client, why don't MS fix Exchange so I can use 
it Yahoo mail?"

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
To the landlord belongs the doorknobs.
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] $ of variables, php, mysql

2003-11-26 Thread Marek Kilimajer
Eugene Lee wrote:
On Tue, Nov 25, 2003 at 11:38:27AM +0100, Marek Kilimajer wrote:
: Eugene Lee wrote:
: >
: >Try using more variables to make life a little easier to parse:
: >	
: >	$colname = $_FORM['form']
: >	$query = "select {$colname} from structure";
: >	$result = mysql_query($query);
: >	while (($row = mysql_fetch_array($result)) !== false)
: >	{
: >	echo $row[$colname];
: >	}
: >
: 
: Very dangerous. $colname can be anything, e.g. "mysql.user.password 
: colname FROM mysql.user #"

I wrote it out this way because: the other user provided no source code,
I wanted to show working code, it was late and I didn't feel like adding
anything to secure against intrusions like SQL injection attacks.  For
the sake of completeness, redo the first line above as:
	$colname = mysql_escape_string($_FORM['form']);

That does not help at all, there is no character to be escaped in 
"mysql.user.password colname FROM mysql.user #". The strig would have to 
be in quotes, and column name cannot be in qoutes.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] Add Reply-To to this list(s)

2003-11-26 Thread Nigel Jones
I totally agree.

The cost for Outlook is heaps do you think we what to flush $200(or however
much it is in your country) down the drain???


And note to the ones that say "just switch to another client" well have you
ever worked in a Corporate Enviroment, Companies have their systems locked
down so hard. And just cos someone is a Software Dev doesn't mean they get
any special privs just some extra software to play around with.

For the Fact
Outlook is the Most Used Client in Corporate Enviroments
Outlook is one of the only MS Exchange Supporting Clients for Windows
Over 60% of Personal Computers are running windows


Now lets just say we were to all remove windows and use linux imagine all
the Money that has just going down the drain that we spent on MS
Office,Games,Windows

Also there is also the convenience factor of using Reply-To, why can't I
just reply to emails the way I do for my private emails?


You may want to read the following site: http://www.catb.org/~esr/faqs/

Another 2 cents

(Man this discussion is getting expensive for some :P)



_
Nigel Jones
[EMAIL PROTECTED]


>> -Original Message-
>> From: Dave G [mailto:[EMAIL PROTECTED]
>> Sent: Wednesday, November 26, 2003 8:39 PM
>> To: [EMAIL PROTECTED]
>> Subject: RE: [PHP] Add Reply-To to this list(s)
>>
>>
>>  To start out, I'd just like to make an observation. I've noticed
>> that some people in this thread have said how this argument has come up
>> many times, and they would even prefer that people look in the archives
>> to see what the results were of previous discussion. I find the fact
>> that the topic has come up multiple times in itself indicative of what
>> natural human expectations are. On the lists I belong to where responses
>> go only to the list, this topic has never come up before. Some lists I
>> have been on for years and years, and I swear this is the first time I
>> have ever encountered this issue, here on this list which uses this
>> system.
>>
>>  Before I pick out some statements that I'd like to comment
>> directly on, I wanted to point out a trend I've noticed which is an
>> assertion that people who do not like the reply-to-the-author approach
>> as opposed to the reply-to-the-list approach do not understand how to
>> use it properly. Or they do not know how to properly use the "reply to
>> all" button, or other nonsense.
>>  I understand this list, my mail software, and the theory behind
>> the reply-to munging debate very well. Non comprehension or ability are
>> not at issue here. Don't assume that non-agreement equals non
>> understanding.
>>
>> "My opinion is that this is a multi person discussion forum, not a
>> person to person forum."
>>  I agree very strongly with this statement, and most of the email
>> that follows it. If someone posts a question, and gets a private email
>> solving the problem, how does everyone else benefit?
>>  I want other people's answers to be on this list so I can learn,
>> and I want my answers to go to the list so that other people may build
>> on it and add more useful commentary.
>>
>> "If you would stop using M$ Outlook and switch to a better mail
>> client..."
>>  MS Outlook suffers from code bloat, but that does not mean it
>> does not successfully do the task that I acquired it for, which is to
>> receive, send, and filter my email, every day. And it has successfully
>> handled the many mailing lists I belong to, including this one. Blaming
>> the email client is just bias against brands.
>>
>> "Just to add an authoritative answer here.  Mucking up the reply-to
>> header is simply wrong.  I don't really care what arguments you come up
>> with..."
>>  This seems to describe the tone of the debate. The idea of an
>> authority on a matter that is incapable of considering alternate
>> viewpoints seems oxymoronic to me.
>>
>> --
>> Cheers!
>> Dave G
>> [EMAIL PROTECTED]
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Add Reply-To to this list(s)

2003-11-26 Thread Nigel Jones
You have missed in my opinion the most important thing, many do NOT want to
throw money down the drain because their Client Doesn't support mailing
lists ok.

IMHO we'd be better off having a PHP Forum on php.net and scrub the Mailing
List altogether. That would just about suit everyone. You get to subscribe
to Topics you want to, you can subscribe to whole forums if you want to,
less Privacy Issues.



_
Nigel Jones
[EMAIL PROTECTED]


>> -Original Message-
>> From: Jason Wong [mailto:[EMAIL PROTECTED]
>> Sent: Wednesday, November 26, 2003 10:42 PM
>> To: [EMAIL PROTECTED]
>> Subject: Re: [PHP] Add Reply-To to this list(s)
>>
>>
>>
>> Simply put, there are mail clients available which are
>> mailing-list aware. To
>> reply to the list you hit the "reply-to-list" button , to reply
>> to the sender
>> you hit the "reply" button, to reply to everybody and their dogs hit the
>> "reply-to-all" button.
>>
>> Now the mail client that you're using does not handle
>> mailing-lists correctly,
>> so instead of looking for a better mail client you want the mailing-list
>> fixed instead?
>>
>> It's a bit like saying "damn, I can't fully utilise the features of MS
>> Exchange  with my non-Outlook client, why don't MS fix Exchange
>> so I can use
>> it Yahoo mail?"
>>
>> --
>> Jason Wong -> Gremlins Associates -> www.gremlins.biz
>> Open Source Software Systems Integrators
>> * Web Design & Hosting * Internet & Intranet Applications Development *
>> --
>> Search the list archives before you post
>> http://marc.theaimsgroup.com/?l=php-general
>> --
>> /*
>> To the landlord belongs the doorknobs.
>> */
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Add Reply-To to this list(s)

2003-11-26 Thread Fernando Melo
Guys. This is ridiculous!

When I check my mails from PHP General Mailing List it's to learn something
new about PHP and to help somebody to learn abut PHP.  NOT TO WITNESS CAT
FIGHTS.

Take your issues elsewhere as you or wasting everyone's time, space and
bandwidth.

-Original Message-
From: Nigel Jones [mailto:[EMAIL PROTECTED] 
Sent: 26 November 2003 12:04
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Add Reply-To to this list(s)

You have missed in my opinion the most important thing, many do NOT want to
throw money down the drain because their Client Doesn't support mailing
lists ok.

IMHO we'd be better off having a PHP Forum on php.net and scrub the Mailing
List altogether. That would just about suit everyone. You get to subscribe
to Topics you want to, you can subscribe to whole forums if you want to,
less Privacy Issues.



_
Nigel Jones
[EMAIL PROTECTED]


>> -Original Message-
>> From: Jason Wong [mailto:[EMAIL PROTECTED]
>> Sent: Wednesday, November 26, 2003 10:42 PM
>> To: [EMAIL PROTECTED]
>> Subject: Re: [PHP] Add Reply-To to this list(s)
>>
>>
>>
>> Simply put, there are mail clients available which are
>> mailing-list aware. To
>> reply to the list you hit the "reply-to-list" button , to reply
>> to the sender
>> you hit the "reply" button, to reply to everybody and their dogs hit the
>> "reply-to-all" button.
>>
>> Now the mail client that you're using does not handle
>> mailing-lists correctly,
>> so instead of looking for a better mail client you want the mailing-list
>> fixed instead?
>>
>> It's a bit like saying "damn, I can't fully utilise the features of MS
>> Exchange  with my non-Outlook client, why don't MS fix Exchange
>> so I can use
>> it Yahoo mail?"
>>
>> --
>> Jason Wong -> Gremlins Associates -> www.gremlins.biz
>> Open Source Software Systems Integrators
>> * Web Design & Hosting * Internet & Intranet Applications Development *
>> --
>> Search the list archives before you post
>> http://marc.theaimsgroup.com/?l=php-general
>> --
>> /*
>> To the landlord belongs the doorknobs.
>> */
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Add Reply-To to this list(s)

2003-11-26 Thread Roddie Grant
on 26/11/03 7:18 am, Rasmus Lerdorf at [EMAIL PROTECTED] wrote:

> Just to add an authoritative answer here.

I am now thoroughly confused!

I clicked Reply-All to Rasmus Lerdorf's message. Result:
To: Rasmus Lerdorf and Nigel Jones
Cc: PHP General Mailing List.

I clicked Reply-All on a Jason Wong message. Result:
To: [EMAIL PROTECTED]

I clicked Reply-All on a David T-G message. Result:
To: David T-G and PHP General Mailing List
Cc: to Thomas Svenson.

[Moc OSX 10.2.3, Entourage 10.1.0]

What is supposed to happen? (This is a plea for education, not a gripe.)

Roddie Grant
[EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] "Bless"ing an object

2003-11-26 Thread Wouter van Vliet
Raditha Dissanayake wrote:
> Hi Wouter,
> 
> Wouter van Vliet wrote:
> 
>> Hi Folks
>> 
>> I was wondering (mostly because I came across some situations where
>> I need it) if PHP supplies any methods to "bless" an array or object
>> to become some other object. In perl, I can simply do:
(..)
>> 
> 
> I suspect that the reason that you find bless in perl is
> because it's OO foundations are not as strong as even that of
> PHP. Well PHP's OO foundations are weak enough. :-)
> 
> The specific scenario you have described can IMHO be achieved
> with the use of serialize / deserialize.

Hmm, seriailze and deserialize.. Don't think that's what I would want to do.
You probably mean that I can serialize an object, hack the string to change
the Class reference. That's not really what I want to do. Right now I'm
hacking through it by

*) Creating a new instance of the desired class ($New = new
OtherClass())
*) Copy all attributes (foreach($this as $Key=>$Value) $New[$Key] =
$Value)
*) Replace the "$this" var ($this = $New)

Not the best solution, I now .. But it works, currently. Please, there must
be another way to do this !

Wouter

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PHP script that fills forms ?

2003-11-26 Thread Anonymous
I was just wondering if it's possible to get a PHP script to fill a form for
you? You see, I'm trying to make PHP fetch a password protected website for
me and there's a form with username and password that protects it.

Can anyone help me? Perhaps give me another sollution?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP script that fills forms ?

2003-11-26 Thread Sophie Mattoug
Anonymous wrote:

I was just wondering if it's possible to get a PHP script to fill a form for
you? You see, I'm trying to make PHP fetch a password protected website for
me and there's a form with username and password that protects it.
Can anyone help me? Perhaps give me another sollution?
 

echo '";

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] "Bless"ing an object

2003-11-26 Thread Raditha Dissanayake
Hi,

Hmm, seriailze and deserialize.. Don't think that's what I would want to do.
You probably mean that I can serialize an object, hack the string to change
the Class reference. That's not really what I want to do. 

more or less yes

Right now I'm
hacking through it by
*) Creating a new instance of the desired class ($New = new
OtherClass())
*) Copy all attributes (foreach($this as $Key=>$Value) $New[$Key] =
$Value)
*) Replace the "$this" var ($this = $New)
Not the best solution, I now .. But it works, currently. Please, there must
be another way to do this !
Unfortunately I don't think so. There isn't a single step solution to 
this problem in Java either if that's any consolation to you :-)

Wouter



 



--
Raditha Dissanayake.

http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload
Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
Graphical User Inteface. Just 150 KB | with progress bar.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] PHP script that fills forms ?

2003-11-26 Thread Anonymous
Well, you see. I didn't mean it that way. I meant PHP to fetch a website.
The website is password protected and you need to fill a form to access it.
So I would like PHP to fill that form for me. Would that be possible? Are
there any other solutions?

"Sophie Mattoug" <[EMAIL PROTECTED]> skrev i melding
news:[EMAIL PROTECTED]
> Anonymous wrote:
>
> >I was just wondering if it's possible to get a PHP script to fill a form
for
> >you? You see, I'm trying to make PHP fetch a password protected website
for
> >me and there's a form with username and password that protects it.
> >
> >Can anyone help me? Perhaps give me another sollution?
> >
> >
>
> echo '";

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP script that fills forms ?

2003-11-26 Thread Nathan Taylor
You're not making any sense my friend. If you want to fill form field then supply them 
with a value="" value.  There's nothing more to it.
  - Original Message - 
  From: Anonymous 
  To: [EMAIL PROTECTED] 
  Sent: Wednesday, November 26, 2003 5:37 AM
  Subject: Re: [PHP] PHP script that fills forms ?


  Well, you see. I didn't mean it that way. I meant PHP to fetch a website.
  The website is password protected and you need to fill a form to access it.
  So I would like PHP to fill that form for me. Would that be possible? Are
  there any other solutions?

  "Sophie Mattoug" <[EMAIL PROTECTED]> skrev i melding
  news:[EMAIL PROTECTED]
  > Anonymous wrote:
  >
  > >I was just wondering if it's possible to get a PHP script to fill a form
  for
  > >you? You see, I'm trying to make PHP fetch a password protected website
  for
  > >me and there's a form with username and password that protects it.
  > >
  > >Can anyone help me? Perhaps give me another sollution?
  > >
  > >
  >
  > echo '";

  -- 
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP script that fills forms ?

2003-11-26 Thread Sophie Mattoug
form-filling is client-side, php is server-side => i don't see any 
solution for your problem...

Anonymous wrote:

Well, you see. I didn't mean it that way. I meant PHP to fetch a website.
The website is password protected and you need to fill a form to access it.
So I would like PHP to fill that form for me. Would that be possible? Are
there any other solutions?
"Sophie Mattoug" <[EMAIL PROTECTED]> skrev i melding
news:[EMAIL PROTECTED]
 

Anonymous wrote:

   

I was just wondering if it's possible to get a PHP script to fill a form
 

for
 

you? You see, I'm trying to make PHP fetch a password protected website
 

for
 

me and there's a form with username and password that protects it.

Can anyone help me? Perhaps give me another sollution?

 

echo '";
   

 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Add Reply-To to this list(s)

2003-11-26 Thread Adam i Agnieszka Gasiorowski FNORD
"John W. Holmes" wrote:
 
> Adam i Agnieszka Gasiorowski FNORD wrote:
> 
> > Thomas Svenson wrote:
> >>>If you would stop using M$ Outlook and switch to a better mail client
> >>>that supports mailing lists, your problem would be solved.
> >>
> >>I wouldn't mind that at all. What clients do you recommend for WindwosXP? I
> >>want a small client (note: I have to use Outlook for business purposes, but
> >>have the lists on a separate account).
> >
> >   Try the Opera's 7 M2 (build-in revolutionary
> >  email and news client).
> 
> Is this an advertisement or does it actually have the features everyone
> is looking for?

It certainly is not a very _mature_ product,
 but it is very usable. It depends on what features
 you require...The most important for me is the whole
 email database concept, dynamic views and searches.
 I, personally, use both Netscape Mail, The Bat and
 Opera's M2, to do different duties. I'm a registered
 user of The Bat and Opera :8]. I guess I am an email
 fanatic ;8]. Anyway, this is rather off-topic here.

-- 
Seks, seksić, seksolatki... news:pl.soc.seks.moderowana
http://hyperreal.info  { iWanToDie }   WiNoNa)   (
http://szatanowskie-ladacznice.0-700.pl  foReVeR(  *  )
Poznaj jej zwiewne kształty... http://www.opera.com 007

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Add Reply-To to this list(s)

2003-11-26 Thread Adam i Agnieszka Gasiorowski FNORD
"John W. Holmes" wrote:

> >   Try the Opera's 7 M2 (build-in revolutionary
> >  email and news client).
> 
> Is this an advertisement or does it actually have the features everyone
> is looking for?

Oh, it does automatically sort all complying
 mailing lists, BTW, no need to create filters
 manually - so it is rather mailing-list-aware :8].

-- 
Seks, seksić, seksolatki... news:pl.soc.seks.moderowana
http://hyperreal.info  { iWanToDie }   WiNoNa)   (
http://szatanowskie-ladacznice.0-700.pl  foReVeR(  *  )
Poznaj jej zwiewne kształty... http://www.opera.com 007

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] PHP script that fills forms ?

2003-11-26 Thread Nigel Jones
If it's protected by the PHP Auth or htaccess I think you can pass User/Pass
via the headers

Anyone know for sure?



_
Nigel Jones
[EMAIL PROTECTED]


>> -Original Message-
>> From: Anonymous [mailto:[EMAIL PROTECTED]
>> Sent: Wednesday, November 26, 2003 11:38 PM
>> To: [EMAIL PROTECTED]
>> Subject: Re: [PHP] PHP script that fills forms ?
>>
>>
>> Well, you see. I didn't mean it that way. I meant PHP to fetch a website.
>> The website is password protected and you need to fill a form to
>> access it.
>> So I would like PHP to fill that form for me. Would that be possible? Are
>> there any other solutions?
>>
>> "Sophie Mattoug" <[EMAIL PROTECTED]> skrev i melding
>> news:[EMAIL PROTECTED]
>> > Anonymous wrote:
>> >
>> > >I was just wondering if it's possible to get a PHP script to
>> fill a form
>> for
>> > >you? You see, I'm trying to make PHP fetch a password
>> protected website
>> for
>> > >me and there's a form with username and password that protects it.
>> > >
>> > >Can anyone help me? Perhaps give me another sollution?
>> > >
>> > >
>> >
>> > echo '";
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Could some one check my code

2003-11-26 Thread PAUL FERRIE
i am getting this error returned but i dont know why :(
error:

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result
resource in /home/pferrie/public_html/vinrev/adm/insert2.php on line 6



php file
";
echo"Edit
record";
 }
  }else {
 if(!empty($_FILES['userfile']['tmp_name'])) {
 $name = strtolower(eregi_replace('#| |\?|!', '',
$_FILES['userfile']['name']));
 $destination = 'img/'.$name;
 if(move_uploaded_file($_FILES['userfile']['tmp_name'], $destination)) {
  $picture=$destination;
 $query = "INSERT INTO $tablename (artist, title, picture, review,
label, format, price, rating)VALUES ('$artist', '$title', '$picture',
'$review', '$label', '$format', '$price', '$rating')";
 if(!mysql_query($query)) {
   fail("Error updating DB1");
 }
  Header("Location: main.php?success=New row has been inserted into the
database");
  }
  }
 if(empty($userfile)) {
 $query2 = "INSERT INTO $tablename (artist, title, picture, review,
label, format, price, rating)VALUES ('$artist', '$title', '$picture',
'$review', '$label', '$format', '$price', '$rating')";
 if(!mysql_query($query2)) {
   fail("Error updating DB2");
   }
  Header("Location: main.php?success=New row has been inserted into the
database");

 }
}
?>


I am trying to check for a duplicate entry for rating and if one is found
grab the row ID and then use it to load the edit page for the row.

Anyone
Cheers
Paul


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Add Reply-To to this list(s)

2003-11-26 Thread Eugene Lee
On Wed, Nov 26, 2003 at 04:38:50PM +0900, Dave G wrote:
: 
: I find the fact that the topic has come up multiple times in itself
: indicative of what natural human expectations are.

I find that M$ Outlook does a number of things that going against
natural human expections.

: On the lists I belong to where responses go only to the list, this
: topic has never come up before. Some lists I have been on for years
: and years, and I swear this is the first time I have ever encountered
: this issue, here on this list which uses this system.

I'm on several other lists, and this particular topic always pops up on
an infrequent but regular basis.

[...]
: "My opinion is that this is a multi person discussion forum, not a
: person to person forum."  
- Thomas Svenson

It would help if you provide attributes to these quotes.

:   I agree very strongly with this statement, and most of the email
: that follows it. If someone posts a question, and gets a private email
: solving the problem, how does everyone else benefit?

The user who answers your question via a private email might have
reasons to answer you privately.  The fact is that the user chose to
send an email to you and not the list.  If you think the user was
mistaken and wanted to answer your question on the list, then you are
now questioning the choice and the intent of the user.  Do you really
want to guess the wildly different expectations of the user?  I've seen
several instances of people getting a private email in response to a
list question who in turn respond to the private email and post to the
*list* instead of a private email.  Many people get offended when their
private email response gets posted to a public list.  Others respond by
staunchly refusing private email feedback from other list members, and
vehemently assert that all private email received from list members are
considered public material.  See how nasty this gets?

In summary, there are several problems.  Some don't know the difference
between a private email response and a public mailing list response.
This is solved by educating the end user.

Another problem is that some mail clients fail to inform the user that a
particular reply will go to a mailing list, to a person, on to both.
This is solved with superior mail clients that lets the user know.

This leads to another problem where some list members reply to both the
mailing list and the original poster.  However, the original poster may
or may not want to receive two or more copies of the exact same message.
This is solved by informing the "possibly offending" user that the reply,
while good-intentioned, is too verbose and needs to be trimmed.

The final problem is that some people have wildly different expections
of proper netiquette regarding mailing list responses.  And the answer?
This is solved by reminding the end user of the list rules, that the
list may be configured to obey those rules, and that all users should be
obliged to work within those rules.

: "If you would stop using M$ Outlook and switch to a better mail
: client..."
- Eugene Lee, just some random person

:   MS Outlook suffers from code bloat, but that does not mean it
: does not successfully do the task that I acquired it for, which is to
: receive, send, and filter my email, every day. And it has successfully
: handled the many mailing lists I belong to, including this one. Blaming
: the email client is just bias against brands.

Let's look at the problem again:

http://news.php.net/article.php?group=php.general&article=170904

http://news.php.net/article.php?group=php.general&article=170950

If M$ Outlook can handle the php-general mailing list, then the problem
is that the solution is not easily accessible to those who need it.
This is a documentation issue that should be addressed to those who
maintain the PHP web site.

If M$ Outlook cannot handle the php-general mailing list, then the
problem is with M$ Outlook and the solution is to use a better mail
client.  This is a stubborn user issue.

All other issues, see above.

: "Just to add an authoritative answer here.  Mucking up the reply-to
: header is simply wrong.  I don't really care what arguments you come up
: with..."
- Rasmus Lerdorf, not some random person, like the guy who invented PHP,
  is one of PHP's primary core developers, and other sweet nothings

:   This seems to describe the tone of the debate. The idea of an
: authority on a matter that is incapable of considering alternate
: viewpoints seems oxymoronic to me.

You're asking to break correct standards and practices that have worked
well for lots of people for a long time.  Read the issues above.  Some
issues are with broken or misconfigured mail clients.  Other issues are
with people who don't understand or do understand but have different
expectations of behavior.  You claim that you "understand...the theory
behind the reply-to munging debate very well".  And the topic of using
the Reply-To: head

[PHP] Re: PHP script that fills forms ?

2003-11-26 Thread Bogdan Stancescu
Check out curl, I think it does this. If it doesn't, you have one last 
shot to keep it simple by sending the data via GET instead of POST. If 
that fails too, you're practically going to have to emulate a browser. 
That wouldn't be SO tricky, sending a few POST variables is not *such* a 
big deal. But you're also going to have to take care of the cookies that 
site sends you for authentication, and so on (send it back with each page).

I'm not sure this is actually worth the trouble -- you could try 
checking out Lynx and wget. While wget knows about HTTP authentication, 
I don't think you can make it understand the cookies stuff. Maybe with 
some smart automation you could somehow make lynx du what you're after.

HTH

Bogdan

Anonymous wrote:
I was just wondering if it's possible to get a PHP script to fill a form for
you? You see, I'm trying to make PHP fetch a password protected website for
me and there's a form with username and password that protects it.
Can anyone help me? Perhaps give me another sollution?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Could some one check my code

2003-11-26 Thread Sophie Mattoug


PAUL FERRIE wrote:

i am getting this error returned but i dont know why :(
error:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result
resource in /home/pferrie/public_html/vinrev/adm/insert2.php on line 6


php file

include("connection.php");
if(!empty($rating)){
$query="SELECT * FROM $tablename WHERE rating = '$rating'";
if(mysql_query($query)) {
 $myrow = mysql_fetch_array($query);//  This line returns an error!
 

you sould write :
if ($result = mysql_query($query)) {
$myrow = mysql_fetch_array($result);
Hope this helps

--
Cordialement,
---
Sophie Mattoug
Développement web dynamique
[EMAIL PROTECTED]
---
  $id = $myrow ['id'];
  echo"Error!  There is  another row in the database with a rating
value of $rating\n
   You must first edit the row with a rating of $rating ! Row id =
$id";
   echo"Edit
record";
}
 }else {
if(!empty($_FILES['userfile']['tmp_name'])) {
$name = strtolower(eregi_replace('#| |\?|!', '',
$_FILES['userfile']['name']));
$destination = 'img/'.$name;
if(move_uploaded_file($_FILES['userfile']['tmp_name'], $destination)) {
 $picture=$destination;
$query = "INSERT INTO $tablename (artist, title, picture, review,
label, format, price, rating)VALUES ('$artist', '$title', '$picture',
'$review', '$label', '$format', '$price', '$rating')";
if(!mysql_query($query)) {
  fail("Error updating DB1");
}
 Header("Location: main.php?success=New row has been inserted into the
database");
 }
 }
if(empty($userfile)) {
$query2 = "INSERT INTO $tablename (artist, title, picture, review,
label, format, price, rating)VALUES ('$artist', '$title', '$picture',
'$review', '$label', '$format', '$price', '$rating')";
if(!mysql_query($query2)) {
  fail("Error updating DB2");
  }
 Header("Location: main.php?success=New row has been inserted into the
database");
}
}
?>
I am trying to check for a duplicate entry for rating and if one is found
grab the row ID and then use it to load the edit page for the row.
Anyone
Cheers
Paul
 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] Is there a php built-in function to determine the numbe r of dimensions of the array?

2003-11-26 Thread Ford, Mike [LSS]
On 26 November 2003 03:28, [EMAIL PROTECTED] contributed these pearls
of wisdom:

> Hello all mailing list, I am wondering if it exists a PHP
> built-in function to determine the numbers of dimensions of
> any type of array (indexed, and associative), thanks for any
> help, bye. 

(i) All PHP arrays are associative -- some of them just happen to have
purely numeric indexes, and PHP itself handles numeric indexes slightly
specially, but that doesn't make them any less associative.

(ii) All PHP arrays are 1-dimensional.  Some elements of an array may
themselves contain arrays, but that only makes them nested arrays, not
multi-dimensional.  If what you want to know is the deepest level of
nesting, then, no, I don't believe there's a built-in function for this.

Cheers!

Mike

-- 
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730  Fax:  +44 113 283 3211

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Object aggregation/composition - Experimental..?

2003-11-26 Thread Ford, Mike [LSS]
On 25 November 2003 18:48, Video Populares et Optimates contributed these pearls of 
wisdom:

> Hi!
> 
> I'm sifting through the possibilities with PHP and naturally
> one of the first things I searched for was the possibility
> for OO development. Now, I found chapter LXXII in the PHP
> manual (file generated Sun Oct 05 02:13:52 2003), but it has
> quite an ugly warning clause in the top: "Warning This
> extension is experimental [...] may change without notice in
> a future release of PHP. Use this extension at your own risk."
> In the chapter "Classes and Objects" (under "Language
> Reference") I found no such warning however.
> 
> Now, OO dev. is what I really want in order to make any good
> use of PHP in the future, so this made me a bit confused.
> Does anyone know whether this extension is/will be a part of
> the core language?

I'm not an OO guru, but I believe that the aggregation extension is withdrawn in PHP5 
because there are similar features as part of the core language.  I would suggest you 
take a look at http://www.php.net/zend-engine-2.php to get a clue about where PHP5 is 
heading.
 
> Thanks for any input, and bare me with me

I'd prefer not to take my clothes off with you, thanks -- but I'm happy to bear with 
your learning curve!

>  as I'm pretty new
> (but learning fast ;-) ) in the PHP community...

Cheers!

Mike

-- 
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730  Fax:  +44 113 283 3211

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Could some one check my code

2003-11-26 Thread Eugene Lee
On Wed, Nov 26, 2003 at 11:23:19AM -, PAUL FERRIE wrote:
: 
: i am getting this error returned but i dont know why :(
: error:
: 
: Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result
: resource in /home/pferrie/public_html/vinrev/adm/insert2.php on line 6
: 
: php file
: http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Add Reply-To to this list(s)

2003-11-26 Thread David T-G
Roddie --

...and then Roddie Grant said...
% 
% on 26/11/03 7:18 am, Rasmus Lerdorf at [EMAIL PROTECTED] wrote:
% 
% > Just to add an authoritative answer here.
% 
% I am now thoroughly confused!

Well, that's an honest answer.


% 
...
% What is supposed to happen? (This is a plea for education, not a gripe.)

Exactly what you saw!  Yes, really.  Each person can configure his
headers however he wants so that he gets or doesn't get duplicate copies
of emails; that's why the Reply-To: and Mail-Followup-To: headers exist
at all.

It's OK :-)

If you still want to know more, go back to those emails and note the

  To:
  Cc:
  Reply-To:
  Mail-Followup-To:

headers and it should all become clear.  If not, send me the Message-ID
of each and I'll use that to find them and then analyze them for you.


% 
% Roddie Grant
% [EMAIL PROTECTED]


HTH & HAND

:-D
-- 
David T-G  * There is too much animal courage in 
(play) [EMAIL PROTECTED] * society and not sufficient moral courage.
(work) [EMAIL PROTECTED]  -- Mary Baker Eddy, "Science and Health"
http://justpickone.org/davidtg/  Shpx gur Pbzzhavpngvbaf Qrprapl Npg!



pgp0.pgp
Description: PGP signature


[PHP] Socket problems

2003-11-26 Thread Technical Services
I am trying to use a php include provided by a 3rd party. In the
include the code is trying to open a socket however I get the
following error:
  errno 38 - Socket operation on non-socket

however if I check the server the file requested exists and is chmoded
777.

Does anyone have any suggestions?

-- 
Best regards,
 Owen Franssen
 Technical Services Manager
 WASP (a division of Insight Web Marketing Ltd.)
 +353 64 54094

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Could some one check my code

2003-11-26 Thread John W. Holmes
PAUL FERRIE wrote:

i am getting this error returned but i dont know why :(
error:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result
resource in /home/pferrie/public_html/vinrev/adm/insert2.php on line 6
php file
You need to capture the return value of mysql_query(). mysql_query() is 
going to return a Resource that should be passed to mysql_fetch_array(), 
so it knows where to get each row from.

if($result = mysql_query($query))
{ $myrow = mysql_fetch_array($result);
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

php|architect: The Magazine for PHP Professionals – www.phparch.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Queries Regarding File Upload and Form Object enctype attribute

2003-11-26 Thread Prashant
 Dear Mr Jay Blanchard
>
> There are some queries regarding PHP 4.1.As you mentioned in php 4.1
> register_globals=off. are set for security reasons.
>
> Is it Required to have Form attribute  as enctype="multipart/form-data" if
i
> have a File Upload on the Particular Form.
>
>  enctype="multipart/form-data">
> i.e 
>
> I am Facing a Problem as when i am removing the enctype attribute in Form
> object, i am able to pass form values data
> from one form to another form i.e the destination form will able to
retrieve
> the form values, but from the source form when i keep the enctype
attribute
> in the source form object, i am unable to pass the values i.e the
> destination form is unable to retrieve
> the values passed from source form.
>
> Second Problem is I am unable to retrieve the image name using
> $_FILES['filename']['name']; in the Destination form.
> The source form has the file upload html tag
>
>  enctype="multipart/form-data">
> i.e 
> 
>
> Awaiting Your Prompt Reply,
>
> Thanks & Regards,
> Prashant S Akerkar
>
>

- Original Message -
From: Jay Blanchard <[EMAIL PROTECTED]>
To: Decapode Azur <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, November 18, 2003 6:13 PM
Subject: RE: [PHP] diff


[snip]
Is there a php function close to the *nix diff comand?
(in order to compare 2 multi-lines strings)
[/snip]

http://us2.php.net/manual/en/function.strcmp.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Add Reply-To to this list(s)

2003-11-26 Thread Jay Blanchard
[snip]
> If you would stop using M$ Outlook and switch to a better
> mail client that supports mailing lists, your problem would
> be solved.[/snip]
> 
> As has been said several times, not all can do this.

True. But maybe instead of *switching* they can just use
*another* mail client for mailing lists? ;)
[/snip]

Depends. Some corps would allow the installation of additional mail
clients, some would not.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Add Reply-To to this list(s)

2003-11-26 Thread Sophie Mattoug
Wouldn't it be possible to stop this troll ? Or go on, but in private 
between people who are interested by this matter...
Thanks

Jay Blanchard wrote:

[snip]
 

If you would stop using M$ Outlook and switch to a better
mail client that supports mailing lists, your problem would
be solved.[/snip]
As has been said several times, not all can do this.
   

True. But maybe instead of *switching* they can just use
*another* mail client for mailing lists? ;)
[/snip]
Depends. Some corps would allow the installation of additional mail
clients, some would not.
 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] Add Reply-To to this list(s)

2003-11-26 Thread Fernando Melo
I agree!

-Original Message-
From: Sophie Mattoug [mailto:[EMAIL PROTECTED] 
Sent: 26 November 2003 14:39
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Add Reply-To to this list(s)

Wouldn't it be possible to stop this troll ? Or go on, but in private 
between people who are interested by this matter...
Thanks

Jay Blanchard wrote:

>[snip]
>  
>
>>If you would stop using M$ Outlook and switch to a better
>>mail client that supports mailing lists, your problem would
>>be solved.[/snip]
>>
>>As has been said several times, not all can do this.
>>
>>
>
>True. But maybe instead of *switching* they can just use
>*another* mail client for mailing lists? ;)
>[/snip]
>
>Depends. Some corps would allow the installation of additional mail
>clients, some would not.
>
>  
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] FLAG

2003-11-26 Thread Jay Blanchard
[snip]
Well, so is there any online resource whereby I can read up on "FLAG"
???Or any idea how should I go about creating the memory location to
store the binary-ish information (e.g. true/false, yes/no, 1/0)? 
Hope to get some help soon...thnx. 
[/snip]

You're not likely to find something specific on FLAG, but maybe the
following demonstration can help



$niceWeatherFLAG is that 'memory location' (variable) where the FLAG
information is stored.

Now, what is the precise nature of your problem? List citizens would
certainly be glad to help if we knew the problem.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP script that fills forms ?

2003-11-26 Thread Justin French
On Wednesday, November 26, 2003, at 09:48  PM, Nathan Taylor wrote:

You're not making any sense my friend. If you want to fill form field 
then supply them
with a value="" value.  There's nothing more to it.
he wants PHP to act as a 'user at a keyboard and mouse', entering 
values into a form, which of course can't be done, but my other post on 
this topic offeres alternatives.

Justin French

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] PHP script that fills forms ?

2003-11-26 Thread Jay Blanchard
[snip]
I was just wondering if it's possible to get a PHP script to fill a form
for
you? You see, I'm trying to make PHP fetch a password protected website
for
me and there's a form with username and password that protects it.

Can anyone help me? Perhaps give me another sollution?
[/snip]

Use cURL http://www.php.net/curl

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP script that fills forms ?

2003-11-26 Thread Justin French
On Wednesday, November 26, 2003, at 09:14  AM, Anonymous wrote:

I was just wondering if it's possible to get a PHP script to fill a  
form for
you? You see, I'm trying to make PHP fetch a password protected  
website for
me and there's a form with username and password that protects it.

Can anyone help me? Perhaps give me another sollution?
It depends how the site at the other end works, and how securely  
they've set everything up.

If the form's action is 'get' rather than 'post', then you can simply  
copy the URL format (eg login.php?u=fred&p=secret) and submit directly  
to that script (bypassing the form).  For example, I can take a query  
like "posting to a form with PHP", and write a google URL like  
http://www.google.com/search?q=posting+to+a+form+with+PHP&ie=UTF- 
8&oe=UTF-8 ,which WILL work.

If it's 'post' rather than 'get', then I think there's some Pear  
classes that can POST data to a URL, and I think there's also some  
classes on phpclasses.org my Manuel Lemmos that do this too.

Not easy, but (AFAIK), achievable.
You might get caught out with what the next script does though...  
sessions and cookies may still prevent you from getting where you need  
to go, but that's not what you asked :)

Justin French

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] PHP script that fills forms ?

2003-11-26 Thread Prashant

 Dear Mr Justin

 There are some queries regarding PHP 4.1.As you mentioned in php 4.1
 register_globals=off. are set for security reasons.

 Is it Required to have Form attribute  as enctype="multipart/form-data" if
 i  have a File Upload on the Particular Form.

 
 i.e 

 I am Facing a Problem as when i am removing the enctype attribute in Form
 object, i am able to pass form values data  from one form to another form
i.e the destination form will able to
 retrieve  the form values, but from the source form when i keep the enctype
attribute
 in the source form object, i am unable to pass the values i.e the
destination form is unable to retrieve
 the values passed from source form.

 Second Problem is I am unable to retrieve the image name using
 $_FILES['filename']['name']; in the Destination form.
 The source form has the file upload html tag

 
 i.e 
 

 Awaiting Your Prompt Reply,

 Thanks & Regards,
 Prashant S Akerkar

- Original Message -
From: Justin French <[EMAIL PROTECTED]>
To: Nathan Taylor <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>; Anonymous <[EMAIL PROTECTED]>
Sent: Wednesday, November 26, 2003 6:18 PM
Subject: Re: [PHP] PHP script that fills forms ?


> On Wednesday, November 26, 2003, at 09:48  PM, Nathan Taylor wrote:
>
> > You're not making any sense my friend. If you want to fill form field
> > then supply them
> > with a value="" value.  There's nothing more to it.
>
> he wants PHP to act as a 'user at a keyboard and mouse', entering
> values into a form, which of course can't be done, but my other post on
> this topic offeres alternatives.
>
> Justin French
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] FLAG

2003-11-26 Thread Jay Blanchard
[snip]
You're not likely to find something specific on FLAG, but maybe the
following demonstration can help



$niceWeatherFLAG is that 'memory location' (variable) where the FLAG
information is stored.

Now, what is the precise nature of your problem? List citizens would
certainly be glad to help if we knew the problem.

 There are some queries regarding PHP 4.1.As you mentioned in php 4.1
 register_globals=off. are set for security reasons.

 Is it Required to have Form attribute  as enctype="multipart/form-data"
if
i  have a File Upload on the Particular Form.

 
 i.e 

 I am Facing a Problem as when i am removing the enctype attribute in
Form
 object, i am able to pass form values data
 from one form to another form i.e the destination form will able to
retrieve
 the form values, but from the source form when i keep the enctype
attribute
 in the source form object, i am unable to pass the values i.e the
 destination form is unable to retrieve
 the values passed from source form.

 Second Problem is I am unable to retrieve the image name using
 $_FILES['filename']['name']; in the Destination form.
 The source form has the file upload html tag

 
 i.e 
 

[/snip]

So, what does this have to do with FLAG?

As for image uploads you need to read and follow
http://us3.php.net/manual/en/features.file-upload.php carefully. The
multipart/form-date is the only way that you can upload the image file.
I can see that there is some confusion, can you post your relevant
source form code and destination form code?

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Is there a php built-in function to determine the number of dimensions of the array?

2003-11-26 Thread Jay Blanchard
[snip]
(ii) All PHP arrays are 1-dimensional.  Some elements of an array may
themselves contain arrays, but that only makes them nested arrays, not
multi-dimensional.  If what you want to know is the deepest level of
nesting, then, no, I don't believe there's a built-in function for this.
[/snip]

>From http://us3.php.net/manual/en/language.types.array.php here is an
example of a multi-dimensional array

 array ( "a" => "orange",
   "b" => "banana",
   "c" => "apple"
 ),
  "numbers" => array ( 1,
   2,
   3,
   4,
   5,
   6
 ),
  "holes"   => array (  "first",
   5 => "second",
"third"
 )
);

// Some examples to address values in the array above 
echo $fruits["holes"][5];// prints "second"
echo $fruits["fruits"]["a"]; // prints "orange"
unset($fruits["holes"][0]);  // remove "first"

Or more simply

$arrayFoo[0][0][0]
$arrayFoo[0][0][1]
$arrayFoo[0][1][1]
$arrayFoo[1][1][1]

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] FLAG

2003-11-26 Thread Ford, Mike [LSS]
On 26 November 2003 12:43, Jay Blanchard contributed these pearls of wisdom:

> [snip]
> Well, so is there any online resource whereby I can read up on
> "FLAG" ???Or any idea how should I go about creating the
> memory location to store the binary-ish information (e.g.
> true/false, yes/no, 1/0)? Hope to get some help soon...thnx.
> [/snip]
> 
> You're not likely to find something specific on FLAG, but
> maybe the following demonstration can help
> 
>  
> if("blue" == $sky){
>   $niceWeatherFLAG = TRUE;
> } else {
>   $niceWeatherFLAG = FALSE;
> }

And a better way of writing that (more concise, more efficient) is:

   $niceWeatherFLAG = ("blue" == $sky);

Cheers!

Mike

-- 
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730  Fax:  +44 113 283 3211

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Add Reply-To to this list(s)

2003-11-26 Thread David T-G
Dave, et al --

...and then Dave G said...
% 
% Edwin,
%   I read the articles you pointed out. I'm sorry, but I still have
% not seen any argument that makes me think that the reply-to-the author
% option is better. In another posting I've put forth some of my reasons.

Perhaps you've simply missed the point.  By not mandating a certain R-T
header the list software does not force "reply-to-author" but instead
simply allows whatever reply you want.

If such a header is in place and you want to reply to the author, you
must work around it.  If it is not in place, you are free to reply to the
list, the author, other recipients of the original, or any combination of
such.


HTH & HAND

:-D
-- 
David T-G  * There is too much animal courage in 
(play) [EMAIL PROTECTED] * society and not sufficient moral courage.
(work) [EMAIL PROTECTED]  -- Mary Baker Eddy, "Science and Health"
http://justpickone.org/davidtg/  Shpx gur Pbzzhavpngvbaf Qrprapl Npg!



pgp0.pgp
Description: PGP signature


[PHP] Outlinin block of code

2003-11-26 Thread Uros
Hello!

Anybody know any good PHP ide with support of code outlining like Visual
.NET.

On the left side where are usualy line numbers is "+" and you can group
functions, classes or  custom defined blocks of code.


-- 
Best regards,
 Uros  mailto:[EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Add Reply-To to this list(s)

2003-11-26 Thread David T-G
Nigel, et al --

...and then Nigel Jones said...
% 
% You have missed in my opinion the most important thing, many do NOT want to
% throw money down the drain because their Client Doesn't support mailing
% lists ok.

What money down the drain?  Most of the mail clients presented as
alternatives are free, and the productivity enhancements available
with some of them would more than pay for a meg or two of bandwidth
to download and an hour to set up.


% 
% IMHO we'd be better off having a PHP Forum on php.net and scrub the Mailing
% List altogether. That would just about suit everyone. You get to subscribe
% to Topics you want to, you can subscribe to whole forums if you want to,
% less Privacy Issues.

Bleah.  What a lousy communication forum that would be.  But I defend
to the death your right to propose such an idea :-)


% _
% Nigel Jones
% [EMAIL PROTECTED]


HTH & HAND

:-D
-- 
David T-G  * There is too much animal courage in 
(play) [EMAIL PROTECTED] * society and not sufficient moral courage.
(work) [EMAIL PROTECTED]  -- Mary Baker Eddy, "Science and Health"
http://justpickone.org/davidtg/  Shpx gur Pbzzhavpngvbaf Qrprapl Npg!



pgp0.pgp
Description: PGP signature


Re: [PHP] Add Reply-To to this list(s)

2003-11-26 Thread David T-G
Panos --

...and then Panos Konstantinidis said...
% 
% > 
% > What's the problem with the "Reply All" button?
% 
%   Which of the following words you just don't
% understand: *some mail clients (eg yahoo) do not have
% a "Reply All" button"?

Which of the following words do you not understand?

  GET A BETTER MAIL CLIENT


HAND

:-D
-- 
David T-G  * There is too much animal courage in 
(play) [EMAIL PROTECTED] * society and not sufficient moral courage.
(work) [EMAIL PROTECTED]  -- Mary Baker Eddy, "Science and Health"
http://justpickone.org/davidtg/  Shpx gur Pbzzhavpngvbaf Qrprapl Npg!



pgp0.pgp
Description: PGP signature


Re: [PHP] Windows Environment Variables

2003-11-26 Thread Rodney Green
Jason Wong wrote:

On Wednesday 26 November 2003 00:24, Rodney Green wrote:

 

Is PHP able to access and use Windows Environment Variables? If so, is
there a function or a reference you can point me to?
   

If any are available they would most likely be in:

 print_r($_SERVER)

 

Thanks Jason. That gave me what I needed. Another way I found to do it, 
though not as good, is to use shell_exec to call "echo" in Windows.



$blah = shell_exec ("echo %ComputerName%");
print $blah;
?>

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] Is there a php built-in function to determine the numbe r of dimensions of the array?

2003-11-26 Thread Ford, Mike [LSS]
On 26 November 2003 13:09, Jay Blanchard contributed these pearls of wisdom:

> [snip]
> (ii) All PHP arrays are 1-dimensional.  Some elements of an
> array may themselves contain arrays, but that only makes them
> nested arrays, not multi-dimensional.  If what you want to
> know is the deepest level of nesting, then, no, I don't
> believe there's a built-in 
> function for this.
> [/snip]
> 
> From http://us3.php.net/manual/en/language.types.array.php
> here is an example of a multi-dimensional array

Just because they *call* them multi-dimensional doesn't *make* them true 
multi-dimensional arrays -- they're still *nested* 1-dimensional arrays.  Both types 
have advantages and disadvantages, but they are not the same thing.

I think I've commented on this (mis)use of the term "multi-dimensional" before, but so 
far it looks like I haven't convinced enough people it's worth changing.

Cheers!

Mike

-- 
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730  Fax:  +44 113 283 3211

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Is there a php built-in function to determine the number of dimensions of the array?

2003-11-26 Thread Jay Blanchard
[snip]
Just because they *call* them multi-dimensional doesn't *make* them true
multi-dimensional arrays -- they're still *nested* 1-dimensional arrays.
Both types have advantages and disadvantages, but they are not the same
thing.
[/snip]

Curious, how is it that you define multi-dimensional?

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] mysql_connect() : undefined function

2003-11-26 Thread Binay
Hi all!

Its really strange/weird problem for me.

it says:::


Fatal error: Call to undefined function: mysql_connect() in 
/home/abcde/dfdfdfd/incfiles/db.inc on line 24

till afternoon site was running fine  with all mysql connection .

but suddenly its showing that error 

i don know why this is coming  very surprised and tensed too

PHP 4.0.6

please help me out ...

Thanks in advance ..

Binay




RE: [PHP] mysql_connect() : undefined function

2003-11-26 Thread Jay Blanchard
[snip]
Fatal error: Call to undefined function: mysql_connect() in
/home/abcde/dfdfdfd/incfiles/db.inc on line 24
[/snip]

Strange indeed. Can you show the code?

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] mysql_connect() : undefined function

2003-11-26 Thread Sophie Mattoug
If you do phpinfo(), do you see in the section names "*Configure 
Command*" this directive: "--with-mysql=something" ? If not, you must 
re-compile PHP lwith MySQL support

Binay wrote:

Hi all!

Its really strange/weird problem for me.

it says:::

Fatal error: Call to undefined function: mysql_connect() in /home/abcde/dfdfdfd/incfiles/db.inc on line 24

till afternoon site was running fine  with all mysql connection .

but suddenly its showing that error 

i don know why this is coming  very surprised and tensed too

PHP 4.0.6

please help me out ...

Thanks in advance ..

Binay
 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] mysql_connect() : undefined function

2003-11-26 Thread Binay
I just upload a simple file containing ...

mysql_connect("localhost","username","password")

thtst it ...
and its showing fatal error and same problem

Binay


- Original Message - 
From: "Jay Blanchard" <[EMAIL PROTECTED]>
To: "Binay" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, November 26, 2003 7:12 PM
Subject: RE: [PHP] mysql_connect() : undefined function 


> [snip]
> Fatal error: Call to undefined function: mysql_connect() in
> /home/abcde/dfdfdfd/incfiles/db.inc on line 24
> [/snip]
> 
> Strange indeed. Can you show the code?
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] mysql_connect() : undefined function

2003-11-26 Thread Jay Blanchard
[snip]
I just upload a simple file containing ...

mysql_connect("localhost","username","password")

thtst it ...
[/snip]

Try mysql_pconnect("localhost","username","password");

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] mysql_connect() : undefined function

2003-11-26 Thread Marek Kilimajer
Binay wrote:
Hi all!

Its really strange/weird problem for me.

it says:::

Fatal error: Call to undefined function: mysql_connect() in /home/abcde/dfdfdfd/incfiles/db.inc on line 24

till afternoon site was running fine  with all mysql connection .

but suddenly its showing that error 

i don know why this is coming  very surprised and tensed too

PHP 4.0.6

please help me out ...

Thanks in advance ..

Binay
Run phpinfo(), do you see anything suspicious?

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] mysql_connect() : undefined function

2003-11-26 Thread Binay
i tried mysql_pconnect() also ... but same problem..
- Original Message - 
From: "Jay Blanchard" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 26, 2003 7:18 PM
Subject: RE: [PHP] mysql_connect() : undefined function 


> [snip]
> I just upload a simple file containing ...
> 
> mysql_connect("localhost","username","password")
> 
> thtst it ...
> [/snip]
> 
> Try mysql_pconnect("localhost","username","password");
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] mysql_connect() : undefined function

2003-11-26 Thread Binay

it says --without-mysql --

i don know .. how suddenly this can happen 

Binay

- Original Message -
From: "Sophie Mattoug" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 26, 2003 7:16 PM
Subject: Re: [PHP] mysql_connect() : undefined function


> If you do phpinfo(), do you see in the section names "*Configure
> Command*" this directive: "--with-mysql=something" ? If not, you must
> re-compile PHP lwith MySQL support
>
> Binay wrote:
>
> >Hi all!
> >
> >Its really strange/weird problem for me.
> >
> >it says:::
> >
> >
> >Fatal error: Call to undefined function: mysql_connect() in
/home/abcde/dfdfdfd/incfiles/db.inc on line 24
> >
> >till afternoon site was running fine  with all mysql connection .
> >
> >but suddenly its showing that error 
> >
> >i don know why this is coming  very surprised and tensed too
> >
> >PHP 4.0.6
> >
> >please help me out ...
> >
> >Thanks in advance ..
> >
> >Binay
> >
> >
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] mysql_connect() : undefined function

2003-11-26 Thread Jay Blanchard
[snip]
i tried mysql_pconnect() also ... but same problem..
[/snip]

As the others have suggested, what does it say when you run phpinfo() ?
Is this server under your control?

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP+FreeType installation headaches

2003-11-26 Thread Daniel Hansen
Jason Wong wrote:

On Wednesday 26 November 2003 15:06, Daniel Hansen wrote:
 

Jason Wong wrote:
   

With RHL you probably want:

--with-freetype-dir=/usr
 

I tried that -- no luck.  But the libfreetype* files are in /usr/lib

Someone else suggested installing the FT devel rpm (which I had not done
earlier due to a download problem).  I am trying that now.  We'll see!
   

Yes you have to install *-devel*.rpm for whatever libs you want to compile 
into php. And yes, =/usr should work once you've installed the devel package.
 

Adding the devel package did the trick.  And yes, you're right,  
"--with-freetype-dir=/usr"  worked just fine.

Thanks!

Dan



Re: [PHP] mysql_connect() : undefined function

2003-11-26 Thread Binay
it says --without-mysql --

i don know .. how suddenly this can happen 

Binay

- Original Message - 
From: "Jay Blanchard" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 26, 2003 7:23 PM
Subject: RE: [PHP] mysql_connect() : undefined function 


> [snip]
> i tried mysql_pconnect() also ... but same problem..
> [/snip]
> 
> As the others have suggested, what does it say when you run phpinfo() ?
> Is this server under your control?
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] mysql_connect() : undefined function

2003-11-26 Thread Jay Blanchard
[snip]
it says --without-mysql --

i don know .. how suddenly this can happen 
[/snip]

Do you own the server or control it? If not, someone else has recompiled
PHP without MySQL support and it needs to be re-compiled.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] mysql_connect() : undefined function

2003-11-26 Thread Chris Hayes
At 14:57 26-11-03, you wrote:

it says --without-mysql --

i don know .. how suddenly this can happen 

Binay
Better find out who has replaced PHP on your server, or modified the config 
file of Apache (if you run Apache).


- Original Message -
From: "Sophie Mattoug" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 26, 2003 7:16 PM
Subject: Re: [PHP] mysql_connect() : undefined function
> If you do phpinfo(), do you see in the section names "*Configure
> Command*" this directive: "--with-mysql=something" ? If not, you must
> re-compile PHP lwith MySQL support
>
> Binay wrote:
>
> >Hi all!
> >
> >Its really strange/weird problem for me.
> >
> >it says:::
> >
> >
> >Fatal error: Call to undefined function: mysql_connect() in
/home/abcde/dfdfdfd/incfiles/db.inc on line 24
> >
> >till afternoon site was running fine  with all mysql connection .
> >
> >but suddenly its showing that error 
> >
> >i don know why this is coming  very surprised and tensed too
> >
> >PHP 4.0.6
> >
> >please help me out ...
> >
> >Thanks in advance ..
> >
> >Binay
> >
> >
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] mysql_connect() : undefined function

2003-11-26 Thread Marek Kilimajer
Binay wrote:
it says --without-mysql --

i don know .. how suddenly this can happen 

Binay
You might have some other version of php installed that was used 
instead. Check your startup scripts.

ps ax |grep httpd

  will tell you where apache reads its configuration, is it the one it 
should use?

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Outlinin block of code

2003-11-26 Thread Chris Boget
> Anybody know any good PHP ide with support of code outlining like Visual
> .NET.
> On the left side where are usualy line numbers is "+" and you can group
> functions, classes or  custom defined blocks of code.

Visual Slick Edit.  It is by far the best IDE I've run across.  It's both versatile 
and pliable.  I've used many of the IDEs suggested in the FAQ but this has
everything I could possibly need and more.
The features you detail above are just a very few of the number contained
within.

Chris

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Windows Environment Variables

2003-11-26 Thread Stuart
Rodney Green wrote:
$blah = shell_exec ("echo %ComputerName%");
Eww, evil. Try http://php.net/getenv

--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Add Reply-To to this list(s)

2003-11-26 Thread David T-G
Dave, et al --

...and then Dave G said...
% 
%   To start out, I'd just like to make an observation. I've noticed
...
% that the topic has come up multiple times in itself indicative of what
% natural human expectations are. On the lists I belong to where responses

I very much disagree; I consider the topic indiciative of how screwed up
mail has become thanks to such garbageware as MS Outlook (not the only
offender but, as noted by Nigel, by far the most common).


...
%   I understand this list, my mail software, and the theory behind
% the reply-to munging debate very well. Non comprehension or ability are
% not at issue here. Don't assume that non-agreement equals non
% understanding.

I agree that it doesn't.  I would state instead that non-agreement equals
mis-education and improperly set expectations.


% 
% "My opinion is that this is a multi person discussion forum, not a
% person to person forum."  
%   I agree very strongly with this statement, and most of the email
% that follows it. If someone posts a question, and gets a private email
% solving the problem, how does everyone else benefit?

So don't get a private email; nobody is saying that you have to.  [By the
way, that works quite well on a number of lists; someone asks a question,
gets numerous responses, and then that same person posts a summary and
solution back to the list for future benefit and possible further comment.]
But if the list sets the Reply-To: header then it's awfully hard to send
one, isn't it, even if you want to!


HTH & HAND

:-D
-- 
David T-G  * There is too much animal courage in 
(play) [EMAIL PROTECTED] * society and not sufficient moral courage.
(work) [EMAIL PROTECTED]  -- Mary Baker Eddy, "Science and Health"
http://justpickone.org/davidtg/  Shpx gur Pbzzhavpngvbaf Qrprapl Npg!



pgp0.pgp
Description: PGP signature


[PHP] configure/build question

2003-11-26 Thread xmg
I am building PHP 4.3.4 on RH Linux 9.0.
When I look at the output of phpinfo() for the 
version that came with RH I see this param for
mysql:

 '--with-mysql=shared,/usr'

I ran configure using the same:

./configure --with-apxs2=/usr/local/apache2/bin/apxs 
--with-mysql=shared,/usr

Have tried it with, and without single quotes
around the --with-mysql directive.

I run the above configure command, run make,
and then install, all apparently successful.
Then I look at the phpinfo() output and 
see this as what it believes the configure 
command was:

 './configure' '--with-mysql' '--with-apxs2=/usr/local/apache2/bin/apxs'

I don't see anything re 'shared,/usr' as I do for the 
previous RH default install of PHP 4.2.2?

Any idea what that wouldn't show up? phpinfo() 
also shows the build date correctly (as today).

TIA

lk

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: "Bless"ing an object

2003-11-26 Thread Greg Beaver
Wouter,

you could try this adding this method to each object you need blessings 
from:

function &bless($classname)
{
if ($classname == get_class($this)) {
return $this;
}
$vars = get_object_vars($this);
$ret = new $classname;
return $ret->loadValues($vars);
}
function &loadValues($vals)
{
foreach ($vals as $name => $val) {
$this->$name = $val;
}
return $this;
}
In the Load() method, you should determine what class you need, and call 
$ret = &$this->bless('classname'), and then return $ret.

Then, instead of doing

$Thing->Load();

do

$Thing = &$Thing->Load();

and have Load() return an object instance (either $this or the newly 
blessed object).

This will maintain encapsulation and achieve the results you're looking for.

Regards,
Greg
Wouter Van Vliet wrote:
Hi Folks

I was wondering (mostly because I came across some situations where I need
it) if PHP supplies any methods to "bless" an array or object to become some
other object. In perl, I can simply do:
my $SomeInstance = bless { item => 'value', 'Item2' => 'value2' },
'SomeObject';
And then if I decide that $SomeInstance should be an intance of some other
object:
	bless $SomeInstance, 'OtherObject';

In PHP it would be extremely useful for for doing something like this:


};

Class Bar extends Foo {

}

$Thing = new Foo();
$Thing->Load();
?>
In Load the object data is loaded from the database, and now imagine one row
to contain the subclass this instance of Foo should become. I then would
want $Thing to become and thus behave like an instance of Bar (if my
database row says so).
Hope this message wasn't too confusing ;)
Wouter
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Add Reply-To to this list(s)

2003-11-26 Thread Duncan Hill
On Wednesday 26 November 2003 10:04, Nigel Jones wrote:

> IMHO we'd be better off having a PHP Forum on php.net and scrub the Mailing
> List altogether. That would just about suit everyone. You get to subscribe
> to Topics you want to, you can subscribe to whole forums if you want to,
> less Privacy Issues.

"Meep!"

That would instantly see me not reading, or posting.  Having the system 
delivered to my door, not bogged down by markup etc is wonderful.  Moreover, 
the data is archived world wide with e-mail.  Web forums don't (imo) lend 
themselves to that as easily.

However, propose away :)  I just wouldn't use it.  E-mail + threading + no 
markup bloat is my choice of receiving the info from the list.

If you really want a forum interface, work out how to tie in a web based NNTP 
interface that'll do that :>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Add Reply-To to this list(s)

2003-11-26 Thread David T-G
Nigel --

...and then Nigel Jones said...
% 
% I totally agree.

With what?


% 
% The cost for Outlook is heaps do you think we what to flush $200(or however
% much it is in your country) down the drain???

While doing my best to not ridicule your [company's] choice of on what to
spend some money, who is asking you to flush anything?


% 
% 
% And note to the ones that say "just switch to another client" well have you
% ever worked in a Corporate Enviroment, Companies have their systems locked

Yes.


% down so hard. And just cos someone is a Software Dev doesn't mean they get
% any special privs just some extra software to play around with.

So?  Not only might some of that extra software be a good mail program,
you don't need special privs to use another mail program.


% 
% For the Fact
% Outlook is the Most Used Client in Corporate Enviroments

I'll accept that.  Sucks, doesn't it?


% Outlook is one of the only MS Exchange Supporting Clients for Windows

"One of the only" doesn't say much.  I would hazard a guess that, in
fact, only Outlook or perhaps at the very widest only MS products support
Exchange.  And why on earth should I care about Exchange anyway?  But
that's only if you need Exchange-specific features; Exchange also talks
to "real" mail clients via IMAP and POP3.


% Over 60% of Personal Computers are running windows

While this may or may not be true, it is quite unverified and pretty much
useless.


% 
% 
% Now lets just say we were to all remove windows and use linux imagine all
% the Money that has just going down the drain that we spent on MS
% Office,Games,Windows

Aside from the cheering, it hardly matters; you've already thrown the
money "down the drain" anyway because it's been spent.  The *real* win
comes next year when you don't have to pay AGAIN to license crapware for
another year, or when you expand or start or otherwise need software in
the future and don't have to come up with enormous sums of money for it.
But that's beside the point; even though *I* don't need Windows except
for a couple of important-to-me Windows-specific programs (and I
personally would happily rather go and get a Mac and use the Mac version
than bring in a Windows box if I didn't have one), nobody has even hinted
at everyone dumping Windows.


% 
% Also there is also the convenience factor of using Reply-To, why can't I
% just reply to emails the way I do for my private emails?

Because it's not private email, amongst other possible reasons.


% 
% 
% You may want to read the following site: http://www.catb.org/~esr/faqs/

Although I have read many of the docs on there, I still don't see what
in particular it has to do with this discussion and have on interest in
reading everything there again with this goal in mind.  You may want to
make a somewhat more focused suggestion if it is meant constructively.


% 
% Another 2 cents
% 
% (Man this discussion is getting expensive for some :P)

So let's just stop talking about it and leave the list semantics alone.


% 
% _
% Nigel Jones
% [EMAIL PROTECTED]


HTH & HAND

:-D
-- 
David T-G  * There is too much animal courage in 
(play) [EMAIL PROTECTED] * society and not sufficient moral courage.
(work) [EMAIL PROTECTED]  -- Mary Baker Eddy, "Science and Health"
http://justpickone.org/davidtg/  Shpx gur Pbzzhavpngvbaf Qrprapl Npg!



pgp0.pgp
Description: PGP signature


RE: [PHP] Add Reply-To to this list(s)

2003-11-26 Thread Roger B.A. Klorese
> you don't need special privs to use another mail program.

Actually, given the fact that the other products you're talking about are
POP or IMAP clients, and most Exchange-based companies allow only MAPI
clients (specifically Outlook and the Outlook Web Access client), that could
easily be considered "special privs."

> And why on earth should I care about Exchange anyway?  But
> that's only if you need Exchange-specific features; Exchange 
> also talks
> to "real" mail clients via IMAP and POP3.

Not by default -- only if you *want* to enable other clients (which will not
be able to access full Exchange functionality).

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Outlinin block of code

2003-11-26 Thread David T-G
Uros --

...and then Uros said...
% 
% Hello!

Hi!


% 
% Anybody know any good PHP ide with support of code outlining like Visual
% .NET.

I don't know from V.NET, but ...


% 
% On the left side where are usualy line numbers is "+" and you can group
% functions, classes or  custom defined blocks of code.

... vim does a nice job "folding", which sounds like what you describe.
I tend to use foldmarkers and be picky, but it has a number of ways
including some fairly automated approaches to define the folds ("blocks").

Surf over to vim.org for more.


% 
% 
% -- 
% Best regards,
%  Uros  mailto:[EMAIL PROTECTED]


HTH & HAND

:-D
-- 
David T-G  * There is too much animal courage in 
(play) [EMAIL PROTECTED] * society and not sufficient moral courage.
(work) [EMAIL PROTECTED]  -- Mary Baker Eddy, "Science and Health"
http://justpickone.org/davidtg/  Shpx gur Pbzzhavpngvbaf Qrprapl Npg!



pgp0.pgp
Description: PGP signature


Re: [PHP] Is there a php built-in function to determine the number of dimensions of the array?

2003-11-26 Thread David T-G
Jay, et al --

...and then Jay Blanchard said...
% 
% Curious, how is it that you define multi-dimensional?

I'm no expert, but I'd say that a multi is addressed as

  array[x,y,z]

while a nested is

  array[x][y][z]

which actually works out about like

  array[x[y[z]]]

or so.  How did I do, Mike?


HTH & HAND

:-D
-- 
David T-G  * There is too much animal courage in 
(play) [EMAIL PROTECTED] * society and not sufficient moral courage.
(work) [EMAIL PROTECTED]  -- Mary Baker Eddy, "Science and Health"
http://justpickone.org/davidtg/  Shpx gur Pbzzhavpngvbaf Qrprapl Npg!



pgp0.pgp
Description: PGP signature


[PHP] IE download problem

2003-11-26 Thread Luis Lebron

I am working on a script to force downloading a file. The script works fine
with NS (4.8 and 7) but does not work correctly with IE 6.0
I have looked at examples on php.net and have googled for a solution, but
still can't find a solution. I think IE wants to download the script instead
of the file.

Here's what the code I'm working on looks like:




The funny thing is that I have a similar script that I use to download an
sql file and it works correctly.


Luis R. Lebron
Sigmatech, Inc


Re: [PHP] Add Reply-To to this list(s)

2003-11-26 Thread Chris Shiflett
--- Panos Konstantinidis <[EMAIL PROTECTED]> wrote:
> > Which of the following words you just don't
> > understand: The "Reply All" button is just BESIDE
> > (on the right side) of the "Reply" button!
> 
> There is not such a button.

They tricked you and changed this recently. When you click the "Reply"
button, you will be shown "Reply to Sender" and "Reply to Everyone". Pick
whichever one is appropriate.

Chris

=
Chris Shiflett - http://shiflett.org/

PHP Security Handbook
 Coming mid-2004
HTTP Developer's Handbook
 http://httphandbook.org/
RAMP Training Courses
 http://www.nyphp.org/ramp

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Stripping out all illegal characters for a folder name

2003-11-26 Thread Joseph Szobody
Folks,

I'm taking some user input, and creating a folder on the server. I'm already
replacing " " with "_", and stripping out a few known illegal characters (',
", /, \, etc). I need to be sure that I'm stripping out every character that
cannot be used for a folder name. What's the best way to do this? Do I have
to manually come up with a comprehensive list of illegal characters, and
then str_replace() them one by one?

There's gotta be a better way to do this...

Joseph

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Outlinin block of code

2003-11-26 Thread Curt Zirzow
* Thus wrote David T-G ([EMAIL PROTECTED]):
> 
> % 
> % On the left side where are usualy line numbers is "+" and you can group
> % functions, classes or  custom defined blocks of code.
> 
> ... vim does a nice job "folding", which sounds like what you describe.
> I tend to use foldmarkers and be picky, but it has a number of ways
> including some fairly automated approaches to define the folds ("blocks").
> 

My thoughts exactly, folding works great. You can navigate a file
with 30 functions/classes all in one screen. There is even a plugin
for vim that creates a left side code navigation. It creates a list
of all the functions and by clicking on them, the right side jumps
to that function.

An example of the folding display:

+--  49 lines: function foo($param1, $param2) { ---
+--  65 lines: function foo2($param1, $param2) { --

+-- 127 lines: class bar {-

class bar2 {
  var $v;

+---  3 lines: function bar2() {---

  function foo() {
//editing this method
  }

+--- 10 lines: function zap() {

}


Curt
-- 
"My PHP key is worn out"

  PHP List stats since 1997: 
http://zirzow.dyndns.org/html/mlists/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] mysql_connect() : undefined function

2003-11-26 Thread Curt Zirzow
* Thus wrote Jay Blanchard ([EMAIL PROTECTED]):
> [snip]
> it says --without-mysql --
> 
> i don know .. how suddenly this can happen 
> [/snip]
> 
> Do you own the server or control it? If not, someone else has recompiled
> PHP without MySQL support and it needs to be re-compiled.

Another option is that perhaps the php.ini file was loading the
mysql shared library, and the php.ini file was changed not to do
that anymore. 

Or the mysql.so was deleted.

Curt
-- 
"My PHP key is worn out"

  PHP List stats since 1997: 
http://zirzow.dyndns.org/html/mlists/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Stripping out all illegal characters for a folder name

2003-11-26 Thread Sophie Mattoug
Joseph Szobody wrote:

Folks,

I'm taking some user input, and creating a folder on the server. I'm already
replacing " " with "_", and stripping out a few known illegal characters (',
", /, \, etc). I need to be sure that I'm stripping out every character that
cannot be used for a folder name. What's the best way to do this? Do I have
to manually come up with a comprehensive list of illegal characters, and
then str_replace() them one by one?
 

I think you should use the reverse solution : have a list of authorized 
characters and strip out all others ones.

There's gotta be a better way to do this...

Joseph
 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Stripping out all illegal characters for a folder name

2003-11-26 Thread Curt Zirzow
* Thus wrote Sophie Mattoug ([EMAIL PROTECTED]):
> Joseph Szobody wrote:
> 
> >I'm taking some user input, and creating a folder on the server. I'm 
> >already
> >replacing " " with "_", and stripping out a few known illegal characters 
> >(',
> >", /, \, etc). I need to be sure that I'm stripping out every character 
> >that
> >cannot be used for a folder name. What's the best way to do this? Do I have
> >to manually come up with a comprehensive list of illegal characters, and
> >then str_replace() them one by one?
> > 
> 
> I think you should use the reverse solution : have a list of authorized 
> characters and strip out all others ones.

I'd approach it the same way. 

preg_replace('/[^A-Za-z0-9_]/', '_', $dirname);


Curt
-- 
"My PHP key is worn out"

  PHP List stats since 1997: 
http://zirzow.dyndns.org/html/mlists/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Stripping out all illegal characters for a folder name

2003-11-26 Thread CPT John W. Holmes
Sorry for the reply to the reply, but OExpress won't let me reply to
newsgroup posts...

From: "Sophie Mattoug" <[EMAIL PROTECTED]>
> Joseph Szobody wrote:
> >I'm taking some user input, and creating a folder on the server. I'm
already
> >replacing " " with "_", and stripping out a few known illegal characters
(',
> >", /, \, etc). I need to be sure that I'm stripping out every character
that
> >cannot be used for a folder name. What's the best way to do this? Do I
have
> >to manually come up with a comprehensive list of illegal characters, and
> >then str_replace() them one by one?
>
> I think you should use the reverse solution : have a list of authorized
> characters and strip out all others ones.

That's exactly it. You need to change your way of thinking. When ever you
are dealing with user input, you want to define what is GOOD and only allow
that. If you try to define what is BAD, you'll leave something out.

As for an answer:

$safe_foldername = preg_replace('/[^a-zA-Z0-9]/','',$unsafe_foldername);

That'll remove anything that's not a letter or number. Adapt to your needs.

---John Holmes...

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] IE download problem

2003-11-26 Thread CPT John W. Holmes
From: "Luis Lebron" <[EMAIL PROTECTED]>

> I am working on a script to force downloading a file. The script works
fine
> with NS (4.8 and 7) but does not work correctly with IE 6.0
> I have looked at examples on php.net and have googled for a solution, but
> still can't find a solution. I think IE wants to download the script
instead
> of the file.

How does it "not work"??

[snip]
>   Header("Content-Disposition: filename=\"".$filename."\"\n");

Why are you adding a newline to this header?

>   Header("Content-Transfer-Encoding: binary");
>   $fp = fopen($filePath,"rb");
>   fpassthru($fp);

readfile() would be better to use here...

> The funny thing is that I have a similar script that I use to download an
> sql file and it works correctly.

It works on IE? If they are "similar", what's different??

---John Holmes...

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



  1   2   >