Search found 14 matches
- Mon Sep 11, 2006 2:14 pm
- Forum: PHP - Code
- Topic: Ebay Wishlist : Need tfix a thing about CURL in HTTPS
- Replies: 1
- Views: 284
Ebay Wishlist : Need tfix a thing about CURL in HTTPS
feyd | Please use , and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color] Hey!! Nee...
- Tue Aug 08, 2006 8:44 pm
- Forum: PHP - Code
- Topic: Error: PHP Warning: rand() expects parameter 1 to be long
- Replies: 15
- Views: 2572
The Ninja Space Goat wrote:1) have you read the manual corresponding to this function?
http://us3.php.net/manual/en/function.rand.php
2) The reason for the extra errors is because you are sending output before headers (var_dump outputs information about a variable)
Thanks Ninja! I'm now checking that site
- Tue Aug 08, 2006 8:42 pm
- Forum: PHP - Code
- Topic: Error: PHP Warning: rand() expects parameter 1 to be long
- Replies: 15
- Views: 2572
Nope, its not!Jenk wrote:so the var_dump() isn't outputting anything?
nothing like:Code: Select all
string (9) "something."
- Tue Aug 08, 2006 8:34 pm
- Forum: PHP - Code
- Topic: Error: PHP Warning: rand() expects parameter 1 to be long
- Replies: 15
- Views: 2572
- Tue Aug 08, 2006 8:32 pm
- Forum: PHP - Code
- Topic: Error: PHP Warning: rand() expects parameter 1 to be long
- Replies: 15
- Views: 2572
- Tue Aug 08, 2006 8:22 pm
- Forum: PHP - Code
- Topic: Error: PHP Warning: rand() expects parameter 1 to be long
- Replies: 15
- Views: 2572
hint: function getWordArt($word) { $imword = new WordArt($this->width,$this->height); $imword->setFontDirectory($this->wordart['dir']); $imword->setWord($word); $imword->setCapital($this->wordart['capital']); var_dump($this->wordart['angle']); $imword->setTextAngle(rand($this->wordart['angle'],5));...
- Tue Aug 08, 2006 8:14 pm
- Forum: PHP - Code
- Topic: Error: PHP Warning: rand() expects parameter 1 to be long
- Replies: 15
- Views: 2572
- Tue Aug 08, 2006 8:11 pm
- Forum: PHP - Code
- Topic: Error: PHP Warning: rand() expects parameter 1 to be long
- Replies: 15
- Views: 2572
Dude, post lines 75 - 80. Rand() expects to be passed a number, not a string. The error is telling you that you are passing a string to the rand() function somewhere on or about line 78. EDIT | I should clarify that statement. If you choose to pass it a value, it needs to be numeric. I am new at PH...
- Tue Aug 08, 2006 8:10 pm
- Forum: PHP - Code
- Topic: Error: PHP Warning: rand() expects parameter 1 to be long
- Replies: 15
- Views: 2572
function getWordArt($word) { $imword = new WordArt($this->width,$this->height); $imword->setFontDirectory($this->wordart['dir']); $imword->setWord($word); $imword->setCapital($this->wordart['capital']); $imword->setTextAngle(rand($this->wordart['angle'],5)); $imword->setFontColor($this->wordart['co...
- Tue Aug 08, 2006 7:57 pm
- Forum: PHP - Code
- Topic: Error: PHP Warning: rand() expects parameter 1 to be long
- Replies: 15
- Views: 2572
Error: PHP Warning: rand() expects parameter 1 to be long
Hey, Now I;m getting this error: PHP Warning: rand() expects parameter 1 to be long, string given in /hermes/web06/b932/hy.agl01/captcha/class.captcha.php on line 78 Here is the class.captcha.php File: <?php ###### ## VeriWord ## A PHP CAPTCHA System ## Version 2 ####### require_once("class.noi...
- Tue Aug 08, 2006 5:15 pm
- Forum: PHP - Code
- Topic: Error: rand() expects parameter 2 to be long
- Replies: 8
- Views: 1299
- Tue Aug 08, 2006 4:49 pm
- Forum: PHP - Code
- Topic: Error: rand() expects parameter 2 to be long
- Replies: 8
- Views: 1299
- Tue Aug 08, 2006 4:44 pm
- Forum: PHP - Code
- Topic: Error: rand() expects parameter 2 to be long
- Replies: 8
- Views: 1299
- Tue Aug 08, 2006 4:12 pm
- Forum: PHP - Code
- Topic: Error: rand() expects parameter 2 to be long
- Replies: 8
- Views: 1299
Error: rand() expects parameter 2 to be long
Hey, Help needed!! I have got this two error! PHP Warning: rand() expects parameter 2 to be long, string given in /hermes/web06/b932/hy.agl01/captcha/class.captcha.php on line 78 PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /hermes/web06/b...