Jump to content

gizmola

Administrators
  • Posts

    5,960
  • Joined

  • Last visited

  • Days Won

    146

Everything posted by gizmola

  1. No you don't. Websites all across the internet get along fine without using it. Maybe if you explained what you are trying to do, we could explain to you how you could do it without using an iframe.
  2. The wildtangent plugin might be something you want to look at. As far as calling directx functions from PHP, I suppose conceptually that's possible.
  3. An iframe is basically a little mini browser window inside your page. That is to say, that wherever you use an iframe, you can embed a totally independent web page. In general the iframe should be avoided.
  4. Basically you backed yourself into a corner by giving out misinformation, and now you don't want to admit you were wrong? md5() shouldn't be used for encryption/decryption. The "rules" were made by the people who devised the algorithm. As better solutions have now been provided, I guess we can move on. As an aside, hostility on this forum is something we try and avoid.
  5. Morpheus: md5() is a one way hash. It was not meant to be used for encryption/decryption and should not be used for such, even via an exploit. Furthermore it's clear from the question that the source (SSN#) is more than 5 characters. With php the standard way to do encryption/decryption is to use the mcrypt library: http://us4.php.net/mcrypt
  6. Start reading the php manual at php.net.
  7. I picked up that you were not a native english speaker. I understand Cody's points, but I also get the feeling you were not trying to use "Dewdspeak" or any of the other annoying things that often help indicate that the person is just going to end up wasting our time. Also, we did outline in our forum posting guidelines that it is never ok here to mention your urgency. Nobody here could care less about the deadlines of people asking for free help. With that said, one key point not to overlook, is the availability of Cody's ext_skel replacement, that he rather humbly mentioned. Read the past messages in this forum for more details. Best of luck.
  8. How did you update your site? Typically people use ftp to upload changes/new files. Any ftp client will allow you to ftp to your site and copy the files back to your computer. Dreamweaver has this capability built in as well, as mentioned in one the of the previous responses to you.
  9. Don't crosspost. Read the forum posting guidelines, link in my sig.
  10. I am personally not going to read posts here anymore. I will be reading them over at the Mysqlfreaks.com forum.
  11. I agree with your comment, except for this part: As you stated, if the database is focused on recording data about students, including classes taken, grades given, teachers etc... then this should be reflected in a normalized database structure. Here\'s a quick data model I did illustrating a full featured database model with a few assumptions made, that -Records All classes by subject -Records a semester (grade period in this model) where class was offered -Indicates teacher who taught class for semester -Records students in the class -Records tests given to class -Records grade for each student for each test given in class This supports any number of teachers, students and classes in combination. It doesn\'t support a class having more than one teacher, but that could be easily added at the cost of a little more complexity.
  12. You definately do not need mysql. If you\'re content to use flat files for any storage you can learn quite a bit of php without touching any of the database api\'s. PHP supports all sorts of databases, and the main reason that it is synonymous with PHP is that compared to most relational databases, mysql is very easy to install and get running (and of course it\'s open source and free) You\'re absolutely right.. that learning these seperate disciplines can be extremely confusing. When the time is right, leann about SQL, relational database design and use, and mysql, then come back to PHP and the mysql functions.
  13. Could you describe why you would have bunch of tables with different people\'s \"Usernames\" in the tablename? Is this for educational purposes... for a school where students will be learning using tables? If so, each student should have their own database, and in that case, the tables will all have the same names. If there\'s some other reason for this design, I suspect you\'ve gotten off on the wrong track.
  14. Can we get some terminology straight? You say you have 2 fields called sales and price, but it sounds like you have two \"Tables\". Mysql works like this: Database contains --Tables are defined by a set of ----Columns You insert Rows into a Table. (A row is synonymous with a \"Record\" or \"Tuple\") Your misuse of the proper terminology makes it impossible to answer your question with anything but a guess.
  15. Did you try and just use the mysql command line utility?
  16. MySQL doesn\'t support subqueries, except perhaps in the most recently released (beta?) version(s). Check your version to determine the status... I don\'t keep abreast of what\'s going on with MySQL development status well enough to give you the specifics.
  17. Ok, you can then order by that column without applying any type of format. Formatting is converting the column to a string, and it\'s underlying format is an integer which will intrinsically sort as you would expect. If you want to format the columns for display, that is not a problem and can be done seperately from the order by, which is to say that you can have columns in your order by that are not in your select list. In your example, simply use a different alias for your formatted date, rather than re-aliasing the original column name and all should work as you want it to.
  18. All I can suggest is that you look at re-installing mysql again. If the chown command didn\'t work then I would submit that you\'ve missed something, or misunderstood a direction. Some things to check out: Your my.cnf file. Take a look at this and verify that your directories are pointing to where they should be and that permissions are appropriate. For example, does your datadir directory have these permissions: drwxr-xr-x 20 mysql mysql 4096 Dec 30 02:58 mysql I suspect your initial issues with permissions may be the root of your series of problems.
  19. All I can suggest is that you take a look at the error logs for mysql and try and determine why it crashed. Security is just a function of entries in a few mysql database tables. There\'s nothing I can think of that would explain what you are seeing.
  20. Using the GRANT SQL statement you can create new users and GRANT them access to resources. Mysql has a data dictionary in the mysql database. The admin account can see this database but other users usually can\'t. There are a couple of tables that get updated when you use the GRANT command: user and db. Between these two tables mysql handles security.
  21. Mysql has a data dictionary which is a database called mysql. If you can use that database, you can set permissions for individual users by using the grant statement (which also allows you to create users). I have a few examples in a mysql section of the tech page off my homepage. Link is in my sig. If you are in a hosted environment, chances are you have had a database user created for you, and will not have access to the mysql database.
  22. What type is the column you are trying to order by?
  23. If people are able to upload scripts to your webspace, then that\'s where your security problem lies. Using the raw functions will do nothing at all unless people know that you have certain include files that you use which provide a database connection.
  24. Well the problem as I understand it is that your RewriteCond\'s are Ands. So i If 1st condition AND 2nd Condition And 3rd Condition. Hence when you have will not work, because while the http://domain.etc does match the first regex, it will not match the 2nd, and so it falls through. Anything to do with mod_rewrite is tricky, but I\'d question why you are trying to make two different rules when one can satisfy both conditions. On the other hand, simply adding the OR to your Flags might work. If you want to try my swag at having only one rule: RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://(.*.|)domain.(.*)/.*$ [NC] RewriteRule (.*.(gif|jpg|avi|mpg|mp3|wmv|wma|rm)$) http://domain.com/hotlinking.php [R,NC] For your existing rule, it\'s certainly worth trying this first however: RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://domain.(.*)/.*$ [NC,OR] RewriteCond %{HTTP_REFERER} !^http://(.*).domain.(.*)/.*$ [NC] RewriteRule (.*.(gif|jpg|avi|mpg|mp3|wmv|wma|rm)$) http://domain.com/hotlinking.php [R,NC]
  25. Are you using the same user that phpnuke is configured with?
×
×
  • 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.