![]() |
pleeeeze test this for me.
http://johnm666.homestead.com/files/song.php.txt its my first stab at doin anything with php, it someone else's code for the most part |
hey John, YGM
|
FYI, BYOB ASAP. GSM NG DUI MIA DOA FCC. ATC FIAA IUPAC FIFA. ILO CAT4 HTML WAP SAC.
|
In the array() function, all your strings must be properly quoted and separated by commas. By "properly quoted" I mean that phrases containing double quotes must be enclosed in single quotes, and vice versa. Read the PHP docs on strings for details.
You don't need the sprintf() call because there isn't anything to substitute into $chosen anyway. Scrap that whole "$sentence = sprintf..." statement, and in all subsequent lines change all occurrences of "$sentence" into "$chosen". |
orig:
code: corrected? code: btw, it's mainly griffins code in this thing. |
Have you read the docs yet? Please do.
But here's some quick observations: The ImageString() function can't handle line breaks, so you should make sure there aren't any line breaks in each of your strings. For example, this string would contain a line break (and is bad): This doesn't (and is good):code: code: Strings that contain single quotes (i.e. apostrophes) should be enclosed in double quotes. For example, this will NOT work: This is OK:code: code: Lines that begin with // normally are comments and will be ignored, but within the context of an unclosed string (i.e. you've started the string with the first double quote but haven't closed it with the second double quote), they will be included as part of that string. This is probably not the effect you want. |
Quote:
|
KIA INRI RIP GNU DoD TGIF CB CO FFT PB&J. SETI CFC HO IHOP IMF. TWA SLA NGO GE. SOS OS AID BO BMW.
|
need a more complamacated example than griffinns'?
john heres my script:
code: if you dont want the ip thinger, omit {{double-bracketed}} text: code: and take out all the '%s' arguements in the phrase array. my sig is like psy's and griffinns' mashed together in a big ball of code. if you need any more explanation, lemmie know hope that helps in some way :) [edit]the best php enabled server is probably f2s http://www.f2s.com [/edit] |
Quote:
Quote:
|
yeah, see that sucks. i would coded one that was like
ROTFLMAO! I hacked %s at %t! where %s is the ip and %t is time. or, Lol. i took out %s at %h in the %p. %h is the hour, and %p is the period of day (morning, afternoon, evening). too bad i have no fekkin idea how to code that. |
I'll say that again and again...
Quote:
|
Re: I'll say that again and again...
Quote:
|
Re: I'll say that again and again...
Quote:
|
| All times are GMT. The time now is 10:28. |
Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.