logs archiveIRC Archive / Freenode / #php / 2006 / May / 19 / 1
Julian|Work
Yo Stormchaser.
Stormchaser
yes, Julian|Work
Julian|Work
"Hello" would work too.
Stormchaser
yes, Julian|Work
Julian|Work
:(
Stormchaser
:)
Julian|Work
How's life treating yee?
jplibre
Hmm. I've downloaded some libraries using PEAR, but I can't seem to get my php install to recognize them
b0lt
http://pastebin.com/725371
         

Stormchaser
Julian|Work: Bad, as usual... You?
b0lt
why does that loop infinitely?
jplibre
is there something I haveto do after installing them with PEAR?
Stormchaser
jplibre: Burn the machine :)
jplibre
Stormchaser: I'm about to :)
Stormchaser
\o/
vinadelmar
i want my name back :)
caffinated
i want 1994 back
the moral of the story is you can't always have what you want
vinadelmar
...yeah.. thanks
caffinated
any time
Stormchaser
vinadelmar: I want papaya-coconut orange ice cream with a voodoo stick and lemon twist.
nathe
I want some pizza. pizza would be good
vinadelmar
Stormchaser, same for me.
caffinated
so buy one
Stormchaser
(Action) twists vinadelmar
caffinated
it's not like pizza is hard to get
Stormchaser
Nah... That's okay, too :)
vinadelmar
wooh caffinated takes this very serioulsy :/
Stormchaser
caffinated: The pizza places are almost extinct... Didn't you heard?!?
caffinated
Stormchaser: ah, you've been reading netcraft reports, haven't you?
         

Stormchaser
caffinated: *nod* :)
caffinated
heh
vinadelmar: not really, i just think if you're going to whine about wanting something, make sure it's hard enough to get to warrant the whining ;)
Jax
mh.. ok, what permissions should files have that are uploaded by apache? my docroot is chowned: myUser:myUser and i added apache to myUser group. i have all dirs 750 and files 640. for the upload dir i have the dir 770 owned myUser:myUser. files created are owned by apache:apache. is this all correct?
vinadelmar
caffinated, i think you need a cup of tea. you seems a little be stressed
Stormchaser
the irony -- I am developing web pages for last 5 years, made bunc of pages, and now that I want to set up one for myself -- I can't do it :/
nathe
caffinated: yeah but i'm at work on lunch with no cash and no transport :P
caffinated
vinadelmar: I'm just fine, thanks.
Pollita
Jax: yes, because apache's primary group is apache
nathe
anyway
caffinated
nathe: that's what overdraft is for
nathe: you know, so you can sell your soul to the bank for pizza
Stormchaser
lol
nathe
I'll give it one more shot in here, anyone know why a semaphore key might suddenly be invalidated when put in a race condition?
Jax
Pollita so is this optimal configuration?
Advocated
anyone got any experience with apache mod_rewrite? having a few problems
mattmcc
Mmm, forbidden pizza...
vinadelmar
i heard you can sell your soul on ebay
Pollita
Jax: nonsense question.
nathe
caffinated: I said I wanted it, not that I want to sell my soul for it ;P
caffinated
vinadelmar: it has been done. my boss was not impressed :x
Pollita
Advocated: Don't ask to ask, just ask.
vinadelmar
i know
thirdLibr
plus ask in the right channel : P
Jax
true. advantages / disadvantages of this configurtion, Pollita ?
Advocated
doing: RewriteRule ^guide/([0-9a-zA-Z_]+) index.php?page=$1 yet when i go to guide/1 im getting: Warning: main(guide/referencing_a_book.php) [function.main]: failed to open stream:
caffinated
vinadelmar: i doubt it. you don't know him.
Advocated
Pollita gimme chance, i was typing :p
Pollita
Advocated: And yet you stoped to say that.
vinadelmar
i mean i knew it already had been done before
caffinated
oh, ok
thirdLibr
Advocated: it might not be finding the file but im not positive
Advocated
Pollita no, read what i put
thirdLibr
let me ask my uncle
he says yes.
Pollita
Advocated: ^/guide
Advocated
Pollita what do you mean by that?
Pollita
How is it that people miss that documentation on the RewriteRule page?
enygma
so, how do I actually use a PECL extension?
Pollita
Advocated: I mean that you're missing a leading /
enygma: pecl install extname
thirdLibr
oh that's cute. the new firefox update blew away all my bookmarks
that's handy
Advocated
Pollita nope, made no difference, that code above is what ive used previously, so i know the rewrite bit is ok, i just dont understand why its not taking me back to the page
Stormchaser
thirdLibr: That's what you het if you add explosive to FF...
litb
is there a linked list class in php?
Stormchaser
litb: probably... But why do you want it?
Pollita
litb: No, arrays are more than fine for that
Jax
just be sure to know the differences of rules in a .htaccess and rules in a vhost.conf file
litb
cause i want to read lines from a file and reverse them and print them out afterwards
Jax
mod_rewrite treats them differently. quite important to note.
Pollita
echo implode('',array_reserve(file($filename)));
erm reverse
not reserve :)
Stormchaser
reserve is okay, too :)
litb
Pollita: not that simple... the lines are encoded and contain serveral fields...
jessy_
hi, howto to delete directorie and files created by php in my ftp ?
Pollita
litb: That's not what you said.
Jax
jessy_: find . -user nobody -print0 | xargs -0 rm
be sure apache is running as nobody ;)
might be apache
litb
yeah, sorry :D
Jax
oh in your ftp.. >;/ have fun deleting by hand
jessy_
Jax, i can't do commands
litb
so, how can i use a arry for that? a=array(); a.push_back("hello") ??
Pollita
litb: Describe *precisely* what you want and we can try this again
vinadelmar
never noticed this array_reverse() function
Pollita
$a = array(); $a[] = 'hello';
litb
i want to add something into a list and iterate reversly over it
from back to front
Jax
sounds like a stack
thirdLibr
litb: no. stop fighting the system
lilkid
i know there are some functions in php for creating on the fly flash swf files and getting properties of current movies, ive looked but i cant seem to find out if you can find a file's width/height. anyone know if its possible?
Pollita
foreach(array_reverse($array) as $key => $value) { ... }
litb
yeah, a stack would be ideal...
Advocated
hmmm, so if im using: RewriteRule ^guide/([0-9a-zA-Z_]+) index.php?page=$1 then the correct path to use is guide/1 etc, which should equate to index.php?page=1 ?
Pollita
You can treat an array like a stack...
mattmcc
Using arrays as a stack is a simple matter of using push/pop.
Pollita
Use array_push()/array_pop() or array_shift()/array_unshift()
or rather, unshift/shift.... to keep the syntactic meaning the same
litb
may i use $a=array(); a[] = userdefinedclassobject; ?
freeone3000
Yes.
Pollita
sure
mattmcc
Sure, that's the same as pushing.
Pollita
arrays just store variables
vinadelmar
of course
mattmcc
...Down the stairs.
Pollita
Their type is basicly irrelevant
mattmcc
To protect you.
litb
sorry, i'm too c-ish :)
Pollita
litb: All variables are of type: zval* (which is a stuct)
The "stack"/array holds instances of zval*
better?
litb
yes :)
Pollita
fwiw, an array (hashtable) is a doubly linked list with a vector index
thirdLibr
*yawn
Jax
Pollita: so generally it is accepted to have new files created apache:apache (or whatever user httpd is running as)
Pollita
Jax: Depends on your use
Stormchaser
thirdLibr: *blink*
Pollita
It may be perfectly fine.
Jax
can you give a couple cases with advantages / disadvantages ?
Pollita
Jax: Generally I like to put the uploads into a dir with the group stick bit set to ensure that as the user I'll be able to futz with the file (without having to sudo to do it)
Jax
hm so they should be apache:myUser then
Pollita
right
lilkid
i know there are some functions in php for creating on the fly flash swf files and getting properties of current movies, ive looked but i cant seem to find out if you can find a file's width/height. anyone know if its possible?
Jax
how do i set group sticky bit again chmod 2xxx mydir ?
always forget >;/
palomer
hello
how can you have two different submit buttons for the same form?
mattmcc
Just do it?
vinadelmar
what for anyway ?
palomer
how will my cgi script differentiate the different action?
mattmcc
The actions wouldn't be different, just their names and/or values.
itrebal
palomer: if needbe you could change the value of the submit
palomer
it doesn't appear in my cgi-script input
for some reason
Jax
Pollita i did a chmod 2777 on the upload dir, and the new file created has apache:apache and 777 perms.... missed i guess? ;)
litb
is there something like 'newobj = {10, "SecondMember", 3 };' in php ?
eg such a default constructor?
that i can do a[] = obj("first", "second");
Stormchaser
a dictionary?
« prev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 next »