| |
| |
| |
|
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
Comments:
<0> oriceon: look at mysql_fetch_***oc and mysql_fetch_row also. <1> airox .. what you are use? <0> I tend to use mysql_fetch_***oc. <2> storm: so overall is that code very sloppy <2> im very new at this im trying to get things as effecient as possible <3> omnipresence: I've seen worse, so you're good. <2> thx :) <2> now to figure out this extract statement <4> yes i am god <4> i just finished a project that ive been working on for 15 hours <4> im gonna go die now <5> how do i get the type of variable? <5> like, float, int, string, object.. <5> array_map("round",$ret); << $ret's values are floats. this simply doesn't do anything =/ <6> gettype() <7> ok so this is weird, i have a very simplistic form for uploading files
<7> just a simple <input type='file' size='50' name='upload'> <7> but in the processing function, $_FILES shows nothing for $_FILES['upload'][anyrequest] <6> got the <form enctype=""> set correctly? <5> $v=(float)$v; but still shows as double :/ <7> enctype? <7> aha, i guess that's my problem <8> Drakas: PHP only has double precision floating point numbers, so (float) is the same as (double) <6> a float IS a double <6> Forty, http://nl2.php.net/features.file-upload -> <form enctype="multipart/form-data" <7> yea, just found that <7> one site didn't have thatin the form <7> hehe <5> this is weiird <8> Drakas: why do you need single precision floating point anyway? <5> array_map("round",$ret); << this just doesn't do it's work. What's going on? i created round2, return the value with round2 and it isn't set :/ also tried backreferencing :s <5> never mind, noob mistake <8> heh <5> i thought array_map backreferences the parameters... but it returns <8> array_walk? <5> thats what i mixed up..:] <9> I'm so depressed... I need to code something. <5> but now works <8> :) <5> MadSekkai: GD! <9> Drakas: What about it? <5> GD is quiet complex if you want to generate and modify images :] <9> Oh <9> I was actually think about that. <8> GD is fun <5> for example, create a gradient inside a rounded rectangle. how's that? <9> I just had a great idea.. <9> Well for me. <10> or make a maze graphic <9> You know those drop shadows on the sides of blogs and stuff? <10> they should include animated gif generation support in PHP <9> I want to automatically generate one with, a foreground color, a bg color, and... a width. <10> they are using an old version of GD <5> yes sweet <10> my gradient program can do that <5> just make a website generator or something <9> sproutworks: so can mine. <9> But I don't have it open all the time. <10> i meant my gradient php script <5> with themes and different styles. styles would be defined through xml. and then website and it's images + css + html would be also automatically done :] <9> Oh. :/ <9> sproutworks: Link? <10> http://127.0.0.1/displaysource.php?filename=gradient2.php <9> lol <10> click what is sproutworks for examples <11> haha <10> lol <8> 127.0.0.1... :P <10> oops <10> http://www.sproutworks.com/displaysource.php?filename=gradient2.php <10> had 2 copies of my site open in tabs <5> =] <10> my next gd project will be making a whole interface all in gd and using ajax to controll it :) <9> Where can I read up on GD... I don't mean php.net <5> hm <5> here it is, MadSekkai : http://www.nyphp.org/content/presentations/GDintro <5> a very nice intro =]
<12> Madeye: www.boutell.com is the home of gd <13> If an object contains another object, how can the internal object access methods in the external object? <13> do I have to p*** the external object (by ref) to the internal in the constrctor? <2> how do i extract without losing null values <14> hello <14> In PHP, if i insert a row into a MySQL DB, how can i find out the key of the row i just inserted in order to refer to it in another table? <9> Drakas: Have you seen anything like I want to make? <5> ? <5> what do you want to make, MadSekkai ? <9> What I was saying before about a drop shadow, changeable foreground and background.. <15> if a cl*** has share the names of attributes with field names from a mysql table, is there a quick way of instantiating all of the cl*** attributes with a mysql_fetch_***oc(), rather than doing this manually? <5> er maybe <5> MadSekkai: php.net/gd has got a lot of user notes as well as sanother pages... <5> you can find lots of info there and adapt it. <5> basically, to create a shadow for something, i would first off create a temporary image, red & white for example. then add shadow around the red and later replace red with whatever you want it to be. can be an image or anything =] <5> fastly: for example, $this->field_names=array("one","two","three"); when you are repeating through mysql_fetch_***oc -> foreach($this->fields as $i => $field_name) { echo $field_name.": ".$row[$field_name]."<br />\n"; } } <16> Guys i have instaled this pam_auth php module. Now my apache server seems to be ignoring it? i get the following error in my apache error log when i try to login to a pam account via a web cms (called moodle). <16> [client 10.0.0.183] PHP Fatal error: Call to undefined function: pam_auth() in /var/www/html/moodle/auth/pam/lib.php on line 34, referer: http://10.0.0.50/moodle/login/index.php <15> for this cl*** i am instatitating a book... there will only be one book... so $this->title should equal $row['title'] <15> can i use $this->$field ?? <5> fastly: yes <16> Anyone got any ideals <16> ? <17> hello <5> fastly: you can do something like foreach($row as $key => $value) { $this->{$key} = $value; } <5> then $this->title would be $value :) <17> is it possible to do a foreach on two ***ociative arrays <5> k31th: you havent installed it or loaded it <5> also, restart apache <5> k31th: maybe you need to enable client error output rather than server error logging... <15> Drakas, thanks that's exactly what i need :-) <5> Alexi5: yes <5> Alexi5: foreach($array_one as $key_one => $value_one) { $value_two=$array_two[$key_one]; } ? <16> Drakas: i installed it but it seems its not loaded... How do i go about loading it ? <5> k31th: edit php.ini ? <16> Drakas: i just add the path to it ? <16> Sorry i dont do much work with this sort of thing... <18> morning all <16> Drakas: my extension_dir = /usr/lib/php4 which is where the module is <19> evening <19> does static work for cl*** variables? <5> k31th: no, edit your php.ini <16> Drakas: and put what <16> i cant find any info for this any where <5> ... <5> extension=whateverextensionisinyourlibs.so <20> Hello <20> I m searching help to use a function javascript in php , it seems I have a prob with the " and the ' :s <5> :)) <5> christor: if you want to output something, do ?>WHATEVER THAT HAS QUOTES<?php OR ob_start();?>WHATEVER<?php $content=ob_get_contents();ob_end_flush(); <16> Drakas: extension = /usr/lib/php4/pam_auth.so ? <5> no <5> pam_auth.so <5> k31th: im sure you can use google <16> cant find any thing on google. <16> Drakas: your a star thanks <16> works <5> thank you. :] <21> what needs to be done and by whom to allow error_reporting() to run? <22> error_reporting should always run <21> hmm <21> i have a script that will display NOTHING, not even the correctly-written and doublechecked little bit of HTML just before the actual script <5> Miaow: in your php.ini, there is a setting for error_reporting. set it to E_ALL <5> Miaow: if you don't have access, just add error_reporting(E_ALL); at the very start of the script <21> oh, I'm doing that! <22> you most likely have some sort of compile error in your script. You have to set it in the ini <17> what function can i use to find a substring in a string <9> Drakas: Will you help me out a bit? <5> MadSekkai: i am having problems too ;] <22> Alexi5: to find one? strpos() <5> Alexi5: lots: explode, substr, preg_match.. <9> Drakas: Well I'm not having problems, I just want to clean it up. :D <5> =]
Return to
#php or Go to some related
logs:
mplayer isn't working xgl #sdl #sql BackupManagerV2 #php hwo stuuf works vim python post_mortem nf4 alsa microphone myelement.onclick
#gentoo
|
|