Jump to content

darkfreaks

Members
  • Posts

    4,953
  • Joined

  • Last visited

Profile Information

  • Gender
    Male
  • Location
    Austin,Texas

darkfreaks's Achievements

Advanced Member

Advanced Member (4/5)

6

Reputation

  1. fixed it up for you, had several syntax errors causing issues also using count() instead of num_row() <?php $columns = 2; if(isset($_GET['member'])) { $display = ceil(count($_GET['member'])); $rows = ($display / $columns); while ($row = $display) { $data[] = $row; } echo "<table border='1'>"; for($i = 0; $i < $rows; $i++) { echo "<tr>"; for($j = 0; $j < $columns; $j++) { if(isset($data[$i + ($j * $row)])) { echo "<td>".$data[$i + ($j * $row)]."</td>"; $count = $count+1; } } echo "</tr>"; } } ?>
  2. have you tried adding the header? response.addHeader("Access-Control-Allow-Origin","*"); // allows all domains
  3. example of how to do an offsite request using CORS: http://www.html5rocks.com/en/tutorials/cors/
  4. should read up on how sign() and verify() work before you attempt to fool around with it. http://search.cpan.org/~vipul/Crypt-RSA-1.99/lib/Crypt/RSA/SS/PKCS1v15.pm Here's an example of how to create signatures and verify signatures with this library: * <code> * <?php * include 'Crypt/RSA.php'; * * $rsa = new Crypt_RSA(); * extract($rsa->createKey()); * * $plaintext = 'terrafrost'; * * $rsa->loadKey($privatekey); * $signature = $rsa->sign($plaintext); * * $rsa->loadKey($publickey); * echo $rsa->verify($plaintext, $signature) ? 'verified' : 'unverified'; * ?> * </code>
  5. here is a phpseclib link that shows examples how to do this http://phpseclib.sourceforge.net/rsa/examples.html#encrypt,enc2
  6. colorizing an image(GD): http://php.net/manual/en/function.imagefilter.php example: http://blog.svnlabs.com/php-colorize-an-image-using-gd/#.VCAxAGO0thE
  7. also print_r($xml, 1); // print_r does not accept an integer as boolean change to: print_r($xml, true);
  8. you had a Syntax error there was no closing paren ) to the cookies part of the code here is the corrected line below curl_setopt ($ch, CURLOPT_COOKIE,"Användar Cookies Go Here"); if you continue receiving errors please paste the error below.
  9. $slider_pagination = get_the_title(); // just echos the title change to: $slider_pagination = echo '<a href="' . get_permalink($post->ID) . '">' .get_the_title() . '</a>'; // now becomes a linked title
  10. https://github.com/craig552uk/getImage/blob/master/getimage.php
  11. might be easier to use a framework for that like PHPmailer make sure you format your headers right to avoid spam filters.
  12. yeah what the video says you need a testing server setup & configured properly before you connect in DW (WAMP) it also shows you how to setup a localhost using DW & connect.
  13. http://www.html-form-guide.com/php-form/php-form-validation.html should read how to use the class first. maybe you would get more of an idea how it works.
  14. you need a SMS gateway like Twilio https://www.twilio.com/blog/2012/04/build-a-simple-phone-verification-with-twilio-php-mysql-and-jquery.html
  15. Recommended: Declare your variables. Or use isset() to check if they are declared before referencing them.
×
×
  • 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.