Forum FAQForum FAQSearchSearch MemberlistMemberlist Forum ignore listForum ignore list RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in
rastavljanje u array i spajanje

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Server-side
View previous topic :: View next topic  
Author Message
nel`chee



Joined: 08 Jul 2004
Posts: 2087
Location: Rijeka

PostPosted: 08.04.2005 13:37    Post subject: rastavljanje u array i spajanje Add user to your forum ignore list Reply with quote

ovo je nekakva n00b antispam skripta za guestbook. problem je sto mi se na kraju umjesto nelchee[at]vip[dot]hr ispise samo nelchee[at]
Code:
$email = $myrow['email'];
      list($user, $domain) = split('@', $email);
      $xdomain = array();
      $xdomain = split('.', $domain);
      $i=0;
      $xemail = $user . '[at]' . $xdomain[$i];
      $i++;
      while($xdomain[$i]) {
         $xemail .= '[dot]' . $xdomain[$i];
         $i++;
      }

_________________
art & design portfoliofree Photoshop brushes stuffsketchblogfacebook
Back to top
View user's profile Send private message Visit poster's website Twitter profile
pepa.UP



Joined: 10 Sep 2003
Posts: 15
Location: zagreb

PostPosted: 08.04.2005 14:27    Post subject: Add user to your forum ignore list Reply with quote

probaj umjesto
Code:
split('.', $domain);
staviti
Code:
split('\.', $domain);

_________________
unpljugged.com
Back to top
View user's profile Send private message Visit poster's website
nel`chee



Joined: 08 Jul 2004
Posts: 2087
Location: Rijeka

PostPosted: 08.04.2005 16:08    Post subject: Add user to your forum ignore list Reply with quote

to je to Very Happy thankies Cheers!

_________________
art & design portfoliofree Photoshop brushes stuffsketchblogfacebook
Back to top
View user's profile Send private message Visit poster's website Twitter profile
Sulien



Joined: 04 Jan 2004
Posts: 2905
Location: Zagreb

PostPosted: 08.04.2005 16:10    Post subject: Add user to your forum ignore list Reply with quote

točka je među special chars i kao takva mora se escapeati Smile
Back to top
View user's profile Send private message Send e-mail Visit poster's website
nel`chee



Joined: 08 Jul 2004
Posts: 2087
Location: Rijeka

PostPosted: 08.04.2005 16:20    Post subject: Add user to your forum ignore list Reply with quote

stvarno nisam znala za tocku Embarassed

_________________
art & design portfoliofree Photoshop brushes stuffsketchblogfacebook
Back to top
View user's profile Send private message Visit poster's website Twitter profile
liban0n



Joined: 10 Feb 2004
Posts: 128
Location: Dubrovnik, Zagreb

PostPosted: 08.04.2005 17:53    Post subject: Add user to your forum ignore list Reply with quote

A zasto se uopce mucis rastavljat pa sastavljat kad se tvoj problem moze uredno i bez problema rijesiti sa regexopvima

$neki = @eregi_replace("@","[AT]",$mail);
$nekidrugi = @eregi_replace("\.[a-z]{3,4}$","[DOT]",$neki);

..ovo je odokativno pisano al eto ... ipak u dva reda Smile

_________________
mount -t swap /dev/brain /mnt/head
look'n for a job
Back to top
View user's profile Send private message Visit poster's website
nel`chee



Joined: 08 Jul 2004
Posts: 2087
Location: Rijeka

PostPosted: 08.04.2005 22:57    Post subject: Add user to your forum ignore list Reply with quote

hmm da Smile
a cemu ovo a-z 3,4 ? sto to znaci?

_________________
art & design portfoliofree Photoshop brushes stuffsketchblogfacebook
Back to top
View user's profile Send private message Visit poster's website Twitter profile
nel`chee



Joined: 08 Jul 2004
Posts: 2087
Location: Rijeka

PostPosted: 08.04.2005 23:56    Post subject: Add user to your forum ignore list Reply with quote

s tockom ne radi Confused iz nekog nepoznatog razloga stavi [DOT] na kraj, ponekad. ponekad nista.

_________________
art & design portfoliofree Photoshop brushes stuffsketchblogfacebook
Back to top
View user's profile Send private message Visit poster's website Twitter profile
nel`chee



Joined: 08 Jul 2004
Posts: 2087
Location: Rijeka

PostPosted: 08.04.2005 23:57    Post subject: Add user to your forum ignore list Reply with quote

evo isprobala sam sa str replace i radi kad nema escape-a, samo tocka... kewl Smile

_________________
art & design portfoliofree Photoshop brushes stuffsketchblogfacebook
Back to top
View user's profile Send private message Visit poster's website Twitter profile
liban0n



Joined: 10 Feb 2004
Posts: 128
Location: Dubrovnik, Zagreb

PostPosted: 09.04.2005 08:26    Post subject: Add user to your forum ignore list Reply with quote

nel`chee wrote:
hmm da Smile
a cemu ovo a-z 3,4 ? sto to znaci?


ovo $ mu kaze da gleda na kraju dakle sve od \. tocke da sadrzi od a-z dakle sva mala slova
a {3,4} 3 do 4 ponavljanja .. dakle .com .net .info itd.

ovo sam iz glave napisao ne mora znaciti da ce raditi ali po meni je jednostavnije nego ono sto si ti radila!

_________________
mount -t swap /dev/brain /mnt/head
look'n for a job
Back to top
View user's profile Send private message Visit poster's website
nel`chee



Joined: 08 Jul 2004
Posts: 2087
Location: Rijeka

PostPosted: 09.04.2005 12:03    Post subject: Add user to your forum ignore list Reply with quote

pa dobro nije bas radilo, ali dao si mi dobru ideju pa svejedno hvala Smile

_________________
art & design portfoliofree Photoshop brushes stuffsketchblogfacebook
Back to top
View user's profile Send private message Visit poster's website Twitter profile
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Server-side All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group