-
Posts
2,134 -
Joined
-
Last visited
-
Days Won
42
Everything posted by benanamen
-
Yes. You can setup a cron job to run a script that checks Mysql for a date to send the email.
-
Preg_match is your friend. Read the manual.
-
You have several other problems that have not been mentioned. 1. if(isset($_POST['submit'])) SHOULD BE if ($_SERVER['REQUEST_METHOD'] == 'POST') 2. You are using the obsolete <center> tag. On top of that, you are missing several closing </center> tags. You should be using CSS. 3. You are missing several closing </td> tags. If you used a proper IDE with syntax highlighting you would have seen that. 4. Using a <table> for formating went out in the 90's. Again, you need to use CSS 5. You need to use Prepared Statements 6. You have your closing </form> completely split in the logic from your <form> 7. Having two submit checks is redundant and completely unnecessary 8. You need to use htmlentities on your DB output. 9. You are missing numerous basic html tags. Doc type, body...etc.. 10. It's pretty clear you need to take some time and learn the basics before trying to move forward.
-
I need to combine 2 tests with an AND function
benanamen replied to steph3838's topic in PHP Coding Help
I give up. You cannot even answer a simple question. And no, I don't believe you. My 20+ years as a Software Engineer tell me that whatever you're trying to accomplish, your doing it wrong. Good luck! -
I need to combine 2 tests with an AND function
benanamen replied to steph3838's topic in PHP Coding Help
You seem to have missed the whole XY Problem thing. I don't care about your attempted solution. What is the overall thing that is to be accomplished. What is the REAL problem you are trying to solve, not how you are trying to solve it. Your code and arrays are completely meaningless to my question. -
Problems sending attachment and form informations by mail
benanamen replied to matheusrf's topic in PHP Coding Help
You are using obsolete insecure code that has been completely removed from Php. You need to be using PDO. Update your code and we will be happy to help. https://phpdelusions.net/pdo -
I need to combine 2 tests with an AND function
benanamen replied to steph3838's topic in PHP Coding Help
How about telling us what the overall task is so we can avoid the obvious XY problem. (See my signature) -
You are using obsolete insecure Mysql code that has been completely removed from Php. Your code is also vulnerable to an SQL Injection Attack. There is no fixing your code. You need to use PDO with prepared statements. https://phpdelusions.net/pdo
-
I just finished this video. I did not have this problem. Did you find out why you did?
-
In the currrent version of Laravel Blade has changed a bit from what the tutorial on Layout Files shows at https://laracasts.com/series/laravel-5-from-scratch/episodes/5?autoplay=true Take note of @show in the current version. Took me awhile to figure out there was changes from the video. Video instructions work, but again, not the current way of Blade Templating. Just reference the 5.3 docs here https://laravel.com/docs/5.3/blade
-
I have not got there yet. Keep in mind, those Laracasts are for an older version of Laravel.
-
It's been almost 5 years since the Op posted that. Pretty sure he has moved on and so should you. Don't bump threads that are eons old.
-
How to achieve this goal with SEO being a huge factor
benanamen replied to fastsol's topic in Application Design
I agree with @gizmola. You are not going to be able to re-purpose your existing site and scale it. You need to "blueprint" the whole thing out before you even write a single line of code. Doing an Enterprise level application is a whole lot different than doing a single site/company app. Right now, you don't know what you don't know. -
For sure! I was thinking, "Is this all there is to Authentication?". I also am going to git for exactly the same reason. The more I study Laravel, the more I am liking it.
-
You can use a Mysql View to map the columns.
-
How to achieve this goal with SEO being a huge factor
benanamen replied to fastsol's topic in Application Design
You said you have been working on the site for the past 7 years. That leads me to believe your code is probably outdated. Are you using Mysqli or PDO? If you're still using the obsolete mysql_* code, then you have even more work to do before you think about implementing your idea. You might want to consider posting your DB schema for us to review. If the DB design is flawed, that would be another thing to take care of before implementing something bigger. -
Request handling in my uploading / trans-loading script
benanamen replied to amirf3131's topic in PHP Coding Help
After consulting with the OP offsite, the solution to his XY problem is wget -i file_of_urls.txt -
How to achieve this goal with SEO being a huge factor
benanamen replied to fastsol's topic in Application Design
Still not right. You can check it yourself using this online tool http://www.webconfs.com/http-header-check.php -
How to achieve this goal with SEO being a huge factor
benanamen replied to fastsol's topic in Application Design
You need to set expose_php = off and then restart Apache. -
How to achieve this goal with SEO being a huge factor
benanamen replied to fastsol's topic in Application Design
I have verified you have fixed the Clickjacking. You still need to handle the X-POWERED-BY. I should not even be able to see what version your Php is. -
Request handling in my uploading / trans-loading script
benanamen replied to amirf3131's topic in PHP Coding Help
Give me your Skype. -
Auth is really simple. There are only a few steps. Do this quick tutorial on Auth and see if it answers your questions. I am still learning this. http://www.hc-kr.com/2016/09/laravel-5-authentication-login-registration-form.html The Laracasts are really good, but were for a bit older version so some things are slightly different such as routes.php not existing in the current version. (Now routes/web.php). I suggest you just go through these videos step by step and then see if you are left with any questions at the end. https://laracasts.com/series/laravel-5-from-scratch
-
Request handling in my uploading / trans-loading script
benanamen replied to amirf3131's topic in PHP Coding Help
I am available. The site wont let me PM you. -
You are using obsolete insecure code that has been completely removed from Php. You need to be using PDO. Update your code and we will be happy to help. https://phpdelusions.net/pdo
-
How to achieve this goal with SEO being a huge factor
benanamen replied to fastsol's topic in Application Design
Before you do anything you might want to secure your server better. You are running an outdated version of Php and your site is vulnerable to a Clickjacking Attack.