当前位置: 首页>>代码示例>>PHP>>正文


PHP photo::returnPhoto方法代码示例

本文整理汇总了PHP中photo::returnPhoto方法的典型用法代码示例。如果您正苦于以下问题:PHP photo::returnPhoto方法的具体用法?PHP photo::returnPhoto怎么用?PHP photo::returnPhoto使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在photo的用法示例。


在下文中一共展示了photo::returnPhoto方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: saveProfile

 function saveProfile($verify)
 {
     $sim = new simulator();
     $handle = fopen("php://stdin", "r");
     $pic = new photo();
     $clr = new color();
     echo "Enter Header Picture";
     $this->temp = $pic->returnPhoto($verify);
     $size = count($this->temp);
     for ($x = 0; $x <= $size - 1; $x++) {
         echo $x . " " . $this->temp[$x] . "\n";
     }
     echo "Press Number to add photo";
     $pho = fgets($handle);
     $photo = "Header Picture: " . $this->temp[1];
     echo "Enter Profile Picture";
     for ($x = 0; $x <= $size - 1; $x++) {
         echo $x . " " . $this->temp[$x] . "\n";
     }
     $ppho = fgets($handle);
     $pPhoto = "Profile Picture:" . $this->temp[1];
     echo "Enter Full Name";
     $full_name = fgets($handle);
     echo "Enter Bio";
     $bio = fgets($handle);
     echo "Enter Location";
     $location = fgets($handle);
     echo "Enter Website";
     $website = fgets($handle);
     echo "Enter DOB ";
     $dob = fgets($handle);
     echo "Enter Theme Color";
     $clrs = $clr->returnColors();
     for ($x = 0; $x <= $size - 1; $x++) {
         echo $x . " " . $clrs[$x] . "\n";
     }
     $t = fgets($handle);
     $theme_color = $clrs[1];
     $myfile = fopen("{$verify}" . "profile", "w") or die("Unable to open file!");
     fwrite($myfile, $photo . "\n" . $pPhoto . "\n" . $full_name . $bio . $location . $website . $dob . $theme_color);
     echo "Profile Made";
     $sim->followUp($verify);
 }
开发者ID:shahmeerarshad,项目名称:Boot_Camp,代码行数:43,代码来源:profile.php

示例2: tweetInput

 function tweetInput($verify)
 {
     $pic = new photo();
     $twt = new tweet();
     $dbh = new dbHandler();
     $handle = fopen("php://stdin", "r");
     echo "Write your Tweet\n ";
     $tweet = fgets($handle);
     $text = " Tweet: " . $tweet;
     echo "Write Location";
     $loc = fgets($handle);
     $location = "Location: " . $loc;
     echo "Enter Photo\n";
     $this->pic_array = $pic->returnPhoto($verify);
     $size = count($this->pic_array);
     for ($x = 0; $x <= $size - 1; $x++) {
         echo $x . " " . $this->pic_array[$x] . "\n";
     }
     $pho = fgets($handle);
     $photo = "Picture: " . $this->pic_array[1];
     $twt->post_tweet($verify, $text, $location, $photo);
 }
开发者ID:shahmeerarshad,项目名称:Boot_Camp,代码行数:22,代码来源:simulator.php


注:本文中的photo::returnPhoto方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。