Jump to content

begeiste

Members
  • Posts

    19
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

begeiste's Achievements

Member

Member (2/5)

0

Reputation

  1. Yes. I have opening and closing php tag.
  2. Hi, I have created a class "friendClass" and tried to echo it. It prints nothing without any errors, not sure what was it going on? Any helps would be appreciated! class friendClass{ //attributes - variable public $name; public $sex; public $title; public $country; //methods - function public function eat(){} public function watch(){} public function drive(){} public function speak(){} } $friend1 = new friendClass; $friend2 = new friendClass; $friend3 = new friendClass; $friend4 = new friendClass; $friend1 -> name = "Bach"; $friend1 -> title = "Muscian"; $friend1 -> sex = "Male"; $friend1 -> country = "Germany"; $friend1 -> eat("Bread"); $friend1 -> speak("German"); $friend1 -> drive("Horse"); $friend1 -> watch("Beethoven"); echo "Name is: ".$friend1->name;
  3. Should I get the id from DB first? For example: $id = $_GET['id'];
  4. Hi, I knew how to make insert into in sql statement as well as delete. But never learned how to update the record on mysql database and php page. Could anyone please give some tips to make the update.php page? Can I tweak this event_add.php page to be event_update.php page? Any tips would be much appreciated! <? require_once("includes/config.php"); session_start(); $db_connection = mysql_connect ($DBHost, $DBUser, $DBPass) OR die (mysql_error()); $db_select = mysql_select_db ($DBName) or die (mysql_error()); if($use_auth) { if(!isset($_SESSION['admin_id'])) { if ((!isset($_POST['USER'])) AND (!isset($_POST['PASS']))) { ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title><?php include("titles.php"); ?> - Add Event</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <link href="images/cal.css" rel="stylesheet" type="text/css"> </head> <body> <br><br> <form name="form1" method="post" action="event_add.php"> <div class=""><span class="">Username:</span><input name="USER" type="text" id="USER"></div> <div class=""><span class="">Password:</span><input name="PASS" type="password" id="PASS"></div> <div class=""><span class=""></span><input type="submit" name="Submit" value=" login"></div> <input type="hidden" name="day" id="day" value="<? echo $_GET['day']; ?>"> <input type="hidden" name="month" id="month" value="<? echo $_GET['month']; ?>"> <input type="hidden" name="year" id="year" value="<? echo $_GET['year']; ?>"> <input type="hidden" name="id" id="id" value="<? echo $_GET['id']; ?>"> </form> </body> </html> <? exit; } ELSE { $query = "SELECT admin_id FROM ".$TBL_PR."admins WHERE admin_username='".addslashes($_POST['USER'])."' AND admin_password='".addslashes(md5($_POST['PASS']))."' LIMIT 1"; $query_result = mysql_query ($query); while ($info = mysql_fetch_array($query_result)) { $admin_id = $info['admin_id']; } IF(isset($admin_id)) { $_SESSION['admin_id'] = $admin_id; } ELSE { header("Location: event_add.php?day=".$_POST['day']."&month=".$_POST['month']."&year=".$_POST['year']."&id=" . $_POST['id']); exit; } } } } IF(isset($_POST['submit'])) { $db_table = $TBL_PR . "events"; $_POST['description'] = substr($_POST['description'],0,1500); $_POST['title'] = substr($_POST['title'],0,100); $_POST['pic'] = substr($_POST['pic'],0,255); $_POST['purl'] = substr($_POST['purl'],0,255); $_POST['vurl'] = substr($_POST['vurl'],0,255); mysql_query("INSERT INTO $db_table ( `event_id` , `event_day` , `event_month` , `event_year` , `event_time` , `event_title` , `event_desc`, `event_pic`,`event_purl`,`event_vurl` ) VALUES ('', '".addslashes($_POST['day'])."', '".addslashes($_POST['month'])."', '".addslashes($_POST['year'])."', '".addslashes($_POST['hour'].":".$_POST['minute'])."', '".addslashes($_POST['title'])."', '".addslashes($_POST['description'])."','".addslashes($_POST['pic'])."','".addslashes($_POST['purl'])."','".addslashes($_POST['vurl'])."')"); $_POST['month'] = $_POST['month'] + 1; ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title><?php include("titles.php");?></title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <script language='javascript' type="text/javascript"> <!-- function redirect_to(where, closewin) { opener.location= 'index.php?' + where; if (closewin == 1) { self.close(); } } //--> </script> </head> <body onLoad="javascript:redirect_to('month=<? echo $_POST['month'].'&year='.$_POST['year']; ?>',1);"> </body> </html> <? } ELSE { ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title><?php include("titles.php");?></title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <link href="images/cal.css" rel="stylesheet" type="text/css"> </head> <body> <div class="eventFormControl"> <form name="form1" method="post" action=""> <div class="eventDateControl"><span class="addevent">Event Date</span><br> <span class="addeventextrainfo">(MM/DD/YY)</span></div> <div class="formMenuControl"> <select name="month" id="month"> <option value="12" <? IF($_GET['month'] == "12"){ echo "selected"; } ?>>12</option> </select> <select name="day" id="day"> <option value="1" <? IF($_GET['day'] == "1"){ echo "selected"; } ?>>01</option> <option value="2" <? IF($_GET['day'] == "2"){ echo "selected"; } ?>>02</option> <option value="3" <? IF($_GET['day'] == "3"){ echo "selected"; } ?>>03</option> <option value="4" <? IF($_GET['day'] == "4"){ echo "selected"; } ?>>04</option> <option value="5" <? IF($_GET['day'] == "5"){ echo "selected"; } ?>>05</option> <option value="6" <? IF($_GET['day'] == "6"){ echo "selected"; } ?>>06</option> <option value="7" <? IF($_GET['day'] == "7"){ echo "selected"; } ?>>07</option> <option value="8" <? IF($_GET['day'] == "8"){ echo "selected"; } ?>>08</option> <option value="9" <? IF($_GET['day'] == "9"){ echo "selected"; } ?>>09</option> <option value="10" <? IF($_GET['day'] == "10"){ echo "selected"; } ?>>10</option> <option value="11" <? IF($_GET['day'] == "11"){ echo "selected"; } ?>>11</option> <option value="12" <? IF($_GET['day'] == "12"){ echo "selected"; } ?>>12</option> <option value="13" <? IF($_GET['day'] == "13"){ echo "selected"; } ?>>13</option> <option value="14" <? IF($_GET['day'] == "14"){ echo "selected"; } ?>>14</option> <option value="15" <? IF($_GET['day'] == "15"){ echo "selected"; } ?>>15</option> <option value="16" <? IF($_GET['day'] == "16"){ echo "selected"; } ?>>16</option> <option value="17" <? IF($_GET['day'] == "17"){ echo "selected"; } ?>>17</option> <option value="18" <? IF($_GET['day'] == "18"){ echo "selected"; } ?>>18</option> <option value="19" <? IF($_GET['day'] == "19"){ echo "selected"; } ?>>19</option> <option value="20" <? IF($_GET['day'] == "20"){ echo "selected"; } ?>>20</option> <option value="21" <? IF($_GET['day'] == "21"){ echo "selected"; } ?>>21</option> <option value="22" <? IF($_GET['day'] == "22"){ echo "selected"; } ?>>22</option> <option value="23" <? IF($_GET['day'] == "23"){ echo "selected"; } ?>>23</option> <option value="24" <? IF($_GET['day'] == "24"){ echo "selected"; } ?>>24</option> <option value="25" <? IF($_GET['day'] == "25"){ echo "selected"; } ?>>25</option> </select> <select name="year" id="year"> <option value="2011" <? IF($_GET['year'] == "2011"){ echo "selected"; } ?>>2011</option> </select> </div> <div class="dataEntryControl"> <div class="tCtrl"><div class="addevent">Event Title:</div><input name="title" type="text" id="title" size="60"></div> <div class="dCtrl"><div class="addevent">Event Description:</div><textarea name="description" cols="52" rows="18" id="description"></textarea></div> <div class="pCtrl"><div class="addevent">Event Photo:</div><input name="pic" type="text" id="pic" size="60"></div> <div class="plCtrl"><div class="addevent">Photo:</div><input name="purl" type="text" id="purl" size="60"></div> <div class="vlCtrl"><div class="addevent">Video:</div><input name="vurl" type="text" id="vurl" size="60"></div><br> <div class=""><input name="submit" type="submit" id="submit" value="Add Event"></div> </div> </form> </div> </body> </html> <? } ?>
  5. Can you please provide the modified code? Thanks a lot, Shawn
  6. Hi, Can someone please help me out for the sorting problem for this php script? Because there is no an ability for sorting directories or files like alphabetical order or descending order? Any responses will be greatly appreciated it. $path = "docs/"; function createDir($path = '.') { if ($handle = opendir($path)) { echo "<ul>"; while (false !== ($file = readdir($handle))) { if (is_dir($path.$file) && $file != '.' && $file !='..') printSubDir($file, $path, $queue); else if ($file != '.' && $file !='..') $queue[] = $file; } printQueue($queue, $path); echo "</ul>"; } } function printQueue($queue, $path) { foreach ($queue as $file) { printFile($file, $path); } } function printFile($file, $path) { echo "<li><a href=\"".$path.$file."\" target=\"_blank \">$file</a></li><br><br>"; } function printSubDir($dir, $path) { echo "<li><span class=\"toggle\">$dir</span>"; createDir($path.$dir."/"); echo "</li>"; } createDir($path);
  7. Hi, Not sure why I have added if (ereg('^[a-zA-Z0-9_.-]+@[a-zA-Z0-9-]+.[a-zA-Z0-9-.]+$', user still can add a bunch of invalid texts which still be able to added into database? Here are the scripts: <?php //set up a couple of functions function doDB(){ global $conn; //connect to server and select database; you may need it $conn = mysql_connect('localhost','root','root') or die (mysql_error()); mysql_select_db('photos') or die (mysql_error()); } function emailChecker($email){ global $conn, $check_result; //check that email is not already in list $check = "select id from subscribers where email = '$email'"; $check_result = mysql_query($check, $conn) or die(mysql_error()); } function valid_email($email) { // check an email address is possibly valid if (ereg('^[a-zA-Z0-9_.-]+@[a-zA-Z0-9-]+.[a-zA-Z0-9-.]+$', $email)) return true; else return false; } //determine if they need to see the form or not if($_POST[op] !="ds"){ //they do, so create form block $display_block = " <form method=POST action=\"$_SERVER[php_SELF]\" class='rmessage'> <p><b>Your email address:</b><br> <input type=text name=\"email\" size=40 maxlength=150> <p><b>Action:</><br> <input type=radio name=\"action\" value=\"sub\" checked>Subscribe <input type=radio name=\"action\" value=\"unsub\">Unsubscribe <input type=\"hidden\" name=\"op\" value=\"ds\"> <p><input type=submit name=\"submit\" value=\"Submit Form\"></p> </form>"; }else if(($_POST[op] == "ds") && ($_POST[action] == "sub")){ //trying to subscribe; validate email address if($_POST[email] == ""){ header("Location: manage.php"); exit; } //connect to database doDB(); //check that email is in list emailChecker($_POST[email]); //get number of results and do action if(mysql_num_rows($check_result) < 1){ //add record $sql = "insert into subscribers values('','$_POST[email]')"; $result = mysql_query($sql) or die (mysql_error()); $display_block = "<div style='background-color:#FFFFCC; width:50%; margin-left:auto; margin-right:auto; font-family:Arial, Helvetica, sans-serif; font-size:12px; padding-top:20px; padding-left:10px; padding-right:10px;padding-bottom:10px; border:solid 1px #000;'>Thanks for signing up!<br><br><a href='manage.php'>Subscribe it</a><br><a href='/index.php'>Go back HOME</a></div>"; }else { //print failure message $display_block = "<div style='background-color:#FFFFCC; width:50%; margin-left:auto; margin-right:auto; font-family:Arial, Helvetica, sans-serif; font-size:12px; padding-top:20px; padding-left:10px; padding-right:10px; padding-bottom:10px; border:solid 1px #000;'>You're already subscribed!<br><br><a href='manage.php'>Subscribe it</a><br><a href='/index.php'>Go back HOME</a></div>"; } }else if(($_POST[op] == "ds") && ($_POST[action] == "unsub")){ //trying to unsubscribe; variable email address if($_POST[email] == ""){ header("Location: manage.php"); exit; } //connect to database doDB(); //check that email is in list emailChecker($_POST[email]); //get number of results and do action if(mysql_num_rows($check_result) < 1){ //print failure message $display_block = " <div style='background-color:#FFFFCC; width:50%; margin-left:auto; margin-right:auto; font-family:Arial, Helvetica, sans-serif; font-size:12px; border:solid 1px #000; padding-top:20px; padding-left:10px; padding-right:10px;padding-bottom:10px;'>Couldn't find your address!<br>No action was taken.<br><br><a href='manage.php'>Subscribe it</a><br><a href='/index.php'>Go back HOME</a></div>"; }else{ //unsubscribe the address $id = mysql_result($check_result, 0, "id"); $sql = "delete from subscribers where id ='$id'"; $result = mysql_query($sql) or die(mysql_error()); $display_block = "<div style='background-color:#FFFFCC; width:50%; margin-left:auto; margin-right:auto; font-family:Arial, Helvetica, sans-serif; font-size:12px; border:solid 1px #000; padding-top:20px; padding-left:10px; padding-right:10px;padding-bottom:10px;'>You're unsubscribed!<br><br><a href='manage.php'>Subscribe it</a><br><a href='/index.php'>Go back HOME</a></div>"; } } ?> <html> <head> <title>Subscribe/Unsubscribe</title> <style> h1{font-family:Arial, Helvetica, sans-serif; font-size:16px; background-color:#FF9900; height:40px; padding:10px 0 0 10px;} body {background-color: #666666;} .top{height:60px; background-color:#FFCC33; width:50%; margin-left:auto; margin-right:auto; padding:10px; border-top:solid 1px #000;border-left:solid 1px #000;border-right:solid 1px #000;} .rmessage{background-color:#FFFFCC; width:50%; margin-left:auto; margin-right:auto; font-family:Arial, Helvetica, sans-serif; font-size:12px; padding:10px; border:solid 1px #000;} </style> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"></head> <body> <div class="top"><h1>Subscribe/Unsubscribe</h1><div style="font-family:Arial, Helvetica, sans-serif; font-size:10px; color:#666666; padding-top:5px;">We'll send you our News Letter frequently</div></div> <?php echo "$display_block"; ?> </body> </html>
  8. Can I type html codes inside the textarea tag area and how can I insert a graphic or image or photo in the Mail Body area? Maybe it is stupid question for you guys, but any inputs will be much appreciated!!! Here is the url:http://www.sandragreen.com/emailblast.php
  9. hi, I have just created a email blast in the php along with a table subscribers in the photos database, and tested at http://localhost:8888/24/emailblast.php. Not sure why it didn't show me the result after I sendt the testing News letter to those email records which has been inserted into database table 'subscribers' from database 'photos'? Any inputs will be great appreciated!!! <?php if($_POST[op] !="send"){ //haven't seen the form, so show it echo " <html> <head> <title>Sending a Email blast</title> </head> <body> <h1>Send a News Letter</h1> <form method=\"post\" action=\"$_SERVER[php_SELF]\"> <p><b>Subject:</b><br> <input type=\"text\" name=\"subject\" size=30></p> <p><b>Mail body:</b><br> <textarea name=\"message\" cols=50 rows=10 wrap=virtual></textarea> <input type=\"hidden\" name=\"op\" vaule=\"send\"> <p><input type=\"submit\" name=\"submit\" value=\"Send It\"></p> </form> </body> </html>"; }else if ($_POST[op] == "send"){ //want to send form, so check for required fields if(($_POST[subject] =="") || ($_POST[message] == "")){ header("Location: emailblast.php"); exit; } //connect to database $conn = mysql_connect('localhost','root','root'); mysl_select_db('photos') or die(mysql_error()); //get emails from subscriber list $sql = "select email from subscribers"; $result = mysql_query($sql) or die(mysql_error()); //create a from: mailheader $headers = "From: Your Mailing List <you@yourdomain.com>"; //loop through results and send mail while($row = mysql_fetch_array($result)){ set_time_limit(0); $email = $row['email']; mail("$email", stripslashes($_POST[subject]),stripslashes($_POST[message]), $headers); echo "newsletter sent to: $email<br>"; } } ?>
  10. I have fixed the error on Line 81, it runs but it is still not working. Please would you help me. [B]Notice: Undefined index: thumb in c:\program files\easyphp1-8\www\gardenclub\admin\newdir.php on line 24 Notice: Undefined variable: id in c:\program files\easyphp1-8\www\gardenclub\admin\newdir.php on line 28 Notice: Use of undefined constant dir - assumed 'dir' in c:\program files\easyphp1-8\www\gardenclub\admin\newdir.php on line 31 [/B] [code]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> </head> <body> <ul> <?php if(isset($_POST['name'])): //database name $db="gardenclub"; //connect to the database server $dbcnx =@mysql_connect('localhost', 'root', ''); if(!$dbcnx){ exit('<p>Unable to connect to the database'.'server at the time.</p>'); } //select the gallery database if(!@mysql_select_db('gardenclub')){ exit('<p>Unable to locate the gardenclub'.'database at the time.</p>'); } //adding record if($_FILES['thumb']['name']!="") $_POST[thumb]=$_FILES['thumb']['name']; //choose wether to update or create new row if(mysql_query("SELECT id, name, thumb FROM category WHERE id='$id'", $dbcnx)) { $dir=$_POST[dir]; } else { //image directory name $dir=$name.rand(1,100); $dir=str_replace("","_",$dir);     $_POST[dir]=$dir; //creates artist directory mkdir("../media/".$dir,0777); $_POST[dir]=$dir; //selecting all added directories, querying the statement $directory = @mysql_query("SELECT id, name, thumb FROM category WHERE id='$id'"); if (!$directory){ exit('<p>Error performing query:'. mysql_error(). '</p>'); } //displaying the name of directories in the list while($dir = mysql_fetch_array($directory)){ $id = $dir['id']; $name = htmlspecialchars($dir['name']); echo"<li><a href='detail_directory.php?id=$id'>$name</a></li>"; } //uploads thumbail if($_FILES['thumb']['name']!="") { //check is image is uploaded and move it to the images folder if(!move_uploaded_file($_FILES['thumb']['tmp_name'],"../media/$dir/Thumb.jpg")) $message="Couldn't upload image"; //choose the image height $scale="-geometry '118x135>'"; //image save path $newThum="../media/$dir/Thumb.jpg  ../media/$dir/Thumb.jpg"; //imagemagick command format $command = "/usr/local/bin/convert $scale $newThum"; //execute command '$command'; } } ?> </ul> <p><a href="<?php echo $_SERVER['../PHP_SELF']; ?>">Add anthor directory</a></p> <p><a href="../directory.php">Return to directory list</a></p> <?php else:// allow the user to enter a new directory ?> <form method="post" name="form1"> <input type="hidden" name="dir" value="<?php echo $directory[dir]; ?>">   <table align="center">     <tr valign="baseline">       <td nowrap align="right">Name:</td>       <td><input type="text" name="name" value="" size="32"></td>     </tr>     <tr> <td>Thumb:</td> <td><input type="file" name="thumb" value="" size="9" /></td> </tr>     <tr valign="baseline">       <td nowrap align="right">&nbsp;</td>       <td><input type="submit" value="save"></td>     </tr>   </table>   <input type="hidden" name="MM_insert" value="form1"> </form> <?php endif;?> </body> </html>[/code]
  11. Hi It took me ages to making directories which contain photos, user can click on the specific name of directory link to view their photos.Basically there is a [b]table called 'category' [/b] which has [b]id,name, thumb,dir [/b] four field. I have put the dir in the page as hidden element.  But it almost makes that worked, it turns out the error which don't know how to fix, can someone in this forum help me out, thanks so much. [b]Parse error: parse error in c:\program files\easyphp1-8\www\gardenclub\admin\newdir.php on line 81[/b] [code]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> </head> <body> <ul> <?php if(isset($_POST['name'])){ //database name $db="gardenclub"; //connect to the database server $dbcnx =@mysql_connect('localhost', 'root', ''); if(!$dbcnx){ exit('<p>Unable to connect to the database'.'server at the time.</p>'); } //select the gallery database if(!@mysql_select_db('gardenclub')){ exit('<p>Unable to locate the gardenclub'.'database at the time.</p>'); } //adding record if($_FILES['thumb']['name']!="") $_POST[thumb]=$_FILES['thumb']['name']; //choose wether to update or create new row if(mysql_query("SELECT id, name FROM category WHERE id='$id'", $dbcnx)) { $remove=array('id','save','dir'); update("$db.category","id='$id'"); $dir=$_POST[dir]; } else { //image directory name $dir=$name.rand(1,100); $dir=str_replace("","_",$dir);     $_POST[dir]=$dir; //creates artist directory mkdir("../media/".$dir,0777); $_POST[dir]=$dir; //selecting all added directories, querying the statement $directory = @mysql_query("SELECT id, name FROM category WHERE id='$id'"); if (!$directory){ exit('<p>Error performing query:'. mysql_error(). '</p>'); } //displaying the name of directories in the list while($dir = mysql_fetch_array($directory)){ $id = $dir['id']; $name = htmlspecialchars($dir['name']); echo"<li><a href='detail_directory.php?id=$id'>$name</a></li>"; } //uploads thumbail if($_FILES['thumb']['name']!="") { //check is image is uploaded and move it to the images folder if(!move_uploaded_file($_FILES['thumb']['tmp_name'],"../media/$dir/Thumb.jpg")) $message="Couldn't upload image"; //choose the image height $scale="-geometry '118x135>'"; //image save path $newThum="../media/$dir/Thumb.jpg  ../media/$dir/Thumb.jpg"; //imagemagick command format $command = "/usr/local/bin/convert $scale $newThum"; //execute command '$command'; } } } ?> </ul> <p><a href="<?php echo $_SERVER['../PHP_SELF']; ?>">Add anthor directory</a></p> <p><a href="../directory.php">Return to directory list</a></p> <?php else:// allow the user to enter a new directory ?> <form method="post" name="form1"> <input type="hidden" name="dir" value="<?php echo $directory[dir]; ?>">   <table align="center">     <tr valign="baseline">       <td nowrap align="right">Name:</td>       <td><input type="text" name="name" value="" size="32"></td>     </tr>     <tr> <td>Thumb:</td> <td><input type="file" name="thumb" value="" size="9" /></td> </tr>     <tr valign="baseline">       <td nowrap align="right">&nbsp;</td>       <td><input type="submit" value="save"></td>     </tr>   </table>   <input type="hidden" name="MM_insert" value="form1"> </form> <?php endif;?> </body> </html>[/code]
  12. Hi: I'm wondering if dwmx 2004 can do this in PHP for making directory automatically once I inserted a record. 1) add a record to a database which includes a field indicating an image directory 2) create that image directory As each new record is added, a new 'unique' image directory is created for each record that is tied to that record... This should be possible to do with PHP , but I don't use Dreamweaver so not sure how to set it up in there either... but should it be possible? Thanks.
  13. I have created "C:\webs", put the phpmyadmin folder inside of "C:\webs\phpmyadmin", I got this error when I tested. phpMyAdmin - Error Cannot load mysql extension. Please check your PHP configuration. - Documentation Any suggestion will be appreciated!
  14. [!--quoteo(post=377267:date=May 26 2006, 05:31 AM:name=burhankhan)--][div class=\'quotetop\']QUOTE(burhankhan @ May 26 2006, 05:31 AM) [snapback]377267[/snapback][/div][div class=\'quotemain\'][!--quotec--] in httpd.conf search "DocumentRoot" and set it to DocumentRoot "C:/webs" Then open this url: [a href=\"http://localhost/test/index.php\" target=\"_blank\"]http://localhost/test/index.php[/a] [/quote] [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]Thanks man![/quote]
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.