Jump to content

abdul202

Members
  • Posts

    23
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

abdul202's Achievements

Newbie

Newbie (1/5)

1

Reputation

  1. as command line use this curl --socks5 127.0.0.1:9050 http://example.com
  2. i used the approach a lot i learned PHP this way Good Luck
  3. if you want the form in a page and the php code whch process and showing the thank you message on another page make 2 separate page the first <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Form Sent</title> </head> <body> <!-- Contact Form --> <section class="footer-one"> <form id="contacts-form" action="html_form_send.php" method="post"> <div> <div class="row half"> <div class="6u"> <input type="text" class="text" name="contact-name" id="contact-name" placeholder="Name" /> </div> <div class="6u"> <input type="text" class="text" name="contact-email" id="contact-email" placeholder="Email" /> </div> </div> <div class="row half"> <div class="12u"> <textarea name="contact-message" id="contact-message" placeholder="Message"></textarea> </div> </div> <div class="row"> <div class="12u"> <ul class="actions"> <li><input type="submit" class="button button-style1" value="Send" /></li> <li><input type="reset" class="button button-style2" value="Reset" /></li> </ul> </div> </div> </div> </form> </section> <!-- /Contact Form --> </body> </html> and save it as form.html for example and create another page <script language="php"> if (!empty($_POST)) { $email = $_POST['contact-email']; $body = $_POST['contact-message'] ; $name = $_POST['contact-name']; $mailto = "info@globalfundraisinginitiative.com"; $mailsubj = "Enquiry From The GFI Website"; $mailhead = "From: info@globalfundraisinginitiative.com"; $headers = "To: info@globalfundraisinginitiative.com" . "\r\n" . "CC: info@globalfundraisinginitiative.com"; $mailbody = "The following enquiry has been submitted via the GFI Website:\n"; $mailbody .= $body ."\n" ; // the message body $mailbody .= "his email is ".$email ."\n" ; // the message body $mailbody .= "his name is ".$name ."\n" ; // the message body mail($mailto, $mailsubj, $mailbody, $mailhead); echo '<center><h1>Sent and thanks.</h1></center>'; } </script> and save it as html_form_send.php
  4. here is after modification, it's very basic the programmer must work on it or you can use another script that has more features and security it's just one file <script language="php"> if (!empty($_POST)) { $email = $_POST['contact-email']; $body = $_POST['contact-message'] ; $name = $_POST['contact-name']; $mailto = "info@globalfundraisinginitiative.com"; $mailsubj = "Enquiry From The GFI Website"; $mailhead = "From: info@globalfundraisinginitiative.com"; $headers = "To: info@globalfundraisinginitiative.com" . "\r\n" . "CC: info@globalfundraisinginitiative.com"; $mailbody = "The following enquiry has been submitted via the GFI Website:\n"; $mailbody .= $body ."\n" ; // the message body $mailbody .= "his email is ".$email ."\n" ; // the message body $mailbody .= "his name is ".$name ."\n" ; // the message body mail($mailto, $mailsubj, $mailbody, $mailhead); echo '<center><h1>Sent and thanks.</h1></center>'; } </script> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Form Sent</title> </head> <body> <!-- Contact Form --> <section class="footer-one"> <form id="contacts-form" action="" method="post"> <div> <div class="row half"> <div class="6u"> <input type="text" class="text" name="contact-name" id="contact-name" placeholder="Name" /> </div> <div class="6u"> <input type="text" class="text" name="contact-email" id="contact-email" placeholder="Email" /> </div> </div> <div class="row half"> <div class="12u"> <textarea name="contact-message" id="contact-message" placeholder="Message"></textarea> </div> </div> <div class="row"> <div class="12u"> <ul class="actions"> <li><input type="submit" class="button button-style1" value="Send" /></li> <li><input type="reset" class="button button-style2" value="Reset" /></li> </ul> </div> </div> </div> </form> </section> <!-- /Contact Form --> </body> </html>
  5. you'er welcome, really as a good start read a php book for beginner if search amazon and read reviews about the book before you choose it and see what they say about it and make sure it's for really beginner, and read every chapter and test your self every thing and every function and try to play with it, with time you will find your self able to do things you thought they were hard because our brain is like muscles with training it learn new skills and if you find a good small code or a function keep it in an organized notes so you can return back to it and not to reinvent the wheel i feel you have the enthusiasm to learn php so i thing one day in the near future you teach us here some php lessons and solve some of our code questions Good luck
  6. i use this http://www.ipinfodb.com/ and i have made this script using it http://mapipfinder.com/
  7. you canget the client's timezone in JavaScript <script> var curdate = new Date() var offset = curdate.getTimezoneOffset() document.write(offset); </script> will get this -180 so you can use this time difference to show the time in the user's time zone more about this here http://stackoverflow.com/questions/1091372/getting-the-clients-timezone-in-javascript
  8. if you want to get the header and igonre the page body you must do this curl_setopt($ch, CURLOPT_NOBODY, 1); // to not to get the body content curl_scurl_setopt($ch, CURLOPT_NOBODY, 1); // to get the header response content the full code which work with google as the follwing $url = "https://www.google.com.eg/"; // From URL to get webpage $ch = curl_init(); // Initialize a CURL session. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); // Return Page contents. curl_setopt($ch, CURLOPT_URL, $url); // Pass URL as parameter. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2); curl_setopt($ch, CURLOPT_NOBODY, 1); curl_setopt($ch, CURLOPT_HEADER, 1); $result = curl_exec($ch); // grab URL and pass it to the variable. curl_close($ch); // close curl resource, and free up system resources. var_dump($result); // Print page contents. the response is string 'HTTP/1.1 200 OK Date: Sun, 21 Sep 2014 21:09:40 GMT Expires: -1 Cache-Control: private, max-age=0 Content-Type: text/html; charset=windows-1256 Set-Cookie: PREF=ID=6cd5c46f6c60ff0b:FF=0:TM=1411333780:LM=1411333780:S=col9O7TITLf9wxEY; expires=Tue, 20-Sep-2016 21:09:40 GMT; path=/; domain=.google.com.eg Set-Cookie: NID=67=PYZc7YhsYGIak_wYUXdGB1krIqrqWimkef02XnRC8ulvcTbAeoZYdn06B-BtgQsCfXfNFPX_EgXkd5ZPGW4klvXJiueR4cOn6shMJltfTLJy6FfR6oVqT30fzp5dJCH6; expires=Mon, 23-Mar-2015 21:09:40 GMT; path=/; domain='... (length=810)
  9. the age has no relationship with programming, i started learn php after the 30 and i'm now 37 and at the begging i thought it's like rocket science, i found it hard at the beginning but with practice and trying to test every thing myself, the PHP language has become very easy to me to do any thing i want with, i started by learning from good PHP books for beginners and then read more advanced books, and you must test what you read by your self In MHO programming languages are like learning the speaking languages ( French, Italian) you improve it by practising, not just studding don't participate in stackovefflow it's aimed for professional programming and if you a beginner you are not welcomed there
  10. i'm not disabled i work from home, i create php scripts and sell them at marketplaces like codecanyon.net and i'm making good money so learn and keep learning and try to find new good ideas fro scripts and sell them
  11. I'm looking for vb8js PHP extension compiled for windows??? http://php.net/manual/en/book.v8js.php this extension is used to interpret javascript i want to test this extension on my local server WAMP . i searched for it for few days but i couldn't find a working compiled version if you have a working one please share it and explain how to install it in WAMP or in the local server in general best regards Abdalla
  12. ok i think i'll keep the current version of the php as it works fine with my scripts happy holidays
  13. i think you recommend me to upgrade to the 5.5 as it's the current latest, i just worried about some scripts are using the old mysql_ext , i can't update them, i hope if i disable the php error reporting, that would be enough to make the scripts work using that deprecated extension, and not showing the annoying error message
  14. i have PHP 5.3.27 installed on my server and i want to update the php to the latest stable version, i checked the php.net website i found that they release 5.5.x upgrade alongside 5.4.x upgrade, i'm a little confused about which one is the latest i thought it should be 5.5.x , so why the still release update for 5.4.x so please which one i should update to, i don't have any restriction, i just want the best of the the 2 merry Christmas Abdul
×
×
  • 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.