RE: [PHP] Problems with date() - SOLVED

2006-09-13 Thread Arno Kuhl
Hi Ducarom Thanks, that clarifies the issue perfectly. Changing to 28 December now reliably gives the last week number of the year every time. Cheers Arno -Original Message- From: Ducarom [mailto:[EMAIL PROTECTED] Sent: 13 September 2006 09:23 To: [EMAIL PROTECTED] Cc: php-general@lists.

[PHP] DOM Question. No pun intended.

2006-09-13 Thread Michael Williams
Hi All, I'm having HTML DOM troubles. Is there any way to output the *EXACT* code contained in a node (child nodes and all)? For instance, I perform a $doc->loadHTML($file) and all is well. I then search through the document for specific NODEs with getElementsByTagName(). However, when I

[PHP] security include from remote server

2006-09-13 Thread Miguel Vaz
Hi, Heres a simple problem: I am doing a php+mysql website at my office, hosted locally but open to the web, but i wouldnt like to host my files on our office server. I could host them somewhere else but our mysql database cant be accessed from the outside, only from our ser

Re: [PHP] Question on explode and join.

2006-09-13 Thread Ducarom
You can make it case insensitive by replacing: $dirty[$key] = '/\b'. $word . '\b/' with $dirty[$key] = '/\b'. $word . '\b/i' On 9/13/06, Beauford <[EMAIL PROTECTED]> wrote: The problem with scripts like these is there is so many variables to deal with. First, this doesn't deal with uppercase.

RE: [PHP] Question on explode and join.

2006-09-13 Thread Beauford
The problem with scripts like these is there is so many variables to deal with. First, this doesn't deal with uppercase. So a word like bAdWoRd would not get detected, or a word beginning a sentence. Also, a word within a word like wordbadwordword would not be detected, and I'm sure there are mor

Re: [PHP] DOM - parse HTML document [solved]

2006-09-13 Thread tedd
At 10:02 PM +0200 9/13/06, Leonidas Safran wrote: Hello Tedd, Interesting -- it doesn't work for me. I keep getting -- Parse error: parse error, unexpected T_OBJECT_OPERATOR -- in your if statement. But, I don't see the problem. Maybe it has something to do with your php version. I h

Re: [PHP] array_flip duplicate keys as arrays

2006-09-13 Thread tedd
At 11:39 AM -0500 9/13/06, Richard Lynch wrote: I figured somebody else must have needed this, so there'd have to be a PHP function for it... But I'm not finding it when I rtfm... Given an array like this: $t9 = array('F' => 'FIND', 'D' => 'FIND', 'E' =>'FIND', 'H' => 'HELP', 'I' => 'HELP');

Re: [PHP] session_start() and fopen

2006-09-13 Thread Christopher Weldon
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Fabri wrote: > Hello, would you please help me on this issue that is making me crazy? > > > > > > I start a session with session_start() and I need to write a file, the file > is written twice! If I remove session_start the code works obviously

Re: [PHP] *SOLVED* Open file on a Mounted Share on Mac OS X

2006-09-13 Thread Rahul S. Johari
Finally! Solution: I needed to create what is called a "mount point" or "share point" in my home directory. Basically I created a folder in my home directoy, and then used this following command in the Terminal to mount the server share on the mount point of my choosing: mount -t smbfs //[EMAIL P

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-13 Thread Rahul S. Johari
I see that. I'm looking this up online. To bring things back to the scope of the mailing list... Is there anyone here who's successfully had PHP read a file sitting on a mounted share on Mac OS X? On 9/13/06 2:53 PM, "John Nichel" <[EMAIL PROTECTED]> wrote: > Rahul S. Johari wrote: >> Ok you ma

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-13 Thread Curt Zirzow
On 9/13/06, Rahul S. Johari <[EMAIL PROTECTED]> wrote: Ok you may be on to something here. Everytime I was trying to chmod the permissions etcetera, the share was mounted, and that probably was the problem. What is a mount point? How do I set ownership/permission of a mount point? With OSX i

Re: [PHP] DOM - parse HTML document [solved]

2006-09-13 Thread Leonidas Safran
Hello Tedd, > Interesting -- it doesn't work for me. I keep getting -- > Parse error: parse error, unexpected T_OBJECT_OPERATOR > -- in your if statement. But, I don't see the problem. Maybe it has something to do with your php version. I have php 5.04 installed (Fedora Core 4 rpm package). H

Re: [PHP] session_start() and fopen

2006-09-13 Thread Curt Zirzow
On 9/13/06, Fabri <[EMAIL PROTECTED]> wrote: Hello, would you please help me on this issue that is making me crazy? I'll try I start a session with session_start() and I need to write a file, the file is written twice! If I remove session_start the code works obviously fine. This has never

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-13 Thread Rahul S. Johari
Ok you may be on to something here. Everytime I was trying to chmod the permissions etcetera, the share was mounted, and that probably was the problem. What is a mount point? How do I set ownership/permission of a mount point? On 9/13/06 2:42 PM, "John Nichel" <[EMAIL PROTECTED]> wrote: > I d

[PHP] session_start() and fopen

2006-09-13 Thread Fabri
Hello, would you please help me on this issue that is making me crazy? I start a session with session_start() and I need to write a file, the file is written twice! If I remove session_start the code works obviously fine. I used the date as name of file so I can see the problem, otherwise

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-13 Thread Frank Arensmeier
Sorry for the typos btw... It's late. /frank 13 sep 2006 kl. 21.20 skrev Frank Arensmeier: Hi there. Look at the man page for "mount_smbfs" - especially the -M option which ia able to set permissions on the mounted SMB volume. If that doesn't help, when you said you tried to make a short

Re: [PHP] Problems with date()

2006-09-13 Thread Ducarom
Hi, Try it with 28 December instead of 31 December. From http://en.wikipedia.org/wiki/ISO_week_date The last week of the ISO year is the week before week 01; in accordance with the symmetry of the definition, equivalent definitions are: - the week with the year's last Thursday in it - th

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-13 Thread Frank Arensmeier
Hi there. Look at the man page for "mount_smbfs" - especially the -M option which ia able to set permissions on the mounted SMB volume. If that doesn't help, when you said you tried to make a shortcut to the file - did you do this in the Finder? Try it with a symbolic link in stead (man l

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-13 Thread John Nichel
Rahul S. Johari wrote: Ok you may be on to something here. Everytime I was trying to chmod the permissions etcetera, the share was mounted, and that probably was the problem. What is a mount point? How do I set ownership/permission of a mount point? This is going way beyond the scope of thi

Re: [PHP] Problems with date()

2006-09-13 Thread Frank Arensmeier
And what exactly did you expect? Have you checked a calendar? The 31st of december 2001, 2002 and 2003 are Monday, Tuesday and Wednesday respectively. In other words. those days are more or less in the middle of the week 01. So, I would say that your results are absolutely right. /frank 1

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-13 Thread John Nichel
Rahul S. Johari wrote: Did.. Sudo chmod 770 foresight Specified the root account password. Returned back to prompt without errors, but did absolutely nothing. Permissions remain unchanged. I don't know about Mac, but in Linux you cannot change the permissions of a mount point while the volum

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-13 Thread Rahul S. Johari
Did.. Sudo chmod 770 foresight Specified the root account password. Returned back to prompt without errors, but did absolutely nothing. Permissions remain unchanged. On 9/13/06 2:20 PM, "Ray Hauge" <[EMAIL PROTECTED]> wrote: > chmod 770 foresight > > does that do anything? If not, try it as

Re: [PHP] Question on explode and join.

2006-09-13 Thread Ducarom
I made some changes to the script from Butera. Now it only replaces complete words. $dirty = array( 'ipsum', 'eloquentiam', 'Vero' ); foreach ($dirty as $key => $word) { $dirty[$key] = '/\b'. $word . '\b/'; } $string = "Lorem ipsum ius no etiam veniam, usu alii novum ne, sed cu molesti

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-13 Thread Ray Hauge
chmod 770 foresight does that do anything? If not, try it as the root/admin account. -- Ray Hauge Programmer/Systems Administrator American Student Loan Services www.americanstudentloan.com 1.800.575.1099 On Wednesday 13 September 2006 12:57, Rahul S. Johari wrote: > I think that is the solutio

[PHP] Re: undefined function bindtextdomain()

2006-09-13 Thread Rick Olson
It sounds like gettext isn't actually loading. Get the output of phpinfo(), and search for the 'gettext' extension to make sure it's there. If not, you either didn't ./configure correctly, or you aren't telling the php.ini file to load the gettext extension. hth Rick Zbigniew Szalbot wrote

Re: [PHP] How to skip browser's Warning?

2006-09-13 Thread afan
Wouldn't this actually bring me back to empty form? > On 9/13/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >> >> sorry, but didn't get this one. could you please elaborate it a little >> bi >> to me? >> >> thanks. >> >> >> >> > On 9/13/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >> >> >>

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-13 Thread Rahul S. Johari
I think that is the solution to my problem. The only problem is, nothing is allowing me to change these permissions or owner/group. Nor the 'Get Info' window in Mac, nor the Terminal Window. How do I change it? On 9/13/06 11:45 AM, "Ray Hauge" <[EMAIL PROTECTED]> wrote: > On Wednesday 13 Septem

Re: [PHP] Question on explode and join.

2006-09-13 Thread Jon Anderson
Beauford wrote: I have a form which I want to check for inappropriate words before it is posted. I have used explode to put the string into an array using a space as the delimiter and then I check it against another array that contains the inappropriate words. I then replace the inappropriate w

RE: [PHP] Question on explode and join.

2006-09-13 Thread Beauford
There ya go. Works and is shorter than what I did. Thanks. One other question. if I have bunny and bunnyhole in the badword array. if someone types in bunnyhole, I end up getting *hole in the clean string. If I change the order of the words in the array would that solve the problem? Thanks _

Re: [PHP] Question on explode and join.

2006-09-13 Thread Christopher Watson
Definitely look into preg_match or even preg_replace, instead of tokenizing the string and rubbing it up against an array of your own. Iterate on your array of bad words, and then use Regular Expressions to selectively hunt and squash. You MAY be able to do it in one regex operation by building a

Re: [PHP] Question on explode and join.

2006-09-13 Thread Eric Butera
On 9/13/06, Beauford <[EMAIL PROTECTED]> wrote: Hi, I have a form which I want to check for inappropriate words before it is posted. I have used explode to put the string into an array using a space as the delimiter and then I check it against another array that contains the inappropriate words

Re: [PHP] How to skip browser's Warning?

2006-09-13 Thread Eric Butera
On 9/13/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Wouldn't this actually bring me back to empty form? > On 9/13/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >> >> sorry, but didn't get this one. could you please elaborate it a little >> bi >> to me? >> >> thanks. >> >> >> >> > On 9/

Re: [PHP] Question on explode and join.

2006-09-13 Thread Dave Goodchild
Hi. I have just added a profanity filter to a current project which runs like so (all form values are passed into the session after checking for required fields etc). $swearbox is an array containing profanities so I won't include it here! $_SESSION['profane'] = false; foreach ($_POST as $val

Re: [PHP] How to skip browser's Warning?

2006-09-13 Thread Eric Butera
On 9/13/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: sorry, but didn't get this one. could you please elaborate it a little bi to me? thanks. > On 9/13/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >> >> Hi, >> Could somebody explain to me what to do to skip this message I'm getting >

[PHP] Question on explode and join.

2006-09-13 Thread Beauford
Hi, I have a form which I want to check for inappropriate words before it is posted. I have used explode to put the string into an array using a space as the delimiter and then I check it against another array that contains the inappropriate words. I then replace the inappropriate words with *'s a

[PHP] array_flip duplicate keys as arrays

2006-09-13 Thread Richard Lynch
I figured somebody else must have needed this, so there'd have to be a PHP function for it... But I'm not finding it when I rtfm... Given an array like this: $t9 = array('F' => 'FIND', 'D' => 'FIND', 'E' =>'FIND', 'H' => 'HELP', 'I' => 'HELP'); I'm looking for a built-in function that returns t

Re: [PHP] How to skip browser's Warning?

2006-09-13 Thread tg-php
Create your own "back" button that re-posts the same data back to the search page? Or have a "new search" (that takes you back without filling in the old search data) as well as a "revise search" or something that takes you back without while retaining the original search data. Or do like some

Re: [PHP] How to skip browser's Warning?

2006-09-13 Thread tg-php
Create your own "back" button that re-posts the same data back to the search page? Or have a "new search" (that takes you back without filling in the old search data) as well as a "revise search" or something that takes you back without while retaining the original search data. Or do like some

[PHP] Problems with date()

2006-09-13 Thread Arno Kuhl
I hope someone can help with this. I'm trying to find the week number of the last week of the year. I have the following code snippet: $lastday = strtotime("31 December ".$year); $lastdate = date("Y-m-d", $lastday); // for testing $lastweek = date(W, $lastday); I put the $lastdate line in becau

Re: [PHP] How to skip browser's Warning?

2006-09-13 Thread afan
sorry, but didn't get this one. could you please elaborate it a little bi to me? thanks. > On 9/13/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >> >> Hi, >> Could somebody explain to me what to do to skip this message I'm getting >> after I search for some products on my page, got the list

Re: [PHP] How to skip browser's Warning?

2006-09-13 Thread afan
Sonce nothing "secretly" - I can' do that. I'll try right now. > Easiest way: change your search form's method to GET instead of POST > - I'm sure you're not passing enough parameters to the search results > page to actually need to use POST. > > > On Sep 13, 2006, at 11:44 AM, [EMAIL PROTECTED]

Re: [PHP] How to skip browser's Warning?

2006-09-13 Thread afan
:D :D :D How to get back then? > [EMAIL PROTECTED] wrote: >> Hi, >> Could somebody explain to me what to do to skip this message I'm getting >> after I search for some products on my page, got the list of products, >> selected a detailed view of the product and click on the Back button of >> the

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-13 Thread Rahul S. Johari
I tried the chmod command in the Terminal Window, but I'm not really getting the exact command that I need to change the permissions. On 9/13/06 12:08 PM, "Ray Hauge" <[EMAIL PROTECTED]> wrote: > On Wednesday 13 September 2006 10:58, Rahul S. Johari wrote: >> Been reading and reading... Can't g

Re: [PHP] How to skip browser's Warning?

2006-09-13 Thread Eric Butera
On 9/13/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hi, Could somebody explain to me what to do to skip this message I'm getting after I search for some products on my page, got the list of products, selected a detailed view of the product and click on the Back button of the browser to see

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-13 Thread Ray Hauge
On Wednesday 13 September 2006 10:58, Rahul S. Johari wrote: > Been reading and reading... Can't get much out of it. > Everytime I try the mount command, I get "can't get net id" > > On 9/13/06 11:39 AM, "John Nichel" <[EMAIL PROTECTED]> wrote: > > Rahul S. Johari wrote: > >> How can I set the "drw

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-13 Thread Rahul S. Johari
Been reading and reading... Can't get much out of it. Everytime I try the mount command, I get "can't get net id" On 9/13/06 11:39 AM, "John Nichel" <[EMAIL PROTECTED]> wrote: > Rahul S. Johari wrote: >> How can I set the "drwxr-xr-x" permissions on my mounted share? I've set >> everything I po

Re: [PHP] How to skip browser's Warning?

2006-09-13 Thread Joe Wollard
Easiest way: change your search form's method to GET instead of POST - I'm sure you're not passing enough parameters to the search results page to actually need to use POST. On Sep 13, 2006, at 11:44 AM, [EMAIL PROTECTED] wrote: Hi, Could somebody explain to me what to do to skip this mess

Re: [PHP] How to skip browser's Warning?

2006-09-13 Thread John Nichel
[EMAIL PROTECTED] wrote: Hi, Could somebody explain to me what to do to skip this message I'm getting after I search for some products on my page, got the list of products, selected a detailed view of the product and click on the Back button of the browser to see again list of found products (res

[PHP] How to skip browser's Warning?

2006-09-13 Thread afan
Hi, Could somebody explain to me what to do to skip this message I'm getting after I search for some products on my page, got the list of products, selected a detailed view of the product and click on the Back button of the browser to see again list of found products (result page): "The Page you ar

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-13 Thread John Nichel
Rahul S. Johari wrote: I'm beginning to see it's a permissions issue... Although I don't know how to approach it, as like I said, I have every permission you can think of set to this mac os x user. Does your webserver run as the user 'rjohari'? When you say "webserver", are you talking about

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-13 Thread John Nichel
Rahul S. Johari wrote: How can I set the "drwxr-xr-x" permissions on my mounted share? I've set everything I possibly could in the windows 2003 server to give the mac os x user full control! man mount -- John C. Nichel IV Programmer/System Admin (ÜberGeek) Dot Com Holdings of Buffalo 716.856.

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-13 Thread Ray Hauge
On Wednesday 13 September 2006 10:30, John Nichel wrote: > Rahul S. Johari wrote: > > Nope. > > It looks like this... > > > > > > drwxr-xr-x 3 root root 4096 Sep 13 10:44 . > > drwxr-xr-x 3 root root 4096 Sep 13 10:46 .. > > drwx-- 1 rjohari admin 16384 13 Sep 10:38 foresight > > > > Fores

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-13 Thread Rahul S. Johari
I'm beginning to see it's a permissions issue... Although I don't know how to approach it, as like I said, I have every permission you can think of set to this mac os x user. > Does your webserver run as the user 'rjohari'? When you say "webserver", are you talking about my Apache Web Server, or

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-13 Thread John Nichel
Rahul S. Johari wrote: Nope. It looks like this... drwxr-xr-x 3 root root 4096 Sep 13 10:44 . drwxr-xr-x 3 root root 4096 Sep 13 10:46 .. drwx-- 1 rjohari admin 16384 13 Sep 10:38 foresight Foresight being the mounted share. Does your webserver run as the user 'rjohari'? *permissi

[PHP] Re: PHP and mySQL dates

2006-09-13 Thread Colin Guthrie
> "SELECT id FROM dates WHERE FROM_UNIXTIME($date_string) = date" > > then > > "SELECT id FROM dates WHERE UNIX_TIMESTAMP(date) = $date_string" > > neither is working. Am I making some fundamental error here or missing > something? Any help appreciated! I know yui've alreayd solved this, but f

[PHP] Re: USB Question Not PHP Related, so if you don't want to read this you don't have to

2006-09-13 Thread Colin Guthrie
Jay Blanchard wrote: > I generally would not do this, but I have an urgent need and this group > has seen everything; I need two USB ports on a system to have the same > channel. I continue to STFW but have not come upon something like this > yet. The application is for softphones in a call center

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-13 Thread John Nichel
Rahul S. Johari wrote: Samba. It's an SMB share. On 9/13/06 12:39 AM, "Chris" <[EMAIL PROTECTED]> wrote: Rahul S. Johari wrote: That was a good idea. I tried that... It was showing nothing for /Volumes/foresight ... But it did show the contents of /Volumes... And interestingly, 'foresight' w

Re: [PHP] USB Question Not PHP Related, so if you don't want to read this you don't have to

2006-09-13 Thread tg-php
Sorry, misread the "splitter" comment earlier. A splitter pre-USB off of the headset or phone-unit somewhere may work too. -TG = = = Original message = = = We have a similar (and still non-PHP related) issue at work where we want to do the "call may be monitored for quality assurance" thing

Re: [PHP] DOM - parse HTML document [solved]

2006-09-13 Thread tedd
At 12:07 AM +0200 9/13/06, Leonidas Safran wrote: Hello all, I have found a way... $doc = new DomDocument(); $doc->loadHTMLFile($source["url"]); $elements = $doc->getElementsByTagName("tr"); $i = 0; while( $elements->item($i) ){ if( $elements->item($i)->hasAttributes() && preg_match("/td[0|

Re: [PHP] USB Question Not PHP Related, so if you don't want to read this you don't have to

2006-09-13 Thread tg-php
We have a similar (and still non-PHP related) issue at work where we want to do the "call may be monitored for quality assurance" thing on the new phone system we just got. Our old phone system was analog and provided for this feature. The new system is a Cisco IP Phone deal which is really re

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-13 Thread Rahul S. Johari
Samba. It's an SMB share. On 9/13/06 12:39 AM, "Chris" <[EMAIL PROTECTED]> wrote: > Rahul S. Johari wrote: >> That was a good idea. I tried that... It was showing nothing for >> /Volumes/foresight ... But it did show the contents of /Volumes... And >> interestingly, 'foresight' was also listed

Re: [PHP] USB Question Not PHP Related, so if you don't want to read this you don't have to

2006-09-13 Thread benifactor
you should try to search for a headset with a splitter. i dont know if this would work for your needs, but it would allow multiple connectons and require only one port. - Original Message - From: "Jay Blanchard" <[EMAIL PROTECTED]> To: Sent: Wednesday, September 13, 2006 4:59 AM Subject:

[PHP] USB Question Not PHP Related, so if you don't want to read this you don't have to

2006-09-13 Thread Jay Blanchard
I generally would not do this, but I have an urgent need and this group has seen everything; I need two USB ports on a system to have the same channel. I continue to STFW but have not come upon something like this yet. The application is for softphones in a call center environment, the headsets to

Re: [PHP] PHP and mySQL dates

2006-09-13 Thread Dave Goodchild
Good luck with that. > -- http://www.web-buddha.co.uk http://www.projectkarma.co.uk -- http://www.web-buddha.co.uk http://www.projectkarma.co.uk

RE: [PHP] PHP and mySQL dates

2006-09-13 Thread Peter Lauri
No problem, now I will go and make my girlfriend happy :) -Original Message- From: Dave Goodchild [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 13, 2006 6:27 PM To: Peter Lauri Cc: PHP General Subject: Re: [PHP] PHP and mySQL dates Thanks. I have been so up close and personal with

Re: [PHP] PHP and mySQL dates

2006-09-13 Thread Dave Goodchild
Thanks. I have been so up close and personal with this that I can't see the wood for the trees. Of course, so obvious. Thank you - you have made me very happy. -- http://www.web-buddha.co.uk http://www.projectkarma.co.uk

RE: [PHP] PHP and mySQL dates

2006-09-13 Thread Peter Lauri
[snip] Hi all. I am building an online events registry and have mapped out all the dates between Oct 1 2006 and Dec 31 2030, stored in the database as timestamps incremented by 86400 to give daily slots. [/snip] I do not really understand the purpose of mapping all dates between Oct 1 2006 and De

[PHP] PHP and mySQL dates

2006-09-13 Thread Dave Goodchild
Hi all. I am building an online events registry and have mapped out all the dates between Oct 1 2006 and Dec 31 2030, stored in the database as timestamps incremented by 86400 to give daily slots. I have output the values using the php date function and all is well. Users can enter either one-off

RE: [PHP] Affiliate system

2006-09-13 Thread Peter Lauri
That is probably what I will do. Thanks for your comment. -Original Message- From: Andrei [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 13, 2006 2:43 PM To: [php] PHP General List Subject: Re: [PHP] Affiliate system I ran into same issue with a site... I solved this probl

Re: [PHP] Affiliate system

2006-09-13 Thread Andrei
I ran into same issue with a site... I solved this problem by saving information in 2 places (in cookies and in database). So when saving data once I saved in the cookie then into database. When I wanted to read the information I first check if cookie exist and if it doesn't I read from da

Re: [PHP] Affiliate system

2006-09-13 Thread J R
use session. or you can store it in a database but that will take speed. :) using session is much better rather than using cookies for lots of reason (just google) specially if you are concered with security. just my 2cents. hth, john p.s. if the client cookies is disabled set to true the ses

Re: [PHP] Affiliate system

2006-09-13 Thread Robert Cummings
On Wed, 2006-09-13 at 12:58 +0700, Peter Lauri wrote: > Hi guys, > > I am reviewing an affiliate system that I created a while ago. I am using a > very simple method to do this, but I am curious if there is any better > system (better I mean less missed affiliate purchases). > > 1. User click on