[Solved] GET request as directory [duplicate]

If you are going to build a social network solution, it is strongly recommended to use an established framework like Laravel, Yii2 etc. Why? Because it has tons of out of the box functionality you can use. That said, you need to learn how to use routing. Here is one solution. http://blogs.shephertz.com/2014/05/21/how-to-implement-url-routing-in-php/ Here is another … Read more

[Solved] dynamic code style rather than hard coding [closed]

The difference in execution time would be hard to measure, as string interpolation and an implode call is going to be orders of magnitude faster than the round-trip time to the database server. We’re talking nanoseconds versus milliseconds. You’re asking the wrong question, though. It’s a really bad practice to be writing out literal SQL … Read more

[Solved] Why is the output Negative? [closed]

Many notations use “^” as a power operator, but in PHP (and other C-based languages) that is actually the XOR operator. You need to use this ‘pow’ function, there is no power operator. In your code $keone = $vone ^ 2; Should be $keone = pow($vone,2); Rest of your code is fine. That pow function … Read more

[Solved] Recommendations for processing incoming data on a web server [closed]

As @cybermonkey said, you should communicate via HTTP POST. Http Post lets you send data (large bits of data), you can use the headers actively to determine response status etc. When using POST, I would recommend transporting the strings in JSON-format. JSON Allows you to serialize and deserialize objects, arrays and strings. Can be serialized … Read more

[Solved] Free Web Servers PHP [closed]

I’ve found izfree to be pretty good when I’ve needed quick hosting in a pinch. I wouldn’t recommend it for anything in production though as its uptime isn’t as good as it could be. EDIT: Although looking at it, it may not even be maintained anymore. I last used it in 2009… 1 solved Free … Read more