[PHP] RE: [PHP-WIN] HELP! with PHP extension <

2002-01-28 Thread Martin Lindhe
> Hi all, > > Here is the situation. > > I have Windows 2000 SP2, IIS5 running PHP 4.1.1 using CGI. > > My PHP folder is C:\php > Extension Folder is: C:\php\extension > PHP.INI file: extention_dir = "C:\php\extension\" Are you sure the foldername is "extension"? Just asking you to doublecheck

[PHP] bug in str_replace() ?

2001-10-21 Thread Martin Lindhe
Bug in str_replace(), PHP 4.0.6 $text = "hello world"; $out = str_replace(" "," ",$text); echo $out; Expected output: "hello world" Actual output: "hello world" Of course, this is what happens if str_replace() does replacements on input, but not o

RE: [PHP] what directory should put the php.ini?

2001-10-02 Thread Martin Lindhe
> Hi all, > > I have just rename the php.ini-dist to php.ini from the > installation directoy but am not sure where to place it in > order for php to > rea,, any help?? > thanks What OS are you running PHP on? /Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

[PHP] how to decrease serverload easily?

2001-10-02 Thread Martin Lindhe
We're developing a web platform based on PHP, running under Apache. We have realized that we need a way of "split up" the serverload to multiple machines if it gets too high. We've come up with PHP solutions to the problem but are looking for better ones, especially in Apache configuration. Is the

RE: [PHP] File Uploads

2001-09-13 Thread Martin Lindhe
> Greetings: > > Looking for a way to say *.php in this code: > if ($file != ".htaccess" && $file != "." && $file != ".." > && $file != ANY PHP FILE) > > > I have tried *.php... > separate the file extension from the $file with code looking something like this: $ext = substr($file,str

RE: [PHP] Get Info From Database Without Refreshing the Page! Pretty Neat!

2001-09-13 Thread Martin Lindhe
you could load all nessecary data once and put in a javascript array or something, not sure i understand what you have done here and what's so special about it tho /Martin > I used a Microsoft Object Control to get data from the > database and display > it on the page > without refreshing the p

RE: [PHP] how to set session expiration

2001-09-12 Thread Martin Lindhe
artin > -Original Message- > From: Martin Lindhe > Sent: Wednesday, September 12, 2001 5:34 PM > To: [EMAIL PROTECTED] > Subject: RE: [PHP] how to set session expiration > > > > hello everyone, > > > > how can i set the expiration of my sessions wit

RE: [PHP] how to set session expiration

2001-09-12 Thread Martin Lindhe
> hello everyone, > > how can i set the expiration of my sessions with or without > the cookies enabled? say if a user idles for some time, the > session will now expire. > > TIA! > jessie I'm using a solition that's something like this: first, each time a user logs in to the site, a

RE: [PHP] Re: How to pass variables to php functions from url's?

2001-09-07 Thread Martin Lindhe
>useful link: http://www.apache.org/docs-2.0/misc/rewriteguide.html > >RewriteEngine on >RewriteRule ^/x/(.*)http://www.server2.com/users/$1 [P] Hm, what does the [P] do? I played around a bit and figured that a [T] does the trick for me, thanks! /Martin -- PHP General Mailing List

RE: [PHP] Re: How to pass variables to php functions from url's?

2001-09-07 Thread Martin Lindhe
> I think I remember doing it a while ago. But I think you need to use > mod_alias instead. Take a look here: > > http://httpd.apache.org/docs-2.0/mod/mod_alias.html#redirect > > The Redirect/RedirectMatch/RedirectTemp might do it. > RedirectMatch permanent "^/x/(.*)" http://www.test.com/y/tes

RE: [PHP] Re: How to pass variables to php functions from url's?

2001-09-07 Thread Martin Lindhe
> Hi Martin, > > Take a look at the Apache mod_rewrite docs. > > http://httpd.apache.org/docs-2.0/mod/mod_rewrite.html Thanks alot! I made a similar solution which works RewriteEngine on RewriteRule "^/x/(.*)" "http://www.server2.com/users/$1"; takes www.server1.com/x/martin to www

SV: [PHP] How to pass variables to php functions from url's?

2001-09-07 Thread Martin Lindhe
execute. > That's all You need I hope. Sorry but Your question is not > good explained. Please read my mail again, I tried to described my problem as good as possible. > Martin Lindhe wrote: > > > I need to solve the following problem, but I can't figure out how: >

[PHP] How to pass variables to php functions from url's?

2001-09-07 Thread Martin Lindhe
nning PHP 4.0.6 on Apache 1.3.20. I've looked at both PHP and Apache documentation about this, but i havent found any information or examples on how this could be solved, so I'm asking the question here in hope for help. Thanks! /Martin Lindhe -- PHP General Mailing List (http://www.ph