Jump to content

Deoctor

Members
  • Posts

    663
  • Joined

  • Last visited

Everything posted by Deoctor

  1. How do i convert date of this format Friday 5th of February 2010 10:54:01 AM to something like this 02/05/2010
  2. i have restarted apache and there is no log being written. The apache is not recognizing the url it is passing to the internet...
  3. Hai i need some one to write one virtual host in the httpd.conf this one i have tried it out. but it is not working. Can some one guide it out.. NameVirtualHost 127.0.0.1 <VirtualHost 127.0.0.1> ServerName project.localhost DocumentRoot "C:\xampp\htdocs\chaitu\support" DirectoryIndex index.php login.php <Directory "C:\xampp\htdocs\chaitu\support"> AllowOverride All Allow from All </Directory> </VirtualHost>
  4. Awesome dude.. Thank you for your help... it is really quite silly i didnt check that
  5. Hai I have created this code for uploading the files.It uploads the jpg, png files correctly. but if i check with gif it is giving the problem. I have checked that it is not creating a temp name for that file types, can any one tell me y is this happening. <form enctype="multipart/form-data" action="upload_file.php" method="POST"> <input type="hidden" name="MAX_FILE_SIZE" value="100000" /> Choose a file to upload: <input name="uploaded" type="file" /><br /> <input type="submit" value="Upload File" /> </form> <?php ini_set("display_errors",1); error_reporting(E_ALL); $target = "upload/"; $target = $target . basename( $_FILES['uploaded']['name']) ; $uploaded_type=strtolower(substr($_FILES['uploaded']['name'],strrpos($_FILES['uploaded']['name'],'.')+1)); print_r($_FILES['uploaded']); echo "111 ".$uploaded_type; //This is our limit file type condition if (($uploaded_type=="gif")||($uploaded_type=="jpg")||($uploaded_type=="png")) { if(move_uploaded_file($_FILES['uploaded']['tmp_name'], $target)) { echo "The file ". basename( $_FILES['uploaded']['name']). " has been uploaded"; } else { echo "Sorry, there was a problem uploading your file."; } } else { echo "These files cannot be uploaded<br>"; } ?>
  6. this could be the problemm as ur database has no encrypted passwrds and u are checking the encrypted password to the not encrypted ones it is giving this error
  7. thnk u for the reply.. i figured it out..
  8. Hai i am writing this code and the cookies which i am setting are not working in this one.. can some one tell me why is it not working <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "[url=http://www.w3.org/TR/html4/strict.dtd]http://www.w3.org/TR/html4/strict.dtd[/url]"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title> Support Ticket System</title> <link rel="stylesheet" href="./styles/main.css" media="screen"> <link rel="stylesheet" href="./styles/colors.css" media="screen"> </head> <body> <div id="container"> <div id="header"> <a id="logo" href="login.php" title="Ninestars Support Center"><img src="./images/logo2.jpg" border=0 alt="Ninestars Support Center"></a> <p><span><b>NINESTARS</b> SUPPORT TICKET</span> SYSTEM</p> </div> <div id="content"> <div id="index"> <h1>Welcome to the support center</h1> <p class="big">In order to streamline support requests and better serve you, we utilize a support ticket system. Every support request is assigned a unique ticket number which you can use to track the progress and responses online. For your reference we provide complete archives and history of all your support requests. A valid email address is required.</p> <hr /> <br /> <div class="rcol"> <img src="./images/ticket_status_icon.jpg" width="48" height="48" align="left" style="padding-bottom:150px;"> <h3>Enter login details</h3>Please enter the email id and password which has been shared to you. <br /><br /> <form class="status_form" action="login.php" method="post"> <fieldset> <label>Email:</label> <input type="text" name="lemail"> </fieldset> <fieldset> <label>Password#:</label> <input type="text" name="lpwd"> </fieldset> <fieldset> <label> </label> <input type="submit" name="login" class="button2" value="Login"> </fieldset> </form> </div> <div class="clear"></div> <br /> </div> <br /> <div style="clear:both"></div> </div> <div id="footer">Copyright © <a href="[url=http://www.ninestars.in]http://www.ninestars.in[/url]">Ninestars</a>. All rights reserved</div> </body> </html> <?php if(isset($_POST['login'])) { error_reporting(off); include("db/access.php"); $uname=$_POST['lemail']; $pwd=$_POST['lpwd']; $query=mysql_query("select first_nm from client_details where email='$uname' and pwd='$pwd'") or die(mysql_error()); $result=mysql_result($query,0); if($result!='') { echo "hai ".$uname."<br>"; setcookie("user", "chaitanya", time()+3600); echo "Welcome " . $_COOKIE["user"] . "!<br/>"; //echo "<META HTTP-EQUIV=\"Refresh\" CONTENT=\"1; URL=open.php\">"; } else { echo ("<table><td bgcolor=orange width=100%><font face=Verdana, Arial, Helvetica, sans-serif size=2><b><center>You have entered a wrong username or password</center></b></font></td></table>"); //echo "<center><b>You have entered a wrong username or password</b></center>"; //echo "<META HTTP-EQUIV=\"Refresh\" CONTENT=\"1; URL=login.php\">"; } } ?>
  9. visit the w3schools that were i have learnt a lot also visit http://myphpform.com/ to learn about the very basics of forms..
  10. i think wt ever u are thinking is the right one
  11. hi with no disregard.If u can found any solution (any code or any suggestive method)that would be more benefited instead of these things.. as per the thing of recognizing an user there is no possible way of finding it out, coz the mac address of the user is related to the local Lan network.. so u cannot get it out along with the IP address.
  12. start a session when they visit the page and when session is there make it to 1 and when the session got killed make it as 0
  13. if u dont mind can u explain in more detail abt the type of app that u want to build...
  14. check this out in the command prompt telnet localhost 25. if it connecting then it should workkk..
  15. try modifying these values in the php.ini file make them the max size.. after change u need to restart the apache service if u have the html form in ur code mention this <input type="hidden" name="MAX_FILE_SIZE" value="100000" />
  16. if u want to have an alternate solution try the hosting with these http://www.free-webhosts.com/free-php-webhosting.php
  17. see the thing is that u need to create the database using the control panel only. u cannot create a database without the name of the user id (the format as i already mentioned <username of byethost>_<database name>),coz the mysql server being used is the same for most of the users, so to differentiate u need to have user name tagged to it.. try creating a database with the control panel before and then use, there is no alternate solution in byethost
  18. u have changed the password, previously it was given as censored.. anyway i have just now created one database for u check that out.. space_4826174_mydb these should be the connection details
  19. are these ur correct login details, coz they are not working.. and also one more thing u cannot create a database with name my_db. the db should be of this format <username of byethost>_<database name>
  20. hai i too use the byethost panel and i am able to connect without any problems.. if u can provide me with the connect string then i can help u out.. $con = mysql_connect("sql307.000space.com","spa…
  21. can u paste the mysql table structure and some sample data along..
  22. Deoctor

    Error

    :confused: :confused: :confused: could nt able to get wt u r talking abt..
×
×
  • 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.