@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 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



Comments:

<0> or google on it if you want to know the technical details
<1> what vars would onclick="return getPosition(event);" return?
<2> if i want to insert data into a mysql field (of the date/time datatype) would the best way be via php's date() or with Mysql's CURDATE() or NOW()
<3> templating is for lameos
<3> use DOM
<3> :)
<4> do tell
<5> hey all
<5> is there a way to output html content in pdf using php ?
<3> Ciaran: if nothing else its alot easier to move over to xmlHTTPObjects
<3> Ciaran: what would templates offer over just php includes?
<3> no one has ever told me
<3> one useful benefit of using templates
<4> lol are you serious
<3> yes
<3> tell me one benefit



<3> you cant because there arent any
<6> MBzle: sure, convert it to pdf
<4> view/logic seperation for a start?
<3> sorry, you can do that with php includes
<0> preetish: how's it working out for ya?
<3> Ciaran: templates just add unnecessary overhead
<6> winmutt: one great thing is in maintainance, when you just want to chage the look a bit, you don't have php in your way, and if you want to change a bit of logic, you don't have html in your way
<0> preetish: and if you are using imagemagick for PHP, try magickwand
<7> yereth, i m not able to use the option i hav imagemagic installed in windows i m p***ing command line argmuntes which dont seem to b correct
<4> winmutt: like ||cw said. And that way you can give a template to a designer who doesn't know PHP
<3> ||cw: yes but you dont need a templating api for that... simply a good layout
<4> and they can even open it in Dreamweaver or whatever
<5> ||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
<0> preetish: is your goal to integrate the commands in php?
<3> Ciaran: you can do all of this with just regular old php..
<8> 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
<3> Ciaran: my point is that templating api's do nothing more than emulate php functionality
<4> winmutt: it's all about abstraction. And it makes things easier and nicer to code.
<4> ||cw: which engine do you use?
<3> Ciaran: abstraction has nothing to do with it... if you want to remove logic from code do so and put it somewhere else
<4> if you use one
<6> MBzle: pdf itself cant have html in it, if you found a lib then that lib does the conversion for you
<3> how is <?= $template['somval'] ?> any different than [somval]
<4> winmutt: ok, but that's still a form of templating
<4> the latter looks nicer
<6> winmutt: not all emulate, check out how pear's IT template works
<4> MBzle: dompdf.com is cool
<4> Savant, and another one use PHP too
<3> ||cw ive seen every templating out there and all they do is emulate php
<6> winmutt: sinple vars are not the power of templates, template block reuse is
<3> now if u want to use say xslt thats a different story
<3> ||cw: and how is that different than <? include('someblock.php') ?>
<4> haha
<7> yereth, nope i just want to use in windows i wll call it from asp.net application
<4> he means data blocks, with records/arrays etc
<6> 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
<6> can't do that with a "include"
<4> like TBS uses MergeBlock to merge with data
<3> meh
<4> so the template has no loops in
<3> ill stick to dom and dataobjects
<4> much cleaner
<6> winmutt: just go look at it, you are using the simplest case example where you are correct. templating is not about the simple case
<0> preetish: too bad.. otherwise you could've used a php native extension
<0> but I'm sure there are such things for asp
<3> ||cw: like i said i prefer dom, dataobjects, renderable to html or xml
<4> ||cw: so do you have a preference?
<9> hei dudes but if i use global to import a function $foo
<6> Ciaran: in templates? i like pear's IT, but then I cut my teeth on phplib's template object so it feels confortable
<9> and i use a constructor to p*** to this variable $foo = mycl***();
<10> hello all
<6> kioto: um, that makes no sense, pastebin an example?
<9> yes
<10> im using debian-sarge with php4.3.10-7
<4> I had a look at it when you mentioned it but TBS looks much nicer from what I can see...
<11> %\[table(.+)valign=(?:&quot;(.+)&quot;|(.+(?=\s+|\])))(.*)\](.*)\[col((?:.(?!valign)(?<!valign))*)\](.*)\[/col\](.*)\[/table\]%isU
<11> ah crap
<11> stupid paste buffer
<4> Christ
<11> thats a regexp for a preg_replace, how would I get it to run till nothing was replaced, php4?



<4> I think it has a count paramater?
<4> that gets set with the number of replacements
<11> Ciaran: I say php4 cause php5 was when count param was added
<4> ah
<4> store the old one and compare? :\
<10> 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?
<10> if i call a strace ill get the error at the end of m<y program, after last line
<10> the program is running well on another linux-server (suse9.0 php4.3.3)
<11> 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
<9> hei ||cw
<9> http://phpfi.com/117330
<6> 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
<9> but i think that the php manual explain a problem about global and references
<4> row: isn't that preg_replace_all?
<11> not that I know of
<11> thats match_all
<4> oh yeah, duh
<4> you'll have to excuse me I'm an ror fanatic now
<6> kioto: for something like that I'd p*** a reference to the $_dbConn instead of global,
<4> do you need /g on your regex perhaps row?
<11> what does g do?
<4> replace all
<11> its not listed as a modifier for php pcre.
<9> ||cw i want avoid to call everywhere setActiveDb then i want set an instance that i can use
<11> hmm, preg_replace says it runs default unlimited amount of times
<4> did you try it?
<9> into the global process if isn't bad choice
<6> kioto: p*** a refernce...
<11> Ciaran: I will give it a go...
<12> 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
<9> i need to p*** a params to avoid global, right ?
<6> 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
<11> Ciaran: Warning: preg_replace(): Unknown modifier 'g' :/
<13> preg_replace() is global.
<13> There is no need for 'g'
<6> fred87: edit the pear script and remove the option that makes it not use a php.ini
<4> row: maybe try it with a simple regex then, and see if it is doing a global
<6> fred87: that option is actualy not supposed to be there
<12> ||cw: after doing that, if i make a skeleton /etc/php.ini with memory_limit = 16M, should that work?
<14> 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"
<15> hi, are there abbrevs vim file for php ?
<9> ||cw ok maybe i don't understand, but if i don't use global later how to set a global visible
<6> kioto: do you understand "p*** by reference"
<14> is there a way to get the original format
<6> fred87: it should use whatever php.ini your cli binary is already using
<6> pangelovski: truncated how? td width limit?
<14> ill show picture
<16> is it possible to run php4 and php5 on the same apache instance?
<10> ||cw: no, but i dont think thats the problem, cause the server is running well for all other things
<9> yes but one like module and another like cgi
<6> ctx144k: that really doens't mean anything when it comes to bad ram
<17> hi
<17> i need iftop in php
<17> someone have ?
<12> ||cw: this is while building php and pear, none is currently installed :)
<6> s0n1: what's iftop
<11> Ciaran: only way I can do it it seems, http://phpfi.com/117333
<11> not sure if a direct compare on the md5 compare is faster
<9> ||cw but the using of global isn't bad practice right
<12> but it looks like i should be create a skeleton php.ini and change PEAR_INSTALL_FLAGS to p*** -c my-php.ini
<12> thanks
<6> fred87: pear is just a script, you have to have php-cli installed first
<10> i cant understand that the program doesnt break completly, its running and says the error at the end, so i havent any idea how to find the error
<17> ||cw : iftop is tools for work / monitor of users access webpages in real time
<4> row: could you compare lengths?
<11> Ciaran: that might be risky.
<12> ||cw: if you're building pear modules within the php source tree, it uses sapi/cli/php from the source dir
<4> row: yeah, not sure what you're doing so can't say
<6> s0n1: which has what to do with coding in php?
<6> fred87: pear is php cl***es, not modules. pecl is modules and doesn't require pear
<12> *packages
<14> cw: here the original in a textarea. http://img401.imageshack.us/img401/4172/original8hq.jpg
<11> Ciaran: if you are intrested I can put some example text so you can see how it works...


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #php
or
Go to some related logs:

version magic ipw2200
rtorrent nohup howto
chuck moore asshole
libexif.zip
O_DIRECT vfat linux
#linux
ati isp sb400
#perl
Failed to create smtp connection
rc.conf pastebin Displaymanager



Home  |  disclaimer  |  contact  |  submit quotes