| |
| |
| |
|
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
Comments:
<0> sawdust? <1> b1n0ry: Yep! <2> b1n0ry, Jymmm likes to saw logs. <0> i noticed <3> hey Jymmm- http://r-butler.net/~robert_/code/post.phps <4> i have this code http://pastebin.ca/42287 <4> how i can do somethinks like "exclude" for diasale old contest <1> b1n0ry: sawdust making --> http://static.flickr.com/34/101009611_3962bf3dfe_m.jpg <5> I have a stupid question i think <code> print("<form><select><option value = /"selected/">$row[0]</option>") </code gives me <error> Parse error: parse error, unexpected T_STRING in /var/www/h3c/addbook.php on line 10 </error> i have seen ths error before but never can figure out what causes it any help would be very appreciated <0> Jymmm ah, you're carving :) <5> i also tried it wihout the leading /'s <5> around selected <1> b1n0ry: Sorta kinda... the cnc machien behind me is. That's why I was lookign for my earplugs. <0> sakey it happens because you're trying to escape quotes but you're using / instead of \ <0> sakey around selected your slashes are going the wrong way <6> wie kann ich nur die ersten vier zeichen der ausgabe einer funktion ausgeben l***en?
<1> robert_: What am I looking at and why am I looking at it? <0> marke: because you don't sprezchen ze inglish <5> bln0ry thanks...so when there is a set of "" within another set they ave to be escaped as \"whatever"\ <7> isnt there a point data type in php? <7> isnt there a pointer data type in php? <0> sakey yep, \ is the escape delimiter not / because / is just a literal slash <5> b1n0ry, thanks...so when there is a set of "" within another set they ave to be escaped as \"whatever"\ ? <8> mustafa: No. PHP has references, but references are not pointers in the C sense. <5> b1n0ry, ah thanks sorry for asking twice i mispelt your name <5> b1n0ry, thanks a ton <0> no prob <7> okey. but reference is a data type_ <1> b1n0ry: http://static.flickr.com/38/89077820_5e05e23758_m.jpg <7> is it? <8> No, a reference is a reference.. :) <7> g d i <0> Jymmm yeah you showed me that one. pretty nice. <9> hi <7> how can i store data address <1> b1n0ry: ah, ok. <10> Hi! I am new to sessions. and i get this error: Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at <0> mustafa why would you need to? <10> can someone give me a quick tip? <0> FaerN you can not start a session if you've already sent anything to the client browser <11> don't piss into the wind <12> hey, is it difficult to install php5 on IIS on xpsp2 as the isapi module and NOT as cgi <1> FaerN: Lucky Lou in the third race. <0> FaerN: the session id is set as part of the headers and headers must be set before anything gets sent to the browser <13> hrm, does anyone know what the performance destriment is using regex compared to string functions? <0> Seadog: really isn't one <10> b1n0ry, hmm, ok. thanx. will try to solve this <13> b1n0ry, say someone were doing: substr_replace(__FILE__,$uploadDir,-strlen(basename($_SERVER['PHP_SELF'])),strlen(basename($_SERVER['PHP_SELF']))) <14> Seadog: how many times? <11> regex is like a bajliion times slower <11> ;p <13> insin, dunno how many times it will be called <4> hi, i have index.php http://pastebin.ca/42287 with stupid problem but i cant foind answer <4> when i reload page with new $page in url old contest on page doesn't hide <4> do you know how i can remove it? <4> please help me <13> but would it be faster to regex than to do ^^ ? <12> it depends what your doing <15> is there a function that allows me to access hardware information on the computer? <0> ktos: where are your file extensions? do you need to break your cases? and what is a "contest"? <7> b1n0ry: because i look for a way to call a procedure that has an out parameter in mysql <4> sorry content <4> no i need not <7> mysqli's bind_param has only string int double and blob. how i will bind out parameter <8> mustafa: http://php.net/mysqli-stmt-bind-param <0> first, you're always going to see header, menu, sklep, welcome, events, newtexts, newfiles, and footer with your script udue to logic. <8> There's nothing special about an out param.. It goes in the procedure's arguments just like in params. <7> what am i gonna say for it? string? <8> Or if you don't want to do binding, you could just do 'call foo(@a); select @a' and fetch the second result. That requires using mysqli_mutli_query, however. <7> mattmcc: you are on the right point. and i want to do this by binding <0> ktos: i'm not sure what you're trying to do exactly, but right now, if $page == home you'll see "home" and "sklep" if page is anything other than home, you'll see only "sklep" does that sound like what you want? <4> if i load sklep it works good <4> but if i want load home back <0> ktos: you'll still see 'sklep' <4> yes <0> ktos: if you load 'home' you'll also see sklep <4> but how i can remove it
<0> that's what you're telling it to do <0> ktos: you need a break in your home case <0> include_once "$lang/home"; break; <4> and i can give break next to all my pages link? <0> ktos: your cases will run through until they reach a break statement. in this case, the break statement is in the 'sklep' case so if $page=='home' it runs both cases. <16> i am using normalizing in my db. and when i goto add a record using a page i created the id is auto creating in 1 table. then i need to take that newly created id and use it to insert the other information into other tables. <16> my question is, can i insert the id and retrieve it right after that, then insert the other info in other tables? <0> break tells the parser to exit the current switch block. thus, you need to tell case 'home' to exit the switch block once it loads home. otherwise, it doesn't exit the switch block. the next executable command is "include_once '$lang/sklep';" THEN it reaches a break; so that's what your problem is <17> . <0> switch...case... are not exactly like if...else... <17> what's the difference? <17> enlighten me if you wish <16> can anyone help me on my question? <0> Fushuing: because an if($condition) { <do something > } else { <do something else> } will not attempt to do both <something> and <something else>. it will always do one or the other. <18> I don't know, AfroTurf, you haven't *asked* yet. <14> AfroTurf: which database are you using? <18> Oh <16> mysql <18> Just saw it <18> **** <16> ^_^ <16> lol <10> how do i return a value from a function? <0> Fushing whereas switch($variable) { case 1: <do something> default: <do something else> } WILL try to do both <something> and <something else> if the variable == 1 and no break; statement is declared. <14> AfroTurf: mysql_insert_id() <19> FaerN: return <16> insin: ok when should i use that <16> cause i'm actually using files <0> a switch() statement finds the first instance where case matches the switch and begins execution of every line below it (even if it's in another case clause) until it reaches a break statement. <10> gymsmoke, as in c++, like I expected :P <16> or $_FILE['blah']['name'] <20> !php <21> I have a CSV file. Is there a file read statement I can use to grab each line into an array (split on commas)? SHould I just fscanf, stop at \n, and split or something? <16> insin: ah nvm, thank you <19> FaerN: yeah... function foo ($args) { ... return $x } <16> insin: i don't know why i couldn't think of that <20> somepriest: foreach ($csvline as $line) { ... } <20> err.. $csvlines = file('test.csv'); <20> that reads each line into an array <0> i use cases without breaks for security options. switch($level) { case(3): include('level3.php'); case(2): include('level2.php'); case(1): include('level1.php'); default: include('level0.php'); } then options are displayed based on security level. level 3 "clearance" shows controls for 3, 2, 1 and 0 whereas level 1 "clearance" shows controls for 1 and 0. <12> i just installed php5 on iss on xp sp2 as an isapi module as directed by install.txt, but when i try to run a php script, i get 500 errors <21> Coeus82 : I want the elements. I'm considering calling split(fgets(...), ...) <12> erm, "http 500 error" <20> then use split() or explode() <21> Coeus82 : Or even just explode(). <21> Ya. <22> Bizzeh: do you need IIS or just thought you would use it cause it's thre? <12> ||cw: part of my job is to use asp.net <0> ****s to be you <12> so instead of installing apache on here as well for my personal stuff, thought id install php on iss too <0> Bizzeh: if you're using IE be sure to turn off friendly http error messages <0> so maybe you can get a bit more detailed view of the 500 error <12> where in IE is that, didnt know that was an option <23> hello <0> Bizzeh: Internet Options -> Advanced -> Browsing::Show friendly HTTP error messages. it's selected by default. <24> hi, is it possible to get a full precedence list of all the things available in PHP expressions? <12> got it <12> The specified module could not be found <0> Bizzeh: sometimes it helps (esp. with IIS)... let me guess, mysql module <12> thats the error it prints now <0> Bizzeh: try restarting IIS and checking your event log <0> system and application <12> may be that <12> gimme 1 sec <25> hmm, I'm making a news script.. I'm trying to get each row, and print it out each row at a time.. $sql_result = mysql_query("SELECT * FROM news"); while ($row = mysql_fetch_row($sql_result)) { echo $row[1]....[2] } <- isn't this the right way? <12> copied all mysql stuff to windows\system32 <23> i just installed dotProject on my server. it work perfectly but when i try to modify somes files via the interface i got: "Warning: fread(): supplied argument is not a valid stream resource in /var/hosts/dotproject1.it-now.org/modules/files/files.cl***.php on line 152" <12> stuff same <0> Bizzeh: if that's it, move your libmysql and mysql dll files to %windir%\system32 <23> do somebody have an idea about ? <0> _polto_: #dotproject <0> Bizzeh: anything in your logs?
Return to
#php or Go to some related
logs:
uninstall pkg ispconfig
#php #sdl feh ERROR: couldn't load image in order to set bg #linux #php notepad read linux endlines Linus Torvalds is Jewish skype extragear ubuntu #kde
|
|