[PHP] mixed

2002-10-30 Thread Shaun
Hi,

In asp there is a session timeout function that allows the session to
end after the session is INACTIVE for x seconds/minutes ! How do i do this
in php ?

Is there a way to open a php page in internet expl. without having a
url/adress bar
or a back and forward button , if so how do i go to work?

I asked this before, but say for instance - the user is busy on a secure
page , but without logging out he enters another url in the address bar.The
session
of my page , does it end or does the session carry to the next page ? If so
how can
i stop it ?

thanks , shaun!



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




Re: [PHP] Re: Yet another question

2002-10-30 Thread user
Besides that there is no reason to include the file after the use of the 
variable. When i started writing php i saw in every other program that 
the include was the first line in every function that needs it.
Like :
function test() {

		include("file");
.



Peter Houchin wrote:
try it and see .. though I am pretty sure that it won't work  unless you
define the variable else where in the file b4 calling it. other wise the
variable will either be blank or give you an error saying undefined variable
if it's used before the include.



-Original Message-
From: Trasca Ion-Catalin [mailto:tic2000@;home.ro]
Sent: Thursday, 31 October 2002 10:56 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: Yet another question


Yes, this works, but only if I include the file before the use of the
variable, but, what if I use the include() after the use of the variable?

--
Trasca Ion-Catalin
"Tjoumaidis" <[EMAIL PROTECTED]> wrote in message
news:3DBF8DE6.70701@;freemail.gr...


Yes if you include the file

include ("file");

then you can refer to any of the variables the file contains


Trasca Ion-Catalin wrote:


It's posible to call a variable from another file?

--
Trasca Ion-Catalin








--
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] XML to MS Word

2002-10-30 Thread Manuel Lemos
Hello,

On 10/31/2002 04:38 AM, Charles Wiltgen wrote:

Justin French wrote...



I'd say RTF is a format you're going to be able to come to grips with
quicker than .doc -- just take a look at the source of a word doc -- it's
pretty obscure!!!



And proprietary, and soon to be obsolete.  But Office 11 files will be XML
files.


RTF is not a closed format. Just dig in the Internet and you will find 
the specs. OTOH, Office 11 XML will not be understood by any of the 
previous Word version, if anything else for a while now.

--

Regards,
Manuel Lemos


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



Re: [PHP] XML to MS Word

2002-10-30 Thread Charles Wiltgen
Justin French wrote...

> I'd say RTF is a format you're going to be able to come to grips with
> quicker than .doc -- just take a look at the source of a word doc -- it's
> pretty obscure!!!

And proprietary, and soon to be obsolete.  But Office 11 files will be XML
files.

-- 
Charles Wiltgen

   "Well, once again my friend, we find that science is a two-headed beast.
One head is nice, it gives us aspirin and other modern conveniences...
but the other head of science is bad!  Oh beware the other head of
science...it bites!" -- The Tick





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




Re: [PHP] .htaccess and mod rewrite.

2002-10-30 Thread John Nichel
.htaccess only works for the document root directory and below.  You 
could try making a symbolic link to the directory in the document root 
(I don't know if this will work).

Brendon G wrote:
I was looking over a tutorial on Php builder on making search engine
friendly sites.   While i got the concept of the tutorial and have it
working here.  I was wondering is it possible to get a php script to run out
of the home directory of apache.

tutorial: http://www.phpbuilder.com/columns/tim19990117.php3?page=1


in the tut they redirect any calls to files in /local/ to a php file in the
root of the site.

I'd like to if possible redirect it to script that's stored outside of the
home folder for apache.

Why you ask?
1.   One file to update for any number of websites.
2.   So clients don't go touching it. (i know permissions could solve this.
but the reason one is more important.)


In my .htaccess in the root of the site i have

Options +FollowSymLinks
RewriteEngine On
RewriteRule local.*$ local.php

Works fine..

but when i change it to a directory outside of the root it never gets to
process or give an error.


Any ideas?  is it possible?

Cheers

Brendon








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




[PHP] .htaccess and mod rewrite.

2002-10-30 Thread Brendon G
I was looking over a tutorial on Php builder on making search engine
friendly sites.   While i got the concept of the tutorial and have it
working here.  I was wondering is it possible to get a php script to run out
of the home directory of apache.

tutorial: http://www.phpbuilder.com/columns/tim19990117.php3?page=1


in the tut they redirect any calls to files in /local/ to a php file in the
root of the site.

I'd like to if possible redirect it to script that's stored outside of the
home folder for apache.

Why you ask?
1.   One file to update for any number of websites.
2.   So clients don't go touching it. (i know permissions could solve this.
but the reason one is more important.)


In my .htaccess in the root of the site i have

Options +FollowSymLinks
RewriteEngine On
RewriteRule local.*$ local.php

Works fine..

but when i change it to a directory outside of the root it never gets to
process or give an error.


Any ideas?  is it possible?

Cheers

Brendon




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




Re: [PHP] Re: Plug-in strategies?

2002-10-30 Thread Charles Wiltgen
Manuel Lemos wrote...

>> Does anyone know of articles that discuss best practices for supporting
>> plug-ins?  I searched for a while, but there doesn't seem to be anything out
>> there.
> 
> Use a base class to implement the common plugin API (generalization)...
> You may want to take a look at Metabase...
> You may also want to look into MetaL...

Thank you for the advice and pointers!   :^)

-- 
Charles Wiltgen

   "Well, once again my friend, we find that science is a two-headed beast.
One head is nice, it gives us aspirin and other modern conveniences...
but the other head of science is bad!  Oh beware the other head of
science...it bites!" -- The Tick





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




Re: [PHP] test

2002-10-30 Thread Khalid El-Kary
hey it's a PHP mailing list, people here are developers, you must send 
something with action inside it like this

"Testing 5 Testing 5"
"Testing and awaiting for server response" even if youa ren't awaiting
"Loading ..."

:))




_
Get faster connections -- switch to MSN Internet Access! 
http://resourcecenter.msn.com/access/plans/default.asp


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



Re: [PHP] test

2002-10-30 Thread Leif K-Brooks
I'll give you one instead...
setcookie("yourcookie","here it is!");

John Meyer wrote:

>Do I get a cookie for passing this test?
>
>  
>

-- 
The above message is encrypted with double rot13 encoding.  Any unauthorized attempt 
to decrypt it will be prosecuted to the full extent of the law.




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




RE: [PHP] test

2002-10-30 Thread John Meyer
Do I get a cookie for passing this test?

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




[PHP] test

2002-10-30 Thread joskey
test


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


[PHP] problem with global vars

2002-10-30 Thread Tomas Kubis
Hello,
 I have big problem. I upgraded PHP from 4.1.2 to 4.2.3 and my scripts with
doesn´t work. Please help me!
in php.info register globals=On

For example I have one script:
first.php


second.php



Where I have a bug?

Thank you very much

Tomas Kubis



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




[PHP] Problems with sessions

2002-10-30 Thread Tomas Kubis
Hello,
 I have big problem. I upgraded PHP from 4.1.2 to 4.2.3 and my scripts with
doesn´t work. Please help me!
in php.info register globals=On

I have two sripts:

first.php


second.php



In second.php ID is empty; but in previous version of php work it ok??

thanks
Tomas Kubis



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




[PHP] test

2002-10-30 Thread joskey
test


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


[PHP] Re: a new XML Parser!

2002-10-30 Thread Manuel Lemos
Hello,

On 10/31/2002 03:02 AM, Khalid El-Kary wrote:

just now i have finished a website showing a XML parser which i wrote, 
do you want to have a look? come in, it's free! :))

http://creaturesx.ma.cx/kxparse/

If you are looking for getting greater exposure to you work, try 
uploading it with some nice examples and documentation to the PHP 
Classes site. Once it is publish about 50,000 users eager to know about 
new classes will receive a e-mail notification telling them about your 
class.

http://www.phpclasses.org/

--

Regards,
Manuel Lemos


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



[PHP] a new XML Parser!

2002-10-30 Thread Khalid El-Kary
hi,

just now i have finished a website showing a XML parser which i wrote, do 
you want to have a look? come in, it's free! :))

http://creaturesx.ma.cx/kxparse/

yours,
khalid





_
Get a speedy connection with MSN Broadband.  Join now! 
http://resourcecenter.msn.com/access/plans/freeactivation.asp


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



[PHP] Re: Plug-in strategies?

2002-10-30 Thread Manuel Lemos
Hello,

On 10/31/2002 02:21 AM, Charles Wiltgen wrote:

Does anyone know of articles that discuss best practices for supporting
plug-ins?  I searched for a while, but there doesn't seem to be anything out
there.


Use a base class to implement the common plugin API (generalization). 
The develop sub-classes that override the functions and variables of 
that API to provide the different plug-ins. Use a factory function to 
decide which plugin sub-class to create based on a argument.

You may want to take a look at Metabase that is a database abstraction 
package that supports many databases using this design pattern.

http://www.phpclasses.org/metabase

You may also want to look into MetaL which is a meta-programming 
compiler that has many modules that implement different compiler 
functionality as defined by bindings configuration in XML:

http://www.meta-language.net/

--

Regards,
Manuel Lemos


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



Re: [PHP] Multiple Addresses Mailer

2002-10-30 Thread Manuel Lemos
Hello,

On 10/31/2002 01:30 AM, Olinux wrote:

The best solution would probably be to send each email
by itself or do the actual sending thru a mailing list
program. 

BCC works great, but a lot of spam filters will catch
it - plus some shared servers have a limit on the
number of BCC's on a single mail piece. 

You are contradicting yourself. Most mailing list programs put all 
recipients in Bcc: and queue only on message, so it is the same thing 
that you are recommending against and for it.

Spam filters that discard messages which the recipients are in Bcc: are 
wrong, just like everybody that filters messages with general criteria 
like that. Anyway, it is their problem if they discard messages arbitrarily.

Some ISP of shared servers disallow messages sent to many recipients 
regardless if you send them with recipients in Bcc or in separate 
messages. Sending in separate messages gives more load to the server and 
takes much longer to queue so it may annoy your ISP than just sending 
all in Bcc.

You need to check with the ISP if sending to many recipients respects 
the acceptable use policy. If they don't accept bulk mailing, it doesn't 
matter the method you use.

--

Regards,
Manuel Lemos


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



[PHP] Plug-in strategies?

2002-10-30 Thread Charles Wiltgen
Hello,

Does anyone know of articles that discuss best practices for supporting
plug-ins?  I searched for a while, but there doesn't seem to be anything out
there.

-- 
Charles Wiltgen

   "Well, once again my friend, we find that science is a two-headed beast.
One head is nice, it gives us aspirin and other modern conveniences...
but the other head of science is bad!  Oh beware the other head of
science...it bites!" -- The Tick





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




Re: [PHP] Php web hosting

2002-10-30 Thread John Nichel
Wow, that's not bad.  About half of what I pay (the $200 for the first 
year part).  Do you use them?  I'm with www.jtlnet.com right now, and am 
satisfied with their service, but for that kind of money, I'd switch if 
I didn't have to sacrifice service.  Their site claims that they're 
using PHP 4.04, do you know if this is correct?  JTL is using 4.2.2, so 
I'd have to check if anything I'm using wouldn't work properly on 4.04. 
 If you're using them, do you have a phpinfo link I can look at?

http://www.by-tor.com/phpinfo.php

Rick Emery wrote:
www.nomonthlyfees.com
600 megs space
6 gig bandwidth
5 mysql databases
unlimited email addresses
ssl
ssh
$200 for first year; $70 per year thereafter.  Fee includes domain registration

Fast tech support turnaround

- Original Message - 
From: "Steve Jackson" <[EMAIL PROTECTED]>
To: "Php-General" <[EMAIL PROTECTED]>
Sent: Wednesday, October 30, 2002 12:36 PM
Subject: [PHP] Php web hosting


Anyone like to recommend a good host with good uptime for a high traffic
site?
The host would need excellent technical support as well as be feature rich
(Multiple MySQL database support/listserver/SSL support etc.)

I have been trying out phpwebhosting.com and they seem very good but I am
not happy with their technical support which is very slow response time. We
are based in Europe and they are in the US which might lead to problems as
they haven't answered any of our queries. Saying that they have a good
automated process in place which is easy to use.

Anyone out there have high volume sites with a feature rich hosting
solution?

Any examples of Phpwebhosting welcomed as well.

regards
steve.






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




Re: [PHP] Multiple Addresses Mailer

2002-10-30 Thread olinux
The best solution would probably be to send each email
by itself or do the actual sending thru a mailing list
program. 

BCC works great, but a lot of spam filters will catch
it - plus some shared servers have a limit on the
number of BCC's on a single mail piece. 

olinux


--- Rick Emery <[EMAIL PROTECTED]> wrote:
> Put all addressees in the BCC??
> 
> - Original Message - 
> From: "Pushpinder Singh Garcha"
> <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, October 30, 2002 1:47 PM
> Subject: [PHP] Multiple Addresses Mailer
> 
> 
> Hi All
> 
> I am creating a mailing list system in which I
> should be able to 
> broadcast a message to  multiple recipients
> I am using the mail() function and putting all the
> recipients names in 
> the "to" argument separated by commas. When I do
> this the mail goes to 
> all the people but they come to know that it was
> sent to others as well.
> 
> I want to be able to send mail so that each
> recipient thinks that this 
> mail was ONLY sent to him/her.
> 
> Thanks
> --pS
> 
> Pushpinder Singh Garcha
> 
> 
> -- 
> 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
> 


__
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/

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




RE: [PHP] Re: File Random Access

2002-10-30 Thread Mark Charette
-Original Message-
From: David Robley [mailto:robleyd@;paradise.net.nz]
I'm going to stick my neck out here - as I understand it, this is not an
omission in php, rather it is a restriction of the underlying OS/file
system.  To the best of my knowledge, neither the FAT
based system of M$DOS or e2fs under *nix will allow random access _to the
contents of a specific file_ without the need to read/rewrite the
entire file. Is there in fact any file system that allows this?

All of the file systems I have ever worked with over the last 25 years allow
random read/writes (via calls similar to fseek() ); however, random writes
involve fixed-length blocks if you want to re-write in place. PHPs fseek()
will allow you to do random read/writes on fixed length blocks just like the
underlying C call.

Variable length blocks (say, those ending in random new lines) are by
definition non-deterministic; therefore re-writes in place are impossible
without OS help in inter-block jumps/relinks and the subsequent waste of
file space. The Pick O/S from a long time back allowed something like this
if I remember right (Pick Systems is now RainingData markets a high-end
database)  .

Mark C.


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




Re: [PHP] [Fwd: Problem about pear]

2002-10-30 Thread EdwardSPL
Hello,

After I do"'updatedb' then 'locate PEAR', I found there is
"/usr/share/pear/PEAR"...
BUT I found /etc/php.ini :

;
; Paths and Directories ;
;

; UNIX: "/path1:/path2"
include_path = ".:/php/includes:/usr/share/php"
;

I want to know why there is the mistake about the "php.ini" ?
So, can you help me more ?

Thank a lots.

Edward.


Jonathan Sharp wrote:

> try:
> 'locate PEAR' if it doesn't show up do 'updatedb' then 'locate PEAR'
>
> mine is /usr/lib/php/PEAR (Gentoo)
>
> -js
>
> [EMAIL PROTECTED] wrote:
> >
> > 
> >
> > Subject:
> > Problem about pear
> > From:
> > [EMAIL PROTECTED]
> > Date:
> > Thu, 31 Oct 2002 02:02:45 +0800
> > To:
> > [EMAIL PROTECTED]
> >
> >
> > Hello,
> >
> > My System is Redhat Linux 7.2...
> > I can't to find where is the path of pear under the system...
> > So, can you help me ?
> >
> > Thank a lots.
> >
> > Edward.



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




[PHP] About IMP 3.1 under Redhat 7.2

2002-10-30 Thread EdwardSPL
Hello,

Sorry, I'm off topic ( due to I can't send mail to [EMAIL PROTECTED]
)...
If you are using IMP 3.1 under Redhat 7.2, can you help me about this
problem ?

Horde Database :
If I want to change the the name of database, user of database and
password...
Which files I need to modify ?

Thank a lots.

Edward.



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




Re: [PHP] Re: Looking for good ZIP Code / Latitude / Longitude table

2002-10-30 Thread Peter J. Schoenster
On 30 Oct 2002 at 17:11, Michael Zornek wrote:

> I can't really use that class. I'm looking for a table of zip codes,
> with relating lat and lon cords. I already wrote the calculation code.
> That PHP class is reliant on a web service which I'm not interested in.

Umm .. I bought such a database for a project I did. 

These people have what you want:

http://zipinfo.com/products/products.htm

Just an interesting link:

http://www.census.gov/geo/www/gazetteer/places.html

I was just trying to find something that I read had been done with 
Perl. I think maybe it was just for log analysis, anyhow, while 
searching I found this:

http://greatcircle.locallink.net/

kind of hokey site but how knows. They say they have a database for US$ 
9.95. I used the people above about 3 years ago and they are still in 
business, I like that.

Lots of stuff out there. Here is an interesting company:

http://www.mailerssoftware.com/zipcodesolutions/index.htm


Peter

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




[PHP] Re: File Random Access

2002-10-30 Thread David Robley
In article <00b601c2801a$a5c3e8e0$0500a8c0@honeybee>, 
[EMAIL PROTECTED] says...
> I never noticed before...there is no easy way to perform random-access read and 
>WRITE on a
> file.
> 
> I vote/recommend/suggest that this most basic functionality be added to the next 
>release
> of PHP.  This would not be an enhancement; rather, it is correcting a serious flaw.
> 
> Or am I missing something
> 
> - Original Message -
> From: "Marek Kilimajer" <[EMAIL PROTECTED]>
> To: "PHP" <[EMAIL PROTECTED]>
> Sent: Wednesday, October 30, 2002 6:28 AM
> Subject: Re: [PHP] write on the begin of a file
> 
> 
> There is no insert in fputs, you need to make a new file and then rename
> it to
> your old one, or build it in the memory and then overwrite it.
> 
> Sébastien Eckert -- Netika wrote:

I'm going to stick my neck out here - as I understand it, this is not an 
omission in php, rather it is a restriction of the underlying OS/file 
system.  To the best of my knowledge, neither the FAT 
based system of M$DOS or e2fs under *nix will allow random access _to the 
contents of a specific file_ without the need to read/rewrite the 
entire file. Is there in fact any file system that allows this?

Now I shall don my Nomex gear and await responses from those more 
knowledgeable :-)

Cheers
-- 
David Robley
Temporary Kiwi!

Quod subigo farinam

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




Re: [PHP] Re: XML to MS Word

2002-10-30 Thread Manuel Lemos
Hello,

On 10/31/2002 12:22 AM, Maxim Maletsky wrote:

Anyway, if you can generate RTF documents from your XML, just serve them 
with MS Word content type and .doc file name extension and MS Word will 
open them seeminglessly.


How limited is this method? Can it be pretty well formatted with enough
stylish features etc? Or it is going to be just what format is called:
"Rich but still - Text" ?


You can define absolutely any type of document part in RTF because 
Microsoft developed RTF to export any Word document version. BTW, RTF is 
a markup language too.


--

Regards,
Manuel Lemos


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



Re: [PHP] [Fwd: Problem about pear]

2002-10-30 Thread EdwardSPL
Hello,

I just check my system...
I  found there is no "/usr/lib/php/PEAR"...
So, what can I do about the problem ?

BTW, are you using imp ( Webmail ) under Redhat 7.2 ?

Thank a lots.

Edward.

Jonathan Sharp wrote:

> try:
> 'locate PEAR' if it doesn't show up do 'updatedb' then 'locate PEAR'
>
> mine is /usr/lib/php/PEAR (Gentoo)
>
> -js
>
> [EMAIL PROTECTED] wrote:
> >
> > 
> >
> > Subject:
> > Problem about pear
> > From:
> > [EMAIL PROTECTED]
> > Date:
> > Thu, 31 Oct 2002 02:02:45 +0800
> > To:
> > [EMAIL PROTECTED]
> >
> >
> > Hello,
> >
> > My System is Redhat Linux 7.2...
> > I can't to find where is the path of pear under the system...
> > So, can you help me ?
> >
> > Thank a lots.
> >
> > Edward.
> >
> >
> >
> >
> >
> >
> >



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




RE: [PHP] XML to MS Word

2002-10-30 Thread John W. Holmes
> You are right about it - RTF is doable, I heard.
> 
> But, I still have to answer about the MS Word thingie.
> 
> Isn't there any tool to convert from, say, PDF to Word? Or like
> headers tricky?

I use this function to send a Word header instead of an HTML header. You
can then send just regular HTML and the user can choose to open or save
the "document"

##
#
# creates headers to send ms word file
#
##
function com_wordheader($filename = "download")
{
//ms word headers
header("Content-Type: application/vnd.ms-word; name='word'");
header("Content-Disposition: attachment; filename=" . $filename .
".doc");
}

---John Holmes...



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




RE: [PHP] Re: XML to MS Word

2002-10-30 Thread John W. Holmes
> Anyway, if you can generate RTF documents from your XML, just serve
them
> with MS Word content type and .doc file name extension and MS Word
will
> open them seeminglessly.

Or just send HTML with Word headers and Word will open it right up. Your
users won't even know it's HTML.

---John Holmes...



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




RE: [PHP] stupid me!!

2002-10-30 Thread Peter Houchin
thanks every one for your help.

> -Original Message-
> From: Leif K-Brooks [mailto:eurleif@;buyer-brokerage.com]
> Sent: Thursday, 31 October 2002 2:26 PM
> To: Peter Houchin
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] stupid me!!
> 
> 
> A variable can't have 4 values at once? :)
> 
> Peter Houchin wrote:
> 
> >howdy,
> >
> >can any one tell me what's wrong with this my mind is going a 
> miss on me..
> >
> >if ( $state == 'NSW' &&  $state == "QLD" && $state == "NT" &&  $state ==
> >"ACT"){
> >do sum stuff
> >}
> >else {
> >do other stuff
> >}
> >
> >TIA
> >
> >
> >Peter
> >"the only dumb question is the one that wasn't asked"
> >
> >
> >
> >  
> >
> 
> -- 
> The above message is encrypted with double rot13 encoding.  Any 
> unauthorized attempt to decrypt it will be prosecuted to the full 
> extent of the law.
> 
> 
> 
> 

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




Re: [PHP] stupid me!!

2002-10-30 Thread Timothy Hitchens (HiTCHO)
Well the && means and so this will never work!!


Timothy Hitchens (HiTCHO)
[EMAIL PROTECTED]


If you need PHP hosting with an experienced
support team 24/7 then email me today.

On Thu, 31 Oct 2002, Peter Houchin wrote:

> howdy,
>
> can any one tell me what's wrong with this my mind is going a miss on me..
>
> if ( $state == 'NSW' &&  $state == "QLD" && $state == "NT" &&  $state ==
> "ACT"){
> do sum stuff
> }
> else {
> do other stuff
> }
>
> TIA
>
>
> Peter
> "the only dumb question is the one that wasn't asked"
>
>
>
> --
> 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] XML to MS Word

2002-10-30 Thread Maxim Maletsky


On Wed, 30 Oct 2002 21:16:14 -0600 incoming <[EMAIL PROTECTED]> wrote:

> I'd go with RTF or PDF. I know there is a way to do PDF from inside of 
> PHP. That's the best you're going to get I think.

PDF are done with FOP and they work perfectly well.

> Even AbiWord and kword 
> have a difficult time with .doc files, whether reading or writing.(I 
> don't think kword writes, been away from the word processor for awhile, 
> w).

This is why I was guessing this:

Linux desktop application have this difficulty for the reason they are
Open Sources and have nothing MS inside. Now, whoever would want a word
file from our server would arrive to there with MS Office installed
locally. Would there be a way to count on it and output some XML/XSLT
with MS Office specific headers so the MS Word rendering is being done
on client? This would be the killer.

Am I dreaming?

-- 
Maxim Maletsky
[EMAIL PROTECTED]



> 
> Hope this helps.
> 
> -bahwi
> 
> Maxim Maletsky wrote:
> 
> >So, questions are:
> >
> >1. How doable is it creating a MS Word file from XML data being based on
> >Linux?
> >
> >2. Can XSL do that somehow combined with somewhat?
> >
> >3. Any relevant experiences and case studies? Anyone?
> >
> >4. Articles? Web resources? Discussions?
> >
> >5. A wild guess: can simple XSL be outputted with MS Word specific
> >output headers/meta tags to then let MS Office do the rest? (client-based?).
> >I found something about Smart Tags but got soon compatibility doubts.
> >
> >
> >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] stupid me!!

2002-10-30 Thread Leif K-Brooks
A variable can't have 4 values at once? :)

Peter Houchin wrote:


howdy,

can any one tell me what's wrong with this my mind is going a miss on me..

if ( $state == 'NSW' &&  $state == "QLD" && $state == "NT" &&  $state ==
"ACT"){
do sum stuff
}
else {
do other stuff
}

TIA


Peter
"the only dumb question is the one that wasn't asked"



 


--
The above message is encrypted with double rot13 encoding.  Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.




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




RE: [PHP] stupid me!!

2002-10-30 Thread Chris Kay

Below you force state to equal NSW, QLD, NT

I think what you are after is  "OR" not "AND"

|| = or
&& = and

-
Chris Kay (Systems Development)
Techex Communications
Website: www.techex.com.au Email: [EMAIL PROTECTED]
Telephone: 1300 88 111 2 - Fax: (02) 9970 5788
- 

-Original Message-
From: Peter Houchin [mailto:php@;vfsa.com.au] 
Sent: Thursday, 31 October 2002 2:31 PM
To: php_gen
Subject: [PHP] stupid me!!

howdy,

can any one tell me what's wrong with this my mind is going a miss on
me..

if ( $state == 'NSW' &&  $state == "QLD" && $state == "NT" &&  $state ==
"ACT"){
do sum stuff
}
else {
do other stuff
}

TIA


Peter
"the only dumb question is the one that wasn't asked"



-- 
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: XML to MS Word

2002-10-30 Thread Maxim Maletsky

> If your server is running under Windows, you can use COM objects for 
> generating MS Word documents.

No way it's windows :)
There is VMWare though, i might consider that. It is actually used for
something similar. yet, I still have to research on direct MSWord
generation.

> Anyway, if you can generate RTF documents from your XML, just serve them 
> with MS Word content type and .doc file name extension and MS Word will 
> open them seeminglessly.

How limited is this method? Can it be pretty well formatted with enough
stylish features etc? Or it is going to be just what format is called:
"Rich but still - Text" ?

-- 
Maxim Maletsky
[EMAIL PROTECTED]


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




[PHP] stupid me!!

2002-10-30 Thread Peter Houchin
howdy,

can any one tell me what's wrong with this my mind is going a miss on me..

if ( $state == 'NSW' &&  $state == "QLD" && $state == "NT" &&  $state ==
"ACT"){
do sum stuff
}
else {
do other stuff
}

TIA


Peter
"the only dumb question is the one that wasn't asked"



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




Re: [PHP] XML to MS Word

2002-10-30 Thread Maxim Maletsky

You are right about it - RTF is doable, I heard.

But, I still have to answer about the MS Word thingie.

Isn't there any tool to convert from, say, PDF to Word? Or like
headers tricky?

Thanks, Justin.


---
Maxim Maletsky
[EMAIL PROTECTED]


www.PHPBeginner.com  // PHP for Beginners
www.maxim.cx // my Home

// my Wish List: ( Get me something! )
http://www.amazon.com/exec/obidos/registry/2IXE7SMI5EDI3


On Thu, 31 Oct 2002 14:07:59 +1000 Justin French <[EMAIL PROTECTED]> wrote:

> I'd say RTF is a format you're going to be able to come to grips with
> quicker than .doc -- just take a look at the source of a word doc -- it's
> pretty obscure!!!
> 
> Justin
> 
> 
> on 31/10/02 1:01 PM, Maxim Maletsky ([EMAIL PROTECTED]) wrote:
> 
> > 
> > Guys,
> > 
> > The other day, one of my clients asked me this very tricky question:
> > 
> > "Can we also use that XML data for making MS Word (.doc) files?"
> > 
> > Our system is designed to produce XML output independently to then later
> > transform it into HTML with PHP/XSLT and PDF with FOP. Now, the client
> > also wants MS Word.
> > 
> > I doubted he could, but my intuition suggested me to research on it.
> > Without any luck so far.
> > 
> > Does anyone know if there is any possibility doing it? I looked on web
> > but did not really find anything.
> > 
> > 
> > So, questions are:
> > 
> > 1. How doable is it creating a MS Word file from XML data being based on
> > Linux?
> > 
> > 2. Can XSL do that somehow combined with somewhat?
> > 
> > 3. Any relevant experiences and case studies? Anyone?
> > 
> > 4. Articles? Web resources? Discussions?
> > 
> > 5. A wild guess: can simple XSL be outputted with MS Word specific
> > output headers/meta tags to then let MS Office do the rest? (client-based?).
> > I found something about Smart Tags but got soon compatibility doubts.
> > 
> > 
> > Thanks,
> 


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




Re: [PHP] XML to MS Word

2002-10-30 Thread incoming
I'd go with RTF or PDF. I know there is a way to do PDF from inside of 
PHP. That's the best you're going to get I think. Even AbiWord and kword 
have a difficult time with .doc files, whether reading or writing.(I 
don't think kword writes, been away from the word processor for awhile, 
w).

Hope this helps.

-bahwi

Maxim Maletsky wrote:

So, questions are:

1. How doable is it creating a MS Word file from XML data being based on
Linux?

2. Can XSL do that somehow combined with somewhat?

3. Any relevant experiences and case studies? Anyone?

4. Articles? Web resources? Discussions?

5. A wild guess: can simple XSL be outputted with MS Word specific
output headers/meta tags to then let MS Office do the rest? (client-based?).
I found something about Smart Tags but got soon compatibility doubts.


Thanks,

 



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




Re: [PHP] Variable over url

2002-10-30 Thread Leif K-Brooks
X.x No.  It's turned off for a reason: security.

Chris Shiflett wrote:


I think you mean turn on register_globals. :-)

Sascha Cunz wrote:


try

 echo $_GET['tmp'];
?>

or turn off register_globals in your php.ini file.

Am Mittwoch, 30. Oktober 2002 20:49 schrieb Manuel Jenne:
 

My Script:
Test.php



My URL:
www.some.domain/test.php?tmp=5

My result:

NOTHING !!!






--
The above message is encrypted with double rot13 encoding.  Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.




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




[PHP] Re: XML to MS Word

2002-10-30 Thread Manuel Lemos
Hello,

On 10/31/2002 12:01 AM, Maxim Maletsky wrote:

Guys,

The other day, one of my clients asked me this very tricky question:

"Can we also use that XML data for making MS Word (.doc) files?"

Our system is designed to produce XML output independently to then later
transform it into HTML with PHP/XSLT and PDF with FOP. Now, the client
also wants MS Word.

I doubted he could, but my intuition suggested me to research on it.
Without any luck so far.

Does anyone know if there is any possibility doing it? I looked on web
but did not really find anything.


If your server is running under Windows, you can use COM objects for 
generating MS Word documents.

Anyway, if you can generate RTF documents from your XML, just serve them 
with MS Word content type and .doc file name extension and MS Word will 
open them seeminglessly.


--

Regards,
Manuel Lemos


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



Re: [PHP] Variable over url

2002-10-30 Thread Chris Shiflett
I think you mean turn on register_globals. :-)

Sascha Cunz wrote:


try

 echo $_GET['tmp'];
?>

or turn off register_globals in your php.ini file.

Am Mittwoch, 30. Oktober 2002 20:49 schrieb Manuel Jenne:
 

My Script:
Test.php



My URL:
www.some.domain/test.php?tmp=5

My result:

NOTHING !!!




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




Re: [PHP] XML to MS Word

2002-10-30 Thread Justin French
I'd say RTF is a format you're going to be able to come to grips with
quicker than .doc -- just take a look at the source of a word doc -- it's
pretty obscure!!!

Justin


on 31/10/02 1:01 PM, Maxim Maletsky ([EMAIL PROTECTED]) wrote:

> 
> Guys,
> 
> The other day, one of my clients asked me this very tricky question:
> 
> "Can we also use that XML data for making MS Word (.doc) files?"
> 
> Our system is designed to produce XML output independently to then later
> transform it into HTML with PHP/XSLT and PDF with FOP. Now, the client
> also wants MS Word.
> 
> I doubted he could, but my intuition suggested me to research on it.
> Without any luck so far.
> 
> Does anyone know if there is any possibility doing it? I looked on web
> but did not really find anything.
> 
> 
> So, questions are:
> 
> 1. How doable is it creating a MS Word file from XML data being based on
> Linux?
> 
> 2. Can XSL do that somehow combined with somewhat?
> 
> 3. Any relevant experiences and case studies? Anyone?
> 
> 4. Articles? Web resources? Discussions?
> 
> 5. A wild guess: can simple XSL be outputted with MS Word specific
> output headers/meta tags to then let MS Office do the rest? (client-based?).
> I found something about Smart Tags but got soon compatibility doubts.
> 
> 
> Thanks,


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




[PHP] XML to MS Word

2002-10-30 Thread Maxim Maletsky

Guys,

The other day, one of my clients asked me this very tricky question:

"Can we also use that XML data for making MS Word (.doc) files?"

Our system is designed to produce XML output independently to then later
transform it into HTML with PHP/XSLT and PDF with FOP. Now, the client
also wants MS Word.

I doubted he could, but my intuition suggested me to research on it.
Without any luck so far.

Does anyone know if there is any possibility doing it? I looked on web
but did not really find anything.


So, questions are:

1. How doable is it creating a MS Word file from XML data being based on
Linux?

2. Can XSL do that somehow combined with somewhat?

3. Any relevant experiences and case studies? Anyone?

4. Articles? Web resources? Discussions?

5. A wild guess: can simple XSL be outputted with MS Word specific
output headers/meta tags to then let MS Office do the rest? (client-based?).
I found something about Smart Tags but got soon compatibility doubts.


Thanks,

-- 
Maxim Maletsky
[EMAIL PROTECTED]


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




Re: [PHP] Comma Delimited File and see results in PHP

2002-10-30 Thread Timothy Hitchens (HiTCHO)
Have a look at the http://www.php.net/manual/en/function.fgetcsv.php

Should be a good starting point for you!!


Timothy Hitchens (HiTCHO)
[EMAIL PROTECTED]


If you need PHP hosting with an experienced
support team 24/7 then email me today.

On Wed, 30 Oct 2002 [EMAIL PROTECTED] wrote:

> I have a comma delimited which I want to assign variables to and then echo the 
>variables to show the results.  Is this possible?  If so, how can this be done?
>
> Please help.
>
> Thanks, Ben
>
>
> --
> 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] Comma Delimited File and see results in PHP

2002-10-30 Thread benc
I have a comma delimited which I want to assign variables to and then echo the 
variables to show the results.  Is this possible?  If so, how can this be done?

Please help.

Thanks, Ben


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




Re: [PHP] Mutiple header statements?

2002-10-30 Thread dwalker
try setting the variable to match one of the IF statement criteria to see
what the result is.

-Original Message-
From: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
To: 1LT John W. Holmes <[EMAIL PROTECTED]>
Cc: Rick Emery <[EMAIL PROTECTED]>; [EMAIL PROTECTED]
<[EMAIL PROTECTED]>
Date: Wednesday, October 30, 2002 12:34 PM
Subject: Re: [PHP] Mutiple header statements?


>
>
>> WHAT IS THE ERROR?? It tells you _exactly_ in the header error message
where
>> the output was started. Look on or near that line because it caused some
>> output to the browser and now headers cannot be sent.
>>
>> ---John Holmes..
>
>
>Here's the code:
>
>header("Location: lotland1.php"); exit; } ?>
>
>header("Location: lotland2.php"); exit; } ?>
>
>
>
>and on from here
>
>Here's the error:
>
>Warning: Cannot add header information - headers already sent by
>(output started at script.php:4) in script.php on line 5
>
>Ed
>
>
>
>
>--
>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] Mutiple header statements?

2002-10-30 Thread dwalker
Could it be that the results return TRUE for both statements??? And it posts
the same variable twice???

-Original Message-
From: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
To: 1LT John W. Holmes <[EMAIL PROTECTED]>
Cc: Rick Emery <[EMAIL PROTECTED]>; [EMAIL PROTECTED]
<[EMAIL PROTECTED]>
Date: Wednesday, October 30, 2002 12:34 PM
Subject: Re: [PHP] Mutiple header statements?


>
>
>> WHAT IS THE ERROR?? It tells you _exactly_ in the header error message
where
>> the output was started. Look on or near that line because it caused some
>> output to the browser and now headers cannot be sent.
>>
>> ---John Holmes..
>
>
>Here's the code:
>
>header("Location: lotland1.php"); exit; } ?>
>
>header("Location: lotland2.php"); exit; } ?>
>
>
>
>and on from here
>
>Here's the error:
>
>Warning: Cannot add header information - headers already sent by
>(output started at script.php:4) in script.php on line 5
>
>Ed
>
>
>
>
>--
>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] Displaying one of three functions.

2002-10-30 Thread dwalker
You could try something less convoluted like:













NOTE:  the code between the IF and ENDIF will not be visible unless the
condition equates to TRUE
-Original Message-
From: Steve Jackson <[EMAIL PROTECTED]>
To: PHP General <[EMAIL PROTECTED]>
Date: Monday, October 28, 2002 8:14 AM
Subject: [PHP] Displaying one of three functions.


>I have three functions written which work and I want to only display one
>of them depending on user input.
>What is the correct way to code this?
>I can display all three functions but not one.
>
>this is my code:
>
>
>  include ('products_sc_fns.php');
>  // The shopping cart needs sessions, so start one
>  session_start();
>
>  do_html_header("Checkout");
>  // if filled out
>  if($cart&&$name&&$address&&$city&&$zip&&$country)
>
>  {
>// able to insert into database
>if( insert_order($HTTP_POST_VARS)!=false )
>{
>  file://display cart, not allowing changes and without pictures
>  display_cart($cart, false, 0);
>   calculate_weight($cart);
>   file://de-bug
>   file://echo "test & $country & $express";
>
>   display_shipping(calculate_shipping_cost($weight));
>   display_shipping(calculate_nonfinland_cost($country));
>   display_shipping(calculate_express_cost($express));
>   file://display_shipping(calculate_temp_shipping_cost($weight));
>  file://get credit card details
>   calculate_final_cost($total_price, $shipping);
>   get_order_id();
>   display_card_form($name, $final_cost);
>echo "background='images/shopbg.gif'> ";
>   echo "";
>  display_button("show_cart.php", "continue-shopping", "Continue
>Shopping");
>echo "";
>}
>else
>{
>  // error info and footer goes here.
>
>
>I want to display shipping if the user is from finland and paying an
>express cost
>display_shipping(calculate_express_cost($express));
>
>from finland but paying by weight of shipping
>display_shipping(calculate_shipping_cost($weight));
>
>or from outside of finland
>display_shipping(calculate_nonfinland_cost($country));
>
>How do I write the If statement to say if country=finland&express=yes
>display function 1
>then if country = finland but express="" display function 2 or if
>country isn't finland do 3?
>
>Tried all morning and repeatedly failed!
>
>
>Steve Jackson
>Web Developer
>Viola Systems Ltd.
>http://www.violasystems.com 
>[EMAIL PROTECTED]
>Mobile +358 50 343 5159
>
>
>
>
>


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


Re: [PHP] Decimal Places

2002-10-30 Thread dwalker



Fields("UnitPrice"), 2, -2, -2) ?>
-Original Message-
From: Andrew Wilson <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Tuesday, October 29, 2002 11:34 PM
Subject: [PHP] Decimal Places


>Hay guys,
>I have two variables ( integers ) that are being minused one from the other
>and i am printing the result to the screen but i am getting unwanted
>decimals.
>
>print ($eall - $sall) / 1000;
>
>My question is what is the easiest way to strip decimals off the above
>result. The only way i know around it is if i piped the above statement
into
>another varible and set that variable to an integer then printed that.
>
>I dont really want to do this as i will end up with 50 extra variables.
>Thanks in advance for your comments.
>
>Andrew Wilson
>Technical Support
>Netway Networks
>8920-8877
>
>
>Netway Networks Pty Ltd
>(T) 8920 8877
>(F) 8920 8866
>
>
>
>--
>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] geting date after x number of days

2002-10-30 Thread Peter Houchin
apologies to all 4 my laziness, I should have looked around 1st. I'm still
1/2 asleep .. but that's no excuse.. so sorry all :)


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




Re: [PHP] Free compiler for Win

2002-10-30 Thread R B
I want a php code compiler.
I wrote above visual studio 6.0 because i read in the mailking list archieve 
that it was posible with that software, but i want a good free compiler 
because i don't want to distribute my php code.

Thanks

RB


From: Stuart <[EMAIL PROTECTED]>
To: "R B" <[EMAIL PROTECTED]>
CC: [EMAIL PROTECTED]
Subject: Re: [PHP] Free compiler for Win Date: Thu, 31 Oct 2002 00:40:05 
+

On Wednesday, Oct 30, 2002, at 23:02 Europe/London, R B wrote:
I need to know how to compile php code with ms visual studio 6.0.


Do you want to compile PHP or PHP code? If you want to compile PHP itself 
full instructions are included in the source distribution. If you want to 
compile PHP code then I believe there are a couple about - Google should be 
able to find them for you - but I'm pretty sure none of them work within 
Visual Studio. If you are looking for a speed increase for a web site your 
best bet is the Zend accelerator: 
http://www.zend.com/store/products/zend-accelerator.php

I hope that helps.

--
Stuart


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


_
MSN Fotos: la forma más fácil de compartir e imprimir fotos. 
http://photos.msn.es/support/worldwide.aspx


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



Re: [PHP] Free compiler for Win

2002-10-30 Thread Stuart
On Wednesday, Oct 30, 2002, at 23:02 Europe/London, R B wrote:

I need to know how to compile php code with ms visual studio 6.0.


Do you want to compile PHP or PHP code? If you want to compile PHP 
itself full instructions are included in the source distribution. If 
you want to compile PHP code then I believe there are a couple about - 
Google should be able to find them for you - but I'm pretty sure none 
of them work within Visual Studio. If you are looking for a speed 
increase for a web site your best bet is the Zend accelerator: 
http://www.zend.com/store/products/zend-accelerator.php

I hope that helps.

--
Stuart


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



RE: [PHP] How to find future date?

2002-10-30 Thread John W. Holmes
Use strtotime() like someone else suggested. It's easier, but mktime
does work. If you read the whole manual page and comments, I'm sure
you'll see an example.

$date = strtotime("now + X days");

---John Holmes...

> -Original Message-
> From: scott [mailto:scott@;scottincz.com]
> Sent: Wednesday, October 30, 2002 5:25 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [PHP] How to find future date?
> 
> 
> Thanks
> 
> Can't get it to work, so open to other suggestions.
> Thanks anyway.
> 
> -Original Message-
> From: 1LT John W. Holmes [mailto:holmes072000@;charter.net]
> Sent: 30 October 2002 21:16
> To: ppf; [EMAIL PROTECTED]
> Subject: Re: [PHP] How to find future date?
> 
> 
> Take a look at mktime()
> 
> www.php.net/mktime
> 
> ---John Holmes...
> 
> - Original Message -
> From: "ppf" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, October 30, 2002 4:01 PM
> Subject: [PHP] How to find future date?
> 
> 
> >
> > Hi All:
> > I like to know is there any metrhod to find future
> > date ( for example 15 days from the today [sys date]). Basically i
am
> > looking for a method equivalent to datediff or dateadd in asp. I
hope
> > PHP will have some thing corresponding to this, I will really
> > appricate u r help, thanks in advance
> >   Prad
> >
> > __
> > Do you Yahoo!?
> > HotJobs - Search new jobs daily now
> > http://hotjobs.yahoo.com/
> >
> > --
> > 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 General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] geting date after x number of days

2002-10-30 Thread John W. Holmes
> I was wondering if someone could point me to a place where i can find
out
> how to or give me some pointers on  getting the day & date after x
number
> of
> days.. I'm also using getting the current date by
> 
> $date = date("D M d, Y ");

This question was already asked today... do a little searching.

$date = strtotime("now + X days");

---John Holmes...



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




Re: Fw: [PHP] Re: headers and cookies

2002-10-30 Thread rolf vreijdenberger
   what I found out in the meantime is that you CAN use cookies and headers,
just like you said, but my particular problem arose because a notice was
issued for an undefined variable;
I didn't check correctly for it's existence.
so any output, and also output like notices, warnings and errors, just
anything you might get in a development situation, outputs headers and the
consecutive calls to header() or setcookie() will fail.

for clarity, this was the output:
notice; undefined index: bla in file.php on line 162 #wrong check in if
condition
warning: cannot add header infromation - headers already sent by (output
started at file.php) in file.php on line 164#wetcookie call, but notice has
already been sent out, so this will fail



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




[PHP] paper size print problem

2002-10-30 Thread R B
I want to set up a specific size of paper to print a report.
I made this with a PDF document and in screen looks like the size that i 
need, but when i print it, the printer doesn't respect the size and always 
print with the letter or default acrobat size.
I check the printer properties and doesn't have a customs size option.

What can i do?

Thanks,

RB

_
MSN. Más Útil Cada Día http://www.msn.es/intmap/


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



[PHP] Re: infinate loops

2002-10-30 Thread Chris Knipe
Nevermind,

It was due to a inconsistency in the DB It's sorted :P

- Original Message -
From: "Chris Knipe" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 31, 2002 2:32 AM
Subject: infinate loops


> Lo,
>
> Quite desperate now... Or at least, I'm starting to get there... Can
anyone
> perhaps see why this loop is not exiting???
>
> $quit=$now;
> $glet=getdate($row['RenewDate']);
>
> // debug
> echo "howlong: " . $howlong;
>
> while($quit<$howlong) {
>
>   // debug
>   echo "quit: " . $quit . "";
>
>   $quit=mktime(0, 0, 0, $glet['mon']+$row['BillPeriod'], $glet['mday'],
> $glet['year']);
>   $retl+=$row['Cost'];
>   $glet=getdate($quit);
> }
>
>
> The values,
>
> $now = 1036360800 (mktime())
> $row['RenewDate'] = 1035928800 (MySQL DB - VARCHAR(12))
> $row['Cost'] = xx.xx (MySQL DB - DOUBLE(6,2))
>
> $howlong is defined further up
> $howlong=mktime(0, 0, 0, $_POST['month'], 1, $_POST['year'])
> where...
>   0 < $_POST['month'] > 12
>   2001 < $_POST['year'] > 2005
>
> From the debug (Browser output)...
> howlong: 1133388000 - now: 1036023598 (RenewDate: 1036360800)
> quit: 1036023598
> quit: 1036360800
> quit: 1036360800
> quit: 1036360800
>
> Thus, $quit is never incremented I'm *STUMPED* why not, or how to fix
> this? :((  Each time, PHP times out (Script execution time exceeded), and
it
> *always* gives a line number for the timeout, that is inside the above
while
> loop.  Hence, to my understanding, the loop never exits
>
> The loop, comes from cbms from voxel.net, stats.php
>
> Thanks for the help!
>
> --
> me
>


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




[PHP] Jump Menu

2002-10-30 Thread Trasca Ion-Catalin
How can I read the values from a jump menu?

--
Trasca Ion-Catalin



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




[PHP] infinate loops

2002-10-30 Thread Chris Knipe
Lo,

Quite desperate now... Or at least, I'm starting to get there... Can anyone
perhaps see why this loop is not exiting???

$quit=$now;
$glet=getdate($row['RenewDate']);

// debug
echo "howlong: " . $howlong;

while($quit<$howlong) {

  // debug
  echo "quit: " . $quit . "";

  $quit=mktime(0, 0, 0, $glet['mon']+$row['BillPeriod'], $glet['mday'],
$glet['year']);
  $retl+=$row['Cost'];
  $glet=getdate($quit);
}


The values,

$now = 1036360800 (mktime())
$row['RenewDate'] = 1035928800 (MySQL DB - VARCHAR(12))
$row['Cost'] = xx.xx (MySQL DB - DOUBLE(6,2))

$howlong is defined further up
$howlong=mktime(0, 0, 0, $_POST['month'], 1, $_POST['year'])
where...
  0 < $_POST['month'] > 12
  2001 < $_POST['year'] > 2005

>From the debug (Browser output)...
howlong: 1133388000 - now: 1036023598 (RenewDate: 1036360800)
quit: 1036023598
quit: 1036360800
quit: 1036360800
quit: 1036360800

Thus, $quit is never incremented I'm *STUMPED* why not, or how to fix
this? :((  Each time, PHP times out (Script execution time exceeded), and it
*always* gives a line number for the timeout, that is inside the above while
loop.  Hence, to my understanding, the loop never exits

The loop, comes from cbms from voxel.net, stats.php

Thanks for the help!

--
me


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




[PHP] Processing current file

2002-10-30 Thread Charles Wiltgen
Hello,

I'm a PHP newbie who needs to serve a custom file format and turn it into
valid XHTML.  I can imagine someone using a similar technique to remove all
comments from HTML files as they're being served, etc.

I've configured Apache so that it assigns the file extension to PHP and
prepends PHP code to create a pageServer object and call its render method.
So far, so good.

Now I need to process the file (minus the prepended PHP), and deliver the
XHTML result rather than the original file.  I'm thinking that there must be
an easy way to do this, and would appreciate any tips.

Thank you,

-- 
Charles Wiltgen

   "Well, once again my friend, we find that science is a two-headed beast.
One head is nice, it gives us aspirin and other modern conveniences...
but the other head of science is bad!  Oh beware the other head of
science...it bites!" -- The Tick





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




RE: [PHP] Re: Yet another question

2002-10-30 Thread Peter Houchin
try it and see .. though I am pretty sure that it won't work  unless you
define the variable else where in the file b4 calling it. other wise the
variable will either be blank or give you an error saying undefined variable
if it's used before the include.

> -Original Message-
> From: Trasca Ion-Catalin [mailto:tic2000@;home.ro]
> Sent: Thursday, 31 October 2002 10:56 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Re: Yet another question
>
>
> Yes, this works, but only if I include the file before the use of the
> variable, but, what if I use the include() after the use of the variable?
>
> --
> Trasca Ion-Catalin
> "Tjoumaidis" <[EMAIL PROTECTED]> wrote in message
> news:3DBF8DE6.70701@;freemail.gr...
> > Yes if you include the file
> >
> > include ("file");
> >
> > then you can refer to any of the variables the file contains
> >
> >
> > Trasca Ion-Catalin wrote:
> > > It's posible to call a variable from another file?
> > >
> > > --
> > > Trasca Ion-Catalin
> > >
> > >
> >
> >
>
>
>
> --
> 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: Yet another question

2002-10-30 Thread Trasca Ion-Catalin
Yes, this works, but only if I include the file before the use of the
variable, but, what if I use the include() after the use of the variable?

--
Trasca Ion-Catalin
"Tjoumaidis" <[EMAIL PROTECTED]> wrote in message
news:3DBF8DE6.70701@;freemail.gr...
> Yes if you include the file
>
> include ("file");
>
> then you can refer to any of the variables the file contains
>
>
> Trasca Ion-Catalin wrote:
> > It's posible to call a variable from another file?
> >
> > --
> > Trasca Ion-Catalin
> >
> >
>
>



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




[PHP] geting date after x number of days

2002-10-30 Thread Peter Houchin
howdy,

I was wondering if someone could point me to a place where i can find out
how to or give me some pointers on  getting the day & date after x number of
days.. I'm also using getting the current date by

$date = date("D M d, Y ");

TIA

Cheers

Peter
"the only dumb question is the one that wasn't asked"



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




[PHP] newbie question: need a script

2002-10-30 Thread Ikke
hi all,

I got a html page, on which I put a form, with quit a lot of questions (all
kinds: textboxes, dropdowns, check, radiobuttons, ...). Its for an online
survey Im doing.

Now Im looking for a php script that puts all the data in a textfile, the
moment someone clicks on Submit. It should write all data (also the values
of the radiobuttons and stuff) in one line in a textfile, the fields
seperated by  ;  eg. If there is a field left blank, there should also be a
blank field in the txtfile. (reason: i want to be able to import it in some
other programs). The next time someone fills in the form, id like the script
to open the file again and simply add a line, with the answers of this next
person.

Ive been looking everywhere, but didnt find nething that was of much use;
mainly there are a lot of scritps out there to mail the results to an
emailadress, but I want it in a txtfile.

I dont know how to write php, so perhaps someone could help me by telling me
where to find it... (Cant even read php, so configuration should be very
easy and clear)

Thanks a lot
Tharkis



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




Re: [PHP] Re: Looking for good ZIP Code / Latitude / Longitude

2002-10-30 Thread Manuel Lemos
Hello,

On 10/30/2002 07:11 PM, Michael Zornek wrote:

I've written a nice php/mysql site that let's you search for hospitals and
community colleges by zip code. The search is built upon some math that
figures out distances by a zip's lat and lon cords.

My problem is that my current ZIP table (bout 42,000 rows) seems to be
flawed. There are a ton of zip codes round california that have all the same
lat and lons. There are other dups as well. So I'm looking for some new
data.

Does anyone know a good source for this type of info?


This class may be used to figure the coordinates of a location given the
IP address of a computer (the user computer):

http://www.phpclasses.org/netgeoclass



I can't really use that class. I'm looking for a table of zip codes, with
relating lat and lon cords. I already wrote the calculation code. That PHP
class is reliant on a web service which I'm not interested in.


Maybe this other class is more like what you want.

http://ww.phpclasses.org/phpziplocator


--

Regards,
Manuel Lemos


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




Re: [PHP] POST-ing or GET-ing an array

2002-10-30 Thread rija
Why don't you launch your script once you are in the next page?
like:
"next"

So you don't have to get or post anything?

$sql = "select stuff from my_table";
$result = mysql_query($sql);
$count = 0;
 
while ($myrow = mysql_fetch_assoc($result)) {
$id = $myrow["id"];
$my_array[] = $id;
}

- Original Message - 
From: "Petre Agenbag" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 30, 2002 4:40 AM
Subject: [PHP] POST-ing or GET-ing an array


> Hi
> I KNOW I'm gonna get flamed, but I can't find this anywhere in my books
> or in the manual, yet I know I've read it somewhere.
> 
> I created an array in a loop as such:
> 
> $sql = "select stuff from my_table";
> $result = mysql_query($sql);
> $count = 0;
> 
> while ($myrow = mysql_fetch_assoc($result)) {
> $id = $myrow["id"];
> $my_array[$count] = $id;
> }
> 
> 
> Now, I want to send that array to another page with a normal:
> 
> Next
> 
> BUT, that obviously doesn't work...
> 
> Please just help me out, I'm suffering...
> 
> 
> 
> 
> -- 
> 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: Secure PHP Form

2002-10-30 Thread Nick Eby
be wary of IE on a macintosh, i seem to remember that IE5 on a mac has the
same nuts and bolts as IE4 on windows.  can anyone back me up on that?

"Pushpinder Singh Garcha" <[EMAIL PROTECTED]> wrote in message
news:9787EE5E-EC3E-11D6-A12B-003065DBDE68@;masterstream.com...
> hi all
>
> I am using a php form to collect credit card information from clients
> and so have hosted the page on a secure server i.e. https
> After filing out the form ...the browser displays a "confirmation page".
>
> I am using IE 5.2 on MAC OS Jaguar when I point IE to the secure
> site and submit the form I get this error
>
> "Security Failure Data Decryption Failure"
>
> When I used Mozilla browser...things worked fine and I got no such error
> Please help me
>
> thanks
> Pushpinder
>



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




[PHP] Re: CSS pulls me back in

2002-10-30 Thread Nick Eby
is Constants.inc in the same directory as Stylesheet.php?


"Liam Gibbs" <[EMAIL PROTECTED]> wrote in message
news:D64360C926B9F34F8B35F78D07B8E7A2716E23@;postman.dfait-maeci.gc.ca...
> Still having trouble with CSSs. Now it's a different error. Below is my
CSS
> code. For some reason, I can't get the CSS to access my Constants.inc file
> to grab my constants. Any ideas? The line by which I get my CSS is:
> print("   TYPE = \"TEXT/CSS\">\n");
>
>  require("Constants.inc");



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




Re: [PHP] Free compiler for Win

2002-10-30 Thread R B

I need to know how to compile php code with ms visual studio 6.0.

Thanks,

RB.



PHP is ANSI compliant, thus, theoretically, any compiler should be able
to build it.  Though, MS Visual Studio 6 is the one used for PHP windows
version.  That's not free.




_
Únete al mayor servicio mundial de correo electrónico: 
http://www.hotmail.com


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



Re: [PHP] convert int to string

2002-10-30 Thread Philip Olson

I would approach this by first going here:

  http://www.php.net/manual/

And go to the section on types:

  http://www.php.net/manual/en/language.types.php

In there is a section for type juggling:

  http://www.php.net/manual/en/language.types.type-juggling.php

>From these places you'll see various options, such as:

  $int = (string) $int;

  settype($int, 'string');

On a related note, all variables passed through HTTP
are strings.  See also is_numeric().

Regards,
Philip


On Wed, 30 Oct 2002, Jef wrote:

> How can I convert an integer variable to a string variable? I have checked
> PHP's website and I must not be looking for the right function. Any help
> please.
> 
> 
> 
> 
> Jef
> 
> 
> 
> -- 
> 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 find future date?

2002-10-30 Thread scott

Thanks

Can't get it to work, so open to other suggestions.
Thanks anyway.

-Original Message-
From: 1LT John W. Holmes [mailto:holmes072000@;charter.net] 
Sent: 30 October 2002 21:16
To: ppf; [EMAIL PROTECTED]
Subject: Re: [PHP] How to find future date?


Take a look at mktime()

www.php.net/mktime

---John Holmes...

- Original Message - 
From: "ppf" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 30, 2002 4:01 PM
Subject: [PHP] How to find future date?


> 
> Hi All:
> I like to know is there any metrhod to find future
> date ( for example 15 days from the today [sys date]). Basically i am 
> looking for a method equivalent to datediff or dateadd in asp. I hope 
> PHP will have some thing corresponding to this, I will really 
> appricate u r help, thanks in advance
>   Prad
> 
> __
> Do you Yahoo!?
> HotJobs - Search new jobs daily now
> http://hotjobs.yahoo.com/
> 
> --
> 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 find future date?

2002-10-30 Thread ppf
Thank you all
both mktime and strtotime () will achive the goal,
thank again 
   Prad

--- "1LT John W. Holmes" <[EMAIL PROTECTED]>
wrote:
> Take a look at mktime()
> 
> www.php.net/mktime
> 
> ---John Holmes...
> 
> - Original Message - 
> From: "ppf" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, October 30, 2002 4:01 PM
> Subject: [PHP] How to find future date?
> 
> 
> > 
> > Hi All:
> > I like to know is there any metrhod to find future
> > date ( for example 15 days from the today [sys
> date]).
> > Basically i am looking for a method equivalent to
> > datediff or dateadd in asp. I hope PHP will have
> some
> > thing corresponding to this, I will really
> appricate u
> > r help, thanks in advance
> >   Prad
> > 
> > __
> > Do you Yahoo!?
> > HotJobs - Search new jobs daily now
> > http://hotjobs.yahoo.com/
> > 
> > -- 
> > 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
> 


__
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/

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




[PHP] convert int to string

2002-10-30 Thread Jef
How can I convert an integer variable to a string variable? I have checked
PHP's website and I must not be looking for the right function. Any help
please.




Jef



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




Re: [PHP] Re: Looking for good ZIP Code / Latitude / Longitudetable

2002-10-30 Thread Michael Zornek
On 10/30/02 2:31 PM, Manuel Lemos said:

> On 10/30/2002 04:03 PM, Michael Zornek wrote:
>> I've written a nice php/mysql site that let's you search for hospitals and
>> community colleges by zip code. The search is built upon some math that
>> figures out distances by a zip's lat and lon cords.
>> 
>> My problem is that my current ZIP table (bout 42,000 rows) seems to be
>> flawed. There are a ton of zip codes round california that have all the same
>> lat and lons. There are other dups as well. So I'm looking for some new
>> data.
>> 
>> Does anyone know a good source for this type of info?
> 
> This class may be used to figure the coordinates of a location given the
> IP address of a computer (the user computer):
> 
> http://www.phpclasses.org/netgeoclass

I can't really use that class. I'm looking for a table of zip codes, with
relating lat and lon cords. I already wrote the calculation code. That PHP
class is reliant on a web service which I'm not interested in.

Thanks anyways,

~ Mike
-- 
http://www.mikezornek.com


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




Re: [PHP] Re: Strange intermittant errors

2002-10-30 Thread Jason Wong
On Thursday 31 October 2002 05:02, Peter Gordon wrote:
> Hi 1LT John W. Holmes, on the subject of Re: [PHP] Re: Strange intermittant
>
> errors, you said:
> > Is it alway the same error? Is it always a problem related to MySQL? If
> > it's intermittent like this and on simple queries, I'd say you have a
> > problem with MySQL, or the tranfer of data between MySQL and PHP. Are you
> > checking for a mysql_error() in these queries?
>
> Well, I've just chucked a load of debug in the page where it cropped up,
> printing out mysql error at every mysql call... but in accordance with sods
> law its just not happening again :) I'll keep trying...

Use error_log() to log any useful debugging info into a file. Then, if and 
when the error occurs all the pertinent info is ready and waiting for you in 
a file.

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

/*
I want to be the white man's brother, not his brother-in-law.
-- Martin Luther King, Jr.
*/


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




[PHP] File Upload - Dwindling connection

2002-10-30 Thread Andre Dubuc
I'm having big problems with uploading jpeg pictures from a calling form. 
What happens is that the htpps connection begins (usaully at a very low 
transfer rate -- somewhere around 900 b/s, and then dwindles rapidly to 200 - 
20 -10 b/s). The file doesn't appear in the upload or temp directory (file 
size was in the test case 500 bytes). 

I've properly encoded the page:



The actual upload code is placed almost at the beginning of the page (just 
after calling session_start).

The code:

 0) {

if ($_FILES['pix']['type'] == "image/jpeg") {

$pix_file = $_FILES['pix'][name];
$pix_temp_file = $_FILES['pix']['temp_name'];

$new_pix_file = "{$_SESSION['rid']}-{$_SESSION['sid']}.jpg";

if(is_uploaded_file($pix_temp_file)) {
move_uploaded_file($pix_temp_file, 
"pix_holding/$new_pix_file");

copy("pix_holding/$new_pix_file", "pix/$new_pix_file");
}
}
}
?>

Any ideas what what might cause a connection to dwindle and die like this? I 
can upload/download anywhere else except with this code. I'm using a Unix 
box, as well s my IP.  Directory/file permissions are OK and set to 755.

Tia, Andre


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




Re: [PHP] How to find future date?

2002-10-30 Thread Jason Wong
On Thursday 31 October 2002 05:01, ppf wrote:
> Hi All:
> I like to know is there any metrhod to find future
> date ( for example 15 days from the today [sys date]).
> Basically i am looking for a method equivalent to
> datediff or dateadd in asp. I hope PHP will have some
> thing corresponding to this, I will really appricate u
> r help, thanks in advance
>   Prad

strtotime()

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

/*
You are a fluke of the universe; you have no right to be here.
*/


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




Re: [PHP] Variable over url

2002-10-30 Thread Philip Olson
Read this:

  Variables from outside PHP:
  http://www.php.net/manual/en/language.variables.external.php

Some notes:

  a) Know your register_globals directive.
  b) register_globals defaults to off as of PHP 4.2.0.
  c) It's preferred not to rely on register_globals being on.
  d) Autoglobals, such as $_GET, became available in PHP 4.1.0.
  e) register_globals can be changed in php.ini or .htaccess
 but not ini_set().
  f) Many older scripts assume register_globals = on.
  g) This change is huge in the PHP world.
  h) register_globals affects web server vars too, so for
 example, $DOCUMENT_ROOT won't exist if it's off, 
 $_SERVER['DOCUMENT_ROOT'].  Same for PHP_SELF, etc.
  i) $_REQUEST can be useful, import_request_variables() too.

See also: 

  http://www.php.net/globals
  http://www.php.net/variables.predefined

Regards,
Philip Olson

On Wed, 30 Oct 2002, Manuel Jenne wrote:

> Hi,
>  
> I've just installed php 4.2.3 and wonder why I can't submit an variable
> over url.
>  
> Example:
>  
> My Script:
> Test.php
>  
>  echo $tmp;
> ?>
>  
> My URL:
> www.some.domain/test.php?tmp=5
>  
> My result:
>  
> NOTHING !!!
>  
> Where is the error?
>  
> P.S. phpmyadmin run ok.
>  
>  
> Thanx
>  
> Manuel
> 


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




RE: [PHP] Php web hosting

2002-10-30 Thread Edward Peloke
I am using

www.ht-tech.net for my php/mysql site.

Great guy and very knowledgeable, he offers a lot of monitoring services.

Eddie

-Original Message-
From: Rick Emery [mailto:remery@;emeryloftus.com]
Sent: Wednesday, October 30, 2002 3:51 PM
To: Php-General
Subject: Re: [PHP] Php web hosting


www.nomonthlyfees.com
600 megs space
6 gig bandwidth
5 mysql databases
unlimited email addresses
ssl
ssh
$200 for first year; $70 per year thereafter.  Fee includes domain
registration

Fast tech support turnaround

- Original Message -
From: "Steve Jackson" <[EMAIL PROTECTED]>
To: "Php-General" <[EMAIL PROTECTED]>
Sent: Wednesday, October 30, 2002 12:36 PM
Subject: [PHP] Php web hosting


Anyone like to recommend a good host with good uptime for a high traffic
site?
The host would need excellent technical support as well as be feature rich
(Multiple MySQL database support/listserver/SSL support etc.)

I have been trying out phpwebhosting.com and they seem very good but I am
not happy with their technical support which is very slow response time. We
are based in Europe and they are in the US which might lead to problems as
they haven't answered any of our queries. Saying that they have a good
automated process in place which is easy to use.

Anyone out there have high volume sites with a feature rich hosting
solution?

Any examples of Phpwebhosting welcomed as well.

regards
steve.



--
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: File Upload Problem

2002-10-30 Thread David Freeman

G'day David

 > > My problem is that files uploaded through a form are 
 > > increasing in size.

 > Doesn't that look like the EOL characters are being 
 > translated after the fashion of ftp ascii transfers?

 > Maybe have a look at the two versions in a 
 > hex viewer and see if that is the case? 

Yes, I'd considered that.  That was what I'd gone looking for in config
files etc.  I'd hoped to find a switch for ftp transfer mode.  Didn't
find one though.

However, partly because of your email and partly because I noted that
the file size increase was the same every time (27 bytes) I decided to
load it into a hex editor.

What I found was that at the top of the file, the following had been
added:

-8<-
Content-Type: image/gif

-8<-

I also found that if I remove these two lines the image will display
perfectly.

So, my next question is, why does my linux box add this to an uploaded
image and my windows box not do so?  Can someone make a suggestion on
where I should be looking?  Is the addition of this information a server
(Apache) thing?  Or is it a php thing?

CYA, Dave




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




Re: [PHP] Php web hosting

2002-10-30 Thread Rick Emery
www.nomonthlyfees.com
600 megs space
6 gig bandwidth
5 mysql databases
unlimited email addresses
ssl
ssh
$200 for first year; $70 per year thereafter.  Fee includes domain registration

Fast tech support turnaround

- Original Message - 
From: "Steve Jackson" <[EMAIL PROTECTED]>
To: "Php-General" <[EMAIL PROTECTED]>
Sent: Wednesday, October 30, 2002 12:36 PM
Subject: [PHP] Php web hosting


Anyone like to recommend a good host with good uptime for a high traffic
site?
The host would need excellent technical support as well as be feature rich
(Multiple MySQL database support/listserver/SSL support etc.)

I have been trying out phpwebhosting.com and they seem very good but I am
not happy with their technical support which is very slow response time. We
are based in Europe and they are in the US which might lead to problems as
they haven't answered any of our queries. Saying that they have a good
automated process in place which is easy to use.

Anyone out there have high volume sites with a feature rich hosting
solution?

Any examples of Phpwebhosting welcomed as well.

regards
steve.



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




Re: [PHP] Multiple Addresses Mailer

2002-10-30 Thread Rick Emery
Put all addressees in the BCC??

- Original Message - 
From: "Pushpinder Singh Garcha" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 30, 2002 1:47 PM
Subject: [PHP] Multiple Addresses Mailer


Hi All

I am creating a mailing list system in which I should be able to 
broadcast a message to  multiple recipients
I am using the mail() function and putting all the recipients names in 
the "to" argument separated by commas. When I do this the mail goes to 
all the people but they come to know that it was sent to others as well.

I want to be able to send mail so that each recipient thinks that this 
mail was ONLY sent to him/her.

Thanks
--pS

Pushpinder Singh Garcha


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




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




Re: [PHP] mysql question

2002-10-30 Thread 1LT John W. Holmes
Yes...off topic...

Join the table with itself.

untested...

SELECT t1.shopnumber, t1.item from table t1, table t2 where t1.shopnumber =
1 and t1.shopnumber = t2.shopnumber and t1.item != t2.item

Something like that?? Play around with it...

---John Holmes...

- Original Message -
From: "scott" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 30, 2002 3:43 PM
Subject: [PHP] mysql question


> Very slightly OT but great minds here
>
> I have a table with two columns and I need to get all the items that are
> not in the shop number I select, with the exception of items that are in
> the shop number I select.
>
> Table
>
> Shopnumber item
> 1 orange
> 1 banana
> 1 apple
> 1 pear
> 2 grape
> 2 coca cola
> 2 pepsi
> 3 orange
> 4 orange
> 4 pepsi
> 4 7 up
> 4 sunny delite
>
>
> I need to be able to work out all the items that are in the other shops.
> For example if a customer picks orange from shopnumber 1 I need to get a
> result that has all items in all shops except shop1
> The problem is my query still picks items that are in shop1 if they are
> in another shop as well, which is not what I need
>
> My current query is select * from table where shopnumber!=$shoprvar.
> As an example if I use select * from table where shopnumber!=1 I would
> get grape, coca-cola,pepsi (x2),7 up, sunny delite and orange (x2). I
> don't want orange because it is in shop1!
>
>
> Help and BIG THANKS for the ANSWER?
> Scott
>
>
>
>
>
> --
> 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 find future date?

2002-10-30 Thread 1LT John W. Holmes
Take a look at mktime()

www.php.net/mktime

---John Holmes...

- Original Message - 
From: "ppf" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 30, 2002 4:01 PM
Subject: [PHP] How to find future date?


> 
> Hi All:
> I like to know is there any metrhod to find future
> date ( for example 15 days from the today [sys date]).
> Basically i am looking for a method equivalent to
> datediff or dateadd in asp. I hope PHP will have some
> thing corresponding to this, I will really appricate u
> r help, thanks in advance
>   Prad
> 
> __
> Do you Yahoo!?
> HotJobs - Search new jobs daily now
> http://hotjobs.yahoo.com/
> 
> -- 
> 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: Strange intermittant errors

2002-10-30 Thread Peter Gordon
Hi 1LT John W. Holmes, on the subject of Re: [PHP] Re: Strange intermittant
errors, you said:

> Is it alway the same error? Is it always a problem related to MySQL? If it's
> intermittent like this and on simple queries, I'd say you have a problem
> with MySQL, or the tranfer of data between MySQL and PHP. Are you checking
> for a mysql_error() in these queries?

Well, I've just chucked a load of debug in the page where it cropped up,
printing out mysql error at every mysql call... but in accordance with sods
law its just not happening again :) I'll keep trying...

Cheers,
Pete


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




[PHP] Re: Variable over url

2002-10-30 Thread CJ

Read the docs first plz, or search for it

thank you...


Manuel jenne wrote:


Hi,

I've just installed php 4.2.3 and wonder why I can't submit an variable
over url.

Example:

My Script:
Test.php



My URL:
www.some.domain/test.php?tmp=5

My result:

NOTHING !!!

Where is the error?

P.S. phpmyadmin run ok.


Thanx

Manuel




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




[PHP] Re: Multiple Addresses Mailer

2002-10-30 Thread Manuel Lemos
Hello,

On 10/30/2002 04:47 PM, Pushpinder Singh Garcha wrote:

Hi All

I am creating a mailing list system in which I should be able to 
broadcast a message to  multiple recipients
I am using the mail() function and putting all the recipients names in 
the "to" argument separated by commas. When I do this the mail goes to 
all the people but they come to know that it was sent to others as well.

I want to be able to send mail so that each recipient thinks that this 
mail was ONLY sent to him/her.

Put all recipients in the Bcc: instead of To: header.


--

Regards,
Manuel Lemos


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




Re: [PHP] Re: Looking for good ZIP Code / Latitude / Longitude table

2002-10-30 Thread Manuel Lemos
Hello,

On 10/30/2002 05:49 PM, Jimmy Brake wrote:

how much does the service cost?

or am misunderstanding the class?

why do you have to enter a password?


The access to the site is free. The authentication is necessary to 
acurately account the downloads and also to keep you upto date to the 
changes that are made to the class files (if you want of course).

The class interfaces to the NetGeo service which is also free.

There is nothing to worry you about any charges.

--

Regards,
Manuel Lemos


On Wed, 2002-10-30 at 11:31, Manuel Lemos wrote:


Hello,

On 10/30/2002 04:03 PM, Michael Zornek wrote:


I've written a nice php/mysql site that let's you search for hospitals and
community colleges by zip code. The search is built upon some math that
figures out distances by a zip's lat and lon cords.

My problem is that my current ZIP table (bout 42,000 rows) seems to be
flawed. There are a ton of zip codes round california that have all the same
lat and lons. There are other dups as well. So I'm looking for some new
data.

Does anyone know a good source for this type of info?


This class may be used to figure the coordinates of a location given the 
IP address of a computer (the user computer):

http://www.phpclasses.org/netgeoclass


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




[PHP] How to find future date?

2002-10-30 Thread ppf

Hi All:
I like to know is there any metrhod to find future
date ( for example 15 days from the today [sys date]).
Basically i am looking for a method equivalent to
datediff or dateadd in asp. I hope PHP will have some
thing corresponding to this, I will really appricate u
r help, thanks in advance
  Prad

__
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/

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




Re: [PHP] Re: Strange intermittant errors

2002-10-30 Thread 1LT John W. Holmes
> > it'll work fine from all but this one machine. Also, other PHP powered
sites
> > work fine from it! I just don't understand it...
>
> Ooooh... now thats odd... for the first time ever it just happened from
home!
> Now i'm confused... in the process of creating the site, i've loaded up
the
> pages several hundred times, and its just not happened from home, and now
out
> of the blue it just happened. So... it seems that the problem is just FAR
> more likely to happen from that one machine than any other... !

Well, that would make a lot more sense. :)

Is it alway the same error? Is it always a problem related to MySQL? If it's
intermittent like this and on simple queries, I'd say you have a problem
with MySQL, or the tranfer of data between MySQL and PHP. Are you checking
for a mysql_error() in these queries?

---John Holmes...


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




[PHP] Re: Strange intermittant errors

2002-10-30 Thread Peter Gordon
Hi,

> it'll work fine from all but this one machine. Also, other PHP powered sites
> work fine from it! I just don't understand it...

Ooooh... now thats odd... for the first time ever it just happened from home!
Now i'm confused... in the process of creating the site, i've loaded up the
pages several hundred times, and its just not happened from home, and now out
of the blue it just happened. So... it seems that the problem is just FAR
more likely to happen from that one machine than any other... !


Cheers,
Pete


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




Re: [PHP] Re: Looking for good ZIP Code / Latitude / Longitude table

2002-10-30 Thread Jimmy Brake
how much does the service cost?

or am misunderstanding the class?

why do you have to enter a password?


On Wed, 2002-10-30 at 11:31, Manuel Lemos wrote:
> Hello,
> 
> On 10/30/2002 04:03 PM, Michael Zornek wrote:
> > I've written a nice php/mysql site that let's you search for hospitals and
> > community colleges by zip code. The search is built upon some math that
> > figures out distances by a zip's lat and lon cords.
> > 
> > My problem is that my current ZIP table (bout 42,000 rows) seems to be
> > flawed. There are a ton of zip codes round california that have all the same
> > lat and lons. There are other dups as well. So I'm looking for some new
> > data.
> > 
> > Does anyone know a good source for this type of info?
> 
> This class may be used to figure the coordinates of a location given the 
> IP address of a computer (the user computer):
> 
> http://www.phpclasses.org/netgeoclass
> 
> 
> -- 
> 
> Regards,
> Manuel Lemos
> 
> 
> -- 
> 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] HTML Post

2002-10-30 Thread Rick Emery
On return, just cut out the part you don't need; PHP's string functions take care of 
this
nicely

- Original Message -
From: "Drew Kime" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 30, 2002 12:22 PM
Subject: Re: [PHP] HTML Post


I used a similar script and had the same problem I'm having with yours.
  The first few lines returned in the '$response' variable are the
headers from the POST operation.  When I get to the 'print' command at
the end I get the headers generated by my server, then the headers
retrieved from the POST operation are displayed on the page.

Is this because of how I have my server configured?  Or is there some
run-tim way to tell the server to *not* generate headers, but simply
send the specified text (including the headers) to the browser?

Drew Kime


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

2002-10-30 Thread scott
Very slightly OT but great minds here

I have a table with two columns and I need to get all the items that are
not in the shop number I select, with the exception of items that are in
the shop number I select.

Table

Shopnumber  item
1   orange
1   banana
1   apple
1   pear
2   grape
2   coca cola
2   pepsi
3   orange
4   orange
4   pepsi
4   7 up
4   sunny delite


I need to be able to work out all the items that are in the other shops.
For example if a customer picks orange from shopnumber 1 I need to get a
result that has all items in all shops except shop1
The problem is my query still picks items that are in shop1 if they are
in another shop as well, which is not what I need

My current query is select * from table where shopnumber!=$shoprvar. 
As an example if I use select * from table where shopnumber!=1 I would
get grape, coca-cola,pepsi (x2),7 up, sunny delite and orange (x2). I
don't want orange because it is in shop1!


Help and BIG THANKS for the ANSWER?
Scott


 


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




[PHP] Re: Strange intermittant errors

2002-10-30 Thread Peter Gordon
Hi 1LT John W. Holmes, on the subject of Re: [PHP] Strange intermittant
errors, you said:

> Well, the only thing that comes from the client side is GET, POST, or COOKIE
> data. All the browsers should handle GET and POST data the same, so I doubt
> that's it. Is the work computer your on accepting cookies? Are values from
> cookies or sessions used anywhere in the SQL in question?


Thats just the thing, even on pages when the query involves NO external inputs
like GET, POST or COOKIE, e.g:

$res = mysql_query( "select * from news order by date limit 10");
$num_rows = mysql_num_rows( $res );

it'll work fine from all but this one machine. Also, other PHP powered sites
work fine from it! I just don't understand it...


Cheers,
Pete


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




[PHP] CSS pulls me back in

2002-10-30 Thread Liam . Gibbs
Still having trouble with CSSs. Now it's a different error. Below is my CSS
code. For some reason, I can't get the CSS to access my Constants.inc file
to grab my constants. Any ideas? The line by which I get my CSS is:
print("  \n");



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




Re: [PHP] Strange intermittant errors

2002-10-30 Thread 1LT John W. Holmes
Well, the only thing that comes from the client side is GET, POST, or COOKIE
data. All the browsers should handle GET and POST data the same, so I doubt
that's it. Is the work computer your on accepting cookies? Are values from
cookies or sessions used anywhere in the SQL in question?

---John Holmes...

- Original Message -
From: "Peter Gordon" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 30, 2002 3:20 PM
Subject: [PHP] Strange intermittant errors


> Hi,
>
> I am developing a website in PHP that stores all its information in a
MySQL
> database. The webserver is a FreeBSD box running Apache with pretty much
all
> extensions installed (its owned by a friend of mine who works for an ISP.
He
> is competant at setting this sort of box up, so I am confident its all
> installed correctly).
>
> Now, the site works fine 100% of the time when I visit it from home (Amiga
> 4000, with any of these browsers: AWeb, IBrowse and Voyager), but when I
> visit from my work computer (IE 6, Windows 98 SE, going through an NT4
server
> with Microsoft Web Proxy 2.0), lots of MySQL errors appear, that go away
> after a refresh or two! They happen on pretty much ANY page that accesses
> MySQL, and its an intermittant problem.
>
> It even occurs on pages where the mysql query is a hardcoded string, so it
is
> not related to realtime-generated queries.
>
> Now, 2 or 3 friends have visited the site with linux boxes and windows,
using
> Opera, Mozilla and IE, and don't get any MySQL errors, so it only seems to
be
> when I visit from work! I also tried from a couple of my colleagues
machines
> today (same web proxy, some IE 5.5, some IE6), and they didn't get any, so
> they only seem to occur when i visit from this one machine!
>
> This is confusing the hell out of me because PHP and MySQL is all server
side,
> and surely the final HTML served should be the same no matter where I
visit
> from!
>
> This is the type of error that I get from my work machine:
>
> Warning: mysql_num_rows(): supplied argument is not a valid MySQL result
> resource in /home/httpd/www.videobrewery.com/shownews.php on line 40
>
> So it appears the original mysql_query() is failing. What could be causing
> that from the client end?!
>
> Cheers,
> Pete
>
>
> --
> 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] Include: Warning: Failed opening

2002-10-30 Thread 1LT John W. Holmes
> Warning: Failed opening '/common.php' for inclusion
> (include_path='.:/www/htdocs/php:/www/htdocs') in
> /www/htdocs/php/includetest.php on line 3

Take out the forward slash in your include. '/common.php' means to look in
the root directory for the file, while if you just put 'common.php' or
'./common.php' it'll look in the same directory as includetest.php. Or,
provide a full path to the file '/www/htdocs/php/common.php'.

---John Holmes...


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




Re: [PHP] How to prevent failure email from being sent?

2002-10-30 Thread Jason Wong
On Monday 28 October 2002 01:24, Noah Spitzer-Williams wrote:
> Hey guys,
>
> My service sends out emails every few days to members who wish to have
> stats sent to them. The problem is once an email becomes inactive, I the
> webmaster gets a failure email sent to me. This is starting to add up and I
> can get upwards of 20 of these a day. It just seems likea  waste of space
> and bandwidth... is there anyway I can prevent this?
>
> If i delete the webmaster email key in php.ini will my emails not have
> a reply address?

Why don't you just remove those people whose email address has become invalid?

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

/*
Xerox your lunch and file it under "sex offenders"!
*/


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




  1   2   3   >