[PHP] preg_match

2002-08-28 Thread richard . mail

hi all, 

i'm trying to create an script that cut's the text when a . ( dot ) is 
found in one of the last words.. 

i'm trying it with preg_match but it seems not to work. 

this is what i'm trying : 

if($i==15) {
   if(preg_match(/./,$text2[15])) {
   $text3 .= ($i $text2[15] );
   break;
   }
} 

could some one tell me what i'm doing wrong? 

thnx

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: Linux PHP editor

2002-08-09 Thread richard . mail

JJ Harrison\ writes: 

 I just switched over to Red Hat Linux from Win2k... 
 
 Only to find my fav editor only works on windows systems... 
 
 could someone suggest a good replacement? 
 
 
 --
 JJ Harrison
 [EMAIL PROTECTED]
 www.tececo.com 
 
  
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php 
 

simply vi or vim of pico :)

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: Good Forum...

2002-07-15 Thread richard . mail

phpbb is a good forum or phorum 

both are free to use :) 

i hope you can use one of those ;) 


JJ Harrison\ writes: 

 What is a good php-based forum? 
 
 I would have used vBulletin but my group a non-profit so we obviously can't
 afford it. 
 
 Part of what I require is users to be stored in a db table using md5() or
 anouther function. What I would do is expand the table with more user info
 for use with my whole site. 
 
 
 --
 JJ Harrison
 [EMAIL PROTECTED]
 www.tececo.com 
 
  
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php 
 
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] not parsing vars

2002-07-10 Thread richard . mail

hello all, 

i've install php 4.2.1 with apache 1.3.24
but when i do something like :
page.php?var=valuevar1=value1 

then it does nothing.
does any one have a solution ?
or is it something that i have tot change in php.ini ? 

thanks in advance, 

Richard Pijnenburg
The netherlands

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] cookie ?

2002-07-10 Thread richard . mail

hi all, 

(yes it's me again) 

i've got an other problem. 

i've got an login system, and it has to put an cookie, but it seems he 
doesn't do it. 

is it an php.ini problem ?? 

thnx in advanced.
Richard

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] cookie ( still not working )

2002-07-10 Thread richard . mail

my cookie problem is still not solved :(
my browser settings are correct, and the script has worked. 

but sins i now installed php 4.2.1 with apache 1.3.24 it doesn't work :( 

does any one have an solution ?? 

thnx in advance, 

Richard

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: cookie ( still not working )

2002-07-10 Thread richard . mail

Johan Holst Nielsen writes: 

 
 my cookie problem is still not solved :(
 my browser settings are correct, and the script has worked.
 but sins i now installed php 4.2.1 with apache 1.3.24 it doesn't work :(
 does any one have an solution ??
 thnx in advance,
  
 
 Sure about your register_globals = off? 
 
 please show us the source, or a link to at phps file...
 And a link to a phpinfo() file? 
 
 I cant help you without further information! 
 
 Regards,
 Johan 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php 
 
the setting in php.ini : 

register_globals = on 

i simpley put an cookie with : 

setcookie(gfo_cms ,$sessid , ''); 


and i read it with : 

? 

if (isset($HTTP_COOKIE_VARS[gfo_cms])) {
   $sessid = $HTTP_COOKIE_VARS[gfo_cms];
   if (!check_valid_sessid($sessid)) {
login_form();
   }
   if (!check_ip($sessid, $REMOTE_ADDR)) {
login_form();
   }
   $rights = get_user_rights($sessid);
   $user_id = get_userid_from_sessid($sessid); 

}
if (!isset($HTTP_COOKIE_VARS[gfo_cms])) {
login_form();
  } 

? 

 

the last code looks if the cookie exists ...
but it look likes it won't even create the cookie 

an idea's ?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: Wildcard

2002-07-10 Thread richard . mail

why put in your query you want to look for an value .. if they don't want to 
look for it ?.. 


vins writes: 

 Shit.
 Doesn't really make sense
 Sorry... I probably don't understand 
 
 do you have an online example. 
 
 
 César aracena [EMAIL PROTECTED] wrote in message
 000101c227fb$74eed940$68ed0dd1@gateway">news:000101c227fb$74eed940$68ed0dd1@gateway...
 Hi all. 
 
 I'm trying to figure out how to do a search trough a MySQL db using LIKE
 or = but the thing is that I have 3 select boxes from where to choose
 the search terms. Can I use something like a wildcard instead of making
 several IF statements like this? 
 
 SELECT * FROM table_name WHERE col1 = value1 AND col2 = value2 AND col3
 = % 
 
 % goes for an unselected select box (default value = %) in case the user
 doesn't want to make an *advanced* search, so it fetches all rows which
 does contains values 1  2. 
 
 Thanks, 
 
  mailto:[EMAIL PROTECTED] Cesar Aracena
 CE / MCSE+I
 Neuquen, Argentina
 +54.299.6356688
 +54.299.4466621 
 
  
 
  
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php 
 
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: Is it so fuckin diffuicult...

2002-07-10 Thread richard . mail

none taken :)
your not the only one that realy hate spammers :) 

vins writes: 

 So sorry about that
 Didn't mean to affend anyone other than the SPAMMER CREEP
 Really do appologize. 
 
 Kindest Regards
 Vins
 [EMAIL PROTECTED] 
 
 Kondwani Spike Mkandawire [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Wow the vulgarities...  Anywayz, I guess that's how you gotta
 address people like Erik Hegreberg...
 Ashley M. Kirchner [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  vins wrote:
 
   Is it so fucking difficult to do the fucking unsubscribing
 yourself.
   Stop being a fucking baby and click your fucking mouse to the php
 website
   and unsubscribe...
  
   This fucking spamming business is going to get you into big shit
 there
   are a ton of hackers out there on this mailing list so stop being a
 fucking
   jerk.
 
  Ya, and your 'fucking' e-mail certainly helps him a lot better, eh?
 
  --
  W | I haven't lost my mind; it's backed up on tape somewhere.
+
Ashley M. Kirchner mailto:[EMAIL PROTECTED]   .   303.442.6410 x130
IT Director / SysAdmin / WebSmith . 800.441.3873 x130
Photo Craft Laboratories, Inc.. 3550 Arapahoe Ave. #6
http://www.pcraft.com . .  ..   Boulder, CO 80303, U.S.A.
 
 
  


  
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php 
 
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: cookies

2002-07-10 Thread richard . mail

Alexander Ross writes: 

 How can I set a cookie which expires when the borwser is closed??  How can I
 delete a cookie via PHP? 
 
 Thanks 
 
  
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php 
 
simply give it no experation time.
then it will expire when your browser is closed :) 

( and yes it works, i use it to ) 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php