[PHP] Re: php4 and PHPLib

2001-12-31 Thread Björn Schotte

Hi,

* Gerard Samuel wrote:
> I want to), and I didn't see anything in its docs about php4
> Is it possible to run this thing on a box with php4??

Of course, since PHPLIB is only a set of PHP classes.

-- 
Sichere PHP Applikationen / Notfall-Consulting mit der
PHP Feuerwehr / Code inspection / Code rehearsal / API
Checkup.   mailto:[EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Select box won't display in Netscape 4.xx

2001-12-31 Thread Edwin Boersma

Hi,

I'm developing a website for multiple browsers. In Netscape 4.xx (both
Win98 and Linux versions), the php-scripts display the select boxes in
my forms only as plain text. I cannot make any selections. In other
browsers (NS 6 and IE5), it works fine.

Anyone seen this behavior before?

Regards,
Edwin


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Sessions Problems!

2001-12-31 Thread Phillip M.(Mike) Bishop

I am having problems with my sessions. I authenticate the user against a
mysql db. The authentication works fine and the session script works fine
for all my other domains except one. They all reside on the same webserver
using the same session class. The problem I have is when the user logs in,
they get to the first page. When they go to another page they have to
relogin.  The session file is created but it is empty. This script worked
fine on this domain until Friday. Nothing has changed what could be the
cause of this.

Thanks in advance for any insight into this problem.

Mike


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] How to strip off all html-comments

2001-12-31 Thread Martin

Hello! How can I easily strip off all html-comments () from
a string?

Martin



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: Need some Linux/Apache help

2001-12-31 Thread Edwin Boersma

Hi Todd,

Has Apache been restarted ton use the new libphp4.so? And if so, does it use
the correct one (you might have another one on your system)?
If Apache starts without probs, check the httpd.conf for php mime types.
What does Apache respond if you load your test script?

Regards,
Edwin

Todd Cary wrote:

> Coming from a Windows background, I am having difficulty understanding
> rpm's, compiling, and making packages.  My hope is that someone will
> have the patience to take me through the steps, since the HowTo's are
> out of date and do not address my current Red Hat 7.2 environment.
>
> With Red Hat 7.2 installed, Apache is installed along with PHP 4.0.6,
> however, Interbase is not installed   Here is what I have done so far:
>
> I did a "rpm -qa | grep php" and found the rpm that was
> installed.(php-4.0.6-7).  When I tried "rpm -e php-4.0.6-7", I received
> a list of php modules that were dependent on it.  So, I "erased" each of
> those and finally did the "rpm -e php-4.0.6-7".  Then I put
> php-4.0.6-7.src.rpm into /tmp and did a "rpm -i php-4.0.6-7.rpm" which
> put a tar'd file into /usr/src/redhat/SOURCES.
>
> I did "tar -xzvf /usr/src/redhat/SOURCES/php-4.0.6pl1.tar.gz" which
> created a directory /tmp/php-4.0.6.  I cd'd into that directory and did
> a ./configure --with-interbase=/opt/interbase
> --with-apache=/usr/include/apache
>
> After quite a period, I received a "Thank you for using PHP" message.  I
> followed this with a "make" and a "make install".
>
> Now Apache does not respond to a "testphp.php" script that contains
> "phoinfo()" and it use to.
>
> What have I missed.
>
> Todd
>
> --
> Todd Cary
> Ariste Software
> [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] How to strip off all html-comments

2001-12-31 Thread James Cox

http://www.php.net/stripcodes

happy new year!
James Cox
--
James Cox :: [EMAIL PROTECTED]
Please CC me when replying to my messages

> -Original Message-
> From: Martin [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 31, 2001 11:07 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] How to strip off all html-comments
> 
> 
> Hello! How can I easily strip off all html-comments () from
> a string?
> 
> Martin
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Select box won't display in Netscape 4.xx

2001-12-31 Thread Miles Thompson


Sounds like a problem with HTML syntax. NS is notoriously fussy and IE 
remarkably lax. Capture your source and compare against the HTML standard. 
I'm surprised NS6 is accepting what NS4 is choking on.

Happy New Year - Miles

PS I'd bet a cup of coffee that a closing tag is missing.

At 12:06 PM 12/31/2001 +0100, Edwin Boersma wrote:
>Hi,
>
>I'm developing a website for multiple browsers. In Netscape 4.xx (both
>Win98 and Linux versions), the php-scripts display the select boxes in
>my forms only as plain text. I cannot make any selections. In other
>browsers (NS 6 and IE5), it works fine.
>
>Anyone seen this behavior before?
>
>Regards,
>Edwin
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] web mail clients?

2001-12-31 Thread Philip Jeffs

Hi,

I'm looking into setting up a web based mail client for personal use.

I've got most of it figured out (sending, recieving, forwarding etc..). 

I need to be able to use folders in the mail client to organise the messages. Whats 
the best way of moving messages around?

Do i need to store them as files / in a database or is there an easier way to do it?

Thanks.

-
Philip Jeffs

The Tickle Group
The Gate House
Summerseat
Bury
Lancashire
BL9 5PE
United Kingdom
W: http://www.tickle.co.uk
T: 01706 823456
F: 01706 829500
E: [EMAIL PROTECTED] (daytime)
[EMAIL PROTECTED] (evening)
-




RE: [PHP] web mail clients?

2001-12-31 Thread Brian V Bonini

This has been done, no need to re-invent the wheel
unless of course you wanted to.

> -Original Message-
> From: Philip Jeffs [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 31, 2001 8:30 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] web mail clients?
> 
> 
> Hi,
> 
> I'm looking into setting up a web based mail client for personal use.
> 
> I've got most of it figured out (sending, recieving, forwarding etc..). 
> 
> I need to be able to use folders in the mail client to organise 
> the messages. Whats the best way of moving messages around?
> 
> Do i need to store them as files / in a database or is there an 
> easier way to do it?
> 
> Thanks.
> 
> -
> Philip Jeffs
> 
> The Tickle Group
> The Gate House
> Summerseat
> Bury
> Lancashire
> BL9 5PE
> United Kingdom
> W: http://www.tickle.co.uk
> T: 01706 823456
> F: 01706 829500
> E: [EMAIL PROTECTED] (daytime)
> [EMAIL PROTECTED] (evening)
> -
> 
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] web mail clients?

2001-12-31 Thread David Jackson

Philip --
If you just want to install one:
http://freshmeat.net "Browse" down to PHP project, there 4-6 are ready out
there.

If you want to "roll your own" check out the tutorials at:
http://www.melonfire.com/community/columns/trog/

Note: The mail client I send this mail from appears to be a 
PHP front to "mailx", the saved mail is store in "Unix" type mail
folders in my home directory. i.e. it appends messages to the
end of a text file. 

Hope this helps.
David


> Hi,
> 
> I'm looking into setting up a web based mail client for personal use.
> 
> I've got most of it figured out (sending, recieving, forwarding etc..).
> 
> 
> I need to be able to use folders in the mail client to organise the
> messages. Whats the best way of moving messages around?
> 
> Do i need to store them as files / in a database or is there an easier
> way to do it?
> 
> Thanks.
> 
> -
> Philip Jeffs
> 
> The Tickle Group
> The Gate House
> Summerseat
> Bury
> Lancashire
> BL9 5PE
> United Kingdom
> W: http://www.tickle.co.uk
> T: 01706 823456
> F: 01706 829500
> E: [EMAIL PROTECTED] (daytime)
>[EMAIL PROTECTED] (evening)
> -


-- 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Select box won't display in Netscape 4.xx

2001-12-31 Thread David Jackson

Miles ---
Here's the link to W3C: HTML/XHTML and CSS validation page.
It's a excellent tool for debuging pages.
http://validator.w3.org/

David

> 
> Sounds like a problem with HTML syntax. NS is notoriously fussy and IE 
> remarkably lax. Capture your source and compare against the HTML
> standard.  I'm surprised NS6 is accepting what NS4 is choking on.
> 
> Happy New Year - Miles
> 
> PS I'd bet a cup of coffee that a closing tag is missing.
> 
> At 12:06 PM 12/31/2001 +0100, Edwin Boersma wrote:
>>Hi,
>>
>>I'm developing a website for multiple browsers. In Netscape 4.xx (both
>>Win98 and Linux versions), the php-scripts display the select boxes in
>>my forms only as plain text. I cannot make any selections. In other
>>browsers (NS 6 and IE5), it works fine.
>>
>>Anyone seen this behavior before?
>>
>>Regards,
>>Edwin
>>
>>
>>--
>>PHP General Mailing List (http://www.php.net/)
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>To contact the list administrators, e-mail:
>>[EMAIL PROTECTED]
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail:
> [EMAIL PROTECTED]


-- 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] arrays aka headache

2001-12-31 Thread Louis Grenzebach

Okay so I have a multidimensional associative array, $userlist[$file][$stat], $stat 
only contains one value, I want to sort $userlist[$file] based off some associative 
element in $stat, say like 'wins'. array_multisort isn't appropriate as far as I can 
tell since $stat isn't an array, it's just a value, like, $userlist[$files]['wins']=4. 
An exampleof the data would be as follows:

$userlist['01']['wins']=4
$userlist['02']['wins']=9
$userlist['03']['wins']=2

I'd like, after running whatever command/function, to have the list be sorted as 
follows-
$userlist['02']['wins']=9
$userlist['01']['wins']=4
$userlist['03']['wins']=2

I'm sure it's possible, I'm just clueless as to HOW to go about it. Any help much 
appreciated.

Regards
Louis Grenzebach



[PHP] Testing: Igonore This Message

2001-12-31 Thread John Monfort



Test
Cannot submit to list.
Test




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Testing: DON'T Ignore This Message

2001-12-31 Thread Bogdan Stancescu

It seems to work. I'll use this thread to ask an admin question: why
doesn't the mailing list daemon add a reply-to address similar to the
one I manually added here? Wouldn't it be more comfortable for all
parties concerned?

Bogdan

John Monfort wrote:

> Test
> Cannot submit to list.
> Test
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Apache Error 500

2001-12-31 Thread patricka

Hi,

 I am using the list comment to decompose urls for navigation.
 This works fine. Except on one particular server and I don't know
 why..
 
 if my url is like : test.php everything is ok, but when I use
 test.php/1, I get the Apache Internal 500 Error.

 I believe that apache is checking if the 1 in the dir test.php
 exists, which of course is not the case since test.php is a file.
 I am only allowed to modify a htaccess file...

 Does anyone have a suggestion how to fix this?
 
 Thanks, 

 Patrick
 


 PS:
 
 my file test.php looks like

 list($dummy1,$dummy2,$pid1,$pid2) = split("/",$PHP_SELF);
 switch( $pid1 ) {
 case 1:
 include "file1.html";
 break;
 case 2:
 include "file2.html";
 break;
 default:
 include "default.html";
 break;
}

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Apache Error 500

2001-12-31 Thread Bogdan Stancescu

Out of curiosity, why would you ever need this kind of URL? And what would
you expect Apache to do - issue a 404 error instead?

Bogdan

[EMAIL PROTECTED] wrote:

>  if my url is like : test.php everything is ok, but when I use
>  test.php/1, I get the Apache Internal 500 Error.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] TEST---Please Ignore

2001-12-31 Thread John Monfort


=Testing=
Having trouble sending mail...
=Testing=

Please ignore.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Session troubles

2001-12-31 Thread Jaime Bozza

Sean,
  From your php error_log, it's saying the following:
Failed to write session data (user)

  which sounds like it's having problems writing to the user-defined
session handler.  Are you using a user-defined session handler?  If not,
make sure your php.ini file has:

session.save_handler = files

And *NOT*:
session.save_handler = user

That will make a big difference.

Jaime Bozza

-Original Message-
From: Sean LeBlanc [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, December 29, 2001 1:21 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Session troubles


On 12-29 12:56, David Jackson wrote:
> Sean --
> Don't know if this help but here's what I just worked for me. What 
> ver. of PHP are you using? It seem to me that 3.x.x needs
> PHPLIB: http://sourceforge.net/projects/phplib
> to handle sessions?  -- David Jackson
> 
> --- sean.php ---
> 
> 
> --- seaninc.php --
>  session_start();
> session_register("i");
> $i++;
> echo $i;
> ?>

I'm using 4.0.6. I believe session handling was added as part of
standard 4.x, right (if configured to compile it)? 

Some more info: I tried with Konqueror, as I know a cookie needs to be
sent during the session_start() phase - I did get a dialog pop-up asking
if I wanted to accept the cookie, but I still got the error:

Fatal error: Failed to initialize session module in
/usr/local/apache/htdocs/sesstest.php on line 2

It says line 2 because I deleted some white space and commented out code
thas was before session_start().

I set logging errors on, and sent it to syslog. Here's what it says: Dec
29 12:12:57 free httpd: PHP Fatal error:  Failed to initialize session
module in /usr/local/apache/htdocs/sesstest.php on line 2 Dec 29
12:12:57 free httpd: PHP Warning:  Failed to write session data (user).
Please verify that the current setting of session.save_path is correct
(/tmp) in Unknown on line 0

But /tmp exists, and is world writeable:

free# ls -ld /tmp
drwxrwxrwt  16 root  wheel  1024 Dec 29 12:14 /tmp

> > On 12-29 09:59, Miles Thompson wrote:
> >> Sean,
> >> 
> >> What's going on in incl.php. Are you issuing a session_start()?
> > 
> > No, I was not.
> > 
> >> What if it's rearranged like so, as I understand you have to 
> >> register the session variable  before using it.
> >> 
> >> include("incl.php");
> >> session_start();
> >> session_register("mine");
> >> $mine++;
> >> echo $mine;
> > 
> > No dice, either. Actually, I had tried several permutations of the 
> > order  before posting. :)
> > 
> >> 
> >> There's the divide and conquer approach too.  What do you see if 
> >> you comment out the include, then issue a phpinfo() and a die()?
> > 
> > Okay, I tried commenting out include, resulting in this code:
> > 
> > session_start();
> > session_register("i");
> > $i++;
> > echo $i;
> > 
> > When I run the above, I get this:
> > Fatal error: Failed to initialize session module in 
> > /usr/local/apache/htdocs/sesstest.php on line 6
> > 
> > Which is getting somewhere, in a way. Line 6 is session_start();
> > 
> > What part from phpinfo() output were you interested in? Or did you 
> > want to see all of it?
> > 
> > Thanks for the help.
> > 
> >> 
> >> HTH and Merry Christmas / Happy New Year - Miles Thompson
> >> 
> >> On Friday 28 December 2001 11:26 pm, Sean LeBlanc wrote:
> >> > I asked this on php-install list, but got no response so here 
> >> > goes...
> >> >
> >> > I simply cannot get session to work correctly. Here's the test
> >> > script:
> >> >
> >> > include("incl.php");
> >> > session_start();
> >> > $mine++;
> >> > session_register("mine");
> >> > echo $mine;
> >> >
> >> > incl.php includes code to save/retrieve session information 
> >> > to/from DB.  It calles session_set_save_handler at the end.
> >> >
> >> > What happens is I get an error because it is trying to read the 
> >> > variable out and I get a DB error, but my session writing routine

> >> > is never called...I know, because I have a print in there. And of

> >> > course, the var doesn't increment upon refreshes - it remains 1.
> >> >
> >> > I've seen this before, and it was fixed, but I forget how it was 
> >> > done, as I didn't actually implement the solution (I hear and I 
> >> > forget, I do and I remember, I guess). About my system:
> >> >
> >> > FreeBSD 4.4
> >> > Apache 1.3.20
> >> > PHP 4.0.6
> >> >
> >> > Any and all help appreciated.
> > 
> > --
> > Sean LeBlanc:[EMAIL PROTECTED] Yahoo:seanleblancathome 
> > ICQ:138565743 MSN:seanleblancathome AIM:sleblancathome 
> > One learns to itch where one can scratch. 
> > -Ernest Bramah 
> > Management QOTD:Get hopping on the domain expertise!!
> > 
> > 
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail:
> > [EMAIL PROTECTED]
> 
> 
> --
> 
> 
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For a

RE: [PHP] Apache Error 500

2001-12-31 Thread Andrew Hill

Patrick,

It's likeley that one that one server PHP is installed as a GGI -
unfortunatley the trick you want to use only work when PHP is installed as a
module.

Best regards,
Andrew Hill
Director of Technology Evangelism
OpenLink Software  http://www.openlinksw.com
Universal Data Access & Data Integration Technology Providers

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 31, 2001 10:20 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Apache Error 500
>
>
> Hi,
>
>  I am using the list comment to decompose urls for navigation.
>  This works fine. Except on one particular server and I don't know
>  why..
>
>  if my url is like : test.php everything is ok, but when I use
>  test.php/1, I get the Apache Internal 500 Error.
>
>  I believe that apache is checking if the 1 in the dir test.php
>  exists, which of course is not the case since test.php is a file.
>  I am only allowed to modify a htaccess file...
>
>  Does anyone have a suggestion how to fix this?
>
>  Thanks,
>
>  Patrick
>
>
>
>  PS:
>
>  my file test.php looks like
>
>  list($dummy1,$dummy2,$pid1,$pid2) = split("/",$PHP_SELF);
>  switch( $pid1 ) {
>  case 1:
>  include "file1.html";
>  break;
>  case 2:
>  include "file2.html";
>  break;
>  default:
>  include "default.html";
>  break;
> }
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Regular Expression

2001-12-31 Thread John Monfort


Hello everyone!

I'm trying to get the text inside the  tag, using regular
expression.

$area = eregi('()',$str);

Where $str is the string containing


When I print  $area, the string contains the entire content of $str. I
get something like:



.
.
.





__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Re: Need some Linux/Apache help

2001-12-31 Thread Brian Clark

* Edwin Boersma ([EMAIL PROTECTED]) [Dec 31. 2001 06:15]:

> Has Apache been restarted ton use the new libphp4.so? And if so, does it use

He will have no libphp4.so since he used --with-apache. In order to
create a DSO, he'll need to use --with-apxs

> the correct one (you might have another one on your system)?
> If Apache starts without probs, check the httpd.conf for php mime types.
> What does Apache respond if you load your test script?

-- 
Brian Clark | Avoiding the general public since 1805!
Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB E4D0 C7C8
Avoid strange women and temporary variables.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] How to strip off all html-comments

2001-12-31 Thread Brian Clark

* James Cox ([EMAIL PROTECTED]) [Dec 31. 2001 06:38]:

> http://www.php.net/stripcodes

I think you mean strip_tags()



[...]

> > Hello! How can I easily strip off all html-comments () from
> > a string?

> > Martin

-- 
Brian Clark | Avoiding the general public since 1805!
Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB E4D0 C7C8
Forget Napster. Why not really break the law?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] How to strip off all html-comments

2001-12-31 Thread Richard S. Crawford

Martin,

strip_tags() would be useful for removing *all* HTML from a string, though 
you can specify that certain tags should be retained.  For example, if you 
want to remove all *but* anchor tags from your string, your function would 
look like this:

 $str = strip_tags($str,'');


However, if you want to remove *just* comment tags, though, you're better 
off using the ereg_replace() or eregi_replace() function to remove the 
comment tags, something like this:

 $str = eregi_replace("","",$str);

...which would be a lot easier than including every other possible tag in 
the second field of the strip_tags() function.

This regexp is very similar to one that I used to remove img tags from a 
string in a project I was working on.


Good luck!


At 07:58 AM 12/31/2001, Brian Clark wrote:
>* James Cox ([EMAIL PROTECTED]) [Dec 31. 2001 06:38]:
>
> > http://www.php.net/stripcodes
>
>I think you mean strip_tags()
>
>
>
>[...]
>
> > > Hello! How can I easily strip off all html-comments () from
> > > a string?
>
> > > Martin
>
>--
>Brian Clark | Avoiding the general public since 1805!
>Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB E4D0 C7C8
>Forget Napster. Why not really break the law?
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]


Sliante,
Richard S. Crawford

http://www.mossroot.com
AIM: Buffalo2K   ICQ: 11646404  Y!: rscrawford
MSN: [EMAIL PROTECTED]

"It is only with the heart that we see rightly; what is essential is 
invisible to the eye."  --Antoine de Saint Exupéry

"Push the button, Max!"


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Regular Expression Help

2001-12-31 Thread John Monfort


Hello everyone,

I'm using regular expression to extract all text within the  tag.
With a BODY tag like

   \\only interested in this line.

I use

eregi("( ) ",$str,$out);
\\spaces included, here, for easy reading.

echo "$out[0]";

However, this prints everything following (and including) the '
 
 ...
 
 

I want it to ONLY take the text within the openning body tag. Like,


how do I do this? What am I missing, in the above?

eregi("()",$str,$out);

-Please help.

-john



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Listing files

2001-12-31 Thread Todd Cary

I would like to present the surfer with a list of files in a directory
(I'll probably put then into a drop-down) and then I want to send the
file to the surfer if one is selected.  I am not sure of the syntax to

1) List the files in a directory

2) Send a selected file to the surfer

Many thanks for any help in getting the correct syntax to do this..

Todd

--
Todd Cary
Ariste Software
[EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Re: Need some Linux/Apache help

2001-12-31 Thread Todd Cary

Brian -

That is correct: libphp4.so no longer exists (locate libphp4.so).

I am not sure where the Apache source code exists with the default RH
7.2 intallation, or if it exists at all.  When I do

# rpm -qa | grep apache

I am told that apache-1.3.20-16 is loaded, however there are 4 or so
other applications dependent on it.  If I were to do a "rpm -e
apache-1.3.20-16" with the "ignore dependencies" directive, what will
happen?

Can I then get my Linux installation reconfigured so that
"/etc/rc.d/init.d/httpd start" will start Apache?  I have the
"apache-1.3.20-16.src.rpm" and I do know how to intall it and untar the
resulting file, but from there on I am lost when it comes to setting up
the "configure".

Sorry for such basic questions, but my Windows background is certainly a
liability - not a help!

Todd
--
Todd Cary
Ariste Software
[EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Real Simple, but i'm new!!

2001-12-31 Thread Robert V. Zwink

FYI

This example does not return the expected result.

Accessing:
http://server.com/empty.phtml?variable

Then:


Will never print TRUE according to the example.  The "isset()" function is
likely better suited for this person's purposes.

Robert V. Zwink
http://www.zwink.net/daid.php



-Original Message-
From: scott [mailto:[EMAIL PROTECTED]]
Sent: Saturday, December 29, 2001 10:48 PM
To: Php-General
Subject: RE: [PHP] Real Simple, but i'm new!!


well, if your URL is index.php?links

if (!empty($links))

is similar to what you'd want to use.

> -Original Message-
> From: Brian Clark [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, December 29, 2001 9:44 PM
> To: PHP is not a drug.
> Subject: Re: [PHP] Real Simple, but i'm new!!
>
>
> * FiShcAkE ([EMAIL PROTECTED]) [Dec 29. 2001 13:07]:
>
> > Hey,
>
> Howdydo
>
> > I've just started learning php and I need to know this...  What are the
> > commands I use to get i.e.  index.php?links   and  index.php?newsto
> > work?
>
> You can use QUERY_STRING, but you could also use action=news,
> action=links, action=asdfg and use a switch($action)
>
> I guess you're trying to make the URL as pretty as possible, right?
>
> --
> Brian Clark | Avoiding the general public since 1805!
> Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB E4D0 C7C8
> A library is an arsenal of liberty.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Regular Expression Help

2001-12-31 Thread Brian Clark

* John Monfort ([EMAIL PROTECTED]) [Dec 31. 2001 11:30]:

> I'm using regular expression to extract all text within the  tag.
> With a BODY tag like

>\\only interested in this line.

[...]

> echo "$out[0]";

> However, this prints everything following (and including) the ' portion of the BODY tag.

"$matches[0] will contain the text that matched the full pattern,
$matches[1] will have the text that matched the first captured
parenthesized subpattern"

So you want: $out[1]

-- 
Brian Clark | Avoiding the general public since 1805!
Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB E4D0 C7C8
Press Ctrl-Alt-Del for more information.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Listing files

2001-12-31 Thread Brian Clark

* Todd Cary ([EMAIL PROTECTED]) [Dec 31. 2001 11:32]:

> I would like to present the surfer with a list of files in a directory
> (I'll probably put then into a drop-down) and then I want to send the
> file to the surfer if one is selected.  I am not sure of the syntax to

> 1) List the files in a directory

Using PHP 4.x?



> 2) Send a selected file to the surfer



Scroll 3/4 down.

> Many thanks for any help in getting the correct syntax to do this..

HTH

-- 
Brian Clark | Avoiding the general public since 1805!
Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB E4D0 C7C8
Avoid strange women and temporary variables.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: php4 and PHPLib

2001-12-31 Thread Gerard Samuel

I was looking through the archive and there were some references about
changing apache's config to recognise php3 files in php4.  When I tried
to add a mime type for php3, restarted apache and tried to go to a test
php3 page with phpinfo() in it my browswer wants to download it, instead
of displaying phpinfo().
Anyone knows of any pointers of getting php4 to recoginise php3 files as
php files.  Im currently using apache 1.3.22, php 4.0.6.
Thanks..

Björn Schotte wrote:

 > Hi,
 >
 > * Gerard Samuel wrote:
 >
 >>I want to), and I didn't see anything in its docs about php4
 >>Is it possible to run this thing on a box with php4??
 >>
 >
 > Of course, since PHPLIB is only a set of PHP classes.
 >
 >




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: Listing files

2001-12-31 Thread George Nicolae

$path="c:/";//your path
function GetDirArray($sPath)
{
//Load Directory Into Array
$handle=opendir($sPath);
while ($file = readdir($handle)) if(($file!=".")&($file!=".."))
$retVal[(isset($retVal))?count($retVal):0] = $file;
//Clean up and sort
closedir($handle);
sort($retVal);
return $retVal;
}

$a=GetDirArray($path);
//echo "test".count($a);
//for ($i=0;$i";
?>

 
  
  


--


Best regards,
George Nicolae
IT Manager
___
X-Playin - Professional Web Design
www.x-playin.f2s.com



"Todd Cary" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I would like to present the surfer with a list of files in a directory
> (I'll probably put then into a drop-down) and then I want to send the
> file to the surfer if one is selected.  I am not sure of the syntax to
>
> 1) List the files in a directory
>
> 2) Send a selected file to the surfer
>
> Many thanks for any help in getting the correct syntax to do this..
>
> Todd
>
> --
> Todd Cary
> Ariste Software
> [EMAIL PROTECTED]
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Test

2001-12-31 Thread John Monfort


Test: cannot send mail, but can read.
Please ignore.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] length of string

2001-12-31 Thread Ray Todd Stevens

I can't seem to find this anywhere in the manuals.  What is the 
maximum length of a string?

Ray Todd Stevens Specialists in Network and Security 
Consulting
Senior ConsultantSoftware audit service available
Stevens Services
Suite 21
3754 Old State Rd 37 N
Bedford, IN 47421
(812) 279-9394
[EMAIL PROTECTED]

Thought for the day:
Book (n): a utensil used to pass time while waiting
for the TV repairman.


For PGP public key send message with subject 
please send PGP key

If this message refers to an attachment the attachment
may arrive as a seperate mail message depending on the
type of mail client and gateway software you are using.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Re: Need some Linux/Apache help

2001-12-31 Thread Brian Clark

* Todd Cary ([EMAIL PROTECTED]) [Dec 31. 2001 11:34]:

[...]

> I am told that apache-1.3.20-16 is loaded, however there are 4 or so
> other applications dependent on it.  If I were to do a "rpm -e
> apache-1.3.20-16" with the "ignore dependencies" directive, what will
> happen?

You probably don't need to do all this.. when you configure PHP, just
use --with-apxs=/path/to/apxs/that/exists/on/your/system instead of 
--with-apache=/path/to/apache/source

> Can I then get my Linux installation reconfigured so that
> "/etc/rc.d/init.d/httpd start" will start Apache?  I have the
> "apache-1.3.20-16.src.rpm" and I do know how to intall it and untar the
> resulting file, but from there on I am lost when it comes to setting up
> the "configure".

If you use --with-apxs when configuring PHP, you don't have to mess
around with your current Apache install. For the exaception of making
sure httpd.conf is correct after you install PHP, you don't need to do
anything else to your existing apache install.

Just download PHP tarball, unpack it somewhere. 
./configure --with-apxs=/path/to/your/apxs [rest of your options here]
make install

Then check httpd.conf to make sure it has a LoadModule line for php and
AddType lines for php. You should see them commented out in httpd.conf.
You should only need to uncomment the LoadModule line for PHP4, not
PHP3.

Then restart apache: /path/to/apachectl restart

-- 
Brian Clark | Avoiding the general public since 1805!
Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB E4D0 C7C8
I intend to live forever - so far, so good.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] how to read posted data?

2001-12-31 Thread Emile Bosch

USE
$HTTP_RAW_POST_DATA
or something like that

i'll look it up for you
"Zhiqiang He" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> i have resolved this problem, use $HTTP_RAW_POST_DATA.
>
> On Thu, 11 Oct 2001 13:12:54 GMT, [EMAIL PROTECTED] (Zhiqiang He) wrote:
>
> >problem like this:
> >
> >The data in HTML form POSTs is packaged into name value pairs. But
> >when IE 5 exports its favorites file to a server (an HTML file), it
> >sends a raw HTTP POST of the data (there are no names and values, just
> >a raw text stream.
> >
> >On Thu, 11 Oct 2001 12:58:09 +0300, [EMAIL PROTECTED]
> >(=?Iso-8859-1?Q?Niklas_lamp=E9n?=) wrote:
> >
> >>Use $FieldName or $HTTP_POST_VARS.
> >>
> >>
> >>Niklas
> >>
> >>-Original Message-
> >>From: ZhiQiang He [mailto:[EMAIL PROTECTED]]
> >>Sent: 11. lokakuuta 2001 12:54
> >>To: [EMAIL PROTECTED]
> >>Subject: [PHP] how to read posted data?
> >>
> >>
> >>we want to use post data in php, how can we read it?
> >>note, this post data is not sent by form.
> >>thanks in advance, ^_^
> >>
> >>--
> >>PHP General Mailing List (http://www.php.net/)
> >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>For additional commands, e-mail: [EMAIL PROTECTED] To
> >>contact the list administrators, e-mail: [EMAIL PROTECTED]
> >>
> >
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] length of string

2001-12-31 Thread Bogdan Stancescu

Take a look at the maximum allowed memory size used by PHP -- too much in a
hurry to provide a link. Approx. 8MB is the default. That's the limit for
strings too.

Bogdan

Ray Todd Stevens wrote:

> I can't seem to find this anywhere in the manuals.  What is the
> maximum length of a string?
> 
> Ray Todd Stevens Specialists in Network and Security
> Consulting
> Senior ConsultantSoftware audit service available
> Stevens Services
> Suite 21
> 3754 Old State Rd 37 N
> Bedford, IN 47421
> (812) 279-9394
> [EMAIL PROTECTED]
>
> Thought for the day:
> Book (n): a utensil used to pass time while waiting
> for the TV repairman.
>
> For PGP public key send message with subject
> please send PGP key
>
> If this message refers to an attachment the attachment
> may arrive as a seperate mail message depending on the
> type of mail client and gateway software you are using.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] length of string

2001-12-31 Thread Brian Clark

* Ray Todd Stevens ([EMAIL PROTECTED]) [Dec 31. 2001 12:15]:

> I can't seem to find this anywhere in the manuals.  What is the 
> maximum length of a string?

This probably depends on the Operating System.. for Linux you can check
out limits.h, but for Windows, I have no idea.

-- 
Brian Clark | Avoiding the general public since 1805!
Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB E4D0 C7C8
$ mount -t neuro /dev/brain /mnt/head


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: Select box won't display in Netscape 4.xx

2001-12-31 Thread Mike Eheler

This happens when a  tag is not within a  block in 
netscape 4.. if the select isn't meant to be part of a form, and is just 
for navigation (javascript onchange or whatever), then just do 
...

Mike

Edwin Boersma wrote:

> Hi,
> 
> I'm developing a website for multiple browsers. In Netscape 4.xx (both
> Win98 and Linux versions), the php-scripts display the select boxes in
> my forms only as plain text. I cannot make any selections. In other
> browsers (NS 6 and IE5), it works fine.
> 
> Anyone seen this behavior before?
> 
> Regards,
> Edwin
> 
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] mysql_fetch_array

2001-12-31 Thread Vincent Stoessel

you can also do

$queryString = "select table1.uid as 'my_uid'  , table2.uid as 'their_uid'
from table1, table2
where ... ";






Greg Sidelinger wrote:

> 
> 
> 
> Subject:
> 
> [PHP] mysql_fetch_array
> From:
> 
> "Greg Sidelinger" <[EMAIL PROTECTED]>
> Date:
> 
> Sun, 30 Dec 2001 18:44:44 -0500
> To:
> 
> [EMAIL PROTECTED]
> 
> To:
> 
> [EMAIL PROTECTED]
> 
> 
> Ok I have use mysql_fetch_array to dump the results of a select query with a
> join in it.
> if my tables contain a column with the same name how can I distinguish from
> them.  I'm used to
> table_name.value method in other languages but when I tried
> $row['table_name.value'] I don't get any values.
> can anyone point me in the right direction.
> 
> 
> 
> 



-- 
Vincent Stoessel [EMAIL PROTECTED]
Java Linux Apache Mysql Php (JLAMP) Engineer
(301) 362-1750 Mobile (410) 419-8588
AIM, MSN: xaymaca2020 , Yahoo Messenger: vks_jamaica


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: web mail clients?

2001-12-31 Thread Mike Eheler

Depends what you want to do with it.

If you want it to grab messages from a POP server, and download them to 
your local machine, then some sort of cyclic folders database structure 
would help:

int auto_inc folderid
int default(0) parentid (= 0 if root, otherwise id of parent folder)
str foldername

Then your mail database:

int auto_inc mailid
int default(0) folderid
subject
... etc ...

I would suggest setting up an IMAP server somewhere.. in which case all 
you really need to do is grab Horde/IMP from http://www.horde.org/imp 
and use that. The latest version is quite good.

Mike

Philip Jeffs wrote:

> Hi,
> 
> I'm looking into setting up a web based mail client for personal use.
> 
> I've got most of it figured out (sending, recieving, forwarding etc..). 
> 
> I need to be able to use folders in the mail client to organise the messages. Whats 
>the best way of moving messages around?
> 
> Do i need to store them as files / in a database or is there an easier way to do it?
> 
> Thanks.
> 
> -
> Philip Jeffs
> 
> The Tickle Group
> The Gate House
> Summerseat
> Bury
> Lancashire
> BL9 5PE
> United Kingdom
> W: http://www.tickle.co.uk
> T: 01706 823456
> F: 01706 829500
> E: [EMAIL PROTECTED] (daytime)
> [EMAIL PROTECTED] (evening)
> -
> 
> 
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: How to strip off all html-comments

2001-12-31 Thread Mike Eheler

Checkout the preg_replace page in the PHP manual (at 
http://www.php.net/manual/en). There is an example there on removing all 
HTML tags. You can just modify it to work on just comments.

Mike

Martin wrote:

> Hello! How can I easily strip off all html-comments () from
> a string?
> 
> Martin
> 
> 
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Select box won't display in Netscape 4.xx

2001-12-31 Thread Jim Lucas [php]

check and make sure the you have the correct opening and closing form tags.
NS 4.x will "choke" if you don't have an opening and closing tag.  While IE
5, 5.5 and 6 will work fine.

Jim
- Original Message -
From: "Edwin Boersma" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 31, 2001 3:06 AM
Subject: [PHP] Select box won't display in Netscape 4.xx


> Hi,
>
> I'm developing a website for multiple browsers. In Netscape 4.xx (both
> Win98 and Linux versions), the php-scripts display the select boxes in
> my forms only as plain text. I cannot make any selections. In other
> browsers (NS 6 and IE5), it works fine.
>
> Anyone seen this behavior before?
>
> Regards,
> Edwin
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Sessions Problems!

2001-12-31 Thread Jim Lucas [php]

when you say that nothing  changed, does that include permissions on the tmp
session directory, the httpd.conf file or any related configurations?

Jim
- Original Message -
From: "Phillip M.(Mike) Bishop" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 31, 2001 2:58 AM
Subject: [PHP] Sessions Problems!


> I am having problems with my sessions. I authenticate the user against a
> mysql db. The authentication works fine and the session script works fine
> for all my other domains except one. They all reside on the same webserver
> using the same session class. The problem I have is when the user logs in,
> they get to the first page. When they go to another page they have to
> relogin.  The session file is created but it is empty. This script worked
> fine on this domain until Friday. Nothing has changed what could be the
> cause of this.
>
> Thanks in advance for any insight into this problem.
>
> Mike
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Support for GIF, PNG and JPEG. How ?

2001-12-31 Thread Robert Mena

Hi,
I was wondering if there is a wayto compile php with
gd support for the gif, png and jpg file types.

As far as I know gd dropped gif support while ago when
it added png.

regards,


__
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Support for GIF, PNG and JPEG. How ?

2001-12-31 Thread Brian Clark

* Robert Mena ([EMAIL PROTECTED]) [Dec 31. 2001 13:00]:

> I was wondering if there is a wayto compile php with
> gd support for the gif, png and jpg file types.

> As far as I know gd dropped gif support while ago when
> it added png.

I know gd version 1.3 supports gif. YOu can probably dig it up on
google... wait.. I think I remember "fly" using gd 1.3.x and I think it
provides the source with it.



If you download the tarball, it *should* have gd version 1.3 in a
directory in there somehwere.

No idea if it still works with PHP.

-- 
Brian Clark | Avoiding the general public since 1805!
Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB E4D0 C7C8
Multitasking: Screwing up several things at once.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Re: Need some Linux/Apache help

2001-12-31 Thread Brian Clark

* Todd Cary ([EMAIL PROTECTED]) [Dec 31. 2001 13:15]:

> Brian et al -

Looks like you meant to send this to the list? :-)) I waited to see if
one would roll on in, but it doesn't look like it will be, sooo...

> This is starting to make some sense, however, there are still some areas
> of confusion:

> <<<
> just use --with-apxs=/path/to/apxs/that/exists/on/your/system
> >>>

> What is the best way to determine where RH 7.2 put that?  What am I
> actually looking for?

You are looking for an executable (a perl program actually) named apxs. 
At your shell prompt, try:

which apxs

If that returns nothing, try:

locate apxs

or

locate apxs | grep bin

> <<<
> If you use --with-apxs when configuring PHP, you don't have to mess
> around with your current Apache install. For the exception of making
> sure httpd.conf is correct after you install PHP, you don't need to do
> anything else to your existing apache install.
> >>>

> This makes sense now.  Apache, and I am sure other application, use
> modules, however, I am not sure of the mechanism at the application
> level.  In the Delphi/Windows environment, I can use packages at compile
> time, but they do become part of the EXE file.

Using --with-apache is the equivalent. But unless you've done this
before and know exactly what configure arguments you need, you might
want to use --with-apxs to build PHP as a loadable module so that you
can easily re-configure PHP and build it all over again if you need to
add support for something else (for example, if you decided a week from
now you wanted MySQL support in PHP).

Bottom line:

If you use --with-apache you will have to build Apache *and* PHP and
install them.

If you use --with-apxs you only need to build PHP and install it.

> <<<
> Just download PHP tarball, unpack it somewhere.
> ./configure --with-apxs=/path/to/your/apxs [rest of your options here]
> make install
> >>>

> Again, I am not sure how to find the path.

See the notes at the top. :)


-- 
Brian Clark | Avoiding the general public since 1805!
Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB E4D0 C7C8
Error:015 - Unable to exit Windows. Try the door.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] how to read posted data?

2001-12-31 Thread David Jackson

Also check out tutorials at:
http://www.melonfire.com/community/columns/trog/

-- david


> USE
> $HTTP_RAW_POST_DATA
> or something like that
> 
> i'll look it up for you
> "Zhiqiang He" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]...
>> i have resolved this problem, use $HTTP_RAW_POST_DATA.
>>
>> On Thu, 11 Oct 2001 13:12:54 GMT, [EMAIL PROTECTED] (Zhiqiang He) wrote:
>>
>> >problem like this:
>> >
>> >The data in HTML form POSTs is packaged into name value pairs. But
>> >when IE 5 exports its favorites file to a server (an HTML file), it
>> >sends a raw HTTP POST of the data (there are no names and values,
>> >just a raw text stream.
>> >
>> >On Thu, 11 Oct 2001 12:58:09 +0300, [EMAIL PROTECTED]
>> >(=?Iso-8859-1?Q?Niklas_lamp=E9n?=) wrote:
>> >
>> >>Use $FieldName or $HTTP_POST_VARS.
>> >>
>> >>
>> >>Niklas
>> >>
>> >>-Original Message-
>> >>From: ZhiQiang He [mailto:[EMAIL PROTECTED]]
>> >>Sent: 11. lokakuuta 2001 12:54
>> >>To: [EMAIL PROTECTED]
>> >>Subject: [PHP] how to read posted data?
>> >>
>> >>
>> >>we want to use post data in php, how can we read it?
>> >>note, this post data is not sent by form.
>> >>thanks in advance, ^_^
>> >>
>> >>--
>> >>PHP General Mailing List (http://www.php.net/)
>> >>To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >>For additional commands, e-mail: [EMAIL PROTECTED] To
>> >>contact the list administrators, e-mail:
>> >>[EMAIL PROTECTED]
>> >>
>> >
>>
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail:
> [EMAIL PROTECTED]


-- 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Select box won't display in Netscape 4.xx

2001-12-31 Thread sundogcurt

Have you double and triple checked to be sure your form elements are 
nested properly?

[EMAIL PROTECTED] wrote:

>Hi,
>
>I'm developing a website for multiple browsers. In Netscape 4.xx (both
>Win98 and Linux versions), the php-scripts display the select boxes in
>my forms only as plain text. I cannot make any selections. In other
>browsers (NS 6 and IE5), it works fine.
>
>Anyone seen this behavior before?
>
>Regards,
>Edwin
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] servlet sapi is broken in 4.1.0

2001-12-31 Thread Vincent Stoessel

After doing  a lot of hoop jumping trying to get
php4.1.0 compiled and working as a servlet for tomcat 4.0.1
I finally tried going back to php 4.0.6 with the same configure
options and so far it runs flawlessly as a servet.
You can view the history of my problem here:
http://marc.theaimsgroup.com/?t=10096654662&r=1&w=2&n=2

I was about to post a bug, report but I see one already there.
This is just a heads up to the java/php developer then.

http://bugs.php.net/bug.php?id=14441

-- 
Vincent Stoessel [EMAIL PROTECTED]
Java Linux Apache Mysql Php (JLAMP) Engineer
(301) 362-1750 Mobile (410) 419-8588
AIM, MSN: xaymaca2020 , Yahoo Messenger: vks_jamaica


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: Listing files

2001-12-31 Thread George Nicolae

I am very honour of your suggestion but I am not the author of the function
GetDirArray($sPath). The author is [EMAIL PROTECTED] (I don't know him). It
isn't ethic to publish this function under my name.


Best regards,
George Nicolae
IT Manager
___
X-Playin - Professional Web Design
www.x-playin.f2s.com



- Original Message -
From: "Boaz Yahav" <[EMAIL PROTECTED]>
To: "George Nicolae" <[EMAIL PROTECTED]>
Sent: Monday, December 31, 2001 9:05 PM
Subject: RE: [PHP] Re: Listing files


This looks like a great example to add to weberdev.
Care to spend 3 minutes and let other PHP developers
enjoy from your experience?

You are one click away from doing a good deed :)

http://www.weberdev.com/index.php3?GoTo=addexample.php3

Sincerely

  berber

Visit http://www.weberdev.com Today!!!
To see where PHP might take you tomorrow.




-Original Message-
From: George Nicolae [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 31, 2001 7:00 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: Listing files


$path="c:/";//your path
function GetDirArray($sPath)
{
//Load Directory Into Array
$handle=opendir($sPath);
while ($file = readdir($handle)) if(($file!=".")&($file!=".."))
$retVal[(isset($retVal))?count($retVal):0] = $file;
//Clean up and sort
closedir($handle);
sort($retVal);
return $retVal;
}

$a=GetDirArray($path);
//echo "test".count($a);
//for ($i=0;$i";
?>

 
  
  


--



"Todd Cary" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I would like to present the surfer with a list of files in a directory
> (I'll probably put then into a drop-down) and then I want to send the
> file to the surfer if one is selected.  I am not sure of the syntax to
>
> 1) List the files in a directory
>
> 2) Send a selected file to the surfer
>
> Many thanks for any help in getting the correct syntax to do
this..
>
> Todd
>
> --
> Todd Cary
> Ariste Software
> [EMAIL PROTECTED]
>
>



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Sessions Problems!

2001-12-31 Thread Phillip M.(Mike) Bishop

Correct. The same authentication script is used on 4 other domains on my
server. They are able to write the session file to /tmp and so is the other
domain expect the file is a 0 byte file.

- Original Message -
From: "Jim Lucas [php]" <[EMAIL PROTECTED]>
To: "Phillip M.(Mike) Bishop" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Monday, December 31, 2001 12:57 PM
Subject: Re: [PHP] Sessions Problems!


> when you say that nothing  changed, does that include permissions on the
tmp
> session directory, the httpd.conf file or any related configurations?
>
> Jim
> - Original Message -
> From: "Phillip M.(Mike) Bishop" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, December 31, 2001 2:58 AM
> Subject: [PHP] Sessions Problems!
>
>
> > I am having problems with my sessions. I authenticate the user against a
> > mysql db. The authentication works fine and the session script works
fine
> > for all my other domains except one. They all reside on the same
webserver
> > using the same session class. The problem I have is when the user logs
in,
> > they get to the first page. When they go to another page they have to
> > relogin.  The session file is created but it is empty. This script
worked
> > fine on this domain until Friday. Nothing has changed what could be the
> > cause of this.
> >
> > Thanks in advance for any insight into this problem.
> >
> > Mike
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




php-general Digest 31 Dec 2001 20:15:47 -0000 Issue 1084

2001-12-31 Thread php-general-digest-help


php-general Digest 31 Dec 2001 20:15:47 - Issue 1084

Topics (messages 79096 through 79146):

Re: php4 and PHPLib
79096 by: Björn Schotte
79125 by: Gerard Samuel

Select box won't display in Netscape 4.xx
79097 by: Edwin Boersma
79102 by: Miles Thompson
79106 by: David Jackson
79133 by: Mike Eheler
79137 by: Jim Lucas [php]
79143 by: sundogcurt

Sessions Problems!
79098 by: Phillip M.(Mike) Bishop
79138 by: Jim Lucas [php]
79146 by: Phillip M.(Mike) Bishop

How to strip off all html-comments
79099 by: Martin
79101 by: James Cox
79117 by: Brian Clark
79118 by: Richard S. Crawford
79136 by: Mike Eheler

Re: Need some Linux/Apache help
79100 by: Edwin Boersma
79116 by: Brian Clark
79121 by: Todd Cary
79129 by: Brian Clark
79141 by: Brian Clark

web mail clients?
79103 by: Philip Jeffs
79104 by: Brian V Bonini
79105 by: David Jackson
79135 by: Mike Eheler

arrays aka headache
79107 by: Louis Grenzebach

Testing: Igonore This Message
79108 by: John Monfort

Re: Testing: DON'T Ignore This Message
79109 by: Bogdan Stancescu

Apache Error 500
79110 by: patricka.wfw.wtb.tue.nl
79111 by: Bogdan Stancescu
79114 by: Andrew Hill

TEST---Please Ignore
79112 by: John Monfort

Re: Session troubles
79113 by: Jaime Bozza

Regular Expression
79115 by: John Monfort

Regular Expression Help
79119 by: John Monfort
79123 by: Brian Clark

Listing files
79120 by: Todd Cary
79124 by: Brian Clark
79126 by: George Nicolae
79145 by: George Nicolae

Re: Real Simple, but i'm new!!
79122 by: Robert V. Zwink

Test
79127 by: John Monfort

length of string
79128 by: Ray Todd Stevens
79131 by: Bogdan Stancescu
79132 by: Brian Clark

Re: how to read posted data?
79130 by: Emile Bosch
79142 by: David Jackson

Re: mysql_fetch_array
79134 by: Vincent Stoessel

Support for GIF, PNG and JPEG. How ?
79139 by: Robert Mena
79140 by: Brian Clark

servlet sapi is broken in 4.1.0
79144 by: Vincent Stoessel

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

Hi,

* Gerard Samuel wrote:
> I want to), and I didn't see anything in its docs about php4
> Is it possible to run this thing on a box with php4??

Of course, since PHPLIB is only a set of PHP classes.

-- 
Sichere PHP Applikationen / Notfall-Consulting mit der
PHP Feuerwehr / Code inspection / Code rehearsal / API
Checkup.   mailto:[EMAIL PROTECTED]

--- End Message ---
--- Begin Message ---

I was looking through the archive and there were some references about
changing apache's config to recognise php3 files in php4.  When I tried
to add a mime type for php3, restarted apache and tried to go to a test
php3 page with phpinfo() in it my browswer wants to download it, instead
of displaying phpinfo().
Anyone knows of any pointers of getting php4 to recoginise php3 files as
php files.  Im currently using apache 1.3.22, php 4.0.6.
Thanks..

Björn Schotte wrote:

 > Hi,
 >
 > * Gerard Samuel wrote:
 >
 >>I want to), and I didn't see anything in its docs about php4
 >>Is it possible to run this thing on a box with php4??
 >>
 >
 > Of course, since PHPLIB is only a set of PHP classes.
 >
 >




--- End Message ---
--- Begin Message ---

Hi,

I'm developing a website for multiple browsers. In Netscape 4.xx (both
Win98 and Linux versions), the php-scripts display the select boxes in
my forms only as plain text. I cannot make any selections. In other
browsers (NS 6 and IE5), it works fine.

Anyone seen this behavior before?

Regards,
Edwin


--- End Message ---
--- Begin Message ---


Sounds like a problem with HTML syntax. NS is notoriously fussy and IE 
remarkably lax. Capture your source and compare against the HTML standard. 
I'm surprised NS6 is accepting what NS4 is choking on.

Happy New Year - Miles

PS I'd bet a cup of coffee that a closing tag is missing.

At 12:06 PM 12/31/2001 +0100, Edwin Boersma wrote:
>Hi,
>
>I'm developing a website for multiple browsers. In Netscape 4.xx (both
>Win98 and Linux versions), the php-scripts display the select boxes in
>my forms only as plain text. I cannot make any selections. In other
>browsers (NS 6 and IE5), it works fine.
>
>Anyone seen this behavior before?
>
>Regards,
>Edwin
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]


--

[PHP] work with mobile by PHP !!

2001-12-31 Thread Alawi

How can I send msg to PHP ? 
what I need and what I must read ??



Re: [PHP] Testing: DON'T Ignore This Message

2001-12-31 Thread Michael Sims

At 05:07 PM 12/31/2001 +0200, you wrote:
>It seems to work. I'll use this thread to ask an admin question: why
>doesn't the mailing list daemon add a reply-to address similar to the
>one I manually added here? Wouldn't it be more comfortable for all
>parties concerned?

I agree.  It's a pain to have to click "Reply-to-all" and then strip out 
the individuals email address (leaving only the address of the 
list)...other lists that I'm on have the reply-to always pointing back to 
the list so all you have to do is click "Reply" and you know it will go 
where it needs to...


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Getting elapsed time between two MySQL time fields

2001-12-31 Thread Tom Beidler

I have some records in a MySQL database that store a start and stop time. In
my display page that displays the record info I would like to use PHP to
find the elapsed time between the two fields. So if I had;

Start 13:44:20
Stop 13:49:25

Possibly use a function to calculate
Elapsed 5:05

Do I need to do this in MySQL?

Thanks,
Tom 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] What the hell?!?!

2001-12-31 Thread LaserJetter

I've just been preparing a site for upload from my local test server to the
net and have come accross a php.error.log file which was 13.4Mb!
I'm using PHP 4.1.0 and Apache 1.3.19 on Win98se and ever since upgrading to
4.1 PHP
has been creating these error log files all over the place. Does anyone know
what to change in php.ini to stop it doing this?
Also, apart from my coding being rubbish and causing lots of errors, does
anyone know of any reason why an error log file would grow to such a huge
size? The page has onle been accessed a few times and I can't think of any
way a single page could create 1Mb of error text on each hit.

LJ





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Comment About-> [PHP] TEST---Please Ignore

2001-12-31 Thread [EMAIL PROTECTED]



While I understand your frustration, and agree with your pre-judgement, I
fail to understand why you would read, let along complain about,
something that clearly says

"PLEASE IGNORE".

It's like touching a wall that's marked "Wet Paint", then complain when
your hands get dirty. This is something that could, and should have
been avoided. The time you took reading, and replying to, this message
could've been spent on something else.


I've been subscribed to this list for over two years, and never have I
done anything that (I thought) would be abusive to other users.
I hardly think three test messages, over a period of two+ years, is
abusive. It's apparent that I was having issues with the lists.
I resolved to that method (of testing), because I felt it was necessary.

I knew it would be a little unneasy, and that's why I
specifically asked users to 'ignore' the message. Your frustration
could've been avoided by simply following instructions.


Nevertheless,

I do apologize for the trouble this test caused (if any). I know it wasn't
the most convenient method, but it was a matter of bad solution vs worst
solution. I've done everything (including unsubscribe/re-subscribe, and
use ezlm command queries) before sending that test message.



FYI
(for those who care)
I recently started having problems with the list. I was receiving
messages, but could not send them.

When I checked the ezlm admin commands ([EMAIL PROTECTED]),
it said my address was NOT subscribed.
Long story short...my server admin changed the server name (added an extra
name to the domain), so the list saw the new name as a new address. Old
addresses were translated here (on my server), but not in the list.

-john



On Mon, 31 Dec 2001, Kris wrote:

> John wrote:
> >
> > =Testing=
> > Having trouble sending mail...
> > =Testing=
> >
> > Please ignore.
>
> I *really* want to hurl abuse at you for using a public mailing list to
> send test messages to.
>
> You've sent THREE test messages to the mailing list now, each of which
> was sent to THOUSAND AND THOUSANDS of different people. Sure, it might
> be convenient to you, but use a bit of common sense.
>
> Now please, just quit it with the test messages. I'd be surprised if you
> weren't removed from the PHP mailing list - indeed, I would
> whole-heartedly support that. Don't be so selfish in the future, and
> think about the consequences of your actions.
>
>
>
> --
> Kris | [EMAIL PROTECTED] | ICQ: 10537480
> AIM: katticist | MSN: [EMAIL PROTECTED] | YIM: k_j_clarke
> PGP: http://home.clara.net/kjclarke/pgpkeys.txt
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Testing: DON'T Ignore This Message

2001-12-31 Thread B. van Ouwerkerk


>I agree.  It's a pain to have to click "Reply-to-all" and then strip out 
>the individuals email address (leaving only the address of the 
>list)...other lists that I'm on have the reply-to always pointing back to 
>the list so all you have to do is click "Reply" and you know it will go 
>where it needs to...

u.. I can give you one good reason.. Out Of the Office replies 
don't get to the list.. M$ Lookout is specilized in bombing lists with 
those stupid messages. Seems a complete list with reasons why you shouldn't 
set reply to to the list.. can be found on the web..

Bye,



B.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Re: Need some Linux/Apache help

2001-12-31 Thread Todd Cary

Brian et al -

How do I redirect the output *if* the output is errors?  For example

# make > /home/todd/makeerr.txt

I am getting an error when I run "make" after configuring with
"--with-apxs".  The configure runs fine; it is just the make and I have
noticed that with the above redirect, everything goes to the file
*except* the errors.

Todd

--
Todd Cary
Ariste Software
[EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Re: Need some Linux/Apache help

2001-12-31 Thread Brian Clark

* Todd Cary ([EMAIL PROTECTED]) [Dec 31. 2001 18:59]:

> How do I redirect the output *if* the output is errors?  For example

> # make > /home/todd/makeerr.txt

Try this:

make 2> /home/todd/makeerr.txt


> I am getting an error when I run "make" after configuring with
> "--with-apxs".  The configure runs fine; it is just the make and I have
> noticed that with the above redirect, everything goes to the file
> *except* the errors.

-- 
Brian Clark | Avoiding the general public since 1805!
Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB E4D0 C7C8
f y cn rd ths thn y cn hv grt jb n cmptr prgrmmng


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Re: Need some Linux/Apache help

2001-12-31 Thread Brian Clark

* Brian Clark ([EMAIL PROTECTED]) [Dec 31. 2001 19:05]:

> > How do I redirect the output *if* the output is errors?  For example

> > # make > /home/todd/makeerr.txt

> Try this:

> make 2> /home/todd/makeerr.txt

Oh, and if you want it *all* to go to that file:

make 2>&1 /home/todd/makeerr.txt

You can also use grep or egrep to search for specific things if you
want.

-- 
Brian Clark | Avoiding the general public since 1805!
Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB E4D0 C7C8
Life is like a diaper -- short and loaded.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Re: Need some Linux/Apache help

2001-12-31 Thread Brian Clark

* Brian Clark ([EMAIL PROTECTED]) [Dec 31. 2001 19:09]:

> make 2>&1 /home/todd/makeerr.txt

Gah! I need to just go watch TV or something.

I meant:

make 2>&1 > /home/todd/makeerr.txt

That directs STDERR to STDOUT and that's redirected to  
/home/todd/makeerr.txt

Sorry for the list bomb.

-- 
Brian Clark | Avoiding the general public since 1805!
Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB E4D0 C7C8
Cole's Law: Thinly sliced cabbage.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: Getting elapsed time between two MySQL time fields

2001-12-31 Thread George Nicolae



--


Best regards,
George Nicolae
IT Manager
___
X-Playin - Professional Web Design
www.x-playin.f2s.com



"Tom Beidler" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I have some records in a MySQL database that store a start and stop time.
In
> my display page that displays the record info I would like to use PHP to
> find the elapsed time between the two fields. So if I had;
>
> Start 13:44:20
> Stop 13:49:25
>
> Possibly use a function to calculate
> Elapsed 5:05
>
> Do I need to do this in MySQL?
>
> Thanks,
> Tom



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] XML Parsing Problem

2001-12-31 Thread Ben Gollmer

Hi all -

I'm experimenting with PHP's XML parser for an application that maps XML 
tags to MySQL database fields.

As a test for my parsing program, I've been grabbing XML from the 
Slashdot news feed (http://www.slashdot.org/slashdot.xml) and inserting 
it into a database. This is very simple data - blah gets 
inserted into the 'title' field, etc. However, when there are some 
strange characters in the title field, the XML parser seems to choke.

Here is an example. The title of a recent article from Slashdot looks 
like this in the XML file:

Follow-up To Critique of BeOS & Mac OS X

Don't ask my why they have a double ampersand in there... Anyway, the 
XML parser returns this as three sets of data, instead of one. The array 
that I get looks like this:

$myArray[0] = "Follow-up To Critique of BeOS "
$myArray[1] = "&"
$myArray[2] = "amp; Mac OS X"

This is the data I get back from the parser, BEFORE putting it into the 
database. I'm echoing each array field to the screen, just to make sure. 
So I know it has nothing to do with MySQL. The double ampersand 
shouldn't make a difference - the XML parser should not be interpreting 
HTML...right? Also, I don't get an error code or error string from 
xml_parse().

Anyone have any ideas? This is a subtle bug - in fact I had been 
satisfied with my XML parsing code, and was well into the rest of my 
application when I happened to notice this.

Ben


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Happy new year!

2001-12-31 Thread George Nicolae

A happy new year with a lot of dynamic sites to all php community!

--


Best regards,
George Nicolae
IT Manager
___
X-Playin - Professional Web Design
www.x-playin.f2s.com






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Testing: DON'T Ignore This Message

2001-12-31 Thread Michael Sims

At 11:45 PM 12/31/2001 +0100, B. van Ouwerkerk wrote:
>u.. I can give you one good reason.. Out Of the Office replies 
>don't get to the list.. M$ Lookout is specilized in bombing lists with 
>those stupid messages. Seems a complete list with reasons why you 
>shouldn't set reply to to the list.. can be found on the web..

Ahhh, good point.  But I believe that most mail programs (including 
Lookout) will only auto-respond to messages where the owners address is the 
only one in the "TO:" field.  (Someone correct me if they know better...I'm 
on Eudora here...)  Since messages from the mailing list are send TO: 
"[EMAIL PROTECTED]" then the autoresponders should ignore 
them.  This would be consistent with the fact that I've posted a few 
messages to this list over the past few weeks, messages that must have been 
delivered to at least hundreds of mailboxes with my address as the 
reply-to, yet I haven't received a single automatic out-of-office or 
vacation response to any of them...


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: Happy new year!

2001-12-31 Thread Arcadius A.

Thanks ! :-)


--
 ---
 Student Arcadius Ahouansou
  ICQ# : 37119073
  http://arcadnet.net/

"George Nicolae" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> A happy new year with a lot of dynamic sites to all php community!
>
> --
>
>
> Best regards,
> George Nicolae
> IT Manager
> ___
> X-Playin - Professional Web Design
> www.x-playin.f2s.com
>
>
>
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] What the hell?!?!

2001-12-31 Thread Michael Sims

At 10:10 PM 12/31/2001 +, LaserJetter wrote:
>Also, apart from my coding being rubbish and causing lots of errors, does
>anyone know of any reason why an error log file would grow to such a huge
>size?

Why don't you actually look at the error log and see what it contains?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Happy new year!

2001-12-31 Thread Miles Thompson


A DYNAMIC, Happy, New Year.

PHP is great. Through it, and Linux, I've had a very interesting two years of 
programming and
my career seems to be bending away from desktop apps and towards net-oriented ones.

Regards to alll - Miles Thompson

On Monday 31 December 2001 08:20 pm, George Nicolae wrote:
> A happy new year with a lot of dynamic sites to all php community!

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]