Re: [PHP] Session not working while accessing through IE on Windows 2000

2004-04-22 Thread "Miguel J. Jiménez"
Be sure to know all about session cookies. By default, PHP stores the 
session in a cookie

Sheni R. Meledath escribió:

Hello:

We have set up a login page using sessions in PHP. Its working fine. 
The server is a FreeBSD/Apache/PHP 4.

While accessing this page from IE 6 on Windows 2000, the sessions are 
not working and they are getting the login page again & again. Are 
there any known issues of PHP using sessions with Windows 2000?

Could you please provide me the details?

Sheni R Meledath
[EMAIL PROTECTED]


--
Miguel J. Jiménez
ISOTROL, S.A. (Área de Internet)
Avda. Innovación nº1, 3ª - 41020 Sevilla (ESPAÑA)
[EMAIL PROTECTED]   ---   http://www.isotrol.com
TLFNO. 955036800 ext. 111
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] Session not working while accessing through IE on Windows 2000

2004-04-22 Thread Vincent DUPONT
Hi,

I use win2k and IE 6 every day with PHP, and it works fine. I guess your problem comes 
from the Internet Options of IE (tools/Internet Options). As Miguel Jiménez suggested, 
check the cookie setting in the Internet Options.

Vincent

-Original Message-
From: Sheni R. Meledath [mailto:[EMAIL PROTECTED]
Sent: jeudi 22 avril 2004 8:27
To: PHP Masters
Subject: [PHP] Session not working while accessing through IE on Windows
2000


Hello:

We have set up a login page using sessions in PHP. Its working fine. The 
server is a FreeBSD/Apache/PHP 4.

While accessing this page from IE 6 on Windows 2000, the sessions are not 
working and they are getting the login page again & again. Are there any 
known issues of PHP using sessions with Windows 2000?

Could you please provide me the details?


Sheni R Meledath
[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] Session not working while accessing through IE on Windows 2000

2004-04-22 Thread "Miguel J. Jiménez"
You may use:



to deactivate the cookies from sessions in runtime...

--
Miguel J. Jiménez
ISOTROL, S.A. (Área de Internet)
Avda. Innovación nº1, 3ª - 41020 Sevilla (ESPAÑA)
[EMAIL PROTECTED] --- http://www.isotrol.com
TLFNO. 955036800 ext. 111
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: phpedit

2004-04-22 Thread Saulius
it does take quite some time even on a fast machine if you install all the
packages. and then if you don't have those packages ready in your hard disk,
it needs to download them (~12 Mb), then it all depends on your connection.

"Andy B" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> i know this isnt quite php exactly but anybody thats ever installed
phpedit
> before remember how long it took to install on windows?? seems like mine
is
> taking about 6 hours to install for some strange reason...
>
> its either massive huge or my computer is super slow for some reason...

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



RE: [PHP] Session not working while accessing through IE on Windows 2000

2004-04-22 Thread Sheni R. Meledath
Hi,

Thank you very much for your comments. We are facing a similar problem in 
one of local systems which has Windows 2000 & IE 6.0. Now one of the users 
has complained about the same problem. His system configuration is the same 
as above.

In one of the news groups, I have read before about a similar problem with 
the same configuration. That's why we doubted about the session setting on 
a Windows 2000 server.

At 11:41 AM 4/22/2004, you wrote:
Hi,

I use win2k and IE 6 every day with PHP, and it works fine. I guess your 
problem comes from the Internet Options of IE (tools/Internet Options). As 
Miguel Jiménez suggested, check the cookie setting in the Internet Options.

Vincent

-Original Message-
From: Sheni R. Meledath [mailto:[EMAIL PROTECTED]
Sent: jeudi 22 avril 2004 8:27
To: PHP Masters
Subject: [PHP] Session not working while accessing through IE on Windows
2000
Hello:

We have set up a login page using sessions in PHP. Its working fine. The
server is a FreeBSD/Apache/PHP 4.
While accessing this page from IE 6 on Windows 2000, the sessions are not
working and they are getting the login page again & again. Are there any
known issues of PHP using sessions with Windows 2000?
Could you please provide me the details?

Sheni R Meledath
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Sheni R Meledath
[EMAIL PROTECTED] 

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


[PHP] mysql version

2004-04-22 Thread Angelo Zanetti
SOrry for off topic post, but how does one determine the version of the
mysql server they are using?
thanx in advance


Disclaimer 
This e-mail transmission contains confidential information,
which is the property of the sender.
The information in this e-mail or attachments thereto is 
intended for the attention and use only of the addressee. 
Should you have received this e-mail in error, please delete 
and destroy it and any attachments thereto immediately. 
Under no circumstances will the Cape Technikon or the sender 
of this e-mail be liable to any party for any direct, indirect, 
special or other consequential damages for any use of this e-mail.
For the detailed e-mail disclaimer please refer to 
http://www.ctech.ac.za/polic or call +27 (0)21 460 3911

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



RE: [PHP] mysql version SOLVED

2004-04-22 Thread Angelo Zanetti
sorry but I solved it
select version();
for those of you who didnt know.

-Original Message-
From: Angelo Zanetti [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 22, 2004 10:19 AM
To: [EMAIL PROTECTED]
Subject: [PHP] mysql version


SOrry for off topic post, but how does one determine the version of the
mysql server they are using?
thanx in advance


Disclaimer 
This e-mail transmission contains confidential information,
which is the property of the sender.
The information in this e-mail or attachments thereto is 
intended for the attention and use only of the addressee. 
Should you have received this e-mail in error, please delete 
and destroy it and any attachments thereto immediately. 
Under no circumstances will the Cape Technikon or the sender 
of this e-mail be liable to any party for any direct, indirect, 
special or other consequential damages for any use of this e-mail.
For the detailed e-mail disclaimer please refer to 
http://www.ctech.ac.za/polic or call +27 (0)21 460 3911

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


Disclaimer 
This e-mail transmission contains confidential information,
which is the property of the sender.
The information in this e-mail or attachments thereto is 
intended for the attention and use only of the addressee. 
Should you have received this e-mail in error, please delete 
and destroy it and any attachments thereto immediately. 
Under no circumstances will the Cape Technikon or the sender 
of this e-mail be liable to any party for any direct, indirect, 
special or other consequential damages for any use of this e-mail.
For the detailed e-mail disclaimer please refer to 
http://www.ctech.ac.za/polic or call +27 (0)21 460 3911

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



[PHP] Re: SQL Hell

2004-04-22 Thread Lester Caine
Marc Greenstock wrote:

I just downloaded and installed fire bird, looks interesting. But it's not
for this current development. Perhaps later, not the project is 3/4
complete.
Depends how you are accessing MySQL ;)

Tell me how do you interface firebird with PHP?
Interbase module - Firebird is a totally free development that came out 
when Borland announced they were killing Interbase. The original 
designer is now back on board working on a proper 64 bit port which 
should be available soon.
But I actually use ADOdb on top of PHP and can switch database as 
required. Very useful for moving from other databases TO Firebird.

By the way, my problem with my statement is still lingering, so far I'm
having to create a temporary table and then searching with that.
Can't help with MySQL, I'd be creating a VIEW in Firebird and using that 
as the source :)

--
Lester Caine
-
L.S.Caine Electronic Services
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Implementing compulsory fields in a mySQL driven, SMARTY templated site?

2004-04-22 Thread Tom
Hello.

As per the subject: I am using PHP, mySQL and Smarty for
a web site with lots of forms everywhere. The site is
split into display, content and logic. And I want to
introduce the concept of mandatory fields.
Manually editing all the content files to mark the
mandatory fields and matching them 'manually' in the
logic scripts is one solution, but I am racking my
brains to move more towards a way of a full management
suite - being able to set the mandatory fields on a
page on the site in the site itself.
I appreciate that the first solution is much more
realistic than the latter, but a sensible, middle-
ground solution is still evading me.
Has anyone got any ideas, suggestion, solutions or
handy links to forums that have tackled this problem?
Thanks much :)

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


[PHP] file upload via email

2004-04-22 Thread Yury B .
Hi,

I believe there is possibility to upload html and other types of 
files to the site location via email. Using Cron I can make script to 
retreave POP3 email messages with sertain content/attachments which 
would be translated to the form of files and site update can be done 
this way. The question is - does anybody know actual script for doing 
that? I'm not really advanced PHP developer so any help or suggestion 
would be appreciated.

Yury

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



Re: [PHP] file upload via email

2004-04-22 Thread Torsten Roehr
"Yury B ." <"[EMAIL PROTECTED]"@ctb-mesg6.saix.net> wrote in message
news:[EMAIL PROTECTED]
> Hi,
>
> I believe there is possibility to upload html and other types of
> files to the site location via email. Using Cron I can make script to
> retreave POP3 email messages with sertain content/attachments which
> would be translated to the form of files and site update can be done
> this way. The question is - does anybody know actual script for doing
> that? I'm not really advanced PHP developer so any help or suggestion
> would be appreciated.
>
> Yury

For accessing the POP3 mail server you could use PEAR's Net_POP3 class:

http://pear.php.net/package/Net_POP3


Haven't tried it myself yet, though.

Regards,
Torsten Roehr

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



Re: [PHP] Freelance PHP Bids

2004-04-22 Thread David T-G
Navid --

...and then [EMAIL PROTECTED] said...
% 
% Hello,

Hi!


% 
% There is a person asking me where she can find a website developer that will
% create an e-commerce solution for her. I don't feel I'm ready to help her
% out in that area yet, but I still want her to be able to have other choices.

Good for you.


% 
% I remember there was a main website where freelance programmers and clients
% come together and bid on projects with different levels of experiences and
% prices, but I don't remember where that is now. Can anyone direct me to a
% website such as that? Any help would be appreciated. Thank you.

The ones of which I know are scriptlance, elance, and guru; perhaps
hotscripts has a job posting forum as well.  This list is also a good
place to go; you certainly have the right audience.

I have found scriptlance prices to be so cheap -- people willing to write
code for $10, though I don't know anything about the quality you get --
that I don't go there anymore, and I'm not up to paying a hefty chunk to
be an elance member -- at least not until I hear some serious success
stories from those who already do -- and guru, formerly itmoonlighter,
has never come to fruition for me, so I'm quite interested in any results
you get.  Please let us know.


% 
% Navid


HTH & HAND

:-D
-- 
David T-G
[EMAIL PROTECTED]
http://justpickone.org/davidtg/  Shpx gur Pbzzhavpngvbaf Qrprapl Npg!



pgp0.pgp
Description: PGP signature


Re: [PHP] Why NNTP is not default protocol for php groups

2004-04-22 Thread David T-G
Hi --

...and then T. H. Grejc said...
% 
% Justin Patrin wrote:
% >The threading works just fine. The problem is that users have ignorant 
% >mail software that don't set the thread headers correctly. Even 
% >newsgroup client software might do this. This is *not* the server's 
% >fault in any way, shape, or form.
% 
% Sure it's not servers fault, knowing that news.php.net is not *real* 
% news server. It is mailing list mirror. News server dont make threads 
% based on subject like mailing list, but based on message header field.

Suppose for a moment that this list turned into a newsgroup instead of a
mailing list.  What would those same people causing problems on the
existing list use to access the news server?  Outhouse.  And so what
would happen to the headers and the threading?  The same thing.

The problem is endemic to the users, and so the only solution must be
applied there.  Changing over to a new server won't matter at all.


% 
% News servers are cheaper, faster, easier to use, more accessible, easier 
% to archive than mailing lists. That's why I dont see the point of 
% mailing list being primary to php.net.

Because mailing lists are good.  Mailing lists give the recipients more
control and, in this day and age of easy connectivity, make more sense
than replicating a news store everywhere.  I'm sorry if that doesn't
serve your needs well, and I am glad there is a mail-to-news gateway
which should provide a news server for you, but such a thing sure doesn't
serve me (as an example) -- since I only get to read in chunks, I'd miss
countless posts because they'd expire off of the news server before I got
there, whereas when they're safely locked up in my mailbox I can get them
any time I need to.

Don't get me started on the whole spam problem, either.  All of the
newsgroups I've loved over the years have gone downhill due to being
flooded with spam.  I could be wrong, but I don't know of any news spam
cleaners; they're all meant for email.

Mail is good.  News is less so, though it has its place.


HTH & HAND

:-D
-- 
David T-G
[EMAIL PROTECTED]
http://justpickone.org/davidtg/  Shpx gur Pbzzhavpngvbaf Qrprapl Npg!



pgp0.pgp
Description: PGP signature


Re: [PHP] PHP Web Hosting

2004-04-22 Thread David T-G
Arthur --

...and then Arthur Pelkey said...
% 
% I am all for adventure when money goes into my wallet, the same cannot 
% be said for the opposite ;)

Being all for money when adventure goes into your wallet?  Heck, I'd be
all for that ;-)


HAND

:-D
-- 
David T-G
[EMAIL PROTECTED]
http://justpickone.org/davidtg/  Shpx gur Pbzzhavpngvbaf Qrprapl Npg!



pgp0.pgp
Description: PGP signature


Re: [PHP] PHP Web Hosting

2004-04-22 Thread David T-G
Rene, et al --

...and then -{ Rene Brehmer }- said...
% 
% According to historical records, on Tue, 20 Apr 2004 10:39:33 -0400 John
% Nichel <[EMAIL PROTECTED]> wrote about "Re: [PHP] PHP Web Hosting":
% 
% >-{ Rene Brehmer }- wrote:
% >> At 21:19 19-04-2004, John Nichel wrote:
% >> 
% >>> Greg Donald wrote:
% >>>
%  Your signature is twice the rfc1855 suggested limit.
...
% >>>
% >>> And the RFC1885 'guidelines' are also almost 10 years old.  I think 
...
% >> 
...
% >
% >A, but the almost 10 year old RFC says this...
% >
% >"Limit line length to fewer than 65 characters and end a line with a 
% >carriage return."
% 
% Hmm ... why the heck 65 characters ??? ... Old EGA screens were 80x34

Because by the time you get to the fourth or fifth reply, just as in this
top-heavy example, the original 65-char line will be shifted over by
quote markers and be nearing the 80-char screen limit after all.

/me fondly remembers a quoting war where the various posters'
contributions made a string of gibberish over 40 chars long ...
/me fondly remembers days when different quoting prefixes were
accepted -- nay, expected -- as well


% characters, VGA is 80x43 characters ... The reason Usenet standard is 76
% chars wide messages (today anyways) is that text-mode readers need the last
% 4 characters to display window borders and control chars along the message
% lines ...

What "text-mode readers" bother with "window borders"? :-)

But I agree with the CR/NL/CR-NL bit, and I can't imagine and RFC
casually calling a newline a carriage return.  Odd.


HTH & HAND

:-D
-- 
David T-G
[EMAIL PROTECTED]
http://justpickone.org/davidtg/  Shpx gur Pbzzhavpngvbaf Qrprapl Npg!



pgp0.pgp
Description: PGP signature


Re: [PHP] PHP Web Hosting

2004-04-22 Thread David T-G
Stanley, et al --

...and then Stanley X. Martin said...
% 
% Why don't you two just email each other instead of including us all in
% your little pissing contest?

Aw, where's your sense of adventure?

Oops; that one's been used already ;-)


% 
% Stanley G. Martin


HAND

:-D
-- 
David T-G
[EMAIL PROTECTED]
http://justpickone.org/davidtg/  Shpx gur Pbzzhavpngvbaf Qrprapl Npg!



pgp0.pgp
Description: PGP signature


Re: [PHP] Whats faster? text files or mysql?

2004-04-22 Thread David T-G
Andrew --

...and then Andrew Fenn said...
% 
% I have two text files with two rows of data on each line sperated by a tab for about 
20 lines in each file. Would it be faster accessing this data by putting it in a mysql 
table?

For something so small I'd go with a text file unless you happen to
already really know and love your database server -- and it's not doing
much anyway.  The real time savings will come in your programming and
maintenance rather than in file access, so do whatever is easiest for
you.

My guess is that a straight file, even under something as bad as Windows
on an ATA disk, will be faster because of the overhead of talking to the
database; DBs shine when they have tons of data, not ounces.


HTH & HAND

:-D
-- 
David T-G
[EMAIL PROTECTED]
http://justpickone.org/davidtg/  Shpx gur Pbzzhavpngvbaf Qrprapl Npg!



pgp0.pgp
Description: PGP signature


[PHP] file upload via email

2004-04-22 Thread Yury
Hi,


I believe there is possibility to upload html and other types of files to
the site location via email. Using Cron I can make script to retreave POP3
email messages with sertain content/attachments which would be translated to
the form of files and site update can be done this way. The question is -
does anybody know actual script for doing that? I'm not really advanced PHP
developer so any help or suggestion would be appreciated.


Yury

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



Re: [PHP] file upload via email

2004-04-22 Thread Yury
Thank you very much I'll try it
"Torsten Roehr" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> "Yury B ." <"[EMAIL PROTECTED]"@ctb-mesg6.saix.net> wrote in message
> news:[EMAIL PROTECTED]
> > Hi,
> >
> > I believe there is possibility to upload html and other types of
> > files to the site location via email. Using Cron I can make script to
> > retreave POP3 email messages with sertain content/attachments which
> > would be translated to the form of files and site update can be done
> > this way. The question is - does anybody know actual script for doing
> > that? I'm not really advanced PHP developer so any help or suggestion
> > would be appreciated.
> >
> > Yury
>
> For accessing the POP3 mail server you could use PEAR's Net_POP3 class:
>
> http://pear.php.net/package/Net_POP3
>
>
> Haven't tried it myself yet, though.
>
> Regards,
> Torsten Roehr

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



Re: [PHP] file upload via email

2004-04-22 Thread Yury
Sorry,
This message is sent by mistake:
"Yury" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
>
>
> I believe there is possibility to upload html and other types of files to
> the site location via email. Using Cron I can make script to retreave POP3
> email messages with sertain content/attachments which would be translated
to
> the form of files and site update can be done this way. The question is -
> does anybody know actual script for doing that? I'm not really advanced
PHP
> developer so any help or suggestion would be appreciated.
>
>
> Yury

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



[PHP] JScript

2004-04-22 Thread Brent Clark
Hi
I know this is not a javascript mailing list and I do apologies.

Does anyone know how display a javascript window, WITHOUT having to reload
or refresh a page on which the link was clicked

Below is a copied and pasted section of my code
Please keep in mind that I am new to javascript

Kind Regards
Brent Clark

echo"$va
r";

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



Re: [PHP] JScript

2004-04-22 Thread Brent Clark
Hi

sorry

I figured it out
here is my example

Kind Regards
Brent Clark

echo"$var";

I add this part after the jscripts ") opener=self;return false;"

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



[PHP] Mathematical expression calculation function?

2004-04-22 Thread Enfors Christer
Hi. I need a function that takes a mathematical expression in the form of a string, 
and calculates the result. PHP itself doesn't seem to provide one. I need something 
which can handle strings like:

  10*73.2+3-(4*358.2874)/352

... and so on. If it handles functions (like cos(), pow(), exp()) too, then that would 
be great.

I'd appreciate any help. Thanks in advance.


Re: [PHP] mysql version

2004-04-22 Thread Andy B
select version as version; if used directly in the server (i.e. mysql)...

if you want to use it in php:
$query="select version() as mysql_version";
$result=mysql_query($query) or die();

if(!$result){
echo "cant determine mysql version";
} else {
//whatever you want to do with it

}

- Original Message - 
From: "Angelo Zanetti" <[EMAIL PROTECTED]>
To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
Sent: Thursday, April 22, 2004 4:19 AM
Subject: [PHP] mysql version


> SOrry for off topic post, but how does one determine the version of the
> mysql server they are using?
> thanx in advance
> 
> 
> Disclaimer 
> This e-mail transmission contains confidential information,
> which is the property of the sender.
> The information in this e-mail or attachments thereto is 
> intended for the attention and use only of the addressee. 
> Should you have received this e-mail in error, please delete 
> and destroy it and any attachments thereto immediately. 
> Under no circumstances will the Cape Technikon or the sender 
> of this e-mail be liable to any party for any direct, indirect, 
> special or other consequential damages for any use of this e-mail.
> For the detailed e-mail disclaimer please refer to 
> http://www.ctech.ac.za/polic or call +27 (0)21 460 3911
> 
> -- 
> 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] Re: Mathematical expression calculation function?

2004-04-22 Thread Torsten Roehr
Take a look at eval():

http://de2.php.net/manual/en/function.eval.php

Regards, Torsten


"Enfors Christer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Hi. I need a function that takes a mathematical expression in the form of a
string, and calculates the result. PHP itself doesn't seem to provide one. I
need something which can handle strings like:

  10*73.2+3-(4*358.2874)/352

... and so on. If it handles functions (like cos(), pow(), exp()) too, then
that would be great.

I'd appreciate any help. Thanks in advance.

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



Re: [PHP] Re: phpedit

2004-04-22 Thread Andy B
well so far im running close to 12 hours for an install on it...had to
restart it once though cuz the load was messing around with my connection
and the computer crashed cry!! will be glad when it gets done...just hope
that it works this time... last time i tried it about a year ago it didnt
work for some reason (guess it didnt like my screen reader)...
its hard to find php editors that work with screen readers... maybe i should
try and make it work but dont have the time... unless anybody else has any
ideas?? screen reader is jaws 4.51



- Original Message - 
From: "Saulius" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 22, 2004 3:58 AM
Subject: [PHP] Re: phpedit


> it does take quite some time even on a fast machine if you install all the
> packages. and then if you don't have those packages ready in your hard
disk,
> it needs to download them (~12 Mb), then it all depends on your
connection.
>
> "Andy B" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > i know this isnt quite php exactly but anybody thats ever installed
> phpedit
> > before remember how long it took to install on windows?? seems like mine
> is
> > taking about 6 hours to install for some strange reason...
> >
> > its either massive huge or my computer is super slow for some reason...
>
> -- 
> 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] self documenting php

2004-04-22 Thread Edward Peloke
Hello,

What is a good tool to use for documenting php?  I am looking for something
like javadoc.  I think there is phpdoc, just not sure if it's any good or if
I should try to create my own.

Thanks,
Eddie

 WARNING:  The information contained in this message and any attachments is
intended only for the use of the individual or entity to which it is
addressed.  This message may contain information that is privileged,
confidential and exempt from disclosure under applicable law.  It may also
contain trade secrets and other proprietary information for which you and
your employer may be held liable for disclosing.  You are hereby notified
that any unauthorized dissemination, distribution or copying of this
communication is strictly prohibited.  If you have received this
communication in error,  please notify [EMAIL PROTECTED] by E-Mail and then
destroy this communication in a manner appropriate for privileged
information.

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



[PHP] Re: self documenting php

2004-04-22 Thread Torsten Roehr
"Edward Peloke" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello,
>
> What is a good tool to use for documenting php?  I am looking for
something
> like javadoc.  I think there is phpdoc, just not sure if it's any good or
if
> I should try to create my own.

Hi Eddie,

try PHPDocumentor which is part of PEAR:

http://pear.php.net/package/PhpDocumentor

Regards, Torsten

>
> Thanks,
> Eddie

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



Re: [PHP] self documenting php

2004-04-22 Thread Andy B
so far i like phpdoc... most reliable that i found and besides it gives more
of a range of different output types: chm (windows help file format) html,
xml, pdf and so on...

i think its pretty cool...

- Original Message - 
From: "Edward Peloke" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 22, 2004 8:48 AM
Subject: [PHP] self documenting php


> Hello,
>
> What is a good tool to use for documenting php?  I am looking for
something
> like javadoc.  I think there is phpdoc, just not sure if it's any good or
if
> I should try to create my own.
>
> Thanks,
> Eddie
>
>  WARNING:  The information contained in this message and any attachments
is
> intended only for the use of the individual or entity to which it is
> addressed.  This message may contain information that is privileged,
> confidential and exempt from disclosure under applicable law.  It may also
> contain trade secrets and other proprietary information for which you and
> your employer may be held liable for disclosing.  You are hereby notified
> that any unauthorized dissemination, distribution or copying of this
> communication is strictly prohibited.  If you have received this
> communication in error,  please notify [EMAIL PROTECTED] by E-Mail and
then
> destroy this communication in a manner appropriate for privileged
> information.
>
> -- 
> 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] self documenting php

2004-04-22 Thread Matt Matijevich
[snip]
What is a good tool to use for documenting php?  I am looking for
something
like javadoc.  I think there is phpdoc, just not sure if it's any good
or if
I should try to create my own.

[/snip]

http://pear.php.net/package/PhpDocumentor

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



RE: [PHP] Re: self documenting php

2004-04-22 Thread Edward Peloke
thanks, I just downloaded it from sourceforge.

-Original Message-
From: Torsten Roehr [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 22, 2004 8:51 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: self documenting php


"Edward Peloke" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello,
>
> What is a good tool to use for documenting php?  I am looking for
something
> like javadoc.  I think there is phpdoc, just not sure if it's any good or
if
> I should try to create my own.

Hi Eddie,

try PHPDocumentor which is part of PEAR:

http://pear.php.net/package/PhpDocumentor

Regards, Torsten

>
> Thanks,
> Eddie

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

2004-04-22 Thread Johnson, Andrew William









I've
now installed apache and php, however I'm experiencing
the following 

problem
when I try to run test.php file:-

 

I
get prompted with a dialogue box asking if I would like to download 

the
file, any ideas on why this is happening, once this is fixed I 

think
I'll have everything working fine.

 

Thanks.

 

 



Andrew.W.Johnson

   

  EDS Limited

  EDS c/o Delphi Delco Electronics

  Moorgate Road

  Kirkby

  Liverpool L337XL

 

  TEL +(44) 0151 549
3591

 

    [EMAIL PROTECTED] 



 






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

RE: [PHP] question

2004-04-22 Thread Jay Blanchard
[snip]
I've now installed apache and php, however I'm experiencing the
following problem when I try to run test.php file:- 
 
I get prompted with a dialogue box asking if I would like to download
the file, any ideas on why this is happening, once this is fixed I think
I'll have everything working fine. 
[/snip]
 
 
It's happening because you are sending other than text formatted e-mails
to a mailing list, which is a big no-no. But I digress :)
 
Did you change the proper settings in you httpd.conf file to account for
PHP? Did you restart Apache once you had done that?


[PHP] PHP vs PERL?

2004-04-22 Thread peery
What would be the technical arguments of PHP vs. PERL?
Thanks,
JP

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



[PHP] Activate function in another frame

2004-04-22 Thread Jeff McKeon
My PHP website displays data from our database.  Sometimes the sql pulls
take a while.  I'd like to give some visual aid to the user that the
script is still working.  The site is made up of two frames, a left side
frame that contains the menu and a main frame that all the pages load
into.  

Is there a way to start a process in the menuframe as soon as a page in
the main frame begins to load and then kill it when the main page is
finished loading?

The idea here is to put some kind of function with an animated gif or
progress bar in the left side frame page and start it running as a page
is loading in the main frame, then stop the function after the page in
the main frame has finished loading.

Thanks!

Jeff

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



RE: [PHP] PHP vs PERL?

2004-04-22 Thread Jay Blanchard
[snip]
What would be the technical arguments of PHP vs. PERL?
[/snip]

That is like asking what would be the technical arguements of an 10"
miter saw and a 12" miter saw. Both are tools, each is better suited to
some things and not as well suited for others. In some projects we have
several different languages applied...som because of legacy situations,
some because that was the choice at the time.

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



RE: [PHP] Activate function in another frame

2004-04-22 Thread Jay Blanchard
[snip]
Is there a way to start a process in the menuframe as soon as a page in
the main frame begins to load and then kill it when the main page is
finished loading?
[/snip]

JavaScript is your friend.

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



RE: [PHP] Activate function in another frame

2004-04-22 Thread Jeff McKeon
> 
> JavaScript is your friend.
> 

Yeah I thought it would probably involve some javascript.  I'm just not
very good at it and not sure how to refernce the other window in a
frameset.  I know there is a way, I just don't know the mechanics of it.

Jeff 
> -Original Message-
> From: Jay Blanchard [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, April 22, 2004 9:20 AM
> To: Jeff McKeon; [EMAIL PROTECTED]
> Subject: RE: [PHP] Activate function in another frame
> 
> 
> [snip]
> Is there a way to start a process in the menuframe as soon as 
> a page in the main frame begins to load and then kill it when 
> the main page is finished loading? [/snip]
> 
> JavaScript is your friend.
> 

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



Re: [PHP] PHP vs PERL?

2004-04-22 Thread raditha dissanayake
[EMAIL PROTECTED] wrote:

What would be the technical arguments of PHP vs. PERL?
 

This is a religious question.

Thanks,
JP
 



--
Raditha Dissanayake.
-
http://www.radinks.com/print/upload.php
SFTP, FTP and HTTP File Upload solutions 

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


Re: [PHP] PHP vs PERL?

2004-04-22 Thread John W. Holmes
From: <[EMAIL PROTECTED]>

> What would be the technical arguments of PHP vs. PERL?

Depends if you catholic or not.

Use what you know.

---John Holmes...

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



Re: [PHP] PHP vs PERL?

2004-04-22 Thread John Nichel
[EMAIL PROTECTED] wrote:
What would be the technical arguments of PHP vs. PERL?
Thanks,
JP
Well, Perl is older and has four letters in it's name.  PHP has youth on 
it's side.  Perl is a Camel and PHP is a bird (Thrush or Roadrunner...I 
don't know my birds).  Perl is misspelled more often than PHP.  Perl is 
Larry, and PHP is Rasmus.

--
***
*  _  __   __  __   _  * John  Nichel *
* | |/ /___ __ \ \/ /__ _ _| |__ ___  __ ___ _ __  * 716.856.9675 *
* | ' http://www.KegWorks.com[EMAIL PROTECTED] * 14203 - 1321 *
***
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] PHP vs PERL?

2004-04-22 Thread John Nichel
John W. Holmes wrote:
From: <[EMAIL PROTECTED]>

What would be the technical arguments of PHP vs. PERL?


Depends if you catholic or not.

Use what you know.

---John Holmes...
Uh-oh, does that mean an Atheist has to use ASP??? ;)

--
***
*  _  __   __  __   _  * John  Nichel *
* | |/ /___ __ \ \/ /__ _ _| |__ ___  __ ___ _ __  * 716.856.9675 *
* | ' http://www.KegWorks.com[EMAIL PROTECTED] * 14203 - 1321 *
***
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] install IIS ISAPI

2004-04-22 Thread Vincent DUPONT
Hi,

I use to install PHP under IIS as a ISAPI module. So I add a ISAPI filter and define a 
new App mapping in 'configure'

When looking at the documentation (see http://be.php.net/manual/en/install.iis.php, 
"Windows NT/2000/XP and IIS 4 or newer") I can read : 
"If you don't want to perform HTTP Authentication using PHP, you can (and should) skip 
this step. Under ISAPI Filters, add a new ISAPI filter. Use PHP as the filter name, 
and supply a path to the php4isapi.dll. 
"

If I understand well, we should skip this step whe possible.
I don't use HTTP authentcation, but I always add a ISAPI filter to my IIS config. Why 
should we avoid this??

I tried to remove the ISAPI filter and restart IIS. Everything seems Ok

Vincent

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



Re: [PHP] PHP vs PERL?

2004-04-22 Thread raditha dissanayake
John Nichel wrote:

John W. Holmes wrote:

From: <[EMAIL PROTECTED]>

What would be the technical arguments of PHP vs. PERL?


Depends if you catholic or not.

Use what you know.

---John Holmes...


Uh-oh, does that mean an Atheist has to use ASP??? ;)


oh d..n i hate ASP.





--
Raditha Dissanayake.
-
http://www.radinks.com/print/upload.php
SFTP, FTP and HTTP File Upload solutions 

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


RE: [PHP] phpedit

2004-04-22 Thread Jason Sheets
Took me about 30 minutes to install the development snapshot, the reason
being that it downloads files from their website which is incredibly slow.

Jason 

-Original Message-
From: Andy B [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 21, 2004 10:51 PM
To: [EMAIL PROTECTED]
Subject: [PHP] phpedit

i know this isnt quite php exactly but anybody thats ever installed phpedit
before remember how long it took to install on windows?? seems like mine is
taking about 6 hours to install for some strange reason...

its either massive huge or my computer is super slow for some reason...

--
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 vs PERL? (Seriously OT Now....)

2004-04-22 Thread Jay Blanchard
[snip]
Uh-oh, does that mean an Atheist has to use ASP??? ;)
[/snip]

And if so, what must a Buddhist use?

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



Re: [PHP] install IIS ISAPI

2004-04-22 Thread John W. Holmes
From: "Vincent DUPONT" <[EMAIL PROTECTED]>

> I use to install PHP under IIS as a ISAPI module. So I
> add a ISAPI filter and define a new App mapping in 'configure'
>
> When looking at the documentation (see
http://be.php.net/manual/en/install.iis.php,
> "Windows NT/2000/XP and IIS 4 or > newer") I can read :
> "If you don't want to perform HTTP Authentication using PHP,
> you can (and should) skip this step. Under ISAPI Filters, add
> a new ISAPI filter. Use PHP as the filter name, and supply a path to the
php4isapi.dll.
>
> If I understand well, we should skip this step whe possible.
> I don't use HTTP authentcation, but I always add a ISAPI filter
> to my IIS config. Why should we avoid this??
>
> I tried to remove the ISAPI filter and restart IIS. Everything seems Ok

I've always wondered why the docs recommend to skip this step and have
commented on it in the past. I don't use HTTP Authentication, either, but
I've never gotten PHP to work under IIS without adding an ISAPI filter.

---John Holmes...

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



RE: [PHP] PHP vs PERL? (Seriously OT Now....)

2004-04-22 Thread Michal Migurski
> Uh-oh, does that mean an Atheist has to use ASP??? ;)
> [/snip]
>
> And if so, what must a Buddhist use?

Lisp, of course.

-
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.com/contact.html

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



[PHP] virtual domain own php.ini

2004-04-22 Thread Robby Russell
Trying to use own php.ini file (rather than the one that the webserver 
sees by default) for a web site (on a box that has many websites that 
utilize the other) and used the following instructions, but it doesn't 
seem to notice my own php.ini file.

> When the PHP interpreter starts up, it behaves according to settings
> specified in any availabe php.ini file. The Web server will look for
> this file in the following locations and in the following order:
>
> 1. The directory from which the PHP script was called 2. The root of
> your Web directory  3. The Web server's default php.ini
Any thoughts?

--
Robby Russell,  |  Sr. Administrator / Lead Programmer
Command Prompt, Inc.   |  http://www.commandprompt.com
[EMAIL PROTECTED] | Telephone: (503) 667.4564
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] searching trough doc and pdf files

2004-04-22 Thread Arthur Radulescu
Hello!

I need to search on the disk trough doc and pdf files. What would you
suggest me to use for reading and indexing those kind of files?


Thanks,
Arthur




Looking for a job!? Use the smart search engine!!
Find a Job from Millions WorldWide...
http://search.jobsgrabber.com


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



Re: [PHP] umask wierdness

2004-04-22 Thread Bret Hughes
On Wed, 2004-04-21 at 22:10, Curt Zirzow wrote:
> * Thus wrote Bret Hughes ([EMAIL PROTECTED]):
> > I have found a funky situation that I am trying to figure out if it is 
> > bug or not:
> > 
> > I see this behavior on both redhat 9 and fedora running 
> > 
> > php 4.3.4
> > httpd(apache) 2.0.48
> > 
> > calling umask(0002) in a script leaves the httpd process with a umask of
> > 2 after exit so that the next process to hit that process gets the new
> > umask. in other words the environment does not revert to default as the
> > umask() docs say it should.  This does not happen on my 7.3 box running 
> > apache-1.3.27-2
> > php-4.1.2-7.3.6
> > 
> > I found this chasing a rabbit trail of a bug.  This is kind of sneaky
> > since it only changes the umask for the single httpd process it hits. 
> > multiple calls to umask(0002) will change every process it hits.
> 
> This set up works perfectly fine for me, umask is reset to original
> value after php dies so all my checkumask.sh output results with
> 18.
> 
> System: FreeBSD, apache 1.3.29, php5.
> 
> Looking at the php source code, it looks like all its doing is
> calling the system's umask(), which leads me to belive its an issue
> with either the OS or apache.
> 
> You might want to ask [EMAIL PROTECTED] about this they might be
> able to help you a little more about this.
> 

Last email went straight to Curt by mistake.  Basically said thanks.

here is the latest on the bug report at redhat:

>From redhat developer/bug owner:

> It's a bug in the Apache 2.0 support in PHP: I've got a patch which
> I'll integrate and submit upstream.

I suspect this is a pretty wide ranging problem, and if you are using
redhat/fedora and have sensitive data you are writing to disk expecting
the default umask,  I would check it out.  


Bret
 

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



Re: [PHP] searching trough doc and pdf files

2004-04-22 Thread John W. Holmes
From: "Arthur Radulescu" <[EMAIL PROTECTED]>

> I need to search on the disk trough doc and pdf files. What would you
> suggest me to use for reading and indexing those kind of files?

I've heard of some doc->html/text and pdf->html/text converters. You could
convert them to that format (since you're just after the text, right?), and
then search them that way. Might be able to use COM if you're on a Windows
system, also.

---John Holmes...

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



Re: [PHP] searching trough doc and pdf files

2004-04-22 Thread Arthur Radulescu
> I've heard of some doc->html/text and pdf->html/text converters. You could
> convert them to that format (since you're just after the text, right?),
and
> then search them that way. Might be able to use COM if you're on a Windows
> system, also.

Any ideea what the name was? I am on a Linux system, unfortunatelly... I
know pdf will be not a problem but I was more interested in doc files
conversion


Arthur




Looking for a job!? Use the smart search engine!!
Find a Job from Millions WorldWide...
http://search.jobsgrabber.com


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



Re[2]: [PHP] PHP vs PERL?

2004-04-22 Thread Richard Davey
Hello John,

Thursday, April 22, 2004, 2:37:30 PM, you wrote:

JN> Uh-oh, does that mean an Atheist has to use ASP??? ;)

You meant satanist, surely? ;)

(or a masochist!)

-- 
Best regards,
 Richard Davey
 http://www.phpcommunity.org/wiki/296.html

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



[PHP] A to Z incremental

2004-04-22 Thread Paul
Hi!
Got this script:


  
The output is:
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V 
| W | X | Y | Z |
 AA | AB | AC |
 ...
  YX | YY | YZ |

where is should display only letters from A to Z.
Why is that?

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

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



Re: [PHP] PHP vs PERL?

2004-04-22 Thread John Nichel
Richard Davey wrote:
Hello John,

Thursday, April 22, 2004, 2:37:30 PM, you wrote:

JN> Uh-oh, does that mean an Atheist has to use ASP??? ;)

You meant satanist, surely? ;)

(or a masochist!)

Ah, yes.  My apologies, you're right.  Evil has to stick together. An 
Atheist wouldn't use anything since he/she wouldn't believe it existed. ;)

--
***
*  _  __   __  __   _  * John  Nichel *
* | |/ /___ __ \ \/ /__ _ _| |__ ___  __ ___ _ __  * 716.856.9675 *
* | ' http://www.KegWorks.com[EMAIL PROTECTED] * 14203 - 1321 *
***
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] PHP vs PERL? HOPE THIS HELPS

2004-04-22 Thread Brent Clark
http://www.bagley.org/~doug/shootout/index2.shtml


http://www.bagley.org/~doug/shootout/bench/ary3/

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



RE: [PHP] A good search tutorial

2004-04-22 Thread Angelo Zanetti
there is also full-text search, search for it in the mysql manual or at
www.mysql.com

hope this helps
angelo

-Original Message-
From: Phpu [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 21, 2004 11:28 AM
To: [EMAIL PROTECTED]
Subject: [PHP] A good search tutorial


Hi there
I have a site driven by a database and I need a search engine...when someone
enter a word the script to search the entire database for that word and
return the results.
Could someone give me the link to that kind of tutorial?
Please email me asap


Disclaimer 
This e-mail transmission contains confidential information,
which is the property of the sender.
The information in this e-mail or attachments thereto is 
intended for the attention and use only of the addressee. 
Should you have received this e-mail in error, please delete 
and destroy it and any attachments thereto immediately. 
Under no circumstances will the Cape Technikon or the sender 
of this e-mail be liable to any party for any direct, indirect, 
special or other consequential damages for any use of this e-mail.
For the detailed e-mail disclaimer please refer to 
http://www.ctech.ac.za/polic or call +27 (0)21 460 3911

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



RE: [PHP] A to Z incremental

2004-04-22 Thread Pablo Gosse

> Hi!
> Got this script:
> 
>  for($i='A';$i<='Z';$i++){  echo $i.' | ';  }
>> 
> 
> The output is:
> A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R
>   | S | T | U | V | W | X | Y | Z |  AA | AB | AC |  ... YX | YY | YZ
> | 
> 
> where is should display only letters from A to Z.
> Why is that?
> 


Hi, Paul. Try this instead.

$x = 65;
for ($i=0; $i<26; $i++)
{
echo chr($x);
$x++;
}

Set $x to 97 to get lowercase letters.

HTH.

Pablo.

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



[PHP] Apache 2 and PHP 4.3

2004-04-22 Thread William Lovaton
Hello there,

Does someone know if Apache 2 support in PHP is stable when using Apache
2 as prcoess spawning only, I mean, no threads.

Somebody has seen performance improvements in Apache 2 when compared to
Apache 1.3??

I know it is experimental because of the threads configuration in the
new Apache 2.

Thanx,


-William

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



Re: [PHP] searching trough doc and pdf files

2004-04-22 Thread raditha dissanayake
Arthur Radulescu wrote:

I've heard of some doc->html/text and pdf->html/text converters. You could
convert them to that format (since you're just after the text, right?),
   

and
 

then search them that way. Might be able to use COM if you're on a Windows
system, also.
   

Any ideea what the name was? I am on a Linux system, unfortunatelly... I
know pdf will be not a problem but I was more interested in doc files
conversion
 

mnogosearch/aspseek can index and search pdf, haven't used them lately 
so i don't remember if they support word. monogo has a php interface to it.
Anything word specific is best posted in a M$ news group.

--
Raditha Dissanayake.
-
http://www.radinks.com/print/upload.php
SFTP, FTP and HTTP File Upload solutions 

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


[PHP] Remove white space?

2004-04-22 Thread Robert Sossomon
I am pulling data from a MySQL DB and I need to remove the whitespace on
the variable and turn it to lowercase.



$get_items = "select * from PFS_items";
$get_items_res = mysql_query($get_items) or die(mysql_error());
while ($items = mysql_fetch_array($get_items_res))
{
 $item_id = $items[id];
 $item_num = $items[item_num];



Overtime I need to rewrite my DB loading script to handle this for me,
but right now I need to band-aid it so that I can auto-generate pages
and get them loaded into a catalog.

Thanks!

Robert

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



[PHP] Adding includes to files

2004-04-22 Thread Robert Sossomon
I need to add PHP calls to include a file to each page as it is
generated, the only thing is I can't get the includes to come through
correctly:


   $display_block .= "";
   $display_block .= "";


At the end of the generation I write $display_block to a file as
$display_block holds all the data it accumulates through the run.  How
do I rewrite the inlclude to work, or do I need to find another way to
make the includes?  The includes are all template files that I used on
the site to keep everything consistent.

Thanks,
Robert

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



Re: [PHP] Adding includes to files

2004-04-22 Thread John W. Holmes
From: "Robert Sossomon" <[EMAIL PROTECTED]>

> I need to add PHP calls to include a file to each page as it is
> generated, the only thing is I can't get the includes to come through
> correctly:
> 
> 
>$display_block .= "";
>$display_block .= "";
> 
> 
> At the end of the generation I write $display_block to a file as

You can use output buffering:

ob_start();
include("nav/top_nav.html"); 
include("nav/side_nav.html"); 
$display_block = ob_get_contents();
ob_end_clean();

---John Holmes...

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



[PHP] PHP vs PERL - thanks

2004-04-22 Thread peery
Got a lot of good replies, and info!
Thanks,
JP

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



Re: [PHP] Mathematical expression calculation function?

2004-04-22 Thread John W. Holmes
From: "Enfors Christer" <[EMAIL PROTECTED]>

> Hi. I need a function that takes a mathematical expression
> in the form of a string, and calculates the result. PHP itself
> doesn't seem to provide one. I need something which can
> handle strings like:
>
>   10*73.2+3-(4*358.2874)/352

$str = "10*73.2+3-(4*358.2874)/352";
eval('$result = ' . $str . ';');
echo $result;

> ... and so on. If it handles functions (like cos(), pow(),
> exp()) too, then that would be great.

That will. Depending on what $str is coming from, make sure you're
validating it somewhat so there's not any malicious PHP code injected (for
example $str = 'file_get_contents("secretfile.txt")' )

---John Holmes...

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



[PHP] Safe mode effect

2004-04-22 Thread Ravi kumar


HI,

goole.com found so many details about safe mode too much to understand.

My hosting provider set php safe mode = enable . so iam unable to use so

many scripts .

can any one give good free image gallery software which will work under

safe mode = enable .

is it true that with apache 2.x version , we can get ride of php safe mode ?

- thanks for your time



-- 
Knowledge is power share it - http://ravikumar.info

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



Re: [PHP] A to Z incremental

2004-04-22 Thread John W. Holmes
From: "Paul" <[EMAIL PROTECTED]>

>  for($i='A';$i<='Z';$i++){  echo $i.' | ';  }
> ?>
>
> The output is:
> A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S
| T | U | V | W | X | Y | Z |
>  AA | AB | AC |
>  ...
>   YX | YY | YZ |
>
> where is should display only letters from A to Z.
> Why is that?

'A' is less than 'Z' when we're talking about strings. Same as '1000' is
less than '2' when compared as strings. Doesn't really answer "why", but
that's just how it is. :)

---John Holmes...

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



Re: [PHP] Adding includes to files

2004-04-22 Thread Richard Harb
You could either include the files without assigning the contents to a
variable - but that would display those right away:
   

or you could read the contents of the file like:

   

Richard
   
Thursday, April 22, 2004, 5:12:21 PM, thus was written:
> I need to add PHP calls to include a file to each page as it is
> generated, the only thing is I can't get the includes to come through
> correctly:

> 
>$display_block .= "";
>$display_block .= "";
> 

> At the end of the generation I write $display_block to a file as
> $display_block holds all the data it accumulates through the run. How
> do I rewrite the inlclude to work, or do I need to find another way to
> make the includes?  The includes are all template files that I used on
> the site to keep everything consistent.

> Thanks,
> Robert

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



Re: [PHP] PHP vs PERL? HOPE THIS HELPS

2004-04-22 Thread Brent Clark


>That's a really interesting link. Thanks! 

No problem, my pleasure

I was quite shocked to see how PHP performed
gcc still rocks though


Brent

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



RE: [PHP] Remove white space?

2004-04-22 Thread Chris W. Parker
Robert Sossomon 
on Thursday, April 22, 2004 7:51 AM said:

> I am pulling data from a MySQL DB and I need to remove the whitespace
> on the variable and turn it to lowercase.

remove whitespace *on* the variable??

i don't get it.




chris.

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



[PHP] Re: objects in sessions again

2004-04-22 Thread Justin Patrin
[EMAIL PROTECTED] wrote:

Hi there, needing some more advise, is this function correct ?

function create_object($class_name,$dir = null, $serialize = null)
{
$dir ? $dir = $dir."/" : $dir = "";
require_once("".CLASS_PATH.$dir.$class_name.".php");
if ($serialize) {
if (!isset($_SESSION[''.$class_name.''])) {
$class = new $class_name;
$_SESSION[''.$class_name.''] = serialize
($class);
}
return unserialize($_SESSION
[''.$class_name.'']);
} else {
return new $class_name;
}
}
i needed to serialize and unserialize or else all hell broke loose.

Let me know Thanks.

Dan
You really shouldn't have to manually seralize and unserialize the 
values. The session will do that automatically. Serializing yourself 
just means that the object is going to be serialized twice.

$_SESSION['class'] = new Class();

return $_SESSION['class'];

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


[PHP] Re: includes and classes

2004-04-22 Thread Justin Patrin
Jason Barnett wrote:

Dubreuilmedia wrote:

Hi

I was wondering about includes and classes. I have a class in which
depending on a member variable, i should load
the proper include, which is really the proper config file for that 
moment.


How does a member variable control this?  E.g. you set the member 
variable in the constructor and then include some config file?

Now if i do this in the constructor
i can't seem to be able to use the variables found in my config in the 
other
member functions.


Yeah, this can be a little confusing.  When you include a file in a 
function, it only gains the scope of that function.  I.e. variables in 
the included file are only available to that function.  What you can do, 
however, is to assign the config variables to an array in the object.



class someClass
{
function someClass($param) {
// Include the config file
if (21 == $param) {
include_once 'config21.php';
}
// Bring the config variables into this object
foreach ($config as $varname => $value) {
$this->config['varname'] = $value;
}
}
}
?>

Obviously the above method is a little messy.  A better way to handle 
this would be object overloading with __set() and __get(), which is 
available in PHP4 with a few commands and PHP5 uses it by default.

http://www.php.net/overload

(I wouldn't be too afraid of the experimental warning, overloading in 
PHP5 is pretty much the same as in PHP4, and looks like it's here to stay).
Or in your config.php use $GLOBALS['varName'] = 'value'; That would 
clear the whole thing up without extra storing in the object.

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


Re: [PHP] Why NNTP is not default protocol for php groups

2004-04-22 Thread Justin Patrin
David T-G wrote:
Hi --

...and then T. H. Grejc said...
% 
% Justin Patrin wrote:
% >The threading works just fine. The problem is that users have ignorant 
% >mail software that don't set the thread headers correctly. Even 
% >newsgroup client software might do this. This is *not* the server's 
% >fault in any way, shape, or form.
% 
% Sure it's not servers fault, knowing that news.php.net is not *real* 
% news server. It is mailing list mirror. News server dont make threads 
% based on subject like mailing list, but based on message header field.

Suppose for a moment that this list turned into a newsgroup instead of a
mailing list.  What would those same people causing problems on the
existing list use to access the news server?  Outhouse.  And so what
would happen to the headers and the threading?  The same thing.
The problem is endemic to the users, and so the only solution must be
applied there.  Changing over to a new server won't matter at all.
% 
% News servers are cheaper, faster, easier to use, more accessible, easier 
% to archive than mailing lists. That's why I dont see the point of 
% mailing list being primary to php.net.

Because mailing lists are good.  Mailing lists give the recipients more
control and, in this day and age of easy connectivity, make more sense
than replicating a news store everywhere.  I'm sorry if that doesn't
serve your needs well, and I am glad there is a mail-to-news gateway
which should provide a news server for you, but such a thing sure doesn't
serve me (as an example) -- since I only get to read in chunks, I'd miss
countless posts because they'd expire off of the news server before I got
there, whereas when they're safely locked up in my mailbox I can get them
any time I need to.
There is no expiring off of this news server. It's the same as the 
mailing list archives. You can go right back to beginning, so that's not 
an issue.

Don't get me started on the whole spam problem, either.  All of the
newsgroups I've loved over the years have gone downhill due to being
flooded with spam.  I could be wrong, but I don't know of any news spam
cleaners; they're all meant for email.
The spam on the newsgroup and the mailing list are the same as they're 
the same thing. A post to either creates a message on both sides. I'm 
currently posting this message via the newsgroup. The difference between 
this and other (global) newsgroups is that this (and the other PHP 
newsgroups) aren't part of the global newsgroup system. It's its own 
server, so spammers don't get to it unless they look for it...and who 
would want to spam such a small system?

Mail is good.  News is less so, though it has its place.

Both are good. I like the newsgroup better than e-mail for this kind of 
interaction, though. It allows easy viewing and reading without having 
to get every single message.

HTH & HAND

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


Re[2]: [PHP] A to Z incremental

2004-04-22 Thread Paul
Hello Pablo,

Thursday, April 22, 2004, 4:05:23 PM, you wrote:

>> Hi!
>> Got this script:
>> 
>> > for($i='A';$i<='Z';$i++){  echo $i.' | ';  }
>>> 
>> 
>> The output is:
>> A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R
>>   | S | T | U | V | W | X | Y | Z |  AA | AB | AC |  ... YX | YY | YZ
>> | 
>> 
>> where is should display only letters from A to Z.
>> Why is that?
>> 

PG> Hi, Paul. Try this instead.
...


Thanks Pablo!
I know that but I was curios why that happens.


-- 
Best regards,
 Paulmailto:[EMAIL PROTECTED]

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



RE: Re[2]: [PHP] A to Z incremental

2004-04-22 Thread Pablo Gosse
Paul wrote:
> Hello Pablo,
> 
> Thursday, April 22, 2004, 4:05:23 PM, you wrote:
> 
>>> Hi!
>>> Got this script:
>>> 
>>> >> for($i='A';$i<='Z';$i++){  echo $i.' | ';  }
 
>>> 
>>> The output is:
>>> A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q |
>>>   R | S | T | U | V | W | X | Y | Z |  AA | AB | AC |  ... YX | YY
>>> | YZ 
 
>>> 
>>> where is should display only letters from A to Z.
>>> Why is that?
>>> 
> 
>> Hi, Paul. Try this instead.
> ...
> 
> 
> Thanks Pablo!
> I know that but I was curios why that happens.
> 
> 
> --
> Best regards,
>  Paulmailto:[EMAIL PROTECTED]

Hi Paul.

Since you're dealing with a string, A is less than AA which will be less
than Z.  It's stopping at YZ because if it were to increment once more,
it would be ZZ, which (again, because this is a string) is greater than
Z so thus the loop exits.

HTH.

Cheers,
Pablo

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



[PHP] SMTP and GroupWise

2004-04-22 Thread Todd Cary
My client is using GroupWise to relay *without* having relay turned on 
and it needs/uses an authenication that is different from the regular 
SMTP.  Here is a trace of a message that went through:

02/11/2004 06:55:27 SMTP to rcpt: Al Smith <[EMAIL PROTECTED]>
02/11/2004 06:55:29 < +OK GroupWise POP3 server ready
02/11/2004 06:55:29 > USER scan01
02/11/2004 06:55:29 < +OK
02/11/2004 06:55:29 > PASS ***
02/11/2004 06:55:29 < +OK
02/11/2004 06:55:29 > QUIT
02/11/2004 06:55:29 < +OK GroupWise POP3 server signing off
02/11/2004 06:55:29 Authenticated at POP Host: mailman.cd-hq.com
02/11/2004 06:55:31 < 220 mailman.cd-hq.com GroupWise Internet Agent
6.5.1  Copyright (c) 1993-2003 Novell, Inc.  All rights reserved.
Ready
02/11/2004 06:55:31 > HELO FDM
02/11/2004 06:55:31 < 250 mailman.cd-hq.com Ok
02/11/2004 06:55:31 > MAIL FROM:<[EMAIL PROTECTED]>
02/11/2004 06:55:31 < 250 Ok
02/11/2004 06:55:31 > RCPT TO:<[EMAIL PROTECTED]>
02/11/2004 06:55:31 < 250 Ok
02/11/2004 06:55:31 > DATA
02/11/2004 06:55:31 < 354 Enter mail, end with "." on a line by itself
02/11/2004 06:55:31 > .
02/11/2004 06:55:31 < 250 Ok
02/11/2004 06:55:31 Rcpt: Al Smith ([EMAIL PROTECTED]) 1 file(s)
sent
02/11/2004 06:55:31 > QUIT
02/11/2004 06:55:31 < 221 mailman.cd-hq.com Closing transmission
channel
Does anyone know of a class that can provide this type of authenication?

Todd

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


Re: [PHP] SMTP and GroupWise

2004-04-22 Thread David O'Brien
That's just basic pop before smtp. A common way of authenticating.
Just make a connection to the pop server after the hello and  before
sending the email. Most mail servers cache this info for a certain
amount of time so you may not have to do it every time you send.
I know that http://phpmailer.sourceforge.net/docs/ supports this
you may want to look at their code.
-Dave

At 02:47 PM 4/22/2004, Todd Cary wrote:
My client is using GroupWise to relay *without* having relay turned on and 
it needs/uses an authenication that is different from the regular 
SMTP.  Here is a trace of a message that went through:

02/11/2004 06:55:27 SMTP to rcpt: Al Smith <[EMAIL PROTECTED]>
02/11/2004 06:55:29 < +OK GroupWise POP3 server ready
02/11/2004 06:55:29 > USER scan01
02/11/2004 06:55:29 < +OK
02/11/2004 06:55:29 > PASS ***
02/11/2004 06:55:29 < +OK
02/11/2004 06:55:29 > QUIT
02/11/2004 06:55:29 < +OK GroupWise POP3 server signing off
02/11/2004 06:55:29 Authenticated at POP Host: mailman.cd-hq.com
02/11/2004 06:55:31 < 220 mailman.cd-hq.com GroupWise Internet Agent
6.5.1  Copyright (c) 1993-2003 Novell, Inc.  All rights reserved.
Ready
02/11/2004 06:55:31 > HELO FDM
02/11/2004 06:55:31 < 250 mailman.cd-hq.com Ok
02/11/2004 06:55:31 > MAIL FROM:<[EMAIL PROTECTED]>
02/11/2004 06:55:31 < 250 Ok
02/11/2004 06:55:31 > RCPT TO:<[EMAIL PROTECTED]>
02/11/2004 06:55:31 < 250 Ok
02/11/2004 06:55:31 > DATA
02/11/2004 06:55:31 < 354 Enter mail, end with "." on a line by itself
02/11/2004 06:55:31 > .
02/11/2004 06:55:31 < 250 Ok
02/11/2004 06:55:31 Rcpt: Al Smith ([EMAIL PROTECTED]) 1 file(s)
sent
02/11/2004 06:55:31 > QUIT
02/11/2004 06:55:31 < 221 mailman.cd-hq.com Closing transmission
channel
Does anyone know of a class that can provide this type of authenication?

Todd

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


David G. O'Brien
Web Services Coordinator / Systems Administrator
NACCRRA
The Nation's Network of Child Care Resource & Referral
1319 F Street NW, Suite 500
Washington, DC 20004
(202) 393-5501 ext. 113
(202) 393-1109 fax
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] What's wrong with this IF statement?

2004-04-22 Thread Richard Davey
Hello Robert,

Thursday, April 22, 2004, 8:02:55 PM, you wrote:

RS>   $cat_id = $cats[id_num];

Try this:

$cat_id = $cats['id_num'];

You need to quote array elements otherwise PHP expects a constant.

-- 
Best regards,
 Richard Davey
 http://www.phpcommunity.org/wiki/296.html

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



Re: [PHP] virtual domain own php.ini

2004-04-22 Thread pan

"Robby Russell" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> Trying to use own php.ini file (rather than the one that the webserver
> sees by default) for a web site (on a box that has many websites that
> utilize the other) and used the following instructions, but it doesn't
> seem to notice my own php.ini file.
>
>  > When the PHP interpreter starts up, it behaves according to settings
>  > specified in any availabe php.ini file. The Web server will look for
>  > this file in the following locations and in the following order:
>  >
>  > 1. The directory from which the PHP script was called 2. The root of
>  > your Web directory  3. The Web server's default php.ini
>
> Any thoughts?
>
rtfm on ini_set()

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



[PHP] regular expressions php/perl/actionscript

2004-04-22 Thread Gabino Travassos
Hello

I'm wondering if Regular Expressions are the same in Perl and PHP (and
possibly Actionscript)? They look the same and smell the same, but if I see
a book in a store for Perl Regular Expressions that's $10 cheaper than the
PHP one (is there one?), then is it the same thing?

While we're on this topic, I'm looking to find an attribute in an XML and
replace it with a string variable I get from a form.

I can use:
$bgClrOld = preg_match('/backColour/',$s);  //  1
to find the attribute, but how do I find and replace
   backColour="a3b4c5"
with
   backColour=$bgClrNew
?

TIA

Gabino

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



Re[2]: [PHP] virtual domain own php.ini

2004-04-22 Thread Richard Davey
Hello pan,

Thursday, April 22, 2004, 8:19:39 PM, you wrote:

p> rtfm on ini_set()

What on earth has ini_set() got to do with the web server not picking
up the alternative php.ini file located in the web root?

Sure it will allow you to change *some* of the ini variables, but that
wasn't even the original issue I don't believe.

-- 
Best regards,
 Richard Davey
 http://www.phpcommunity.org/wiki/296.html

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



Re: [PHP] SMTP and GroupWise

2004-04-22 Thread Todd Cary
David -

I am using the phpmailer class, and I do not see mention of using the 
POP3 for authentication.  Am I missing something?

Todd

David O'Brien wrote:
That's just basic pop before smtp. A common way of authenticating.
Just make a connection to the pop server after the hello and  before
sending the email. Most mail servers cache this info for a certain
amount of time so you may not have to do it every time you send.
I know that http://phpmailer.sourceforge.net/docs/ supports this
you may want to look at their code.
-Dave

At 02:47 PM 4/22/2004, Todd Cary wrote:

My client is using GroupWise to relay *without* having relay turned on 
and it needs/uses an authenication that is different from the regular 
SMTP.  Here is a trace of a message that went through:

02/11/2004 06:55:27 SMTP to rcpt: Al Smith <[EMAIL PROTECTED]>
02/11/2004 06:55:29 < +OK GroupWise POP3 server ready
02/11/2004 06:55:29 > USER scan01
02/11/2004 06:55:29 < +OK
02/11/2004 06:55:29 > PASS ***
02/11/2004 06:55:29 < +OK
02/11/2004 06:55:29 > QUIT
02/11/2004 06:55:29 < +OK GroupWise POP3 server signing off
02/11/2004 06:55:29 Authenticated at POP Host: mailman.cd-hq.com
02/11/2004 06:55:31 < 220 mailman.cd-hq.com GroupWise Internet Agent
6.5.1  Copyright (c) 1993-2003 Novell, Inc.  All rights reserved.
Ready
02/11/2004 06:55:31 > HELO FDM
02/11/2004 06:55:31 < 250 mailman.cd-hq.com Ok
02/11/2004 06:55:31 > MAIL FROM:<[EMAIL PROTECTED]>
02/11/2004 06:55:31 < 250 Ok
02/11/2004 06:55:31 > RCPT TO:<[EMAIL PROTECTED]>
02/11/2004 06:55:31 < 250 Ok
02/11/2004 06:55:31 > DATA
02/11/2004 06:55:31 < 354 Enter mail, end with "." on a line by itself
02/11/2004 06:55:31 > .
02/11/2004 06:55:31 < 250 Ok
02/11/2004 06:55:31 Rcpt: Al Smith ([EMAIL PROTECTED]) 1 file(s)
sent
02/11/2004 06:55:31 > QUIT
02/11/2004 06:55:31 < 221 mailman.cd-hq.com Closing transmission
channel
Does anyone know of a class that can provide this type of authenication?

Todd

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


David G. O'Brien
Web Services Coordinator / Systems Administrator
NACCRRA
The Nation's Network of Child Care Resource & Referral
1319 F Street NW, Suite 500
Washington, DC 20004
(202) 393-5501 ext. 113
(202) 393-1109 fax
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] virtual domain own php.ini

2004-04-22 Thread John Nichel
pan wrote:
"Robby Russell" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Trying to use own php.ini file (rather than the one that the webserver
sees by default) for a web site (on a box that has many websites that
utilize the other) and used the following instructions, but it doesn't
seem to notice my own php.ini file.
> When the PHP interpreter starts up, it behaves according to settings
> specified in any availabe php.ini file. The Web server will look for
> this file in the following locations and in the following order:
>
> 1. The directory from which the PHP script was called 2. The root of
> your Web directory  3. The Web server's default php.ini
Any thoughts?

rtfm on ini_set()

That's not going to help the OP load a seperate ini file for virtual 
domains.  ini_set() is good if you only need to change a few settings, 
but it would be a pain to set all the ini settings (not to mention that 
I don't think ini_set() will change all the ini settings).

--
***
*  _  __   __  __   _  * John  Nichel *
* | |/ /___ __ \ \/ /__ _ _| |__ ___  __ ___ _ __  * 716.856.9675 *
* | ' http://www.KegWorks.com[EMAIL PROTECTED] * 14203 - 1321 *
***
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] regular expressions php/perl/actionscript

2004-04-22 Thread Chris W. Parker
Gabino Travassos 
on Thursday, April 22, 2004 12:24 PM said:

> I'm wondering if Regular Expressions are the same in Perl and PHP (and
> possibly Actionscript)? They look the same and smell the same, but if
> I see a book in a store for Perl Regular Expressions that's $10
> cheaper than the PHP one (is there one?), then is it the same thing?

i'd get the perl book over the php book personally. but then again i'm
pretty sure there is not a "perl regex" book, nor is there a "php regex"
book. there's probably just a regex book. you as the user have to decide
what works where.

this page will tell you what php supports:

http://us3.php.net/ereg

> While we're on this topic, I'm looking to find an attribute in an XML
> and replace it with a string variable I get from a form.

check the other functions on that page. your answer is there!



chris.

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



Re: Re[2]: [PHP] virtual domain own php.ini

2004-04-22 Thread pan

"Richard Davey" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello pan,
>
> Thursday, April 22, 2004, 8:19:39 PM, you wrote:
>
> p> rtfm on ini_set()
>
> What on earth has ini_set() got to do with the web server not picking
> up the alternative php.ini file located in the web root?
>
> Sure it will allow you to change *some* of the ini variables, but that
> wasn't even the original issue I don't believe.
>
virtual

on most servers ini_set will be the best you can hope for

security settings won't allow alternative php.ini file reads

that's why

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



[PHP] Conditional Functions

2004-04-22 Thread Anguz
Hello,

I was wondering if using conditional functions would save resources. The 
thing is that there's many functions in the code I'm using, but most 
aren't used in each case. I was thinking that maybe, even if the 
functions are in the included files, I could not define them making them 
conditional. Would this benefit the script? How? TIA.

Anguz

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


Re: [PHP] virtual domain own php.ini

2004-04-22 Thread pan

"John Nichel" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> pan wrote:
> > "Robby Russell" <[EMAIL PROTECTED]> wrote in message
> > news:[EMAIL PROTECTED]
> >
> >>Trying to use own php.ini file (rather than the one that the webserver
> >>sees by default) for a web site (on a box that has many websites that
> >>utilize the other) and used the following instructions, but it doesn't
> >>seem to notice my own php.ini file.
> >>
> >> > When the PHP interpreter starts up, it behaves according to settings
> >> > specified in any availabe php.ini file. The Web server will look for
> >> > this file in the following locations and in the following order:
> >> >
> >> > 1. The directory from which the PHP script was called 2. The root of
> >> > your Web directory  3. The Web server's default php.ini
> >>
> >>Any thoughts?
> >>
> >
> > rtfm on ini_set()
> >
>
> That's not going to help the OP load a seperate ini file for virtual
> domains.  ini_set() is good if you only need to change a few settings,
> but it would be a pain to set all the ini settings (not to mention that
> I don't think ini_set() will change all the ini settings).
>

OP is on a virtual server
real world experience says ini_set is going to be what you can do

sorry for being cryptic and abrupt, but short answer seemed best

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



Re[4]: [PHP] virtual domain own php.ini

2004-04-22 Thread Richard Davey
Hello pan,

Thursday, April 22, 2004, 8:36:51 PM, you wrote:

p> on most servers ini_set will be the best you can hope for
p> security settings won't allow alternative php.ini file reads
p> that's why

Perhaps it would have been more useful to state this in the original
post.

-- 
Best regards,
 Richard Davey
 http://www.phpcommunity.org/wiki/296.html

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



RE: [PHP] Conditional Functions

2004-04-22 Thread Jay Blanchard
[snip]
I was wondering if using conditional functions would save resources. The
thing is that there's many functions in the code I'm using, but most
aren't used in each case. I was thinking that maybe, even if the
functions are in the included files, I could not define them making them
conditional. Would this benefit the script? How? TIA.
[/snip]

It might, have you experimented with any code? 

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



Re: [PHP] regular expressions php/perl/actionscript

2004-04-22 Thread John W. Holmes
From: "Gabino Travassos" <[EMAIL PROTECTED]>

> I'm wondering if Regular Expressions are the same in Perl and PHP (and
> possibly Actionscript)? They look the same and smell the same, but if I
see
> a book in a store for Perl Regular Expressions that's $10 cheaper than the
> PHP one (is there one?), then is it the same thing?

The regular expressions used in the preg_* functions "closely resembles
Perl". The basic syntax is the same. The regular expressions used in the
ereg_* functions are POSIX-Extended.

http://us2.php.net/manual/en/ref.pcre.php (Perl-compatible)
http://us2.php.net/manual/en/ref.regex.php (POSIX Extended)

---John Holmes...

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



RE: [PHP] Conditional Functions

2004-04-22 Thread Chris W. Parker
Anguz 
on Thursday, April 22, 2004 12:21 PM said:

> I was wondering if using conditional functions would save resources.
> The thing is that there's many functions in the code I'm using, but
> most aren't used in each case. I was thinking that maybe, even if the
> functions are in the included files, I could not define them making
> them conditional. Would this benefit the script? How? TIA.

how do you not define a function but put it in an include file at the
same time and still have it be useable?



chris.

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



Re: [PHP] Conditional Functions

2004-04-22 Thread Torsten Roehr
Maybe you could group them by purpose and put them into different include
files. Then you just include the file containing the functions you need at
this point in the script.

Regards,
Torsten Roehr

"Jay Blanchard" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
[snip]
I was wondering if using conditional functions would save resources. The
thing is that there's many functions in the code I'm using, but most
aren't used in each case. I was thinking that maybe, even if the
functions are in the included files, I could not define them making them
conditional. Would this benefit the script? How? TIA.
[/snip]

It might, have you experimented with any code?

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



Re: [PHP] regular expressions php/perl/actionscript

2004-04-22 Thread Gabino Travassos
I forgot to mention that in my XML file, inside the quotes in this attribute
>>> backColour="xx"  the x's will be variable..., so I need some kind of
wildcard to select everything from "backColour" + the next 8 or 9
characters, cuz it might be backColour="333990" or whatnot.

'backColour' will be a unique string in the XML file, but I'll have those
quotes and a variable RGB hex value to find and replace.

Can I do something like
$bgClrOld = ereg_match('/backColour/'+8chr,$s);
?

Merci

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



RE: [PHP] regular expressions php/perl/actionscript

2004-04-22 Thread Michal Migurski
> > I'm wondering if Regular Expressions are the same in Perl and PHP (and
> > possibly Actionscript)? They look the same and smell the same, but if
> > I see a book in a store for Perl Regular Expressions that's $10
> > cheaper than the PHP one (is there one?), then is it the same thing?
>
> this page will tell you what php supports:
>
> http://us3.php.net/ereg

Alternatively, try this:
http://www.php.net/manual/en/ref.pcre.php

"PCRE" == "Perl-compatible Regular Expressions".

The ereg functions use a slightly different syntax.

-
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.com/contact.html

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



[PHP] require_once('') relative path problem

2004-04-22 Thread Sheeraz fazal
Hi,
I have problem in undertanding the require_once/require/include/include_once
functionality. Php files in my project are located in different folders.
Some folders have common files for other files. And file layout is like this

/*
File: a.php
*/
require_once('../test/db.php');
...


/*
File: db.php
*/
require_once('../globals/global.php');
...


when i include a.php in another file i get error for global.php file that
path could not be found. And if i correct the path in db.php then someother
file which is using db.php will get error. So, can someone elaborate that
how relative path works in require_once. what is the starting directory for
require_once function which is using relative path.

Or

Is there any way that i can included some constant which include the
absolute path from which all relative paths can be determined?

Comments welcome.

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



Re: [PHP] regular expressions php/perl/actionscript

2004-04-22 Thread Gabino Travassos

Thanks for the suggestions. Between the online manual and the books I have I
think I'll get there eventually. Sometimes my logic just sux. What I needed
to do was have the user fill out a form and if they make changes to the XML
file I would update the file. So, my long way around was to go through the
old XML file and create a string variable for every possible form field.
Then I would compare the /bgClrOld/ to /bgClr/ and if they were different I
would then update the file with an ereg_replace.

After some poking around, this seems to be the way to go. Only if the field
is not empty so I change it

if ($bgClr !=""){
$bgClr="xx";
}

I still have some work to do, but ...

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



RE: [PHP] require_once('') relative path problem

2004-04-22 Thread Tyler Replogle
hey,
i didn't quite get when you ment by that but have you tried using 
$DOCUMENT_ROOT before your path, that might help it will be something like 
this
require_once('$DOCUMENT_ROOT/test/db.php');
$DOCUMENT_ROOT  goes to your first folder that shows up online (where your 
index page is)


From: "Sheeraz fazal" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: [PHP] require_once('') relative path problem
Date: Thu, 22 Apr 2004 14:34:23 -0600
Hi,
I have problem in undertanding the 
require_once/require/include/include_once
functionality. Php files in my project are located in different folders.
Some folders have common files for other files. And file layout is like 
this

/*
File: a.php
*/
require_once('../test/db.php');
...
/*
File: db.php
*/
require_once('../globals/global.php');
...
when i include a.php in another file i get error for global.php file that
path could not be found. And if i correct the path in db.php then someother
file which is using db.php will get error. So, can someone elaborate that
how relative path works in require_once. what is the starting directory for
require_once function which is using relative path.
Or

Is there any way that i can included some constant which include the
absolute path from which all relative paths can be determined?
Comments welcome.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
_
Lose those love handles! MSN Fitness shows you two moves to slim your waist. 
http://fitness.msn.com/articles/feeds/article.aspx?dept=exercise&article=et_pv_030104_lovehandles

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


RE: [PHP] What's wrong with this IF statement?

2004-04-22 Thread Michael Sims
John W. Holmes wrote:
> You want && instead of ||
>
> if ($cat_id != "53" && $cat_id != "54" && $cat_id != "55" && $cat_id
> != "117" && $cat_id != "118" && $cat_id != "74")

For stuff like this I've always found the following slightly easier on the
eyes:

if (!in_array($cat_id, array('53', '54', '55', '117', '118', '74')))

YMMV...

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



Re: [PHP] Conditional Functions

2004-04-22 Thread Anguz
[snip]
Maybe you could group them by purpose and put them into different include
files. Then you just include the file containing the functions you need at
this point in the script.
Regards,
Torsten Roehr
[/snip]

The functions are already grouped in different files, but even then, not 
all the functions included are used every time. The thing is, that 
there's too many different values for $action and each has it's own set 
of functions used. So creating an include file tailor-made for each one 
is a bit difficult, specially since many functions are used in more than 
one action.

So I thought that maybe I could only define the needed ones in each 
case, although there's more in the include file. Example:

if ($in_array('Hello', $functionArray))
{
function Hello()
{
echo 'Hello';
}
}
I understand that the whole php file will be parsed, or does the parser 
skip the whole block inside the if when the condition is not met? But 
even if it is parsed, if the condition is not met, I believe that the 
function won't be defined, so I assume this would at least save RAM or 
something, right? Or not at all?

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


  1   2   >