フレームワーク
仕事の話ばかりが続きます。
そろそろ別ブログを立ち上げるべきかな?
さて、前回も書いたようにコマンドラインから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)
51 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