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



Comments:

<0> [1]sideone: the amount of memory php will use, it defaults to 8mb, try setting to 16mb
<1> I have a question about XML and php... how can I make a code that will read an xml file and display it on the browser?
<2> know which syntax to look at?
<2> memory limit?
<0> [1]sideone: actually, is it only when you POST to the site?
<0> if so change post_max_size
<3> GregVernon: I only saw zend do it
<0> also, i dunno 'bout the others, but you can use zend under linux
<4> hi
<5> is there a way to compile php so that you have both imageantialias and imagecreatetruecolor ?
<0> ok. so is it me, or if you print_r the results of simplexml_load_file does it not show attributes
<4> i want to choose only a certain string example amir@there.com and i want only to choose amir .. what is the function in php that can helps me with that?
<6> oh man
<6> PHP Designer 2006!
<0> ?



<0> GregVernon: you like PHP Designer ?
<4> i want to choose only a certain string example amir@there.com and i want only to choose amir .. what is the function in php that can helps me with that?
<6> yep
<5> split?
<0> AM|R: split
<0> yeah
<7> dynamically named variables.....not fun
<8> automatic quote ****
<0> NSGN: why ... WHY!11
<4> uh
<8> should have been abandone
<7> mrkris: an experiment
<4> split eh
<0> oic
<8> when you try to code by typing ..
<7> mrkris: i really cant think of a better way to do it than extract();...but its NOT fun
<4> example mrkris
<0> AM|R: $str = 'user@domain.com'; list($user, $domain) = split('@', $str);
<4> ermm
<4> nice
<4> thanks a lot mrkris u are helpfull
<9> question, is there a way to write backwards? (i'm learning php as we speak :p) I can get stuff to write to a file very well, but can it goes to the bottom, could i write it on top of what's before? Should i clear the file, then write the new info, then re-write the old info?
<10> Dario: i don't know the "proper" way to do it...
<7> ok....stink
<0> np AM|R
<7> i have a situation where i have a
<7> oh wait
<7> im an idiot
<7> forget that
<10> but id' write it to a tmp file... then append the tmp file
<10> then rm the origina and rename the tmp to the original
<6> NSGN, just out of curiousity, what experitment would ever make you want to use dynamic variable names?
<0> Dario: hmmm, try doing $lines = file($filename); unshift($lines, $newdata);
<0> Dario: then rewrite
<0> the larger the file the more memory though :-o
<9> mrkris: it would jsut be a small text file.
<7> gregvernon: i think i just nixed them from my program. i just wanted to see if they would do me any good. turns out my database kinda makes em useless at the moment
<6> haha
<11> why is it ##php?
<0> Dario: then try what i said, then rewrite the data to the file (not append)
<10> AlexW: read freenode.net pages
<10> this is not an official channel
<10> just a a"about" channel
<11> ahh kk
<7> actually, i still have a situation where i need help making a variable name from the names of other variables. how do i do that?
<9> mrkris: im looking for ways to do it now. thanks mrkris
<7> i've done it before but can not remember
<11> has anybody done exchange rate converting?
<6> AlexW: yes, actually I have
<7> i'm just tripping over the placement of things such as " and ' not to screw each other up
<11> do you have some source?
<6> yes
<6> the central bank of europe
<6> its the only one I could find that was free
<11> lol
<7> so how to create variable names from variables, anybody?
<6> NSGN: I couldn't answer that :(
<7> dangit i did it once a LONG time ago
<11> how exactly does it do that GregVernon?
<6> CronJob



<7> anyone else? :-\
<6> hold and I'll post-bin the source
<11> thanks
<12> NSGN: extract() not work for you?
<13> when i use curl to post data... do i echo the result to display the page it was posted to?
<7> nforbes: it ended up not even being needed because of my database. but now i need to name variables from the name of another
<12> 90% of the time you can just use an array
<7> using that to pull stuff from my DB i dont need extract
<12> but -> http://php.net/variables.variable
<13> i'm using the curl post so i can make sure the user didn't change any of the data
<13> like the price
<6> AlexW: I must warn you, ITS UNCOMMENTED, and very poorly written
<6> http://pastebin.com/526820
<6> for the retreval script
<13> but i'm not entirely sure how to display the resulted page... i would ***ume $r=curl_exec($ch);
<13> echo $r; would work
<6> http://pastebin.com/526823
<6> for the actual display
<11> isnt that euro -> ....
<11> i just need a simple converter :P
<6> uhm, does it matter?
<6> that should do it
<6> I mean, you may want to work on it abit, only b/c I wrote that for different reasons, but still
<14> AlexW, just go to xe.com
<6> AlexW: what are you developing?
<14> Post to that, none of the work, all of the fun
<11> http://www.pulsehosting.com.au/index.php
<11> trying to convert AUD to USD and AUD to NZD
<11> then i will use GD for the images
<11> http://www.pulsehosting.com.au/hosting/ <--- but i wanna convert that first
<6> dude, do you want me to make an API for my existing service? that way you don't have to worry about the code.
<6> nor cronjobs, etc.
<11> yeh
<6> Okay
<6> give me like 2.5
<11> whats API again?
<6> Uhm, you send a request, I give you a result
<11> thought so
<11> thatd be sik
<15> kay, give me a second
<7> ooooook. i just stored some text in a cell in my DB that was put into a text box. i had a few line returns in that text box between lines. someone mind refreshing me on how i make these be reflected in the HTML?
<11> thx
<7> when i echo the cell's content onto a page
<7> ..anyone awake?
<11> yuh
<7> have any clue how to make line returns play nice?
<11> no...
<16> play nice with *what*, specifically?
<7> ok. so i have some text coming in via POST
<7> and i am storing it in a DB
<7> when i typed that text into a textbox
<7> i put some line returns
<7> but they are seemingly stripped
<7> and not stored in the DB
<7> muhoo: so thus not displayed when output
<7> muhoo: yet...magically if i go look at that text in phpmyadmin...the returns are there
<7> so i am a bit confused
<16> i've had this problem
<7> i know i've done this once before...but it was a long time ago
<7> any pointers?
<17> nl2br()
<17> The linereturns ARE there
<16> they're just not getting displayed
<17> But HTML renders linefeeds as ordinary whitespace
<7> yeah. so basically i just need to tell html to display <br /> each time that comes up
<16> Pollita: exactly, yes, nl2br() is how i solved it
<17> yes, and that's what nl2br() is for
<7> oooh
<7> *goes to try*
<17> nl (newline) to br (line break)
<18> question... if I call urldecode() on a POST'd form, is that an issue?
<18> I know I need to do it if the method is GET but I'm wondering if it's necessary using POST.
<17> jonez: It could be, depending on what's in the data
<17> jonez: No, you don't need to do it.


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#css
fetch a mysql result rows and store it as a session variable in php
rhel yum cvsd
#centos
xbuntu libc6
gnm_cursor_cross
#web
#math
install-gocr ubuntu
nagat debian



Home  |  disclaimer  |  contact  |  submit quotes