Search found 14 matches

by koolheaven
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...
by koolheaven
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 :idea:
by koolheaven
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

Jenk wrote:so the var_dump() isn't outputting anything?

nothing like:

Code: Select all

string (9) "something."
Nope, its not! 8O
by koolheaven
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

Jenk wrote:any other output?
At 1st I was getting rand() expects parameter 2 to be long, but after putting the value 5, It turns to parameter 1 !! :o
:evil:
by koolheaven
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

yah line 78!
by koolheaven
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));...
by koolheaven
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

$imword->setTextAngle(rand($this->wordart['angle'],5)); What is the value of $this->wirdart['angle'] ? var_dump() it to see.. Um.. It was edited, cuz I get the error: Rand() expects parameter 2 to be long Privious was: $imword->setTextAngle(rand(-$this->wordart['angle'],$this->wordart['angle']));
by koolheaven
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...
by koolheaven
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...
by koolheaven
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...
by koolheaven
Tue Aug 08, 2006 5:15 pm
Forum: PHP - Code
Topic: Error: rand() expects parameter 2 to be long
Replies: 8
Views: 1299

IC
by koolheaven
Tue Aug 08, 2006 4:49 pm
Forum: PHP - Code
Topic: Error: rand() expects parameter 2 to be long
Replies: 8
Views: 1299

I am now getting just 1 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


Pls help me how I can recover it too!

Thanks a lot!
by koolheaven
Tue Aug 08, 2006 4:44 pm
Forum: PHP - Code
Topic: Error: rand() expects parameter 2 to be long
Replies: 8
Views: 1299

Main problem is PHP page was edited by Frontpage and added hyml tags. (A new Web designer did it) After that Its not working!
by koolheaven
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...