Jump to content

anupamsaha

Members
  • Posts

    251
  • Joined

  • Last visited

    Never

Everything posted by anupamsaha

  1. Change: <form> To: <form method="post" action="resersend.php">
  2. Look into cURL (http://php.net/manual/en/book.curl.php)
  3. Try this: <?php $a = 350000; $b = 360000000; $hmm = $a / $b; echo sprintf("%f", $hmm);
  4. It is possible to trigger two PHP scripts from one form, even from one click event. I have done this for click tracking for a site. This can be done through JavaScript, specifically jQuery AJAX.
  5. No worries. Here you go: echo '<div align="center"> <table border="0" cellpadding="10" cellspacing="0" width="969" background="imgs/reviewbox.png" height="157"> <tr> <td height="19" ><span class="font1">' . $jtitle . '</span></td> <td height="19" > <p align="right"><a href="review.php?review_id=' . $revid . '"><span class="font">View Full review</span></a></td> </tr> <tr> <td valign="top" colspan="2"><span class="font">' . substr($t,0, . ((strlen($t) > ? ' <a href="yourlink">Read more...</a>' : '') . '</span></td> </tr> </table> </div>'; If you are trying to take a variable, do this: <?php $t = "Your text"; $y = substr($t,0, . ((strlen($t) > ? ' <a href="yourlink">Read more...</a>' : ''); // see that I have enclosed the conditional statement in braces. echo $y; ?>
  6. ini_set("session.cookie_domain", "your_domain"); is this what you are looking for?
  7. So, is the issue with "stristr" or with "file_get_contents"? The error that you are seeing that is due to a setting of allow_fopen_url is turned off in you php.ini file and that is good for security reason. Still, if you want to open an remote URL through PHP, use cURL instead.
  8. http://www.plupload.com is really promising. Go ahead and use it. Let us know how it works.
  9. File chuck should be done in the client side before it goes to server. So, PHP might not be an ideal solution for this.
  10. Please mark the topic as "resolved" if you are satisfied with the help.
  11. @nivong: I see that you are writing Joomla code but not obeying the rule of Joomla. Writing JS like this will break the W3C validation for the page. Please see http://docs.joomla.org/Adding_JavaScript_and_CSS_to_the_page and stick to the standards of Joomla. You will stand apart from the others. Thanks!
  12. Your Wordpress installation should have a .htaccess file in the root. Please connect through FTP and download the file. Usually FTP clients will not list the file starting with a dot(.). Please find out how to list the hidden file in your FTP client. Then you should see this file in the list. Open it with "Notepad" or in any simple text editor (NOT IN MS-WORD) and add the following line after the line "RewriteEngine On": # redirect non-www to www RewriteCond %{HTTP_HOST} ^domain\.co\.uk RewriteRule ^(.*)$ http://www.domain.co.uk/$1 [R=301,L] Save and reupload the file back to the location from where you have download it. Please take a backup of the previous .htaccess file before downloading. Just in case.
  13. <?php $results = mysql_query("SELECT COUNT(*) AS totalCount FROM table"); $values = mysql_fetch_assoc($results); echo $values['totalCount']; ?>
  14. The theory would be like this: <?php $t = "Your text goes here Your text goes here Your text goes here Your text goes here Your text goes here Your text goes here Your text goes here Your text goes here Your text goes here"; echo substr($t,0,10), (strlen($t) > 10) ? ' <a href="yourlink">more...</a>' : ''; // taken 10 as limit. you can use 600 here or make it a variable. ?>
  15. Put the following at the top of the code and let me know what you see in the output: error_reporting(E_ALL); ini_set('display_errors', 1);
  16. $date1 = strtotime('-1 month');
  17. Can we see the code for 1) redirecting the customer to payment page and 2) redirecting back to your site from the payment gateway?
  18. Will serialize() and unserialize() help you? http://php.net/manual/en/function.serialize.php http://php.net/manual/en/function.unserialize.php
  19. Then take the JavaScript path to mask them before you upload them.
  20. Try $data = mysql_query("SELECT * FROM users WHERE users.bizname LIKE '%$bizname%' ");
  21. I didn't test the following, but it should be something like this: // FLOOR(1 + (RAND() * MAX(id)) is to randomly choose an 'id' from 1 (lowest) to MAX(id) (highest available) $getleftads = "SELECT * FROM `left_advert_banners` WHERE `id` = (SELECT FLOOR( 1 + ( RAND( ) * MAX( `id` ) ) ) ) ORDER BY id DESC LIMIT 1
  22. Hi all, I want to develop a Apache/PHP/MySQL based solution that will control the internet access from client PCs or Laptops. What I want to do here is to install the application only in a server where the internet is provided to the subscribers. Also, I would not install any client software at the subscribers' end. Subscribers will have a login screen while trying to access the internet and after a successful login (username/password), they should be able to access the internet. Can anyone put some light towards how to proceed about it? Thanks!
  23. I would suggest you to check couple of things. 1. If $config['asf_root'] has a training slash (/)? 2. If forum_functions.php has the read permission?
×
×
  • 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.