| |
| |
| |
|
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> CWhiz: you got me so focuse on Global Consciosness i dont know what reality is :) <1> I'm no mathematician, but they're using statistical equations that give you a measure of entropy. <0> i cant' argue against studies, i can only argue from what I know <1> So they're doing random number generation at continuous intervals, and they say that during these events, entropy went down. <1> Yes, of course. <1> My goodness, we sure went on a tangent, didn't we? ;) <0> CWhiz: and to get really bad, i can prove to you that 1 doesn't exist so statistics are meaningless <1> rafas: See what you started? ;) <0> tangents are good they improve your skills <2> hehehehe <3> Anybody who knows what can be the problem when the function getimagesize() doesn't work on my php5 server? It works om my test server at home, even though I thought they were set up identically? <1> rudderX: What error do you get? <3> CWhiz: getimagesize() [function.getimagesize]: php_network_getaddresses <3> CWhiz: Name or service not known <1> rudderX: Are you trying to download images from a web site? <0> rudderX: that is an odd error
<0> rudderX: it sounds, from your error, that it isn't getimagesize but how you are accessing the image <1> I agree. <3> CWhiz No, its just simple $size= getimagesize('localpicture.php'), and then print the array on screen... <1> rudderX: PHP? <3> CWhiz here is my phpinfo() http://lumabyte.com/phpinfo.php <0> rudderX: the php_network_getaddress is a give away that it isn't a truely local address <1> rudderX: I would echo your filename before you hit the getimagesize() function. <3> CWhiz: http://h***enet.com There is some .css path problems not resolved yet, so it uses a couple of seconds to get up. <3> sorry t X 2 <3> CWhiz: http://h***enett.com <1> rudderX: And what filename gets echoed? <3> CWhiz: stand by <0> rudderX: more like dns issues <0> h***enet.com redirects to www.h***enet.com, and www.h***enet.com doesn't resolve to an address <1> Whois returns no match <1> Must be recently registered or expired. <0> or not setup <0> domain without the www works fine <1> true <0> it redirects to www and we have problems at that point <1> No, it doesn't even redirect for me. <3> CWhiz: Sorry for the delay. Here is the file:http://h***elnett.com/article110_1.jpg and here is the source/result: http://h***elnett.com/test2.php <1> zircu: Or, it could have been typos. <1> rudderX: You should be p***ing a filename of "article110_1.jpg", without the http://h***elnett.com/ in the front, unless you really have a good reason to (you don't). <3> CWhiz ok, but is still doesn't work... <0> rudderX: what does line 18 look like of order_pictures.php? <3> CWhiz: sorry CWhiz. That actually worked. ?? <3> So what is the resason for it not working with an url reference... <0> rudderX: you havn't answered either mine or CWhiz's question yet <1> rudderX: Because PHP is opening a connection to the web server to get the picture, which means it has to travel over the network instead of just reading it off disk. <0> what is the actual string you are p***ing to getimagesize() <0> hint: look onl line 18 of order_pictures.php <3> zircu: right now it is just the name og the file. And that worked. Thanks CWhiz <0> i dunno if I could get more confused <3> CWhiz: But wil local paths work? Like /home/username/domain/public_html/picture.jpg ? <0> i look at source and it is a image of some golfers in their follow threw swing <1> rudderX: Yep, just not URLs. When you put a URL in, PHP is trying to be helpful and connect to the server to retrieve the picture, but that's not what you want. <3> Exellent. Thank you guys :-) <0> i hope my comments helped i didn't quite follow all of that <0> all of a sudden the www worked <1> zircu: The first URL he gave was wrong. <1> zircu: He typed h***enet.com but he mean h***elnett.com <0> heh.. i get a D for paying attention <1> :) <4> hi. i would like to know if it is possible to tell the "if structure" to not evaluate further tests if the previous fails <4> like if (isset($_POST['val']) && $_POST['val']) <5> just && <4> mmh? <6> hi, i have a date and a certain number of months of warranty. I want to evaluate the date where the warranty ends. So is there a function that will do the addition of the month to date? Or do i need to do it myself? <4> strtotime() <0> vinadelmar: if you use && the left side has to be true to continue evaulating <4> sure? <6> vinadelmar, is that for me? <4> VIMmer, yes <6> vinadelmar, that will comver the date to a timestamp right? but then what? <1> VIMmer: You can convert the timestamp back to a human-readable date. <4> VIMmer, there is neat feature like +1 day, +3months <6> vinadelmar, thats wat i need, whats the syntax? <4> zircu, i want to avoid the ERROR_NOTICE from $_POST['val'] when it is not set <4> VIMmer, just read the fcking manual would you ? <0> vinadelmar: and that code will do that
<6> but wats the function that does that vinadelmar ? Is it strtotime? <4> it is <4> geez 4 years php programming and i didn't know that <0> vinadelmar: just wait till ifsetor is thrown at you <4> zircu, ??? what is this ? <4> anyway, i'll test the && behaviour <0> vinadelmar: a vapor function for php: like $my_var = ifsetor($_GET['var'], $_SESSION['my_var'], 'default_value'); <4> when ? in php6? :) <0> mazzanet: what? I like that name for some reason :) <7> :P <4> seriously... is that a joke ? <1> That looks like it might be useful... <1> It does open up the potential for bad coding, however. <0> vinadelmar: well i won't doubt php6 will have something of the like, php5.1.x could have something like it, i'm not sure of the decision of it, but it isn't a joke <0> it has been a hot topic, thus noted the groaning of mazzanet <4> i have a getSubmittedVar($varName, $defaultValue=null) that will look at $_GET, $_POST, $_SESSION, the ifsetor should get the order lookup as param <0> perhaps in php6 you'll have $var =?%$#^&! $_REQUEST['var'] : $_SESSION['my_var'] : 'default_var'; <7> :O <8> mazzanet: You've been officially owned, by me. <8> =) <0> vinadelmar: yeah the 'ifsetor' idea is to result those kind of tools <1> vinadelmar: Any reason you don't want to use $_REQUEST? <0> resolve* <4> CWhiz, will look at it <9> I use magpierss.sf.net to fetch RSS feeds, but It doesn't recognise feeds that are badly encoded, any solution? example feed: http://feedvalidator.org/check.cgi?url=http%3A%2F%2Fwww.radioscoop.com%2Fscripts%2Fpodcast.phtml%3Fflux%3D8 <8> retroneo: This isn't a magpie support channel. <1> retroneo: Personally, I think SimplePie is easier to use. <9> well, is there one? <10> huhu i tryed to register on website hashphp but it says my irc nickname is eLe, stuff i dont know where it come from as i did put hartym..... <0> CWhiz: $_REQUEST can be evil <8> retroneo: If the website doesn't say so, then I suppose not? <1> zircu: True, but if he's going to just re-implement it, why not use what PHP provides? <4> CWhiz, interesting <0> CWhiz: the thing with $_REQUEST[] is outside the scope of how php works though <4> not sure yet but i think somewhere in the project the lookup order matters, so <0> consider you have a $_POST['del] = 'id of var', your php script really should only accept the deleting of the var via a post <0> CWhiz: ^^ because consider you have a blog and a spider catches the data and submits it, all your datat will disapear <4> i think the same too <4> hey that old mate kuja is here :) <0> kuja who? <2> CWhiz, it's a nightmare becouse i have to let the admin of the site create the form on the fly, and then the users can register, the best example was the google form builder but it iisn't for mysql, i'll have to edit the code and put into mysql tables, bah!! <1> zircu: I'm not advocating the use of $_REQUEST[]. I'm merely saying that if you're going to adopt poor coding practices and write a function to accept variables from any superglobal, it makes sense to use the facility PHP already provides. <0> CWhiz: i dont disagree with you there <1> ok :) <1> In a perfect world, people would actually understand the difference between GET and POST. <0> that is the purpose of GPC ordering, i will use it in specific applications <0> the trick though is you dont want to have data changed via that method <0> like: $id = $_REQUEST['someid']; $sql = "delete from table where id = $id"' <0> it opens the world of bad html practices taking advantage of thing <0> or mabey i'm gettting delusional and just need to go and get some sleep <1> hehe <0> i plead guilty on the latter case and looks for a comfy bed go sleep in <11> morning <12> Hey, <12> how do I get the location/dir of the php file currently running? <11> $PHP_SELF ? <13> cwd? <4> dirname(__FILE__) <12> vinadelmar, does that give the filename and extension aswell? <13> yes <11> AlexC_: http://www.phpfreaks.com/forums/index.php?showtopic=73170&close_left=true <4> dirname(__FILE__) will return the path <12> cool ok, thanks <4> you should look at basename() to get the single file name and extension <13> i need to stop answering to my *** <11> I dunno <11> its a nice *** <4> deadroot, dont know if cwd() would be useful <13> thanks, i'll keep that in mind <4> if the file is included, cwd() might return something unexpected <14> deadroot: Don't, it takes spaces in your mind.
Return to
#php or Go to some related
logs:
#physics python2.5 ternary operator edgy suspend2 howto #fedora #perl openfiler livecd dsniff open wrt gentoo macbook ro parallel_Fetch hashlimit doesnt limit
|
|