Oh Hrm that might be ungood So say I needed a random letter between a through m would chrrand017 work properly

I had asked my question, didnt really get an answer though

your tip doesn't work for me

VIOLA!
I just freakin figured out how to get past dig being psychotic

hmm, is_readable isnt working very well
i remove my read access, it says it's readable and then fails when i go to read it

$_SERVER['argv']

that works too

hi there

? really, pastebin the code

does anybody know if it is possible to reduce the bitrate of a mp3file with php`
?

brain-xy: php and audio don't go well together,

yes.. i thought so.. hm

Thanks a ton for all your help. I think I am actually almost done with the actuall backend part of the code now thanks to you pointing me in the right direction.

http://sausage.no-ip.org:88/paste/desu-is_readable

no problem, it's why were here!
you can actually set permissions like that up in Windows?

of course
maybe php just doesnt support it
i'll try chmod
nope, same error

using a symbolic link anywhere?

changed the owner, still is_readable returns true
nope, file is in the same directory

try it not from command line (if that's what you're doing with $argv)

file_exists works fine
and it's getting $file from the same source
theres no notes about windows on the is_readable php page
i'll try a different version

Okay so I know how to get a random number. Is there a way to get a random letter instead?

sure,

Using rand() and then converting each number to a letter?

chr(rand(0,255);

beat me to it :P

oh sweet.

however, that wont always get letters

good point

65 to 122 I think is what you need, but then you'll get []/_ etc sometimes

lowercase = 97-112 or something

Oh. Hrm, that might be ungood. So say I needed a random letter between a through m would chr(rand(0,17)); work properly or do I chance getting something off?

no, you'd get all control characters

http://www.asciitable.com/

chr(rand(97,104)); // a-m

97-122
yeah,

So 97-109 would give me what I need. Sweet, thanks.

i'm not a good counter

haha

my random number generater generates 18-24 characters a-zA-Z0-9 - and _ and it's slow as hell :P

a random number generator that includes a-zA-Z - and _ ?
since when have they been numbers?

and it's not even totally random ;-; just 2^24 possibilites
str_replace('number',''); :P
how high should i generate a random number
0-INT_MAX or what?

you can specify the length of your password as an argument to your function

why do you want to create a random generator?

i mean, whats a reasonable value for rand(0,xx)
if i wanted the biggest range without using floats
and i just noticed something, PHP_INT_MAX is signed and sprintf("%u",-1) is unsigned +_+
i had them both defining to the same name as they were available

Is it possible to use extends in PHP4 when creating a class?

um… Yes

I feel like OOP in php4 host is pretty basic and I'd gain a lot from a switch to PHP5
I can't wait :/

classes in php5 and almost useful :P
are*

So, writing a DNS Traversal tool. Not so much fun

floor(sprintf("%u",-1)/2) seems like a big hack ;-;

PHP5 is PHP4 with the mutant powers of "Oh, gawd! I swallowed a radioactive Java!"

i'd probably just include a comment explaining the magic constant, and then just precompute it and put it in the code

but it's different on 64 bit machines

ah, right

and theyre coming in fast

Where all can i view errors for php files. I have error_reporting to on, but i still have a blank white page
I checked httpd/error_log, but im not seeing anything

is display_errors on aswell?

yes

error_reporting E_ALL|E_STRICT display_errors on and nothing piping anything i guess

The files started doing this when i moved the script to a new folder
Yes, i have even E_ALL set and still nothing

check if it's calling any exit/die and if theres any absolute paths in the file

There isnt, thats whats driving me nuts

*
To prove that you're not a bot, enter this code
Anti-Spam Image

Comments are closed.


Blog Tags:

Similar posts: