logs archiveIRC Archive / Freenode / #php / 2006 / April / 15 / 1
edink
kavelot: is it plaintext mail?
kavelot
yes
CryWolf
ultimated: so the problem is that everything is working as desired?
ultimated
||cw and i do not want to run php as cgi..
||cw
kavelot: you have to also set the mail's content encoding
ultimated
open_basedir = . works but also won't let them access out of their subfolders...
kavelot
hm
gonna check that, thanks
CryWolf
sorry, intended, not desired.
ultimated
CryWolf setting open_basedir = . prevent from using software liek phpbb
         

Stormchaser
ultimated: you have to figure out, what the '.' is first...
CryWolf
ultimated: that sounds like a good thing.
edink
kavelot: it's probably best to make body text quoted printable encoded
Stormchaser
:)
Jymmm
Trippin The Rift!
ultimated
CryWolf i want to allow the use of phpbb
||cw
ultimated: oh you actualy set it to "."! oh my. no you realy should put a full path in there to ther users home dir
Stormchaser
ultimated: Why?
itrebal
ultimated: then i think you need to learn why you dont want the use of phpbb
ultimated
lol
Stormchaser
itrebal: :)
Jymmm
Many ISP's are not allowing phpbb on their servers anymore due to the overwhemling security exploits.
itrebal
and good for all of them
ultimated
||cw that way i will have to enter so many home dir's
Stormchaser
ultimated: What's so funny? phpbb is one of the most peiece of insecure PHP program. Along with oscommerce.
itrebal
ultimated: uhh... add ~
||cw
ultimated: don't you have them in your vhosts already?
ultimated
||cw nope
||cw
then how do pages get served?
zircu
it becomes tricky when you use a virtualdocumentroot
         

ultimated
||cw using a simple filemanager
itrebal
...wtf
ultimated
people signup
Stormchaser
||cw: by a faery.
||cw
(Action) looks around
ultimated
and it creates a folder under /users/username
||cw
Stormchaser: are you calling apache a fairy?
itrebal
haha
surfdue
LOL1!
that sounds odd O.o
Stormchaser
||cw: fairy != faery
ultimated
so
http://mydomain.com/users/username
surfdue
ultimated, are you making a file upload website?
ultimated
no..
||cw
Stormchaser: um, no, just like color == colour
zircu
ultimated: and how does the webserver know what the document_root is?
ultimated
didn't i reply u're pm?
Stormchaser
!+u
php-bot
Surely you mean 'you', not 'u'? The letter 'u' is not a personal pronoun. Talking like this in ##php may get you silenced. For details, /msg php-bot aolbonics
itrebal
surfdue: don't PM without permission.
ultimated
zircu /var/www/
||cw
ultimated: he pm'd you without asking too?
ultimated
yes
||cw
that makes 3 that I know of
Stormchaser
||cw: http://en.wikipedia.org/wiki/Faery
^-- that.
ultimated
lol
surfdue
?
ultimated
surfdue what do you need?
Stormchaser
who pm
zircu
ultimated: then pages in /users/username wont be working like you describe
Stormchaser
who pm'd who?
surfdue
stop trying to start things, i was asking if he was cuase i was interested :|
||cw
Stormchaser: and you'll notice the doc title is Fairy
itrebal
Stormchaser: surfdue PMed *
ultimated
zircu /var/www/users/
dushkin
Hi. I was just wondering, how to I split a string containing spaces into an array even if there is more than one space seperating each word?
Stormchaser
!tell surfdue about pm
||cw
Stormchaser: so thanks for proving me right :)
ultimated
zircu they work :D just need to secure...
Stormchaser
||cw: :)
itrebal
(Action) goes to work on his new case
Stormchaser
(Action) looks for something to munch
itrebal
munchies?
||cw
ass?
zircu
ultimated: this is more of a webserver configuration topic than php, you need a way to enable configs for each of those directories
dushkin
Sorry for repeating myself: I was just wondering, how to I split a string containing spaces into an array even if there is more than one space seperating each word? For example if I have "hello hi" I want the array to be ("hello" "hi")
itrebal
*teehee* Stormchaser's got teh munchies
||cw
dushkin: you'll have to remove the dup spaces first
itrebal
str_replace explode
zircu
dushkin: php.net/preg_split perhaps
||cw
dushkin: or maybe use preg_split
ultimated
If anyone willing to help me solve this please pm me your price :D
||cw
one million dollars!
itrebal
ultimated: $600,000^9.3
zircu
$999,999
dushkin
||cw: So how would I remove the dupe spaces?
ultimated
if i had that kinda money id rather make people manage the whole thing...
||cw
dushkin: is there ever more than 2 spaces in a row?
dushkin
||cw: Stupid users are very common, so probably yes.
ultimated
or be visting some place and not talking to bunch of yahoo's on irc
:p
Geren
how do i set a variable without assigning it any vaoue
value*
Rewt`
$foo="'
CryWolf
Geren: why?
||cw
dushkin: something like $var = preg_replace("/\s+/", " ", $var);
Rewt`
set($foo);
dushkin
||cw: Tak.
zircu
a preg_split('/\s+/', $line); probably would be the easiest instead of trying to clean up the string of duplicate spaces, but then again, it would be best if they are cleaned up to begin with
||cw
that too
ultimated
zircu btw i asked on apache and they sent me here :p
Stormchaser
how can you manage to get Yahoo on IRC?
zircu
ultimated: it is how you ask the question, what you need is a way to set permissions based on the directory, neverminde the open_basedir option
nater
stormchaser: eh?
Stormchaser
nater: Thhat wasn't for you, but: <ultimated> or be visting some place and not talking to bunch of yahoo's on irc
Geren
CryWolf, in a text input of a form, if i don't put in anything and hit submit will the _POST["value"] be "" or will it be !iisset()
Stormchaser
ultimated: Please don't abuse enter key. It's *really* annoying.
nater
stormchaser: ah, thought maybe you were talking about making a bot that could search for you or something
||cw
Geren: try it.
Sillimand
Geren, it wil be $_POST[" NAME IF INPUT!! "]
CryWolf
Geren: what does print_r($_POST) say?
Stormchaser
nater: stormbot doesn't do such thing.
kain_
can someone please point me in the right directory how to replace characters like ' / spaces to an underscore?
I know that I must use regex.. difficult
Stormchaser
directory? /dev.
kain_
rofl
direction*
bad day here
CryWolf
kain_: php.net/str_replace
kain_
thanks
Geren
sh*t, there's another one of those missng bracket error i can't find!
Stormchaser
kain_: I'd do something like preg_replace('#[^a-z0-9]#i', '_', $string);
Geren: Use magnifying glass... Or at least proper editor.
kain_
Stormchaser, what would do this function?
Stormchaser
kain_: RTFM.
kain_
k
CryWolf
wow.
kain_
I know preg_replace, but wants only know what #[^a-z0-9]#i is, np ;)
Stormchaser
!+mre
php-bot
[MRE] 'Meal, Ready to Eat' used by the military in the field and others during a disaster as they have a long shelf life. But you probably wanted 'MRE - Mastering Regular Expressions' the bible of regex http://www.oreilly.com/catalog/regex2/ Use this utility for learning/understanding/troubleshooting your RegEx --> http://www.weitz.de/regex-coach/
Geren
god i need help finding the bug
the error is on the last line
Jmax
hi, i have a an array that looks like this: Array ( [0] => 1 [id] => 1 [1] => Other -- Please describe [title] => Other -- Please describe ) // i need it to look like this: Array ( [1] => Other -- Please describe )
Geren
liike </html>
wtf!
Jmax
any ideas?
Geren
why can't it just give me the line the error is on!
||cw
Geren: you need an editor that supports bracket matching.
Stormchaser
Geren: I don't think you need 'god' to do that...
CryWolf
Geren: please stop saying "wtf"
Geren
||cw, which editor does that?!
Stormchaser
(Action) nods to CryWolf
||cw
Geren: because you are missing a closing } somehwre, it can't possibly know what you realy meant
Stormchaser
Geren: Most of them?
||cw
Geren: scite is small and easy to use
Stormchaser
!+error last line
php-bot
if you get an error that complains of a syntax error of some sort on the last line, you have probably not closed a }, ], ) or have forgotten a ; at the end of a line. To quickly identify where the problem is, run the code through the php-beautifier: http://www.tote-taste.de/X-Project/beautify/ the output should show at the end of the file, several blank spaces. If that happends, you forgot to close a bracket. The indentati
Geren
Stormchaser, i use emacs and it does not have matching
Stormchaser
Geren: Mone does... Yours is probably badly configured.
« prev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 next »