Skip to content

u/tyesbo

In this archive from Feb 2011 to Dec 2021

0
posts
12
comments
0
media
17
score

Top comments

If you're gonna echo a string and you need to include variables or functions in the string, you should use a comma and not a dot. A dot will concatenate the string before it outputs it to the buffer. A comma will just echo every part one by one.

<?php if($this == $that) echo '<li>My gran can beat you at ' , $that , ' No problem.</li>'; ?>
3 points

If you're goal is to setup a VPS and not worry about configuration, a very good solution is to use : https://runcloud.io/ Easy to use and very cheap for the amount of time you will save using this tool.

Whatever you do, do not self-host you're own emails, it takes a lot of work to setup and maintain. And even if you setup everything perfectly some email providers will just put your mails in spam because they don't trust your server. Use a service, here are 2 that are great and cheap :

And for mass sending emails you can use :

2 points

Try writing object oriented reusable code. You shouldn't be rewriting the same stuff every time. Put them all in a library to use alone or in a framework, or even in your own framework if you decide to write your own.

It takes a little longer to write reusable code but it's worth it.

1 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.