 |
ช่วยครับแก้ยังไงก็ไม่หายสรุปมันเป็นอะไรกันแน่ครับ ขอบคุณครับ |
|
 |
|
|
 |
 |
|
Code (PHP)
connect.inc.php
<?
global $webroot,$docroot;
//Website Path
$webroot="localhost";
//Document Path
$docroot="C:/AppServ/root/domains/localhost/footballs/scripts/";
global $dbname,$host,$user,$pwd,$link;
$host = 'localhost';
$user = 'root';
$pwd = '1234';
$dbname ="banip";
$link=mysql_connect($host,$user,$pwd) or die("connect mysql Not connect Database");
$db=mysql_select_db($dbname);
mysql_query("SET NAMES UTF8");
global $max_size,$max_width,$max_height,$file_type;
// ขนาดไฟล์รูปที่ใช้ในการ Upload กำหนดเป็น KB
$max_size=1024;
// กำหนดความกว้างและความสูงของไฟล์ Resize
$max_width=200;
$max_height=200;
// กำหนดไฟล์ที่ให้อับโหลดได้
$file_type = array("gif", "jpg", "jpeg", "png","swf","wmv","mp3","mp4","wma","mpeg","avi");
$mobile_number="xx-xxxx-xxxx";
Code (PHP)
function.php
<?
$array = array("localhost","127.0.0.1");
if(!$return = in_array( $_SERVER['HTTP_HOST'] , $array )){
echo"<script language=JavaScript>";
echo"alert('nnnn');";
echo "window.close();";
echo"</script>";
?>
Warning: include_once(common/connect.inc.php) [function.include-once]: failed to open stream: No such file or directory in C:\AppServ\www\footballs\index.php on line 3
Warning: include_once() [function.include]: Failed opening 'common/connect.inc.php' for inclusion (include_path='.;C:\php5\pear') in C:\AppServ\www\footballs\index.php on line 3
Warning: include_once(function/function.php) [function.include-once]: failed to open stream: No such file or directory in C:\AppServ\www\footballs\index.php on line 4
Warning: include_once() [function.include]: Failed opening 'function/function.php' for inclusion (include_path='.;C:\php5\pear') in C:\AppServ\www\footballs\index.php on line 4
Warning: include_once(webconfig.php) [function.include-once]: failed to open stream: No such file or directory in C:\AppServ\www\footballs\index.php on line 11
Warning: include_once() [function.include]: Failed opening 'webconfig.php' for inclusion (include_path='.;C:\php5\pear') in C:\AppServ\www\footballs\index.php on line 11
Warning: include(menu_top.php) [function.include]: failed to open stream: No such file or directory in C:\AppServ\www\footballs\index.php on line 46
Warning: include() [function.include]: Failed opening 'menu_top.php' for inclusion (include_path='.;C:\php5\pear') in C:\AppServ\www\footballs\index.php on line 46
Tag : PHP
|
|
 |
 |
 |
 |
Date :
2011-11-18 13:23:31 |
By :
kikapu2629 |
View :
3948 |
Reply :
22 |
|
 |
 |
 |
 |
|
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
เออเรอเพราะเรียกใช้ไฟล์ที่ไม่มีอยู่จริง หรือพาธมันผิดอยู่ครับ
เอาไฟล์หน้า index มาดูครับ ที่ include
|
ประวัติการแก้ไข 2011-11-18 13:30:16
 |
 |
 |
 |
Date :
2011-11-18 13:27:41 |
By :
narubet |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
เนื่องจากไฟล์อยู่คนระดับกัน ลองแก้แบบนี้ครับ
include_once("./common/connect.inc.php");
include_once("./function/function.php");
|
ประวัติการแก้ไข 2011-11-18 14:02:42
 |
 |
 |
 |
Date :
2011-11-18 14:01:32 |
By :
narubet |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
เพิ่มไปสอง จุด ครับ
include_once("../common/connect.inc.php");
include_once("../function/function.php");
|
 |
 |
 |
 |
Date :
2011-11-18 14:12:50 |
By :
narubet |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ขอดูลับดับ folder หน่อยครับ ว่าอยู่ยังไงระหว่าง index กับไฟล์ที่ include
|
 |
 |
 |
 |
Date :
2011-11-18 14:23:44 |
By :
narubet |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
include_once("./scripts/common/connect.inc.php");
include_once("./scripts/function/function.php");
|
 |
 |
 |
 |
Date :
2011-11-18 14:42:01 |
By :
narubet |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ขอดู function.php on line 314
|
 |
 |
 |
 |
Date :
2011-11-18 14:55:06 |
By :
narubet |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ตอบความคิดเห็นที่ : 13 เขียนโดย : narubet เมื่อวันที่ 2011-11-18 14:55:06
รายละเอียดของการตอบ ::
Code (PHP)
//####################################################################################
// ตัวแปรอื่นๆ
$ThaiMonth=array("ม.ค.","ก.พ.","มี.ค.","เม.ย.","พ.ค.","มิ.ย.","ก.ค.","ส.ค.","ก.ย.","ต.ค.","พ.ย.","ธ.ค.");
$tmpdate= date("Y-m-d H:i:s");
$putdate=date("Y-m-d");
$ipaddress=$REMOTE_ADDR;
$puttime=date("H:i:s");
|
 |
 |
 |
 |
Date :
2011-11-18 15:05:35 |
By :
kikapu2629 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ลองดู time zone ที่เครื่องครับ ว่าเป็น + 07 bangkok hanoi jakarta หรือเปล่า
|
 |
 |
 |
 |
Date :
2011-11-18 15:13:15 |
By :
narubet |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
คือมันไม่เจอรูปนะครับ เพราะพาธของรูปผิด มันเลย getimagesize ไม่ได้แนะนำให้มันโชว์รูปมาก่อนว่าดชว์รูปได้ไหมแล้วค่อยหาขนาดครับ หรือไม่ก็สั่งให้ดชว์ พาธที่เก็บรูปดูว่าถูกไหม
|
 |
 |
 |
 |
Date :
2011-11-18 15:49:07 |
By :
narubet |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
มันคืออะไรคับ บอกหน่อย
Warning: Cannot modify header information - headers already sent by (output started at C:\AppServ\www\rs\index.php:1) in C:\AppServ\www\rs\index.php on line 12
Warning: include() [function.include]: Failed opening '' for inclusion (include_path='.;C:\php5\pear') in C:\AppServ\www\rs\index.php on line 27
|
 |
 |
 |
 |
Date :
2012-12-04 20:28:34 |
By :
kanti |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|