logs archiveIRC Archive / Freenode / #php / 2006 / February / 12 / 1
Nexus
/mt
sanu790
and in place of my name type username
Nexus
dang.
/me kicks username
Just don't put a space in front of /me
(Action) wonders how hard it can be.... Seriously...
sanu790
ok
Tainted-Wolf
(Action) dies in laughter.
sanu790
ok
kick me
honestely
I still don't get
you
tuxtheslacker
hey.
FlamingCows
What I would give to be able to set +o right now...
Nexus
:) Amen to that.
         

tuxtheslacker
can someone tell me... is there an easy way to show the date, and add seven days to it?
in php?
sanu790
Nexus
how?
Nexus is there space or not
Tainted-Wolf
NO
FlamingCows
tuxtheslacker: Read the man page on strtotime
Nexus
No space
Tainted-Wolf
Damn.
He said it like 50000998987 times.
Nexus
+1
sanu790
ok type once again the command
Tainted-Wolf
/me kicks sanu790
tuxtheslacker
FlamingCows, strtotime?
sanu790
me>>>>Nexus
Jymmm
sanu790 enough already, go try efnet or something
Nexus
Good heck.
(Action) blocks sanu790
sanu790
Jymmm
dude
what are you doing with me?
Nexus
(Action) prays for an Op to
Wow. That was a quick answer to prayer. :)
FlamingCows
tuxtheslacker: Read the manual page on it, it will reveal all.
Nexus
All I had to do was think *sanu790 be gone* and *poof* he was kicked! :)
Tainted-Wolf
He came back. :(
FlamingCows
Jymmm: This channel needs more active ops at certain times. :\
tuxtheslacker
FlamingCows, thanks.
         

Jymmmm
FlamingCows he was more of a fly than anything else.
Nexus
So if I have a textfield, is it possible to pass the content of it to another page and keep the formatting?
Xaros
how can i show a mysql table after i do SELECT * from $table ?
Brice
http://evolt.org/these-things-i-know-php-tips#comment-63112 ... lol
I want to read a tips section about optimization from that guy!
FlamingCows
Jymmmm: Yes, but I meant in general; I've seen several people who should have been kicked and weren't due to lack of active ops.
Xaros
how can i show a mysql table after i do SELECT * from $table ?
FlamingCows
Meh, whatever.
Brice
I'm concerned about how to efficiently handle includes/requiries and general program flow
"Arguing that tabs beat spaces because they cost fewer bytes is just silly, unless you're serving pages from hardware so old it'd burst into flame just thinking about running PHP, plugged into pipes narrower than my old granny's 14.4 dialup."
Nexus
(Action) laughs
He's got a way with words, that's for sure.
FlamingCows
Yes, but tabs beat spaces because you can customize the tabstop.
Nexus
Spaces are better... Because stuff... and hud.
Brice
FlamingCows, hence, that'd be a better argument
Nexus
Is there a way to use a session (without cookies) and POST from a form?
Jymmmm
FlamingCows: I understand, but not much I can do about that.
itrebal
meh, i need to figure out how to convert emacs from using 2 spaces to using a tab, and interpreting it as 2 spaces
Nexus
So for action="label.php" can I just do label.php?<? echo (SID);?>
Pollita
Oooh sudden inspirations in libssh2 development
Brice
Nexus, session_start(); $_SESSION['variable'] = "value"; .... next page .... session_start(); $value = $_SESSION['variable'];
itrebal
Pollita: oh?
Pollita
stupid cat
Nexus
Brice, Doesn't that method use cookies though?
FlamingCows
Pollita: The stupid cat has affected the libssh2 development?
Or, inspired, rather?
omerix
hi
itrebal
(Action) needs to get cdrecord working on his server, or have a gui available to run k3b or something
Brice
Nexus, sure.. sess id gets passed @ get
Nexus, how about : session_start('NEXUS'); instead
Nexus
(Action) laughs
Now I'm totally lost.
itrebal
session_start doesnt take any params
Brice
Nexus, you create your own session name
FlamingCows
'bool session_start(void)'
Brice
err.. session_name('NEXUS'); to create your own named session (doesn't rely on cookies)
FlamingCows
(Action) coughs.
itrebal
uhh
omerix
i have a hosting package(10 domain), only i can define e-mail passwords for customers(end user) in my PLESK, how can a customer can change his password without plesk?
itrebal
..why would that ever be usefull?
FlamingCows
omerix: We don't do plesk support.
itrebal: In a custom session handler.
!tell omerix about g10
Brice
so, session_name('NEXUS'); session_start(); $_SESSION['variable'] = "value"; .... next page .... session_name('NEXUS'); session_start(); $value = $_SESSION['variable'];
itrebal
FlamingCows: gotchya
(Action) is perfectly happy with PHP's session handler
FlamingCows
Heh.
itrebal
FlamingCows: what do you think?
FlamingCows
PHP's is fine for most things, although sometimes I'd rather use a custom handler and a DBMS.
b1n0ry[away]
ok, this remodelling project was supposed to be easy!
itrebal
ah
Nexus
Brice, Interesting... However would that work if multiple people are using the site at once? Wouldn't they overwrite each others variables?
Brice
Nexus, though I'm not an expert by any means? perhaps there's other ways to pass variables between pages ( W/O $_GET, writing to files, Sessions ) ?
Nexus, it'd overwrite
Nexus, you could create the name based off of IP or something
Nexus
Brice, No, I appreciate your ideas. It's kind of abstract for me (I'm no programmer), so the different ideas are good.
Brice
NeoTeKK, what's the big deal w/ using just session_start() ? that creates a unique session_id that's passed by the browser
Tainted-Wolf
Does anyone know of a good host, that has good bandwidth, space, and a shell?
Tokeiito
yes
localhost
itrebal
Tainted-Wolf: i used dreamhost, but it was awfull and wouldn't recommend it to anyone
FlamingCows
Yes, dreamhost is bad.
b1n0ry
i use 1and1.com but i don't know if they offer shell
omerix
<FlamingCows> : i did not ask "how can i use plesk", i ask "without plesk and others, how can i change password with php, is there a script about this
Nexus
Tainted-Wolf, What do you want to do with it?
Brice
Nexus, if there's a start page.. you could make a seed there.. like MD5(time());
Tainted-Wolf
Host 5 websites, and run them.
FlamingCows
omerix: Ah sorry, your comment set off my auto-guidline trigger.
Dang false positives.
Mental trigger, for the dense.
Anyway.
itrebal
FlamingCows: i've got that too
Tainted-Wolf
Tokeiito: Are you joking? Or is there a host called localhost?
Brice
then make that the session name... ie. { $seed = MD5(time()); session_name($seed); session_start(); $_SESSION['var'] = "value"; <a href="nextpage.php?seed="<?=$seed ?>">next page</a> ... then next page .. $seed = $_GET['seed']; session_name($seed); session_start(); ... echo 'value of var'.$_SESSION['var'];
Tokeiito
sry, i'm joking
FlamingCows
omerix: The short answer is it depends on your mailserver.
Stormch[a]ser
um... "woof"?
FlamingCows
Brice: PHP already generates a [pseudo]random name for you, why generate your own?
Stormchaser: Woof indeed.
Brice
FlamingCows, I have no idea ;)
omerix
<FlamingCows> : thanks
Brice
FlamingCows, like I said.. I thought a plain session_start(); is adaquate
Tainted-Wolf
So does anyone know of a host the has these features?
itrebal
Tainted-Wolf: yours
Super-Fly
Tainted-Wolf: 1and1 ?
Stormchaser
Tainted-Wolf: google
Tainted-Wolf
Super-Fly: 1and1 doesnt have shell support.
itrebal
Tainted-Wolf: Thow much do you want to do?
Super-Fly
Tainted-Wolf: yea it does
itrebal
Tainted-Wolf: it does ineed, you just have to pay $99 a month for it :)
Tainted-Wolf
Lol
Well, I want to run 5 of my websites with perl, php, shell access, good bandwith...
I just want a good host.
Mine sucks.
Stormchaser
!+enter
php-bot
Don't use the enter key as puncuation. Think in complete thoughts, then type.
itrebal
it might be worth it to you to get a semi-dedicated, or dedicated, if they are popular
Tainted-Wolf
itrebal: Thats what i was thinking.
Psi-Jack
I enable ONE fricken thing on PHP5, LDAP, and I get one annoying error, AFTER it's already compiled: configure: error: invalid package name: readline
itrebal
(Action) is getting a $400 UPS
Axsuul
how would i do this in php.. if ($_POST['var'] exists)
or if ($_POST['var'] is defined)
itrebal
php.net/empty and php.net/isset
php.net/defined
Axsuul
and isset does not work
ok thanks
itrebal
but defined is only for constants
« 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 next »