הרשם שאלות ותשובות רשימת חברים לוח שנה הודעות מהיום

חזור   הוסטס - פורום אחסון האתרים הגדול בישראל > עיצוב גראפי, תכנות על כל שפותיו וקידום ושיווק אתרים > פורום תיכנות

   
|!|

השב
 
כלים לאשכול תצורת הצגה
ישן 08-10-07, 18:56   # 1
uploa
חבר וותיק
 
מיני פרופיל
תאריך הצטרפות: Apr 2007
הודעות: 1,250
שלח הודעה באמצעות ICO אל uploa

uploa לא מחובר  

האתר לא מתחבר למסד נתונים

הדגמה- uploa.sam.siz.co.il/setup
למה זה לא מתחבר? זה אמור לעלות דף משלי, ובלי קשר למסד נתונים. מאוד מוזר שזה לא נכנס..
__________________
Online Games | | Funny Facebook Likes
  Reply With Quote
ישן 08-10-07, 19:10   # 2
Cream
חבר מתקדם
 
Cream's Avatar
 
מיני פרופיל
תאריך הצטרפות: Apr 2007
מיקום: ראשון לציון
גיל: 39
הודעות: 577
שלח הודעה באמצעות ICO אל Cream שלח הודעה באמצעות MSN אל Cream Send a message via Skype™ to Cream

Cream לא מחובר  

תציג קוד או משהו...זה יכול להיות אלף ואחד סיבות... מה אנחנו אמורים לנחש מה הקוד שלך?
  Reply With Quote
ישן 08-10-07, 19:14   # 3
uploa
חבר וותיק
 
מיני פרופיל
תאריך הצטרפות: Apr 2007
הודעות: 1,250
שלח הודעה באמצעות ICO אל uploa

uploa לא מחובר  

אני מדבר עכשיו על משהו אחר, שעובד בשרתים אחרים.. הנה הקוד של מה שאני רוצה.
ציטוט:
<?php
ob_start();
error_reporting(0);
require_once('../includes/connect.php');
?>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="../includes/sciurus.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="95&#37;" align="center">
<tr>
<td width="66%" class="title"><div align="center">Sciurus Hosting Panel</div></td>
</tr>
<tr>
<td class="general_center"><a href="http://www.sciurus.me.uk" target="_blank">http://www.sciurus.me.uk</a></td>
</tr>
<tr>
<td class="subtitle"><br>
SHP v2.03 - Initial Install Only<br>
Database Upload Script</td>
</tr>
</table>
<form name="form1" method="post" action="">
<table width="95%" align="center">
<tr>
<td width="116%" class="general"><strong><br>
READ THIS PAGE BEFORE CONTINUING</strong></td>
</tr>
<tr>
<td class="general"><p><br>
Before running this script please ensure that you have read the INSTALL_GUIDE.TXT<br>
<br>
This script will NOT create any files or folders on your server, it
will ask you to provide a NAME, USERNAME (for logging in) and PASSWORD
for your SHP Admin, it will then upload these along with some defaults
to the database you specified in CONNECT.PHP which you can then edit
via the Admin Panel.</p></td>
</tr>
<tr>
<td class="general_center"><strong><font color="#FF0000"><br>
</font></strong><font color="#FF0000"><u><strong>IMPORTANT</strong></u><br>
<br>
In order for SHP to function correctly you MUST ensure the files and folders
mentioned in the install guide ARE writeable</font><br> <br> </td>
</tr>
<tr>
<td class="general_center"><table width="70%" align="center">
<tr valign="top" class="general_center">
<td width="50%"> <table>
<tr class="small">
<td colspan="3"><strong>SYSTEM CONFIGURATION</strong></td>
</tr>
<tr class="small">
<td>&nbsp;</td>
<td><strong>Required</strong></td>
<td><strong>Actual</strong></td>
</tr>
<tr class="small">
<td><div align="left">Safemode</div></td>
<td>Off</td>
<td>
<?php $safe = strtolower(ini_get('safe_mode'));
if ($safe = 'off'){
echo '<font color="green"><b>Off</b></font>';
}else{
echo '<font color="red"><b>On</b></font>';
}
?>
</td>
</tr>
<tr class="small">
<td><div align="left">File Uploads</div></td>
<td>On</td>
<td>
<?php $file_ul = ini_get('file_uploads');
if ($file_ul = 0){
echo '<font color="red"><b>Off</b></font>';
}else{
echo '<font color="green"><b>On</b></font>';
}
?>
</td>
</tr>
<tr class="small">
<td><div align="left">Magic Quotes</div></td>
<td>Off</td>
<td>
<?php $magic = ini_get('magic_quotes_gpc');
if ($magic == 0){
echo '<font color="green"><b>Off</b></font>';
}else{
echo "<font color=\"red\"><b>On</b></font>";
}
?>
</td>
</tr>
<tr class="small">
<td><div align="left">Max Upload Size</div></td>
<td>&nbsp;</td>
<td>
<?php $ul_max = ini_get('upload_max_filesize');
if ($ul_max == 0){
echo '<font color="red"><b>Off</b></font>';
}else{
echo "<font color=\"green\"><b>$ul_max</b></font>";
}
?>
</td>
</tr>
<tr class="small">
<td><div align="left">MySql</div></td>
<td>On</td>
<td>
<?php
if(function_exists('mysql_connect')){
echo '<font color="green"><b>Available</b></font>';
}else{
echo '<font color="red"><b>Unavailable</b></font>';
}
?>
</td>
</tr>
<tr class="small">
<td><div align="left">PHP Version</div></td>
<td>&gt; 4.0 </td>
<td>
<?php
$phpver = phpversion();
echo $phpver < "4.0" ? "<b><font color=\"red\">$phpver</font></b>" : "<b><font color=\"green\">$phpver</font></b>";?>
</td>
</tr>
<tr class="small">
<td><div align="left">Session Autostart</div></td>
<td>Off</td>
<td>
<?php $sess_as = ini_get('session.auto_start');
if ($sess_as = 0){
echo '<font color="red"><b>On</b></font>';
}else{
echo '<font color="green"><b>Off</b></font>';
}
?>
</td>
</tr>
<tr class="small">
<td><div align="left">Sessions Path</div></td>
<td>&nbsp;</td>
<td>
<?php $sess_path = ini_get('session.save_path');
if (!$sess_path){
echo '<font color="red"><b>NOT Set</b></font>';
}else{
echo "<font color=\"green\"><b>$sess_path</b></font>";
}
?>
</td>
</tr>
<tr class="small">
<td><div align="left">Sessions Path Writeable&nbsp;&nbsp;&nbsp;</div></td>
<td>Writeable</td>
<td>
<?php
if (is_writable($sess_path)){
echo '<font color="green"><b>Writeable</b></font>';
}else{
echo '<font color="red"><b>NOT Writeable</b></font>';
}
?>
</td>
</tr>
<tr class="small">
<td><div align="left">URL fopen</div></td>
<td>On</td>
<td>
<?php $url_fo = ini_get('url_fopen');
if ($url_fo = 0){
echo '<font color="red"><b>Off</b></font>';
}else{
echo '<font color="green"><b>On</b></font>';
}
?>
</td>
</tr>
<tr class="small">
<td>&nbsp;</td>
<td><strong><br>
Recommended</strong></td>
<td><strong><br>
Actual</strong></td>
</tr>
<tr class="small">
<td><div align="left">Display Errors</div></td>
<td>Off</td>
<td>
<?php $disp_err = ini_get('display_errors');
if ($disp_err == 0){
echo '<font color="green"><b>Off</b></font>';
}else{
echo '<font color="red"><b>On</b></font>';
}
?>
</td>
</tr>
<tr class="small">
<td><div align="left">Display Startup Errors</div></td>
<td>Off</td>
<td>
<?php $disp_up_err = ini_get('display_startup_errors');
if ($disp_up_err == 0){
echo '<font color="green"><b>Off</b></font>';
}else{
echo '<font color="red"><b>On</b></font>';
}
?>
</td>
</tr>
<tr class="small">
<td><div align="left">Registers Global</div></td>
<td>Off</td>
<td>
<?php $reg_gl = ini_get('register_globals');
if ($reg_gl = 0){
echo '<font color="red"><b>On</b></font>';
}else{
echo '<font color="green"><b>Off</b></font>';
}
?>
</td>
</tr>
</table></td>
<td width="50%"> <table align="center">
<tr class="small">
<td colspan="2"><div align="center"><strong>SHP FILES &amp;
FOLDERS</strong></div></td>
</tr>
<tr class="small">
<td>&nbsp;</td>
<td> <div align="center"><strong>Writeable</strong></div></td>
</tr>
<tr class="small">
<td><div align="left">shp root folder</div></td>
<td>
<?php
if (is_writable('../') == true){
echo "<font color='#009900'><b>Passed<b></font>";
}else{
echo "<font color='##FF0000'><b>Failed<b></font>";
}
?>
</td>
</tr>
<tr class="small">
<td><div align="left">admin</div></td>
<td>
<?php
if (is_writable('../admin') == true){
echo "<font color='#009900'><b>Passed<b></font>";
}else{
echo "<font color='##FF0000'><b>Failed<b></font>";
}
?>
</td>
</tr>
<tr class="small">
<td><div align="left">admin/index.html</div></td>
<td>
<?php
if (is_writable('../admin/index.html') == true){
echo "<font color='#009900'><b>Passed<b></font>";
}else{
echo "<font color='##FF0000'><b>Failed<b></font>";
}
?>
</td>
</tr>
<tr class="small">
<td><div align="left">includes</div></td>
<td>
<?php
if (is_writable('../includes') == true){
echo "<font color='#009900'><b>Passed<b></font>";
}else{
echo "<font color='##FF0000'><b>Failed<b></font>";
}
?>
</td>
</tr>
<tr class="small">
<td><div align="left">includes/ads.inc</div></td>
<td>
<?php
if (is_writable('../includes/ads.inc') == true){
echo "<font color='#009900'><b>Passed<b></font>";
}else{
echo "<font color='##FF0000'><b>Failed<b></font>";
}
?>
</td>
</tr>
<tr class="small">
<td><div align="left">includes/news.php</div></td>
<td>
<?php
if (is_writable('../includes/news.php') == true){
echo "<font color='#009900'><b>Passed<b></font>";
}else{
echo "<font color='##FF0000'><b>Failed<b></font>";
}
?>
</td>
</tr>
<tr class="small">
<td><div align="left">includes/sciurus.css&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></td>
<td>
<?php
if (is_writable('../includes/sciurus.css') == true){
echo "<font color='#009900'><b>Passed<b></font>";
}else{
echo "<font color='##FF0000'><b>Failed<b></font>";
}
?>
</td>
</tr>
<tr class="small">
<td><div align="left">includes/terms.php</div></td>
<td>
<?php
if (is_writable('../includes/terms.php') == true){
echo "<font color='#009900'><b>Passed<b></font>";
}else{
echo "<font color='##FF0000'><b>Failed<b></font>";
}
?>
</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td class="general_center"><br> <input name="install" type="submit" id="install" value="Install Database">
<?php
if(isset($_POST['install'])){
header("Location: db_setup2.php");
}
?>
<br> <br> <br> <br> </td>
</tr>
</table>
</form>
</body>
</html>
__________________
Online Games | | Funny Facebook Likes
  Reply With Quote
ישן 08-10-07, 23:48   # 4
miniature
חבר וותיק
 
מיני פרופיל
תאריך הצטרפות: Oct 2005
הודעות: 1,754

miniature לא מחובר  

מה הקוד ב:
ציטוט:
../includes/connect.php
?..
כי אם לא תביא לנו את זה איך נדע איך התחברת? הרי הבעיה היא בהתחברות ולא בקוד שהראת..
__________________
יואב.

דרכים ליצירת קשר:

אימייל: thebigfire@walla.co.il
הודעה פרטית
  Reply With Quote
ישן 09-10-07, 10:36   # 5
AxBx
חבר חדש
 
מיני פרופיל
תאריך הצטרפות: Oct 2007
הודעות: 24

AxBx לא מחובר  

הנה לך קוד שמתחבר למסד:
PHP קוד:
<?php
$connection 
mysql_connect("localhost""name_user "password");
$db = mysql_select_db("
name_mysql");
?>
רק תשנה לפרטים שלך תהנה.
  Reply With Quote
השב

חברים פעילים הצופים באשכול זה: 1 (0 חברים ו- 1 אורחים)
 


חוקי פירסום
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is מופעל
סמיילים הם מופעל
[IMG] קוד מופעל
קוד HTML מכובה

קפיצה לפורום


כל הזמנים הם GMT +2. הזמן כעת הוא 08:23.

מופעל באמצעות VBulletin גרסה 3.8.6
כל הזכויות שמורות ©
כל הזכויות שמורות לסולל יבוא ורשתות (1997) בע"מ