| |
| |
| |
|
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> <?php echo $title; ?> <1> becuase when I use it I get "Resource id #8" instead of the actual title <1> oh <1> thanks itrebal <0> and you also need to use mysql_get_row (or something like that... i havn't used mysql in quite a while) <2> age6racer: read php.net/mysql_query <3> Ok, got that working! Another small question about the same thing, we are using text = "line 1\nline2\n"; and so on, but the new lines aren't taking. Are they dealt with differently in imagecreatefrompng and related functions? <4> ||cw: I still can't figure out why it doesn't work <5> hi all <0> http://www.firsttimedrivercl***.com/chapter3_section_3_files/image001.gif yay for awful clipart and the like <2> omg that makes me dizy! <5> help plz - what must install before? 1.apache 2.mysql 3.php - so? <6> man, you've been hammering away at that site all day <2> pilot78: php.net/install <7> using date() with the timestamp of 0. Why is it returning 31st december 1969 instead of 1st january 1970? <5> ||cw thks
<8> hey Stormx2 <7> pilot78: What operating system? <5> Solris10 <7> hiya surfdue <8> Stormx2, what date is the pc set to? <0> http://www.firsttimedrivercl***.com/Chapter3_section_4_files/image003.gif and that is how they show stress <8> :P <4> ||cw: Take a look at http://rafb.net/paste/results/Pr86OO33.html <9> this line printf("Last inserted record has id %d\n", mysql_insert_id()); returned the proper id of the first insert but this $user_id = mysql_insert_id(); prints 0, why is that? <2> Stormx2: date() return the time in GMT <7> ||cw: Hmm <10> ||cw i started over, followign this http://www.zend.com/pecl/tutorials/curl.php but im using php5 so rather than copying php4ts.dll i copied php5ts.dll, all into the c:/windows/system32 dir (server 2003). only thing is that msvcrt.dll was already in system32 and i didn't put it there. doing all this an uncommenting the php.ini file to allow php_curl extension to load cause the server to be unresponsive to any php code. im totally stump <2> Wescotte: I can't say i'm suprized <2> sero|work: did you copy the curl and ssl dlls too? <2> sero|work: not the php_* ones <2> the php dll's are just wrappers <9> amnyone care to help <11> spit rob <9> this line printf("Last inserted record has id %d\n", mysql_insert_id()); returned the proper id of the first insert but this $user_id = mysql_insert_id(); prints 0, why is that? <4> ||cw: I can't see how it fails.. <2> robcole: which doens't make sence. post some code <9> these are my two inserts http://pastebin.com/659679 <3> Any ideas how you can do a new line in an imagecreatefrompng, using text = "line 1\nline2\n"; puts it all on the same line, with a sort of "V T" character on top of each other where I have \n <2> Wescotte: includes are always done in the global scope, that's how <4> hmm I didn't think it was global <10> ||cw: i have a libcurl 7.15.2-win32-msvc.zip with the libcurl.dll file in the archive. perhaps that needs to go in windows32 also? <4> is there anyway to include NOT at global scope? <2> sero|work: yes, and the ssl one. the zip should also have a readme and/or install files. read them <4> and when you say global do youmean file global or completely global? <2> sero|work: the php zip that is <2> Wescotte: global is global. files do not have their own scope <12> now it doesn't return an error, it just doesn't do what it's supposed to do <4> so if I had file1: function A() {} include "file2"; file: function B() {A();) would work? <2> yes <4> ok that makes sense then <13> i'm reading data form a file ($fileElement) and pushing into an array using this $myarray[] = $fileElement; within a loop that begins with 'while(!feof($handle))' <13> when I echo values of the array, $myarray, however, nothing is in it, whats up with that?" <2> robcole: is the mysql_insert_id(); on line 162 supposed to be for the insert on 42? <13> and I've confirmed that $lineItem does contain a value before adding it to array. <0> hehe i found a way around having it log me out if i dont scroll every 30 seconds <2> gamengineer: um, pastebin the loop? that didn't mak enough sense <2> itrebal: turn off javascript? <0> ||cw: yea, i tried it on a different page but it caught me and logged me out for it, but in the section that you have to read for an hour yes, you disable javascript <2> yeay consistancy! <0> mmhmm <9> no 165 <2> even more yeay for silly beaurocratic regulations! <0> :) <2> robcole: ok, so where back to the start, that's NOT how mysql_insert_id() works <2> robcole: you call it AFTER the insert <13> cw: well, if I put $myarray[] = $value; and loop it X times, will it not contain X values? <9> i tried calling it after the insert and same thing <2> gamengineer: it should, yes <9> even worst <14> can somebody tell me why fdisk can't see the whole size of my raid array? <2> robcole: do you have an auto_increment field on the table? <5> when i try to "tar -t httpd-2.2.0.tar" i get error "tar: /dev/rmt/0: No such file or directory" - how set other device? <9> yes <9> you are aware there is two inserts right? <9> the second is which we are to be looking at <2> robcole: is insert actualy happening?
<9> yes <2> yes, I'm lookin on 165 <10> ||cw i downloaded the win32-ssl-sspi.zip and put the dll included in the archive in the system32 dir, same behavior from teh webserver <2> sero|work: you really need the ones that your php was sompiled with. they are in the zip file <9> $user_id = mysql_insert_id(); just always prints the value 0 <13> cw: nm, it worked. I must have been staring too hard. 'damn da cheet' <2> sero|work: did you use depenancy walker on it yet? <15> how can i know my current session id ? <9> it doesnt pick up from the first insert but when i use printf("Last inserted record has id %d\n", mysql_insert_id()); for debugging uses it does pick up the userid of the first insert <0> session_id <10> ||cw i havent used depencency walker yet but ill do that right now. I looked through my php dir and the only file that has curl in it is php_curl.dll <16> Has anyone worked on any static analyzers for PHP? <3> Hmmm, this is really weird. Anyone have any idea please? :) <2> robcole: well, I don't see how your debuging code is, but in that pastebin the insertid has to be called after mysql query. if it's not, it won't work <16> I'm trying to perform basic type inference -- i.e., trying to answer the question, "What are the possible types of $foo at this point in the program," but I'm running into some problems because of constructs like indirect variable references. <16> And figuring out the possible _values_ of a given variable at a given time verges of computationally impossible. <16> (As I see it.) <16> Has anyone else figured this problem out? Or is reliable static analysis (even with global knowledge) of a program written in a language like PHP impossible? <14> can somebody tell me why fdisk can't see the whole size of my raid array? <16> Renacor: What does that have to do with PHP? <14> doh sorry wrong channel =P <9> cw im going to show you the new coding see what can be done from there <12> http://pastebin.com/659845 what this is supposed to do is loop over a directory, find a random jpg file and then output the name. what i'm getting as output is the two echo statements <16> God, pastebin's alternating-line-color thing is annoying. <10> ||cw dependency walker says error opening file for 2 dlls LIBEAY32 and MSJAVA <17> An ordinary timestamp is messured in seconds, right? <16> Jemt: Yes. <16> Since the epoch. <17> Bugger. Thanks though <2> brandon_: echo in the loop? print_r($dirContents); after the loop? what do you with this rand value afterwards? you aren't returning it and it's not a global <16> brandon_: Well... echo statements are supposed to output stuff. <2> sero|work: LIBEAY32 is the ssl support for curl <2> sero|work: as for MSJAVA, i got no idea <9> ok cw http://pastebin.com/659859 thats it <10> hmm, in my version of curl that is supposed to be for ssl, doesnt have that dll in it. odd <18> Using odbc_connect, how do I use the following odbc.ini => http://pastebin.ca/49353 <2> robcole: you are STILL calling it befor the insert is done! <2> ****ing A am, can't you even read an example? <12> ||cw: what i want to do with it is use the function to add it to the end of a url in an img tag. so the theory is that it should return a different photo name every time someone refreshes the page <2> robcole: php.net/mysql_insert_id <2> read damnit <9> ive read <0> read again <12> ||cw: and thus, display a different photo ont he page everyt ime <2> robcole: then do you not understand logical order of operations? <18> Or, put another way, what would the dsn be for http://pastebin.ca/49353 for use with odbc_connect? <2> brandon_: that's fine, but the code you posted doens't DO anything with that value. so I'm left wondering why you think the array isn't being filled <2> brandon_: it litteraly creats the randome name and then tosses it <9> i dont know a whole lot man im just learning and looking for help with i get silly problems like im having now <2> robcole: ok, then read the example, and take not the ORDER that things are done. it really is important. <12> ||cw: obviously i didn't explain properly what i wanted to the guy i was originally working with... <2> brandon_: before the end of function, echo $randFileName <6> the first person shooter i'm writing in php isn't coming along very well :( <2> brandon_: I think the code is working fine, but your function only returns NULL <0> +er <6> heh <9> cw i do as you said and it still prints 0 <8> sorry i was hungry <8> :P <6> actually, i kinda wonder if it'd be possible if you used javascript for your input/output <9> and yes i read through the tut <19> robcole: What's the problem? <2> nater: mine works just fine, but requires mozilla 7, quad dual-core opteron for both server and client, and a 2 node custer with quad-sli gf7900 gtx's <19> ||cw: o.O <9> i just cant get the first insert id to be sent to the second insert <0> ||cw: heh <6> i'm gonna call mine duke nukem forever <2> and I lost count of how much memory is in it <19> robcole: That's SQL problem. <9> trying all typa ways to have the mysql_insert_id(); before and after the insert etc and still it doesnt work <6> robcole: ummm... use mysql_insert_id()
Return to
#php or Go to some related
logs:
The source at the specified URL now provides a different media ID. If the URL is zokum opera ubuntu Floating point exception compare arrarys in php #perl #perl pnghack DATABASE mythconverg DEFAULT CHARACTER SET latin1' #sdl nvidia disable forcesw
|
|