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: 1822.57 MB
Powered by
Channel Info
Network: freenodeChannel: #php |
Search in www.irclog.org
Log from #php at freenode 2006-05-11
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
42
43
44
45
46
47
Next >
[17:49]<wygduvv>||cw: yes but you dont need a templating api for that... simply a good layout
[17:49]<cyzzzg>and they can even open it in Dreamweaver or whatever
[17:49]<mbnfn>||cw, no no... there was thie library, i forgot what it was... you output text html on pdf and even includes a header() and footer() functions
[17:49]<dnznvx>preetish: is your goal to integrate the commands in php?
[17:49]<wygduvv>Ciaran: you can do all of this with just regular old php..
[17:49]<rfnw91>Hi, I m looking for an open source e-commerce like oscommerce but with more options. Does anyone know a good one or names ? Thanks
[17:50]<wygduvv>Ciaran: my point is that templating api's do nothing more than emulate php functionality
[17:50]<cyzzzg>winmutt: it's all about abstraction. And it makes things easier and nicer to code.
[17:51]<cyzzzg>||cw: which engine do you use?
[17:51]<wygduvv>Ciaran: abstraction has nothing to do with it... if you want to remove logic from code do so and put it somewhere else
[17:51]<cyzzzg>if you use one
[17:52]<||aw>MBzle: pdf itself cant have html in it, if you found a lib then that lib does the conversion for you
[17:52]<wygduvv>how is <?= $template['somval'] ?> any different than [somval]
[17:52]<cyzzzg>winmutt: ok, but that's still a form of templating
[17:52]<cyzzzg>the latter looks nicer
[17:52]<||aw>winmutt: not all emulate, check out how pear's IT template works
[17:52]<cyzzzg>MBzle: dompdf.com is cool
[17:52]<cyzzzg>Savant, and another one use PHP too
[17:53]<wygduvv>||cw ive seen every templating out there and all they do is emulate php
[17:53]<||aw>winmutt: sinple vars are not the power of templates, template block reuse is
[17:53]<wygduvv>now if u want to use say xslt thats a different story
[17:53]<wygduvv>||cw: and how is that different than <? include('someblock.php') ?>
[17:53]<cyzzzg>haha
[17:54]<lznnvysx>yereth, nope i just want to use in windows i wll call it from asp.net application
[17:54]<cyzzzg>he means data blocks, with records/arrays etc
[17:54]<||aw>winmutt: IT doens't use php at all, it is presented as a php object that push vars into and spits out html, and you can choose to display or return the html
[17:54]<||aw>can't do that with a "include"
[17:54]<cyzzzg>like TBS uses MergeBlock to merge with data
[17:54]<wygduvv>meh
[17:54]<cyzzzg>so the template has no loops in
[17:54]<wygduvv>ill stick to dom and dataobjects
[17:54]<cyzzzg>much cleaner
[17:55]<||aw>winmutt: just go look at it, you are using the simplest case example where you are correct. templating is not about the simple case
[17:55]<dnznvx>preetish: too bad.. otherwise you could've used a php native extension
[17:55]<dnznvx>but I'm sure there are such things for asp
[17:56]<wygduvv>||cw: like i said i prefer dom, dataobjects, renderable to html or xml
[17:57]<cyzzzg>||cw: so do you have a preference?
[17:57]<cyjvj>hei dudes but if i use global to import a function $foo
[17:57]<||aw>Ciaran: in templates? i like pear's IT, but then I cut my teeth on phplib's template object so it feels confortable
[17:58]<cyjvj>and i use a constructor to pass to this variable $foo = myclass();
[17:58]<avww99c>hello all
[17:58]<||aw>kioto: um, that makes no sense, pastebin an example?
[17:58]<cyjvj>yes
[17:58]<avww99c>im using debian-sarge with php4.3.10-7
[17:59]<cyzzzg>I had a look at it when you mentioned it but TBS looks much nicer from what I can see...
[18:00]<zjw>%\[table(.+)valign=(?:"(.+)"|(.+(?=\s+|\])))(.*)\](.*)\[col((?:.(?!valign)(?<!valign))*)\](.*)\[/col\](.*)\[/table\]%isU
[18:00]<zjw>ah crap
[18:00]<zjw>stupid paste buffer
[18:00]<cyzzzg>Christ
[18:00]<zjw>thats a regexp for a preg_replace, how would I get it to run till nothing was replaced, php4?
[18:01]<cyzzzg>I think it has a count paramater?
[18:01]<cyzzzg>that gets set with the number of replacements
[18:01]<zjw>Ciaran: I say php4 cause php5 was when count param was added
[18:01]<cyzzzg>ah
[18:01]<cyzzzg>store the old one and compare? :\
[18:01]<avww99c>i have the problem that an own php-script says at the end "memory access error".. is the an option to get the exact position?
[18:02]<avww99c>if i call a strace ill get the error at the end of m<y program, after last line
[18:02]<avww99c>the program is running well on another linux-server (suse9.0 php4.3.3)
[18:03]<zjw>Ciaran: issue is preg_replace is meant to run till no replacements can be done which I find odd, and I have no idea howto do recursive patterns in the replacement part so pointing doing it in the mathing/capturing
[18:05]<cyjvj>hei ||cw
[18:05]<cyjvj>http://phpfi.com/117330
[18:05]<||aw>ctx144k: tested your ram yet? php scripts aren't allow direct memory access, so that kind of error is either in a module/extention or your have some bad ram
[18:05]<cyjvj>but i think that the php manual explain a problem about global and references
[18:06]<cyzzzg>row: isn't that preg_replace_all?
[18:06]<zjw>not that I know of
[18:06]<zjw>thats match_all
[18:06]<cyzzzg>oh yeah, duh
[18:07]<cyzzzg>you'll have to excuse me I'm an ror fanatic now
[18:07]<||aw>kioto: for something like that I'd pass a reference to the $_dbConn instead of global,
[18:07]<cyzzzg>do you need /g on your regex perhaps row?
[18:07]<zjw>what does g do?
[18:07]<cyzzzg>replace all
[18:08]<zjw>its not listed as a modifier for php pcre.
[18:08]<cyjvj>||cw i want avoid to call everywhere setActiveDb then i want set an instance that i can use
[18:08]<zjw>hmm, preg_replace says it runs default unlimited amount of times
[18:08]<cyzzzg>did you try it?
[18:08]<cyjvj>into the global process if isn't bad choice
[18:08]<||aw>kioto: pass a refernce...
[18:08]<zjw>Ciaran: I will give it a go...
[18:09]<pznmo6>hiya; how do i change the memory limits for php before it's installed? specifically, make install-pear-packages requires more than the default 8M
[18:09]<cyjvj>i need to pass a params to avoid global, right ?
[18:09]<||aw>kioto: I'm not saying that you need to change your app logic, just the methond in which you get the var into the function scope
[18:09]<zjw>Ciaran: Warning: preg_replace(): Unknown modifier 'g' :/
[18:09]<curr>preg_replace() is global.
[18:09]<curr>There is no need for 'g'
[18:09]<||aw>fred87: edit the pear script and remove the option that makes it not use a php.ini
[18:10]<cyzzzg>row: maybe try it with a simple regex then, and see if it is doing a global
[18:10]<||aw>fred87: that option is actualy not supposed to be there
[18:10]<pznmo6>||cw: after doing that, if i make a skeleton /etc/php.ini with memory_limit = 16M, should that work?
[18:11]<frrrnfjvscy>hi guys, i have some text that i retrieve from a database. But when viewed in a textarea. its formatted real nice, however when i try and display the same text in a td. The text is "truncated"
[18:11]<xzzj2nm_>hi, are there abbrevs vim file for php ?
[18:12]<cyjvj>||cw ok maybe i don't understand, but if i don't use global later how to set a global visible
[18:12]<||aw>kioto: do you understand "pass by reference"
[18:12]<frrrnfjvscy>is there a way to get the original format
[18:13]<||aw>fred87: it should use whatever php.ini your cli binary is already using
[18:13]<||aw>pangelovski: truncated how? td width limit?
[18:14]<frrrnfjvscy>ill show picture
[18:14]<ljssyn>is it possible to run php4 and php5 on the same apache instance?
[18:15]<avww99c>||cw: no, but i dont think thats the problem, cause the server is running well for all other things
[18:15]<cyjvj>yes but one like module and another like cgi







