[PHP] Setting cookie for two domains.

2006-01-04 Thread Shafiq Rehman
Hi, How can I register a session or cookie for two domains. I want to maintain logged user's state when he goes from one domain to other domain. Example Suppose a user is logged in on domain1.com. A cookie is set and user is authenticated from database on the basis of that cookie. When he goes fr

Re: [PHP] admin variables in CGI version

2006-01-04 Thread Curt Zirzow
On Tue, Jan 03, 2006 at 11:07:16AM -0800, Tim Traver wrote: > Hi all, > > ok, when using the CGI binary for PHP execution, is there a way to send > it environment variables to set the admin values like you can in mod_php ??? > > For instance, when using the apache module, you might do something

Re: [PHP] mysqli bind_param and store_result don't work well together

2006-01-04 Thread Curt Zirzow
On Wed, Jan 04, 2006 at 12:31:02AM +0530, anirudh dutt wrote: > hi > the subject is pretty much what the problem is. > > if i use > $st1 = $sql->stmt_init(); // $sql is a mysqli obj/conn > $st1->prepare("select `num` from `activity` where `id` = ?"); > $st1->bind_param('s', $myid); > $myid = '3f6d

Re: [PHP] Curl Question

2006-01-04 Thread Curt Zirzow
On Tue, Jan 03, 2006 at 01:52:44PM -0700, Ray Hauge wrote: > Hello everyone, > > I just wanted to see if anyone knew if there was any difference in > performance between using curl in an exec() statement and when using the > libCurl functions within PHP. You might notice a difference if you loo

Re: [PHP] are these db stats normal?

2006-01-04 Thread Curt Zirzow
On Tue, Jan 03, 2006 at 12:29:14PM -0500, James Tu wrote: > I used phpMyAdmin to look at the stats for this mysql server. > > http://www.2-bit-toys.com/db_info/server_status.html > > What concerns me mainly are the stats at the top-right...'Failed > attempts' and 'Aborted.' > When would these s

Re: [PHP] fread problem

2006-01-04 Thread Curt Zirzow
On Mon, Jan 02, 2006 at 09:35:21PM +0100, Mario de Frutos Dieguez wrote: > Hi! > > I have a problem using fread with a XML document. When i read some nodes > with a great amount of text it cuts in the same place of the text. There > are any limitation of text or something? I have in the php.ini th

Re: [PHP] PHPMailer inserting unwanted spaces

2006-01-04 Thread Curt Zirzow
On Tue, Jan 03, 2006 at 10:37:10AM -0700, Ren Fournier wrote: > Actually, I can send the example messages but here is another > description of the same problem. (So PHPMailer is inserting line > breaks, not spaces�or something is...) > > http://sourceforge.net/tracker/index.php? > func=detail

[PHP] How to: Search web for specific file type?

2006-01-04 Thread Michael Hulse
Hello, Just curious if anyone could give me some google keywords/links/suggestions/tips/comments/feedback on a good place to start for writing a search engine script. I think I might have a good idea for a specific type of search engine. Basically it would crawl web and index links to a spec

Re: [PHP] Re: failed to open stream warning

2006-01-04 Thread Travis Doherty
zedleon wrote: >>Warning: fopen(home/path/temp") failed to open stream: No such file or >>directory >>I am trying to write a script to work with GnuPG, but can't get past this >>basic problem. >>Everything I try gives me the same warning. > >I just corrected the code...I had it correct but posted

Re: [PHP] Re: failed to open stream warning

2006-01-04 Thread Michael Hulse
On Jan 4, 2006, at 4:56 PM, zedleon wrote: I just corrected the code...I had it correct but posted it in correctly. $fp = fopen("home/path/temp" "w+"); puts($fp, $msg); fclose($fp); Still getting the same warning... I think you forgot a comma this time... $fp = fopen("home/path/temp", "w

[PHP] Re: failed to open stream warning

2006-01-04 Thread zedleon
I just corrected the code...I had it correct but posted it in correctly. $fp = fopen("home/path/temp" "w+"); puts($fp, $msg); fclose($fp); Still getting the same warning... Thanks ""zedleon"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Has anybody had any experience in resolvi

Re: [PHP] failed to open stream warning

2006-01-04 Thread Michael Hulse
On Jan 4, 2006, at 4:28 PM, zedleon wrote: $fp = fopen("home/path/temp "w+"); You only got 3 quotes in the above code... try this: $fp = fopen("home/path/temp", "w+"); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Graphically displayed number to confirm user is a human [SOLVED]

2006-01-04 Thread Dave M G
Thank you all for pointing me in the right direction. I was extremely unlikely to come across the term "CAPTCHA" by starting with the search terms I was using. I'm really glad I asked here. Your time taken to answer my query is much appreciated. -- Dave M G -- PHP Gener

RE: [PHP] Counting in Hex

2006-01-04 Thread Ben Miller
Never mind - wasn't adding properly. Found it after all on php.net, anyway. Thanks anyway. -Original Message- From: Ben Miller [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 04, 2006 5:01 PM To: php-general@lists.php.net Subject: [PHP] Counting in Hex Is there a way in PHP to count

[PHP] Counting in Hex

2006-01-04 Thread Ben Miller
Is there a way in PHP to count using hex instead of numerals so that the following statement $var = 237F; $var++; echo "$var"; would result in 2380 Thanks a bunch. Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] New extension: the extension formally known as MSession is now MCache

2006-01-04 Thread Mark
Just want to open a discussion about what used to be called msession. As many of you may be aware, msession had some problems with later Linux kernels as well as stability issues on Apache 2. MCache is redesign of msession is is intended to more or less replace msession. For more info, go to ww

RE: [PHP] Parsing through an Apache Log File?

2006-01-04 Thread Jay Paulson \(CE CEN\)
> If this is just a one time thing you're looking to do, all of this may be > over the top. However, if the bosses are going to want to review this data > month in and month out, I think the time spent doing something like this will > be worth it. As of now I've got it working and inserting th

Re: [PHP] Parsing through an Apache Log File?

2006-01-04 Thread John Nichel
Jay Paulson (CE CEN) wrote: Jay Paulson (CE CEN) wrote: Hello everyone! I've been given the responsiblity of coding an apache access_log parser. What my tasks are to do is to return the number of hits for certain file extensions that happen on certain dates with specific IP address. As of

Re: [PHP] Parsing through an Apache Log File?

2006-01-04 Thread John Nichel
Jay Paulson (CE CEN) wrote: Jay Paulson (CE CEN) wrote: Hello everyone! I've been given the responsiblity of coding an apache access_log parser. What my tasks are to do is to return the number of hits for certain file extensions that happen on certain dates with specific IP address. As of

RE: [PHP] Parsing through an Apache Log File?

2006-01-04 Thread Jay Paulson \(CE CEN\)
Jay Paulson (CE CEN) wrote: > Hello everyone! I've been given the responsiblity of coding an apache > access_log parser. What my tasks are to do is to return the number of hits > for certain file extensions that happen on certain dates with specific IP > address. > > As of now I'm only going

RE: [PHP] Parsing through an Apache Log File?

2006-01-04 Thread Jay Paulson \(CE CEN\)
Jay Paulson (CE CEN) wrote: > Hello everyone! I've been given the responsiblity of coding an apache > access_log parser. What my tasks are to do is to return the number of hits > for certain file extensions that happen on certain dates with specific IP > address. > > As of now I'm only going

RE: [PHP] Problem on Instalation ~ several module failed to load

2006-01-04 Thread Bagus Nugroho
I was trying used php 5.1, but it still same problem appear, several modules succesfully load (mbstring, bz2, dba, dbase, exif, filepro, gd2, gettext, imap, ldap, mime_magic, ming, pgsql, shmop, snmp, socket, tidy, xmlrpc, xsl.) and several others are failed to load : (curl, fdf, ifx, interbase,

Re: [PHP] Parsing through an Apache Log File?

2006-01-04 Thread John Nichel
Jay Paulson (CE CEN) wrote: Hello everyone! I've been given the responsiblity of coding an apache access_log parser. What my tasks are to do is to return the number of hits for certain file extensions that happen on certain dates with specific IP address. As of now I'm only going back 7 days

Re: [PHP] Newbie question: need to transfer directory contents fr om my local machine to my website

2006-01-04 Thread Jochem Maas
Jim Moseby wrote: ... Perhaps I misunderstand what the OP wanted. I thought he was running a webserver somewhere, and that he wanted his remote webserver to be able to grab a file listing on his local machine by just visiting a webpage there. if you ask me it wasn't very clear what the OP

[PHP] Parsing through an Apache Log File?

2006-01-04 Thread Jay Paulson \(CE CEN\)
Hello everyone! I've been given the responsiblity of coding an apache access_log parser. What my tasks are to do is to return the number of hits for certain file extensions that happen on certain dates with specific IP address. As of now I'm only going back 7 days in the log looking for this i

RE: [PHP] Newbie question: need to transfer directory contents fr om my local machine to my website

2006-01-04 Thread Jim Moseby
> > > > You will not be able to do what you propose with a purely > PHP solution. PHP > > is a server-side technology. That means all the processing > is done at the > > server, then output to your browser. PHP, to my knowledge, > has no way to > > inspect your computer's folders. You would

RE: [PHP] Access Client IP address

2006-01-04 Thread Jay Blanchard
[snip] Is there any way to client's IP address inside a php document. I am trying to generate a code that depends on the IP address of the client. [/snip] http://us3.php.net/manual/en/reserved.variables.php#reserved.variables.serve r $_SERVER['REMOTE_ADDR'] but it may not always be reliabl

Re: [PHP] Access Client IP address

2006-01-04 Thread Silvio Porcellana [tradeOver]
Nilanjan Dasgupta wrote: > Hi, > Is there any way to client's IP address inside a php document. I am > trying to generate a code that depends on the IP address of the client. > > thanks a lot, > Nilanjan > Give a look at $_SERVER, and more specifically $_SERVER["REMOTE_ADDR"] http://php.net/

Re: [PHP] Access Client IP address

2006-01-04 Thread Ray Hauge
$_SERVER['REMOTE_ADDR'] http://www.php.net/manual/en/reserved.variables.php#reserved.variables.server HTH Nilanjan Dasgupta wrote: Hi, Is there any way to client's IP address inside a php document. I am trying to generate a code that depends on the IP address of the client. thanks a l

Re: [PHP] Access Client IP address

2006-01-04 Thread John Nichel
Nilanjan Dasgupta wrote: Hi, Is there any way to client's IP address inside a php document. I am trying to generate a code that depends on the IP address of the client. Yes. -- John C. Nichel IV Programmer/System Admin (ÜberGeek) Dot Com Holdings of Buffalo 716.856.9675 [EMAIL PROTECTED]

[PHP] Access Client IP address

2006-01-04 Thread Nilanjan Dasgupta
Hi, Is there any way to client's IP address inside a php document. I am trying to generate a code that depends on the IP address of the client. thanks a lot, Nilanjan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Newbie question: need to transfer directory contents frommy local machine to my website

2006-01-04 Thread Duffy, Scott E
I would take a look at glob. http://us2.php.net/manual/en/function.glob.php Scott -Original Message- From: Jason Pappin [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 04, 2006 10:48 AM To: Jon Westcot; PHP General Subject: Re: [PHP] Newbie question: need to transfer directory conten

[PHP] Re: php / mysql / js search result question

2006-01-04 Thread Michelle Konzack
Am 2005-12-27 08:03:42, schrieb Dave Carrera: > Hi List, > User input is "a" so the list moves to first instance of "a". User > continues to input "ap" so the list moves to "2 Apple Customer" and so on. This can only be done from a JavaScript. > Thank you in advance > > Dave c Greetings Mich

Re: [PHP] Graphically displayed number to confirm user is a human

2006-01-04 Thread Jason Pappin
John Meyer wrote: > Duncan Hill wrote: > >>On Wednesday 04 January 2006 16:56, Dave M G wrote: >> >> >> >>> First, is there a term for these kinds of images, or that kind of >>>verification system? What would be the best search terms to look for >>>source scripts? >>> >> >>captcha >> >>

Re: [PHP] Newbie question: need to transfer directory contents fr om my local machine to my website

2006-01-04 Thread Jochem Maas
Jim Moseby wrote: Hi Jon, welcome. I'm really new at PHP and will probably embarrass myself many times over asking questions that have been asked gazillions of times before, so let this serve as a blanket apology. You will get a cold response from the regulars on this list if you "ask q

Re: [PHP] Graphically displayed number to confirm user is a human

2006-01-04 Thread John Meyer
Duncan Hill wrote: On Wednesday 04 January 2006 16:56, Dave M G wrote: First, is there a term for these kinds of images, or that kind of verification system? What would be the best search terms to look for source scripts? captcha I've been looking for this term for a whil

Re: [PHP] Graphically displayed number to confirm user is a human

2006-01-04 Thread Duncan Hill
On Wednesday 04 January 2006 16:56, Dave M G wrote: > First, is there a term for these kinds of images, or that kind of > verification system? What would be the best search terms to look for > source scripts? captcha -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Graphically displayed number to confirm user is a human

2006-01-04 Thread Jim Moseby
> PHP General List, > > This is something I tried to find on Google, but I'm > hindered by not > knowing the proper terminology. > On many sites that have contact or registration forms, > they have a > small image file with a randomly generated number shown in a distorted > graphical

Re: [PHP] Graphically displayed number to confirm user is a human

2006-01-04 Thread David Grant
Dave M G wrote: > First, is there a term for these kinds of images, or that kind of > verification system? What would be the best search terms to look for > source scripts? CAPTCHA > Second, can anyone recommend a resource for that kind of PHP script. If > I really worked at it, I cou

[PHP] Graphically displayed number to confirm user is a human

2006-01-04 Thread Dave M G
PHP General List, This is something I tried to find on Google, but I'm hindered by not knowing the proper terminology. On many sites that have contact or registration forms, they have a small image file with a randomly generated number shown in a distorted graphical fashion that is

Re: [PHP] Newbie question: need to transfer directory contents from my local machine to my website

2006-01-04 Thread Jason Pappin
Hi, You should perhaps look at setting up a web server on your computer. PHP as stated works server-side and if those folders/files you wish to transfer reside in the web root, then PHP can process those files. Perhaps look at how a web based FTP client written in PHP works for how to copy/move/d

Re: [PHP] Newbie question: need to transfer directory contents from my local machine to my website

2006-01-04 Thread Miles Thompson
At 02:18 AM 1/4/2006, Jon Westcot wrote: Hi all: I'm really new at PHP and will probably embarrass myself many times over asking questions that have been asked gazillions of times before, so let this serve as a blanket apology. Now, to my question. Here's what I'm trying to do. I

RE: [PHP] Newbie question: need to transfer directory contents fr om my local machine to my website

2006-01-04 Thread Jim Moseby
Hi Jon, welcome. > I'm really new at PHP and will probably embarrass myself > many times over asking questions that have been asked > gazillions of times before, so let this serve as a blanket apology. You will get a cold response from the regulars on this list if you "ask questions that h

[PHP] Re: fread problem

2006-01-04 Thread Haydar Ciftci
How looks your characterData function? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Comparing of string

2006-01-04 Thread Raz
I would guess that the '&' in $_GET['formCheck'] will cause problems... Trying your code without the ampersand as in: $_GET['formCheck'] = 'ZL0X~TT4PQ%0~R0OXPRUHY7E!4~W337J71V4WDDI6$GS9480XP0TNP2I$1YX75S' It works just fine. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Comparing of string

2006-01-04 Thread Jeremy Privett
janbro wrote: Hi Jeremy, I tried if ( strcmp( trim($SollKombination), trim($formCheck) ) ) same negativ result. For some reason both strings are not considered to be the same. They have the same length, are of the same type and have the same content. Why PHP doesn't recognize them as beeing e

Re: [PHP] Comparing of string

2006-01-04 Thread janbro
Hi Jeremy, I tried if ( strcmp( trim($SollKombination), trim($formCheck) ) ) same negativ result. For some reason both strings are not considered to be the same. They have the same length, are of the same type and have the same content. Why PHP doesn't recognize them as beeing equal I don't