-
Posts
4,953 -
Joined
-
Last visited
Profile Information
-
Gender
Male
-
Location
Austin,Texas
darkfreaks's Achievements
Advanced Member (4/5)
6
Reputation
-
what is "Fatal error: Unsupported operand types in" mean?
darkfreaks replied to sigmahokies's topic in PHP Coding Help
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>"; } } ?>- 9 replies
-
- vertical data
- php
-
(and 3 more)
Tagged with:
-
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>
- 7 replies
-
- rsa
- encryption
-
(and 2 more)
Tagged with:
-
here is a phpseclib link that shows examples how to do this http://phpseclib.sourceforge.net/rsa/examples.html#encrypt,enc2
- 7 replies
-
- rsa
- encryption
-
(and 2 more)
Tagged with:
-
GD Library - Colorize Non-transparent areas in image
darkfreaks replied to mouseywings's topic in PHP Coding Help
colorizing an image(GD): http://php.net/manual/en/function.imagefilter.php example: http://blog.svnlabs.com/php-colorize-an-image-using-gd/#.VCAxAGO0thE -
also print_r($xml, 1); // print_r does not accept an integer as boolean change to: print_r($xml, true);
-
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.
-
$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
-
how does this site work? re: facebook share post image
darkfreaks replied to Dreamer67's topic in PHP Coding Help
https://github.com/craig552uk/getImage/blob/master/getimage.php -
might be easier to use a framework for that like PHPmailer make sure you format your headers right to avoid spam filters.
-
My database won't connect to my testing server!?
darkfreaks replied to lowheartrate's topic in MySQL Help
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.- 6 replies
-
- testing server
- testing
-
(and 3 more)
Tagged with:
-
Form Validation Script - required attribute for lists
darkfreaks replied to wicksworks's topic in Third Party Scripts
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.- 4 replies
-
- form
- validation
-
(and 2 more)
Tagged with:
-
[Help] Need help in adding sms verification [Help]
darkfreaks replied to JayKapoor's topic in Third Party Scripts
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 -
Display the FullName of a logged-in user
darkfreaks replied to pritithangjam's topic in PHP Coding Help
Recommended: Declare your variables. Or use isset() to check if they are declared before referencing them.