הוסטס - פורום אחסון האתרים הגדול בישראל

הוסטס - פורום אחסון האתרים הגדול בישראל (https://hosts.co.il/forums/index.php)
-   תחזוק שרתים ושירותי רשת נוספים (https://hosts.co.il/forums/forumdisplay.php?f=29)
-   -   עזרה - 4 דברים, תמורה כספית (https://hosts.co.il/forums/showthread.php?t=67415)

amitbec 16-09-08 04:26

עזרה - 4 דברים, תמורה כספית
 
4 דברים שאני צריך , תמורה כספית.

1)
להתקין שרת TeamSpeak על מערכת FreeBSD
2)
להתקין שרת Apache על מערכת FreeBSD
3)
אתר באחסון א' (linux-DA)
יתחבר למסד נתונים שבאחסון ב' (mssql)
4)
להגיד לי איך עשיתם את 3 הדברים הנ"ל.

תמורה כספית לעוזרים, 120 ש"ח.
להתקשר אך ורק אם אתה יודע את 3 הדברים הנ"ל.

0504888058

SDF 30-09-08 16:02

1. אני מניח שאתה מתכוון לשרת ולא ללקוח:
קוד:


cd /usr/ports/audio/teamspeak_server/ && make install clean

2. אפאצי'

קוד:


cd /usr/ports/www/apache22/ && make install clean

3.
PHP קוד:

/*
** Connect to database:
*/
 
// Connect to the database (host, username, password)
$con mssql_connect('ihsun2.someserver.com','user','pass'
    or die(
'Could not connect to the server!');
 
// Select a database:
mssql_select_db('Northwind'
    or die(
'Could not select a database.');
 
// Example query: (TOP 10 equal LIMIT 0,10 in MySQL)
$SQL "SELECT TOP 10 * FROM ExampleTable ORDER BY ID ASC";
 
// Execute query:
$result mssql_query($SQL
    or die(
'A error occured: ' mysql_error());
 
// Get result count:
$Count mssql_num_rows($result);
print 
"Showing $count rows:<hr/>\n\n";
 
// Fetch rows:
while ($Row mssql_fetch_assoc($result)) {
 
    print 
$Row['Fieldname'] . "\n";
 
}
 
mssql_close($con); 


snirk 30-09-08 16:07

ציטוט:

נכתב במקור על ידי SDF (פרסם 670245)
1. אני מניח שאתה מתכוון לשרת ולא ללקוח:
קוד:


cd /usr/ports/audio/teamspeak_server/ && make install clean

2. אפאצי'

קוד:


cd /usr/ports/www/apache22/ && make install clean

3.
PHP קוד:

/*
** Connect to database:
*/
 
// Connect to the database (host, username, password)
$con mssql_connect('ihsun2.someserver.com','user','pass'
    or die(
'Could not connect to the server!');
 
// Select a database:
mssql_select_db('Northwind'
    or die(
'Could not select a database.');
 
// Example query: (TOP 10 equal LIMIT 0,10 in MySQL)
$SQL "SELECT TOP 10 * FROM ExampleTable ORDER BY ID ASC";
 
// Execute query:
$result mssql_query($SQL
    or die(
'A error occured: ' mysql_error());
 
// Get result count:
$Count mssql_num_rows($result);
print 
"Showing $count rows:<hr/>\n\n";
 
// Fetch rows:
while ($Row mssql_fetch_assoc($result)) {
 
    print 
$Row['Fieldname'] . "\n";
 
}
 
mssql_close($con); 



לגבי ההתחברות לשרת מרוחק... יש צורך ששרת ב' יאשר התחברויות חיצוניות.

Sagiii 30-09-08 16:39

הנושא הוקפץ, ננעל.


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

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