xhtmlchamps1 Posted January 10, 2013 Share Posted January 10, 2013 Hello everybody! We are currently trying to make the PHP part of the page better. We have taken a small break from writing the reference part (have made over 400 reference pages the last months), and we have started working on the tutorial part. I would very much like to get suggestions on what to add Link to comment Share on other sites More sharing options...
xhtmlchamps1 Posted January 10, 2013 Share Posted January 10, 2013 Yeah that is all IPB does. It uses string replacement to add the proper HTML when it finds a BBCode. Link to comment Share on other sites More sharing options...
xhtmlchamps1 Posted January 10, 2013 Share Posted January 10, 2013 Yes string replacement is the best option for such activity. Link to comment Share on other sites More sharing options...
L8V2L Posted June 24, 2014 Share Posted June 24, 2014 Nodejs Link to comment Share on other sites More sharing options...
catalyze326 Posted October 1, 2019 Share Posted October 1, 2019 One edit that I would like to see made is on the file upload page. You use this bit of code: // Allow certain file formatsif($imageFileType != "jpg" && $imageFileType != "png" && $imageFileType != "jpeg"&& $imageFileType != "gif" ) { echo "Sorry, only JPG, JPEG, PNG & GIF files are allowed."; $uploadOk = 0;} in order to check if an uploaded file is of the right type. It would be nice if you switched that to this: if($imageFileType == "jpg" || $imageFileType == "png" || $imageFileType == "jpeg" || $imageFileType == "gif" ) { echo "Sorry, only PDF, PNG, JPG, files are allowed."; $uploadOk = false; } It is much more efficient because you don't need to check through every file type. Its not a big deal and I don't want to come across the wrong way with this. I just know a lot of people use your code without ever looking at it themselves. It should be a pretty easy fix and it just makes the code better on the site. Thanks for everything you guys do. Most of my html, css, and php knowledge has come from you guys. Keep up the good work. Link to comment Share on other sites More sharing options...
Francisco A.M. Posted July 2, 2020 Share Posted July 2, 2020 Null coalescing $x = expr1 ?? expr2 Returns the value of $x. The value of $x is expr1 if expr1 exists, and is not NULL. If expr1 does not exist, or is NULL, the value of $x is expr2. Introduced in PHP 7 https://www.w3schools.com/php/php_operators.asp En el ejemplo try it>>> No funciona la variable $_GET['user'] con el ejemplo, un saludo. Link to comment Share on other sites More sharing options...
M_M Posted August 11, 2020 Share Posted August 11, 2020 I would really like to see the examples changed to use exit() instead of die() Whilst die() is equivalent to exit(), in the PHP manual it is exit() that has the explanations and examples. die() is unnecessarily harsh and potentially triggering. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now