Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

PHP 

[SOLVED] PHP code on XAMPP localhost server

Hi, there.

'echo' command is not returning anything 
-I m using xampp
-my pc as server\\
-Using HTML code to view in web page
-Everything works fine , except messages under echo do not show up as it expected to be.


Have a look :
https://pastebin.com/aNLPbViW

If u have any suggestion, please post reply.
Are you 100% sure your PHP is Running ?
(Nov 20, 2017 06:03 AM)Silver Haz3 Wrote:  Are you 100% sure your PHP is Running ?

Tried running them through online compilers, shows unknown undefined mysqli_connect error    
Which is acceptable. Rest is fine
As for now, I m still stuck mate :/
your preg_match needs to be changed (since it returns an int and not a bool)
Code
if (preg_match('/[A-Za-z0-9]/', $password) != 1) {
My guess (I haven't looked at your code) would be that your php is throwing some sort of Fatal Error and you don't have error reporting on, so you don't see anything happening.

Add these 2  lines at the beggining of your php tag:


PHP Code

<?php 
error_reporting
(E_ALL);
ini_set('display_errors', 1); 


And try running it again, and see if something shows up :)
which echo isn't working?
01000101
Potential issues:
1. The extension of the file is not .php (but I guess this is not the case, because the echo wouldn't be processed either)
2. You are using an outdated PHP version, which is under 5.5
3. Mysqli is not a loaded extension
Without the actual error message(s) I'm just guessing.
You see, Doctor, God didn't kill that little girl. Fate didn't butcher her and destiny didn't feed her to those dogs.
If God saw what any of us did that night he didn't seem to mind. From then on I knew... God doesn't make the world this way.
We do.
Solved guys.
It was just the mismatched variable name


Possibly Related Threads...
Thread / Author Replies Views Last Post
[PHP] by NickyDevApr 16, 2024 05:49 AM 10 353 Apr 16, 2024 05:49 AM
Last Post: DynamicW
[Node.JS] by Reiss0101Nov 20, 2022 06:01 AM 1 149 Nov 20, 2022 06:01 AM
Last Post: Oxycodone
[PHP] by HackersFeb 11, 2022 12:01 AM 8 546 Feb 11, 2022 12:01 AM
Last Post: Hackers