[PHP] Email harvesters

2002-05-20 Thread Richard Baskett

I wrote this email to the php Archive list and I would like to get your
opinions on it.. Thanks! :)

"Is there any way that we could get the archives password protected?  Apple
does a nice thing where they tell you the username and password to login and
the whole purpose of it is so that email harvesters can not go through and..
Well.. Harvest our emails from the list :)  I think a lot of people would
not mind having something like this added to the pages since my guess is
that we're all sick and tired of spam and junkmail and eliminating one
possible garden for harvesters would be nice :)  I am going to email this to
the list also to see what kind of feedback comes from it."

Rick

"How wonderful it is that nobody need wait a single moment to improve the
world." - Anne Frank


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




RE: [PHP] Bulletin Boards

2002-05-20 Thread Brian McGarvie

phpbb2 has improved alot since the earlier versions

> -Original Message-
> From: Jeff Lewis [mailto:[EMAIL PROTECTED]]
> Sent: 18 May 2002 3:02 PM
> To: Richard Baskett; PHP General
> Subject: Re: [PHP] Bulletin Boards
> 
> 
> Never used Phorums as it didn't have what I was looking for.  
> Tried phpBB
> but the admins ection is awful IMHO.  I currently use YaBB SE 
> which has a
> very fast development time.
> 
> Jeff
> - Original Message -
> From: "Richard Baskett" <[EMAIL PROTECTED]>
> To: "PHP General" <[EMAIL PROTECTED]>
> Sent: Saturday, May 18, 2002 4:51 AM
> Subject: [PHP] Bulletin Boards
> 
> 
> > Has anybody used phpBB && Phorum?  And if so, which did you 
> like better
> and
> > why?  And if you've used other systems.. Which did you like 
> best and why?
> > Thanks! :)
> >
> > Rick
> >
> > "We should be taught not to wait for inspiration to start a 
> thing.  Action
> > always generates inspiration.  Inspiration seldom generates 
> action." -
> Frank
> > Tibolt
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> >
> >
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

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




RE: [PHP] how to select a file on a random basis?

2002-05-20 Thread Craig Vincent

> I would like to pick a file out of a directory by random. There are 400
> files and I just want to pick on of those by random.
>
> Is there a way with rand() and file ?

Well there's a couple ways you could do this...it's too early in the morning
to post code but with some quick searches in the manual you should find all
you need.

The most dynamic way to do this is to grab all the filenames in the
directory you want, then randomize the array using shufflethen use the
first cell value in the array.

If you don't understand what I'm suggesting just lmk =)  I'll try explaining
in better detail when I'm more awake hehe.

Sincerely,

Craig Vincent



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




Re: [PHP] Email harvesters

2002-05-20 Thread Jason Wong

On Monday 20 May 2002 15:46, Richard Baskett wrote:
> I wrote this email to the php Archive list and I would like to get your
> opinions on it.. Thanks! :)
>
> "Is there any way that we could get the archives password protected?  Apple
> does a nice thing where they tell you the username and password to login
> and the whole purpose of it is so that email harvesters can not go through
> and.. Well.. Harvest our emails from the list :)  I think a lot of people
> would not mind having something like this added to the pages since my guess
> is that we're all sick and tired of spam and junkmail and eliminating one
> possible garden for harvesters would be nice :)  I am going to email this
> to the list also to see what kind of feedback comes from it."

If they're password protected then how would search engines like google crawl 
through the archives? The best thing that could be done is hide (remove) the 
email addresses when the posts are placed in the archive -- something like 
what geocrawler does.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
Green's Law of Debate:
Anything is possible if you don't know what you're talking about.
*/


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




Re: [PHP] Email harvesters

2002-05-20 Thread Richard Baskett

No Im not saying you do anything about it at all :)  I have already emailed
one of the lists about doing this and after some discussion here if more
people agree with me and would like to see some precautions taken then it
gives my emails a little weight to the webmasters of these archive lists.
Plus if others feel strongly about it they don¹t have to just voice their
opinion they could also email the lists.

So no worries Rasmus, it's just a poll of sorts.  Also something to help
people become more aware of email harvesters and to do something about it to
protect their email addresses when using these mailing lists.

Cheers!

Rick

"There is no such thing as a sudden heart-attack. It takes years of
preparation." - Unknown

> From: Rasmus Lerdorf <[EMAIL PROTECTED]>
> Date: Mon, 20 May 2002 01:14:03 -0700 (PDT)
> To: Richard Baskett <[EMAIL PROTECTED]>
> Cc: PHP General <[EMAIL PROTECTED]>
> Subject: Re: [PHP] Email harvesters
> 
> If there was just one archive of this list and we controlled it, then this
> would be ok.  But the fact is that there are dozens, and we don't control
> any of them.  So I don't see how this could be done.
> 
> -Rasmus
> 
> On Mon, 20 May 2002, Richard Baskett wrote:
> 
>> I wrote this email to the php Archive list and I would like to get your
>> opinions on it.. Thanks! :)
>> 
>> "Is there any way that we could get the archives password protected?  Apple
>> does a nice thing where they tell you the username and password to login and
>> the whole purpose of it is so that email harvesters can not go through and..
>> Well.. Harvest our emails from the list :)  I think a lot of people would
>> not mind having something like this added to the pages since my guess is
>> that we're all sick and tired of spam and junkmail and eliminating one
>> possible garden for harvesters would be nice :)  I am going to email this to
>> the list also to see what kind of feedback comes from it."
>> 
>> Rick
>> 
>> "How wonderful it is that nobody need wait a single moment to improve the
>> world." - Anne Frank
>> 
>> 
>> --
>> 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] multiply by 2

2002-05-20 Thread Jason Wong

On Monday 20 May 2002 12:03, Martin Towell wrote:
> I was doing some timing of a function on the weekend and in one of the
> loops, I had to multiply a variable by 2 - easy enough - $i*2
>
> but then I remembered that in C, it's quicker to do a left shift - so $i<<1
>
> but this actually took longer to execute in php than the $i*2 - can anyone
> confirm my test? I iterated ~28,000 times. Each time, there was 2 places
> where I was doing the left shift. The time (including all the other stuff I
> was doing in the function) for $i*2 was ~12secs, and $i<<1 was ~19secs.
>
> I am running PHP4.0.6 (download cgi version from php.net) on a win98 system
> (500MHz Celeron if that changes anything)

My tests don't show much difference, shifting is slightly faster.



Results
===

[jason@x27 jason]$ php -q doo.php
7.4377170801163
7.2966409921646
[jason@x27 jason]$ php -q doo.php
7.4303779602051
7.2926670312881


-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
When in doubt, tell the truth.
-- Mark Twain
*/


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




Re: [PHP] Email harvesters

2002-05-20 Thread Richard Baskett

That's an even better idea, precisely why I wanted to ask your opinions on
this subject.  Thanks.. I think I will wait to re-email that archive list
until I have a lot of great ideas we could combine to get one great idea.
Thanks a lot for your input!

Rick

"A good head and good heart are always a formidable combination. But when
you add to that a literate tongue or pen, then you have something very
special" - Nelson Mandela

> From: Jason Wong <[EMAIL PROTECTED]>
> Organization: Gremlins Associates
> Reply-To: [EMAIL PROTECTED]
> Date: Mon, 20 May 2002 16:26:38 +0800
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] Email harvesters
> 
> On Monday 20 May 2002 15:46, Richard Baskett wrote:
>> I wrote this email to the php Archive list and I would like to get your
>> opinions on it.. Thanks! :)
>> 
>> "Is there any way that we could get the archives password protected?  Apple
>> does a nice thing where they tell you the username and password to login
>> and the whole purpose of it is so that email harvesters can not go through
>> and.. Well.. Harvest our emails from the list :)  I think a lot of people
>> would not mind having something like this added to the pages since my guess
>> is that we're all sick and tired of spam and junkmail and eliminating one
>> possible garden for harvesters would be nice :)  I am going to email this
>> to the list also to see what kind of feedback comes from it."
> 
> If they're password protected then how would search engines like google crawl
> through the archives? The best thing that could be done is hide (remove) the
> email addresses when the posts are placed in the archive -- something like
> what geocrawler does.
> 
> -- 
> Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
> Open Source Software Systems Integrators
> * Web Design & Hosting * Internet & Intranet Applications Development *
> 
> /*
> Green's Law of Debate:
> Anything is possible if you don't know what you're talking about.
> */
> 
> 
> -- 
> 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] Email harvesters

2002-05-20 Thread Miguel Cruz

If you're concerned and don't have effective anti-spam filtering on your 
email box, I'd suggest coming up with a second address to use for "public" 
purposes such as this. 

The list shows up all over the place. For instance, Google groups picks it
up off the news.php.net server, and you're surely not going to convince
them to hide email addresses.

miguel

On Mon, 20 May 2002, Richard Baskett wrote:
> No Im not saying you do anything about it at all :)  I have already emailed
> one of the lists about doing this and after some discussion here if more
> people agree with me and would like to see some precautions taken then it
> gives my emails a little weight to the webmasters of these archive lists.
> Plus if others feel strongly about it they don¹t have to just voice their
> opinion they could also email the lists.
> 
> So no worries Rasmus, it's just a poll of sorts.  Also something to help
> people become more aware of email harvesters and to do something about it to
> protect their email addresses when using these mailing lists.
> 
> Cheers!
> 
> Rick
> 
> "There is no such thing as a sudden heart-attack. It takes years of
> preparation." - Unknown
> 
> > From: Rasmus Lerdorf <[EMAIL PROTECTED]>
> > Date: Mon, 20 May 2002 01:14:03 -0700 (PDT)
> > To: Richard Baskett <[EMAIL PROTECTED]>
> > Cc: PHP General <[EMAIL PROTECTED]>
> > Subject: Re: [PHP] Email harvesters
> > 
> > If there was just one archive of this list and we controlled it, then this
> > would be ok.  But the fact is that there are dozens, and we don't control
> > any of them.  So I don't see how this could be done.
> > 
> > -Rasmus
> > 
> > On Mon, 20 May 2002, Richard Baskett wrote:
> > 
> >> I wrote this email to the php Archive list and I would like to get your
> >> opinions on it.. Thanks! :)
> >> 
> >> "Is there any way that we could get the archives password protected?  Apple
> >> does a nice thing where they tell you the username and password to login and
> >> the whole purpose of it is so that email harvesters can not go through and..
> >> Well.. Harvest our emails from the list :)  I think a lot of people would
> >> not mind having something like this added to the pages since my guess is
> >> that we're all sick and tired of spam and junkmail and eliminating one
> >> possible garden for harvesters would be nice :)  I am going to email this to
> >> the list also to see what kind of feedback comes from it."
> >> 
> >> Rick
> >> 
> >> "How wonderful it is that nobody need wait a single moment to improve the
> >> world." - Anne Frank
> >> 
> >> 
> >> --
> >> PHP General Mailing List (http://www.php.net/)
> >> To unsubscribe, visit: http://www.php.net/unsub.php
> >> 
> > 
> > 
> > 
> 
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 


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




[PHP] gmdate

2002-05-20 Thread SP

I am using gmdate to get the GMT timezone and it's
working but how does it know what timezone my
server is to make the time adjustment?  



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system
(http://www.grisoft.com).
Version: 6.0.361 / Virus Database: 199 - Release
Date: 07/05/02
 



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


Re: [PHP] how to select a file on a random basis?

2002-05-20 Thread The_RadiX

Ok well that array idea could work..


but what's the filename format of these files??

if they're all contigous or in some kind of pattern there maybe a faster and
easier way such as if you have them for example named:
file1.ext, file2.ext

or some pattern or other.. then you can just use random number func's to do
some work with you and all should be good..


:::
:  Julien Bonastre [The-Spectrum.org CEO]
:  A.K.A. The_RadiX
:  [EMAIL PROTECTED]
:  ABN: 64 235 749 494
:  QUT Student #: 04475739
:::
- Original Message -
From: "Craig Vincent" <[EMAIL PROTECTED]>
To: "Andy" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, May 20, 2002 6:18 PM
Subject: RE: [PHP] how to select a file on a random basis?


> > I would like to pick a file out of a directory by random. There are 400
> > files and I just want to pick on of those by random.
> >
> > Is there a way with rand() and file ?
>
> Well there's a couple ways you could do this...it's too early in the
morning
> to post code but with some quick searches in the manual you should find
all
> you need.
>
> The most dynamic way to do this is to grab all the filenames in the
> directory you want, then randomize the array using shufflethen use the
> first cell value in the array.
>
> If you don't understand what I'm suggesting just lmk =)  I'll try
explaining
> in better detail when I'm more awake hehe.
>
> Sincerely,
>
> Craig Vincent
>
>
>
> --
> 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] dtcm interface?

2002-05-20 Thread Billy S Halsey

Hi all,

Just curious whether anyone knows where I can find a class or other 
interface to the dtcm calendar manager that is a part of CDE on Solaris, 
AIX, etc. Unfortunately, it would seem that dtcm doesn't support RFC 
standards, so I don't think I can use mcal or anything like that to 
interface with it. (If I'm wrong, please let me know!)

Thanks in advance for your help.

/bsh/

-- 


/-=[ BILLY S HALSEY ]=--\
| Member of Technical Staff, Sun Microsystems, Inc. ESP Solaris SW  |
| "All opinions and technical advice offered in this message are my |
| own and not necessarily endorsed by my employer." |
\--=[ [EMAIL PROTECTED] ]=/


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




[PHP] Problem with mktime()

2002-05-20 Thread Johannes Tyra [BrainData]

Hi,

I want to read out the asterisk from a birthdate.

First off all I need the timestamp:

$startDate['Steinbock'] = mktime (0, 0, 0, 12, 22,
1999);
$startDate['Wassermann']= mktime (0, 0, 0, 01, 21,
2000);
$startDate['Fisch'] = mktime (0, 0, 0, 02, 21,
2000);
$startDate['Widder']= mktime (0, 0, 0, 03, 21,
2000);
$startDate['Stier'] = mktime (0, 0, 0, 04, 21,
2000);
$startDate['Zwilling']  = mktime (0, 0, 0, 05, 21,
2000);
$startDate['Krebs'] = mktime (0, 0, 0, 06, 22,
2000);
$startDate['Löwe']  = mktime (0, 0, 0, 07, 23,
2000);
$startDate['Jungfrau']  = mktime (0, 0, 0, 08, 24,
2000);
$startDate['Waage'] = mktime (0, 0, 0, 09, 24,
2000);
$startDate['Skorpion']  = mktime (0, 0, 0, 10, 24,
2000);
$startDate['Schütze']   = mktime (0, 0, 0, 11, 23,
2000);
$startDate['Steinbock2']= mktime (0, 0, 0, 12, 22,
2000);

but with 'Jungfrau' AND 'Waage' something is wrong!!

if I want to debug this lines with:

echo date("m - Y",$startDate['Steinbock'])."";
echo date("m - Y",$startDate['Wassermann'])."";
echo date("m - Y",$startDate['Fisch'])."";
echo date("m - Y",$startDate['Widder'])."";
echo date("m - Y",$startDate['Stier'])."";
echo date("m - Y",$startDate['Zwilling'])."";
echo date("m - Y",$startDate['Krebs'])."";
echo date("m - Y",$startDate['Löwe'])."";
echo date("m - Y",$startDate['Jungfrau'])."";
echo date("m - Y",$startDate['Waage'])."";
echo date("m - Y",$startDate['Skorpion'])."";
echo date("m - Y",$startDate['Schütze'])."";
echo date("m - Y",$startDate['Steinbock2'])."";

to read out the month and year of the asterisks PHP returns:

12 - 1999
01 - 2000
02 - 2000
03 - 2000
04 - 2000
05 - 2000
06 - 2000
07 - 2000
12 - 1999  error
12 - 1999  error
10 - 2000
11 - 2000
12 - 2000

all other asterisks are ok...

Does anyone know how to fix it??
Or is it a bug??
Anyone knows a better idea to get the asterisk from a given date???

Thanx...

-- 
Mit freundlichem Gruß,
Johannes Tyra


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




php-general Digest 20 May 2002 15:44:01 -0000 Issue 1356

2002-05-20 Thread php-general-digest-help


php-general Digest 20 May 2002 15:44:01 - Issue 1356

Topics (messages 98411 through 98444):

Running php program when mail received
98411 by: CDitty
98414 by: Manuel Lemos
98415 by: CDitty

Re: Arrays and Forms
98412 by: Jason Wong
98421 by: Miguel Cruz

multiply by 2
98413 by: Martin Towell
98438 by: Jason Wong

Variable won't work in function, even when I global it?
98416 by: Leif K-Brooks
98418 by: Miguel Cruz
98419 by: Martin Towell
98420 by: Leif K-Brooks
98423 by: Leif K-Brooks
98424 by: Miguel Cruz
98426 by: Leif K-Brooks
98427 by: Miguel Cruz
98428 by: Leif K-Brooks
98429 by: Miguel Cruz
98430 by: Miguel Cruz
98431 by: Paul Roberts

Re: MSIE & GZIP problem?
98417 by: Miguel Cruz

Re: Can someone check this mysql code
98422 by: Miguel Cruz
98425 by: Balaji Ankem

how to select a file on a random basis?
98432 by: Andy
98435 by: Craig Vincent
98442 by: The_RadiX

Email harvesters
98433 by: Richard Baskett
98436 by: Jason Wong
98437 by: Richard Baskett
98439 by: Richard Baskett
98440 by: Miguel Cruz

Re: Bulletin Boards
98434 by: Brian McGarvie

gmdate
98441 by: SP

dtcm interface?
98443 by: Billy S Halsey

Problem with mktime()
98444 by: Johannes Tyra [BrainData]

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

Hello all.  I am trying to write a small program that will run everytime an 
email is received at a certain mailbox on my sever.  I had this running at 
one time, but for some reason, it will not run.  I am not getting any 
errors and I can't figure out what is going on.  Below is the code that I 
am trying to run.

#!/usr/bin/php -q
### CHANGE VALUES OF THE FOLLOWING VARIABLES ###

$to = "[EMAIL PROTECTED]";
$subj = "message";
$hdrs = "From: [EMAIL PROTECTED]\n";
$msg = "This is going out";

mail($to, $subj, $msg, $hdrs);

This is what is returned in the maillog file.
May 19 22:29:07 server1 sendmail[3502]: WAA03501: 
to="|/path/to/file/imap.php", delay=00:00:00, xdelay=00:00:00, mailer=prog, 
stat=Sent

Can anyone point me in the right direction?  The script has been chmod 755.


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

On 05/20/2002 12:38 AM, Cditty wrote:
> Hello all.  I am trying to write a small program that will run everytime 
> an email is received at a certain mailbox on my sever.  I had this 
> running at one time, but for some reason, it will not run.  I am not 
> getting any errors and I can't figure out what is going on.  Below is 
> the code that I am trying to run.
> 
> #!/usr/bin/php -q
> ### CHANGE VALUES OF THE FOLLOWING VARIABLES ###
> 
> $to = "[EMAIL PROTECTED]";
> $subj = "message";
> $hdrs = "From: [EMAIL PROTECTED]\n";
> $msg = "This is going out";
> 
> mail($to, $subj, $msg, $hdrs);
> 
> This is what is returned in the maillog file.
> May 19 22:29:07 server1 sendmail[3502]: WAA03501: 
> to="|/path/to/file/imap.php", delay=00:00:00, xdelay=00:00:00, 
> mailer=prog, stat=Sent
> 
> Can anyone point me in the right direction?  The script has been chmod 755.
> 

What happens when you do /usr/bin/php -q /path/to/file/imap.php ?

-- 

Regards,
Manuel Lemos


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

I get this error and the program code outputted to the screen.

Failed loading 
/usr/local/Zend/lib/ZendOptimiser.so: 
/usr/local/Zend/lib/ZendOptimiser.so: cannot open shared object file: No 
such file or directory

I just looked in that directory and there is a ZendOptimizer.so file.  I 
copied it to ZendOptimiser.so and ran it again.  No error, but still 
getting the code output.

Chris

At 11:17 PM 5/19/2002, you wrote:
>On 05/20/2002 12:38 AM, Cditty wrote:
>>Hello all.  I am trying to write a small program that will run everytime 
>>an email is received at a certain mailbox on my sever.  I had this 
>>running at one time, but for some reason, it will not run.  I am not 
>>getting any errors and I can't figure out what is going on.  Below is the 
>>code that I am trying to run.
>>#!/usr/bin/php -q
>>### CHANGE VALUES OF THE FOLLOWING VARIABLES ###
>>$to = "[EMAIL PROTECTED]";
>>$subj = "message";
>>$hdrs = "From: [EMAIL PROTECTED]\n";
>>$msg = "This is going out";
>>mail($to, $subj, $msg, $hdrs);
>>This is what is returned in the maillog file.
>>May 19 22:29:07 server1 sendmail[3502]: WAA03501: 
>>to="|/path/to/file/imap.php", delay=00:00:00, xdelay=00:00:00, 
>>mailer=prog, stat=Sent
>>Can anyone point me in the right direction?  The script has been chmod 755.
>
>What happens when you do /usr/bin/php -q /path/to/file/imap.php ?
>
>--
>
>Regards,
>Manuel 

Re: [PHP] Email harvesters

2002-05-20 Thread Leif K-Brooks

I think it would be a good idea to have whatever software sends list 
messages to the newsgroup block out the addresses.

Miguel Cruz wrote:

>If you're concerned and don't have effective anti-spam filtering on your 
>email box, I'd suggest coming up with a second address to use for "public" 
>purposes such as this. 
>
>The list shows up all over the place. For instance, Google groups picks it
>up off the news.php.net server, and you're surely not going to convince
>them to hide email addresses.
>
>miguel
>
>



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




RE: [PHP] refresh (part of) a page?

2002-05-20 Thread savaidis

I look and I search everything, it looks I'm reaching to a wall :)
I used Netscape, I uploaded to my internet server, still the same.
Plus, I cannot find "header already send" at manual.

The error message is :
Warning: Cannot add header information - headers already sent by (output
started at /mpla-mpla/main.php:41) in /mpla-mpla /main.php on line 83

Note that I use "header()" without problem on another php script on the same
server.(to redirect from a "parcked" domain)

Someone could help?

Thanks

Makis

> -Original Message-
> From: Jason Wong [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, May 19, 2002 3:35 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] refresh (part of) a page?
>
>
> On Sunday 19 May 2002 18:03, savaidis wrote:
> > I want to refrech a part of my page (or the whole page) using PHP.
> > Periodically, using a time delay.
> > Should I use frames?
>
> You cannot refresh part of a page without resending the whole
> page. You can
> use frames.
>
> > Also I tried to use "header (...)" calling the same page with different
> > name (and then back to the same page) but I got the warning:
> > "header already send".
>
> *Read* the manual and see what it says about header() and "header already
> send".
>
> --
> Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
> Open Source Software Systems Integrators
> * Web Design & Hosting * Internet & Intranet Applications Development *
>
> /*
> A great many people think they are thinking when they are merely
> rearranging their prejudices.
>   -- William James
> */
>
>
> --
> 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] gmdate question

2002-05-20 Thread SP

I am using gmdate to get the GMT timezone and it's
working but how does it know what timezone my
server is to make the time adjustment?  Where's
the setting for this?

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system
(http://www.grisoft.com).
Version: 6.0.361 / Virus Database: 199 - Release
Date: 07/05/02
 



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


[PHP] test

2002-05-20 Thread SP


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system
(http://www.grisoft.com).
Version: 6.0.361 / Virus Database: 199 - Release
Date: 07/05/02




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


[PHP] undefined function: sybase_pconnect()

2002-05-20 Thread Vivek Kumar Agrawal

Hi All,

I am getting some error like this:
"Fatal error: Call to undefined function: sybase_pconnect() in 
/home/httpd/php/db_sybase.inc on line 47"

Please tell me its solution.

Regards,
Vivek




[PHP] Re: Email harvesters

2002-05-20 Thread Manuel Lemos

Hello,

On 05/20/2002 04:46 AM, Richard Baskett wrote:
> I wrote this email to the php Archive list and I would like to get your
> opinions on it.. Thanks! :)
> 
> "Is there any way that we could get the archives password protected?  Apple
> does a nice thing where they tell you the username and password to login and
> the whole purpose of it is so that email harvesters can not go through and..
> Well.. Harvest our emails from the list :)  I think a lot of people would
> not mind having something like this added to the pages since my guess is
> that we're all sick and tired of spam and junkmail and eliminating one
> possible garden for harvesters would be nice :)  I am going to email this to
> the list also to see what kind of feedback comes from it."

I use anti-email harvesting techniques in my sites but that works 
because in HTML you can do more things than with plain text. The problem 
is that these lists are stored in text. So, only when you display the 
lists in HTML pages the protection has any effect.

If is that what you mean, I can explain what I do.



-- 

Regards,
Manuel Lemos


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




RE: [PHP] Re: Using PHP for NULLs

2002-05-20 Thread Jay Blanchard

[snip]
I do believe it is a MySql question!!

What's wrong with the old standard way as:

$result = mysql_query("
SELECT *,
if (last_name is NULL,'zzz end',last_name) as last_name_sort
FROM   new_miatapix
ORDER BY last_name_sort
LIMIT $page, 20");

$result = mysql_query("SELECT * FROM new_miatapix ORDER
BY last_name LIMIT $page, 20");
[/snip]

And then there is the very old standard;

SELECT *
FROM new_miatapix
ORDER BY last_name DESC
LIMIT $page 20

HTH!

Jay


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




Re: [PHP] Re: Running php program when mail received

2002-05-20 Thread Manuel Lemos

Hello,

On 05/20/2002 01:42 AM, CDitty wrote:
> I get this error and the program code outputted to the screen.
> 
> Failed loading /usr/local/Zend/lib/ZendOptimiser.so: 
> /usr/local/Zend/lib/ZendOptimiser.so: cannot open shared object file: No 
> such file or directory
> 
> I just looked in that directory and there is a ZendOptimizer.so file.  I 
> copied it to ZendOptimiser.so and ran it again.  No error, but still 
> getting the code output.

I think the script runs ok but the actual  message that is sent from the 
script is not accepted or gets stuck somewhere.

PHP mail() implementation s*cks in many ways because you do not get much 
feedback from it to sort out any errors.

If you don't see anything else in the logs, maybe you need to use some 
SMTP sending client PHP component where you can see the dialog with the 
server to figure why it is probably being rejected or otherwise not 
delivered.

Regards,
Manuel Lemos


> At 11:17 PM 5/19/2002, you wrote:
> 
>> On 05/20/2002 12:38 AM, Cditty wrote:
>>
>>> Hello all.  I am trying to write a small program that will run 
>>> everytime an email is received at a certain mailbox on my sever.  I 
>>> had this running at one time, but for some reason, it will not run.  
>>> I am not getting any errors and I can't figure out what is going on.  
>>> Below is the code that I am trying to run.
>>> #!/usr/bin/php -q
>>> ### CHANGE VALUES OF THE FOLLOWING VARIABLES ###
>>> $to = "[EMAIL PROTECTED]";
>>> $subj = "message";
>>> $hdrs = "From: [EMAIL PROTECTED]\n";
>>> $msg = "This is going out";
>>> mail($to, $subj, $msg, $hdrs);
>>> This is what is returned in the maillog file.
>>> May 19 22:29:07 server1 sendmail[3502]: WAA03501: 
>>> to="|/path/to/file/imap.php", delay=00:00:00, xdelay=00:00:00, 
>>> mailer=prog, stat=Sent
>>> Can anyone point me in the right direction?  The script has been 
>>> chmod 755.
>>
>>
>> What happens when you do /usr/bin/php -q /path/to/file/imap.php ?


-- 

Regards,
Manuel Lemos


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




Re: [PHP] Re: Running php program when mail received

2002-05-20 Thread Manuel Lemos

Hello,

On 05/20/2002 09:00 AM, CDitty wrote:
> When I run /usr/bin/php -q /path/to/file/imap.php, is it supposed to run 
> the program or output the actual program code to the screen?  When I run 
> it, it is showing the actual program code, not the program output.

Oh, of course, silly me that did not notice that you did not enclose 
your script code between  like ALL PHP scripts! :-)



-- 

Regards,
Manuel Lemos


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




[PHP] timezone problem

2002-05-20 Thread SP

I am trying to convert date/times to different
timezones using putenv but I am having problems
using the right TZ names.  I am trying the zones I
found here
http://fuck.org/~ryan/squirrel/timezone/timezones.
php but it seems the only ones that work are
EST5EDT, CST6CDT, MST7MDT, PST8PDT and GMT.

OUTPUT
===

May 20 2002 10:46 am Eastern Standard Time
May 20 2002 3:46 pm Ame
May 20 2002 3:46 pm Ame
May 20 2002 10:46 am EST
May 20 2002 2:46 pm GMT
May 20 2002 3:46 pm Eur
May 20 2002 3:46 pm Asi

CODE
=

echo date("F j Y g:i a T"), "";

putenv("TZ=America/Los_Angeles");
echo date("F j Y g:i a T"), "";

putenv("TZ=America/New_York");
echo date("F j Y g:i a T"), "";

putenv("TZ=EST5EDT");
echo date("F j Y g:i a T"), "";

putenv("TZ=GMT");
echo date("F j Y g:i a T"), "";

putenv("TZ=Europe/Paris");
echo date("F j Y g:i a T"), "";

putenv("TZ=Asia/Hong_Kong");
echo date("F j Y g:i a T"), "";



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system
(http://www.grisoft.com).
Version: 6.0.361 / Virus Database: 199 - Release
Date: 07/05/02
 



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


Re: [PHP] multiply by 2

2002-05-20 Thread Bogdan Stancescu

Just for confirmation:

Linux Mandrake 8.1, PHP 4.0.6, PIII 600MHz, using Jason's code:

- Original code via HTTP:
1st attempt
3.4497429132462
3.1789749860764
[7.85% faster with bit op's]

2nd attempt (reload)
3.3336659669876
3.1573359966278
[5.29% faster with bit op's]

- Original code from the command line:
[bogdan@localhost bogdan]$ php -q ../httpd/mul.php
3.2482839822769
3.1069300174713
[4.35% faster with bit op's]

[bogdan@localhost bogdan]$ php -q ../httpd/mul.php
3.2525320053101
3.1399850845337
[3.46% faster with bit op's]

- Same code, but with $j*4 and $j<<2:
[bogdan@localhost bogdan]$ php -q ../httpd/mul.php
3.23199903965
[3.0816890001297]
4.65% faster with bit op's

- Same code with $j*256 and $j<<8:
[bogdan@localhost bogdan]$ php -q ../httpd/mul.php
3.2386699914932
3.0807039737701
[4.88% faster with bit op's]

- Original code (*2 and <<1), but also added $q=$p/2; and $q=$p>>1; 
respectively in the two loops:
[bogdan@localhost bogdan]$ php -q ../httpd/mul.php
4.6924660205841
4.4853490591049
[4.41% faster with bit op's]

Switching the loops (making the bit op's loop first and the 
multiplication loop second) doesn't change the results.

Bogdan

Jason Wong wrote:

>On Monday 20 May 2002 12:03, Martin Towell wrote:
>
>>I was doing some timing of a function on the weekend and in one of the
>>loops, I had to multiply a variable by 2 - easy enough - $i*2
>>
>>but then I remembered that in C, it's quicker to do a left shift - so $i<<1
>>
>>but this actually took longer to execute in php than the $i*2 - can anyone
>>confirm my test? I iterated ~28,000 times. Each time, there was 2 places
>>where I was doing the left shift. The time (including all the other stuff I
>>was doing in the function) for $i*2 was ~12secs, and $i<<1 was ~19secs.
>>
>>I am running PHP4.0.6 (download cgi version from php.net) on a win98 system
>>(500MHz Celeron if that changes anything)
>>
>
>My tests don't show much difference, shifting is slightly faster.
>
>  ini_set('max_execution_time', 600);
>  function gettime() {
>list($usec, $sec) = explode(" ", microtime());
>return ((float)$usec + (float)$sec);
>  }
>  $start=gettime();
>  $j = 24;
>  for($i = 1; $i <= 100; $i++) {
>$p = $j * 2; #echo $p;
>  }
>  $end=gettime();
>  echo $end - $start, "\n";
>  $start=gettime();
>  $j = 24;
>  for($i = 1; $i <= 100; $i++) {
>$p = $j << 1; #echo $p;
>  }
>  $end=gettime();
>  echo $end - $start, "\n";
>?>
>
>Results
>===
>
>[jason@x27 jason]$ php -q doo.php
>7.4377170801163
>7.2966409921646
>[jason@x27 jason]$ php -q doo.php
>7.4303779602051
>7.2926670312881
>
>





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




[PHP] date Question

2002-05-20 Thread Randy Johnson

Is their a way to retrieve the previous month using/altering  the code
below:

// get the current timestamp into an array
$timestamp =  time();
$date_time_array =  getdate($timestamp);
$month =  $date_time_array["mon"];
$day =  $date_time_array["mday"];
$year =  $date_time_array["year"];
 $tmonth=  $date_time_array["month"];

outputs

5202002 May

i need it to output
4/20/2002 April


Thanks

Randy



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




[PHP] Cookies

2002-05-20 Thread Darren Edwards

Hi, i want to use a cookie to set a skin for a site but when i go to the
site when there is no cookie set then it will display no images background
colors ect... So what i need to do is have a command that will set other
images background ect. as default if there is no cookie there.  How can i
acheave this.

(The cookie gets set when the user selects the skin that they want not when
they enter the site)

Please some one help me out with this.
Thanks.

Darren



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




[PHP] Re: Problem with mktime()

2002-05-20 Thread Jim Winstead

Johannes Tyra <[EMAIL PROTECTED]> wrote:
>$startDate['Jungfrau']  = mktime (0, 0, 0, 08, 24,
> 2000);
>$startDate['Waage'] = mktime (0, 0, 0, 09, 24,
> 2000);
>
> but with 'Jungfrau' AND 'Waage' something is wrong!!

numbers with a leading zero are in octal format, and '8' and '9' are not
valid octal digits.

jim

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




[PHP] PHP Cookies

2002-05-20 Thread Darren Edwards

Hi, i want to use a cookie to set a skin for a site but when i go to the
site when there is no cookie set then it will display no images background
colors ect... So what i need to do is have a command that will set other
images background ect. as default if there is no cookie there.  How can i
acheave this.

(The cookie gets set when the user selects the skin that they want not when
they enter the site)

Please some one help me out with this.
Thanks.

Darren



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




Re: [PHP] undefined function: sybase_pconnect()

2002-05-20 Thread Patrick Laverty

Create a function called sybase_pconnect().  That is the soluction.


At 05:11 PM 5/20/02 +0530, Vivek Kumar Agrawal wrote:
>Hi All,
>
>I am getting some error like this:
> "Fatal error: Call to undefined function: sybase_pconnect() in 
> /home/httpd/php/db_sybase.inc on line 47"
>
>Please tell me its solution.
>
>Regards,
>Vivek

Patrick Laverty
CIS Web Specialist
Brown University
(401) 863-9267


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




Re: [PHP] Problem with mktime()

2002-05-20 Thread Dan Hardiker

> $startDate['Jungfrau'] = mktime (0, 0, 0, 08, 24, 2000);
> $startDate['Waage']= mktime (0, 0, 0, 09, 24, 2000);

Replace 08 and 09 with 8 and 9 respectivly and you will have the effect
you desire.
-- 
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software & Systems Engineer



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




Re: [PHP] refresh (part of) a page?

2002-05-20 Thread Jason Wong

On Monday 20 May 2002 16:39, savaidis wrote:
> I look and I search everything, it looks I'm reaching to a wall :)
> I used Netscape, I uploaded to my internet server, still the same.
> Plus, I cannot find "header already send" at manual.
>
> The error message is :
> Warning: Cannot add header information - headers already sent by (output
> started at /mpla-mpla/main.php:41) in /mpla-mpla /main.php on line 83
>
> Note that I use "header()" without problem on another php script on the
> same server.(to redirect from a "parcked" domain)
>
> Someone could help?

As I've said, look up the header() function in the manual. It has all you need 
to know.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
Always think of something new; this helps you forget your last rotten idea.
-- Seth Frankel
*/


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




Re: [PHP] MSIE & GZIP problem

2002-05-20 Thread Garth Dahlstrom

> Has anyone heard of the problem with MSIE 6?  If this is a 
> known problem; I'll have to perform some browser check to make 
> sure I can gzip to that MSIE
> version 6 build (whatever) -- kind of a hassle.
>
> I just did a search on Technet, and could find no mention of it.


I've experinced similar results with the version of MSIE6 that comes
with visual studio.net,  I was running horde for IMP (mail) and
Chora (cvs) apps.   The tables kept getting chopped, view source
showed the document was not complete (missing the last bunch of
tags)...  NN6 was no problem, I turned off gzip compression (horde
defaults to on) and the problem went away.

-GED



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




Re: [PHP] MSIE & GZIP problem

2002-05-20 Thread Garth Dahlstrom

> Has anyone heard of the problem with MSIE 6?  If this is a 
> known problem; I'll have to perform some browser check to make 
> sure I can gzip to that MSIE
> version 6 build (whatever) -- kind of a hassle.
>
> I just did a search on Technet, and could find no mention of it.


I've experinced similar results with the version of MSIE6 that comes
with visual studio.net,  I was running horde for IMP (mail) and
Chora (cvs) apps.   The tables kept getting chopped, view source
showed the document was not complete (missing the last bunch of
tags)...  NN6 was no problem, I turned off gzip compression (horde
defaults to on) and the problem went away.

-GED



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




RE: [PHP] Email harvesters

2002-05-20 Thread Brian McGarvie

but then no one would be able to reply to an individual...

> -Original Message-
> From: Leif K-Brooks [mailto:[EMAIL PROTECTED]]
> Sent: 20 May 2002 11:42 AM
> To: Miguel Cruz
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] Email harvesters
> 
> 
> I think it would be a good idea to have whatever software sends list 
> messages to the newsgroup block out the addresses.
> 
> Miguel Cruz wrote:
> 
> >If you're concerned and don't have effective anti-spam 
> filtering on your 
> >email box, I'd suggest coming up with a second address to 
> use for "public" 
> >purposes such as this. 
> >
> >The list shows up all over the place. For instance, Google 
> groups picks it
> >up off the news.php.net server, and you're surely not going 
> to convince
> >them to hide email addresses.
> >
> >miguel
> >
> >
> 
> 
> 
> -- 
> 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] More on escaping for SQL statements

2002-05-20 Thread Dennis Gearon

I appreciate all the replies to my question before about this. And also
to the person who asked the question later in the day!

What I'm looking for is a database neutral, comprehensive way to do
escaping.

First of all, though, will a php string hold binary data with the value
of 0x00 at multiple locations and NOT self terminate on the first
occurrence of it? In short, are php strings null terminated, or count
terminated like pascal and ada?

1/ If PHP strings are count terminated, as per above, then escaping 0x00
is necessary and functional. Probably a '\' character would be
appropriate.

2/ obviously, the <'> character should be escaped, but I want it escaped
with another <'>.

3/ I'm not sure if a <"> needs to be quoted in the data that goes into a
database. Does it? How should it be escaped, '\'?

4/ The page on  has some comment about escaping '_', '%'
chars. I seem to remember that ANSI standard escape for the '%' is
another one. What is the reason for escaping the '_' char and how is it
done?
-- 

If You want to buy computer parts, see the reviews at:
http://www.cnet.com/
**OR EVEN BETTER COMPILATIONS**!!
http://sysopt.earthweb.com/userreviews/products/

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




Re: [PHP] refresh (part of) a page?

2002-05-20 Thread 1LT John W. Holmes

You can't have any output before you call header. Something in main.php on
line 41 is causing some output that breaks the header() call. Be sure you
don't have any whitespace at the end of included files.

---John Holmes...

- Original Message -
From: "savaidis" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 20, 2002 4:39 AM
Subject: RE: [PHP] refresh (part of) a page?


> I look and I search everything, it looks I'm reaching to a wall :)
> I used Netscape, I uploaded to my internet server, still the same.
> Plus, I cannot find "header already send" at manual.
>
> The error message is :
> Warning: Cannot add header information - headers already sent by (output
> started at /mpla-mpla/main.php:41) in /mpla-mpla /main.php on line 83
>
> Note that I use "header()" without problem on another php script on the
same
> server.(to redirect from a "parcked" domain)
>
> Someone could help?
>
> Thanks
>
> Makis
>
> > -Original Message-
> > From: Jason Wong [mailto:[EMAIL PROTECTED]]
> > Sent: Sunday, May 19, 2002 3:35 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: [PHP] refresh (part of) a page?
> >
> >
> > On Sunday 19 May 2002 18:03, savaidis wrote:
> > > I want to refrech a part of my page (or the whole page) using PHP.
> > > Periodically, using a time delay.
> > > Should I use frames?
> >
> > You cannot refresh part of a page without resending the whole
> > page. You can
> > use frames.
> >
> > > Also I tried to use "header (...)" calling the same page with
different
> > > name (and then back to the same page) but I got the warning:
> > > "header already send".
> >
> > *Read* the manual and see what it says about header() and "header
already
> > send".
> >
> > --
> > Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
> > Open Source Software Systems Integrators
> > * Web Design & Hosting * Internet & Intranet Applications Development *
> >
> > /*
> > A great many people think they are thinking when they are merely
> > rearranging their prejudices.
> > -- William James
> > */
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


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




Re: [PHP] online bidding

2002-05-20 Thread Bogdan Stancescu

Hi! My opinion is that you should skip the array step and jump to 
database implementation - it's a slightly different approach and you'd 
have to change most of the array code...

Bogdan

[EMAIL PROTECTED] wrote:

>the following code represents an ineloquent way of capturing data from multiple form 
>fields. currently, i am capturing the data from 4 fields(e.g. ."Choice 1: 
>".$line1."\n")  i could have up to 222 inputs when this is completed.
>
>what might be a better way of doing this instead of hardcoding 222 different 
>variables?  using and array? i want to be able to send this information as part of 
>the $bid_information variable. i will eventually write this info. to a database, but 
>for now, baby steps.
>
>  $name=trim($name);
>  $employee_id=trim($employee_id);
>  $month=($month);
>  $aircraft=($aircraft);
>  $position=($position);
>  $bid_position=trim($bid_position);
>  $revision=trim($revision);
>
>  $line1=trim($line1);
>  $line2=trim($line2);
>  $line3=trim($line3);
>  $line4=trim($line4);
>
>  $contact= "me"; // person to contact for assistance
>
>  $toaddress = "[EMAIL PROTECTED]";  // the default value
>
>  $fromaddress = "From: [EMAIL PROTECTED]";
>
>  $subject = "Online Bidding";
>
>  $bid_information = "Name: ".$name."\n" // all the information from the 
>line_bid_sheet form.
> ."Employee ID: ".$employee_id."\n"
> ."Month: ".$month."\n"
> ."Aircraft: ".$aircraft."\n"
> ."Position: ".$position."\n"
> ."Bid Position: ".$bid_position."\n"
> ."Revision: ".$revision."\n\n"
> ."Choice 1: ".$line1."\n"
> ."Choice 2: ".$line2."\n"
> ."Choice 3: ".$line3."\n"
> ."Choice 4: ".$line4."\n";
>
>  mail($toaddress, $subject, $bid_information, $fromaddress);
>
>
>__
>Your favorite stores, helpful shopping tools and great gift ideas. Experience the 
>convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/
>
>Get your own FREE, personal Netscape Mail account today at 
>http://webmail.netscape.com/
>
>




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




RE: [PHP] PHP Cookies

2002-05-20 Thread Jay Blanchard

[snip]
Hi, i want to use a cookie to set a skin for a site but when i go to the
site when there is no cookie set then it will display no images background
colors ect... So what i need to do is have a command that will set other
images background ect. as default if there is no cookie there.  How can i
acheave this.
[/snip]

check for cookie
if no cookie exists use defaults, else use information from cookie to set
skin.

Jay

"We are all apparently 'net' literate, why don't we use it to get the
information we need? After all, isn't that what a Google search is all
about?"

"Give a man a program, frustrate him for a day. Teach a man to program,
frustrate him for a lifetime."



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




Re: [PHP] mysql_fetch_array errors

2002-05-20 Thread Philip Olson

A key to understanding your mysql errors is by using 
the mysql_error() function.  It's wonderful!  Here's 
a simple example with a little error checking:


 


Regards,
Philip Olson


On Sun, 19 May 2002, Justin Latham wrote:

> I am trying to clone my webserver because I am switching ISPs.  So I copied
> the MySQL database, and then I copied the php pages.  But my new server
> insists that any query I do is not a valid result resource when I try to use
> it in a mysql_fetch_array command.  I know that both php and the database
> are functional (to an extent) because all other commands work.
> I'm using PHP 4.something over MySQL 3.2.3 running RedHat 7.0.
> Thanks
> 
> Justin
> 
> 
> 
> -- 
> 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] date Question

2002-05-20 Thread Jason Wong

On Monday 20 May 2002 23:01, Randy Johnson wrote:
> Is their a way to retrieve the previous month using/altering  the code
> below:
>
> // get the current timestamp into an array
> $timestamp =  time();
> $date_time_array =  getdate($timestamp);
> $month =  $date_time_array["mon"];
> $day =  $date_time_array["mday"];
> $year =  $date_time_array["year"];
>  $tmonth=  $date_time_array["month"];
>
> outputs
>
> 5202002 May
>
> i need it to output
> 4/20/2002 April

strtotime();

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
Speaking of purchasing a dog, never buy a watchdog that's on sale.
After all, everyone knows a bargain dog never bites!
*/


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




[PHP] Expiring certain session data while keeping the session itself

2002-05-20 Thread Chris Knipe

Hiya, me again :-)

Is it possible to expire certain session data, while still keeping the
session itself in tact?

Example...

$_SESSION['AlwaysTrue'] = "True";
$_SESSION['ExpireThis'] = "10:20:00";

At 10:19:50 the session is registered.  AlwaysTrue must remain True for as
long as the session itself is true (as specified in the documentation - this
would be until the browser is closed, or after a certain amount of inactive
time).

However, at 10:20:00 (10 seconds later), I want the ExpireThis value of the
session, to be destroyed, without having to de-register the entire session
(this would then also destroy the AlwaysTrue value...

Am I right in presuming this cannot be done, and I'll have to come up with
my own little function to do this with?  If so, how can I see at what time a
session variable was written, or would I need to register the time that the
session variable was set to the session as well?  For instance

$_SESSION['AlwaysTrue'] = "True";
$_SESSION['ExpireThis'] = "10:20:00";
$_SESSION['ExpireThisTime'] = "10:19:50";

Then, just do a comparison, and if ExpireThisTime is past 10:20:00, then
just delete that one variable...

There's no easier / better way to do this ??

Basically, I'm needing something like this to bring down the number of
possible database queries.  I have a application which will have new
information in a database, every 75 seconds.  The queries are performed on
every single page that a user is logged in to on a site.  To make sure that
the same queries is not issued over and over on the database, I want to
implement some sort of caching where I will only need to do another query
after the database received new information (every 75 seconds).  It's all
numbers (integers), so I was thinking It may well work if I can save
these values to session data, and then just "refresh" the session data every
75 seconds  The problem is, there's lots of other information saved to
the session as well, which I cannot afford to loose with a possible
session_destroy()..

--
me




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




Re: [PHP] undefined function: sybase_pconnect()

2002-05-20 Thread Jason Wong

On Monday 20 May 2002 23:56, Patrick Laverty wrote:
> Create a function called sybase_pconnect().  That is the soluction.

I doubt it.

> At 05:11 PM 5/20/02 +0530, Vivek Kumar Agrawal wrote:
> >Hi All,
> >
> >I am getting some error like this:
> > "Fatal error: Call to undefined function: sybase_pconnect() in
> > /home/httpd/php/db_sybase.inc on line 47"
> >
> >Please tell me its solution.

Recompile PHP to include support for the sybase functions.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
The farther you go, the less you know.
-- Lao Tsu, "Tao Te Ching"
*/


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




Re: [PHP] Email harvesters

2002-05-20 Thread Miguel Cruz

But then how would newsgroup users write back to people?

miguel

On Mon, 20 May 2002, Leif K-Brooks wrote:
> I think it would be a good idea to have whatever software sends list 
> messages to the newsgroup block out the addresses.
> 
> Miguel Cruz wrote:
> 
> >If you're concerned and don't have effective anti-spam filtering on your 
> >email box, I'd suggest coming up with a second address to use for "public" 
> >purposes such as this. 
> >
> >The list shows up all over the place. For instance, Google groups picks it
> >up off the news.php.net server, and you're surely not going to convince
> >them to hide email addresses.
> >
> >miguel
> >
> >
> 
> 
> 


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




Re: [PHP] PHP Cookies

2002-05-20 Thread Miguel Cruz

On Mon, 20 May 2002, Darren Edwards wrote:
> Hi, i want to use a cookie to set a skin for a site but when i go to the
> site when there is no cookie set then it will display no images background
> colors ect... So what i need to do is have a command that will set other
> images background ect. as default if there is no cookie there.  How can i
> acheave this.

if ($cookie_was_set)
{
  // set images and background based on cookie contents
}
else
{
  // set default images and background
}

Surely there's some more challenging aspect to your query but I'm at a 
loss as to what it is.

miguel


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




Re: [PHP] timezone problem

2002-05-20 Thread Miguel Cruz

I think these are system-specific. You'll probably have to check which 
time zone your machine understands. For instance, on this FreeBSD machine 
there are hundreds of them in /usr/share/zoneinfo but on other machines 
there are only a handful.

In short, I believe it's an OS rather than a PHP thing.

miguel

On Mon, 20 May 2002, SP wrote:
> I am trying to convert date/times to different
> timezones using putenv but I am having problems
> using the right TZ names.  I am trying the zones I
> found here
> http://fuck.org/~ryan/squirrel/timezone/timezones.
> php but it seems the only ones that work are
> EST5EDT, CST6CDT, MST7MDT, PST8PDT and GMT.
> 
> OUTPUT
> ===
> 
> May 20 2002 10:46 am Eastern Standard Time
> May 20 2002 3:46 pm Ame
> May 20 2002 3:46 pm Ame
> May 20 2002 10:46 am EST
> May 20 2002 2:46 pm GMT
> May 20 2002 3:46 pm Eur
> May 20 2002 3:46 pm Asi
> 
> CODE
> =
> 
> echo date("F j Y g:i a T"), "";
> 
> putenv("TZ=America/Los_Angeles");
> echo date("F j Y g:i a T"), "";
> 
> putenv("TZ=America/New_York");
> echo date("F j Y g:i a T"), "";
> 
> putenv("TZ=EST5EDT");
> echo date("F j Y g:i a T"), "";
> 
> putenv("TZ=GMT");
> echo date("F j Y g:i a T"), "";
> 
> putenv("TZ=Europe/Paris");
> echo date("F j Y g:i a T"), "";
> 
> putenv("TZ=Asia/Hong_Kong");
> echo date("F j Y g:i a T"), "";
> 
> 
> 
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system
> (http://www.grisoft.com).
> Version: 6.0.361 / Virus Database: 199 - Release
> Date: 07/05/02
>  
> 
> 


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




Re: [PHP] gmdate question

2002-05-20 Thread Miguel Cruz

On Mon, 20 May 2002, SP wrote:
> I am using gmdate to get the GMT timezone and it's working but how does
> it know what timezone my server is to make the time adjustment?  
> Where's the setting for this?

In your server's configuration files somewhere. Nothing to do with PHP.

miguel


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




Re: [PHP] Problem with mktime()

2002-05-20 Thread Rasmus Lerdorf

08 and 09 are not real numbers.  Any number starting with a 0 is an octal
number which means you can only use digits 0-7

Drop the leading 0 and everything will work.

-Rasmus

On Mon, 20 May 2002, Johannes Tyra [BrainData] wrote:

> Hi,
>
> I want to read out the asterisk from a birthdate.
>
> First off all I need the timestamp:
>
>   $startDate['Steinbock'] = mktime (0, 0, 0, 12, 22,
> 1999);
>   $startDate['Wassermann']= mktime (0, 0, 0, 01, 21,
> 2000);
>   $startDate['Fisch'] = mktime (0, 0, 0, 02, 21,
> 2000);
>   $startDate['Widder']= mktime (0, 0, 0, 03, 21,
> 2000);
>   $startDate['Stier'] = mktime (0, 0, 0, 04, 21,
> 2000);
>   $startDate['Zwilling']  = mktime (0, 0, 0, 05, 21,
> 2000);
>   $startDate['Krebs'] = mktime (0, 0, 0, 06, 22,
> 2000);
>   $startDate['Löwe']  = mktime (0, 0, 0, 07, 23,
> 2000);
>   $startDate['Jungfrau']  = mktime (0, 0, 0, 08, 24,
> 2000);
>   $startDate['Waage'] = mktime (0, 0, 0, 09, 24,
> 2000);
>   $startDate['Skorpion']  = mktime (0, 0, 0, 10, 24,
> 2000);
>   $startDate['Schütze']   = mktime (0, 0, 0, 11, 23,
> 2000);
>   $startDate['Steinbock2']= mktime (0, 0, 0, 12, 22,
> 2000);
>
> but with 'Jungfrau' AND 'Waage' something is wrong!!
>
> if I want to debug this lines with:
>
>   echo date("m - Y",$startDate['Steinbock'])."";
>   echo date("m - Y",$startDate['Wassermann'])."";
>   echo date("m - Y",$startDate['Fisch'])."";
>   echo date("m - Y",$startDate['Widder'])."";
>   echo date("m - Y",$startDate['Stier'])."";
>   echo date("m - Y",$startDate['Zwilling'])."";
>   echo date("m - Y",$startDate['Krebs'])."";
>   echo date("m - Y",$startDate['Löwe'])."";
>   echo date("m - Y",$startDate['Jungfrau'])."";
>   echo date("m - Y",$startDate['Waage'])."";
>   echo date("m - Y",$startDate['Skorpion'])."";
>   echo date("m - Y",$startDate['Schütze'])."";
>   echo date("m - Y",$startDate['Steinbock2'])."";
>
> to read out the month and year of the asterisks PHP returns:
>
> 12 - 1999
> 01 - 2000
> 02 - 2000
> 03 - 2000
> 04 - 2000
> 05 - 2000
> 06 - 2000
> 07 - 2000
> 12 - 1999  error
> 12 - 1999  error
> 10 - 2000
> 11 - 2000
> 12 - 2000
>
> all other asterisks are ok...
>
> Does anyone know how to fix it??
> Or is it a bug??
> Anyone knows a better idea to get the asterisk from a given date???
>
> Thanx...
>
> --
> Mit freundlichem Gruß,
> Johannes Tyra
>
>
> --
> 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] eval()

2002-05-20 Thread jtjohnston

I know I'm not doing this right, but ..

What I want to do is display the value of $q1 through $q3.
How? I can't get eval() to do it, can I?

for ($i = 1; $i <= 3; $i++)
{
$x= eval ("\$q".$i);
echo"$x\n";
echo"\n";
}

John


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




Re: [PHP] eval()

2002-05-20 Thread Miguel Cruz

On Mon, 20 May 2002, jtjohnston wrote:
> I know I'm not doing this right, but ..
> 
> What I want to do is display the value of $q1 through $q3.
> How? I can't get eval() to do it, can I?
> 
> for ($i = 1; $i <= 3; $i++)
> {
> $x= eval ("\$q".$i);
> echo"$x\n";
> echo"\n";
> }

eval() is for running code, not parsing strings.

Try something like:

  for ($i = 1; $i <= 3; $i++)
  {
$var = "q$i";
print "\n";
  }

Or use arrays.

miguel


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




Re: [PHP] bug in SLEEP() function...

2002-05-20 Thread Rasmus Lerdorf

This is well-documented.  Right out of the set_time_limit() docs:

 Note:  The set_time_limit() function and the configuration directive
 max_execution_time only affect the execution time of the script itself.
 Any time spent on activity that happens outside the execution of the
 script such as system calls using system(), the sleep() function,
 database queries, etc. is not included when determining the maximum time
 that the script has been running.

Like anything else, you need to check user input.  There are all sorts of
malicious things that can happen if you use user-data incorrectly.

-Rasmus

On Sat, 18 May 2002, Jason Caldwell wrote:

> Dunno if this has been mentioned or fixed in the latest release (I'm using
> PHP version 4.1.1) -- but, a script will not timeout until the sleep()
> function has finished it's duration -- for example:
>
> In my script, if I set "set_time_limit(30)" -- then later in the script I
> call a "sleep(45)" -- the script will not timeout until 45 seconds later,
> from the point at which the sleep() function was called.
>
> Now, being a conscious programmer -- I'd probably never set my sleep()
> function to exceed my default or defined timeout setting.  However, the
> sleep value can be set via a $var -- and depending on what functions are
> performed -- I can see how, when a programmer wants his script to timeout
> within a certain amount of time and then it doesn't; can cause a problem --
> in-fact, I can foree some sort of sleep-attack whereby a malicious hacker
> figures out that a particular script on a particular website has a dynamic
> $var for the sleep() function -- then s/he writes a script which calls the
> page many times --- "injecting" the $var (say for example:
> http://www.whateverweb.goo/home.php?t=65536, where $t is the time $var in
> the script; sleep($t);"
>
> Effectively; in this case, the scripts won't timeout for 18 some hours.
> Filling up memory fast.
>
> Just FYI.
> Jason
>
>
>
>
> --
> 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] eval()

2002-05-20 Thread Bogdan Stancescu

for ($i = 1; $i <= 3; $i++) {
$x= "$q$i";
$val=$$x;
echo"$val\n";
echo"\n";
}



jtjohnston wrote:

>I know I'm not doing this right, but ..
>
>What I want to do is display the value of $q1 through $q3.
>How? I can't get eval() to do it, can I?
>
>for ($i = 1; $i <= 3; $i++)
>{
>$x= eval ("\$q".$i);
>echo"$x\n";
>echo"\n";
>}
>
>John
>
>




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




Re: [PHP] eval()

2002-05-20 Thread Bogdan Stancescu

Sorry, please change line 2 with $x="q$i".

Bogdan

Bogdan Stancescu wrote:

> for ($i = 1; $i <= 3; $i++) {
> $x= "$q$i";
> $val=$$x;
> echo"$val\n";
> echo"\n";
> }
>
>
>
> jtjohnston wrote:
>
>> I know I'm not doing this right, but ..
>>
>> What I want to do is display the value of $q1 through $q3.
>> How? I can't get eval() to do it, can I?
>>
>> for ($i = 1; $i <= 3; $i++)
>> {
>> $x= eval ("\$q".$i);
>> echo"$x\n";
>> echo"\n";
>> }
>>
>> John
>>
>>
>
>
>
>




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




Re: [PHP] Re: Register_Shutdown_Function ??

2002-05-20 Thread Rasmus Lerdorf

Windows?  Blah.  This stuff may very well not work there.  No idea.

-Rasmus

On Sat, 18 May 2002, Jason Caldwell wrote:

> It doesn't matter.  I'm setting the output *not* to the browser, but to the
> command shell, where I am running the script from.  If you look at the
> errors, you'll see 2 of them, one points to line 7, where the IF() command
> is -- the script terminates there...
>
> I've put error_log() and exec() functions in place of the print()
> function -- it doesn't make a difference -- the script just won't execute
> the function in the register_shutdown_function() --
>
> The following script works great (see below) -- it seems that for some
> reason its a TIMEOUT issue (bug).
>
> Running the script below, I will get the output of the print() function --
> as stated, from the command line.  I understand that it wouldn't show up in
> the browser.
>
> If I replace the "exit;" command with say a "while(1);" where the script
> will loop indefinitely, the timeout, set by the set_time_limit(1) will stop
> the script, but again -- register_shutdown_function() seems to "want to
> work" as the function IS CALLED, but NEVER executed, and instead errors on
> the 1st line in the FUNCTION -- always on a TIMEOUT.
>
> Run this script from your command line (ie. C:>php test.php) -- then change
> the "set_time_limit(30)" to "set_time_limit(1)", and replace the "exit" with
> a "while(1)" -- run the script again, you'll see what I mean.
>
> And, if you still don't believe me, replace the print() in the function with
> "error_log('Script Terminated', 3, 'errorlog.txt');" and see if the
> "errorlog.txt" file is ever created -- it isn't.
>
>  set_time_limit(30);
>  function clean_up()
>  {
>   print("Script Terminated");
>  }
> register_shutdown_function("clean_up");
>  exit;
> ?>
>
> If anyone can offer any reason why its doing this, please help -- thanks.
>
> Jason
>
>
>
>
> "Cc Zona" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > In article <[EMAIL PROTECTED]>,
> >  [EMAIL PROTECTED] (Jason Caldwell) wrote:
> >
> > > Here's my code:
> > > 
> > >  > >  set_time_limit(1);
> > >  function clean_up()
> > >  {
> > >   if(connection_status() & TIMEOUT)
> > >print("Script timed out.\n");
> > >  }
> > > register_shutdown_function("clean_up");
> > > while(1);
> > > ?>
> > >
> > > Here's the message I get:  (I should get "Script timed out.")
> >
> > No, you shouldn't/wouldn't, because--as is noted in the docs
> > --no more output ("print" is
> > specifically mentioned as an example) can be sent to the browser at that
> > stage.  Try sending youself an email, or logging to a file instead.
> >
> > --
> > CC
>
>
>
> --
> 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] Re: Register_Shutdown_Function ??

2002-05-20 Thread Rasmus Lerdorf

What makes you think you can echo something after your script has timed
out?  Change that print to write something to a file in /tmp and you will
see that it works just fine.

-Rasmus

On Sat, 18 May 2002, Jason Caldwell wrote:

> Here's my code:
> 
>   set_time_limit(1);
>  function clean_up()
>  {
>   if(connection_status() & TIMEOUT)
>print("Script timed out.\n");
>  }
> register_shutdown_function("clean_up");
> while(1);
> ?>
>
> Here's the message I get:  (I should get "Script timed out.")
> ---
> 
> Fatal error:  Maximum execution time of 1 second exceeded in
> C:\test999.php on line 14 >
> 
> Fatal error:  Maximum execution time of 1 second exceeded in
> C:\test999.php on line 7
> --
>
>
> "Jason Caldwell" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > I'm playing with the register_shutdown_function -- it's seems to work fine
> > if I call exit() within my script -- however, it doesn't seem to work when
> > the script times-out.  Anyone know why?  It's supposed to work in the
> event
> > of an error, time-out, user-abort, or script-exit.
> >
> > Thanks
> > Jason
> >
> >
> >
>
>
>
> --
> 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] Email harvesters

2002-05-20 Thread Rasmus Lerdorf

If there was just one archive of this list and we controlled it, then this
would be ok.  But the fact is that there are dozens, and we don't control
any of them.  So I don't see how this could be done.

-Rasmus

On Mon, 20 May 2002, Richard Baskett wrote:

> I wrote this email to the php Archive list and I would like to get your
> opinions on it.. Thanks! :)
>
> "Is there any way that we could get the archives password protected?  Apple
> does a nice thing where they tell you the username and password to login and
> the whole purpose of it is so that email harvesters can not go through and..
> Well.. Harvest our emails from the list :)  I think a lot of people would
> not mind having something like this added to the pages since my guess is
> that we're all sick and tired of spam and junkmail and eliminating one
> possible garden for harvesters would be nice :)  I am going to email this to
> the list also to see what kind of feedback comes from it."
>
> Rick
>
> "How wonderful it is that nobody need wait a single moment to improve the
> world." - Anne Frank
>
>
> --
> 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] Email harvesters

2002-05-20 Thread Hugh Bothwell


"Miguel Cruz" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> But then how would newsgroup users write back to people?
>
> miguel
>
> On Mon, 20 May 2002, Leif K-Brooks wrote:
> > I think it would be a good idea to have whatever software sends list
> > messages to the newsgroup block out the addresses.


Okay, I'm not saying any of these are
necessarily 'good'; but for argument, here
goes:


(1. )  pass-thru server:

(.a)  Replace email addresses with hyperlink
to server-based reply form, ie

   [EMAIL PROTECTED]
becomes
  www.listserv.com/replyto/9317401


(.b) Replace with email address with
processed email, ie

[EMAIL PROTECTED]
becomes
   [EMAIL PROTECTED]

This will of course still require spam-
filtering.

(.c)  request-for-contact.
Server form will forward user's
email and request an email reply.


(2. ) They can't - all contact via the
newsgroup - all email addresses censored,
no work-around provided.

(2.b)  Make this opt-in on request.




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




Re: [PHP] php.net sloooooooowwww

2002-05-20 Thread Rasmus Lerdorf

Use a mirror.  us2.php.net is quick

We are having some network problems on the main server.  A good reminded
to everyone to go find your local mirrors and use them instead.

On Sat, 18 May 2002, Jason Caldwell wrote:

> Anyone know why http://www.php.net is s incredibly slow today
> (all day) ???
>
> Jason
>
>
>
> --
> 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] List content of folders?

2002-05-20 Thread Hawk

Is there some var that does this automaticly? I don't really know what to
search for on php.net.. :P
If there isn't, is there any other way to do this? I know it's possible with
asp but I have no plans on using asp :P

Håkan



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




Re: [PHP] while loop question - problem (new set of eyes needed)

2002-05-20 Thread Rasmus Lerdorf

You are resetting $row inside your loop.  Don't do that.

On Sun, 19 May 2002, Lee P Reilly wrote:

> Hi,
>
> I wonder if someone could have a quick look at this for me? It's a
> simple while loop, but it's not acting the way (I think) it should. If I
> break down the while loop, it reads:
>
> 
>   // $result contains 3 rows
>   while($row = mysql_fetch_array($result))
>   {
> echo " xxx ";
>   }
> 
>  => xxx xxx xxx is displayed (as expected)
>
> If I add the following code to the loop, it only seems to iterate
> through it *once*:
>
> 
>   while($row = mysql_fetch_array($result))
>   {
> $pri = $row['pri'];
> $fg = $row['fg'];
> $molw = $row['molw'];
> $density = $row['density'];
> $denstype = $row['denstype'];
> $pctd = $row['pctd'];
> $maxpctd = $row['maxpctd'];
> $compid = $row['compid'];
>
> $sql = "select * from compounds where compid = \"$compid\"";
> $result = mysql_query($sql,$conn);
> $row = mysql_fetch_array($result);
>
> $compname = $row['compname'];
> $concentration = $row['concentration'];
> $concunit = $row['concunit'];
> $type = $row['type'];
> $composition = $row['composition'];
>
> if ($fg=="Y")
>$html .= "$concentration $concunit $compname";
> else if ($pri=="Y")
>$html .= " $concentration $concunit
> $compname";
> else
>$html .= " $concentration $concunit $compname";
>   }
> 
>
> Expected results:
> 
>Actin #2543: Description here.
>
>1 mol AEBSF
>1.3 mol Calcium Chloride
>1.4 mol Potassium Chloride
> 
>
> Actual results:
> 
>Actin #2543: Description here.
>
>1 mol AEBSF
> 
>i.e the last two compounds are not displayed.
>
> I can't for the life of me see the problem. A new set of eyes looking at
> this would be GREATLY appreciated. Thanks very much in advance.
>
> - Best regards,
>
>   Lee
>
>
> --
> 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: List content of folders?

2002-05-20 Thread Jas

readdir();
search for that and you should find what you need.
HTH
Jas

"Hawk" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Is there some var that does this automaticly? I don't really know what to
> search for on php.net.. :P
> If there isn't, is there any other way to do this? I know it's possible
with
> asp but I have no plans on using asp :P
>
> Håkan
>
>



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





RE: [PHP] Variable won't work in function, even when I global it?

2002-05-20 Thread Scott Hurring

Or why not just use include_once() or require_once() ??
That's their purpose.

---
Scott Hurring
Systems Programmer
EAC Corporation
[EMAIL PROTECTED]
Voice: 201-462-2149
Fax: 201-288-1515

> -Original Message-
> From: Paul Roberts [mailto:[EMAIL PROTECTED]]
> Subject: Re: [PHP] Variable won't work in function, even when I global
> it?
> 
> try
> 
> eval("?>$footertext");
> 
> also take the code out of the function and try it, you may 
> need to global some more variables.
> 
> Paul Roberts
> [EMAIL PROTECTED]

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




[PHP] PHP & Excel

2002-05-20 Thread LeTortorec, Jean-Louis

Hello every one:

I'm trying to create XLS files on the fly.
I found BiffWriter. Looks great for adding texts and numbers, but not
formulas.

Has anyone implemented something about formulas?

Thanks.

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




Re: [PHP] Why would this command just Die!

2002-05-20 Thread Rasmus Lerdorf

Change your die() call to this:

 die(mysql_error())

so you can actually see what is going on.

-Rasmus

On Mon, 20 May 2002, Php Developers wrote:

> This command just dies!
>
> I have checked sql connection  ... ok
> the insert into line ... ok
>
> Pfft it just don't wanna work
>
>
> 
>  $answers="$band, $middlename, $pot";
>  $date=date ("l dS of F Y h:i:s A");
>
>   $sql = "INSERT INTO prizeline (id, email, name, address, answers, date) VALUES 
>('', '$email', '$name', '$address', '$answers', '$date')";
>
>   echo $sql;
>
>   mysql_query($sql) or die ("There has been an error");
>
>
> ?>
>
>
> ## Out put on page ##
>
> INSERT INTO prizeline (id, email, name, address, answers, date) VALUES ('', 
>'[EMAIL PROTECTED]', 'newman', '12 Newman ave Auckland', 'In Season, James, 
>John', 'Monday 20th of May 2002 10:22:05 AM')There has been an error
>


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




Re: [PHP] Re: php.net sloooooooowwww

2002-05-20 Thread Rasmus Lerdorf

http://php.he.net/distributions/php-4.2.1-Win32.zip

On Sat, 18 May 2002, Jason Caldwell wrote:

> Is there some place else I can download release 4.2.1 ??? www.php.net is
> dead slow, and us2.php.net is taking forever to prompt me for the
> download -- I keep getting hit with the "Page Cannot be Displayed" error.
>
> Looking for the Win32 binary.
>
> Thanks.
> Jason
>
>
>
> --
> 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 & Excel

2002-05-20 Thread 1LT John W. Holmes

Can you just write out the formula to a cell? i.e. write the value
"=SUM(C1:C5)" to a cell and see if it's evaluated? Just throwing things
out...

I would think that you wouldn't need formulas. Isn't that the idea of using
PHP to create the Excel document? Have PHP compute the values of the
"formulas" and print out the actual value. May not work for your case,
though...

---John Holmes...

- Original Message -
From: "LeTortorec, Jean-Louis" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 20, 2002 2:42 PM
Subject: [PHP] PHP & Excel


> Hello every one:
>
> I'm trying to create XLS files on the fly.
> I found BiffWriter. Looks great for adding texts and numbers, but not
> formulas.
>
> Has anyone implemented something about formulas?
>
> Thanks.
>
> --
> 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 & Excel

2002-05-20 Thread Scott Hurring

Are you on a Win32 platform?

If so, use COM...

$cell = $sheet->Cells($row,$col);
$cell->activate;
$cell->formula = "your formula";

---
Scott Hurring
Systems Programmer
EAC Corporation
[EMAIL PROTECTED]
Voice: 201-462-2149
Fax: 201-288-1515

> -Original Message-
> From: LeTortorec, Jean-Louis [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 20, 2002 2:42 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] PHP & Excel
> 
> 
> Hello every one:
> 
> I'm trying to create XLS files on the fly.
> I found BiffWriter. Looks great for adding texts and numbers, but not
> formulas.
> 
> Has anyone implemented something about formulas?
> 
> Thanks.
> 
> -- 
> 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 & Excel

2002-05-20 Thread Scott Hurring

> -Original Message-
> From: 1LT John W. Holmes [mailto:[EMAIL PROTECTED]]
> Subject: Re: [PHP] PHP & Excel
> 
> I would think that you wouldn't need formulas. Isn't that the 
> idea of using
> PHP to create the Excel document? Have PHP compute the values of the
> "formulas" and print out the actual value. May not work for your case,
> though...
> 
> ---John Holmes...

What if the user opens up the sheet and changes a number
after PHP creates it?  Wouldn't you want formulas to
re-compute the sheet and keep it correct?  :)

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




Re: [PHP] PHP & Excel

2002-05-20 Thread 1LT John W. Holmes

> What if the user opens up the sheet and changes a number
> after PHP creates it?  Wouldn't you want formulas to
> re-compute the sheet and keep it correct?  :)

Like I said, it depends on your case. When I create an Excel file, it's a
"snapshot" of everything. If you need an updated speadsheet, you go back to
the webpage and hit the button again... I don't expect people to be updating
the actual excel file.

---John Holmes...


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




Re: [PHP] refresh (part of) a page?

2002-05-20 Thread Sqlcoders.com Programming Dept

Hi there!,
To keep both  on the same line, you need to put them inside a table
(like this:
)

You can switch off any borders with the following:
in the iframe code use an iframe tag like this:


So to combine the two (both on the same line with no borders), something
like this...

  

  



 
   
 

HTH,
Dw


- Original Message -
From: "savaidis" <[EMAIL PROTECTED]>
To: "Sqlcoders.com Programming Dept" <[EMAIL PROTECTED]>
Sent: May 20 2002 08:42 AM
Subject: RE: [PHP] refresh (part of) a page?


> Thanks a lot!
>
> Is possible to make invisible the borders? I tried "border=0" and
"noborder"
> but didn't work.
>
> Also to keep the 2 frames (I did put and another  the same line and not to break the other at the bottom of the first?
>
> You will  see it from tomorow at http://www.macedonia-hotels.gr
>
>
> Thanks again!
>
>
>
>
>
> Makis
>
>
> > -Original Message-
> > From: Sqlcoders.com Programming Dept [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, May 21, 2002 4:57 AM
> > To: savaidis
> > Subject: Re: [PHP] refresh (part of) a page?
> >
> >
> > Hi there!,
> > You cannot refresh part of a single page,
> > you would have to resend the entire page.
> >
> > There is another option which you could use, this will work on IE5+ and
> > NS6+:
> > An inline frame would allow you to update the page within it's
> > boundary, so
> > in other words you could have a page which has an  > src="partWhichWillRefresh.php" width=400 height=200>
> > tag, then you
> > would need a page called partWhichWillRefresh.php which contains
> > the content
> > you want to refresh,
> > inside partWhichWillRefresh.php, add whatever content you want to
refresh,
> > and the following JavaScript to accomplish the refresh:
> >
> > 
> > x = setTimeout(reloadme,5000); //the 5000 means 5 seconds, 60
> > seconds would
> > be 6, etc.
> >
> > function reloadme(){
> > document.location.href = 'partWhichWillRefresh.php?rnd=0393'; //the
> > rnd=0394 is simply to stop most caching.
> > }
> > 
> >
> > HTH,
> > Dw
> >
> > - Original Message -
> > From: "savaidis" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: May 20 2002 01:39 AM
> > Subject: RE: [PHP] refresh (part of) a page?
> >
> >
> > > I look and I search everything, it looks I'm reaching to a wall :)
> > > I used Netscape, I uploaded to my internet server, still the same.
> > > Plus, I cannot find "header already send" at manual.
> > >
> > > The error message is :
> > > Warning: Cannot add header information - headers already sent by
(output
> > > started at /mpla-mpla/main.php:41) in /mpla-mpla /main.php on line 83
> > >
> > > Note that I use "header()" without problem on another php script on
the
> > same
> > > server.(to redirect from a "parcked" domain)
> > >
> > > Someone could help?
> > >
> > > Thanks
> > >
> > > Makis
> > >
> > > > -Original Message-
> > > > From: Jason Wong [mailto:[EMAIL PROTECTED]]
> > > > Sent: Sunday, May 19, 2002 3:35 PM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: Re: [PHP] refresh (part of) a page?
> > > >
> > > >
> > > > On Sunday 19 May 2002 18:03, savaidis wrote:
> > > > > I want to refrech a part of my page (or the whole page) using PHP.
> > > > > Periodically, using a time delay.
> > > > > Should I use frames?
> > > >
> > > > You cannot refresh part of a page without resending the whole
> > > > page. You can
> > > > use frames.
> > > >
> > > > > Also I tried to use "header (...)" calling the same page with
> > different
> > > > > name (and then back to the same page) but I got the warning:
> > > > > "header already send".
> > > >
> > > > *Read* the manual and see what it says about header() and "header
> > already
> > > > send".
> > > >
> > > > --
> > > > Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
> > > > Open Source Software Systems Integrators
> > > > * Web Design & Hosting * Internet & Intranet Applications
> > Development *
> > > >
> > > > /*
> > > > A great many people think they are thinking when they are merely
> > > > rearranging their prejudices.
> > > > -- William James
> > > > */
> > > >
> > > >
> > > > --
> > > > PHP General Mailing List (http://www.php.net/)
> > > > To unsubscribe, visit: http://www.php.net/unsub.php
> > > >
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> > >
> >
>
>


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




Re: Re: [PHP] Re: php.net sloooooooowwww

2002-05-20 Thread Eric Coleman

Hello Rasmus Lerdorf,

=== At 2002-05-18, 22:45:00 Rasmus Lerdorf wrote: ===

>http://php.he.net/distributions/php-4.2.1-Win32.zip
>
Why not use a cookie and some type of redirection on php.net, where a user is forced 
to choose a mirror, and then when they go to php.net, it redirects them to the proper 
mirror, based on there cookie?

>On Sat, 18 May 2002, Jason Caldwell wrote:
>
>> Is there some place else I can download release 4.2.1 ??? www.php.net is
>> dead slow, and us2.php.net is taking forever to prompt me for the
>> download -- I keep getting hit with the "Page Cannot be Displayed" error.
>>
>> Looking for the Win32 binary.
>>
>> Thanks.
>> Jason
>>
>>
>>
>> --
>> 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

= = = = = = = = = = = = = = = = = = = =



Best regards.
Eric Coleman
[EMAIL PROTECTED]
2002-05-20




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




Re: [PHP] List content of folders?

2002-05-20 Thread Jason Wong

On Tuesday 21 May 2002 02:24, Hawk wrote:
> Is there some var that does this automaticly? I don't really know what to
> search for on php.net.. :P
> If there isn't, is there any other way to do this? I know it's possible
> with asp but I have no plans on using asp :P

Download the manual and look for directory.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
A dead man cannot bite.
-- Gnaeus Pompeius (Pompey)
*/


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




Re: [PHP] PHP Cookies

2002-05-20 Thread Miguel Cruz

[ by the way Darren, your email address doesn't work ]

On Mon, 20 May 2002, Darren wrote:
> Ok what i mean is this if the $skin cookie is not present then what can i
> add to this so that it has a default value with the color #00
> 
> if($skin=="default") { $skin="#6e6e6e"; };
> if($skin=="red") { $skin="#FF"; };

switch($_COOKIE['skin'])
{
case 'red':
  $framecolor = '#ff';
  $backgroundcolor = '#e6ffd8';
  break;
case 'blue':
  $framecolor = '#66';
  $backgroundcolor = '#aa2231';
  break:
default:
  $framecolor = '#00';
  $backgroundcolor = '#99cc99';
}



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




[PHP] verify file against array?

2002-05-20 Thread Jas

I am trying to register an array containing file types, htm, jpg, jpeg, gif
and pdf.  I think I am missing something, if someone could look at this and
tell me what I am doing wrong that would be awesome, thanks in advance.
jas
"1",
  ".jpg"=>"2",
  ".jpeg"=>"2",
  ".htm"=>"3",
   ".pdf"=>"4");
if ($img1_name != "" && eregi('$types', $img1_name)) {
@copy("$img1", "/path/to/images/$img1_name") or die ("Could not upload file,
please try again after making sure the file is less than 2mb in size and the
file name correct");
 } else {
   die("No file selected for upload, or the file was not the correct type.
Please only upload .jpg files.");
}
?>



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




[PHP] Re: [PHP-EVANGELISM] PHPDocumentor v1.0rc1 release announcement

2002-05-20 Thread Dave Mertens

On Sun, May 19, 2002 at 07:54:45PM -0500, Greg Beaver wrote:
> PHPDocumentor is a JavaDoc-like automatic documentation generator for PHP
> written in PHP.  It is the most versatile tool for documenting PHP.
This sounds like the phpdoc tool that php/pear is using already. But what
can *WE*, as advocating team, do with this tool?? We're not writing any
software or so..

I think this message is better of on the pear-dev and php-dev mailinglist
rather than on the evangelism list.

-- 
With best regards,

Dave Mertens, Development Manager
[EMAIL PROTECTED]

Innovative Solutions in Media BV
Schiekade 101
3033 BG  Rotterdam, Netherlands
Tel. +31-10-2436060
Fax. +31-10-2436066

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




Re: [PHP] Refresh doesn't work

2002-05-20 Thread Thalis A. Kalfigopoulos

Have you tried creating HTML with the equivalent META header?





Does it work for you?

cheers,
thalis

On Mon, 20 May 2002, Olexandr Vynnychenko wrote:

> Hello php-general,
> 
>   Has anyone else here the same proplem as I have? I write in my php:
> 
> header("Refresh: 3; url=newpage.php");
> 
> Netscape 4.79 works fine and goes to page.php after 3 seconds pass.
> But IE 6 doesn't want to do that. Can anyone explain such a wonderful
> behavior?
> 
> -- 
> Best regards,
>  Olexandr  mailto:[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




[PHP] Refresh doesn't work

2002-05-20 Thread Olexandr Vynnychenko

Hello php-general,

  Has anyone else here the same proplem as I have? I write in my php:

header("Refresh: 3; url=newpage.php");

Netscape 4.79 works fine and goes to page.php after 3 seconds pass.
But IE 6 doesn't want to do that. Can anyone explain such a wonderful
behavior?

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


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




[PHP] display errors for developers only?

2002-05-20 Thread Jeff Bearer

In the php.ini file I have display_errors = Off, how would I configure
the server, or the application to display the errors for specific hosts,
the developers?


-- 
Jeff Bearer, RHCE
Webmaster
PittsburghLIVE.com
2002 EPpy Award, Best Online U.S. Newspaper


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




Re: [PHP] Refresh doesn't work

2002-05-20 Thread pong-TC

[EMAIL PROTECTED] writes:
>Hello php-general,
>
>  Has anyone else here the same proplem as I have? I write in my php:
>
>header("Refresh: 3; url=newpage.php");
>
>Netscape 4.79 works fine and goes to page.php after 3 seconds pass.
>But IE 6 doesn't want to do that. Can anyone explain such a wonderful
>behavior?
>
>-- 
>Best regards,
> Olexandr  
try to use this:

echo "";

I cannot use header either.  Perhaps, I run PHP under Wins.  However, the
above syntax works well with any browser.

Pong
  


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




Re[2]: [PHP] Refresh doesn't work

2002-05-20 Thread Olexandr Vynnychenko

Hello Thalis,

Monday, May 20, 2002, 10:51:57 PM, you wrote:

TAK> Have you tried creating HTML with the equivalent META header?

TAK> 
TAK> 
TAK> 

TAK> Does it work for you?

TAK> cheers,
TAK> thalis

TAK> On Mon, 20 May 2002, Olexandr Vynnychenko wrote:

>> Hello php-general,
>> 
>>   Has anyone else here the same proplem as I have? I write in my php:
>> 
>> header("Refresh: 3; url=newpage.php");
>> 
>> Netscape 4.79 works fine and goes to page.php after 3 seconds pass.
>> But IE 6 doesn't want to do that. Can anyone explain such a wonderful
>> behavior?

Of course, it works. But I wanted to do it by HTTP headers because I
generate HTML from XML thru XSLT, so I don't want to dig in there.

I just wanted to know if it's usual for IE of any version, or it's
something wrong with my IE6 on WinXP.


-- 
Best regards,
 Olexandrmailto:[EMAIL PROTECTED]


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




[PHP] imagecopy() no errors, but does nothing :-(

2002-05-20 Thread Evan

What I'm planning to do is to add the logo of the site over every image
uploaded.
Here is the code after upload:

  $dst_im = @ImageCreateFromJPEG ("../".$pathImg.$NomeFile);
  $src_im = @ImageCreateFromJPEG ("../imgsite/logo.jpg");
  $dst_size = GetImageSize("../".$pathImg.$NomeFile);//800x600
  $src_size = GetImageSize("../imgsite/logo.jpg");//50x50
  ImageCopy( $dst_im, $src_im, 150, 150, 0, 0, 50, 50);

I don't get errors but it happens nothing to the original img ($dst_im).
The image logo.jpg is 50x50 and the $dst_img is 800x600.

Thanks for your help,
Evan



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




Re: [PHP] Any Ideas "@" becomes "_Xy"

2002-05-20 Thread Analysis & Solutions

On Sat, May 18, 2002 at 11:45:49AM +0100, Henry wrote:
> 
> http://GetResponse.com/k.cgi?a=blahblah&f=henry_Xyteacake.force9.co.uk
> I subscribed using the email address [EMAIL PROTECTED]
> They appear to have translated the "@" symbol to "_Xy".
> Any guess why? Is there a PHP function that does this translation for me? Is
> it some sort of standard?

That's something they did manually to their own standard.  The standard 
encoding for @ is %40.  Why?  Beats me.  They don't really need to.  
Encoding URL's can be done via urlencode() and urldecode().

If you want to do the same thing they're doing, you can use
str_replace(): http://www.php.net/manual/en/function.str-replace.php

Enjoy,

--Dan

-- 
   PHP classes that make web design easier
SQL Solution  |   Layout Solution   |  Form Solution
sqlsolution.info  | layoutsolution.info |  formsolution.info
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409

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




RE: [PHP] Expiring certain session data while keeping the session itself

2002-05-20 Thread Scott Hurring

What about something like this: (un-tested, just off the top
of my head)  It'll set a cookie the first time a user gets
to the page, and will then only re-load data every 75+ seconds
(from the time the user first loads data) -- and only updates
the cookie when data is re-loaded


if (date("U") > ($cookie_load+75)) {
print "fetch from DB";
SetCookie("cookie_load", date("U"));
}
else {
print "Loaded ($cookie_load), now ". date("U") ." -- NOT
fetching\n";
}

if (!$cookie_load)
SetCookie("cookie_load", date("U"));

---
Scott Hurring
Systems Programmer
EAC Corporation
[EMAIL PROTECTED]
Voice: 201-462-2149
Fax: 201-288-1515

> -Original Message-
> From: Chris Knipe [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 20, 2002 3:15 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Expiring certain session data while keeping the session
> itself
> 
> 
> Hiya, me again :-)
> 
> Is it possible to expire certain session data, while still keeping the
> session itself in tact?
> 
> Example...
> 
> $_SESSION['AlwaysTrue'] = "True";
> $_SESSION['ExpireThis'] = "10:20:00";
> 
> At 10:19:50 the session is registered.  AlwaysTrue must 
> remain True for as
> long as the session itself is true (as specified in the 
> documentation - this
> would be until the browser is closed, or after a certain 
> amount of inactive
> time).
> 
> However, at 10:20:00 (10 seconds later), I want the 
> ExpireThis value of the
> session, to be destroyed, without having to de-register the 
> entire session
> (this would then also destroy the AlwaysTrue value...
> 
> Am I right in presuming this cannot be done, and I'll have to 
> come up with
> my own little function to do this with?  If so, how can I see 
> at what time a
> session variable was written, or would I need to register the 
> time that the
> session variable was set to the session as well?  For instance
> 
> $_SESSION['AlwaysTrue'] = "True";
> $_SESSION['ExpireThis'] = "10:20:00";
> $_SESSION['ExpireThisTime'] = "10:19:50";
> 
> Then, just do a comparison, and if ExpireThisTime is past 
> 10:20:00, then
> just delete that one variable...
> 
> There's no easier / better way to do this ??
> 
> Basically, I'm needing something like this to bring down the number of
> possible database queries.  I have a application which will have new
> information in a database, every 75 seconds.  The queries are 
> performed on
> every single page that a user is logged in to on a site.  To 
> make sure that
> the same queries is not issued over and over on the database, 
> I want to
> implement some sort of caching where I will only need to do 
> another query
> after the database received new information (every 75 
> seconds).  It's all
> numbers (integers), so I was thinking It may well work if 
> I can save
> these values to session data, and then just "refresh" the 
> session data every
> 75 seconds  The problem is, there's lots of other 
> information saved to
> the session as well, which I cannot afford to loose with a possible
> session_destroy()..
> 
> --
> me
> 
> 
> 
> 
> -- 
> 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: PHP & Excel

2002-05-20 Thread Evan

Have a look at my post of 17/05/2002, I got a lot of help from there.

Bye,
Evan


"Jean-Louis Letortorec" <[EMAIL PROTECTED]> ha scritto nel
messaggio 615315231286D21182E40008C7B1EED241EDF7@COMPAQ3000">news:615315231286D21182E40008C7B1EED241EDF7@COMPAQ3000...
> Hello every one:
>
> I'm trying to create XLS files on the fly.
> I found BiffWriter. Looks great for adding texts and numbers, but not
> formulas.
>
> Has anyone implemented something about formulas?
>
> Thanks.



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




Re: [PHP] xml parsing

2002-05-20 Thread Analysis & Solutions

Hi:

To be honest, I don't feel like wading through their example to figure
out what's wrong.  The way they're parsing doesn't seem very efficient
to me.  Check this tutorial/example out:
   http://www.analysisandsolutions.com/code/phpxml.htm

Way cleaner and straight ahead.

Enjoy,

--Dan

-- 
   PHP classes that make web design easier
SQL Solution  |   Layout Solution   |  Form Solution
sqlsolution.info  | layoutsolution.info |  formsolution.info
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409

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




RE: [PHP] Any Ideas "@" becomes "_Xy"

2002-05-20 Thread Scott Hurring

> -Original Message-
> From: Analysis & Solutions [mailto:[EMAIL PROTECTED]]
> Subject: Re: [PHP] Any Ideas "@" becomes "_Xy"
> 
> On Sat, May 18, 2002 at 11:45:49AM +0100, Henry wrote:
> > 
> > 
> http://GetResponse.com/k.cgi?a=blahblah&f=henry_Xyteacake.force9.co.uk
> > I subscribed using the email address [EMAIL PROTECTED]
> > They appear to have translated the "@" symbol to "_Xy".
> > Any guess why? Is there a PHP function that does this 
> translation for me? Is
> > it some sort of standard?
> 
> That's something they did manually to their own standard.  
> The standard 
> encoding for @ is %40.  Why?  Beats me.  They don't really need to.  
> Encoding URL's can be done via urlencode() and urldecode().
> 
> If you want to do the same thing they're doing, you can use
> str_replace(): http://www.php.net/manual/en/function.str-replace.php
> 
> Enjoy,
> 
> --Dan

Perhaps they did it to thwart "smart" spambots that can
translate "%40" to "@".

---
Scott Hurring
Systems Programmer
EAC Corporation
[EMAIL PROTECTED]
Voice: 201-462-2149
Fax: 201-288-1515

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




Re: [PHP] Read a var from stdin

2002-05-20 Thread Analysis & Solutions

On Sun, May 19, 2002 at 12:38:36AM -0500, Miguel Cruz wrote:
> On Sat, 18 May 2002, Rafael Perazzo wrote:
> > Is there any way to ask the user to type the value of
> > a variable from stdin ? (like read in Pascal, or scanf
> > in C). I'm using PHP from command line. 
> 
>   $f = fopen('php://stdin', 'r'); // this line answers your question

Just in case Rafael is asking about how to read items put into the 
command line, use the $argv array.

Enjoy,

--Dan

-- 
   PHP classes that make web design easier
SQL Solution  |   Layout Solution   |  Form Solution
sqlsolution.info  | layoutsolution.info |  formsolution.info
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409

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




Re: [PHP] Refresh doesn't work

2002-05-20 Thread Bogdan Stancescu

Do you really need that 3 second delay? You can use a location header 
instead...

Bogdan

Olexandr Vynnychenko wrote:

>Hello Thalis,
>
>Monday, May 20, 2002, 10:51:57 PM, you wrote:
>
>TAK> Have you tried creating HTML with the equivalent META header?
>
>TAK> 
>TAK> 
>TAK> 
>
>TAK> Does it work for you?
>
>TAK> cheers,
>TAK> thalis
>
>TAK> On Mon, 20 May 2002, Olexandr Vynnychenko wrote:
>
>>>Hello php-general,
>>>
>>>  Has anyone else here the same proplem as I have? I write in my php:
>>>
>>>header("Refresh: 3; url=newpage.php");
>>>
>>>Netscape 4.79 works fine and goes to page.php after 3 seconds pass.
>>>But IE 6 doesn't want to do that. Can anyone explain such a wonderful
>>>behavior?
>>>
>
>Of course, it works. But I wanted to do it by HTTP headers because I
>generate HTML from XML thru XSLT, so I don't want to dig in there.
>
>I just wanted to know if it's usual for IE of any version, or it's
>something wrong with my IE6 on WinXP.
>
>




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




[PHP] Calling Compiled File From PHP File

2002-05-20 Thread Bruce Miller

I have an algorithm that I don't want anyone to see; therefore I can't put
it in a php file. Is there a way I can create a compiled file containing the
algorithm/method that a php file can call? I see information on creating
extensions--is this the way to go? If so, it looks like there's php source
code for UNIX available. How about Win32?

Bruce



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




Re: [PHP] Calling Compiled File From PHP File

2002-05-20 Thread Rasmus Lerdorf

Yes, building a small custom extension is the way to go.  And the source
tree is the same for UNIX and Windows.

On Mon, 20 May 2002, Bruce Miller wrote:

> I have an algorithm that I don't want anyone to see; therefore I can't put
> it in a php file. Is there a way I can create a compiled file containing the
> algorithm/method that a php file can call? I see information on creating
> extensions--is this the way to go? If so, it looks like there's php source
> code for UNIX available. How about Win32?
>
> Bruce
>
>
>
> --
> 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] Text file

2002-05-20 Thread Rodrigo

Hi guys:
 
What I need is a php file that will read a text file and show it on a
html file.
 
And it will also write to a text file, but at the end of the file.
 
Thanx, Rodrigo de Oliveira Costa.
 



[PHP] Re: A new GUI client for mySQL

2002-05-20 Thread Vinod Palan

hi ,
I saw this software its just query analyzer I would like users to have first
look @
http://www.anse.de/mysqlfront/

this is real good for managing mysql remotely
Thanks
Vinod

--
Vinod Palan A
Calypso Technology, Inc.
[EMAIL PROTECTED]
(415) 817-2463 Phone



"Ritesh Nadhani" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> greetings...
> Webyog has released mySQLyog, a win32 based Query
> analyzer. Its FREE and gives all the features that a
> mysql developer can ask for by a query analyzer.
> please visit www.webyog.com
> you can execute query of results of more than 10
> records, supports multiple query execution and you can
> export your data into XML, HTML and CSV and can also
> import form a text file.
> It also allows you to excute last query and lets you
> add your favourite query in a personal folder with one
> click of mouse. So you dont have to save it and open
> it.
> Please take a look at it and feel free to send your
> suggestions to [EMAIL PROTECTED]
> Ritesh
>
>
> __
> Do You Yahoo!?
> LAUNCH - Your Yahoo! Music Experience
> http://launch.yahoo.com



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




RE: [PHP] Text file

2002-05-20 Thread Scott Hurring

... so open up the text file and read it.

What problem are you having?  Are permissions set
correctly?  Are you making sure to escape "\" on Win?

---
Scott Hurring
Systems Programmer
EAC Corporation
[EMAIL PROTECTED]
Voice: 201-462-2149
Fax: 201-288-1515

> -Original Message-
> From: Rodrigo [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 20, 2002 4:57 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Text file
> 
> 
> Hi guys:
>  
> What I need is a php file that will read a text file and show it on a
> html file.
>  
> And it will also write to a text file, but at the end of the file.
>  
> Thanx, Rodrigo de Oliveira Costa.
>  
> 

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




[PHP] exec() sytem() problem with starting ext. prg

2002-05-20 Thread Alexander Saupe

Hello php-general,

on a LAMP server I have the following problem:

1. playing around I tried to execute the linux df (diskfree) command with
exec() or system() - no problem, works fine!
2. trying to start an application did not work!
- the application which I am trying to start can be started by anyone, here
are the user rights: -rwxrwxrwx1 1057521129 1052648 M?r 13 16:31
mldonkey
- the application is normally (from the console, no gui) started like this:
mldonkey > mldonkey.log &
- for testing I configured the Apache (in httpd.conf) as a user
- doing a little research (http://www.php.net/manual/en/ref.exec.php) I
tried this:
exec("php script.php parameters 2>dev/null >&- <&-
>/dev/null &");
Where...
...php is the path to your php script executer (php has to be specifically
complied to be to do this)
...script.php is the script
...parameters are none or more parameters
...2>dev/null redirects the stderr to a file
...<&- switches off the stdin
...>&- switches off the stdout
...>dev/null redirects all other output to the file dev/null
...& direct script to run in background
- played a little with the parameters and... nothing happened! ;-(

Help me please!

Maybe anybody knows, if this has something to do with user rights (I think
not)?
What do I have to do, if I want to send e.g. 'kill PID' Linux command (no
success here either)?

Thank's a lot, Alex



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




Re: [PHP] Text file

2002-05-20 Thread Miguel Cruz

On Mon, 20 May 2002, Rodrigo wrote:
> What I need is a php file that will read a text file and show it on a
> html file.
>  
> And it will also write to a text file, but at the end of the file.

Well, you're in luck; that's all very easy to do.

Are you having a specific problem with some aspect of it?

A good starting point is the PHP manual page for fopen().

miguel


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




Re: [PHP] exec() sytem() problem with starting ext. prg

2002-05-20 Thread Miguel Cruz

Have you checked is_readable() on the full pathname of the file? Perhaps 
one of the parent directories isn't accessible to the web server.

miguel

On Mon, 20 May 2002, Alexander Saupe wrote:

> Hello php-general,
> 
> on a LAMP server I have the following problem:
> 
> 1. playing around I tried to execute the linux df (diskfree) command with
> exec() or system() - no problem, works fine!
> 2. trying to start an application did not work!
> - the application which I am trying to start can be started by anyone, here
> are the user rights: -rwxrwxrwx1 1057521129 1052648 M?r 13 16:31
> mldonkey
> - the application is normally (from the console, no gui) started like this:
> mldonkey > mldonkey.log &
> - for testing I configured the Apache (in httpd.conf) as a user
> - doing a little research (http://www.php.net/manual/en/ref.exec.php) I
> tried this:
> exec("php script.php parameters 2>dev/null >&- <&-
> >/dev/null &");
> Where...
> ...php is the path to your php script executer (php has to be specifically
> complied to be to do this)
> ...script.php is the script
> ...parameters are none or more parameters
> ...2>dev/null redirects the stderr to a file
> ...<&- switches off the stdin
> ...>&- switches off the stdout
> ...>dev/null redirects all other output to the file dev/null
> ...& direct script to run in background
> - played a little with the parameters and... nothing happened! ;-(
> 
> Help me please!
> 
> Maybe anybody knows, if this has something to do with user rights (I think
> not)?
> What do I have to do, if I want to send e.g. 'kill PID' Linux command (no
> success here either)?
> 
> Thank's a lot, Alex
> 
> 
> 
> 


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




Re: [PHP] exec() sytem() problem with starting ext. prg

2002-05-20 Thread Rasmus Lerdorf

su - nobody (substitute your web server user id)
then try to run the command

The other problem can be that the app requires a TTY.

-Rasmus

On Mon, 20 May 2002, Alexander Saupe wrote:

> Hello php-general,
>
> on a LAMP server I have the following problem:
>
> 1. playing around I tried to execute the linux df (diskfree) command with
> exec() or system() - no problem, works fine!
> 2. trying to start an application did not work!
> - the application which I am trying to start can be started by anyone, here
> are the user rights: -rwxrwxrwx1 1057521129 1052648 M?r 13 16:31
> mldonkey
> - the application is normally (from the console, no gui) started like this:
> mldonkey > mldonkey.log &
> - for testing I configured the Apache (in httpd.conf) as a user
> - doing a little research (http://www.php.net/manual/en/ref.exec.php) I
> tried this:
> exec("php script.php parameters 2>dev/null >&- <&-
> >/dev/null &");
> Where...
> ...php is the path to your php script executer (php has to be specifically
> complied to be to do this)
> ...script.php is the script
> ...parameters are none or more parameters
> ...2>dev/null redirects the stderr to a file
> ...<&- switches off the stdin
> ...>&- switches off the stdout
> ...>dev/null redirects all other output to the file dev/null
> ...& direct script to run in background
> - played a little with the parameters and... nothing happened! ;-(
>
> Help me please!
>
> Maybe anybody knows, if this has something to do with user rights (I think
> not)?
> What do I have to do, if I want to send e.g. 'kill PID' Linux command (no
> success here either)?
>
> Thank's a lot, Alex
>
>
>
> --
> 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: imagecopy() no errors, but does nothing :-(

2002-05-20 Thread Evan

Here is how i fixed the problem:

//Adding logo
  $dst_im = @ImageCreateFromJPEG("../".$pathImg.$NomeFile);
  $src_im = @ImageCreateFromPNG("../imgsite/logoxmail.png");
  $dst_size = GetImageSize("../".$pathImg.$NomeFile);
  $src_size = GetImageSize("../imgsite/logoxmail.png");
  ImageCopy( $dst_im, $src_im, 0, $dst_size[1] - $src_size[1], 0, 0,
$src_size[0], $src_size[1]);
//***this makes the difference!
  ImageJPEG($dst_im,"../".$pathImg.$NomeFile);
  ImageDestroy($dst_im);

But now I have another question:
how to mantain the transparency of the png (src_im)?

Evan

"Evan" <[EMAIL PROTECTED]> ha scritto nel messaggio
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> What I'm planning to do is to add the logo of the site over every image
> uploaded.
> Here is the code after upload:
>
>   $dst_im = @ImageCreateFromJPEG ("../".$pathImg.$NomeFile);
>   $src_im = @ImageCreateFromJPEG ("../imgsite/logo.jpg");
>   $dst_size = GetImageSize("../".$pathImg.$NomeFile);//800x600
>   $src_size = GetImageSize("../imgsite/logo.jpg");//50x50
>   ImageCopy( $dst_im, $src_im, 150, 150, 0, 0, 50, 50);
>
> I don't get errors but it happens nothing to the original img ($dst_im).
> The image logo.jpg is 50x50 and the $dst_img is 800x600.
>
> Thanks for your help,
> Evan
>
>



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




[PHP] Re: Calling Compiled File From PHP File

2002-05-20 Thread Manuel Lemos

Hello,

On 05/20/2002 05:02 PM, Bruce Miller wrote:
> I have an algorithm that I don't want anyone to see; therefore I can't put
> it in a php file. Is there a way I can create a compiled file containing the
> algorithm/method that a php file can call? I see information on creating
> extensions--is this the way to go? If so, it looks like there's php source
> code for UNIX available. How about Win32?

Yes,


-- 

Regards,
Manuel Lemos


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




[PHP] Sane path? Avoiding people climbing in directory structure ../../

2002-05-20 Thread Jimmy Lantz

Hi,
I'm planning on using userinput as a part of path to read (horrific I know :)
So to make this userinput a bit more secure I'm thinking to use
$path = escapeshellarg($path);
$path = str_replace("../","",$path);

I'm thinking to use a basedir in a constant something like 
/usr/home/userdir  (this also being set in php.ini)
then add the userinput and then append that to the constant and then use 
opendir() on it.
I want to avoid people putting in nice little strings like ../../../etc/

Any other pointers?
/ Jim

Security is a state of mind not a sales arguement!

*** Secret behind flying=
Throw yourself at the ground and miss :-) 


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




[PHP] Re: Calling Compiled File From PHP File

2002-05-20 Thread Manuel Lemos

Hello,

On 05/20/2002 05:02 PM, Bruce Miller wrote:
 > I have an algorithm that I don't want anyone to see; therefore I 
can't put
 > it in a php file. Is there a way I can create a compiled file 
containing the
 > algorithm/method that a php file can call? I see information on creating
 > extensions--is this the way to go? If so, it looks like there's php 
source
 > code for UNIX available. How about Win32?

Yes, you  can use for instance APC which is a cache extension which in 
MMAP mode stores compiled code in files in disk the first time the files 
are executed. Then you may remove the original PHP script files and the 
compiled files will be used without the source files.

http://apc.communityconnect.com/


-- 

Regards,
Manuel Lemos


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




  1   2   >