Jump to content

ashii

Members
  • Posts

    20
  • Joined

  • Last visited

    Never

About ashii

  • Birthday 12/15/1987

Profile Information

  • Gender
    Not Telling
  • Location
    Sri Lanka

ashii's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thank you for the reply, I wrote the code and it throws me an error saying "mysqldump is not recognized as an internal or external command, operable program or batch file." The reason is I am going to port this code into my drupal module. Thank you.
  2. I need it to be done manually thank you.
  3. I am sorry if someone else has come up with this topic earlier. (please let me know if that was solved) I want to take a backup of my mysql db using php, and I went searching for some solutions in google, but yet I couldn't find a right one, so could anyone post me the code or the link which really works for you! thank you.
  4. Hello! I am using CURL to access HTML and extract all the elements from it as below ** * Initialize the cURL session */ $ch = curl_init(); /** * Set the URL of the page or file to download. */ curl_setopt($ch, CURLOPT_URL,'http://www.w3schools.com/PHP/php_xml_simplexml.asp'); /** * Ask cURL to return the contents in a variable * instead of simply echoing them to the browser. */ curl_setopt($ch, CURLOPT_FAILONERROR,1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION,1); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); curl_setopt($ch, CURLOPT_TIMEOUT, 15); /** * Execute the cURL session */ $contents = curl_exec ($ch); /** * Close cURL session */ curl_close ($ch); This works perfectly , but my next step is to use SimpleXMLElement() and grab a particular element from it which is. $xml_data = new SimpleXMLElement($contents); but I came across an article saying that there is no pint using SimpleXMLElement() to grab HTML Elements, Is that true? and BTW if I need to grab a particular element (in the already extracted HTML using CURL) what is the function I am supposed to use ? Thank you
  5. hey! I am really fed-up in searching a fixes/hacks for ie6 background png's, so far I've got the correct one for the images which comes with <img src="image.png"> tag but couldnt find one for background:url("image.png"), so is any one available there for me to help in this case. Thank you.
  6. Thank u vry mch.. i fixed it sum hw... since I waz vry Hurry to execute dis query. i dint post the needed info abuh da schema..
  7. SELECT user.firstname, user.lastname, user.contact,user.address, user.email, vehicle_dtls.Vid,vehicle_dtls.name, vehicle_dtls.model, vehicle_dtls.seats FROM (user INNER JOIN vehicle_dtls ON user.ID = vehicle_dtls.ID)(vehicle_dtls INNER JOIN tbl_busimage ON vehicle_dtls.Vid= tbl_busimage.Vid) WHERE vehicle_dtls . route = 'USA-NEWYORK'
  8. :D :D Yeah Il Try i have two different php files ....... file no:1 where i get the user input to the element (TextBox) so the moment i click the submit button .... I assign the value of the textbox to a session, continuesly it calls the other PHP file .... in the 2nd PHP file i am having a texbox which has the value of the same session... eg: say that i type ashii in PHP file no1 and submit it..... ashii will be assign to a session, and it will redirect the othe PHP file wich has a text box consisting the value of the session (ashii) hope am normal nw??? K.. nw i come to ma qstion........... when ma 2nd php file loads ....... it will have the session value in the text box .... so if the value of the text box is equal to 'user1' it should give me an alert sayin that "your Welcome". also it should redirect to anthr file/page..... it works perfectly by using ma Script wich i posted previously...... but ma problem is ... it does the same thing when the textbox value is not 'user1'... (it rdeirects to the page without the alert) did u u get me that what i am referring to????
  9. Thank u very Much Guyz .. I got it Done.....!!!
  10. I juz wana check if the Element value == 'user1' to gimme an alert rediderect to anthr page in the 'body onload 'itself which use to be lykdiz function verify() { if(document.getElementById('txtcheck').value == 'user1') alert("Your Password Has Been Expired Please change your password"); window.location.href="example.htm"; } onload event <body onLoad="verify();> this works perfectly .. but ma probz is..... if the element value is not == 'user1' then it doesnt give me an alert ... but it straightly redirect to the 'example.htm' page but if the page element value is not equal ... it should be in the same page without redirecting ... can u plz help me in this case ???:answerpls::answerpls:
  11. K is hashing is the only way to secure the password cant we use eg: base64_encode base64_decode but i dont know how far this is secure and will it be possible for passwords or not???
  12. heloa guyz. i just thought of saving the user's password in an encrypted format. so earlier i thought of using md5 to encrypt, but according to my research i prefer that it is insecure(Hackable) so i founded something called salt #ing where we make the data more secured by using some PHP Buid-In Functions such as substr(); sha1(); md5(); uniqid(); rand(); but ma salt was sumthin lyk diz $pass=$_POST['txtpassword']; $salthash = substr(sha1(md5($pass), true), 0); and my INSERT INTO statement is mysql_query("INSERT INTO user_login(password) VALUES ('".$salthash."') No probz it works perfectly..... when i check the password in the database when the user tries to login its not giving me any error bcoz itz also workin accurately whch is sumthin lyk dis if ($salthash == $row['password']) { echo 'ur logged in'; } else { echo 'Login Failed'; } so no problem at all in saving a password and checkin a password....... now my question is, is it possible to decrypt my password ?? Example I save a password called 'pass123' it encrypts the password and saves it in the DB.... so again if i want to view my original password, i mean the 'pass123'.... what is the process that i should take over...... also is this the only way to encrypt a password....??? do we have any other way to encrypt and decrypt .. if so plz type the scrypt below.. it would be a gr8 help..... Thanking u all in advance ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ???
  13. Any ideas Plz ??? ??? ??? ??? ??? ???
  14. it will be easy if make ma problem into points... am havin a php file .. i create a session with the value eg: Ashii i am having a file upload function in that php file..... now i select the file and press the upload button.... then the file should be uploaded into a folder... upto this am fyn.. itz perfectly workin.... ma problem is........... i should upload the file.. to the folder which has the similar name of sessions value... eg: the file shud be uploded to the Ashii Folder... it shud recognize that the file should be uploded to the relevant folder using the sessions... $path='/upload/'; move_uploaded_file($_FILES["file"]["tmp_name"], $path" . $_FILES["file"]["name"]); the above code is to upload a file in a particular folder called ''upload'... it wotkz perfectly.... but i need t in the otherway.... plz plz plz plz help me..........
  15. Kishore why dont you go with this Website..... http://www.homeandlearn.co.uk/php/php.html
×
×
  • 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.