| |
| |
| |
|
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 32
Comments:
<0> TML: illegal as in e_err <1> TML: i mis-typed it because i know someone named bob graham <2> hey <3> itrebal: I think that's also the name of a flim-flammerist <2> how can i enable full error reporting on a script? <4> error_reporting(E_ALL); <3> Kog: That's not an OO change, that's an error level change. <1> TML: probably <5> in a week or so i will officially be a mac user, just fyi :) <3> philip: =O <0> TML: no, if it starts to enforcce OO principals it regards OO. Further, there are now protection levels <6> Jezek: It's definitely worth picking up. What you learn you can carry beyond PHP, while still being applicable to you -now-. When working with regular expressions you will do a lot of array processing, dealing with parser contexts, etc etc. <0> TML: it's definately safe to say OO has changed... <3> Kog: Language enforced protection levels are not a signifcant change. <6> TML: I ***ume most professors are not currently also holding a night job at WebSense <3> They're sugar
<5> Spoom: error_reporting(E_ALL | E_STRICT); <0> TML: not true at all <3> Lateralus: Deus Ex Google <0> TML: arguably it's not really OO without that enforcement <7> ok <6> TML: I've seen a few cases where professors switched teaching/workforce every two years or so, though. <3> Kog: No, that's an argument that holds no water at all <0> TML: go back and read parnas, part of his big thing was protection of data as part of encapsulation <4> yeah, that too <5> when E_ALL will include E_STRICT I'm not sure but somtime it will, thankfully <0> TML: no, it's really not. Go back and read Parnas <4> hmm <5> 5.2 or 6.0, there is currently some debate on that :) <3> Kog: I don't need to. Protection of data can be achieved without public/private/protected <0> Lateralus: most professors are encouraged to do at least research <0> TML: how did you do it in 4? <6> Kog: Most people are encouraged to floss. <0> TML: I'm not aware you could <0> Lateralus: strongly encouraged. <3> Kog: It's called "Design by Contract" <0> Lateralus: profs can be fired for it <0> TML: there was no enforcement for the contracts <5> you and your preconditions/postconditions :) <3> Kog: Enforcement != Protection <0> TML: how did you do it in PHP4 <8> protection is useless if its not enforced... <0> TML: I'm curious, because now I want to know <3> Kog: $this->private <0> TML: hm, not familiar with that <3> It's not exposed in the contract, therefore it doesn't exist <0> TML: was it an array or some such? <3> Kog: It's not enforced at the language level <9> spoom: yes <0> TML: that counts as enforced <3> The language does not need to enforce protection in order to provide seperation <10> most OO languages let you get around their own enforcement of private vars anyway <0> TML: it counts as "data hiding" <3> Xyphoid: Indeed <11> what can cause this output 'Object' from a wsdl request? what could mean this? <12> TML what's that wget like program you use? <9> I'm using PHP to create an image on my page and I want the image background to be transparent, but it shows up white. Here is the source http://pastebin.com/719730 and my URL http://24.220.186.15/scripts/chalkboard.php <13> hey i need some help on building a php register page,if anyone can help me please pvt me of what ever <14> one_red_eye, what browser are you testing this in <9> mwarden: IE and Firefox <14> http://www.vbulletin.com/forum/showthread.php?t=89472 <5> Jymmm: curl? <12> philip: Nah, it was pavuk (just couldnt' recall the name) <5> strange name :) <13> i need a php register page to works with mysql 5 plus when someone registers it makes a directory in my root folder <12> philip: Yep, thus the memory loss <2> is there a way to compare a variable to a make sure its in an array? its an upload checking for a type in the array? <2> its not as easy as $_FILES['userfile']['type'] == $array :) <15> bye <5> surfdue: isset($foo['bar']) is one way, using in_array is another <13> guess not GhiN OT <13> have a good day <16> one_red_eye: After imagecreatefrompng .. put imageAlphaBlending($im, false); imageSaveAlpha($im, true); <2> ok <2> ill look up the in array function thanks
<17> guys could someone help me with a PEAR::auth problem? Since there doesn't seem to be much action in #pear <12> !+g10 <18> Guideline #10) We don't support script(s). We help you *write* PHP, not recommend or download and install/hack/modify/adapt/use pre-written scripts <12> !+g8 <18> Guideline #8) SQL Q's: #sql, #mysql or #postgresql. Apache Q's: #apache. Linux Q's: Either #yourdistro, #linuxhelp or #linpeople. HTML/CSS/JavaScript Q's: #web. Just because some other channel is 'dead' does NOT mean you can ask here. <9> MarkL: cool, thanks! <5> _bleee: use #pear on efnet <16> np <17> cheers will do <2> another question how can I print an array ? but in clean text if the array excisted $allowedFiles = array("jpg","gif","png","frw", "bmp", "zip", "rar", "exe", "dat", "fws"); how can I list all values say split by commas? <19> Kog, something like this? http://rafb.net/paste/results/A0LyYg70.html <16> surfdue: echo join(',', $allowedFiles); <0> lightbringer: oh hey... uh, one sec <2> ok ty <19> I realize that variable on line 21 doesn't support quotes right. <19> But other then that... <0> lightbringer: looks like you're doing something funky <0> why do you define $bmtreply and then promptly write over it <0> line 21 is superceded on line 32 <0> lightbringer: you should also consider file_get_contents for ***ignation <19> Oh, I meant to write that to purchaseresponse.xml <19> Writing bmtmreply to an xml file on that server or something. <0> lightbringer: oh, it could be... I read your code backwards ;) <0> lightbringer: last error, and this is a big one... you don't populate the POST values anywhere ;) <19> Kog, why file_get_contents()? And how do I POST them? <19> Again, this is the first PHP script I've ever written so I'm just trying to get it to work. <0> lightbringer: well... file_get_contents would read from the file... so you don't want that <19> Maybe I do above. <0> lightbringer: there's a file_put_contents in php5, but you should be OK w/ an fwrite. As for the POST reg, one sec <19> I don't know. <0> lightbringer: curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $fields); (that's two lines) <0> lightbringer: where $fields is the format of key=value&key2=value2, bear in mind that the values should probably be htmlspecialchars or urlencoded <19> I'm lost. <2> this is proper right? die("Error uploading file!".$fileField_name); <5> surfdue: break it down <19> What's the point of POSTFIELDS? <2> wait i know thats right nvm ;) <5> "foo".$bar is a string, die() is a function that takes a string, so yes, it looks appropriate <0> lightbringer: it's the actual data <0> lightbringer: encoded as key=val&key2=val2 (like in a URL http://blah.com?foo=bar&baz=arf) <19> Then what's fopen() and fwrite() ? <20> hi <0> fopen and fwrite are FS functions to open a file on the disk, and write to it <19> I'm reading and writing to a file. <0> yes, you are <20> what can I do to use PHP 5 when my server has php5 but by default is set PHP4? <19> Which is what I thought POSTing was. <19> (a file on a server) <0> no, POST is part of an HTTP request <0> you're using cURL to do that in your script <2> is there a way I can get a list of mime types in an array on php.net or somewhere? <21> Hello. <21> I have a very simple question that will make some of your eyes roll. <21> :P <21> anybody up for a very noobish question? <20> can anybody help me? <19> Kog, then why am I reading and writing to files on a server? Is that completely not necessary? <2> nvm got it :) http://www.phpfreaks.com/mimetypes.php <20> pleas <20> e <0> lightbringer: I have no idea why you're doing it. I figured you uh... no, I have no idea <17> the whole asking to ask questions thing is never a good idea. Just ask. <0> etam: set php5 up as a CGI <19> I just POST the XML data back and forth using the data encoded in CURLOPT_POSTFIELDS? <20> Kog: <20> Kog: how? <0> lightbringer: that'll post it to the server, then the cURL bit will capture whatever the remote server gives you <0> etam: google it <5> ratbert90: don't ask to ask just ask! <0> etam: I don't quite recall off the top of my head, and it depends on how you want to do it <20> Kog: look for set php5 up? <0> etam: ... what OS are you running <21> eh, here it is anyway. I am making a website and need to set /header.php on everything. header.php works, however, I need to set the variable $home so that way I can just type include $home/index.php <19> Kog, which cURL bit?
Return to
#php or Go to some related
logs:
Version requires old depmod, but couldn't run /sbin/depmod.old: No such file or #perl tfb too freakin bad unitel rtsp error code 0x080090006 makeSUSEdvd SP3 #debian package.use #debian #debian
|
|