تبلیغات :
ماهان سرور
آکوستیک ، فوم شانه تخم مرغی ، پنل صداگیر ، یونولیت
دستگاه جوجه کشی حرفه ای
فروش آنلاین لباس کودک
خرید فالوور ایرانی
خرید فالوور اینستاگرام
خرید ممبر تلگرام

[ + افزودن آگهی متنی جدید ]




نمايش نتايج 1 به 7 از 7

نام تاپيک: مشکل با wampserver

  1. #1
    اگه نباشه جاش خالی می مونه IMAN SD's Avatar
    تاريخ عضويت
    Jan 2008
    پست ها
    245

    9 مشکل با wampserver

    دوستان یه سوال دارم،با وجود اینکه wampserver رو نصب کردم و تمام سرویس هاشم روشن ولی* با این وجود صفحه ای که توی dreamweaver طراحی می*کنم رو نشون نمیده،مشکل چیه؟

  2. #2
    اگه نباشه جاش خالی می مونه mosi2007's Avatar
    تاريخ عضويت
    Jul 2007
    محل سكونت
    tehran
    پست ها
    271

    پيش فرض

    چه پیغامی می ده
    بعد باید فایل ها را باید تو پوشه wamp/www سیو کنی بعد کلید f12 را از دریم ویور بزنی و تموم
    اگر نشون نداد به احتمال زیاد ایراد از wamp است شاید با یه برنامه ای conflict کرده مثل skype یا یه سرور دیگه ای

  3. این کاربر از mosi2007 بخاطر این مطلب مفید تشکر کرده است


  4. #3
    اگه نباشه جاش خالی می مونه IMAN SD's Avatar
    تاريخ عضويت
    Jan 2008
    پست ها
    245

    پيش فرض

    دوست عزیز php رو داخل یک کادر نشون میده تو برنامه وقتی f12 رو میزنم پیغام زیر رو میده.در ضمن من بعضی وقتا از skype هم استفاده میکنم...


    Notice: Undefined index: HTTP_REFERER in C:\wamp\www\news\admin_cp.php on line 5
    Table 'news.news' doesn't exist

  5. #4
    اگه نباشه جاش خالی می مونه mosi2007's Avatar
    تاريخ عضويت
    Jul 2007
    محل سكونت
    tehran
    پست ها
    271

    پيش فرض

    دوست عزیز php رو داخل یک کادر نشون میده تو برنامه وقتی f12 رو میزنم پیغام زیر رو میده.در ضمن من بعضی وقتا از skype هم استفاده میکنم...


    Notice: Undefined index: HTTP_REFERER in C:\wamp\www\news\admin_cp.php on line 5
    Table 'news.news' doesn't exist
    به احتمال زیاد کدت ایراد داره چون اگه ومپ سرورت کار نمیکرد این پیغام را نمیداد ایراد ماله خطه 5 میباشد
    میخای کدت را بزار اینجا تا ببینیم ایراد ماله کدت میباشه یا نه
    یا اصلا یه کد دیگه ای بنویس ببین اجرا میشه یا نه

  6. این کاربر از mosi2007 بخاطر این مطلب مفید تشکر کرده است


  7. #5
    اگه نباشه جاش خالی می مونه IMAN SD's Avatar
    تاريخ عضويت
    Jan 2008
    پست ها
    245

    پيش فرض

    <?php require_once('Connections/cn.php'); ?>
    <?php
    $currentPage = $_SERVER["PHP_SELF"];
    $ip =$_SERVER["REMOTE_ADDR"];
    $refer = $_SERVER["HTTP_REFERER"];
    $time = date("y:m:d");
    mysql_select_db($database_cn, $cn);
    $insert1 = sprintf("INSERT `counter`
    (ip,refer,date)
    VALUES
    ('$ip','$refer','$time')");
    mysql_query($insert1, $cn) or die(mysql_error());
    ?>
    <?php
    $maxRows_rs1 = 2;
    $pageNum_rs1 = 0;
    if (isset($_GET['pageNum_rs1'])) {
    $pageNum_rs1 = $_GET['pageNum_rs1'];
    }
    $startRow_rs1 = $pageNum_rs1 * $maxRows_rs1;

    mysql_select_db($database_cn, $cn);
    $query_rs1 = "SELECT * FROM news ORDER BY id DESC";
    $query_limit_rs1 = sprintf("%s LIMIT %d, %d", $query_rs1, $startRow_rs1, $maxRows_rs1);
    $rs1 = mysql_query($query_limit_rs1, $cn) or die(mysql_error());
    $row_rs1 = mysql_fetch_assoc($rs1);

    if (isset($_GET['totalRows_rs1'])) {
    $totalRows_rs1 = $_GET['totalRows_rs1'];
    } else {
    $all_rs1 = mysql_query($query_rs1);
    $totalRows_rs1 = mysql_num_rows($all_rs1);
    }
    $totalPages_rs1 = ceil($totalRows_rs1/$maxRows_rs1)-1;

    $maxRows_rs2 = 10;
    $pageNum_rs2 = 0;
    if (isset($_GET['pageNum_rs2'])) {
    $pageNum_rs2 = $_GET['pageNum_rs2'];
    }
    $startRow_rs2 = $pageNum_rs2 * $maxRows_rs2;

    mysql_select_db($database_cn, $cn);
    $query_rs2 = "SELECT id, title FROM news ORDER BY id DESC";
    $query_limit_rs2 = sprintf("%s LIMIT %d, %d", $query_rs2, $startRow_rs2, $maxRows_rs2);
    $rs2 = mysql_query($query_limit_rs2, $cn) or die(mysql_error());
    $row_rs2 = mysql_fetch_assoc($rs2);

    if (isset($_GET['totalRows_rs2'])) {
    $totalRows_rs2 = $_GET['totalRows_rs2'];
    } else {
    $all_rs2 = mysql_query($query_rs2);
    $totalRows_rs2 = mysql_num_rows($all_rs2);
    }
    $totalPages_rs2 = ceil($totalRows_rs2/$maxRows_rs2)-1;

    mysql_select_db($database_cn, $cn);
    $query_rs3 = "SELECT title, adress FROM link ORDER BY id ASC";
    $rs3 = mysql_query($query_rs3, $cn) or die(mysql_error());
    $row_rs3 = mysql_fetch_assoc($rs3);
    $totalRows_rs3 = mysql_num_rows($rs3);

    mysql_select_db($database_cn, $cn);
    $query_rs4 = "SELECT * FROM counter WHERE `date` = '$time'";
    $rs4 = mysql_query($query_rs4, $cn) or die(mysql_error());
    $row_rs4 = mysql_fetch_assoc($rs4);
    $totalRows_rs4 = mysql_num_rows($rs4);

    mysql_select_db($database_cn, $cn);
    $query_rs5 = "SELECT * FROM counter";
    $rs5 = mysql_query($query_rs5, $cn) or die(mysql_error());
    $row_rs5 = mysql_fetch_assoc($rs5);
    $totalRows_rs5 = mysql_num_rows($rs5);

    mysql_select_db($database_cn, $cn);
    $query_Recordset1 = "SELECT * FROM `admin`";
    $Recordset1 = mysql_query($query_Recordset1, $cn) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    $totalRows_Recordset1 = mysql_num_rows($Recordset1);

    $queryString_rs1 = "";
    if (!empty($_SERVER['QUERY_STRING'])) {
    $params = explode("&", $_SERVER['QUERY_STRING']);
    $newParams = array();
    foreach ($params as $param) {
    if (stristr($param, "pageNum_rs1") == false &&
    stristr($param, "totalRows_rs1") == false) {
    array_push($newParams, $param);
    }
    }
    if (count($newParams) != 0) {
    $queryString_rs1 = "&" . htmlentities(implode("&", $newParams));
    }
    }
    $queryString_rs1 = sprintf("&totalRows_rs1=%d%s", $totalRows_rs1, $queryString_rs1);
    ?>
    <?php
    // *** Validate request to login to this site.
    if (!isset($_SESSION)) {
    session_start();
    }

    $loginFormAction = $_SERVER['PHP_SELF'];
    if (isset($_GET['accesscheck'])) {
    $_SESSION['PrevUrl'] = $_GET['accesscheck'];
    }

    if (isset($_POST['text_user'])) {
    $loginUsername=$_POST['text_user'];
    $password=$_POST['text_pass'];
    $MM_fldUserAuthorization = "";
    $MM_redirectLoginSuccess = "admin_cp.php";
    $MM_redirectLoginFailed = "admin_retry.php";
    $MM_redirecttoReferrer = false;
    mysql_select_db($database_cn, $cn);

    $LoginRS__query=sprintf("SELECT user, pass FROM admin WHERE user='%s' AND pass='%s'",
    get_magic_quotes_gpc() ? $loginUsername : addslashes($loginUsername), get_magic_quotes_gpc() ? $password : addslashes($password));

    $LoginRS = mysql_query($LoginRS__query, $cn) or die(mysql_error());
    $loginFoundUser = mysql_num_rows($LoginRS);
    if ($loginFoundUser) {
    $loginStrGroup = "";

    //declare two session variables and assign them
    $_SESSION['MM_Username'] = $loginUsername;
    $_SESSION['MM_UserGroup'] = $loginStrGroup;

    if (isset($_SESSION['PrevUrl']) && false) {
    $MM_redirectLoginSuccess = $_SESSION['PrevUrl'];
    }
    header("Location: " . $MM_redirectLoginSuccess );
    }
    else {
    header("Location: ". $MM_redirectLoginFailed );
    }
    }
    ?>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title>Iranian News</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <style>
    TD {font-family:Verdana;font-size:11}
    .txtL {font-family:Verdana;font-size:10;color:#000B8D;}
    .copy {font-family:Verdana;font-size:9;color:#FFFFFF;}
    .style3 {color: #FFFFFF}
    body,td,th {
    font-size: 11px;
    }
    a:link {
    text-decoration: none;
    }
    a:visited {
    text-decoration: none;
    }
    a:hover {
    text-decoration: none;
    }
    a:active {
    text-decoration: none;
    }
    .style4 {
    font-family: Tahoma, "Times New Roman";
    font-size: 12px;
    }
    .style5 {font-size: 12px}
    </style>
    </head>

    <body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0" background="images/bg.jpg">
    <table border="0" cellpadding="0" cellspacing="0" align="center" height="100%">
    <tr><td valign="top" colspan="4"><img src="images/main.jpg" border="0"></td>
    <td rowspan="4" valign="top" background="images/shadwbg.jpg"><img src="images/shadw.jpg" border="0"></td></tr>
    <tr><td valign="top" colspan="4"><img src="images/m0.jpg" border="0"><a href=""><img src="images/menu1.jpg" border="0"></a><a href="about.php"><img src="images/menu2.jpg" border="0"></a><a href="contact.php"><img src="images/menu4.jpg" border="0"></a><a href="news.php"><img src="images/menu3.jpg" border="0"></a><a href="index.php"><img src="images/menu5.jpg" border="0"></a></td>
    </tr>
    <tr>
    <td valign="top" height="100%">
    <table border="0" cellpadding="0" cellspacing="0" width="218" height="100%">
    <tr>
    <form action="">
    <td background="images/bg2.jpg" align="right">&nbsp;</td>
    <td valign="top" background="images/bg2.jpg" align="right"><img src="images/L1.gif" border="0"></td>
    </form>
    </tr>
    <tr><td valign="top" colspan="2"><img src="images/cap1.jpg" border="0"></td></tr>
    <tr>
    <td valign="top" colspan="2" background="images/bgL.jpg" width="218" height="276" style="padding-left:10px;padding-top:5px;padding-right:10px;"><table border="0" align="center">

    <?php do { ?>
    <tr>
    <td><div align="center"><a href="news_view.php?id=<?php echo $row_rs2['id']; ?>" class="style4"><?php echo $row_rs2['title']; ?></a></div></td>
    </tr><?php } while ($row_rs2 = mysql_fetch_assoc($rs2)); ?>
    <tr>

    <td width="163"><div align="center"><hr></div></td>
    </tr>

    </table>
    <table width="172" border="0" align="center">


    <tr>
    <td><div align="center" class="style4">وب سایت های دیگر </div></td>
    </tr><?php do { ?>
    <tr>
    <td width="166"><div align="center"><a href="<?php echo $row_rs3['adress']; ?>" target="_blank" class="style4"><?php echo $row_rs3['title']; ?></a></div></td>
    </tr>
    <tr>
    <td><div align="center"><a href="<?php echo $row_rs3['adress']; ?>" target="_blank"></a><hr></div></td>
    </tr>
    <?php } while ($row_rs3 = mysql_fetch_assoc($rs3)); ?>
    </table>
    <table width="200" border="0">
    <tr>
    <td width="108"><div align="center"><span class="style5"><?php echo $time ; ?></span></div></td>
    <td width="82"><div align="right"><span class="style4">امروز</span></div></td>
    </tr>
    <tr>
    <td><div align="center"><span class="style5"></span><?php echo $totalRows_rs4;?></div></td>
    <td><div align="right"><span class="style4">بازدیدهای امروز </span></div></td>
    </tr>
    <tr>
    <td><div align="center"><span class="style5"></span><?php echo $totalRows_rs5;?></div></td>
    <td><div align="right"><span class="style4">کل بازدیدها </span></div></td>
    </tr>
    <tr>
    <td><div align="center"><span class="style5"><?php echo $ip ; ?></span></div></td>
    <td><div align="right"><span class="style4">آی پی شما </span></div></td>
    </tr>
    </table>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p></td>
    </tr>
    <tr>
    <td valign="top" height="100%" background="images/bg1.gif" colspan="2" style="padding-left:40px;padding-top:20px;">
    <td> </tr>
    <tr><td valign="top" colspan="2"><img src="images/lineB.gif" border="0"></td></tr>
    </table> </td>
    <td background="images/bg5.gif"><img src="images/spacer.gif" border="0" width="4"></td>
    <td valign="top" height="100%">
    <table border="0" cellpadding="0" cellspacing="0" width="513" height="100%">
    <tr><td valign="top"><img src="images/cap2.gif" border="0"></td></tr>
    <tr>
    <td valign="top" background="images/bg3.gif" style="padding-left:10px;padding-right:10px;padding-bottom:5px;"><?php do {
    $title=$row_rs1['title'];
    $text=$row_rs1['text'];
    $catname = $row_rs1['catname'];
    $id = $row_rs1['id'];
    $date = $row_rs1['date'];?><table dir="rtl" width="420" height="140" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFCC00" >
    <!-- MSTableType="layout" -->
    <tr>
    <td valign='top'>&nbsp;</td>
    <td valign='top' align='right' height='12'><p align='left'></td>
    </tr>
    <tr>
    <td valign="middle" height="17" bgcolor="#000000" colspan="2"><div class="style3" style='text-align: center; font: 11px; text-decoration: none'> <font size="1" face="tahoma"><?php echo $title; ?> </font></div></td>
    </tr>
    <tr>
    <td valign="top" height="95" colspan="2"><div align="center">
    <table width="95%">
    <tr>
    <td><?php echo"<font face='Tahoma' size='1' color='#17416A'>
    <div style='text-align: justify; font: 11px; text-decoration: none'>
    <br>$text

    <a href='news_view.php?id=$id'>
    <font face='tahoma' size='1' color='#17416A' >
    <div style='text-align: left; font: 11px; text-decoration: none'>
    ادامه خبر...
    </div></a>

    </div>
    </font>"; ?> </td>
    </tr>
    </table>
    <form name="form1" method="POST" action="<?php echo $loginFormAction; ?>">
    <label>user name</label>
    <label>
    <input name="text_user" type="text" id="text_user">
    </label>
    <p>
    <label>password
    <input name="text_pass" type="password" id="text_pass">
    </label>
    <label>
    <input name="login" type="submit" id="login" value="login">
    </label>
    </p>
    </form>
    </div></td>
    </tr>
    <tr>
    <td valign='middle' bgcolor='#666666' height='19' colspan='2'><div class="style3" style='text-align: center; font: 11px; text-decoration: none'> <font size="1" face="Tahoma"><?php echo "تاریخ انتشار: $date | کد خبر: $id | بخش مربوطه: $catname"; ?></font></div></td>
    </tr>
    <tr>
    <td valign='bottom' width='14'>&nbsp;</td>
    <td valign='bottom' align='right' width='406' height='16'><p align='left'></td>
    </tr>
    </table>
    <table border="0" width="43%" align="center">
    <tr>
    <td width="23%" align="center"><?php if ($pageNum_rs1 > 0) { // Show if not first page ?>
    <a href="<?php printf("%s?pageNum_rs1=%d%s", $currentPage, 0, $queryString_rs1); ?>"><img src="First.gif" border=0></a>
    <?php } // Show if not first page ?> </td>
    <td width="31%" align="center"><?php if ($pageNum_rs1 > 0) { // Show if not first page ?>
    <a href="<?php printf("%s?pageNum_rs1=%d%s", $currentPage, max(0, $pageNum_rs1 - 1), $queryString_rs1); ?>"><img src="Previous.gif" border=0></a>
    <?php } // Show if not first page ?> </td>
    <td width="23%" align="center"><?php if ($pageNum_rs1 < $totalPages_rs1) { // Show if not last page ?>
    <a href="<?php printf("%s?pageNum_rs1=%d%s", $currentPage, min($totalPages_rs1, $pageNum_rs1 + 1), $queryString_rs1); ?>"><img src="Next.gif" border=0></a>
    <?php } // Show if not last page ?> </td>
    <td width="23%" align="center"><?php if ($pageNum_rs1 < $totalPages_rs1) { // Show if not last page ?>
    <a href="<?php printf("%s?pageNum_rs1=%d%s", $currentPage, $totalPages_rs1, $queryString_rs1); ?>"><img src="Last.gif" border=0></a>
    <?php } // Show if not last page ?> </td>
    </tr>
    </table>
    <?php } while ($row_rs1 = mysql_fetch_assoc($rs1)); ?>
    <p>&nbsp;</p> </td>
    </tr>
    <tr><td valign="top"><img src="images/lineB2.jpg" border="0"></td></tr>
    <tr><td valign="top"><img src="images/cap3.gif" border="0"></td></tr>
    <tr>
    <td valign="top" background="images/bg5.gif" height="100%" style="padding-left:10px;padding-right:20px;padding-top:5px;padding-bottom:5px;"><p></td>
    </tr>
    </table> </td>
    <td background="images/rightS.gif" valign="top"><img src="images/rightS.gif" border="0"></td>
    </tr>
    <tr><td valign="top" background="images/bg5.gif" colspan="4"><img src="images/spacer.gif" border="0" height="5"></td></tr>
    <tr>
    <td colspan="4" background="images/bgBot.gif" height="33" align="center"><div class="copy">&copy; Copyright, YourCompany, 2002</div></td>
    <td valign="top"><img src="images/shadwB.jpg" border="0"></td>
    </tr>
    </table>

    </body>
    </html>
    <?php
    mysql_free_result($rs1);

    mysql_free_result($rs2);

    mysql_free_result($rs3);

    mysql_free_result($rs4);

    mysql_free_result($rs5);

    mysql_free_result($Recordset1);
    ?>

  8. #6
    در آغاز فعالیت takavaronline's Avatar
    تاريخ عضويت
    Jan 2012
    محل سكونت
    همدان
    پست ها
    1

    پيش فرض مشکل وردپرس با ومپ سرور

    سلام
    من wordpress رو توی www ذخیره کردم ولی وقتی ومپ رو باز میکنم مینویسه ((اشکال در ارتباط با پایگاه داده))
    چی کار کنم
    wp-config رو هم درست تنظیم کردم

  9. #7
    اگه نباشه جاش خالی می مونه mosi2007's Avatar
    تاريخ عضويت
    Jul 2007
    محل سكونت
    tehran
    پست ها
    271

    پيش فرض

    دوست عزیز کدت ایراد نداره
    این دستورات را اجرا کن شاید مشکلت حل بشه
    Re: WAMPSERVER - offline (always)
    Posted by: yfastud (Moderator)
    Date: May 08, 2011 03:12PM

    Make sure no other program conflict wamp such as Xampp, phpEasy, IIS, Skype, Zonealarm, firewall/antivirus, NOD32, Eset, any web and/or Remote Desktop related program, such as Teamviewer ...

    IIS and Apache/Wamp are both web server and might conflict in some way, so you have to disable IIS in order for Wamp to work

    Disable IIS in Vista/W7:

    Control Panel, Uninstall Programs, Turn Widows Features On or Off, uncheck Internet Information Services

    Disable IIS in XP:

    Control Panel, Add/Remove Programs, Add/Remove Windows Components, uncheck Internet Information Services (IIS)

    Restart computer, then restart Wamp

    Also, in folder C:\WINDOWS\System32\drivers\etc, open file hosts and delete anything in this file and have only this line below and nothing else

    127.0.0.1 localhost

    If using Skype, go to Tools->Options->Advanced->Connection and uncheck the box "Use 80 and 443 as alternatives for incoming connections". Restart Skype after WAMP. Now you will be able to use both programs at the same time w/o problems.

    Have fun,

    FREE One A Day
    FREE Photo
    FREE Games
    FREE Websites
    FREE Portable GPS
    FREE WAMP Guides

    Options: Reply•Quote
    Re: WAMPSERVER - offline (always)
    Posted by: RobertBIII (---.hou.clearwire-wmx.net)
    Date: May 09, 2011 08:45PM

    That's funny, I finally got WAMPSERVER to go "online" by doing the exact opposite - changing "from all" to "from 127.0.0.1".

    Unfortunately, it doesn't seem as if the services are actually running. MySQL apparently stops and it doesn't seem as if Apache ever starts. When I use explorer to visit [localhost] all I get is the 404 error.

    Any ideas?


    Robert

    P.S. I was running XAMP but uninstalled it and I tried to edit the "host" file under Windows/System32/Drivers but Windows wouldn't let me save any changes. Any help would be greatly appreciated.

    Options: Reply•Quote
    Re: WAMPSERVER - offline (always)
    Posted by: yfastud (Moderator)
    Date: May 10, 2011 03:26AM

    Quote

    I was running XAMP but uninstalled it

    search and delete any related including in registry

    Quote

    I tried to edit the "host" file under Windows/System32/Drivers but Windows wouldn't let me save any changes

    copy hosts file to desktop, edit, save file then copy back to overwrite original file

    Have fun,

    FREE One A Day
    FREE Photo
    FREE Games
    FREE Websites
    FREE Portable GPS
    FREE WAMP Guides

  10. این کاربر از mosi2007 بخاطر این مطلب مفید تشکر کرده است


Thread Information

Users Browsing this Thread

هم اکنون 1 کاربر در حال مشاهده این تاپیک میباشد. (0 کاربر عضو شده و 1 مهمان)

User Tag List

قوانين ايجاد تاپيک در انجمن

  • شما نمی توانید تاپیک ایحاد کنید
  • شما نمی توانید پاسخی ارسال کنید
  • شما نمی توانید فایل پیوست کنید
  • شما نمی توانید پاسخ خود را ویرایش کنید
  •