Raised This Month: $12 Target: $400
 3% 

Need some advice for good practices


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
WilnarMasonik
BANNED
Join Date: Jul 2022
Old 09-12-2022 , 23:46   Need some advice for good practices
Reply With Quote #1

So I am currently working on a PHP script which utilizes Smarty and I have written some code and pushed it to a github repo: amxbans

First I would like if someone takes a look and maybe give me some advices how to improve it, because although it's working fine, I have this feeling like "it's not the best way to do it".

Especially in parts like:

steamAvatar.php

if( !is_dir( 'avatar_c' ) )
mkdir( 'avatar_c' );
This two lines seem not to belong here, but I don't really know where to put them.

Thank you in advance.
WilnarMasonik is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:14.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode