Jump to content

requinix

Administrators
  • Posts

    15,229
  • Joined

  • Last visited

  • Days Won

    427

Everything posted by requinix

  1. What do you have now after merely adding what I posted into what you already had?
  2. RewriteRule doesn't include the query string. Add a RewriteCond %{QUERY_STRING} ^$
  3. To see if they've entered only numbers and nothing else? ctype_digit
  4. You're missing a couple underscores $user_login = preg_replace('#[^A-Za-z0-9]#i', '', $POST["user_login"]); // filter all characters but numbers and letters $password_login = preg_replace('#[^A-Za-z0-9]#i', '', $POST["password_login"]); //filter all characters but numbers and lettersand you haven't shown the code that comes before so I don't know if you're missing a session_start() too.
  5. As long as PHP is installed, you're using the right file extension (typically .php, perhaps .php5), and you're using the long open tags (<?php) then the script should work. If it isn't working then probably one (or more) of those conditions aren't being met.
  6. How are you supposed to get a screenshot when you can't even put the site on the screen?
  7. Are you sure your hosting supports PHP? Who do you have?
  8. You don't have PHP installed. The solution is to install PHP.
  9. You can't use a with a .
  10. if (isset($_POST['Go'])) {That's never closed.
  11. You did notice that it's the mysql extension that is going away, right? MySQL will still be supported through better extensions like mysqli and PDO.
  12. But if the section thing is missing your code will continue onward and try to show the section stuff. Rather than test if the section is missing, how about checking if it's present? If it is then show the section stuff, otherwise don't.
  13. For the record, if you didn't see it the problem was "copy /Y defpic0.jpg C:\webserver\dev\book\images\\room0\defpic0.jpg"not escaping the \b. That's a metacharacter and it probably would have appeared in Notepad as copy /Y defpic0.jpg C:\webserver\devâ–ˇook\images\room0\defpic0.jpg
  14. Look closely at the command in the batch file itself and you should see where the problem is. [edit] By the way, if all you're doing is executing the file immediately after making it, why not just execute the individual commands in PHP directly?
  15. Move the files someplace not web accessible and then make a PHP script which reads and outputs them. <a href="download.php?file=How%20to%20Fish.docx" target="_blank">How to Fish</a>Be sure to validate that file name: doesn't contain any directory information, file exists, etc. readfile is one way to output them, as in header("Content-Type: application/octet-stream"); header("Content-Length: " . filesize($file)); header("Content-Disposition: attachment; filename=\"" . basename($file) . "\""); readfile($file);Once that's done you can make the URLs look nicer (if that's a concern) with URL rewriting.
  16. Well, I think a good first question would be "How much PHP do you know?" Because you'll have to write some code.
  17. Seeing as how your question is Yes. As for the question you implied, try either glob with new code to use it, or keeping your current code and making it check the extension of $file.
  18. You cannot show content and redirect at the same time. You have to decide what to do: do you show the user information or do you redirect? Sounds like what you want to do is show the user information. If so then the "bio" thing has nothing to do with redirecting because if it's present you show user+bio information and if it isn't you show only the user information. In other words, don't redirect.
  19. If you just want to know if there's matching rows you can also SELECT 1 FROM table WHERE conditions LIMIT 1If you get back anything at all then you know there's at least one.
  20. I didn't answer that?
  21. I think you can get away with simply reversing the order of the arrays. Descending order by $old. But I haven't looked at all the numbers.
  22. When clicked? But it's a link, it'll send them to another page when they click it...
  23. $ass = $annoying->children('xml', true);Close. Did you know there's a similar method just for attributes?
  24. if (submit button was pressed && they are not trying to follow themselves) { add them as a follower to the other person; }
×
×
  • 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.