フレームワーク
仕事の話ばかりが続きます。
そろそろ別ブログを立ち上げるべきかな?
さて、前回も書いたようにコマンドラインからphpを呼び出すととても楽です。
ファイルの先頭に
#!/usr/bin/php
という宣言文をつければ、あとは普通のphpです。
例えばコマンドで、
./hoge.php -piyo -piyopiyo
と打ち込めば、きちんとhoge.phpが実行されるし
引数もきちんと引っ張ってくれます。
画面も考えなくていいし、入力値のエスケープとかもあまり慎重にならないですむので
かなり楽です。
あ、実行権限をつけるのを忘れずに。
さらに、シェルからphpを呼び出すこともできるので
シェルで結果をファイルに出力したりすることもできたりします。
php本体もオブジェクト化しておけば
ウェブからも、コマンドからも呼び出せてお得な感じです。
ページ: 1 · 2
Trackback address for this post
Trackback URL (right click and copy shortcut/link location)
12 コメント, 75 trackbacks
Trackback from: Oscommerce Integration [訪問者]
wonderful article. Wants to read more.
2009/11/13 @ 16:07
Trackback from: 630 area code [訪問者]
A chain is no stronger than its weakest link.
2010/01/11 @ 13:17
Trackback from: Purchase Domian Names [訪問者]
howtobuyadomainname.org/best-domain-name-registrars
No answer is also an answer.
No answer is also an answer.
2010/04/05 @ 12:31
Trackback from: Learn To Sing Free [訪問者]
Learn To Sing Free
I really like and appreciate your blog article.Really looking forward to read more. Much obliged.
I really like and appreciate your blog article.Really looking forward to read more. Much obliged.
2010/04/24 @ 02:52
Trackback from: Cheap Web Hosting Reseller [訪問者]
Cheap Web Hosting Reseller
Great article post.Really looking forward to read more. Keep writing.
Great article post.Really looking forward to read more. Keep writing.
2010/05/15 @ 18:07
Trackback from: Window Web Hosting [訪問者]
Window Web Hosting
I truly appreciate this article post.Thanks Again. Really Cool.
I truly appreciate this article post.Thanks Again. Really Cool.
2010/05/17 @ 17:11
Trackback from: Web Hosting Ssh [訪問者]
Web Hosting Ssh
Very neat blog.Really thank you! Keep writing.
Very neat blog.Really thank you! Keep writing.
2010/05/17 @ 19:41
Trackback from: Cheap Cabins In Smoky Mountains [訪問者]
Cheap Cabins In Smoky Mountains
I appreciate you sharing this article post.Really looking forward to read more. Great.
I appreciate you sharing this article post.Really looking forward to read more. Great.
2010/05/18 @ 14:49
Trackback from: Cheap Pigeon Forge Cabin Rentals [訪問者]
Cheap Pigeon Forge Cabin Rentals
Major thanks for the article.Really thank you!
Major thanks for the article.Really thank you!
2010/05/19 @ 00:23
Trackback from: Womens Wetsuits [訪問者]
Womens Wetsuits
A round of applause for your blog post. Much obliged.
A round of applause for your blog post. Much obliged.
2010/05/20 @ 22:32
Trackback from: Nikon Prostaff Laser 440 [訪問者]
Nikon Prostaff Laser 440
I appreciate you sharing this blog article.Really looking forward to read more. Keep writing.
I appreciate you sharing this blog article.Really looking forward to read more. Keep writing.
2010/05/27 @ 01:31
Trackback from: How To Become A Famous Singer [訪問者]
How To Become A Famous Singer
Great thanks for sharing this article.Really thank you! Will read on...
Great thanks for sharing this article.Really thank you! Will read on...
2010/05/27 @ 17:48
Trackback from: How To Sing Higher [訪問者]
How To Sing Higher
I think this is a real great article post.Really looking forward to read more. Much obliged.
I think this is a real great article post.Really looking forward to read more. Much obliged.
2010/05/27 @ 22:57
Trackback from: Watch Argentina Vs Nigeria Online [訪問者]
Watch Argentina Vs Nigeria Online
Wow great blog post.Really looking forward to read more. Really Cool.
Wow great blog post.Really looking forward to read more. Really Cool.
2010/06/07 @ 18:06
Trackback from: Left Handed Electric Guitar [訪問者]
Left Handed Electric Guitar
wow awesome article post.Thanks Again. Cool.
wow awesome article post.Thanks Again. Cool.
2010/06/18 @ 17:19
Trackback from: Germany Vs Serbia Live Streaming [訪問者]
Germany Vs Serbia Live Streaming
wow awesome blog article.Really thank you! Really Cool.
wow awesome blog article.Really thank you! Really Cool.
2010/06/18 @ 17:36
Trackback from: Watch Slovenia Vs Usa Online [訪問者]
Watch Slovenia Vs Usa Online
I really liked your article post.Much thanks again. Keep writing.
I really liked your article post.Much thanks again. Keep writing.
2010/06/18 @ 20:45
Interesting Report On Natural High Blood Pressure Remedies
...and was just recalling that this article made a lot of sense...
...and was just recalling that this article made a lot of sense...
2010/06/19 @ 03:18
Trackback from: Back Pain Relief Systems [訪問者]
Back Pain Relief Systems
...was besides the point. You should read instead this...
...was besides the point. You should read instead this...
2010/06/27 @ 06:36
Trackback from: Famous Restaurant Recipes [訪問者]
Famous Restaurant Recipes
Thanks again for the post.Thanks Again. Cool.
Thanks again for the post.Thanks Again. Cool.
2010/06/27 @ 19:23
Trackback from: iron condor [訪問者]
www.ironcondoroptiontradingstrategy.com
God couldnt be everywhere so he created mothers
God couldnt be everywhere so he created mothers
2010/06/28 @ 16:15
Trackback from: How To Play Violin [訪問者]
How To Play Violin
Thanks for the blog.Really looking forward to read more. Keep writing.
Thanks for the blog.Really looking forward to read more. Keep writing.
2010/07/01 @ 22:16
Trackback from: Your Money Making Strategy Is Here [訪問者]
www.undergroundaffiliatesystem.com
http://www.undergroundaffiliatesystem.com
http://www.undergroundaffiliatesystem.com
2010/07/03 @ 19:41
Trackback from: Tigi Hair Products [訪問者]
Tigi Hair Products
A big thank you for your post.Really looking forward to read more. Keep writing.
A big thank you for your post.Really looking forward to read more. Keep writing.
2010/07/04 @ 20:05
Trackback from: Wella Hair Products [訪問者]
Wella Hair Products
Thanks for sharing this is a fantastic post.Really thank you! Really Cool.
Thanks for sharing this is a fantastic post.Really thank you! Really Cool.
2010/07/04 @ 21:08
Trackback from: Germany Vs Spain Free Streaming [訪問者]
Germany Vs Spain Free Streaming
I really enjoy the blog post.Much thanks again. Fantastic.
I really enjoy the blog post.Much thanks again. Fantastic.
2010/07/05 @ 14:49
Trackback from: 2010 World Cup Third Place Match [訪問者]
2010 World Cup Third Place Match
Thanks so much for the blog post.Really thank you! Want more.
Thanks so much for the blog post.Really thank you! Want more.
2010/07/10 @ 20:48
Trackback from: Relationship Quiz [訪問者]
Relationship Quiz
Im grateful for the article.Thanks Again. Keep writing.
Im grateful for the article.Thanks Again. Keep writing.
2010/07/10 @ 22:51
Trackback from: How To Play Violin [訪問者]
How To Play Violin
Fantastic article post. Will read on...
Fantastic article post. Will read on...
2010/07/13 @ 01:56
hazmatcard.com/enroll-in-an-environmental-first-responder-awareness-level-course-today-–-get-hazmat-card/
Pleasure reading your content, as always!
Pleasure reading your content, as always!
2010/07/13 @ 11:04
Trackback from: Internet Safety Tips For Kids [訪問者]
Internet Safety Tips For Kids
Wow great blog post.Much thanks again. Great.
Wow great blog post.Much thanks again. Great.
2010/07/14 @ 13:03
Trackback from: How To Play Violin [訪問者]
How To Play Violin
I am so grateful for your blog post.Thanks Again. Keep writing.
I am so grateful for your blog post.Thanks Again. Keep writing.
2010/07/16 @ 02:14
Trackback from: Best Wrinkle Products [訪問者]
Best Wrinkle Products
A round of applause for your blog article.Thanks Again. Keep writing.
A round of applause for your blog article.Thanks Again. Keep writing.
2010/07/16 @ 15:27
Trackback from: How To Play Violin [訪問者]
How To Play Violin
Muchos Gracias for your post.Really thank you! Cool.
Muchos Gracias for your post.Really thank you! Cool.
2010/07/23 @ 02:08
Trackback from: How To Play Violin [訪問者]
How To Play Violin
Looking forward to reading more. Great blog post.Really thank you! Great.
Looking forward to reading more. Great blog post.Really thank you! Great.
2010/07/29 @ 02:34
Trackback from: Nasal Irrigation [訪問者]
Nasal Irrigation
Say you got a nice blog post.Much thanks again. Cool.
Say you got a nice blog post.Much thanks again. Cool.
2010/07/29 @ 07:53
Trackback from: Sciatica Symptoms [訪問者]
Sciatica Symptoms
Thanks-a-mundo for the blog post. Really Great.
Thanks-a-mundo for the blog post. Really Great.
2010/07/31 @ 16:02
Trackback from: Wedding Photographer Gainesville [訪問者]
Wedding Photographer Gainesville
Great blog post. Really Great.
Great blog post. Really Great.
2010/08/02 @ 07:50
Trackback from: Get Free Guide To Fafsa And Calculator [訪問者]
Get Free Guide To Fafsa And Calculator
Very informative blog. Really Great.
Very informative blog. Really Great.
2010/08/02 @ 10:31
Trackback from: Itp Blood Disorder [訪問者]
Itp Blood Disorder
Really informative blog.Thanks Again. Awesome.
Really informative blog.Thanks Again. Awesome.
2010/08/05 @ 10:00
Trackback from: Nasal Irrigation Tips [訪問者]
Nasal Irrigation Tips
This is one awesome blog post. Keep writing.
This is one awesome blog post. Keep writing.
2010/08/07 @ 21:59
Trackback from: Sciatica Symptoms [訪問者]
Sciatica Symptoms
Great blog post. Really Cool.
Great blog post. Really Cool.
2010/08/10 @ 23:19
Trackback from: soccer scholarships USA [訪問者]
Everyday is a school day, must say I learned a lot from that post, thanks
2010/08/12 @ 17:05
Trackback from: Sciatica Relief [訪問者]
Sciatica Relief
I really like and appreciate your blog.Much thanks again. Much obliged.
I really like and appreciate your blog.Much thanks again. Much obliged.
2010/08/27 @ 02:18
Trackback from: French Language Software [訪問者]
French Language Software
Awesome blog post.Much thanks again. Cool.
Awesome blog post.Much thanks again. Cool.
2010/08/27 @ 11:42
Trackback from: football scholarships in the usa [訪問者]
Great post, when did you first get interested in this?
2010/08/27 @ 18:43
Trackback from: Nail Fungus Cure [訪問者]
Nail Fungus Cure
good stuff... thanks and keep it up!
good stuff... thanks and keep it up!
2010/08/28 @ 11:22
Trackback from: Shokz Starcraft 2 Guide Review [訪問者]
Shokz Starcraft 2 Guide Review
Major thanks for the post.Really thank you! Really Cool.
Major thanks for the post.Really thank you! Really Cool.
2010/08/28 @ 13:38
Trackback from: Shokz Starcraft 2 Guide Review [訪問者]
Shokz Starcraft 2 Guide Review
Thanks for the article post.Thanks Again. Much obliged.
Thanks for the article post.Thanks Again. Much obliged.
2010/08/28 @ 18:18
Trackback from: football scholarships uk [訪問者]
What will you be talking about next?
2010/08/29 @ 03:44
Trackback from: Watch The A Team Online [訪問者]
Watch The A Team Online
Fantastic article post.Really thank you! Fantastic.
Fantastic article post.Really thank you! Fantastic.
2010/09/05 @ 14:07
Trackback from: Traffic Voodoo 2 Bonus [訪問者]
Traffic Voodoo 2 Bonus
Great Article. What is next?
Great Article. What is next?
2010/09/05 @ 18:59
Trackback from: Watch Charlie St Cloud Movie [訪問者]
Watch Charlie St Cloud Movie
Major thanks for the blog.Really thank you! Fantastic.
Major thanks for the blog.Really thank you! Fantastic.
2010/09/05 @ 21:53
Jeff Johnsons Traffic Voodoo 2.0 Unstoppable Traffic
very good stuff... thanks a lot and keep it up!
very good stuff... thanks a lot and keep it up!
2010/09/06 @ 00:04
Trackback from: Jack Power Juicer [訪問者]
Jack Power Juicer
Very interesting I learned some thing today... many thanks
Very interesting I learned some thing today... many thanks
2010/09/06 @ 09:53
Lip Plump
Highly interesting I learned some thing today... appreciate it
Highly interesting I learned some thing today... appreciate it
2010/09/06 @ 20:19
Trackback from: Learn Calligraphy [訪問者]
Learn Calligraphy
Very informative post. Fantastic.
Very informative post. Fantastic.
2010/09/28 @ 11:23
Trackback from: Learn Violin [訪問者]
Learn Violin
Awesome blog article.Thanks Again. Will read on...
Awesome blog article.Thanks Again. Will read on...
2010/10/02 @ 23:27
7 Tips For Looking Beautiful And Feeling Younger
I really like and appreciate your article post.Really looking forward to read more. Want more.
I really like and appreciate your article post.Really looking forward to read more. Want more.
2010/10/13 @ 07:56
Trackback from: Learn Violin [訪問者]
Learn Violin
I think this is a real great post.Really thank you! Awesome.
I think this is a real great post.Really thank you! Awesome.
2010/10/22 @ 00:23
Trackback from: Bravia Hx909 [訪問者]
Bravia Hx909
We like your personality keep writing!
We like your personality keep writing!
2010/11/26 @ 07:03
Trackback from: White Man Dating Black Woman [訪問者]
White Man Dating Black Woman
Fantastic blog post.Thanks Again. Will read on...
Fantastic blog post.Thanks Again. Will read on...
2010/11/27 @ 04:06
Trackback from: Parenting Plr [訪問者]
Parenting Plr
Thank you for your blog post.Much thanks again.
Thank you for your blog post.Much thanks again.
2010/12/13 @ 02:34
Trackback from: White Man Dating Black Woman [訪問者]
White Man Dating Black Woman
Fantastic article.Really thank you! Really Cool.
Fantastic article.Really thank you! Really Cool.
2010/12/19 @ 04:06
Trackback from: Wild Fire Rc [訪問者]
Wild Fire Rc
We enjoy your personality keep writing!
We enjoy your personality keep writing!
2011/01/06 @ 09:23
Trackback from: Landscape Design Phoenix [訪問者]
Landscape Design Phoenix
Say you got a nice article.Thanks Again. Great.
Say you got a nice article.Thanks Again. Great.
2011/06/11 @ 14:32
コメント from: free to play games [訪問者] · http://games.shoppe-spot.com/
Another issue is that video games are usually serious naturally with the key focus on knowing things rather than amusement. Although, there is an entertainment facet to keep the kids engaged, just about every game is generally designed to work on a specific skill set or curriculum, such as mathmatical or scientific disciplines. Thanks for your posting.
2011/06/12 @ 03:07
Trackback from: Sheridan-implant-dentist [訪問者]
Sheridan-implant-dentist
wow awesome blog article.Thanks Again. Great.
wow awesome blog article.Thanks Again. Great.
2011/08/16 @ 07:44
コメント from: Gaylord Shumiloff [訪問者] · http://haushaltelektronik.net
Wonderful news it is actually. We’ve been looking for this tips. I am looking forward for your next post.
2011/09/19 @ 05:14
Trackback from: Lakewood Dental Implants [訪問者]
Lakewood Dental Implants
Really appreciate you sharing this blog post.Thanks Again. Much obliged.
Really appreciate you sharing this blog post.Thanks Again. Much obliged.
2011/09/28 @ 19:14
Trackback from: Landscape Design El Mirage [訪問者]
Landscape Design El Mirage
Wow great blog.Really looking forward to read more. Will read on...
Wow great blog.Really looking forward to read more. Will read on...
2011/10/07 @ 18:32
コメント from: Shapleigh@yahoo.com [訪問者] · http://www.convertrmvbtomp4.com
The visual bounce effect, is a nice little flourish, not a significant idea.
2011/10/10 @ 00:06
コメント from: water cool [訪問者] · http://www.jazykoveda.info/computers/the-reasons-to-water-cool-a-computer/
Amazing internet site you could have right, it's well-built and has superior data files.
2011/10/11 @ 11:07
コメント from: Anastasia Cockrill [訪問者] · http://canister-filter-as-best-aquarium.webs.com/
There are definitely a variety of particulars like that to take into consideration. That may be a great level to carry up. I provide the thoughts above as common inspiration however clearly there are questions just like the one you convey up the place an important thing will likely be working in sincere good faith. I don?t know if finest practices have emerged round things like that, however I'm positive that your job is clearly recognized as a fair game. Both girls and boys really feel the impression of just a moment’s pleasure, for the rest of their lives.
2011/10/27 @ 19:54
Trackback from: Landscape Design Surprise [訪問者]
Landscape Design Surprise
Awesome blog. Cool.
Awesome blog. Cool.
2011/11/03 @ 18:23
コメント from: drt43t3trd425 karen a2e [訪問者] · http://www.davidco.com/forum/member.php?40698-deja4rhett
Somebody necessarily help to make severely posts I'd state. That is the very first time I frequented your website page and thus far? I surprised with the analysis you made to make this actual submit amazing. Excellent task!
2011/11/15 @ 16:07
コメント from: xlkaksje todd asde [訪問者] · http://www.howcast.com/users/tikhel19
Great post, I conceive blog owners should acquire a lot from this blog its very user genial. So much good info on here :D.
2011/11/18 @ 07:44
コメント from: Merrill Nabors [訪問者] · http://myanimelist.net/blog.php?eid=537979
I admire your work , regards for all the useful blog posts.
2011/11/24 @ 07:47
コメント from: web design [訪問者] · http://www.trackstar-web-design.ca
It’s actually a great and helpful piece of info. I am satisfied that you shared this helpful info with us. Please stay us informed like this. Thanks for sharing.
2011/11/26 @ 05:11
コメント from: Moeschet [訪問者] · http://www.pocalunki.pl/tag/collarbone/
Outstanding post, I conceive people should larn a lot from this blog its very user pleasant.
2011/12/12 @ 14:52
Trackback from: Sun City Landscape Design [訪問者]
Sun City Landscape Design
Thank you for your blog article. Will read on...
Thank you for your blog article. Will read on...
2011/12/25 @ 03:05
コメント from: traitement des hemorroides [訪問者] · http://traitement-des-hemorroides.fr
Hello! I just would like to give a huge thumbs up for the great info you have here on this post. I will be coming back to フレームワーク for more soon.
2012/01/07 @ 17:46
Trackback from: Wheat Ridge Dental Implants [訪問者]
Wheat Ridge Dental Implants
Thanks for the article post.Really looking forward to read more. Really Cool.
Thanks for the article post.Really looking forward to read more. Really Cool.
2012/01/13 @ 06:42
Trackback from: Wrightwood Home Security [訪問者]
Wrightwood Home Security
Say you got a nice blog post.Really thank you!
Say you got a nice blog post.Really thank you!
2012/01/21 @ 02:50
Trackback from: Westminster Home Security [訪問者]
Westminster Home Security
I really like and appreciate your post.Much thanks again. Really Great.
I really like and appreciate your post.Much thanks again. Really Great.
2012/01/21 @ 03:16
コメント from: acne body treatments [訪問者] · https://forums.alliedmods.net/member.php?u=169364
I appreciate the time you put in this work or in this post. Although you have bright ideas, I really cannot agree with them. I'm sure there are better ways to walk through this sticky situation. Not trying to insult or be stupid or anything .
2012/02/04 @ 17:27