Welcome to PhCyber Community

Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads

Search the Community

Showing results for tags 'php'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • General Topic
    • Official Links
    • Announcement/News
    • Introduction
    • Suggestions/Inquiries
    • Official Tutorials
    • Rules and Regulations
  • VPN Section
    • Mobile Version
    • PC Version
  • World Wide Web
    • Programming and Web Development
    • Internet
    • Online Courses
    • Digital Currency
    • Referrals Section
  • Game Section
    • Mobile Gaming
    • PC Gaming
    • Console Gaming
  • Application Section
    • Mobile Version
    • PC Version
  • Technology
    • Gadgets & Gizmos
    • Trending Technology
    • Thesis & Research
  • Technician's Lounge
    • Tools & Software
    • Help & Tutorials
  • Commercial
    • Buy and Sell
    • Business Admin
    • Starting Business
  • Lifestyle
    • Health & Fitness
    • Fashions
    • Travels & Liessure
    • Foods & Drinks
  • Entertainment Section
    • Music Lounge
    • Movie Lounge
    • Photo Lounge
    • Youtuber Lounge
    • Mangga & Anime Lounge
    • Your Own Lounge
    • Others
  • Paid Section

Product Groups

  • C-Coins
  • Reseller C-Coins
  • VPN Subscription
  • Adverstise
  • VPN Services
  • Donations


  • PC Apps
  • Mobile Apps
  • Source Codes
  • Collection
  • E-Books


  • PhCyber Forum
    • How to Create a Topic
    • How to Upload Files
    • How to Give Reaction
    • Use of Spoiler Button VS Hide ( [hide]..[/hide] ) Code
  • C-Coins
    • What is C-Coin?
    • How To Earn C-Coins
  • VPN Panel
    • How to Create a VPN Account
    • How to Edit VPN Accounts
    • Redeem a VPN Account
  • Public SSH Panel
    • How to Create an SSH Account
    • How to Edit SSH Accounts
  • Files Section
    • Upload Files
    • Download Files


  • Trends
  • Tech and Gadgets
  • Internet
  • Top Sotware

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start



About Me

Mobile Number

Found 5 results

  1. View File OCS PANEL SOURCE CODE Basic Source code for OCS panel credits to the owner of this src Submitter Vynxz Submitted 02/03/2020 Category Source Codes  
  2. Version 1.0.0


    Basic Source code for OCS panel credits to the owner of this src


  3. What you’ll learn How to work with SESSIONS How to work with COOKIES How to work with GET and POST Method New user sign up User login Email verification (Confirmation) Forgot password (Password Recovery) Remember me (Keep me logged in) Security (Password Hashing, MySQL Injection) Implementing Google reCaptcha (I’M NOT A ROBOT) This link valid for 20 minutes Link expired and more Requirements A computer Little PHP knowledge Little HTML knowledge Description Welcome to “Secured Login Registration System in PHP” course. This is a course for building complete login registration system with all the basics concept. Learn how to implement login registration functionality on your working project. We will cover all the major things behind login registration system. Learn how to implement google recaptcha in your code. Section 1 : Introduction Intro and setup Section 2 : GET and POST super global Learn the basics of GET and POST super global Section 3: COOKIES and SESSIONS How to work with session and cookie Section 4: Sign Up Creating DATABASE Connection, SQL Injection, PASSWORD HASHING, regular expression (REGEX), Input field validation and more Section 5: Implementing Google reCaptcha I’M NOT A ROBOT in sign up page How to implement google reCaptcha I’m not a robot using google API Section 6: Email confirmation How to send email, email confirmation/verification Section 7: Extra feature for Sign Up User name not available, email exists Section 8: Login Login functionality Section: 9: Extra feature for login New way to verify unverified during login Section 10: Forgot password How to change user their password if they forgot or want to change Section 11: Remember me If user close/shutdown their browser after login with remember me checkbox checked, mark them as login user in the browser perspective Section 12: Conclusion Last word PHP is one of the most used language to build websites. Biggest tech company like Facebook, Twitter, Wikipedia using PHP. We will be build an amazing project from complete scratch, you will learn all the things need to implement login registration system. This is a real world project. Who this course is for: Who want to learn secured login registration system Want to learn basics concept behind login registration system REDEEM COUPON
  4. A good way to avoid automatic form submissions when creating a web form is to add some kind of verification. One of the best ways is to use an image verification, called also captcha. What it does is to dynamically create an image with a random string displayed on it. Then visitor is asked to type that string in a text field and once the form is submitted it checks if the string on the image matches the one inputted by the user. Because there is no easy way to read a text from an image (image recognition) this is a good way to protect your web forms from spammers. For doing this CAPTCHA I would suggest using a session variable where you store the string generated and displayed on that dynamically generated image. <?php session_start(); $text = rand(10000,99999); $_SESSION["vercode"] = $text; $height = 25; $width = 65; $image_p = imagecreate($width, $height); $black = imagecolorallocate($image_p, 0, 0, 0); $white = imagecolorallocate($image_p, 255, 255, 255); $font_size = 14; imagestring($image_p, $font_size, 5, 5, $text, $white); imagejpeg($image_p, null, 80); ?> Save this code in a file called captcha.php. What this script does is to generate a random number from 10000 to 99999 and then assign it to $_SESSION['vercode']. Then it generates a 25x65 pixels image with black background and white text using size 14. So if you upload that captcha.php file on your web site and open [Hidden Content] you will see an image displaying random integer. You will receive a new random integer every time you refresh that page. Next we need to create our web form. <form action="submit.php" method="post"> Comment: <textarea name="coment"></textarea> Enter Code <img src="captcha.php"><input type="text" name="vercode" /> <input type="submit" name="Submit" value="Submit" /> </form> Above code will create a form with a single textarea box, randomly generated image using the captcha.php script and a text field where you will have to enter the verification code. All we have to do now is to make the submit.php script which will check if the verification code you enter matches the one that has been randomly generated. <?php session_start(); if ($_POST["vercode"] != $_SESSION["vercode"] OR $_SESSION["vercode"]=='') { echo '<strong>Incorrect verification code.</strong>'; } else { // add form data processing code here echo '<strong>Verification successful.</strong>'; }; ?>
  5. Cyber

    Php Arrays

    Simple arrays Arrays are a special type of variable that can contain many variables, and hold them in a list. For example, let's say we want to create a list of all the odd numbers between 1 and 10. Once we create the list, we can assign new variables that will refer to a variable in the array, using the index of the variable. To use the first variable in the list (in this case the number 1), we will need to give the first index, which is 0, since PHP uses zero based indices, like almost all programming languages today. $odd_numbers = [1,3,5,7,9]; $first_odd_number = $odd_numbers[0]; $second_odd_number = $odd_numbers[1]; echo "The first odd number is $first_odd_number\n"; echo "The second odd number is $second_odd_number\n"; We can now add new variables using an index. To add an item to the end of the list, we can assign the array with index 5 (the 6th variable): $odd_numbers = [1,3,5,7,9]; $odd_numbers[5] = 11; print_r($odd_numbers); Arrays can contain different types of variables according to your needs, and can even contain other arrays or objects as members. To delete an item from an array, use the unset function on the member itself. For example: $odd_numbers = [1,3,5,7,9]; unset($odd_numbers[2]); // will remove the 3rd item (5) from the list print_r($odd_numbers); Useful functions The count function returns the number of members an array has. $odd_numbers = [1,3,5,7,9]; echo count($odd_numbers); The reset function gets the first member of the array. (It also resets the internal iteration pointer). $odd_numbers = [1,3,5,7,9]; $first_item = reset($odd_numbers); echo $first_item; We can also use the index syntax to get the first member of the array, as follows: $odd_numbers = [1,3,5,7,9]; $first_item = $odd_numbers[0]; echo $first_item; The end function gets the last member of the array. $odd_numbers = [1,3,5,7,9]; $last_item = end($odd_numbers); echo $last_item; We can also use the count function to get the number of elements in the list, and then use it to refer to the last variable in the array. Note that we subtract one from the last index because indices are zero based in PHP, so we need to fix the fact that we don't count variable number zero. $odd_numbers = [1,3,5,7,9]; $last_index = count($odd_numbers) - 1; $last_item = $odd_numbers[$last_index]; echo $last_item; Stack and queue functions Arrays can be used as stacks and queues as well. To push a member to the end of an array, use the array_push function: $numbers = [1,2,3]; array_push($numbers, 4); // now array is [1,2,3,4]; // print the new array print_r($numbers); To pop a member from the end of an array, use the array_pop function: $numbers = [1,2,3,4]; array_pop($numbers); // now array is [1,2,3]; // print the new array print_r($numbers); To push a member to the beginning of an array, use the array_unshift function: $numbers = [1,2,3]; array_unshift($numbers, 0); // now array is [0,1,2,3]; // print the new array print_r($numbers); To pop a member from the beginning of an array, use the array_shift function: $numbers = [0,1,2,3]; array_shift($numbers); // now array is [1,2,3]; // print the new array print_r($numbers); Concatenating arrays We can use the array_merge to concatenate between two arrays: $odd_numbers = [1,3,5,7,9]; $even_numbers = [2,4,6,8,10]; $all_numbers = array_merge($odd_numbers, $even_numbers); print_r($all_numbers); Sorting arrays We can use the sort function to sort arrays. The rsort function sorts arrays in reverse. Notice that sorting is done on the input array and does not return a new array. $numbers = [4,2,3,1,5]; sort($numbers); print_r($numbers); Advanced array functions The array_slice function returns a new array that contains a certain part of a specific array from an offset. For example, if we want to discard the first 3 elements of an array, we can do the following: $numbers = [1,2,3,4,5,6]; print_r(array_slice($numbers, 3)); We can also decide to take a slice of a specific length. For example, if we want to take only two items, we can add another argument to the function: $numbers = [1,2,3,4,5,6]; print_r(array_slice($numbers, 3, 2)); The array_splice function does exactly the same, however it will also remove the slice returned from the original array (in this case, the numbers variable). $numbers = [1,2,3,4,5,6]; print_r(array_splice($numbers, 3, 2)); print_r($numbers);