[PHP] PHP wiki recommendations

2005-09-08 Thread Murray @ PlanetThoughtful
Hi All, I want to add a wiki to my blog site to help create a knowledgebase of the characters, localities, stories I write to make it easier for new visitors to delve into the areas that interest them. I've been experimenting with a couple of different wiki packages, but am always interested in

[PHP] preg_match help please

2005-09-08 Thread Steve Turnbull
Hi I am trying to find a regular expression to match a variable, what I think should work (but doesn't) is; preg_match ('^/[\w],[\w],/', $variable) The $variable MUST contain an alpha-numeric string, followed by a comma, followed by another alpha-numeric string, followed by another comma

Re: [PHP] preg_match help please

2005-09-08 Thread Jasper Bryant-Greene
Steve Turnbull wrote: I am trying to find a regular expression to match a variable, what I think should work (but doesn't) is; preg_match ('^/[\w],[\w],/', $variable) The $variable MUST contain an alpha-numeric string, followed by a comma, followed by another alpha-numeric string, followed by

[PHP] unserialize() problem

2005-09-08 Thread Harris Kosmidhs
Hello all. I wrote some php pages running on apache1.3/php4.4.0-1 In the login page I make use of a class where I store the users name and some integers (i.e whether the user ia able to see a certain page) and serialize the class to a session var. When you go to a page I unserialize the session

Re: [PHP] preg_match help please

2005-09-08 Thread Steve Turnbull
On Thu, 08 Sep 2005 19:27:49 +1200, Jasper Bryant-Greene wrote: Steve Turnbull wrote: I am trying to find a regular expression to match a variable, what I think should work (but doesn't) is; preg_match ('^/[\w],[\w],/', $variable) The $variable MUST contain an alpha-numeric string,

Re: [PHP] preg_match help please

2005-09-08 Thread Jasper Bryant-Greene
Steve Turnbull wrote: On Thu, 08 Sep 2005 19:27:49 +1200, Jasper Bryant-Greene wrote: Something like '/^\w+,\w+,\w*$/' maybe? (untested) http://php.net/reference.pcre.pattern.syntax Thats got me a lot further - thanks I reduced it slightly to '/^\w+,\w+,' because at the end there is the

Re: [PHP] regular expression for integer range

2005-09-08 Thread Mark Rees
Murray @ PlanetThoughtful [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all, I want to write regular expression for checking the string format entered by user. the allowed formats are examples: 10 10, 10,12-10 12-10 that is the valid strings are: 1.

[PHP] problem with multi field validation

2005-09-08 Thread Muthukumar
Hi All, Greetings. I am working on making php script with gets information from a file with five fields and load it on browser. # cat machines.log machine1:os:team1:member1:booked machine2:os:team1:member2:booked machine3:os:team1:: machine4:os:team1:: format is like machine:os:team:member

[PHP] regex

2005-09-08 Thread Merlin
Hi there, I would like to create a regex which only executes if the client does not come from a specified IP adress. Any ideas how to place this into the Rewrite Rule regex?: RewriteRule ^(.*)$ Thank you for any help on that, Merlin -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] regex

2005-09-08 Thread Jasper Bryant-Greene
Merlin wrote: I would like to create a regex which only executes if the client does not come from a specified IP adress. Any ideas how to place this into the Rewrite Rule regex?: What does this have to do with PHP? http://www.google.com/search?q=regular+expression The top four or five

[PHP] RE: [PHP-DEV] OCI8 1.1 announce

2005-09-08 Thread BUSTARRET, Jean-Francois
-Message d'origine- De : Antony Dovgal [mailto:[EMAIL PROTECTED] Envoyé : mercredi 7 septembre 2005 18:06 À : php-dev; [EMAIL PROTECTED]; php-general@lists.php.net Objet : [PHP-DEV] OCI8 1.1 announce Hi all, Yesterday OCI8 extension have been updated in the PHP CVS (HEAD only).

RE: [PHP] preg_match help please

2005-09-08 Thread Ford, Mike
On 08 September 2005 09:15, Steve Turnbull wrote: On Thu, 08 Sep 2005 19:27:49 +1200, Jasper Bryant-Greene wrote: Steve Turnbull wrote: I am trying to find a regular expression to match a variable, what I think should work (but doesn't) is; preg_match ('^/[\w],[\w],/',

[PHP] Cleaning a resultset

2005-09-08 Thread Shaun
Hi, I have a resultset from a query and need to remove some rows after doing some php processing then insert into another table i.e. /** Get data**/ $qid = mysql_query('SELECT ...); /** Clean data **/ while( $r = mysql_fetch_object( $qid ) ) { } How can i generate a new resultset /

RE: [PHP] Cleaning a resultset

2005-09-08 Thread Murray @ PlanetThoughtful
Hi, I have a resultset from a query and need to remove some rows after doing some php processing then insert into another table i.e. /** Get data**/ $qid = mysql_query('SELECT ...); /** Clean data **/ while( $r = mysql_fetch_object( $qid ) ) { } How can i generate a new

Re: [PHP] regex

2005-09-08 Thread John Nichel
Merlin wrote: Hi there, I would like to create a regex which only executes if the client does not come from a specified IP adress. Any ideas how to place this into the Rewrite Rule regex?: I'm betting members of the Apache mailing list know. -- John C. Nichel ÜberGeek KegWorks.com

[PHP] access resources via a proxy

2005-09-08 Thread Vedanta Barooah
Hello all! Consider this... Web Server A belongs to an intranet and hosts sites internally, Server A can only access external web resources via proxy http://proxy:8080 . How does Server A access resources from Server B which is in the internet using PHP? A typical scenario: Server A needs to

RE: [PHP] Help with Class

2005-09-08 Thread Ian Barnes
Hi Thomas, Thanks for the help. That didn't work though ... Its now set to be $SDK = new sdk; Nothing :( -Original Message- From: Thomas [mailto:[EMAIL PROTECTED] Sent: 08 September 2005 09:08 AM To: 'Ian Barnes' Subject: RE: [PHP] Help with Class Sorry for not explaining ...

[PHP] Deadlock with session handling code?

2005-09-08 Thread Ben Ramsey
The following message is from a co-worker. I'm passing it along as a favor. Any help would be greatly appreciated since we're both somewhat stuck with no clue how to proceed with this. Thanks, Ben Ramsey I'm having a major problem with my PHP scripts getting stuck on one of our production

[PHP] Better timestamp explanation to the client

2005-09-08 Thread Ryan A
Hi, In one of our tables we have these fields: cust_no bigint(20), cust_name varchar(30), last_online datetime, and in that members profile, if someone visits it, on the top of the page we have this: // connect to db, query for record and display it below Last seen: ?php echo $last_online; ?

Re: [PHP] Sessions , expiry times and different time zones

2005-09-08 Thread Jordan Miller
As I said, **rather** than relying on cookie expiration. This *necessarily* means that you will need to set the cookie expiration to sometime way in the future, like next year (or more dynamically, use the date() and mktime() functions to always set the cookie expiration to + 1 yr from

Re: [PHP] Parsing MS-WORD docs

2005-09-08 Thread Rory Browne
What OS are you using? What do you want to do? ie why do you want to parse them? Chances are that you will not be able to do it with PHP, but may be able to call an external utility from PHP that will perform the required task. On 9/7/05, Shafiq Rehman [EMAIL PROTECTED] wrote: Hello, I want

Re: [PHP] Breaking up search terms into an array intelligently

2005-09-08 Thread Paul Groves
Brent Baisley wrote: It sounds like you are trying to build a full text search string, perhaps for searching a MySQL database? Actually, I was thinking of doing a MySQL non full-text search, hence the need to split the words/phrases up so that they could then be fed into individual WHERE

Re: [PHP] Better timestamp explanation to the client

2005-09-08 Thread Chris
I'd probably out how many minutes it's been, then format it using if statements. $iMinues = (value from database); if(1 $iMinutes) $sLastseen = 'Less than a minute ago!'; elseif(1 == $iMinutes) $sLastseen = '1 minute ago'; elseif(60 $iMinutes) $sLastseen = {$iMinutes} minutes ago; elseif(120

[PHP] Re: Parsing MS-WORD docs

2005-09-08 Thread Ben Ramsey
zzapper wrote: On Wed, September 7, 2005 7:39 am, Shafiq Rehman wrote: Hello, I want to parse the .doc files with PHP. Anybody have some idea regarding this problem. Your help regarding this matter is really appreciated Also consider antiword And also: wvWare:

Re: [PHP] Better timestamp explanation to the client

2005-09-08 Thread Jordan Miller
methinks you should convert the datetime to a unix timestamp with strtotime(). then you can compare the difference between this timestamp and a unix timestamp of now to find if you have logged in within a min. of the previous time. Then, once you know what text to display (e.g. Less than a

Re: [PHP] preg_match help please

2005-09-08 Thread Steve Turnbull
On Thu, 08 Sep 2005 09:15:03 +0100, Steve Turnbull wrote: On Thu, 08 Sep 2005 19:27:49 +1200, Jasper Bryant-Greene wrote: Steve Turnbull wrote: I am trying to find a regular expression to match a variable, what I think should work (but doesn't) is; preg_match ('^/[\w],[\w],/', $variable)

[PHP] php.ini and php.config Tutorial?

2005-09-08 Thread Vizion
Hi Background: I am installing php with apache2 and ssl, mysql-server-5.0.11 on one of my Freebsd 5.3. servers. I propose to run a forum (currently investigating phpbb but would like to consider others) and am also looking for suitable blog and wiki applications. I am more of a system

Re: [PHP] preg_match help please

2005-09-08 Thread Steve Turnbull
On Thu, 08 Sep 2005 16:36:36 +0100, Steve Turnbull wrote: On Thu, 08 Sep 2005 09:15:03 +0100, Steve Turnbull wrote: On Thu, 08 Sep 2005 19:27:49 +1200, Jasper Bryant-Greene wrote: Steve Turnbull wrote: I am trying to find a regular expression to match a variable, what I think should work

Re: [PHP] php.ini and php.config Tutorial?

2005-09-08 Thread Vizion
On Thursday 08 September 2005 08:34, the author Vizion contributed to the dialogue on- [PHP] php.ini and php.config Tutorial?: Hi Background: I am installing php with apache2 and ssl, mysql-server-5.0.11 on one of my Freebsd 5.3. servers. I propose to run a forum (currently investigating

Re: [PHP] php.ini and php.config Tutorial?

2005-09-08 Thread Rory Browne
Hi David I know that quite a lot of online docs can be daunting for new users, but you should not underestimate the quality of the php documentation. On 9/8/05, Vizion [EMAIL PROTECTED] wrote: Hi Background: I am installing php with apache2 and ssl, mysql-server-5.0.11 on one of my Freebsd

Re: [PHP] php.ini and php.config Tutorial?

2005-09-08 Thread Vizion
On Thursday 08 September 2005 09:49, the author Rory Browne contributed to the dialogue on- Re: [PHP] php.ini and php.config Tutorial?: Hi David I know that quite a lot of online docs can be daunting for new users, but you should not underestimate the quality of the php documentation. Sure

[PHP] RE: PHP wiki recommendations

2005-09-08 Thread Finner, Doug
I'm not a Wiki expert, but have been using TikiWiki for a while and very much like it. It does everything you say with the possible exception of CSS. It may very well support CSS, I just don't need it so haven't investigated. It also allows for the use of templates that can be applied globally

Re: [PHP] Session expires randomly

2005-09-08 Thread Mauricio Pellegrini
On Tue, 2005-09-06 at 19:43, Philip Hallstrom wrote: On Tue, 6 Sep 2005, Mauricio Pellegrini wrote: You were right! That was exactly the problem after reading your message, I 've verified the value for gc_maxlifetime and found that it was set to 1440 secs in other words 24 minutes.

[PHP] Re: php.ini and php.config Tutorial?

2005-09-08 Thread Raj Shekhar
in infinite wisdom Vizion spoke thus On 09/08/2005 09:04 PM: Questions: 1. As I am new to php I would appreciated if someone could help me locate a tutorial which not only describes what is in the configuration files (which the distributed configuration files do quite well) but also, some

[PHP] Re: access resources via a proxy

2005-09-08 Thread Raj Shekhar
in infinite wisdom Vedanta Barooah spoke thus On 09/08/2005 07:22 PM: A typical scenario: Server A needs to display news, which resides on Server B as RSS feeds. For this the PHP script hosted on Server A need to go via the proxy http://proxy:8088 then read the feed in Server B for it to

[PHP] Rotating images from a folder

2005-09-08 Thread Ross
Hi, I am looking to rotate 6 or 7 different images from a folder onto homepage. So I need 2 things (i) The method of upload an image from a specified folder. (ii) The way to randomise this action Any tutorials or pointers will be helpful.. R. -- PHP General Mailing List

Re: [PHP] Create a new $_COOKIE[PHPSESSID] in PHP4.3.1

2005-09-08 Thread Steffen Stollfuß
hy try this $sess_id = session_id(); // Unset all Session Vars session_unset(); // Destroy Session session_destroy(); /* // Get session file and delete it !!! if (strtolower('files' == session_module_name())) {

Re: [PHP] Session expires randomly

2005-09-08 Thread Kirk . Johnson
So I was thinking on implementing some sort of automatic session refresh after a short period, let's say every 20 minutes of inactivity. And of course I should provide the users with a manual way to make session end, sort of a logout from the application.( no problem with that)

[PHP] Limit - nr of sessions on a domain?

2005-09-08 Thread Gustav Wiberg
Hi there! I'm trying to set 30 diffrent cookies on a domain, but it seems that a cookie sets to zero and there is a max of 18 or 19 cookies... Can this be right? /G http://www.varupiraten.se/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Fw: [PHP] Limit - nr of sessions on a domain?

2005-09-08 Thread Gustav Wiberg
- Original Message - From: Gustav Wiberg [EMAIL PROTECTED] To: PHP General php-general@lists.php.net Sent: Thursday, September 08, 2005 11:36 PM Subject: [PHP] Limit - nr of sessions on a domain? Hi there! I'm trying to set 30 diffrent cookies on a domain, but it seems that a cookie

Re: [PHP] Checking a date for validity

2005-09-08 Thread Todd Cary
Chris W. Parker wrote: Todd Cary mailto:[EMAIL PROTECTED] on Wednesday, September 07, 2005 3:39 PM said: /* Is date good */ function is_date_good($date) { if (strtotime($date) == -1) { $retval = 0; } else { if (strpos($date, /) 0) { $parts = explode(/,

Re: [PHP] Checking a date for validity

2005-09-08 Thread Todd Cary
Chris W. Parker wrote: Todd Cary mailto:[EMAIL PROTECTED] on Wednesday, September 07, 2005 3:39 PM said: /* Is date good */ function is_date_good($date) { if (strtotime($date) == -1) { $retval = 0; } else { if (strpos($date, /) 0) { $parts = explode(/,

Re: [PHP] Checking a date for validity

2005-09-08 Thread Todd Cary
Chris W. Parker wrote: Todd Cary mailto:[EMAIL PROTECTED] on Wednesday, September 07, 2005 3:39 PM said: /* Is date good */ function is_date_good($date) { if (strtotime($date) == -1) { $retval = 0; } else { if (strpos($date, /) 0) { $parts = explode(/,

Re: [PHP] Re: php.ini and php.config Tutorial?

2005-09-08 Thread Vizion
On Thursday 08 September 2005 12:36, the author Raj Shekhar contributed to the dialogue on- [PHP] Re: php.ini and php.config Tutorial?: in infinite wisdom Vizion spoke thus On 09/08/2005 09:04 PM: Questions: 1. As I am new to php I would appreciated if someone could help me locate a

Re: [PHP] Help with Class

2005-09-08 Thread Ryan Creaser
Ian Barnes wrote: require_once ( $fetchd['path'].'sdk/ipbsdk_class.inc.php' ); What is the above line doing? It looks like you are trying to redeclare the ipbsdk class each time around the loop which is illegal in php. You can't do : class ipbsdk {

[PHP] How large string in cookie?

2005-09-08 Thread Gustav Wiberg
How large can a string be in a cookie? (the value-parameter) /G http://www.varupiraten.se/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Inserting records question

2005-09-08 Thread Iggep
Still learning, so sorry if this sounds really simply noobish. But as I understand things currently this should work. But doesn't. I've been looking over tutorials but just don't see whatever the problem is. I created a simple table with the following fields (in order) tc_id (auto nmbr)

[PHP] SPL array filter

2005-09-08 Thread Kevin Waterson
Want to filter out cats from this array using SPL FilterIterator $arr = array('koala', 'dingo', 'cat', 'Steve Irwin', 'fish'); kind regrards Kevin -- Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote. -- PHP General Mailing

Re: [PHP] How large string in cookie?

2005-09-08 Thread Philip Hallstrom
How large can a string be in a cookie? (the value-parameter) According to here: http://wp.netscape.com/newsref/std/cookie_spec.html There are limitations on the number of cookies that a client can store at any one time. This is a specification of the minimum number of cookies that a client

Re: [PHP] Inserting records question

2005-09-08 Thread Philip Hallstrom
Still learning, so sorry if this sounds really simply noobish. But as I understand things currently this should work. But doesn't. I've been looking over tutorials but just don't see whatever the problem is. I created a simple table with the following fields (in order) tc_id (auto nmbr) lname

Re: [PHP] Inserting records question

2005-09-08 Thread Scott Noyes
mysql_connect(localhost,$username,$password); @mysql_select_db($database) or die(Unable to Connect to DB); $tc_query = INSERT INTO $tablel VALUES(NULL, $lname, $fname, $machine_name, $email_addr, $problem, NULL); $result =

RE: [PHP] Inserting records question

2005-09-08 Thread Warren Vail
It might also be a factor, but the variable containing the table name is $table (not $table1 as coded in the query string). Warren Vail [EMAIL PROTECTED] -Original Message- From: Philip Hallstrom [mailto:[EMAIL PROTECTED] Sent: Thursday, September 08, 2005 6:41 PM To: Iggep Cc:

RE: [PHP] Help with Class

2005-09-08 Thread Ian Barnes
Hi Ryan, I am including a different class.inc.php file each time the foreach loops. Each one sits in a different dir. Yes, I do get that error. My understanding of OOP is that I could null the $sdk variable and re-init it when the loop starts again.. Cheers -Original Message- From:

Re: [PHP] Re: access resources via a proxy

2005-09-08 Thread Vedanta Barooah
what about existing apps... do i need to rewrite them :( On 9/9/05, Raj Shekhar [EMAIL PROTECTED] wrote: in infinite wisdom Vedanta Barooah spoke thus On 09/08/2005 07:22 PM: A typical scenario: Server A needs to display news, which resides on Server B as RSS feeds. For this the PHP

Re: [PHP] Re: Parsing MS-WORD docs

2005-09-08 Thread Shafiq Rehman
Hello, Thanx to all of you for excellent suggestions. I am using Linux as OS and I want to parse the CVs and place in db for fulltext search. I think wvWare will work a lot for my case. Thanx again. On 9/8/05, Ben Ramsey [EMAIL PROTECTED] wrote: zzapper wrote: On Wed, September 7, 2005