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



Comments:

<0> and it's the second { it's talking about
<1> you missed a closing ")" there, Mickly
<2> Mickly: try an editor with code coloring and parenthesis hinting and write your code in a way that is readable
<3> I just saw that, I feel stupid
<1> "if ($_GET[color] == 'red' {" ==> "if ($_GET[color] == 'red') {"
<1> hehe
<3> what one is a good choice
<1> edit+ has a nice brace-matching feature, god I love it
<4> how could I determine that a external command was successfully ended or if a file is completelly written to disk ? and than continue PHP program execution ?
<5> ace_me, hmm.. system() probably has some kind of result code.
<5> are you *sure* using "external commands" is the only way to get the job done?
<6> join ##javascript
<4> seem that only rasteriser from batik has a SVG to PDF free converter
<3> you have to pay for edit+
<6> Hi , I am praveen
<6> New to this group



<3> Hi praveen_web
<0> exec and system both have arguments to get at the return value of the command you're calling
<7> i seems my php-sql cant connect anything. Warning: mysql_pconnect() [function.mysql-pconnect]: Can't connect to MySQL server on '192.168.1.38' (13) -- i have tryed it with 3 servers on work and my localhost..all been connected with command mysql -h <host>..what can it be? thanks
<0> so running mysql when logged into the webserver can connect?
<7> when logged into web server? when logged to the linux i can
<0> what's 'the linux'?
<7> bash.
<7> console, whatever you call it
<0> on the webserver?
<7> how the heck can i connect to console using the web server?
<0> you can ssh into the webserver machine, whatver it is
<8> Does anyone know how to modify the contents of DOM elements with PHP5 DOM?
<7> thats what i did.. and it worked with "mysql -h <host>"..
<9> idan: perhaps you are using an outdated mysql library with php? that would be the first thing that comes to mind if you're on win32
<7> deadroot: im using linux fedora 5 its a fresh copy of it
<9> hanumani: how's your DOM skills?
<8> not too bad
<7> gaved up?
<8> but I've never opened an existing doc, got the element and changed
<8> I'm good with xpath, xslt, etc, but I'm not too familiar with the DOM implementation in PHP
<8> do I have to delete the textNode and append a new one?
<8> Or is there someway to node->setValue()...?
<9> hanumani: it's not listed in www.php.net/DOM ?
<8> I see one comment by an M$ coder implementing something he expects from ASP
<8> but nothing in the official docs (which are really lousy for the DOM Extension)
<0> ->replaceData from the look of it
<0> the DOM docs are annoying, since they're not laid out in a way that shows off the inheritance structure of the cl***es
<0> note that DOMText extends DOMCharacterData
<9> neat. http://www.php.net/DOM#dom.cl***.domcharacterdata
<10> Hey,
<8> Xyphoid: So I could do something like: $books = $xpath->query("//books"); foreach($books as $bookNode) { $bookNode->replaceData('New data');}
<10> I am wanting to create a dynamic php settings page for my Admin control panel - things like Site Name, Site URL, Short Time Format etc etc. I'd like to use MySQL for it - but I really have no idea how i'd do this. It would be ok if they were all Textboxes but some aren't
<8> Xyphoid: ***uming it looks like : <root><book>old data</book</root>
<0> With any luck, yeah - haven't played with php5 DOM myself
<10> Does anyone know of an example I can look at to do this sort of thing?
<9> AlexC_: textboxes? html has textboxes?
<11> AlexC_ youd need some convention so that youll know which field is going to be what kind of form element
<10> deadroot, yes html textboxes, check boxes, list boxes etc - I don't know how I would dynamicly createthem with default settings
<9> it's textfields
<10> Raevel, I was thiking of having a field called 'type' in the database that would ... well say what type the setting is
<10> deadroot, ah right I always call them textboxes :p
<11> AlexC_ if you can't distinguish them in any other way, you might have to do that
<9> AlexC_: it's dangerous towards understanding. i could have taken that as either text fields or textareas
<8> Xyphoid: $result->item(0)->childNodes->item(0)->replaceData(0,1000,'Something new');
<10> deadroot, true - Raevel do you kow of anyother way to do it?
<8> Painful but true
<12> anyone around looking for work on a small job ?
<8> replaceData isn't really what needs to be done
<8> I think it requires deleting the cdata node an recreating it
<8> php will die if the new docs stay like this
<8> it's been 3 years, and any advanced features of PHP like SPL, etc are still in the dark for most of us
<11> AlexC_ i dont know how your database is designed, so i couldnt tell you. Rails uses the column type to do this
<0> heh, I'm still working on php4 code mostly myself
<9> hanumani: i think php implemented the DOM specs correctly
<12> i need php and mysql, a simple backend panel to add/delete/change my packages
<10> Raevel, well now you do: http://img143.imageshack.us/img143/20/untitled13oz.gif
<12> lookin to pay for the persons time to get this done
<10> Raevel, also what is Rails ? HEmpstar what type of job?
<12> alexc_ pmd you
<12> anyone else interested in a small job ?
<11> HempStar i might be



<12> pm
<7> mysql connects to hosts but not to ip's..something is wrong with the tcp/ip of it?
<10> Raevel, What is Rails?
<11> AlexC_ a framework for web development for ruby
<10> Raevel, I see
<13> i need to convert a string to an array of characters
<14> thyko: php.net/str-split
<13> like $str = 'hola' becomes $str_arr[0] = 'h' etc
<15> hm.. is this correct? $text = '$row['desc']';
<15> $newtext = wordwrap($text, 75, '<br />\n');
<14> thyko: what version of php
<13> Narada: thanks
<14> either there's a lag or this conversation is way slow
<16> Hello, i've been trying to install MediaWiki 1.6.5 but i keep getting this error...
<16> Warning: dl() [function.dl]: Not supported in multithreaded Web servers - use extension=mysql.so in your php.ini in C:\Program\Apache\htdocs\mediawiki-1.6.5\install-utils.inc on line 19
<16> Could not load MySQL driver! Please compile php --with-mysql or install the mysql.so module.
<14> gah anyone generated a backtrace before for a php segfault?
<16> Can anyone help? :/
<16> Anyone?... :/
<15> can anybody take a look at this.. http://pastebin.com/718301 i cant figure out why my wordwrap isnt working on line 24,25 and 34
<7> im unable to connect to mysql with php using IP's only with hosts (such has localhost) i need to connect to 192.168.1.38 (i have ping to it, mysql -h 192.168.1.38 works) but only php dosent let me connect..
<16> 127.0.0.1 is your local ip.. ?
<17> roniez: try put error_reporting(E_ALL); at Line:23
<7> hezkore: its a loop, yes.
<16> Well i don't understand the question, sorry
<16> But i'm a n00b anyways :]
<7> php-mysql wont connect to IP's only to hosts.
<16> Ok
<4> I have a php prog that create a pdf file on c:\ folder and the script is trying to read the content and than to output the pdf on screen ! The file is created but the content is not shown ! It output something that file could not been found ! I think is something related the temporary folder ! ANY HELP pleae ?
<13> ok
<13> i have an array of characters
<15> Ox41464b: i tried that, but it aint saying anything different..
<15> :S
<15> it is not wrapping the out text for me.
<13> i nned to search the whole thing to see whwther there is a character in it that resembles $x
<18> Hi, i'd like to know if i can send a mail with php without having a sendmail
<17> roniez, impossible you will not able to p*** Line: 24 correctly
<15> well it,s not saying anything for me atleast.
<17> Line23: error_reporting(E_ALL); ini_set('display_errors', true);
<4> where a file is stored on win when a script generate it on fly ?
<15> aw. btw, i removed the first and the last ' on line 24
<4> Temporary Internet Files has only admin and system rights
<18> nobody knows hw to send a mail with php ? ;)
<4> of course ! 1sec cck
<18> thks :)
<4> mail(EMAIL_FROM_ADDR,$subject,$body,$from
<15> Ox41464b: still nothing, it just shows everything its suppose to, but its not wrapping the $newtext.
<18> ace_me i know that, i'd like to configure it to send the mail with my isp smtp, without having sendmail
<17> ace_me, cmd.exe C:\>set (check your TEMP) folder
<17> roniez, $text = '$row['desc']'; <~ nonsense for me
<15> yea, i removed the first ' and the last ' of those.
<15> so it looks like this now $text = $row['desc'];
<3> what is a good text editer with sintax highlighting that is free
<2> vim
<2> emacs
<17> roniez, sorry no idea then... (but try view source) im not sure with your overflow:hidden
<15> Ox41464b: i removed that overflow:hidden,
<15> it not working as it should..
<15> CRAP IE
<4> if I save the file generated by a script on disk and than open it is ok but if I open that is saying file not found ! any idea please ?
<14> slightly offtopic (trying to generate a backtrace for a php segfault) how do you p*** the apache2 arguments to gdb? this doesn't work: gdb /usr/sbin/apache2 -D DEFAULT_VHOST -D PHP5 -D INFO -D USERDIR -d /usr/lib/apache2 -f /etc/apache2/httpd.conf -k start
<14> if i just do gdb `which apache2` it starts up but thinks the docroot is /usr/htdocs which is no good for testing
<19> Narada: gdb /usr/sbin/apache2
<19> Narada: (gdb) r <args to program being run>
<20> sup TML
<14> TML: aaaaah; perfect thank you very much
<19> What you're doing right now is p***ing a bunch of (unrecognized) options to GDB
<14> TML: and then run -X right?
<19> Narada: "r" is a shortcut for "run"
<14> oh
<19> Narada: You need to list ALL of your arguments
<19> Including -X
<14> ah okay
<19> r -X -DSSL -foo -bar -baz


Name:

Comments:

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






Return to #php
or
Go to some related logs:

ubuntu autohinter etch
ubuntu boot failure insert system disk
AlphaBots
#math
#suse
#php
#php
simple sprite javascript
mx3215 ubuntu
KISSrand random



Home  |  disclaimer  |  contact  |  submit quotes