ThIs SiTe Is A TyPo AnD A BuG.

[php]phpからdocument.writeでjavascript出したりするときに便利なやつ

ソーシャルブックマークに追加:ブックマークに追加する
Category :
参照元:http://feedtailor.jp/oishi/2007/05/javascriptdocumentwritephptext.html

ありがたく使わせて頂きます。
いつもdocument.writeでわざわざくくってましたが。

---------------------------------------------------------------------------------------------------------------------
 function js_write($a)
 {
  $lines = split("\n", $a);
 
  if(!empty($lines)){
   foreach($lines as $i => $line){
    $line = str_replace("'", "\'" , $line);
    $lines[$i] = preg_replace("|^(.*)$|", '\'$1\n\'+', $line);
   }
  }
  $a = join("\n", $lines);
  
   $a = substr($a, 0, strlen($a)-1);
  
  return 'document.write('.$str.');';
 }
-------------------------------------------------------------------------------------------------

とりあえず↓

 function jsAction(){
  echo $this->_js_document_write("<script type='text/javascript'>alert('aaaaa');</script>");
 }

な感じで、うまく動いた。




PR
この記事にコメントする
NAME:
TITLE:
MAIL:
URL:
COMMENT:
PASS: Vodafone絵文字 i-mode絵文字 Ezweb絵文字
...
Sehr gute Seite. Ich habe es zu den Favoriten.
mietwagen URL 2009/03/16(Mon)06:53:11 EDIT | RES
watch Vanishing on 7th Street Movie 2010 full movie
download Vanishing on 7th Street Movie music <a href=http://downlaodvanishingon7thstree.carbonmade.com/about>films Vanishing on 7th Street Movie </a> download Vanishing on 7th Street Movie avi
Toociashdahxzaa URL 2011/02/04(Fri)01:42:07 EDIT | RES
Vanishing on 7th Street Movie film imdb
download Vanishing on 7th Street Movie movie 2010 <a href=http://downlaodvanishingon7thstree.carbonmade.com/about>Vanishing on 7th Street Movie movie online </a> Vanishing on 7th Street Movie dvdrip
Toociashdahxzaa URL 2011/02/04(Fri)02:23:58 EDIT | RES
new Vanishing on 7th Street Movie movie
Vanishing on 7th Street Movie imdb <a href=http://downlaodvanishingon7thstree.carbonmade.com/about>Vanishing on 7th Street Movie film online </a> download Vanishing on 7th Street Movie movie rapidshare
Toociashdahxzaa URL 2011/02/04(Fri)03:18:28 EDIT | RES
download the No Regrets Movie movie
No Regrets Movie online divx <a href=http://downlaodnoregrets.carbonmade.com/about>No Regrets Movie information </a> No Regrets Movie movie posters
Tizmoilszotdfdf URL 2011/02/04(Fri)05:39:01 EDIT | RES
No Regrets Movie movie to watch
length of No Regrets Movie movie <a href=http://downlaodnoregrets.carbonmade.com/about>download No Regrets Movie hd </a> download No Regrets Movie film
Tizmoilszotdfdf URL 2011/02/04(Fri)06:21:13 EDIT | RES
Yogi Bear Movie movie on line
Yogi Bear Movie movie online <a href=http://downlaodyogibear.carbonmade.com/about>watch Yogi Bear Movie movie hd </a> watch Yogi Bear Movie megavideo
idioretlesdew URL 2011/02/04(Fri)09:34:00 EDIT | RES
watch Yogi Bear Movie hd
Yogi Bear Movie movie theatres <a href=http://downlaodyogibear.carbonmade.com/about>Yogi Bear Movie download movie </a> Yogi Bear Movie movie video
idioretlesdew URL 2011/02/04(Fri)10:14:40 EDIT | RES
download Certified Copy Movie movie rapidshare
Certified Copy Movie movie blog <a href=http://downlaodcertifiedcopy.carbonmade.com/about>watch Certified Copy Movie hd </a> watch Certified Copy Movie hd
proorkUncekasfxv URL 2011/02/04(Fri)13:32:14 EDIT | RES
the Certified Copy Movie trailer
Certified Copy Movie film premiere <a href=http://downlaodcertifiedcopy.carbonmade.com/about>Certified Copy Movie full movie </a> Certified Copy Movie divx hd
proorkUncekasfxv URL 2011/02/04(Fri)14:13:43 EDIT | RES
Day of the Woman Movie film website
watching Day of the Woman Movie online <a href=http://downlaoddayofthewoman.carbonmade.com/about>new Day of the Woman Movie movie </a> buy Day of the Woman Movie movie
bvImmegoIgnonsesdaszx URL 2011/02/04(Fri)17:32:33 EDIT | RES
Day of the Woman Movie film wikipedia
download Day of the Woman Movie film <a href=http://downlaoddayofthewoman.carbonmade.com/about>Day of the Woman Movie movie images </a> Day of the Woman Movie movie downloads
bvImmegoIgnonsesdaszx URL 2011/02/04(Fri)18:14:17 EDIT | RES
Red Dirt Rising Movie review
Red Dirt Rising Movie hdtv <a href=http://downlaodreddirtrising.carbonmade.com/about>watch Red Dirt Rising Movie movie hd </a> download Red Dirt Rising Movie music
cvbnJaxyappandafds URL 2011/02/04(Fri)21:37:37 EDIT | RES
watch Red Dirt Rising Movie film
watching Red Dirt Rising Movie online <a href=http://downlaodreddirtrising.carbonmade.com/about>Red Dirt Rising Movie video download </a> Red Dirt Rising Movie movie screenshots
cvbnJaxyappandafds URL 2011/02/04(Fri)22:21:13 EDIT | RES
Rare Exports Movie movie dvd
Rare Exports Movie movie direct download <a href=http://downlaodrareexports.carbonmade.com/about>Rare Exports Movie film wikipedia </a> Rare Exports Movie movie reviews
ghfjuncosmodsXXX URL 2011/02/05(Sat)02:00:30 EDIT | RES
Rare Exports Movie downloads
new Rare Exports Movie movie <a href=http://downlaodrareexports.carbonmade.com/about>Rare Exports Movie movie music </a> download Rare Exports Movie film
ghfjuncosmodsXXX URL 2011/02/05(Sat)02:43:12 EDIT | RES
Blue Valentine Movie review movie
watch the Blue Valentine Movie online <a href=http://downlaodbluevalentine.carbonmade.com/about>Blue Valentine Movie movie news </a> download Blue Valentine Movie avi
nmnmnTeackcaph URL 2011/02/05(Sat)06:47:32 EDIT | RES
The King's Speech Movie movie quotes
The King's Speech Movie dvd <a href=http://downlaodthekingsspeech.carbonmade.com/about>The King's Speech Movie video download </a> The King's Speech Movie movie streaming
OperieWeavillHJHJH URL 2011/02/05(Sat)12:48:47 EDIT | RES
download the The King's Speech Movie movie
The King's Speech Movie movie full movie <a href=http://downlaodthekingsspeech.carbonmade.com/about>download The King's Speech Movie full </a> The King's Speech Movie movie downloads
OperieWeavillHJHJH URL 2011/02/05(Sat)13:29:37 EDIT | RES
Welcome to the Rileys Movie film online
watch the Welcome to the Rileys Movie online <a href=http://downlaodwelcometotherileys.carbonmade.com/about>Welcome to the Rileys Movie film wikipedia </a> Welcome to the Rileys Movie full
edgerbBlilmemasdbvm URL 2011/02/05(Sat)16:47:45 EDIT | RES
Welcome to the Rileys Movie review
Welcome to the Rileys Movie movie images <a href=http://downlaodwelcometotherileys.carbonmade.com/about>Welcome to the Rileys Movie dvdrip </a> download the Welcome to the Rileys Movie movie
edgerbBlilmemasdbvm URL 2011/02/05(Sat)17:30:03 EDIT | RES
The Company Men Movie divx hd
The Company Men Movie movie to watch <a href=http://downlaodthecompanymen.carbonmade.com/about>The Company Men Movie full movie </a> The Company Men Movie movie summary
WorkProftCSSD URL 2011/02/05(Sat)20:56:14 EDIT | RES
The Company Men Movie movie news
download The Company Men Movie movie rapidshare <a href=http://downlaodthecompanymen.carbonmade.com/about>watch the The Company Men Movie online </a> The Company Men Movie film imdb
WorkProftCSSD URL 2011/02/05(Sat)21:39:43 EDIT | RES
watch The Company Men Movie film
The Company Men Movie movie blog <a href=http://downlaodthecompanymen.carbonmade.com/about>The Company Men Movie download movie </a> The Company Men Movie movie
WorkProftCSSD URL 2011/02/05(Sat)22:38:54 EDIT | RES
buy The Company Men Movie movie
quotes from the movie The Company Men Movie <a href=http://downlaodthecompanymen.carbonmade.com/about>watch the The Company Men Movie online </a> how to watch The Company Men Movie online
WorkProftCSSD URL 2011/02/05(Sat)23:38:26 EDIT | RES
cult movie clips Rango Rango watch online
Rango review cult sci fi movies Rango <a href=http://rango.beep.com/>watch online free Rango </a> Rango full movie film noir download Rango http://rango.beep.com/
rangoSkereldPriera URL 2011/04/04(Mon)20:53:05 EDIT | RES
Rango online english cult comedy movies Rango
download Rango movies Rango ipod download <a href=http://rango.beep.com/>download divx Rango full lenght </a> suspense thriller movies Rango Rango full movie http://rango.beep.com/
rangoSkereldPriera URL 2011/04/04(Mon)21:48:58 EDIT | RES
download Rango movie hq hd video download Rango
watch the full Rango the movie download divx Rango movie <a href=http://rango.beep.com/>buy Rango movie </a> hi-def Rango movie download Rango movie tumblr http://rango.beep.com/
rangoSkereldPriera URL 2011/04/04(Mon)23:11:42 EDIT | RES
free download of Rango whole Rango movie online
Rango the movie high quality Rango movie trailers <a href=http://rango.beep.com/>download full Rango </a> hi-def Rango movie download Rango fool-lenght http://rango.beep.com/
rangoSkereldPriera URL 2011/04/05(Tue)00:33:08 EDIT | RES
hyxaqpej
ynvwxvqsmnixleggvjma, http://www.vhhzbpluxs.com mxjpapqfhr
ceoihmclyr URL 2011/07/31(Sun)23:32:35 EDIT | RES
dxwkuynugc
Hi there, what's up you guys???
dxwkuynugc URL 2011/08/02(Tue)00:15:15 EDIT | RES
xwnuovxkie
Hi there, what's up you guys???
xwnuovxkie URL 2011/08/02(Tue)05:38:47 EDIT | RES
Locksmiths San Francisco CA
Eternal nothingness is fine if you happen to be dressed for it.
Locksmith San Francisco CA URL 2011/08/02(Tue)14:35:37 EDIT | RES
Ball busters gay
Java, the best argument for Smalltalk since C++.
GayBusters URL 2011/08/02(Tue)14:48:37 EDIT | RES
best green web hosting
The wit makes fun of other persons; the satirist makes fun of the world; the humorist makes fun of himself.
green web hosting URL 2011/08/02(Tue)15:00:45 EDIT | RES
hcg drops
We all agree that your theory is crazy, but is it crazy enough?
hcg drops URL 2011/08/02(Tue)16:23:24 EDIT | RES
hcg drops
We all agree that your theory is crazy, but is it crazy enough?
hcg drops URL 2011/08/02(Tue)17:18:09 EDIT | RES
vps
The only difference between me and a madman is that I'm not mad.
cheap vps hosting URL 2011/08/02(Tue)18:30:10 EDIT | RES
Mom son xhamster movies
Of all the enemies to public liberty, war is perhaps the most to be dreaded because it comprises and develops the germ of every other.
XHamster URL 2011/08/02(Tue)20:01:09 EDIT | RES
hostmonster
If you were plowing a field, which would you rather use? Two strong oxen or 1024 chickens?
hostmonster URL 2011/08/02(Tue)21:22:55 EDIT | RES
cpanel web hosting
Deliver yesterday, code today, think tomorrow.
cpanel web hosting URL 2011/08/02(Tue)21:32:25 EDIT | RES
Keez Movies
I know that there are people in this world who do not love their fellow human beings, and I hate people like that.
'keezmovies.com' URL 2011/08/02(Tue)22:21:53 EDIT | RES
managed web hosting
Sailors ought never to go to church. They ought to go to hell, where it is much more comfortable.
dedicated managed web hosting URL 2011/08/02(Tue)23:44:31 EDIT | RES
Humiliation Tube
Before the war is ended, the war party assumes the divine right to denounce and silence all opposition to war as unpatriotic and cowardly.
Humiliation URL 2011/08/03(Wed)03:28:33 EDIT | RES
dress up games
Everywhere I go I'm asked if I think the university stifles writers. My opinion is that they don't stifle enough of them.
dress up games URL 2011/08/03(Wed)03:28:50 EDIT | RES
Locksmith in Tampa FL
If you can read this you're not aiming in the right direction.
Locksmiths Tampa URL 2011/08/03(Wed)04:10:10 EDIT | RES
Voice recorders reviewed
Don't sweat the petty things, just pet the sweaty things.
Voice recorders reviewed URL 2011/08/03(Wed)06:07:31 EDIT | RES
Locksmith Virginia Beach
Patriotism means to stand by the country. It does not mean to stand by the president or any other public official...
Locksmith Virginia Beach URL 2011/08/03(Wed)06:23:59 EDIT | RES
Dr simeons hcg diet
My neighbour asked if he could use my lawnmower and I told him of course he could, so long as he didn't take it out of my garden.
HCG URL 2011/08/03(Wed)09:01:36 EDIT | RES
Locksmiths St Louis MO
It is better to be quotable than to be honest.
Locksmith St Louis URL 2011/08/03(Wed)09:18:55 EDIT | RES
Locksmiths Houston TX
I'm fed up to the ears with old men dreaming up wars for young men to die in.
Locksmiths Houston TX URL 2011/08/03(Wed)10:25:22 EDIT | RES
small business hosting
Ah, you know the type. They like to blame it all on the Jews or the Blacks, 'cause if they couldn't, they'd have to wake up to the fact that life's one big, scary, glorious, complex and ultimately unfathomable crapshoot -- and the only reason THEY can't seem to keep up is they're a bunch of misfits and losers.
business web hosting URL 2011/08/03(Wed)11:39:30 EDIT | RES
無題
Computer /nm./: a device designed to speed and automate errors.
NONAME 2011/08/03(Wed)11:46:32 EDIT | RES
web hosting buzz
We didn't lose the game; we just ran out of time.
webhosting buzz URL 2011/08/03(Wed)12:45:06 EDIT | RES
Locksmith Tucson
If you're sick and tired of the politics of cynicism and polls and principles, come and join this campaign.
Locksmith Tucson URL 2011/08/03(Wed)13:34:14 EDIT | RES
Buy Cialis
Invading Iraq after 9/11 was like invading Mexico after Pearl Harbor.
Buy Cialis URL 2011/08/03(Wed)15:26:45 EDIT | RES
webhostinghub
In America, anybody can be president. That's one of the risks you take.
web hosting hub review URL 2011/08/03(Wed)16:21:22 EDIT | RES
FreeFuckVidz
It's the liberal bias. The press is liberally biased to the right.
Free Fuck Vidz URL 2011/08/03(Wed)16:45:44 EDIT | RES
Zoloft during pregnancy
We all agree that your theory is crazy, but is it crazy enough?
Generic Zoloft URL 2011/08/03(Wed)18:03:50 EDIT | RES
Buy Klonopin
Cholesterol is your natural defence against excessive circulation of blood, which can carry venoms, poisons and other toxins around your body.
Klonopin URL 2011/08/03(Wed)18:05:16 EDIT | RES
fatcow
Humor is by far the most significant activity of the human brain.
fatcow review URL 2011/08/03(Wed)18:25:28 EDIT | RES
incorporation
When his life was ruined, his family killed, his farm destroyed, Job knelt down on the ground and yelled up to the heavens, 'Why god? Why me?' and the thundering voice of God answered, 'There's just something about you that pisses me off.'
incorporate URL 2011/08/03(Wed)19:51:55 EDIT | RES
Empflix.co
Guard against the impostures of pretended patriotism.
Empflix URL 2011/08/03(Wed)21:27:37 EDIT | RES
home loan calculator
Raymond's Law of Software: Given a sufficiently large number of eyeballs, all bugs are shallow.
home loan calculator URL 2011/08/03(Wed)21:50:28 EDIT | RES
Cialis
Obstacles are those frightful things you see when you take your eyes off your goal.
Generica cialis URL 2011/08/03(Wed)22:55:07 EDIT | RES
cheap dedicated server
Before the war is ended, the war party assumes the divine right to denounce and silence all opposition to war as unpatriotic and cowardly.
cheap dedicated server URL 2011/08/03(Wed)23:07:57 EDIT | RES
Locksmith Orlando FL
Real Programmers always confuse Christmas and Halloween because Oct31 == Dec25 !
Locksmiths Orlando FL URL 2011/08/03(Wed)23:51:21 EDIT | RES
Locksmiths Anaheim CA
Wit makes its own welcome and levels all distinctions.
Locksmith Anaheim URL 2011/08/04(Thu)01:13:46 EDIT | RES
windows web hosting
Not only is there no God, but you try getting a plumber at weekends.
windows hosting URL 2011/08/04(Thu)02:06:08 EDIT | RES
Hcg diet phase 1
Multitasking /adj./ 3 PCs and a chair with wheels !
HCG URL 2011/08/04(Thu)02:40:23 EDIT | RES
PornoLogo
If electricity comes from electrons, does that mean that morality comes from morons?
Porno Logo URL 2011/08/04(Thu)02:42:08 EDIT | RES
Alprazolam 1mg street price
You can get more with a kind word and a gun than you can with a kind word alone.
Alprazolam URL 2011/08/04(Thu)03:10:02 EDIT | RES
Locksmith Hartford
The chain reaction of evil -- wars producing more wars -- must be broken, or we shall be plunged into the dark abyss of annihilation.
Locksmiths Hartford CT URL 2011/08/04(Thu)03:32:46 EDIT | RES
Bluehost godaddy best website builder
I just bought a Mac to help me design the next Cray.
bluehost review URL 2011/08/04(Thu)05:34:18 EDIT | RES
linux hosting
I'm fed up to the ears with old men dreaming up wars for young men to die in.
linux hosting URL 2011/08/04(Thu)06:27:38 EDIT | RES
Xtube spanking
Dying is a very dull, dreary affair. And my advice to you is to have nothing whatever to do with it.
XTube URL 2011/08/04(Thu)06:28:48 EDIT | RES
Order klonopin online
Many a man's reputation would not know his character if they met on the street.
Generic Klonopin URL 2011/08/04(Thu)06:51:00 EDIT | RES
Locksmiths Richmond
Everything secret degenerates, even the administration of justice.
Locksmith Richmond URL 2011/08/04(Thu)07:10:44 EDIT | RES
aggressive dog training
A state of war only serves as an excuse for domestic tyranny.
dog training advice URL 2011/08/04(Thu)07:41:34 EDIT | RES
dedicated managed web hosting
One of the symptoms of an approaching nervous breakdown is the belief that one's work is terribly important.
Managed hosting companies uk URL 2011/08/04(Thu)07:52:17 EDIT | RES
Buy Ultram
A camel is a horse designed by a committee
Ultram URL 2011/08/04(Thu)09:31:22 EDIT | RES
Dot5hosting perl smtp mail
Heaven is an American salary, a Chinese cook, an English house, and a Japanese wife. Hell is defined as having a Chinese salary, an English cook, a Japanese house, and an American wife.
dot 5 hosting URL 2011/08/04(Thu)10:42:04 EDIT | RES
cheap reseller hosting
My opinions might have changed, but not the fact that I am right.
cheap reseller web hosting URL 2011/08/04(Thu)11:04:57 EDIT | RES
hostnine
If it weren't for electricity we'd all be watching television by candlelight.
host9 URL 2011/08/04(Thu)11:56:06 EDIT | RES
Empflix
Of all the enemies to public liberty, war is perhaps the most to be dreaded because it comprises and develops the germ of every other.
Download empflix quicktime URL 2011/08/04(Thu)12:51:32 EDIT | RES
Locksmith Tampa FL
My opinions might have changed, but not the fact that I am right.
Locksmiths Tampa FL URL 2011/08/04(Thu)13:18:15 EDIT | RES
Pride Tube
If a man does his best, what else is there?
Pridetube URL 2011/08/04(Thu)13:46:37 EDIT | RES
Www.hostgator.com
Many journalists have fallen for the conspiracy theory of government. I do assure you that they would produce more accurate work if they adhered to the cock-up theory.
hostgator URL 2011/08/04(Thu)13:57:06 EDIT | RES
cheap web hosting
Liberty and democracy become unholy when their hands are dyed red with innocent blood.
cheap hosting web URL 2011/08/04(Thu)15:35:44 EDIT | RES
Locksmith Philadelphia PA
Ever notice when you blow in a dog's face he gets mad at you, but when you take him in a car he sticks his head out the window?
Locksmith Philadelphia PA URL 2011/08/04(Thu)16:04:26 EDIT | RES
Buy Ambien
Puritanism: The haunting fear that someone, somewhere, may be happy.
Ambien URL 2011/08/04(Thu)17:07:34 EDIT | RES
Ativan
Democracy is where you can say what you think even if you don't think.
Ativan URL 2011/08/04(Thu)17:53:13 EDIT | RES
SubmitYourDude
One doesn't have a sense of humor. It has you.
Submityourdude.com URL 2011/08/04(Thu)20:14:40 EDIT | RES
Mestinon + joint pain + blog
If you were plowing a field, which would you rather use? Two strong oxen or 1024 chickens?
Wallpapers
Everything secret degenerates, even the administration of justice.
Wallpaper URL 2011/08/04(Thu)20:33:01 EDIT | RES
Cialis dosage
One doesn't have a sense of humor. It has you.
Cialis URL 2011/08/04(Thu)20:38:37 EDIT | RES
Granny youjizz
Everything is drive-through. In California, they even have a burial service called Jump-In-The-Box.
You Jizz URL 2011/08/04(Thu)20:43:39 EDIT | RES
10mg call cialis refills
That is the saving grace of humor, if you fail no one is laughing at you.
Generic cialis 10mg URL 2011/08/04(Thu)21:31:37 EDIT | RES
cheap reseller hosting
If Al Gore invented the Internet, I invented spell check.
reseller hosting URL 2011/08/04(Thu)21:39:26 EDIT | RES
Dachix and avery and suzanne
The secret of a good sermon is to have a good beginning and a good ending, then having the two as close together as possible.
Dachix.com URL 2011/08/04(Thu)22:38:19 EDIT | RES
この記事へのトラックバック
この記事にトラックバックする:
MA3楽天賞受賞
ありがとうございます。mash up award 3rdでカラフル.jpが楽天賞を頂きました。
PR
最新コメント
[12/12 clspxeiqhv]
[12/12 Advanced African Mango]
[12/12 Tampa crimanal attorney]
[12/12 Adipex]
[12/12 Sex dating in banks oregon]
カレンダー
01 2012/02 03
S M T W T F S
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29
あわせて読みたい
あわせて読みたい
なかのひと
なかのひと
ブログ内検索
ログール
TrackWord
アクセス解析
このページのQRコード
Copyright © .☆★ ステレオタイプラボ ★☆. 。All Rights Reserved.
ブログ [PR]植毛 薬剤師