Jump to content

paparts

Members
  • Posts

    46
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

paparts's Achievements

Member

Member (2/5)

0

Reputation

  1. The first thing is that your live server could be using a newer version of PHP that is why some of the predefined functions are no longer working. Second would be to replace the deprecated functions with the version supported by your live server's PHP. You can refer to PHP's manual for an alternative function http://php.net/manual/en/function.eregi.php http://php.net/manual/en/function.split.php
  2. Greetings to all, Has anybody used this implementation of pbkdf2? http://crackstation.net/hashing-security.htm#phpsourcecode
  3. 1. Yes its possible: <script type="text/javascript"> jQuery(document).ready(function(){ setInterval(function() { jQuery('#tinydiv1, #tinydiv2').slideDown(time).delay(time).slideUp(time); }, time); }); </script> 2. There are a lot of ways to do it sideways sideways One approach is to change the div's css and another is the one I prefer using jQuery: <!DOCTYPE HTML> <html> <head> <style type="text/css"> #d1,#d2 { display:none; } #d1 {background: blue; margin:10px 0px;} #d2 {background: red; } </style> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script> <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script> </head> <body> <div id="d1">I am div 1.</div> <div id="d2">Div 2 here.</div> <script type="text/javascript"> jQuery(document).ready(function(){ setInterval(function() { jQuery('#d1, #d2').show("slide", { direction: "right" }, 1000).delay(4000).hide("slide", { direction: "left" }, 1000); }, '2000'); }); </script> </body> </html> You can copy the whole thing and see. Use also CDNs for jQuery and jQueryUI to load faster in the user end.
  4. I havn't used phpdesigner but for rapidPHP it works great, code highlighting is also great. But I would go for netbeans it works the same way and its free
  5. I am a netbeans user. I always use tab and I'm comfortable with it. No f*** ups so far
  6. If you have a mail server you can use php's mail function as what vixsair stated. But if you don't have a mail server you can try to relay it with gmail... Here is a link on how to do it: http://www.icpep.org/use-gmail-account-to-relay-email-from-php-mail-function/
  7. This happens because the services are still running. Try to check the services if they are still running. try to stop them first before reinstalling
  8. Check the services running. If port 3306 (which is used by mysql) is already used your wamp server will not fully start also same as the webserver which is port 80 (apache). Try to kill that process first. You can check it under services or if not you can try check on task manager and the process tab. You can select the process and and click end process.
  9. jQuery <script type="text/javascript"> jQuery(document).ready(function(){ jQuery('#tinydiv1, #tinydiv2').slideDown(time).delay(time).slideUp(time); }); </script> HTML <div id="tinydiv1"></div> <div id="tinydiv2"></div> CSS #tinydiv1, #tinydiv2 { display: none; }
  10. try this one redirect 301 "/text/text2" http://www.testing.com/text/text2-extra-text
  11. you can add mysql_escape_string for every field or just create a function for it. lol
  12. select * from table where age >= 20 and age <=70;
  13. Here is how I use to crawl websites and extract the links, I think you can use this: <?php $input = @file_get_contents('http://www.icpep.org'); $regexp = "<a\s[^>]*href=(\"??)([^\" >]*?)\\1[^>]*>(.*)<\/a>"; if(preg_match_all("/$regexp/siU", $input, $matches, PREG_SET_ORDER)) { foreach($matches as $match) { $urlregex = "^(https?|ftp)\:\/\/([a-z0-9+!*(),;?&=\$_.-]+(\:[a-z0-9+!*(),;?&=\$_.-]+)?@)?[a-z0-9+\$_-]+(\.[a-z0-9+\$_-]+)*(\:[0-9]{2,5})?(\/([a-z0-9+\$_-]\.?)+)*\/?(\?[a-z+&\$_.-][a-z0-9;:@/&%=+\$_.-]*)?(#[a-z_.-][a-z0-9+\$_.-]*)?\$"; if (eregi($urlregex, $match[2])) { echo trim($match[2])."<br />"; } } } ?>
  14. Hello All, I have a project to setup a private cloud and create a saas for the teachers use. I'd like to ask any suggestions on how create the SaaS. Please see the image attached for my initial plan. The servers above are all in a cloud server(instances). I will create a single server for general use(where all users{teachers} of different schools are stored). Every cloud server has the same setup(LAMP) and same applications(SaaS) with different owners. Every teacher needs to login on the loginserver and after authentication the user will be redirected to the the school's respective cloud server. Problem: Is this possible? Should I store every schools DB access on the loginserver and connect them to the database where they should store everything they need? Can you suggest how to construct the database wherein I can trace the users who logged in?
×
×
  • 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.