PHP Installation
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Installation

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old July 22nd, 2004, 01:49 PM
salma salma is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: uk
Posts: 1 salma User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
help i am a newbie

PHP:
example
<?
$dat_base_path="/var/www/html/san/platinums";
$dat_base_url="http://168.0.2/san/platinums";
$dat_dbhost="localhost";
$dat_dbuser="root";
$dat_dbpasswd="";
$dat_dbname="platinumtest";
$dat_table_prefix="platinum_1_";
?>

i'm confused
my files are kept in public_html so how aint surewhat to put in dat_base_path, dat_base_url

somebody please help

Reply With Quote
  #2  
Old July 22nd, 2004, 06:21 PM
dasnov dasnov is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 157 dasnov User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: help i am a newbie

Hmm... you dont really need all that information, you just need the db name, username and password to log in


BTW this is in the installation section.

Reply With Quote
  #3  
Old July 22nd, 2004, 08:27 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: help i am a newbie

Warning: main(/include/public_html/common.php): failed to open stream: No such file or directory in /home2/xclusive/public_html/index.php on line 7

Warning: main(): Failed opening '/include/public_html/common.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home2/xclusive/public_html/index.php on line 7

Warning: main(/include/public_html/table_file): failed to open stream: No such file or directory in /home2/xclusive/public_html/index.php on line 9

Warning: main(): Failed opening '/include/public_html/table_file' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home2/xclusive/public_html/index.php on line 9

Warning: main(/include/public_html/doc_head.php): failed to open stream: No such file or directory in /home2/xclusive/public_html/index.php on line 11

how do l fix his problm

Reply With Quote
  #4  
Old July 22nd, 2004, 09:22 PM
dasnov dasnov is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 157 dasnov User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: RE: help i am a newbie


Quote:
how do l fix his problm

Post the coding, and I will try to help.

Reply With Quote
  #5  
Old July 22nd, 2004, 09:47 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: help i am a newbie

exactly what coding do you need

this is the www.xclusive-collection.com temp just trying to figure out how to work my template

Reply With Quote
  #6  
Old July 23rd, 2004, 12:02 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: help i am a newbie


i aint sure is his what you waned to see index.pp code

php Code:
Original - php Code
  1.  
  2. <?php
  3.  
  4. ini_set("session.auto_start","1");
  5.  
  6. require("./admin/config.php");
  7.  
  8. include("$include_path/common.php");
  9.  
  10. include("$include_path/$table_file");
  11.  
  12. include("$include_path/doc_head.php");
  13.  
  14. include("$include_path/styles.php");
  15.  
  16.  
  17.  
  18. global $HTTP_POST_VARS,$HTTP_GET_VARS,$HTTP_SESSION_VARS
  19.  
  20. global $_SESSION;
  21.  
  22. if ($HTTP_POST_VARS!="")
  23.     $_POST=$HTTP_POST_VARS;
  24.  
  25. if ($HTTP_GET_VARS!="")
  26.     $_GET=$HTTP_GET_VARS;
  27.  
  28. if ($HTTP_SESSION_VARS!="")
  29.     $_SESSION=$HTTP_SESSION_VARS;
  30.  
  31.  
  32. // echo " session id ".session_id();
  33.  
  34. if (empty($_GET['v']) && empty($_GET['i']) && empty($_GET['s']) && empty($_GET['z']))
  35. {
  36.  
  37.     header("Location: $base_url/index2.php");
  38.  
  39. }
  40. else
  41. {
  42.  
  43. IF(isset($_GET['s']))
  44. {
  45.     $_SESSION['visited'] = "";
  46.     session_unregister("visited");
  47.     unlink($base_path."/data/".session_id());
  48. }
  49.  
  50. if(isset($_GET['v'])) convert_single($_GET['v']);
  51.  
  52. $final_output .= <<<FO
  53.  
  54. </head>
  55.  
  56. <body bgcolor="$page_bg_color">
  57.  
  58. <table border="0" cellpadding="0" cellspacing="0" width="$total_width" align="center">
  59.  
  60. <tr>
  61.  
  62.     <td colspan="3" width="100%" valign="bottom">
  63.  
  64.     <table border="0" cellpadding="0" cellspacing="0" width="100%">
  65.  
  66.     <tr>
  67.  
  68.         <td align="right" valign="bottom">
  69.  
  70. FO;
  71.  
  72.  
  73. include ("Ads_new.php");
  74.  
  75.  
  76. $final_output .= <<<FO
  77.  
  78.         </td>
  79.  
  80.     </tr>
  81.  
  82.     </table>
  83.  
  84.     </td>
  85.  
  86. </tr>
  87.  
  88. <tr>
  89.  
  90. <td width="$left_col_width" valign="top">
  91.  
  92. FO;
  93.  
  94. // include_once("$include_path/common.php");
  95.  
  96.  
  97. include("$include_path/left.php");
  98.  
  99.  
  100.  
  101. $final_output .= <<<FO
  102.  
  103. </td>
  104.  
  105. <td width="$main_col_width" valign="top">
  106.  
  107. <table cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
  108.  
  109. FO;
  110.  
  111.  
  112.  
  113. $final_output .= <<<FO
  114.  
  115. <tr>
  116.  
  117. <td align="left" valign="top">
  118.  
  119. FO;
  120.  
  121.  
  122.  
  123. if(isset($_GET['s'])){
  124.  
  125.     if(($_GET['s'] > 0) || $_GET['s'] == "m" || $_GET['s'] == "f"){
  126.  
  127.         $_SESSION['show'] = $_GET['s'];
  128.         $show=$_GET['s'];
  129.         session_register("show");
  130.            
  131.         header("Location: $base_url/?z=1");
  132.  
  133.         exit();
  134.  
  135.     }
  136.  
  137.     if($_GET['s'] == -1){
  138.  
  139.         unset($_SESSION['show']);
  140.         session_unregister("show");
  141.  
  142.         header("Location: $base_url/?z=1");
  143.  
  144.         exit();
  145.  
  146.     }
  147.  
  148. }
  149.  
  150.  
  151.  
  152. $and = "";
  153.  
  154. // $copy=templates("copyrights");
  155. //include("cp.php");
  156.  
  157. if(isset($_SESSION['show'])){
  158.  
  159.  
  160.  
  161.     switch($_SESSION['show']){
  162.  
  163.         case "m":
  164.  
  165.             $and = "and ( " . get_gender_types_sql("m") . ")";
  166.  
  167.             break;
  168.  
  169.         case "f":
  170.  
  171.             $and = "and ( " . get_gender_types_sql("f") . ")";
  172.  
  173.             break;
  174.  
  175.         default :
  176.  
  177.             $and = "and user_type = " . $_SESSION['show'];
  178.  
  179.     }
  180.  
  181. }
  182.  
  183. $ids=array();
  184. $ids=read_file($base_path, session_id());
  185. if (count($ids)>=1)
  186.    $_SESSION['visited']=$ids;
  187. else
  188.    $_SESSION['visited']="";
  189.