Search found 313 matches

by thinsoldier
Wed Oct 31, 2018 2:45 pm
Forum: PHP - Code
Topic: Constructing <select><option> list with SELECT results
Replies: 2
Views: 66016

Re: Constructing <select><option> list with SELECT results

off-topic advice: avoid bouncing back and forth between html and php as much as possible it will save you from countless small bugs. Consider using and array to contain list items. You may find it useful to have them in an array for various reasons in the future. $list = $list . "<option class=...
by thinsoldier
Thu May 17, 2018 3:09 am
Forum: PHP - Code
Topic: Any PHP or Laravel beginners interested in Pair Programming?
Replies: 6
Views: 27370

Re: Any PHP or Laravel beginners interested in Pair Programm

Christopher wrote:The OP or Vegan's post?
The OP
by thinsoldier
Wed May 16, 2018 5:34 pm
Forum: PHP - Code
Topic: Xampp Server User Please Come In And Assist
Replies: 2
Views: 20859

Re: Xampp Server User Please Come In And Assist

Troubleshooting this could wind up being more difficult than learning to use vagrant, virtual box, and linux for your development server in windows.
by thinsoldier
Wed May 16, 2018 5:24 pm
Forum: PHP - Code
Topic: Any PHP or Laravel beginners interested in Pair Programming?
Replies: 6
Views: 27370

Re: Any PHP or Laravel beginners interested in Pair Programm

Wait... this is my post... copied and pasted... Why?
by thinsoldier
Sat Mar 24, 2018 12:59 am
Forum: PHP - Code
Topic: How to achieve automatic transfer from http to https
Replies: 2
Views: 9311

Re: How to achieve automatic transfer from http to https

It seems your SSL isn't set up correctly.

Once it is set up correctly, if your .htaccess file isn't working, make sure you vhost definition allows .htaccess files to operate.
by thinsoldier
Sun Mar 18, 2018 10:34 am
Forum: PHP - Code
Topic: Code review of a simple contact form
Replies: 25
Views: 35434

Re: Code review of a simple contact form

Christopher wrote:Yikes. Sites like those should really centralize security. Using a Front Controller certainly simplifies that.
Yes. But not going to happen on that current project. Eventually a larger gambling network will buy those shops and replace everything with their own stuff.
by thinsoldier
Sat Mar 17, 2018 6:21 pm
Forum: PHP - Code
Topic: Code review of a simple contact form
Replies: 25
Views: 35434

Re: Code review of a simple contact form

small sites like these. lol. your jaw would drop and you'd get a headache in disbelief if you saw the size and/or business importance what some of these people have been working on daily for the last 3 or more years. One of them is using php for the back end of online gambling games that use real m...
by thinsoldier
Fri Mar 16, 2018 11:18 pm
Forum: PHP - Code
Topic: Code review of a simple contact form
Replies: 25
Views: 35434

Re: Code review of a simple contact form

I'm not clear how regular expression knowledge matters for this? The fear comes from lack of understanding "how does it work" and the most common complex string pattern matching tool is regular expressions. Mod-rewrite is a common top search result when looking for how to do friendly urls...
by thinsoldier
Fri Mar 16, 2018 11:07 am
Forum: PHP - Code
Topic: Code review of a simple contact form
Replies: 25
Views: 35434

Re: Code review of a simple contact form

It is definitely a step up from just using all individual PHP files as Transaction Scripts. I find some people have a mental block ( I had it myself in 2005 ) where the desire for user friendly urls does not overcome the reluctance to have to write and maintain more lines of code (php router or .ht...
by thinsoldier
Wed Mar 14, 2018 8:57 pm
Forum: PHP - Code
Topic: Code review of a simple contact form
Replies: 25
Views: 35434

Re: Code review of a simple contact form

Ok I'll skip that feature for this project. The people I had in mind when I started this are still at basic "I need a form for my contact.php" level.
by thinsoldier
Mon Mar 12, 2018 11:22 pm
Forum: PHP - Code
Topic: Code review of a simple contact form
Replies: 25
Views: 35434

Re: Code review of a simple contact form

Christopher wrote:You can do it that way
So it sounds like what you were suggesting is something I'm not familar with. I've never used http://php.net/pathinfo before. Could you give me an example of how you meant I should be using it?
by thinsoldier
Mon Mar 12, 2018 11:02 pm
Forum: PHP - Code
Topic: Is This How They Build Online Greeting Cards ?
Replies: 4
Views: 9839

Re: Is This How They Build Online Greeting Cards ?

You could do it with PHP but I'm pretty sure some aspects of advanced functionality like having a lot of fonts to choose from or performance concerns like having to process 10,000 users requests server side, make javascript & canvas in the browser a significantly better choice.
by thinsoldier
Mon Mar 12, 2018 11:24 am
Forum: PHP - Code
Topic: Code review of a simple contact form
Replies: 25
Views: 35434

Re: Code review of a simple contact form

1. I might use URLs with PATH_INFO instead of a 'cmd' parameter. Could you give me an example? I vaguely remember back in the day some sites would have urls like "example.com/index.php/services" I'm trying that on my server and it loads index.php but without the css. It seems my browser t...