@# 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



Comments:

<0> simpler than learning a while, for, and if loop in php?
<1> Storkme, i don't use BBCode anymore
<2> smarty performs well, has the features I need, and makes it so I don't have "inline" html, or html in echo/print statements. all of that is *good*
<3> majd, why not?
<1> Storkme, not very user friendly...i use the dojo editor (http://dojotoolkit.org)
<1> granted it uses javascript
<0> dont use echo/print html.. just jump out of php and then back in again
<2> that's *worse*
<1> which i'm ***uming you're bbcode does too...so that wouldn't be a problem
<0> oh sure it is
<2> it makes the php code *very* difficult to read
<2> I hope you are being sarcastic
<0> very simple templating logic is fine
<0> for, while, if whatever.. nothing crazy.. only template modifying code
<0> no database calls or anything.. plus its the fastest way
<2> I don't expect smarty to make database calls



<3> majd, the punbb is just for me, it's not for other users
<0> i expect it to eat up my cpu and memory ;-)
<2> smarty templates are "compiled" into php, and the code is written to disk if it is configured properly.. so performance is very good.
<1> Storkme, even then....using a WYSIWYG editor instead of a textarea with bbcode is faster
<0> i used to use smarty
<1> i don't use smarty....never did
<3> mahru, but it's just for me, there's no point
<0> using a templating language can teach you alot about how to actually use php as it was supposed to be used for templating
<0> the only good thing a templating system is for, is for user security
<0> anyway, back to writing this useless php extension
<3> damn it
<1> Storkme, i suppose....i'm just suggesting it cause i think it's faster
<3> this DAMNED code tags don't work
<3> what is this..
<4> http://pastebin.com/650421
<4> Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ')' in /home/frosh/public_html/projects/tv/oo/mysqlcl***.php on line 23
<5> Anyone know where i can find a good primer on the revamped PHP5 syntax for declarations of cl***es and their members?
<5> I am trying to achieve a namespace-like effect by wrapping some functions in a cl***, which of course i dont want instantiated... how would i do that?
<3> for christ sake
<5> ?
<3> bbcode is impossible
<5> no it isnt :P
<3> yes it is :\
<5> Storkme, i wrote a [code lang="PHP"]some code[/code] substituter that uses PEAR::Text_Highlight
<3> i can't get the bloody code tags working
<6> how do i disable Create new database in phpmyadmin??
<5> whats wrong with them
<5> ?
<1> Xen0n, are you trying to call some methods without instantiating their cl***?
<3> Xen0n, i installed HTML_BBCodeParser, but it wont parse code tags..
<3> it parses bold and stuff fine
<3> but no code tags
<5> Storkme, does it have support for them?
<3> it says it does
<3> i'm using the PEAR thingy
<7> is this wrong:
<7> $first = $_POST[first];
<8> yes
<5> yes
<9> yeah
<1> yeah
<8> $first = $_POST['first']
<7> OK, thanks.
<6> how do i disable Create new database in phpmyadmin??
<9> 'first'
<1> 'first'
<9> :)
<1> (just thought i'd join the bandwagon)
<1> :)
<9> hehe
<3> Xen0n, any ideas?
<10> Andy298: Don't give the user privileges to create new databases
<6> you can remove the box in phpmyadmin i am sure
<5> Storkme, sorry, havent used that PEAR module :/
<3> bah
<3> Xen0n, how did your [code lang="php"] thing work then?
<5> Storkme, ill pastebin it if you want...
<5> or something
<3> Xen0n, that'd be cool
<3> all i need in my bbcode is [b].[i], and [code]
<5> Storkme, http://c3x.net/projects/dotFramework/framework.Parser.phps <-- the parser module i was working on - a nice way of dealing with HTML tags there too



<11> so, am i mistaken or is there no support for oracle 10g with pear's db module?
<3> Xen0n, sorry, could you give me a usage example aswell?
<5> Storkme, i have a test case at the bottom
<3> seems a little complicated for what i need to do
<5> yeah
<5> depends what you are wanting
<5> heh
<5> are you wanting highlighting?
<12> How can I load a different web page with php? For example when I get certain values from my form I would want browser to move different url.
<5> Because http://c3x.net/projects/dotFramework/framework.Parser.php is the result of that test case
<5> then again, i think i need to make things a little safer...
<3> Xen0n, nope, just some simple stuff
<12> Anyone?
<13> Zing
<10> Zing: Do a redirect, look at the header() doc for more info
<12> yes?
<13> you are talking about like different include based on ?page= value ?
<5> Storkme, ah, i see...
<13> or others I suppose
<5> Storkme, probably just want to put it inside <pre> tag or something
<12> well I would just want to move users browser to other web page
<13> So based on certain values the user enters in a form, the page he gets redirected to is determined by what values were entered?
<14> i just installed mysql-server on sarge and 3 or 4 seconds after it starts the computer reboots or hangs... if X is up the computer rebootx and if not, the computer hangs... i probed mysql 4.0 from sarge r0a, 4.0 from sarge r1, 4.1 from sarge r0a and 4.1 from sarge r1 with the same results... ???
<12> TrAiT0r: pretty much yeah
<13> - Zing - If your form uses GET
<13> then
<13> you could do something like
<13> if ($_GET[value'] == "condition") { redirect(); }
<13> ttfn
<15> what would be the most h***le free way to convert a timestamp into a number? eg, 11:30 to 11.5
<15> the timestamp will always be a 15min period, so 00, 15, 30 or 45
<9> you could always explode it
<16> aye
<9> maybe there's already a specifier for that in the date function?
<9> I can't really remember
<15> hrm k
<15> ty
<9> no problem
<17> hi guys, i'm debugging a monster of a script right now. since i didnt write it, i'm having trouble finding out what the person did. basically, he has a parser that parses a document. the parser uses regex almost exclusively (egh.. i know).
<17> whenever i try to get to the page i get a "cannot be displayed" error in IE
<17> so, i created an iterator variable to see how many regex calls are made (its in a loop). the final number was about 2,000 preg_replace_callback() calls
<17> and 42 of those were actual replacements
<1> holy crap
<17> yea
<1> out of curiosity...what's the script for?
<14> i just installed mysql-server on sarge and 3 or 4 seconds after it starts the computer reboots or hangs... if X is up the computer rebootx and if not, the computer hangs... i probed mysql 4.0 from sarge r0a, 4.0 from sarge r1, 4.1 from sarge r0a and 4.1 from sarge r1 with the same results... ???
<17> now, i know that's suicide.. but then i ran another test by using str_repeat and did a 100,000 loop of preg_replace() calls
<17> and it took a while.. but still ran
<17> this one just dies out with "Cannot be displayed" in IE and just a blank page in Firefox
<10> pulga: Sounds like you may have a hardware fault, or a serious OS compatibility proble, - probably nothing to do with MySQL
<9> formatting a document with php or something?
<17> majd: it's supposed to parse and replace certain values and replacements in a document... i'm not really sure exactly what it was for. i know that it was supposed to take data, find certain patterns in that data and make replacements based on arrays and variables in PHP
<14> i think in incompatibility with versions of some kind
<1> wow
<17> i just can't seem to understand why the server keeps spitting out the error, while all other pages work perfectly fine
<14> but if HW fault how to test it
<14> ??
<1> i don't have regex experience...sorry :(
<17> i really dont think its regex though.. i think it's some sort of infinite loop problem or something
<10> pulga: Well, it's difficult to know whether your hardware is working or not. Obviously do a memory test. Don't boot your machine until after you are SURE there is no memory fault, as fault memory will corrupt your hard disc data
<5> AHA!
<5> some decent, enforced namespace-like behaviour
<14> thanks
<10> pulga: If you cannot immediately find a hardware fault, I suppose it may be a serious Linux compatibility issue, in which case call in a Linux guru, don't ask in ##php
<14> but in case of mem fault all programs will crash or do some strange things... or not?
<10> You'd be surprised, not all memory faults cause obvious behaviour
<10> It's likely that MySQL uses more memory than a lot of other things, so it's more likely to trigger error conditions
<10> in the case of a suspected memory fault, don't boot your machine.
<18> pulga: my recommendation is apt-get remove *
<14> apt-get remove what?
<19> what are the reasons for/against storing images/files in a database?
<20> A filesystem is designed for quick file retrieval .. a database takes a long (relative) time to do the same


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#perl
cycom firewire
linux M1689 supported
#kde
ubuntu vnc-java
xmms alternative repo yum
mysql_inser_id
gaim-1.5.0-msn-block-crash.patch
#oe
#linux



Home  |  disclaimer  |  contact  |  submit quotes