Jump to content

paparts

Members
  • Posts

    46
  • Joined

  • Last visited

Everything posted by paparts

  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?
  15. Are you using xampp? If yes then you can start apache and php through its control panel.
  16. php.ini is found on php installation folder.
  17. Indeed wamp uses a blank password for default root user. By default phpmyadmin should work because it is already preconfigured to work after installation. Make sure your cookies support is enabled on your browser.
  18. tpl files are template files using smarty template engine. A simple {php} php code here... {/php} is the tag needed for you to execute php codes in a tpl file so as tmpl files. If you need more info about using the tag, you can visit smarty.net
  19. Hello Guys, I have a problem with the script I developed, the url of most links looks like index.php?category=fruits The script is running on an IIS server. Is there anyway to make the url a lot friendly? like that of mod_rewrite? I searched everywhere yet all I can find are some new stuff for IIS to mimic mod rewriting.
  20. thanks for the quick reply? can I have some starter codes? Thanks
  21. How do you find my blog? http://www.icpep.org
  22. Hi everyone, I am developing a mass mailer and im using PHP and I would want the mailer to have a dim effect while sending email messages to lots of emails. Its something like the thickbox. The background is dimmed and only an image is in the center and that image can be the loading gif image. and when the process of sending is over the dimmed background should be closed. Can you guru's help me out on this? Ive been searching also and I cant seem to find similar aps on the net. Thanks
  23. But why? I tried it and it worked...
  24. When I use images i just put all the images on a folder and on the database I just store the directory and the file name. One example in php is $db_path = 'images/' . $filename; <img src="$db_path" />
×
×
  • 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.