Jump to content

jazzman1

Staff Alumni
  • Posts

    2,713
  • Joined

  • Last visited

  • Days Won

    12

Everything posted by jazzman1

  1. Save the output into a log file or send it to a database into sapared columns. Can you tell us all strory?
  2. You could start your first posting showing your script. If you have some actual error(s), would help.
  3. No, you are right! Don't trust it! The hidden field's value can be overriden from some malicious user very easy. For that reason the size of the file must be checked on the server as well.
  4. What result you're expecting if the member_id = 1 ?
  5. We need to see the content(script) of that sms.php file.
  6. Change the position of the hidden filed to be under the file in the form. Why this happens with .jpg, .png and .pdf files? I don't know the answer There is no such thing as a problem with mp3 for instance. <?php if(isset($_POST['MAX_FILE_SIZE']) and $_POST['MAX_FILE_SIZE'] == 30000) { echo "<pre>".print_r($_POST,true)."</pre>"; echo "<pre>".print_r($_FILES['userfile'],true).'</pre>'; } ?> <form enctype="multipart/form-data" action="upload_check.php" method="post"> <input type="file" min="0" max="100" name="userfile[]" multiple="true" /><br /> <input type="hidden" name="MAX_FILE_SIZE" value="30000"> <input type="submit" value="Post"> </form> Result:
  7. There is no problem with the png file. Result: Maybe, you have something wrong in your script, but the file is fine.
  8. You need to compare the value from "rootpass" constant and value from html input field, named - rootpass! Try, $rootpass = trim($_POST['rootpass']); if($rootpass != rootpass) { print"Wrong Password"; } else{ header("Location: http://www.google.de"); exit; // don't forget to call the exit command to terminate the script }
  9. Unfortunately, I am also a GUI invalid in Linux and not able to provide my help effectively with cPanel
  10. PHP is NOT C $rootpass = $_POST['rootpass']; if(rootpass!==rootpass1) Which one is a constant and variable?
  11. This could cause furter problems
  12. Well, then it's easy Check this out. I also need the output of: ls -la path_to_the_file
  13. Since, you don't know that you are on shared hosting environment Open up a cronjob manager and create multiple cron jobs with different titles by frequency at 5min. I think there is a limmit by 8 jobs in 1 hour.
  14. First, check how to find the computing path to the config.php file for your operating system (windows). Second, don't try to include the same path twice in different variants! Use either include (include_once) or require (require_once). Third, I don't see when you defined a rootpass1 constant in your script to compare the values with the rootpass constant.
  15. A shared or dedicated server?
  16. Too many things. Start with the path.
  17. Why are you thinking it is a cron's problem? Are you able to load the content from remote URL without cron? The file that contains the command line above, it should have executable rights.
  18. I'm going to play tennis and don't have the time right now to get into it. Go to phpMailer web site and check what the proper format is, when you're sending multiple emails, b/s I think this is wrong.
  19. Post the index.php file here without any modification. Use the code (<>) tags.
  20. After $to = $_user['user_email']; foreach ($rowsUser as $_user) { $to = $_user['user_email']; echo $to; //here if ($to != '' && $sendmailbody != '') { //Create a new PHPMailer instance ........................................ Don't show me the full list of emails only the pattern (format). Also, Use prepared statements and parameterized queries to prevent SQL injection(s) in PHP.
  21. Can I see the output of $to variable?
  22. What happens if you try to comment the $result variable? $sql="INSERT INTO sc_messages (`smg_from`, `smg_to`, `smg_subject`, `smg_body`, `smg_sent_del`, `smg_postdate`, `scm_bulletin`, `send_cron`) VALUES ('1','$ft','Featured Alert','$txt_sb_body','1','$time', '6', 'N')"; //$result = mysql_query($sql);
  23. Where the index.php file is? Is this file to vote where you posted above?
  24. I don't see any js errors in my firebug.
  25. Can you decipher this date format for me, please? I'm not very smart.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.