Jump to content

j9sjam3

Members
  • Posts

    47
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

j9sjam3's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hello. I am trying to override a library class. I am developing with Zend Server CE. If I put the class into /library/Zend/{class}.php, would it automatically override the one "installed" with Zend Server CE? Thanks.
  2. Hello. I am implementing a CMS with constantly changing pages and constant updates. I am wondering if it is better to make it all MySQL based or static pages (new pages are created by PHP when they are created). Thanks.
  3. Wrong forum. What are you trying to achieve? Why would anyone go to the books.php?class=sales page anyway?
  4. I mean, have an allowed folder array? So whoever only has access to certain folders. This is also better for security.
  5. If you just store the IP address in the database then you can check if the user is on the same IP address?
  6. Why couldn't you just make an allowed array instead? Would save a lot of trouble...
  7. If you handle sessions via the database, you can add an expiry date. Check this out: http://stefangabos.ro/php-libraries/zebra-session/
  8. I will attempt to explain the differences between file_get_content and include. File get content does what it says on the tin. It liturally GETS the content and does nothing with it. It makes it act like an HTML file. So if the files content was this: <?php echo "something cool here; ?> And your page was: <?php echo file_get_content("pathToFile.php"); The page would display: On the other hand, if you were to have an include statement: <?php include("pathToFile.php"); The page would display: Hope this helps a little.
  9. Read this It will really help with what your doing.
  10. Try: <?php if(!isset($_SESSION['anObject'])) { // Is NOT logged in } else { if($_SESSION['anObject'] != "some_string_or_whatever_here_to_stop_spoofing") { // Is NOT Logged in } else { // is Logged in }
  11. Can't you use .htaccess to rewrite the URL's? e.g. File: search.php?q=searchterm Will be seen in URL as: search/searchterm/
  12. Couldn't you just use a function to connect (function conn($hosst, $user, $pass etc)) and log from that?
  13. Can anyone help? Would be much appreciated...
  14. Search for image upload on Google. http://www.w3schools.com/php/php_file_upload.asp Should handle it.
×
×
  • 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.