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: 1982.49 MB
Powered by
Channel Info
Network: freenodeChannel: #php |
Search in www.irclog.org
Log from #php at freenode 2006-06-09
Pages: < 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
33
34
35
36
37
38
39
40
41
Next >
[17:39]<wjlllrws>!+smarty
[17:39]<svjzd2jv>##PHP doesn't support smarty. Try #smarty.
[17:39]<zsz>There's no information about it in the php.net documentation
[17:40]<ffnnffiak>runa: you really shouldn't have your assoc vars with "."...that's kinda wierd
[17:40]<zugr>gsr: try setting the include path
[17:40]<zugr>FlEeFlIcK: no, it's not
[17:40]<zugr>Wolfpaws: ok. sorry
[17:41]<eeedra>can anyone help? trying to use a php upload script to interact with the python maketorrent.py script
[17:41]<eeedra>http://pastebin.com/770049
[17:41]<eeedra>total noob here
[17:41]<ffnnffiak>i'm sure if you used an underscore, it would work fine eg {$a.b_c_d}
[17:41]<zugr>zzzmac: why don't you use the torrent pear classes?
[17:42]<zugr>FlEeFlIcK: yes, sure. but I want to use a dot
[17:42]<szzzr_rwrd> {$a.'b.c.d'} doent work?
[17:42]<ffnnffiak>NET||abuse: why is mac vs. pc silly?
[17:42]<ffnnffiak>comparison?
[17:42]<eeedra>tbh i did look but im really quite new to all this and i just want this to work as simple as possible
[17:42]<ffnnffiak>i figure you guys would be the best to ask
[17:42]<zugr>sgrgc_away: nope :(
[17:43]<eeedra>i dont see this being many lines of code
[17:43]<zugr>zzzmac: simple is using what's available, not reinventing the wheel :)
[17:43]<eeedra>lol
[17:43]<eeedra>yeah i know
[17:43]<nnt||r2usn>FlEeFlIcK: ok, macbook = cool mac,, dell latitude = pants pc.... different os, different hardware style... totally different class of machines..
[17:43]<eeedra>but can anyone see how i get it to run the command its all kinda there im just missing somehting
[17:43]<ffnnffiak>runa: my opinion is that you can't use dots like that...Smarty gets confused
[17:43]<eeedra>(a brain)
[17:43]<zugr>FlEeFlIcK: thanks. I already know that
[17:44]<zypvmgsyrg>FlEeFlIcK: what are you using your new lappy for?
[17:44]<eeedra>i just need to make fputs run that command
[17:44]<zugr>zzzmac: what's going on with that code? does it works?
[17:44]<eeedra>nope
[17:44]<ffnnffiak>riftdesign: primarily programming and developing apps
[17:45]<eeedra>its supposed to triger after the file has been uploaded
[17:45]<ffnnffiak>but still wanta use it for media and other stuff
[17:45]<zypvmgsyrg>FlEeFlIcK: if you don't have a lot of money invested in software for one or the other, i would go with Mac unless you are programming for win
[17:45]<eeedra>fisrstlt i defined $torrent : $torrent = popen('/sw/bin/btmaketorrent.py');
[17:45]<zugr>zzzmac: but the file is ran or not?
[17:45]<zugr>zzzmac: I mean, btmaketorrent
[17:45]<ffnnffiak>riftdesign: yeah, programming web apps in PHP, etc..
[17:46]<eeedra>i dont know how to tell, i dont see a torrent file in the folder
[17:46]<eeedra>yeah i built one pretty simple riftdesign
[17:46]<eeedra>albiet generic pc hardware
[17:46]<eeedra>*albeit
[17:47]<zugr>zzzmac: why don't just use exec or `` ?
[17:48]<eeedra>because im reading how to do this from a book and just tried to do it using an example using popen
[17:48]<eeedra>and bolt it onto a file upload script i have
[17:49]<zugr>zzzmac: well, use exec and/or check the permissions for that dir
[17:49]<eeedra>k ill have a look
[17:50]<swat>if I would do $array$int = [$arrayinfo] would that be converted to $array1 = [$arrayinfo] ?
[17:51]<eeedra>can i do : exec ('/sw/bin/btmaketorrent.py MYIPADDRESS /Applications/MAMP/htdocs/$user_id/$filename');
[17:51]<eeedra>?
[17:52]<szzzr_rwrd> /sw/bin/btmaketorrent.py does it run when you type this to command prompt
[17:52]<eeedra>man im so confuzzled
[17:52]<mnp2dvn>is there a channel for xhtml questions ?? because my tidy html validator say my <input ...> is not correct xhtml1.0 ?
[17:52]<eeedra>yep
[17:52]<eeedra>@ sgrgc
[17:52]<szzzr_rwrd><input ... />
[17:53]<eeedra>Usage: btmaketorrent [OPTION] TRACKER_URL FILE [FILE]
[17:53]<sugyr_>Hi. How to change error handler ?
[17:53]<szzzr_rwrd> /sw/bin/btmaketorrent or /sw/bin/btmaketorrent.py
[17:54]<mnp2dvn>sgrgc_away: is this secure for all browsers ?
[17:54]<eeedra> /sw/bin/btmaketorrent.py
[17:54]<sugyr_>ok, got it.
[17:54]<2xugmvgg>I'm looking for some simple, small blog code. don't advise wordpress or bblog... I'm looking for the opposite.
[17:55]<szzzr_rwrd>defbyte dunno
[17:57]<mnp2dvn>how to change style of <input type='submit' value='enter' />
[17:57]<mnp2dvn>?
[17:57]<mnp2dvn>with css
[17:57]<svjzdwq>defbyte: Ask in #html
[17:57]<gzggtuzcrd>hi, can i use in classes more extends ? class test extends test1 extends test2 ??
[17:57]<svjzdwq>defbyte: But either with class, id or style.
[17:58]<szzzr_rwrd>ErenTurkay nope
[17:58]<gzggtuzcrd>hmm.. var $class = new class();
[17:58]<gzggtuzcrd>??
[17:58]<gzggtuzcrd>$this->class->method();
[17:58]<gzggtuzcrd>?
[18:01]<ffnnffiak>defbyte: <input type=submit value=enter style='blah blah blah' />
[18:01]<szzzr_rwrd>defbyte http://www.w3.org/TR/xhtml1/#guidelines
[18:01]<wn2rud>is there a php error log?
[18:02]<czugc>Hi. I'm tying to get a 'To; ' field in mail() to work as per manual. I want: 'To; Sam Brown <test@ex.com>' where $name is 'Sam Brown'. I end up with: 'To: Sam@ex.com, Brown@ex.com' why is this ahppening. Using PHP 5/Apache 2. (Old version 4.x.x. would mail properly)
[18:02]<ffnnffiak>maybe you want a border: <input type=submit value=enter style='border: 1px' />
[18:03]<maffd>FlEeFlIcK: you need quotes around submit and enter too, or else is aint 'valid' code :)
[18:03]<mgz`zycryg>are there any online sources for instructions on upgrading php?
[18:03]<szzzr_rwrd>html tidy makes most of the compat job for you :P
[18:03]<mgz`zycryg>i'm going to be doing it from commandline and it'd be nice if i had another window to look at instead of going back and forth in ssh
[18:04]<maffd>I'd rather know, than rely on tidy
[18:04]<mrggnw>Question about PHP and MySql..... When connecting to a database without a persistant connection, does this ensure that on execution of an SQL statement PHP will connect to the DB, execute, then disconnect?
[18:04]<mgz`zycryg>plus i've never done it on linux before so i'm not sure what's different
[18:04]<mgz`zycryg>McFly: if you want to "ensure" it disconnects put mysql_close() at the bottom of your page
[18:04]<sgjdns>Mannex: no, it connects on mysql_connect(), and disconnects on mysql_close() or end of script execution.
[18:05]<mrggnw>So it will stay connected all the time?
[18:05]<mgz`zycryg>no
[18:05]<sgjdns>during the execution of that script
[18:05]<mrggnw>Connects, Executes, Disconnects?
[18:05]<mrggnw>Upon fetching, it reconnects, fetches, disconnects?
[18:06]<2xugmvgg>Mannex: you'll notice that mysql_close has an argument of the connection handle, so you're in charge of when the handle is closed.
[18:06]<2xugmvgg>otherwise it will be closed at the end of the script
[18:06]<2xugmvgg>http://us3.php.net/manual/en/function.mysql-close.php
[18:07]<mrggnw>Next question, lets say I have 20 people accessing the site at the same time, will I have 20 simataneous connections to the DB?







