本文整理汇总了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);
}
示例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);
}