[PHP] Weird Problem

2003-07-02 Thread The Head Sage
Hey,

I've got a script which disables a banner image when it's time is up, the script also 
sends an e-mail to both me and the banners owner when the time is up

I've got a problem which is really weird..

Everything else works, but when the query is sent to the MySQL database, nothing 
happens...

This is the query being sent: UPDATE st_banners SET Disabled='Y' WHERE 
BannerID='$bannerid'

But when the script is run, it reports no errors, yet when i do SELECT Disabled FROM 
st_banners they are all enabled. I then echoed the query and the result it said it 
sent the query and it all worked, but the database was never updated..

Any thoughts or suggestions? Or should i be looking for a MySQL list?



Re: [PHP] who is on the page?

2003-03-23 Thread The Head Sage
What you might want to try is to set a cookie when the user first enters the
page, but set it's length to 5 minutes. Then everytime the cookie is resent
to the page you count it as a user. But if they leave, then the cookie
destroy's itself. You can have the cookie reset it's self, or set to when
ever the browser closes. But thats up to you


- Original Message -
From: "Oliver Witt" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 24, 2003 6:23 AM
Subject: [PHP] who is on the page?


> Hi everybody,
> I've been looking for a script to determine who is on my page (people
> have to log in). So far, I've been using a script that updates the time
> in the database continuously as long as the person is on the page. That
> way, the script could determine whether the user is still online or not.
> However, this script has way too many queries and uses too much server
> resources. Is there anything else? I'm wondering if the
> connection_status() function would help in any way...
> thx,
> Olli
>
>
> --
> 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] Mailing List Digest

2003-03-18 Thread The Head Sage
All the digest contains is all the normal e-mails all thrown into 1 huge
e-mail. You would recieve about 2 digests per day, instead of 100+ single
e-mails. Although i prefer the single e-mail system...


- Original Message -
From: "Tom Sommer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 19, 2003 2:14 AM
Subject: [PHP] Mailing List Digest


> What does the mailing list digest contain, compared to a normal
> subscription? What is the difference?
>
> --
> Tom Sommer, Denmark
> www.tsn.dk - www.dreamcoder.dk
>
> --
> 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] Do query strings get spidered by Google?

2003-03-15 Thread The Head Sage
Last time i checked, Google does infact query strings. As some of my
searches have lead to forums where the url is
www.someurl.com/viewtopic.php?f=3&t=345 ect.
I also belive there is a tutorial somewhere on the internet which converts
the variables into folders, so it looks like the article is in some sort of
directory structure.


- Original Message -
From: "Mike Hillyer" <[EMAIL PROTECTED]>
To: "PHP GENERAL LIST" <[EMAIL PROTECTED]>
Sent: Sunday, March 16, 2003 4:26 AM
Subject: [PHP] Do query strings get spidered by Google?


> Hi All;
>
> I am trying to decide how to lay out a site with a lot of articles, and I
am
> wondering if query strings get spidered by Google. I was thinking it would
> make for an easy search engine if I could put the articles in fulltext
> searchable MySQL columns, but I do not want to lose the ability of search
> engines to spider them. Otherwise, I believe there is a way to convert the
> quert string to a trailing / so it looks like directory structure, does
> anyone have info on that?
>
> Thanks,
> Mike Hillyer
>
>
> --
> 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] SMTP Authenticate

2003-03-15 Thread The Head Sage
If the SMTP server is running on your machine, or you have access to it's
configuration. Create an e-mail address specificaly for PHP to mail from, as
i had trouble authenticating. But if i created the mailer address as a
local user on my SMTP server, it'd be allowed through. I believe it's a
method to reduce relayed SPAM...

- Original Message -
From: "Aitor Cabrera" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, March 16, 2003 3:43 AM
Subject: [PHP] SMTP Authenticate


Hi, I'm trying to use the mail() funtion but I can only use this funtion the
email myself (the same email that I put in the php.ini file). I f I try to
email someone else I get an error

530 delivery not allowed to non-local recipient, try authenticating -7

How can I authenticate myselft? Which is the SMTP comand to do it and how do
I use it? Thanks!!


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



[PHP] A few questions...

2003-03-01 Thread The Head Sage
Hello all,

I've got several questions and i'm hoping i can find answers or links to 
places which contain the answers.

1. How can i set a script to run at a certain time?

For example, say i want to send a mass e-mail at 5:00pm every night which 
contains the latest updates to the website. I know how to generate the mail 
and then send it to everyone's e-mail in a MySQL table. But how do i set it 
to run automaticaly?

Answers for both Linux and Windows systems would be nice...

2. How do i open a HTML file, extract all the text and then break up the 
text into variables..

For example, i've got a HTML files which all have the same structure


Title: Magocracy
Author: TheHeadSage
E-Mail: [EMAIL PROTECTED]
Category: Comedy, Action
Keywords: Ilja, Magic, Ilkeria
Rating: PG-13
Spoilers: None, origional story.
Summary: [Sumary here]
Chapter Body
<<
How would i get all the text and break it up into the variables $title, 
$author, $email
ect. So they can be insterted into the MySQL table under the approprate 
colums.

3. How do i open a Word Document and extract all the text?

As users would like to submit .doc files and i'd like the script to process 
them..

Thats all the questions so far, any tips, comments, ideas, questions even 
insults and flames are welcome!

Also please reply to the address: [EMAIL PROTECTED] as i dont 
trust hotmail.

Thanks in advance,

- Daniel "TheHeadSage" Spain
Founder of Voidsoft.
Server Administrator of The Void
Head of IRC Relations for Manga-Sketchbook.org
_
Hotmail now available on Australian mobile phones. Go to  
http://ninemsn.com.au/mobilecentral/hotmail_mobile.asp

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


Re: [PHP] Suggestions on FAQ application?

2003-01-11 Thread The Head Sage
I don't believe a FAQ application actualy has been written yet... I haven't seen one 
on Hotscript.com or PHP Resources. But if you have found one, please let me know 
as i'm interested in one as well.

- Daniel "TheHeadSage" Spain
Founder of Voidsoft.


On 10 Jan 2003 at 21:51, Jeff Lewis wrote:

> Why re-invent what is already written? I'm well aware that it's easy to
> write but there may be something out there already that suits my needs and
> has some features that I hadn't thought of. If you don't have a suggestion
> on a package please spare me the rude replies which seem to run rampant on
> here lately...
> 
> Jeff
> - Original Message -
> From: "Timothy Hitchens (HiTCHO)" <[EMAIL PROTECTED]>
> To: "'Jeff Lewis'" <[EMAIL PROTECTED]>; "'php-gen'" <[EMAIL PROTECTED]>
> Sent: Friday, January 10, 2003 9:39 PM
> Subject: RE: [PHP] Suggestions on FAQ application?
> 
> 
> > It is a 30 minute write... not that hard!!
> >
> >
> > Timothy Hitchens (HiTCHO)
> > Open Platform Consulting
> > e-mail: [EMAIL PROTECTED]
> >
> > > -Original Message-
> > > From: Jeff Lewis [mailto:[EMAIL PROTECTED]]
> > > Sent: Saturday, 11 January 2003 12:37 PM
> > > To: php-gen
> > > Subject: [PHP] Suggestions on FAQ application?
> > >
> > >
> > > I've checked Hotscripts and I can't findanything relatively
> > > new or that suits my needs. I was wondering if anyone uses a
> > > FAQ program that they could suggest?
> > >
> > > Jeff
> > >
> >
> >
> >
> >
> 
> 
> 

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