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



Comments:

<0> well
<0> i'll put some now
<0> :D
<1> thanks :)
<1> i already see few probs.
<0> shoot
<2> is there a name for the $_GET vars?
<3> Drakas, partially
<1> jals: huh? GET HTTP method vars
<3> i installed some pear modules to my server
<2> that'll do, thanks
<3> im using compat
<3> <added 30 moer fonts to his script>
<3> <evil laugh>
<1> ..ok
<0> http://rafb.net/paste/results/ROJc6691.html



<3> hmm i can not seem to figure out how it is managing to get out of bounds...
<4> hi all. if i set a session variable then close the browser's tab, then reopen the page in a new tab, shouldn't the variable disappear?
<0> only when you close the browser
<5> hello
<0> Drakas do you understand any of my code?
<4> BigSinep: ok, thanks :)
<1> wait
<1> just got back
<1> BigSinep: what you are trying to do is total CPU wasteage i guess. If you are using >MySQL 4.1, then you are lucky with SubQueries. If not, you can still use join syntax and group by.
<6> jarjar:~# pear list
<6> => Allowed memory size of 8388608 bytes exhausted (tried to allocate 0 bytes)
<1> sylvinus: pear is actually a php script. so you probably have too much scripts installed.
<7> Try #pear
<1> sylvinus: edit your php.in for a moment and hivher the mem. usage
<6> this is a pear issue
<6> 8mo is the default on most configs. pear devs should be aware of this and limit their memory usage
<0> Drakas.. hmm, can you give me an example of what subquery should i use.. ?
<1> BigSinep: Join: something like this: select * from table1 left join table2 on (table1.one=table2.one);
<1> BigSinep: yo need to look in MySQL, #mysql should be helpful as well as mysql docs & google
<0> why is my code so cpu consuming?
<1> what you basically do with MySQL is retrieve all relevant rows in one or two queries :)
<1> BigSinep: because you are repeating through every record and querying and repeating it again... two loops and more than one query. This eats network bandwidth as well as the MySQL server's CPU
<1> one query would take longer but your queries together would take even longer..
<8> drakas: explode() is used to devide arrays in other variables, then how could it be used to check errors from web pages?
<1> superpimp: if you are using file_get_contents or fiel(), you cant get the http response code
<1> superpimp: you need to use cURL or fsockopen
<0> Drakas: what should I avoid ?
<1> BigSinep: iteration and lots of queries.
<7> 35 foor tall hampsters
<0> iteration... hmm
<1> hm nvm about iteration, sorry
<7> 35 foot tall hamsters
<0> Drakas: iteration makes the tables flow...
<0> ok so avoid lots of queries
<0> ok
<1> BigSinep: if anything, you should store all retrieved data into an array and then later output it... it would be MUCH better
<8> drakas: i use fosockopen
<1> your script wouldn't stop and resume, stop and resume
<1> superpimp: have you actually done a HTTP request yet? or are you just talking..?
<8> how?
<9> is it possible to modify the mail header Return-Path with PHP - on Windows I should add
<10> Is there a reason why explode(" ",$string); doesn't split ?
<10> Because it doesn't.
<1> oZt: enable error_reporting(E_ALL); echo $string; print_r(explore(" ",$string));
<10> Ah, thx
<1> this shoudl show if theres something wrong. ALWAYS use error_reporting(E_ALL); =P
<2> i'm a complete cl***es newb, how do i output a variable i've p***ed to a function?
<7> return it
<2> ok, how about if there were 2 vars i wanted to output?
<7> return an array
<2> ok
<2> i think i know what i was diong wrong before anyway
<0> is there a way to group the results from a query into one field...
<11> is_exectable('/usr/bin/perl'); returns me false while it is executable and I can execute perl... and hints?
<7> $array[]=$var1;$array[]=$var2;return $array;
<1> Ries: maybe... is_executable('/usr/bin/perl'); ??
<2> right, so you name your cl*** $mycl*** = new mycl***; then within your function you declar the var $this->name = $p***ed_variable, then echo it by doing $mycl***->name
<2> right...
<11> Drakas: yes it is, I just really tested it by putting using this ! is_executable('/usr/bin/perl'); in my if statement and then it all magacly works
<8> Drakas: how do I do a http request
<1> ... superpimp maybe RTFM!



<12> Ries: what exactly is your question?
<8> dude
<1> superpimp: manual cntains hundrends of examples!
<8> all I find about a http request is with this pear plugin
<1> superpimp: manual it..
<11> itrebal: is_executable returns me false while the file is really executable and works from within PHP, I wonder if that's a bug, a feature or a setting :)
<8> getting tired, i'll check it out later
<8> bye
<0> i have a table with atomic values... what query should i use to group all of them into one single result cell
<1> Ries: maybe your user doesn't have access to /usr/bin/perl ?
<1> Ries: try shell_exec("whoami");
<1> shoudl show the user you are logged on..
<11> Drakas: weird... doesn't show a user.... it's empty
<1> Ries: are you sure that you have error reporting as E_ALL
<1> ?
<1> i don't recall how to check what user is running
<11> Drakas: stupid me, I had to do print shell_exec("whoami");, it returns as expected apache
<1> oh :)
<1> maybe user apache doesn't have execute access to that file?
<1> try print shell_exec("/bin/sh whoami");
<1> you can execute somethin gusing /bin/sh and then you should be able to execute your perl script using that
<1> i don't know much about this =/
<0> Drakas: can i group results in one cell ?
<1> BigSinep: yes, Group by something
<1> "group by x"
<11> Drakas: that stays empty...
<1> echo then ]
<9> ok I cant seem to get this - is there a way to modify the mail Return-Path header so that it's not showing the address setup in the .ini?
<1> nopea: ini_set ?
<9> I guess - I thought it could be done just with normal headers no?
<11> nopea: Add a mail head for it..
<11> nopea: yes :)
<9> Ries, I did - but it keeps showing the address set in the .ini
<9> I am on a Windows Server - maybe thats it
<1> nopea: ini_set !
<11> nopea: I don't know about windows.....
<1> look in the manual, there's a list of options available
<13> ##php was removed?
<13> huhu?
<13> oh
<13> April 1st.
<13> doh.
<9> Drakas, I am trying that now :)
<2> would it be silly to check if a user is logged in by a cl*** variable? if($user->loggedin == true) do this
<2> ?
<1> lol Shorty_ :DD
<1> jals: not really
<2> i quite like that, it looks tidy
<1> i have that ..:)
<2> heh
<1> i am rewriting my content system (not management), like 5th time now =D
<9> Drakas, the value I need to set in the .ini is for Win32 only - do you think ini_set will alter that too? Its not listed in the manual
<1> ang on
<1> nopea: didn't find anything in the manual about return-path :s
<1> are you talking about "From: "?!
<9> I need to set sendmail_from in the ini - its a Win32 only thing... I will try it with ini_set see if that works
<1> ini_set("sendmail_from","example@example.net");
<9> no - that I could do - its the 'Return-Path
<9> yeah typing that now :)
<1> =S
<9> beauty that works!
<1> ye !:)
<9> cheers for the tip
<14> Hi guys, what is this script called?
<14> a script where i can grab news from another website and display it on mine (linking to there site)
<14> evilguru can u te ll me?
<15> Evonz: tell you what?
<1> Evonz: ?!
<1> LOL
<1> the guy is not making any sense..
<1> Evonz: RSS?
<15> hes lost it
<16> omfg
<16> ZENDNODE?!?!!


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#physics
#linux
debian ne2k_pci
video_cards unichrome
saramost
#php
kubuntu display aspect ratio incorrect
ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'asterisk'
greasemonkey replace string
4 dimensional hash perl



Home  |  disclaimer  |  contact  |  submit quotes