| |
| |
| |
|
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 29 30 31
Comments:
<0> when i say labor jobs, i mean lifting metal all day long, standing on a 2inch beam 60ft in the air tearing down racks <0> JaredCE, if $key2 is equal the same thing, it going to rewrite at same location <0> what is it you are doing? <1> yeah Evilx thats my problem <0> find out why the key is the same <0> are you pulling date from a db? and using the db ID name for the array key? <1> i know why it's the same <0> then it shouldnt be that hard to fix <0> why is it the same? <1> i have a table that contains the headings "id" "subject" "parent", Fine art has a an id of 23 and a parent of 0 as it's the parent, however it has children so my code checks for those children and gets the id and subject part, it then checks those children to see if they have any other children, in this case Fine art has 2 children that contain children, one contains 3 the other 6 <1> Evilx so when it runs on the first time and adds the 3 on the second time i need $keys to be = 3 so that it won't overwrite 0,1,2 <0> humm <2> how bout using $idarray[] = ...blah... <2> then it just keeps incrementing the internal counter <0> woudlnt it be $idarray[] .= blah ? <2> no, just $idarray [] = 'something'
<1> i can't do that <0> didnt know that keep incrementing as well <2> that notation just appends the element onto the end of the array <1> at the moment i'm displaying the 2 subjects children in different listboxes <2> are you trying to display the hierarchy? <0> could just say screw it and do array in array <1> if i do it that way the first listbox has the first children but the second contains the first and the seconds <0> $array[][] <0> $array[ PARENT ] [ CHILD ] <0> and if that child is part with another parent , it find the parent in the array and add on to it <1> i don't think that'd work either <2> if the data is in a relational db, there's a way to join the table to itself and get an array out of it... <2> but i don't think that's what you want. <0> i think it will work <3> can php only do one imagejpeg() per .php file? <1> Evilx have you seen mycode? <0> no <0> fightingfriends, what is it you are tring to do? <3> Evilx, I'm uploading an image and the making a large version and then a thumbnail <0> ok <4> mmm this is probably me missing something silly, but why does my include/require files get parsed from the calling page... for example, i have a foo.php only containing variables, it should not be displayed on the page i include it from. <0> the problem with tiat is, the script would have to be executed twice <0> it looks like <3> it pops up this error: imagejpeg(): gd-jpeg: JPEG library reports unrecoverable error - on the second imagejpeg() I try to do <0> yeah <3> Evilx want me to pastebin? <0> sure <1> http://pastebin.com/576884 <3> Evilx: http://pastebin.com/578147 <0> ok <0> here what you need to do <0> print out a <img src="jpg.php?size=blah" <0> and write jpg.php to change the size which is needed <0> because what it looks like imagejpeg is jsut like open www.file.com/t.jpg <3> I'm confused <0> check out the thumbnail generator http://us2.php.net/imagejpeg <3> ok <0> that explain to how imagejpg is used <1> http://pastebin.com/578155 <3> Evilx: I don't understand how it coudl work for the first one and then not for the second <3> when it's exactly the same <0> humm <0> it ok , i dont understand how it working, without outputting a header that it a jpg image <3> it uploads the image.. <3> it doesn't work if the header is jpeg <0> wait <0> your creating a image and writing a file? <3> yeah <0> i didnt catch that, im tired <0> heh <3> haha me too <3> I'm not printing the image <3> just putting it in a folder <3> and then writing the file path to the DB <5> i cache all my images in files, too <5> no way i'd put them in mysql, it's slow enough as it is <6> i want to indent 1000 php files.. how do i automate this <5> vimman: use vim! <3> bobnormal: exactly <5> vimman: or google 'indent source' ;) <6> i use vim.. but i have to open each file and do ggV=G and :w .. how do i go about automating this
<6> indent is only for c rite <5> there are a bunch of indent utilities, some of them multilingual i should think <5> http://www.google.com/search?q=source+indent+php <3> Evilx: it works perfectly, but it throws out that error... <3> it actually works but puts out an error <0> oh ok <0> humm <0> what the error? <3> Warning: imagejpeg(): gd-jpeg: JPEG library reports unrecoverable error: in /home/kelani/public_html/inkjet/admin/process_product_add.php on line 106 <0> vimman, shell script? <3> but the first imagejpeg() goes through fine, and the next one is almost identical <0> ok <0> you never did a imagedestroy <3> no <0> add imagedestroy( $image_lg); after the imagejpeg(...) <0> same with the other one <0> and see what happens <3> won't it destroy the image? <0> from memory <0> you already execute the command imagejpeg and it finished, so you can destory it <3> ahh I see what that's doing <0> imagedestroy() frees any memory ***ociated with image image. image is the image identifier returned by one of the image create functions, such as imagecreatetruecolor(). <3> Evilx: no luck =( <0> humm <3> it works, which is the annoying part <0> and line 106 is imagejpeg($image_th, $image_th_upload_path, 100); right? <3> line 107 now yep <0> humm <0> i dont knwo <0> that odd <0> you can try that i pm you <7> Heyas. Is there a reason to use array_push over the $array[] syntax? <3> yep sure <0> do it all in a ob_start() and see what happens <3> what's that? <0> read up on it <0> it really cool <0> and it very nice <3> ok =) <0> specially say, you had this entire php page you wanted to execute and get all the output, but didnt want it print to screen <3> hrmm ok <0> you can include that page, and just have it all dump into a buffer, and none of it would get output to screen <3> ok I'll see <0> it probaly be better to create that entire thing you doing into a function <0> you can p*** the file, how much you want to resize by <0> and have it return the new data <0> or just have it execute imagejpeg and p*** those as string as well what to do or make them in the function <8> Hey... Is this the correct way to check if a column equals another column? $sql_get_product = mysql_query("SELECT products_id, products_wholesaler_url FROM products WHERE products_weight = '0.00' AND products_last_modified = products_date_added"); <0> that be a mysql question <0> topic says this is not #mysql <0> JaredCE, your thing is you have a key that already exsist and it get over written <0> so find out if that key already there is do <0> if so , increment it <0> or something <0> s/do/so/ <9> Call to undefined function: array_combine() <9> argh.... only avaiable on php5? <10> Well, maybe the manual can tell you. <11> What is better: to p*** patterns and replacements as arrays to preg_replace() or to have multiple calls of preg_replace() ? <10> HowardTheCoward: The former. <11> kuja, why? <10> Cause you can. <12> Evlix: I have problem, when i have a <form> after it is 3hiddens, and follows table, with each row different values, after tale ends <form> i tryin your first advfice <11> kuja, I'm trying to refactor my code and to optimize it for speed. <0> rephase that <0> plz <11> Evilx, me? <0> no scopy sorry <11> ah ok <0> HowardTheCoward, it better to have it as an array , then doing multipul calls <0> as your self this, is it better to have 2 timeout with each 10 seconds, or 1 timeout with 20 seconds <13> I'm stuck with a code problem, any one willing to help? <0> havent even seen you post your problem <5> greg606: pastebin it
Return to
#php or Go to some related
logs:
how to unfreeze screen irssi #python apt-get install nbsmtp #debian #sdl #javascript bitbake autoreconf unrecognized option #math gentoo svn: Could not open the requested SVN filesystem you must specify the filesystem type win4lin
|
|