| |
| |
| |
|
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> http://www.php.net/manual/en/language.variables.predefined.php <1> thanks <0> 3.12 on the main page <0> look for "predefined" <0> I gotta look em up all the damn time :( <1> 8) <0> although, I'm cool enough to never use REQUEST ;) <1> hrrhrr <2> http://thedailywtf.com/forums/60067/ShowPost.aspx <-- fun, too :) <1> if(is_file("content/".$_page)) { <- does this look errornous(spelling)? $_page is "start.php" <0> Stormchaser: my boss writes like that <0> why would you use a _ :( <0> rather, an _ <1> ? =) <0> $_page... has an underscore in it <0> makes the baby kog cry
<1> it's a "settings"-variable <1> I have all those with a begginning _ <0> eml: but no, you're going to need the full URL <0> because it's a remote file <1> tho, I suppose it's not correct <0> http://arf.com/content/$page <2> No, okay... Kog: *BANG*! <0> Stormchaser: whyfor you shoot at me :( <0> Stormchaser: shoot my boss instead <2> (forward this bullet to your boss :) ) <0> Stormchaser: I'm not sure if you heard me talking about it... but I had to lecture my boss on SQL <0> Stormchaser: he was telling me that having WHERE clauses refer to multiple tables was "illegal SQL92" <0> oh sorry, "wasn't ANSI" <0> Stormchaser: he was telling me my results were bad because I used where blah = blah instead of INNER JOIN <0> Stormchaser: so I kindly pointed him to section 7.4 of SQL92 and told him to get a ****ing clue <1> Kog, looks like something's really wrong, cause if I do is_file("content/start.php") it doesn't work either 8) <0> Stormchaser: then I ran his query, demonstrated that he joined it incorrectly (whoops... you mean manufacturers aren't products?) <0> eml: did you miss the part where I said you need the full URL? ;) <1> Kog, waddayamean? :PP <0> eml: is_file("http://arf.com/start.php") <0> doofus ;) <1> ah, =) <1> sorry :(( <0> naw, it's all good, hence the winky smile <3> erm, I dont think is_file works on URLs, file_exists does for sure though <1> like /www/eml/folder/content/start.php then <0> AcidReign: oh sorry, good point <0> AcidReign: but he still needs url wrappers on... and he may not have them on <3> is_file does a stat() call on the FS, (to get the file type, and check if the type is regular file) <2> AcidReign: file_exists is fopen-aware only in PHP5 :) <0> eml: only if the file is local <1> Kog, it is <0> eml: I thought you were checking a remote file... <1> well, /www/eml/folder/content/start.php didn't work either <3> Stormchaser: um, I dont think so, I remember Pollita implementing that in 4.3 <1> hehe =) <2> http://thedailywtf.com/forums/59031/ShowPost.aspx <-- I *LOVE* those :) <0> eml: "didn't work" <0> ? <3> but I haven't looked at the manual for that <1> Kog, ye <0> AcidReign: pollita is on the dev team? <1> is_file returned false <2> AcidReign: I'll check <0> AcidReign: can you convince her to slap them for GOTO? <0> eml: and I'm guessing y ou're claiming it IS a file <3> Kog: Pollita WROTE goto <0> AcidReign: well... I must have words with her <1> Kog, well it is <4> i have a book that says getenv("REMOTE_ADDR"); and the php.net manual says getenv('REMOTE_ADDR'); they both work which is correct ? ' or " <3> raden: irrelevent <2> Kog: From what I hear, you won't be seeing GOTO in PHP :) <5> raden: both. read php.net/echo for the differeences <4> AcidReign, so either can be used ? <0> Stormchaser: according to the notes it says they'll be called "break labels" <4> ||cw, thanks for the indexing :) <3> Kog: that was mostly theory anyway
<6> ok that didnt work <2> Kog: Link? <3> raden: of course <0> Stormchaser: I don't have it any more... it was notes from their meeting in paris or wherever <0> where they met to discuss PHP6 <3> raden: the only difference is variable replace ment is done in double quotes ("foo $bar") <2> "Tip: As of PHP 5.0.0 this function can also be used with some URL wrappers. Refer to Appendix M for a listing of which wrappers support stat() family of functionality." <-- who's da man? :) <0> why you'd intentionally add GOTO into an older language... I can't even begin to want to guess <3> replacement* <0> Stormchaser: apparently he's doing local files <6> will file_exists() validate links? <5> and escape codes <0> eml: I was confusing you with painkiler ... sorry <2> Kog: Are you reading derric's nots? <0> Stormchaser: yes <2> Kog: Those are OLD <1> np Kog, I've got it working =) <5> painkiler: what's the man page say about its fopen wrapper compatability? <0> Stormchaser: I haven't been in here in a while... <6> let me check <0> Stormchaser: no offense to her, but I thought it was cataclysmically stupid <0> that's what I get for being a computer scientists <2> Kog: Do you mean this: http://www.php.net/~derick/meeting-notes.html#adding-goto? <6> what allow_url_fopen? <0> singularize that last one please <6> its off <0> Stormchaser: yes <2> Kog: Her patch got into PHP, and it was kicked out later on... <0> Stormchaser: I wasn't aware Pollita ~= Sara <0> but it makes enough sense <2> no, Pollita === sara <2> er... Sara <0> I'm using the mathematical sense <6> how do i get this working? <0> they're congruent <0> but anywho... it seemed pretty damn insane to me <6> all i need to do is validate a .jpg link <6> if it works echo it <2> what? I hate math, and I don't know that that word means :) <3> ~= is often regex too... and I dont think you can apply a REGULAR expression to Pollita, it just won't work. <0> Stormchaser: equivalent... equal... the same <0> AcidReign: what about an irregular expression? <3> Kog: I was just gonna say that... <0> AcidReign: or a just plain odd expression <2> Kog: Probably because GOTO is 99.9999% of time abused not used... <0> Stormchaser: well, being a computer scientist I'm against all non-elegent algorithms. I hate break, continue and GOTO <7> any way to get a splice of array? lets say 4..8 elements.. <0> there's only one place break can be used: switches. and even then it's not syntactically necessary <8> hi <8> is there a special structure in PHP that tells me what page I'm currently on? <8> I've got this php file called menu.php <8> it's repeated in all my php files <9> Anyone know how I can get the product information from this page? http://www.hattelco.se/ps.asp?it=91641 ? I cannot use CURL since sadly, the server that will run the script does not support the CURL-library... The product information I need starts at "Features and benefits" and then proceeds down to the "KOP"-button (a blue button as you see)... <10> laurens_: http://www.php.net/reserved.variables <3> Kog: it is unless you do a lot of redundant testing in your switch <0> CopyNinja: sockets? <3> Kog: but then again, switch is optional, and not even included in Python ;-) <2> CopyNinja: sockets <9> Kog: How do you mean? <0> AcidReign: no - it's not syntactically necessary <0> CopyNinja: gotta scrape the HTML and parse it yourself <2> !+sendtohost <11> http://mmcc.cx/sendtohost <3> Kog: how else would you prevent code falling though to the next case? <0> CopyNinja: sockets come in handy <0> AcidReign: "return" <9> Stormchaser: was that for me? <2> Kog: Without function? <2> CopyNinja: yes. <0> Stormchaser: I'm not saying you SHOULD do it <12> CopyNinja: use a socket to generate a HTTP request, receive the code - and use it <0> Stormchaser: I'm saying you CAN do it <3> Kog: so you'd make a seperate function for every switch... <0> AcidReign: see above
Return to
#php or Go to some related
logs:
#linux perl, eval my #linux force-confmiss apt-get llyric mp3 touch: cannot touch /var/log/dmesg Read-only filesystem #css how ndb works #web #suse
|
|