[PHP] strange problem with post method

2004-02-05 Thread Giuliano Ippoliti
Hi list! Yesterday I've installed PHP 4.3.4 and Apache 1.3.29 on my Linux Mandrake 9.1 machine with a standard procedure: 1. cd apache_1.3.29 2.  ./configure 3.  cd ../php-4.3.4 4.  ./configure --with-apache=../apache_1.3.29 --enable-track-vars make make install 5. cd ../apache_1.3.29 6.

RE: [PHP] [SOLVED] Extract of a Paragraph

2004-02-05 Thread Daniel Perez Clavero
Oops, I forget to consider, what would happened with HTML tags. Thank you Justin. Finally I did a function similar to yours, but the addition of the TAG control is almost perfect solution. (To trunk a word of two or three words, does not worth. No need such complicated script (with dictionary) for

[PHP] Global.asa

2004-02-05 Thread Sheni R. Meledath
Hello: Is there anything similar to 'global.asa' which is used in ASP applications in PHP. Can anybody provide me with some details. Sheni R Meledath [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] strange problem with post method

2004-02-05 Thread Jason Wong
On Thursday 05 February 2004 16:41, Giuliano Ippoliti wrote: [snip] 9. cp php.ini-dist /usr/local/lib/php.ini Read the comments at the top of the file 'php.ini-recommended'. It is the same directory as the file 'php.ini-dist'. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open

[PHP] Re: Using sessions with register globals off

2004-02-05 Thread Phillip Jackson
PHP Manual: If register_globals is enabled, then each global variable can be registered as session variable. Upon a restart of a session, these variables will be restored to corresponding global variables. Since PHP must know which global variables are registered as session variables, users need

Re: [PHP] strange problem with post method

2004-02-05 Thread Giuliano Ippoliti
--- Jason Wong [EMAIL PROTECTED] wrote: On Thursday 05 February 2004 16:41, Giuliano Ippoliti wrote: [snip] 9. cp php.ini-dist /usr/local/lib/php.ini Read the comments at the top of the file 'php.ini-recommended'. It is the same directory as the file 'php.ini-dist'. Thank you

[PHP] Turck MMcache installtion

2004-02-05 Thread Binay
Hi all, I m using Turck MMcache for php source encoding. Now the server where i will deploy those file need to have turck loader installed on it. And the procedure given in the site requires compiling the source and then including the TurckLoader.so extension in php.ini file . Now is it

RE: [PHP] Re: MySQL: Order by

2004-02-05 Thread Angelo Zanetti
make your column of type int column -Original Message- From: Ben Ramsey [mailto:[EMAIL PROTECTED] Sent: Thursday, February 05, 2004 7:52 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [PHP] Re: MySQL: Order by I assume number is a column name in your table. If so, I'm also

Re: [PHP] Recommendation on PHP encoder please

2004-02-05 Thread Harry Sufehmi
On 04/02/2004 at 09:35 Chris W wrote: Hi, my company's looking to buy a PHP encoder to secure the source code. The encoded scripts should be able to run on Solaris platform (Apache webserver), and should only require minimum changes to the server. I'm sorry I can't help you but I am curious as to

RE: [PHP] Recommendation on PHP encoder please

2004-02-05 Thread Harry Sufehmi
Hi Larry, many thanks for the recommendation. That will be just perfect. I've informed my manager about it, and I imagine he'd be happy for the fact that we'll be saving quite a lot of money as well. Also thanks for the other recommendations - but unfortunately, we need Solaris compatibility

Re: [PHP] Turck MMcache installtion

2004-02-05 Thread Jason Wong
On Thursday 05 February 2004 19:00, Binay wrote: I m using Turck MMcache for php source encoding. Now the server where i will deploy those file need to have turck loader installed on it. And the procedure given in the site requires compiling the source and then including the TurckLoader.so

RE: [PHP] Recommendation on PHP encoder please

2004-02-05 Thread Ford, Mike [LSS]
On 05 February 2004 11:30, Harry Sufehmi wrote: ...SNIP... As you can see, the content will be secured, but the script is now becoming the weak point since it'll store the encryption key needed to decrypt the content. I hope you don't mean that literally. If you're really being security

Re: [PHP] Recommendation on PHP encoder please

2004-02-05 Thread Andrei Reinus
So double-encoding it (using a PHP encoder) will make life finally very hard for said cracker. No its not ... if I would badly need to get this encrypted page and have access to files ... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] multi dimension array sort help

2004-02-05 Thread Ford, Mike [LSS]
On 05 February 2004 04:33, Justin French wrote: Hi, I've read and re-read array_multisort(), but still can't get a grip on how to sort my array: Array ( [0] = Array ( [path_id] = 3 [year] = 2004 [month] = 02 [day] =

[PHP] PHP5: class variables problem / array_push bug

2004-02-05 Thread Vivian Steller
hi at all, i've a very strange problem but i don't know if this a real bug or only my imcompetence?! it is a problem with class variables set by __constructor() function in PHP5... look at this code: ? class MyClass extends DomNode { // remove extends DomNode and everything is fine

RE: [PHP] Recommendation on PHP encoder please

2004-02-05 Thread Harry Sufehmi
On 05/02/2004 at 11:48 Ford, Mike [LSS] wrote: On 05 February 2004 11:30, Harry Sufehmi wrote: As you can see, the content will be secured, but the script is now becoming the weak point since it'll store the encryption key needed to decrypt the content. I hope you don't mean that

Re: [PHP] Recommendation on PHP encoder please

2004-02-05 Thread Harry Sufehmi
On 05/02/2004 at 14:07 Andrei Reinus wrote: So double-encoding it (using a PHP encoder) will make life finally very hard for said cracker. No its not ... if I would badly need to get this encrypted page and have access to files ... So there's a reasonably easy way to decrypt those encoded files

RE: [PHP] Recommendation on PHP encoder please

2004-02-05 Thread Ford, Mike [LSS]
On 05 February 2004 13:10, Harry Sufehmi wrote: On 05/02/2004 at 11:48 Ford, Mike [LSS] wrote: On 05 February 2004 11:30, Harry Sufehmi wrote: As you can see, the content will be secured, but the script is now becoming the weak point since it'll store the encryption key

[PHP] Sort multidimensional array - ARGH!

2004-02-05 Thread Kim Steinhaug
I have been messing around now for some hours and Im going mad! Im pulling some heavy data from mySQL with count and grouping, after this I have to calculate som values and then sort the outcome. Therefore Im not able to let mySQL do the accuall sort. So i stuff it into an array, and I need to

[PHP] Re: Sort multidimensional array - ARGH!

2004-02-05 Thread Kim Steinhaug
OK, typically when finally biting the dust and asking for help the answer comes falling down from above... I figured out that a simple : sort($stats_unsorted); This would infact sort the first field of the subarrays. This would mean by throwing the results back and forth between several arrays I

Re: [PHP] Sort multidimensional array - ARGH!

2004-02-05 Thread Tom Rogers
Hi, Thursday, February 5, 2004, 11:35:34 PM, you wrote: KS I have been messing around now for some hours and Im going mad! KS Im pulling some heavy data from mySQL with count and grouping, KS after this I have to calculate som values and then sort the outcome. KS Therefore Im not able to let

Re: [PHP] multi dimension array sort help

2004-02-05 Thread Matthew Vos
Assuming your array is called $array1: $paths = array(); foreach ($array1 as $data_ptr = $data) { if (!in_array($data['path'],$paths) $paths[] = $data; } sort($paths) foreach($paths as $path_to_check) { foreach($array1 as $data_ptr = $data) { if ($data['path'] == $path_to_check) { /**

[PHP] PHP5: __call() implementation

2004-02-05 Thread Vivian Steller
Hello, as you know there is a new callback function __call($method, $params) in php5. the __call() method of an object is called, if the method named $method is not declared in this class. i want this function simply call the method of another class with SomeClass::$method(...) but i'm getting

Re: [PHP] PHP5: __call() implementation

2004-02-05 Thread John W. Holmes
From: Vivian Steller [EMAIL PROTECTED] i want this function simply call the method of another class with SomeClass::$method(...) but i'm getting into trouble (bit heavy programming!:) passing the arguments (stored as Array in $params) to the SomeClass::$method([arguments]) method... further,

[PHP] Re: Anyone have any ideas on a upload progress bar???

2004-02-05 Thread Doru Petrescu
see my message (and patch) on this topic. try http://pdoru.from.ro -- Best regards, Doru Petrescu Senior Software Engineer Astral Telecom Bucuresti -- PHP General Mailing List

[PHP] Dynamic vs Static Builds

2004-02-05 Thread John McKerrell
Hi, I've been working with a PHP for a few years now. I've always thought that on production servers, to have them working at peak efficiency, I should have the Apache and PHP compiled as a static build. I recently got into a debate with someone over whether this had any worthwhile savings. Can

[PHP] Re: PHP5: __call() implementation EXAMPLE

2004-02-05 Thread Vivian Steller
Vivian Steller wrote: Hello, as you know there is a new callback function __call($method, $params) in php5. the __call() method of an object is called, if the method named $method is not declared in this class. i want this function simply call the method of another class with

RE: [PHP] Recommendation on PHP encoder please

2004-02-05 Thread Harry Sufehmi
On 05/02/2004 at 13:17 Ford, Mike [LSS] wrote: On 05 February 2004 13:10, Harry Sufehmi wrote: On 05/02/2004 at 11:48 Ford, Mike [LSS] wrote: On 05 February 2004 11:30, Harry Sufehmi wrote: As you can see, the content will be secured, but the script is now

[PHP] How to search for a date

2004-02-05 Thread Brian Dunning
Sorry this is such a basic question - but I couldn't find it online. I have a date field in MySQL: -00-00. I'm trying to insert or search for the current date, and I can't find the way to state that in the SQL. This is wrong, can someone please tell me what's correct? INSERT INTO mytable

Re: [PHP] Recommendation on PHP encoder please

2004-02-05 Thread Adam Bregenzer
On Thu, 2004-02-05 at 08:13, Harry Sufehmi wrote: So there's a reasonably easy way to decrypt those encoded files then ? (despite those vendors' claim...) There isn't a program to revert encoded files to their original state, but there is a disassembler[1]. However, assuming your encryption

Re: [PHP] Re: PHP5: __call() implementation EXAMPLE

2004-02-05 Thread John W. Holmes
From: Vivian Steller [EMAIL PROTECTED] Vivian Steller wrote: Hello, as you know there is a new callback function __call($method, $params) in php5. the __call() method of an object is called, if the method named $method is not declared in this class. i want this function simply

[PHP] Re: PHP5: __call() implementation EXAMPLE

2004-02-05 Thread Vivian Steller
Vivian Steller wrote: ... class MyClass { function __call($method, $params) { // $params = Array(mixed var, mixed var, ...); print(request for . $method . ()\n); // how to get objects in this string?! // do i have to implement

Re: [PHP] How to search for a date

2004-02-05 Thread John W. Holmes
From: Brian Dunning [EMAIL PROTECTED] Subject: [PHP] How to search for a date A date? Well, you could try Friendster or orkut to find date, or... oh wait... Sorry this is such a basic question - but I couldn't find it online. I have a date field in MySQL: -00-00. I'm trying to insert or

Re: [PHP] How to search for a date

2004-02-05 Thread John McKerrell
For MySQL you're still going to need NOW() instead of CURRENT_DATE though surely? John On Thu, 2004-02-05 at 15:57, John W. Holmes wrote: From: Brian Dunning [EMAIL PROTECTED] Subject: [PHP] How to search for a date A date? Well, you could try Friendster or orkut to find date, or... oh

Re: [PHP] PHP5: __call() implementation

2004-02-05 Thread Adam Bregenzer
On Thu, 2004-02-05 at 09:22, Vivian Steller wrote: i want this function simply call the method of another class with SomeClass::$method(...) but i'm getting into trouble (bit heavy programming!:) passing the arguments (stored as Array in $params) to the SomeClass::$method([arguments])

Re: [PHP] Re: PHP5: __call() implementation EXAMPLE

2004-02-05 Thread Vivian Steller
John W. Holmes wrote: From: Vivian Steller [EMAIL PROTECTED] Vivian Steller wrote: ... pre ?php class MyClass { function __call($method, $params) { // $params = Array(mixed var, mixed var, ...); print(request for

Re: [PHP] How to search for a date

2004-02-05 Thread Duncan Hill
On Thursday 05 February 2004 15:45, Brian Dunning wrote: Sorry this is such a basic question - but I couldn't find it online. I have a date field in MySQL: -00-00. I'm trying to insert or search for the current date, and I can't find the way to state that in the SQL. This is wrong, can

Re: [PHP] How to search for a date

2004-02-05 Thread John W. Holmes
From: John McKerrell [EMAIL PROTECTED] INSERT INTO mytable (dateField) VALUES (CURRENT_DATE); For MySQL you're still going to need NOW() instead of CURRENT_DATE though surely? No. He has a DATE column, so why use NOW() which includes time informatin. Quote: CURRENT_DATE and

[PHP] RE: Check to remove file that are older than 1 week

2004-02-05 Thread YC Nyon
Hi, I want to delete files than are older than 1 week from a specific directory. Anyone mind to share their code? Can't anything on phpbuilder on this. Regards Nyon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to search for a date

2004-02-05 Thread John McKerrell
apologies * scurries away and hides in a hole ;) John On Thu, 2004-02-05 at 16:16, John W. Holmes wrote: From: John McKerrell [EMAIL PROTECTED] INSERT INTO mytable (dateField) VALUES (CURRENT_DATE); For MySQL you're still going to need NOW() instead of CURRENT_DATE though surely?

[PHP] authentication using /etc/passwd

2004-02-05 Thread Adam Williams
Hi, is there a way to authenticate a username/password someone enters in a form with what is in /etc/passwd? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] RE: Check to remove file that are older than 1 week

2004-02-05 Thread Michal Migurski
I want to delete files than are older than 1 week from a specific directory. Anyone mind to share their code? Can't anything on phpbuilder on this. If you're running PHP under unix: http://marc.theaimsgroup.com/?l=php-generalm=106002263306528w=2

Re: [PHP] Dynamic vs Static Builds

2004-02-05 Thread John McKerrell
On Thu, 2004-02-05 at 16:12, vidyut luther wrote: Hi John, A couple of questions.. 1. Define high load. Er.. that's quite a personal question, apparently we get 58 million hits a month but some days will be much busier than others (we're a soccer site, match days are busiest). The load is

Re: [PHP] Dynamic vs Static Builds

2004-02-05 Thread Jason Wong
On Friday 06 February 2004 00:44, John McKerrell wrote: 2. Why are the servers being restarted once a day ? There shouldn't be a need to restart unless something is going wrong. For cycling the logs, we've got scripts setup to sort them out each day - backing them up and suchlike, which

RE: [PHP] MySQL: Order by

2004-02-05 Thread Chris W. Parker
John Taylor-Johnston mailto:[EMAIL PROTECTED] on Wednesday, February 04, 2004 9:48 PM said: When I order by number, it echoes 1,2,3,4,5,6,7,8,9,10 and hten jumps to 100...199 before it comes back to 11-19. Any way of ordering that differently? Sounds like your 'number' column is not

[PHP] Re: authentication using /etc/passwd

2004-02-05 Thread Jas
Adam Williams wrote: Hi, is there a way to authenticate a username/password someone enters in a form with what is in /etc/passwd? Thanks! Yep, do a search on .htaccess from http://google.com Cheers, jas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Re: Using sessions with register globals off

2004-02-05 Thread Randall Perry
Ok, with register globals on, this works ('order' being a php object): session_name('name'); session_register('order'); $order-print_something(); With with register globals off, this fails: session_name('name'); $order = $_SESSION['order']; $order-print_something();

Re: [PHP] Re: authentication using /etc/passwd

2004-02-05 Thread Jason Wong
On Friday 06 February 2004 01:13, Jas wrote: Adam Williams wrote: Hi, is there a way to authenticate a username/password someone enters in a form with what is in /etc/passwd? Yep, do a search on .htaccess from http://google.com I'm afraid you may be sending the OP on a wild goose chase.

Re: [PHP] Re: Using sessions with register globals off

2004-02-05 Thread John Nichel
Randall Perry wrote: Ok, with register globals on, this works ('order' being a php object): session_name('name'); session_register('order'); $order-print_something(); With with register globals off, this fails: session_name('name'); $order = $_SESSION['order'];

Re: [PHP] Re: Using sessions with register globals off

2004-02-05 Thread Jason Wong
On Friday 06 February 2004 01:16, Randall Perry wrote: Get the errors: PHP Notice: Undefined variable: _SESSION PHP Fatal error: Call to undefined function: print_something() Meaning the _SESSION arr is not recognized and the $order obj variable has not been passed. What am I

[PHP] How can I run php 5 beta 3 on windows?

2004-02-05 Thread omer katz
Can I update PHPTraid's php files? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Selling PHP Code? PHP Careers?

2004-02-05 Thread omer katz
Never self-employ urself(aka don't work alone) - alote of mess and nobody is coming to buy your great stuff :) Work on a big compeny or start your own. But NEVER EVER work alone. Galen [EMAIL PROTECTED] ??? ??:[EMAIL PROTECTED] Hi PHP list, I seem to have a knack for really powerful,

[PHP] Strange results on Printer Friendly page

2004-02-05 Thread Alex Hogan
Hi, I have a printer friendly page that is passed a url param from the detail page. On the detail page I have a series of questions that appear as they should. However when I go to the printer friendly page I'm missing the first question. I get all the others. I can't seem to find a reason

[PHP] Re: No tutorials/examples to be found on using PHP dbm-style functions with apache's mod_auth_db

2004-02-05 Thread Colm Ward
Thanks for you reply. You were right, I went back to the Apache manual, where there are links to tutorials on setting this up. It seems that the tricky bits are more in the configuration of apache rather than the php code you use. I ended up switching to mod_auth_mysql instead just because of

Re: [PHP] Recommendation on PHP encoder please

2004-02-05 Thread Harry Sufehmi
On 05/02/2004 at 10:46 Adam Bregenzer wrote: On Thu, 2004-02-05 at 08:13, Harry Sufehmi wrote: So there's a reasonably easy way to decrypt those encoded files then ? (despite those vendors' claim...) There isn't a program to revert encoded files to their original state, but there is a

[PHP] problem identifying $_SERVER['HTTP_REFERER']

2004-02-05 Thread Pablo Gosse
Hi all. I've got a simple mailer script that I wrote a few years ago that has been acting up over the past week. The problem is with the following check I perform at the very top of the script: if (!stristr($_SERVER['HTTP_REFERER'],unbc.ca)) { die(You can't access this script outside of our

Re: [PHP] problem identifying $_SERVER['HTTP_REFERER']

2004-02-05 Thread Lucas Gonze
First thing to do is figure out whether the problem is with the referrer var or with your code. Try adding a logger to dump all environment vars to a log file, then check it the next time one of these errors comes up. good luck. - Lucas On Thu, 5 Feb 2004, Pablo Gosse wrote: Hi all. I've

[PHP] Re: Check to remove file that are older than 1 week

2004-02-05 Thread Eric Bolikowski
Hi Here's a little function I made up for this: ?php function delete_old_files($dir, $time_limit = 0){ if(!$time_limit) $time_limit = 7*24*60*60; if ($df = opendir($dir)) { while (false !== ($file = readdir($df))) { if ($file != . $file != ..) { $last_modified = filemtime($file);

RE: [PHP] MySQL: Order by

2004-02-05 Thread John Taylor-Johnston
Thanks all. That solved the problem. I should have realised it. Still learning ... :) -- John Taylor-Johnston http://compcanlit.ca/ Sounds like your 'number' column is not actually a number but a string. Change it to type INT and that should fix it. Chris. -- PHP General Mailing List

Re: [PHP] Re: Using sessions with register globals off

2004-02-05 Thread Phillip Jackson
it's this easy with register_globals off: $_SESSION['order'] = someValue; no need to name the session. ~Phillip John Nichel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Randall Perry wrote: Ok, with register globals on, this works ('order' being a php object):

[PHP] performance of classes vs. functions for database connections

2004-02-05 Thread Phillip Jackson
i have a function that does authentication of a user, whose user/pass are stored in an md5($var ) fashion. i query these from the mysql db in an authentication (if !$user || !pass) function checking against md5($pass). my thinking is that classes would be better suited to grab object properties,

[PHP] multilingual website

2004-02-05 Thread julien dufourcq
hi, i'm looking here for some help with the design of a multilingual website. Everything in that website needs to change from a language to an other. I've made search on the web to find some examples but i couldn't find very interesting things about how to manage that, using php. What's best ? -

Re: [PHP] multilingual website

2004-02-05 Thread Michal Migurski
i'm looking here for some help with the design of a multilingual website. Everything in that website needs to change from a language to an other. I've made search on the web to find some examples but i couldn't find very interesting things about how to manage that, using php. What's best ? - Use

RE: [PHP] multilingual website

2004-02-05 Thread Shaunak Kashyap
My inclination would be to just use the DB, have linked tables with languages and pieces of text in various languages. A single query could get a full language preference setting for a site, and a little array munging could turn it into a usable set of key/value pairs, where the key is the

RE: [PHP] multilingual website

2004-02-05 Thread Robert Cummings
On Thu, 2004-02-05 at 15:46, Shaunak Kashyap wrote: My inclination would be to just use the DB, have linked tables with languages and pieces of text in various languages. A single query could get a full language preference setting for a site, and a little array munging could turn it into a

Re: [PHP] multilingual website

2004-02-05 Thread John W. Holmes
From: Shaunak Kashyap [EMAIL PROTECTED] My inclination would be to just use the DB, have linked tables with languages and pieces of text in various languages. A single query could get a full language preference setting for a site, and a little array munging could turn it into a usable set

[PHP] Website Architecture

2004-02-05 Thread Eric Gorr
I've got a directory structure similar to this: SiteRootDir index.php dirA index.php dirB funcs.php otherfuncs.php In the SiteRootDir/index.php, I've got: require_once( dirB/funcs.php ); in funcs.php, I've got: require_once( otherfuncs.php ); which works because

RE: [PHP] multilingual website

2004-02-05 Thread Vail, Warren
the PHPNuke (Portal software used all over the world, http://phpnuke.org/) code uses selectable including of php files containing define statements; in a directory call language (usually) there are files named lang-.php where is the name of the language; the current language selection

[PHP] re: multilingual website

2004-02-05 Thread Eric Gorr
For some great information on how to internationalize a PHP application, I would suggest checking out: http://us3.php.net/manual/en/ref.gettext.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Using sessions with register globals off

2004-02-05 Thread James Kaufman
On Thu, Feb 05, 2004 at 02:32:49PM -0500, Phillip Jackson wrote: it's this easy with register_globals off: $_SESSION['order'] = someValue; no need to name the session. ~Phillip John Nichel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Randall Perry wrote: Ok,

[PHP] php-general list question - [Fwd: Delivery Report (failure) for php-general@lists.php.net]

2004-02-05 Thread Adam Bregenzer
I get one of these for almost every message I send, usually with a delay of a few days and always the same error. I see my posts come from the list to me and I see people replying to my messages so the list seems to be processing my posts. It's annoying however to keep getting these. Anybody

RE: [PHP] Website Architecture

2004-02-05 Thread Shaunak Kashyap
The best way, IMHO, is to use absolute paths (from docroot, of course) whenever you include or require files. The same logic can be applied to the related problem of links. Shaunak -Original Message- From: Eric Gorr [mailto:[EMAIL PROTECTED] Sent: Thursday, February 05, 2004 4:35 PM

[PHP] Need a way to automate user logout

2004-02-05 Thread Christian Calloway
Damn stateless nature of HTTP, hey everyone, can someone point me or give me an idea on how I would automatically log out (destroy user sessions and make note of it in the database) on some type of schedule. I have designed a security system that depends upon people logging out to determine the

Re: [PHP] Website Architecture

2004-02-05 Thread Stuart
Eric Gorr wrote: A solution I found was in dirA/index.php, to chdir( .. ); before the require_once, which moves the current directory to SiteRootDir and allows otherfuncs.php to be found ... is this the best way to solve this problem? Qualify relative paths by prepending

Re: [PHP] Need a way to automate user logout

2004-02-05 Thread Lucas Gonze
One way is to save the time of last access every time a user requests a page, then poll to find users for whom now() - last_access_time TIMEOUT. - Lucas On Thu, 5 Feb 2004, Christian Calloway wrote: Damn stateless nature of HTTP, hey everyone, can someone point me or give me an idea on how

[PHP] Re: Need a way to automate user logout

2004-02-05 Thread Ben Ramsey
Write the script in perl and chmod it to 755. Then use cron to schedule it. Here's a tutorial to show you how: http://www.unixgeeks.org/security/newbie/unix/cron-1.html Christian Calloway wrote: Damn stateless nature of HTTP, hey everyone, can someone point me or give me an idea on how I

RE: [PHP] Need a way to automate user logout

2004-02-05 Thread craig
I can write a script in perl, php, java, u name it, but how do I have it run on a set schedule? Thanks Christian you will want to use the cron command. run 'man cron' at a shell prompt to get the manual page that will explain the finer points. =) HTH, Craig -- PHP General Mailing List

Re: [PHP] Need a way to automate user logout

2004-02-05 Thread John Nichel
Christian Calloway wrote: Damn stateless nature of HTTP, hey everyone, can someone point me or give me an idea on how I would automatically log out (destroy user sessions and make note of it in the database) on some type of schedule. I have designed a security system that depends upon people

Re: [PHP] Need a way to automate user logout

2004-02-05 Thread Christian Calloway
I am already doing this, but the problem is is if the user closes their browser and then comes back 2 days later, I have no choice but to debit that time. Lucas Gonze [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] One way is to save the time of last access every time a user requests

[PHP] Re: Need a way to automate user logout

2004-02-05 Thread Christian Calloway
awesome, thanks for the quick replies guys Christian Calloway [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Damn stateless nature of HTTP, hey everyone, can someone point me or give me an idea on how I would automatically log out (destroy user sessions and make note of it in the

Re: [PHP] Website Architecture

2004-02-05 Thread joel boonstra
On Thu, Feb 05, 2004 at 09:48:22PM +, Stuart wrote: Eric Gorr wrote: A solution I found was in dirA/index.php, to chdir( .. ); before the require_once, which moves the current directory to SiteRootDir and allows otherfuncs.php to be found ... is this the best way to solve this problem?

RE: [PHP] php-general list question - [Fwd: Delivery Report (failure) forphp-general@lists.php.net]

2004-02-05 Thread craig
I get one of these for almost every message I send, usually with a delay of a few days and always the same error. I see my posts come from the list to me and I see people replying to my messages so the list seems to be processing my posts. It's annoying however to keep getting these.

Re: [PHP] Website Architecture

2004-02-05 Thread John Nichel
joel boonstra wrote: On Thu, Feb 05, 2004 at 09:48:22PM +, Stuart wrote: Eric Gorr wrote: A solution I found was in dirA/index.php, to chdir( .. ); before the require_once, which moves the current directory to SiteRootDir and allows otherfuncs.php to be found ... is this the best way to

Re: [PHP] Website Architecture

2004-02-05 Thread joel boonstra
On Thu, Feb 05, 2004 at 04:35:14PM -0600, John Nichel wrote: snip And if document root is different from include path? What if the include path is outside of document root? You CANNOT rely on include_path to accomplish this. Sorry, I should have been more specific. I was implying that you

Re: [PHP] php-general list question - [Fwd: Delivery Report (failure) forphp-general@lists.php.net]

2004-02-05 Thread Luke
Me too, and im using the newsgroup, not even the mailing list!! :/ -- Luke Craig [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I get one of these for almost every message I send, usually with a delay of a few days and always the same error. I see my posts come from the

Re: [PHP] Website Architecture

2004-02-05 Thread joel boonstra
On Thu, Feb 05, 2004 at 05:42:54PM -0500, joel boonstra wrote: snip # ini_set(): ini_set('include_path', {$_SERVER['DOCUMENT_ROOT']}:.); Replying to myself, it appears that PHP = 4.3.0 has a family of functions specifically for tweaking include_path:

Re: [PHP] php-general list question - [Fwd: Delivery Report (failure) forphp-general@lists.php.net]

2004-02-05 Thread Adam Bregenzer
On Thu, 2004-02-05 at 17:50, Luke wrote: Me too, and im using the newsgroup, not even the mailing list!! :/ Hmm, that leads me to think this is a problem not related to php's mail server at all. (/me stops filling out a bug report) I sent a message to [EMAIL PROTECTED] If I find a solution

RE: [PHP] php-general list question - [Fwd: Delivery Report (failure) forphp-general@lists.php.net]

2004-02-05 Thread Chris W. Parker
Adam Bregenzer mailto:[EMAIL PROTECTED] on Thursday, February 05, 2004 1:45 PM said: I get one of these for almost every message I send, usually with a delay of a few days and always the same error. I see my posts come from the list to me and I see people replying to my messages so the

Re: [PHP] Re: Need a way to automate user logout

2004-02-05 Thread Robby Russell
Ben Ramsey typed this on 02/05/2004 01:55 PM: Write the script in perl and chmod it to 755. Then use cron to schedule it. Here's a tutorial to show you how: http://www.unixgeeks.org/security/newbie/unix/cron-1.html Why not do this in PHP cmdline instead? This is a PHP list right? :-p --

[PHP] CVS style project system

2004-02-05 Thread daniel
Hi there, i have been asked to build a system for a project file space, where a list of users of different groups can start new projects for their group, add files for that project of the group and/or revise current files with different versions. It will be a cvs like system, but i dont think cvs

Re: [PHP] CVS style project system

2004-02-05 Thread Ray Hunter
On Thu, 2004-02-05 at 18:21, [EMAIL PROTECTED] wrote: Hi there, i have been asked to build a system for a project file space, where a list of users of different groups can start new projects for their group, add files for that project of the group and/or revise current files with different

Re: [PHP] re: multilingual website

2004-02-05 Thread Tom Rogers
Hi, Friday, February 6, 2004, 7:44:15 AM, you wrote: EG For some great information on how to internationalize a PHP EG application, I would suggest checking out: EGhttp://us3.php.net/manual/en/ref.gettext.php My template class (yes another one) has the ability to use gettext for

[PHP] Japanese Language

2004-02-05 Thread KidLat Ngayon
Greetings i would just like to ask a favor regarding on php-mysql-excell format i'm using the php as my programming language with the following information: System SunOS repair-c 5.9 PHP Version 4.3.2 and for mysql as my database, its: mysqladmin Ver 8.23 Distrib 3.23.58 below is the

[PHP] thumbnail script

2004-02-05 Thread Ryan A
Hi, Anybody know of a thumbnail script which does either one of the following: 1.Support GIF,JPG,PNG, when called the first time it should show/create the thumbnail on the fly and save it. or 2.Support GIF,JPG,PNG and thumbnail image any new files uploaded, and save the thumb to another directory

Re: [PHP] CVS style project system

2004-02-05 Thread daniel
I would search around and see if there is anything out there that does what you want. CVS and repository systems are quite complex to write and for performance you probably dont want to write the system in php. The first thing down that long road would be to gather all the requirements of

Re: [PHP] thumbnail script

2004-02-05 Thread Jason Wong
On Friday 06 February 2004 10:42, Ryan A wrote: 2. This creates the thumb dynamically via an img tagbut does not save it...so everytime a visitor opens up the portfolio it generates the thumbwhich will be a load on the server in the long run, something that would be cut down a lot if

[PHP] Novell and PHP

2004-02-05 Thread daniel
Can someone explain what this all means then http://forge.novell.com/modules/xfmod/project/?php Are they supporting php or are they planning to take over something that is impossible ? We have novell systems at work, if this means easier intergration with php on unix with novell products like

Re: [PHP] Novell and PHP

2004-02-05 Thread Ray Hunter
On Thu, 2004-02-05 at 20:09, [EMAIL PROTECTED] wrote: Can someone explain what this all means then http://forge.novell.com/modules/xfmod/project/?php Are they supporting php or are they planning to take over something that is impossible ? We have novell systems at work, if this means

Re: [PHP] Novell and PHP

2004-02-05 Thread daniel
This is a project that allows for PHP integration on Novell NetWare systems. I dont particularly know what exact netware systems we have but would this mean i could create sessions in my projects that will sync up the windows login system with the databased one ? Like i could personlise a

[PHP] Re: xml posts

2004-02-05 Thread Manuel Lemos
Hello, On 02/04/2004 12:59 PM, Diana Castillo wrote: does anyone know why some xml applications that work when sent with active-x objects dont work when I send the xml with php instead? what can I do to make them arrive in the same way as they do when sent with active-x objects? What are you

  1   2   >