kingston_123 Posted January 14, 2017 Share Posted January 14, 2017 My friend gave me this codes, before using this codes what software(s) should I install on my PC & where to paste this codes to get final result: <?php $url = "http://www.google.co.in"; $ch = curl_init(); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); // Return in string curl_setopt($ch, CURLOPT_URL, $url); $varx = curl_exec($ch); echo htmlentities($varx); ?> Quote Link to comment https://forums.phpfreaks.com/topic/302927-how-to-see-the-final-result-of-this-php-codes/ Share on other sites More sharing options...
requinix Posted January 14, 2017 Share Posted January 14, 2017 "codes" Do you have any idea what PHP is? Quote Link to comment https://forums.phpfreaks.com/topic/302927-how-to-see-the-final-result-of-this-php-codes/#findComment-1541369 Share on other sites More sharing options...
kingston_123 Posted January 14, 2017 Author Share Posted January 14, 2017 I am new & i already install XAMPP. but how to insert this codes & run it ? I have PC & INTERNET. I don't have servers. Quote Link to comment https://forums.phpfreaks.com/topic/302927-how-to-see-the-final-result-of-this-php-codes/#findComment-1541370 Share on other sites More sharing options...
requinix Posted January 14, 2017 Share Posted January 14, 2017 You put the... "codes"... into a file inside XAMPP's htdocs directory. It can be called whatever but it needs to have the .php extension. You run it by going to http://localhost/whatever.php (if you're using port 80) or http://localhost:81/whatever.php (for any other port). Substitute whatever.php for the name of the file. Quote Link to comment https://forums.phpfreaks.com/topic/302927-how-to-see-the-final-result-of-this-php-codes/#findComment-1541377 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.