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



Comments:

<0> or does it do it all the time
<1> usage: $link = modURL('var','newval'); $link = modURL('var2','newval2',$link); echo $link;
<2> looks good'
<3> I've just installed WAMP
<3> not getting ANY error messages when something screws up, just nothing...
<4> hey could someone tell me how I could call a function with a hyperlink.
<4> I can do this with post method (buttons) but I need to do something similar with hyperlinks
<0> same way
<0> $_GET instead of $_POST
<4> oh
<4> I see
<0> how difficult was that
<5> or $_REQUEST for both GET & POST
<0> well yes if you want to be lazy
<4> well to see if a button is pressed I currently have - if(strcmp($_SERVER["REQUEST_METHOD"], "POST") == 0){blah blah}
<1> zbq: if you want to take a variable out you'll need to set the var to '', that's the only bad thing about it. I found it on some snippet gallery a long time ago.



<3> error_reporting = E_ALL
<1> create a new one kinda like that for the company I work for, actually does the job right, but sadly, i can't give that away ;P
<3> and still no error messages
<3> nothing at all
<1> should be easy enough to mod though
<3> if something breaks, I hear nothing back
<3> just get a blank page
<3> or nothing is after the error
<6> when theres lines of code that do things like, "$foo ? $bar : $var", whats hte term called for that, so i can find it in the manual
<2> yea, i need to do that - tweaking the code now to handle that and also %20 in a value
<1> well happy modding, if you need any feed back just hit me up ;p
<1> ;)
<5> torz, the way if you want to know if a button is pressed you may try if(isset($_POST['youbuttonname'])) { pressed }
<4> cdqs: ah cheers :D
<5> :P
<4> cdqs: could you be able to do show me the alternative for hyperlinks? please :D
<7> when saving images om the server is there any other solution than 777 the image folder
<4> *could -> would
<5> if(isset($_GET['hyperlink'])) { hyperlink action }
<4> exactly what I wanted to hear :D
<4> you're the man cdqs :D
<5> lol
<8> I'm using a third party lib which gives an output in setted encoding. I'm reading from an excel file, when I set it to UTF-8 it's almost perfectly correct. But even though some characters appear correct in some lines, they seem wrong in other lines. Any ideas ?
<5> EricCartman-iBoo, when you write it on the page ?
<5> into
<8> yes, also to database
<8> the values returned by ord() is different
<6> when theres lines of code that do things like, "$foo ? $bar : $var", whats hte term called for that, so i can find it in the manual
<8> I mean the character which is displayed correct on some place and wrong has different values really.
<8> I've tried str_replace( "\220", "", $str );
<5> EricCartman-iBoo, try this on the top of your script
<5> mb_internal_encoding("UTF-8");
<8> but no go, how can I replace by value
<5> mb_http_output("UTF-8");
<5> ob_start("mb_output_handler");
<0> argh how do you turn off display of parse errors!
<8> cdqs, broken characters are not "shown"
<9> dammit man
<8> cdqs, but ord( $str{index} ); still gives the same value
<9> i have like 20 gazillion if (!$error) { } :(
<5> are you sure that is an UTF8 docs ?
<9> can't find a way to prevent it
<10> ini_set() any one?
<8> cdqs, no not really, it's an excel output from a accounting program.
<8> cdqs, but utf-8 gives the closes match
<8> cdqs, are there any variants which excel document could have ?
<8> utf-8foo
<8> ?
<5> iso8859
<8> tried that also tho
<5> test it with iso8859-1
<8> iso-8859-9 should have the characters tho ?
<8> it's Turkish
<5> yes it's
<8> I've tested with ISO-8859-9 format tho
<8> not iso8859
<8> let me see
<5> no it'll wont work



<5> hmm
<5> i don't know ;)
<8> iso is more broken
<8> utf-8 is the closest
<8> but apparently-same character on excel is shown correctly in one palce and not in the other place
<5> http://fr.php.net/manual/en/function.mb-internal-encoding.php
<0> CloCkWeRX: display_errors = Off is still showing the errors
<5> You know, Exel and me that make 9483478365
<7> when saving images om the server is there any other solution than 777 the image folder
<7> ?
<5> yes
<5> you should use the SETUID module with Apache
<7> what changes should i make ?
<10> http://hashphp.org/pastebin.php?pid=6138
<10> Narada, go look at the URL
<8> cdqs, do you know how can I substitude characters with their integer value ?
<5> something in the configuration files and certainly a new compilation
<7> well this is a rent server
<7> :s
<0> CloCkWeRX: i've already looked at all the php.ini options; set them and restarted apache; what more are you suggesting?
<5> kaydara, :/
<10> *smacks head*
<5> EricCartman-iBoo, by parsing the file or by using preg_replace
<10> look
<10> grok
<10> experience happyness
<10> *nods*
<8> str_replace( chr( 123 ), ... is ok
<5> EricCartman-iBoo, http://fr.php.net/manual/en/function.preg-replace.php *
<5> EricCartman-iBoo, preg_* are more faster than str_replace...
<8> don't care, this is just for one time import
<0> CloCkWeRX: thanks for that; really; but it doesn't work
<10> Narada
<5> EricCartman-iBoo, well you replace it with str_replace
<10> i'd rather you didn't say that; because that means the work application i just copied and pasted it from is completely powered by what I can only ***ume is Magic(tm)
<11> Any sufficiently advanced tech is indistenguishable from Magic(tm).
<12> how can you check if a variable contains a certain type of object in PHP?
<0> CloCkWeRX: i don't like the way you are speaking to me; if you have any further suggestions i'd like to hear them; but so far it is not working for me for whatever reason i don't know
<10> if ($foo instanceOf Cl***Name) { } //php5
<11> dewaard, isint(), isstring(), in PHP4.
<11> There's others of course.
<12> FreeOne3000: thanks
<11> PHP is like java, minus the strictness and has a lot more dollar signs...
<5> dewaard, is_array(), is_int(), is_bool(), is_float(), is_string() etc...
<12> CloCkWeRX: thanks
<5> dewaard, http://fr.php.net/manual/en/function.is-array.php
<10> if (is_a($foo, "Widget")) { } //php4
<12> cdqs: i know those functions but they won't determine what type of object an object is
<5> yes you can with get_cl***()
<12> cdqs: hmm, interesting. that might work in php4 as well
<5> blih = new blah; echo get_cl***($blih);
<5> > blah
<5> dont think so
<5> finaly yes it is
<5> http://fr.php.net/manual/en/function.get-cl***.php
<10> ick
<10> don't use get_cl***, use is_a
<5> dewaard, if(is_object($blih)) { echo get_cl***($blih); }
<10> cl*** A { } cl*** B extends A { } $b = new B(); if (get_cl***($b) == "A") { }
<5> > blah
<10> won't work
<10> cl*** A { } cl*** B extends A { } $b = new B(); if (is_a($b,"A")) { }
<10> will
<5> get_parent_cl***() solve this problem
<10> *winces*
<5> CloCkWeRX, you can fix is with a recusif function
<5> +r
<5> while(!isset($parent)) { }
<12> ok, is_a() will do
<5> yes
<13> morning all


Name:

Comments:

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






Return to #php
or
Go to some related logs:

xstartup VNC Xfce debian
Comand 2,5-E/HEAD
dropline aiglx
ubuntu || kubuntu reconfigure alsa || reconfigure sound
gentoo libpangoxft firefox
aterm dejavu font -rpm -repo
gentoo minicom too many symbolic links
apache2+2ips
#web
#python



Home  |  disclaimer  |  contact  |  submit quotes