php-general Digest 12 Aug 2006 16:38:02 -0000 Issue 4289
Topics (messages 240556 through 240562):
Re: Comment form spammer
240556 by: Colin Guthrie
SETCOOKIE
240557 by: BBC
240558 by: Peter Lauri
Re: A way to stop spam on this list
240559 by: Ryan A
Parsing RSS
240560 by: John Taylor-Johnston
240561 by: Dave Goodchild
Re: requests from 2nd window breaks my program
240562 by: Tony Marston
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[email protected]
----------------------------------------------------------------------
--- Begin Message ---
Micky Hulse wrote:
Richard Lynch wrote:
The web2 dictionary is Webster's older dictionary, now in the public
domain, and is installed on my server by the webhost -- so presumably
is readily available.
Nice, was not aware of that dictionary, googling now. :)
Also if you just want some random works... /usr/share/dict/words is
usually available on most *nix boxes. It is the dictionary used by the
"look" command.
Col
--- End Message ---
--- Begin Message ---
Hi List,
I want to set the cookie in which that cookie would be deleted automatically as
visitor closes the browser. I have read an article
from www.php.net/manual/en/function.setcookie and it is told me that we can
set that cookie by unset the value time, but it doesn't
work.
Example:
Setcookie($var, $value, time(), $path, $domain, $secure_binary);
time() = without adding.
Any one can tell me the other way ..
Thank in advance.
Best Regards
============BBC============
**o<0>o**
--- End Message ---
--- Begin Message ---
When you just use time() you tell the cookie to just live until now, so it
dies directly. You have to add some seconds to determine how long the cookie
will live.
/Peter
-----Original Message-----
From: BBC [mailto:[EMAIL PROTECTED]
Sent: Saturday, August 12, 2006 7:48 PM
To: PHP
Subject: [PHP] SETCOOKIE
Hi List,
I want to set the cookie in which that cookie would be deleted automatically
as visitor closes the browser. I have read an article
from www.php.net/manual/en/function.setcookie and it is told me that we can
set that cookie by unset the value time, but it doesn't
work.
Example:
Setcookie($var, $value, time(), $path, $domain, $secure_binary);
time() = without adding.
Any one can tell me the other way ..
Thank in advance.
Best Regards
============BBC============
**o<0>o**
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Hey,
> Late answer,
>
> but I was coming back yesterday from Palestine,
> after the Israelien
> Terror Authority had arrest me for making tonns of
> photos and Videos
> about Israeli military crime... (shooting children
> and pregnant women)
Lets keep religion, conflicts, politics and
crappy/stupid messages (like the one above) out of the
list.... the 419 Nigerian scam is more interesting
than the above.
I am subscribed for PHP, if I want two different
versions of "todays news" I can go to Al-Jazeera or
one of the western news sites.
-Ryan
------
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
--- End Message ---
--- Begin Message ---
Is there something already created to open an rss file, parse it, and
include() the useful stuff into an html file?
Not all my students have an rss reader.
http://jtjohnston.ca/jtjohnston.rss
jt
--- End Message ---
--- Begin Message ---
On 12/08/06, John Taylor-Johnston <
[EMAIL PROTECTED]> wrote:
Is there something already created to open an rss file, parse it, and
include() the useful stuff into an html file?
Not all my students have an rss reader.
http://jtjohnston.ca/jtjohnston.rss
Yep. The PEAR XML_RSS class.
for example:
$feed = 'foo.rss';
$rss =& new XML_RSS($feed);
$rss->parse();
foreach ($rss->getItems() as $item) {
// output rss
}
--
http://www.web-buddha.co.uk
http://www.projectkarma.co.uk
--- End Message ---
--- Begin Message ---
I had a similar problem in my framework some while ago, but I fixed it to
allow multiple sessions from the same client. Read about it in
http://www.tonymarston.net/php-mysql/client-clones.html
--
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I'll try to explain my problem as better as I can. Please, be "gentle" :)
>
> I developed a program for our salespeople (only them, no public) where
> they can order items for their customers. Order form is made of 6 pages
> (order info, items info, artwork, ad copies,...). Also, they use the same
> program to manipulate saved/submitted orders, send confirmation to
> customers, requests to suppliers,... Code works fine. But this morning I
> found a bug that if Salesperson open 2nd window in this program, since it
> has the same session id, it would make a mess with session. I.e., on 1st
> window I'm doing an order. Order ID, customer ID, transaction ID are
> stored in session table. In the middle of the order I open 2nd window to
> check a price on an other customer order. After I opened that order "new"
> order ID and customer ID are stored now in session table and the order
> (1st window) is now broken or goes to wrong place.
> Or, I'm sending request for approval of an order to customer. But, second
> before I submit the request, I open an order of other customer. Other
> customer ID is now stored in session table and conf. email goes to wrong
> place.
> There are few more scenarios of "bug make mess".
>
> Did anybody had a problem with "2nd window" and how is it solved? What's
> wrong with structure/idea I used to make a program?
> Any comment will be helpful to determine or give me an idea how to fix
> this bug.
>
> Thanks for any help.
>
> -afan
--- End Message ---