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

PHP 

Php error HTTP ERROR 500 when I submit a button register.

[paste] pastebin.com/raw/dZiP19PP[/paste]


Php error HTTP ERROR 500 when I submit a button register.
do you have an htaccess file? its probably nothing wrong with this php script, normally 500 errors are an issue with how the server is handling the request.
(Oct 25, 2017 10:20 AM)fxbghacker Wrote:  do you have an htaccess file? its probably nothing wrong with this php script, normally 500 errors are an issue with how the server is handling the request.

I don't have becuase I use iis to run my website.
php doesnt handle iis errors very well, it could be anything.
What's in dbconnect.php? Also, there are so many bad code practices on this. MD5? Seriously? Plain-text password?
...
(Oct 25, 2017 11:37 AM)RumbleFrog Wrote:  What's in dbconnect.php? Also, there are so many bad code practices on this. MD5? Seriously? Plain-text password?

Yes Plain-text password only me and my friend use this site
(Oct 25, 2017 12:59 PM)RootBlack1996 Wrote:  Yes Plain-text password only me and my friend use this site

Then why have a password at all?
IIS and MS SQL may as well just use a C# backend
01000101
You should start your session at the VERY TOP with a conditional statement to check if it was already set before. Where you set your message, you could use
Code
$message = <<<StrLabel
   Blah blah blah,
   Blah blah....
No tabbing is a must for the ending tag
StrLabel;

For testing your code use PHP Exceptions.
(Oct 25, 2017 07:39 PM)Two-Ton 21 Wrote:  You should start your session at the VERY TOP with a conditional statement to check if it was already set before. Where you set your message, you could use
Code
$message = <<<StrLabel
   Blah blah blah,
   Blah blah....
No tabbing is a must for the ending tag
StrLabel;

For testing your code use PHP Exceptions.

Why would you use Heredoc strings? Just makes it confusing
01000101
(Oct 25, 2017 01:09 PM)Charger Wrote:  Then why have a password at all?

I will encrypt it when I can fix this problem.
(Oct 25, 2017 08:59 PM)Elite Hacker 69 Wrote:  Why would you use Heredoc strings? Just makes it confusing

Here someone asked the same question. They gave a lot reasons I never thought of, like syntax highlighting. Aside from that it's a nice way to get around escaping your special characters.
(Oct 25, 2017 09:03 PM)RootBlack1996 Wrote:  I will encrypt it when I can fix this problem.

Can you provide the dbconnect file, and encrypting is different from hashing.
...
(Oct 26, 2017 07:10 PM)RumbleFrog Wrote:  Can you provide the dbconnect file, and encrypting is different from hashing.

It just error only this register page my dbconnect.php is working good.
(Oct 28, 2017 08:02 PM)RootBlack1996 Wrote:  It just error only this register page my dbconnect.php is working good.

What does your PHP error log say?


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Javascript]  by Facebook IncJan 18, 2026 01:44 PM 2 159 Jan 18, 2026 01:44 PM
Last Post: SIM-5724601
[PHP] by blackcoder00Jun 12, 2020 12:00 AM 13 209 Jun 12, 2020 12:00 AM
Last Post: DyMa
[PHP] by Jack DrakeAug 30, 2019 08:12 PM 20 498 Aug 30, 2019 08:12 PM
Last Post: sdk