找回密码
 新注册用户
搜索
查看: 6204|回复: 8

好多签名图片都找不到了!!!

[复制链接]
发表于 2006-9-11 22:21:43 | 显示全部楼层 |阅读模式
http://stats.equn.com/
怎么回事啊!!!
回复

使用道具 举报

发表于 2006-10-1 09:57:43 | 显示全部楼层
哪位是PHP高手啊? 原因不明啊 為什么不能顯示?。。
回复

使用道具 举报

发表于 2006-10-1 10:03:18 | 显示全部楼层
给我一个 php 文件,我来看看看看能不能找出什么问题~~~
但是找不出别怪我~~~
回复

使用道具 举报

发表于 2006-10-1 10:05:56 | 显示全部楼层
SETI3E




  1. <?php
  2. function http_get($url)
  3. {
  4. $result = shell_exec("wget -q -O - $url");
  5. return $result;
  6. }

  7. if(!$_GET[userid]){
  8. $userid="";
  9. }

  10. $file = "http://setiathome.berkeley.edu/userw.php?id=";
  11. $file .= $userid;

  12. $map_array = array(
  13. "BOLD" => "B",
  14. "EMPHASIS" => "I",
  15. "LITERAL" => "TT"
  16. );

  17. function startElement($parser, $name, $attrs)
  18. {
  19. global $map_array;
  20. if (isset($map_array[$name])) {
  21. echo "<$map_array[$name]>";
  22. }
  23. }

  24. function endElement($parser, $name)
  25. {
  26. global $map_array;
  27. if (isset($map_array[$name])) {
  28. echo "</$map_array[$name]>";
  29. }
  30. }
  31. function characterData($parser, $data)
  32. {
  33. global $outdata;
  34. $outdata[]=$data;
  35. }

  36. $xml_parser = xml_parser_create();
  37. // use case-folding so we are sure to find the tag in $map_array
  38. xml_parser_set_option($xml_parser, XML_OPTION_CASE_FOLDING, true);
  39. xml_set_element_handler($xml_parser, "startElement", "endElement");
  40. xml_set_character_data_handler($xml_parser, "characterData");

  41. if (!($fp = fopen($file, "r"))) {
  42. die("could not open XML input");
  43. }

  44. while ($data = fread($fp, 4096)) {
  45. if (!xml_parse($xml_parser, $data, feof($fp))) {
  46. die(sprintf("XML error: %s at line %d, ",
  47. xml_error_string(xml_get_error_code($xml_parser)),
  48. xml_get_current_line_number($xml_parser)));
  49. }
  50. }
  51. xml_parser_free($xml_parser);


  52. /* 发送文件头以使浏览器知道文件类型*/
  53. header("Content-type: image/jpeg");
  54. /* 以给定长和宽创建空白新图片 */
  55. $im = imagecreatetruecolor(380,100);
  56. /* 从原始大图获取资料 */
  57. //$origImg = ImageCreateFromJPEG("seti.jpg");
  58. //ImageCopyResized($im,$origImg,0,0,0,0,380,100,ImageSX($origImg),ImageSY($origImg));
  59. imagefilledrectangle($im, 0, 0, 380, 150, $background_color);
  60. $secondImg = ImageCreateFromJPEG("seti3e.jpg");
  61. ImageCopyResized($im,$secondImg,270,0,0,0,ImageSX($secondImg),ImageSY($secondImg),ImageSX($secondImg),ImageSY($secondImg));

  62. $origImg = ImageCreateFromJPEG("seti3e.jpg");
  63. ImageCopyResized($im,$origImg,0,0,0,0,380,100,ImageSX($origImg),ImageSY($origImg));

  64. $background_color = imagecolorallocate($im, 0, 0, 0);
  65. $black = ImageColorAllocate($im, 255,255,255);
  66. $text_color = imagecolorallocate($im, 0, 0, 0);
  67. //$text_color = imagecolorallocate($im, 0, 0, 0);

  68. //$text_color = imagecolorallocate($im, 0, 0, 255);

  69. // imagestring($im, 20, 85,5, "SETI@Home", $text_color);
  70. imagestring($im, 20, 9,5, ereg_replace('for ','',$outdata[2]), $text_color);
  71. for($i=4;$i<count($outdata);$i++){
  72. imagestring($im, 20, 9,20+(15*($i-4)), $outdata[$i], $text_color);
  73. }
  74. //imagestring($im, 20, 0,130, $outdata[3], $text_color);
  75. //imageline($im, 55, 20, 250, 20, $black);
  76. //imagefilledrectangle($im, 0, 0, 380, 150, $background_color);

  77. imagejpeg($im);
  78. imagedestroy($im);

  79. ?>

复制代码
回复

使用道具 举报

发表于 2006-10-1 10:08:58 | 显示全部楼层
$file = "http://setiathome.berkeley.edu/userw.php?id=";
==>
$file = "http://setiathome.berkeley.edu/show_user.php?userid=";

试试这样子行不行??


这个是不行的~~~

[ Last edited by fwjmath on 2006-10-1 at 10:17 ]
回复

使用道具 举报

发表于 2006-10-1 10:19:44 | 显示全部楼层
以前是行的啊。。。你这个不包含用户名。
回复

使用道具 举报

发表于 2006-10-1 10:36:30 | 显示全部楼层
是不是跟踪一下 outdata ?
回复

使用道具 举报

发表于 2006-10-13 16:44:19 | 显示全部楼层
我突然想到了一个疑似的原因:是不是现在服务器不允许php页面写文件了?
因为签名的生成中需要在服务器生成文件,而现在又不能上传附件,所以有此猜测~~~
回复

使用道具 举报

发表于 2006-10-13 19:37:33 | 显示全部楼层
不能上传文件已经很久了,但是签名是最近才出现的问题吧。。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 新注册用户

本版积分规则

论坛官方淘宝店开业啦~
欢迎大家多多支持基金会~

Archiver|手机版|小黑屋|中国分布式计算总站 ( 沪ICP备05042587号 )

GMT+8, 2024-4-19 02:45

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表