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



Comments:

<0> [Ex0r]: read php.net/return
<1> AmyS3: See the "#Required" next to action?
<2> et: oh..
<3> I already read it, it's not helpful at all to me
<4> And your questions aren't helpful to getting ***istance
<2> et: ure right... hmm damn.. so back to my question..: how do iget the current uri as action for my form? ^^
<3> Actually, they are, you just don't feel like answering them. It's hard as hell to look at a page that is poorly documented and expect to know what the hell is going on.
<5> Anyone experienced with runkit? (Runkit_Sandbox..) I have some problems compiling it, /runkit_sandbox.c:1559: error: invalid lvalue in ***ignment.
<6> is there a way to apply a name to a session so that i can tell which ones i'm testing with and which ones are coming from live sessions on my sites ?
<7> how to write a special char in HTML
<1> AmyS3: action="#" will work, but you'll end up with a # in the uri
<2> et: as long as i stay on the site its ok..
<1> AmyS3: that's still not valid in the general sense, but at least its valid html
<2> et: hmm true..
<1> +'



<3> AmyS3- why not use <?php $_SERVER['PHP_SELF']; ?>
<2> im using "echo "<form method=\"POST\">" for the form, so "<?php $_SERVER['PHP_SELF'];?>" want work..
<8> if you specify action as an empty string, it posts to itself
<8> like <form action=''>
<1> still not valid
<2> simonbun: but its not valid..
<3> "<form method=\"POST\" action=\"<?php echo $_SERVER['PHP_SELF']; ?>\">" will
<8> oh sorry, i just started reading :)
<2> <form action=\"" . $_SERVER['PHP_SELF'] . "\" method=\"POST\"> should work right??
<3> wait, you're already inside php
<3> yeah that would work
<0> ewww that's ugly as sin
<0> echo '<form action="'. $_SERVER[PHP_SELF] .'" method="post">'; would be much nicer
<9> anybody ever worked with setting up image thumbnailing with oscommerce?
<10> anyone know of an OO pattern to access a if running mysql connection from inside multiple cl***es
<11> TestiCalls: What do you mean?
<10> so i have 3 cl***es that each want to grab content from a mysql connection.. i don't want to instantiate a mysql connection per cl***... i want to have a way to have one open connection and the others sharing it
<11> TestiCalls: make a global mysql resource.
<10> i figured, but i don't like globals
<10> is this one of the particular instances it's ok
<0> well... you want to access it globally....
<10> again, i know this.. but i was hoping for a different option
<11> TestiCalls: You can make the mysql resource a static variable like: define('MYSQL', mysql_connect(...));
<11> TestiCalls: Or create a singleton database wrapper cl*** for your connection.
<11> TestiCalls: Or create a pure static cl*** for your resource.
<11> TestiCalls: Many options.
<10> ah there we go the singleton
<10> that'd would work
<10> thanks CyaNox
<11> np
<12> can i update more than one column at a time with the UPDATE command
<13> #mysql
<12> sorry
<14> hello everybody
<14> i get truncated $_SERVER['SCRIPT_FILENAME'] when using a pathinfo and the script is in my public_html
<14> eg.: [SCRIPT_NAME] => di/public_html/sa-v_0_3/index.php
<14> is should be [SCRIPT_NAME] => ~andi/public_html/sa-v_0_3/index.php
<14> anyone encountered this problem?
<15> lizardX: perhaps some funkyness due to "~" ?
<14> it works well if i don't add a pathinfo after the script name
<14> eg. ~andi/sa-v_0_3/test.php works well
<14> ~andi/sa-v_0_3/test.php/path screwes the SCRIPT_NAME
<16> when i do a #> psql testdb < tsearch2.sql I get "ERROR: permission denied for language c
<16> " and it stops...anyone know what i need to do?
<16> select * from pg_language; shows "c | f | f | 0 | 2247 |"
<13> ...
<13> Since WHEN this is #postgresql?!?
<16> doh!
<16> soryr...
<17> helppppppppppppp
<17> php installing is making me go insane :-(
<13> Chezzy: php.net/install
<17> its just the libphp5.so where is it ???
<17> i can't download it i can't get it i can't install it. i have tried for 4 hours now
<18> in php, how do I do an if-clause with alternatives? If A or B?
<13> if a || b
<19> Madkiss, || or OR
<18> thanks
<18> if($string != "all" || !preg_match("/^([A-Za-z])$/", $string)) { -- is that correct?
<18> yes.
<18> My brain is boken.



<18> thank you anyway.
<4> "Availability: Usually ships within 1 to 3 weeks. Ships from and sold by Amazon.com."
<13> Pollita: your book?
<13> !tell AmyS3-Away about away
<19> is there a function to convert html equivilants to their values, like &amp; -> & etc?
<4> yep
<4> It's officially shipping now
<13> Pollita: :)
<19> I know I could do it individually for each one, but is there an easier way?
<11> firefly_: yes
<20> hmm.
<19> CyaNox, yay! details?
<21> what book? Pollita has a book?
<11> well lemme see ... html .... and entities ... and decode ... html_entity_decode ... :p
<22> CyaNox: well, could easily have been htmlentitiesdecode(), what with there being an htmlentities() function
<19> awesome! thanks CyaNox
<11> GarethAdams: Yeah but it is quite findable in the manual if you search for "html entity decode"
<23> Question: I have aproblem with php connection to mysql local server. It always try to connect with the unix socket and i need it to use tcp type.... how...
<11> le_mackeux: The easiest is to not use localhost but the ip address of your external eth
<23> ok, good idea
<23> i'll try it right away
<11> but then again ... I'm not a mysql expert ...
<23> OH MY God
<23> you're right
<23> sometimes the easiest solution is the best one
<23> I've never tought of it and i wasted yesturday evening trying to fix it :S
<23> tks a lot
<15> le_mackeux: don't let mysql listen on public interfaces
<23> don't worry, it's behind a firewall. that isterface is trusted.
<23> there are 2 ips that can access it, my desktop and itself
<23> also, i keep the mysql rights closely set so user can only acces it from the server it.
<15> is it a routable IP where it's on?
<23> yes
<23> but not routable on public networds
<23> networks
<24> hi, i was just making some changes to a little link organizer script i wrote, and i ran into a problem and can't figure it out.. when you edit a link and save the changes, the link just reverts to the way it was before you did any editing.
<23> CyaNox, you can't imagine how much you made my day.
<23> NB, no right permissions
<11> well there is always the option to show me with some $$$
<23> no write*
<23> lol
<24> here's a pastebin: http://perry.pastebin.com/756085
<23> CyaNox, i no, it's a DBA and you hire him ;)
<24> le_mackeux: there are write permissions, because i can add links, just not update the ones i have
<24> i'm sure it's a problem with my code, i'm a php noob.
<11> le_mackeux: no $$$ ? ... :(
<23> CyaNox, i don't make money out of it so.... kinda wierd
<23> lol
<24> could anyone here look at my pastebin and tell me the errors of my ways?
<6> is this syntax correct ? - (is_null($this->host) : $this->host = $vhost ? ;
<6> ^)
<6> i'm trying to say that if the cl*** element is null, then use the incoming variable, else do nothing because it's already set
<6> i have (is_null($this->host)) : $this->host = $vhost ? ;
<6> anyone?
<13> gymsmoke: You tell us...
<6> Wolfpaws, IDK which is why i'm asking the question
<25> gymsmoke: Just use a regular if statement to decide whether it needs to be set, no need for a ternary.
<13> "is this syntax right" means you idin't tried it.
<6> Wolfpaws, i've tried about 4 different iterations of it, and i get different results (none expected)... nm, i'll just is if constructs until i find it somewhere
<13> gymsmoke: Have you even *tried* what you wrote?
<6> Wolfpaws, read the last reply
<26> Hum, I need a few help about ssl certificate, do you know some cheap provider ?
<6> rapsys: ca-cert.org
<13> gymsmoke: So the answer is "no"
<26> gymsmoke: how may I get a certificate for a serious service (just contact the mailing list is enough ?)
<6> Wolfpaws, if i say _i've tried about 4 different iterations_, that means that i've typed this code in in varying formats (including what i typed earlier), but none have given me the results i expected
<13> !+ternary
<27> [ternary] Like many other languages, PHP has a ternary operator (?:). It serves as a compact if/else syntax. See http://www.php.net/manual/en/language.operators.comparison.php
<6> rapsys: "serious" ???
<6> rapsys: so, you've checked into ca-cert, and that's not what you want?
<24> i'd still like a little bit of help with my link organizer script if anyone wants to look at it: http://perry.pastebin.com/756085


Name:

Comments:

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






Return to #php
or
Go to some related logs:

libical.deb
DRIPROTO
Red Hat Enterprise Linux AS release 4 centos
+gentoo +xml_parser_create
#mysql
#lisp
see what version of fluxbox
#perl
Perl Win32::Timer
python gambit example



Home  |  disclaimer  |  contact  |  submit quotes