IRC Networks
Irc Logs Stats
Start date: 2007-09-27 02:48:27
Last update: 2008-10-24 20:19:38
Channels: 41
Logged Lines: 6230436
Size: 1952.35 MB
Powered by
Channel Info
Network: freenodeChannel: #php |
Search in www.irclog.org
Log from #php at freenode 2006-07-23
Pages: 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
33
34
35
36
37
38
39
40
41
Next >
[00:01]<ncyd->Im a php-noob
[00:01]<ncyd->How do I do that
[00:01]<sfddjvxd>ekim, if (system('some command')){ /* do this code */ } else { /* do that code */ }
[00:02]<ncyd->OOO
[00:02]<ncyd->smarty
[00:02]<wjlllrws>Smarty?!?
[00:02]<ncyd->could you show me an example ?
[00:02]<rsmlcl>slimothy, thx
[00:02]<ncyd->I meant smart
[00:02]<ncyd->the y is right next to the t
[00:02]<ncyd->...
[00:02]<trsj>heya
[00:02]<draogcy>ola
[00:03]<sfddjvxd>actually, add a second argument to that system call, so do this if (system('some command', TRUE)){ /* do this code */ } else { /* do that code */ }
[00:03]<sfddjvxd>wait, lol
[00:04]<mdjgdede>no you have to do...
[00:04]<sfddjvxd>$somevar = 0; system('some command', &somevar); if ($somevar){ /* do this code */ } else { /* do that code */ }
[00:04]<mdjgdede>system('your command', $somevar);
[00:04]<sfddjvxd>thats perfecto
[00:04]<mdjgdede>then check $somevar...
[00:04]<mdjgdede>if ($somevar == 0) {
[00:04]<mdjgdede>.// code for success
[00:04]<mdjgdede>}
[00:04]<mdjgdede>else {
[00:04]<mdjgdede>.// code for failure
[00:04]<mdjgdede>}
[00:04]<wjlllrws>...
[00:04]<djgcndljj>or if $somevar == "It worked"...
[00:04]<sfddjvxd>right..
[00:04]<sfddjvxd>which is what i said
[00:04]<mdjgdede>monkeypoo, not really
[00:04]<mdjgdede>the convention is to return an error code
[00:05]<sfddjvxd>why dont you just keepyourself opped?
[00:05]<djgcndljj>well dionyziz isn't here but it probably depends on what the batch file returns
[00:05]<djgcndljj>slimothy: probably get unwanted attention
[00:05]<djgcndljj>from noobs
[00:06]<wjlllrws>slimothy: Is there a reason I should be?
[00:06]<sfddjvxd>well you guys obviously kick people out all the time, you obviously try enforce a million finite rules, so show a clear line between us and you
[00:06]<draogcy>hmm, new ops over here?
[00:07]<ugmnrm_znus>Programmer's Notepad doesn't have PHP?
[00:07]<djgcndljj>Undead_Zeus: phpad editor
[00:07]<djgcndljj>*pspad
[00:08]<draogcy>he piera, still alive and kicking?
[00:09]<lynzr>macOnki: absolutely!
[00:09]<draogcy>great, how is live?
[00:09]<ysdrnf_vrsfune_2>Undead: It does
[00:09]<ysdrnf_vrsfune_2>Hypertext = html+php
[00:09]<lynzr>very very well and yours?
[00:10]<draogcy>piera, busy, but very well too, thanks
[00:10]<gvxgzsgyp>Well the php login script I was using sucks balls.
[00:10]<gvxgzsgyp>Back to looking for a good one.
[00:10]<lynzr>macOnki: good stuff.. :) using a mac?
[00:10]<draogcy>piera, yeah
[00:10]<lynzr>macOnki: i just bought a macbook pro yesterday
[00:11]<draogcy>nice,
[00:11]<lynzr>yep it's very pretty hehehe
[00:11]<draogcy>I just own a ppc mini
[00:11]<lynzr>jason inherited the ibook
[00:11]<draogcy>s/just/only
[00:11]<lynzr>still got my emac
[00:11]<sfddjvxd>reminds me of that saying never marry a pretty woman
[00:11]<aryjpws>root@sbox:/etc/apache# httpd restart [warn] module php4_module is already loaded, skipping
[00:11]<draogcy>hmm, how is jason? ok, I suppose?
[00:11]<gvxgzsgyp>I hate to tell you this, but mac sucks
[00:12]<aryjpws>WHY will it not read a file with <?php phpinfo(); ?> COULD IT be FX ?
[00:12]<fyaunm>$content = file_get_contents("http://www.hypersupera.com/search?hl=en&q=". $_POST['wordToSearch']);
[00:12]<fyaunm>what's wrong with that?
[00:12]<sfddjvxd>Agiofws, so you've loaded the php module twice, but how about an AddHandler directive so php files get passed to the module?
[00:12]<draogcy>EtherSnif, and was is a good os in your humble opinion?
[00:12]<gvxgzsgyp>Slackware
[00:12]<aryjpws>i have
[00:12]<aryjpws>added tha addhandler
[00:12]<draogcy>s/was/what/
[00:12]<rfygdgdrg>licued: Nothing, but what's on the previous line?
[00:12]<vjrun>i think php may have a problem, how bad is the occasional "child pid ... segmentation fault (11)" in apache logs? I mean.. every few hours.. sometimes a day or two.. i'll see it in the logs. I thought it was a 4.4.1 bug, but I went to 4.4.2 still doing it.. so I'm not sure. IT could be a lot of things.. chroot'ed fastcgi running too. So, any ideas?
[00:12]<draogcy>EtherSnif, bullshit
[00:12]<sfddjvxd>nothing is wrong with that licued
[00:12]<gvxgzsgyp>Gentoo
[00:12]<byre>EtherSnif: I hate to tell you this... you're wrong. (and that's coming from someone who would never own a mac)
[00:12]<lynzr>macOnki: he is well
[00:12]<fyaunm>dosen't work
[00:12]<draogcy>more bullshit EtherSnif :-)
[00:12]<ysdrnf_vrsfune_2>Unead_Zues: in programmers notepad hypertext = php+html both are supported
[00:12]<fyaunm>nothing is on the previous line
[00:13]<sfddjvxd>it is very bad Vogue
[00:13]<gvxgzsgyp>Slax
[00:13]<rfygdgdrg>licued: Define "doesn't work"
[00:13]<fyaunm>I get the error " Notice: Undefined index: wordToSearch in C:\xampp\xampp\htdocs\index.php on line 26"
[00:13]<draogcy>piera, send him my regards
[00:13]<aryjpws>slimothy, AddHandler application/x-httpd-php .php
[00:13]<aryjpws>what is wrong with it ?
[00:13]<gvxgzsgyp>Free BSD
[00:13]<wjlllrws>alindeman: there's factoid for that :)
[00:13]<byre>licued: You need to check for indexes using isset() before you use them. You can also turn off E_NOTICE in error_reporting.
[00:13]<draogcy>EtherSnif, what about tru64? hpux? aix?
[00:13]<sfddjvxd>in my experience, a segementation fault either means a bad module or someones found a way to exploit your software with a buffer overflow
[00:14]<gvxgzsgyp>macOnki... the only good mac is Mac & Cheese
[00:14]<rfygdgdrg>licued: Well, then there isn't anything POST'ed named wordToSearch
[00:14]<fyaunm>gotchya
[00:14]<fyaunm>perfect







