| |
| |
| |
|
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 33 34
Comments:
<0> Treval: You're not making any sense, is what aidan is trying to tell you. <1> Right. <2> Because he's high. <1> I just want to modify the damn thing. <1> And I don't smoke. <2> Treval: why exactly do you want to do this? <3> aidan: When I see you suggesting setting C:/ as the DocRoot, I'll interject. Whether you were suggesting in jest or not. <1> Why? Do you see any efficiency in having to put your websites all in one directory? <4> aidan: Really? That's what I was using. But it puts in a datetime type with all zeros. <3> Treval: They don't all have to be in one directory. <1> Well they don't work in any other... <3> Treval: Use VirtualHosts to set the DocRoot on a per-site basis. <4> TML: I was wondering if there was a php equivalent way of creating the same output as NOW() function in mysql. Of course one can always make it up using date() but ... <1> How about I change the docroot of the current site? <3> Treval: So one site can use C:/Websites/Site1 and another can use F:/ <4> aidan: I need to feed that into a DATETIME field in MySQL.
<2> Viflux: Unless you've read the conversation your interjections are pointless <0> Narada: In order to format a PHP timestamp, you have to use date(). time() gives you the integer that represents "NOW()" <3> Treval: You can do that but any file inside that docroot will be world-readable (unless you add directives to prevent it) via the web. <1> Funny.. <2> Narada: then no, there's no preformatted NOW() in PHP. You'll have to use date(). I suggest using time() and TO_UNIXTIME in mysql though <4> TML: Yeah. <0> Narada: In other words, time() in PHP maps to something like "EXTRACT(UNIXTIME from NOW())" in MySQL <0> But don't quote me on the mysql syntax <1> Is there any reason http://localhost/file.php works then and http://localhost/website/file.php does not work? <4> Woah. <2> TML: haha, that was so oracle <5> lol <0> Treval: Yes, but the reasons are all "because you misconfigured something". <3> Treval: Either the file doesn't exist or Apache is configured incorrectly. <2> Treval: yes, "c:/website/file.php" is not a file? <1> huh.. <6> SELECT UNIX_TIMESTAMP(); <1> Yes it is. <2> Treval: Join #apache now, thank you <3> Treval: Is there a folder called 'website' with a file named 'file.php' inside your documentRoot? <1> Already did. ^^ <1> Yessss there is. <4> aidan: Hmm good one. <3> Treval: And did you restart Apache after making the changes? <2> The suspense is killing me <0> Viflux / Treval: Please mvoe this conversation to #apache <7> can i put a gd resource into a session to be pulled out by a script? <0> lra_: No <7> mhh <0> lra_: You cannot store resources in a session <2> can you store them in $_APPLICATION? <0> *blink* <5> what's $_APPLICATION? <7> ok, so i have an image that is made by a cl***, and i want to output it preferably with a <img src="...." /> - how can i do this? <2> I don't know if it's in HEAD yet, I thought I saw it in the meeting notes <5> Application scope?? <8> Hmm, is it possible to break out of array_walk() ? <9> lra_: make a file that retrieves the image from the cl***, then reference it in the src. <1> Viflux: yes I did. <1> Right, fine. <2> lra_: how about having your html page call your imagescript with all the params? <0> There's been virtually zero conversation about $_APPLICATION, so my suspicion is that even if it gets added to 6, the answer will remain "No" <7> aidan - because i'd rather keep that private info, and besides, it seems neater as a cl*** <7> Mithrandir| - how? if i can't put it in the session. that's what i'm trying to do <0> lra_: You'll need a script that instances the cl***. <3> There's also no mention of an $_APPLICATION in the meeting notes regarding PHP6 <2> lra_: okay, set the information needed by the image cl*** in a session, rather than the resource <0> lra_: The instancing of the cl*** needs to create the resource. <10> I'm curious to.. what's $_APPLICATION <2> must have been an internals discussion <7> tml - the script that instances the cl*** is say index.php <0> aidan: I can only find it referenced very briefly on one thread <7> this then shoves the map into a var which i want to use in an html template <2> It was another superglobal proposed allowing persistant access to objects/memory/resources in an application scope <2> I could however be making all this up ... as I can't find much about it on internals <7> aidan - that's an idea, but it could be quite a bit of info, and for each user, that may be messy <0> lra_: You'll need to either recreate the image on every page that needs access to it, or store it on disk and keep a pointer to where it is stored as part your session. <7> ahh - i could save it to disk yeah. <0> My gut feeling is that re-generating the image is probably faster. <0> But I don't have much to go on. <11> hi, how can i use images in the webroot when using the CLI version of php, i have a cronjob, but it aint uses png's : anyone ???
<7> TML - it'd be faster to regenerate? <2> man, you know something is expensive when they don't list the price on the site, but make you contact them for "information about licensing" <2> http://www.altium.com/Products/AltiumDesigner/ <0> lra_: As I said, it's a gut feeling, given that I have nearly 0 hard information on the details of your app. <0> aidan: Maybe not <11> Oke can i use <img src="this.png"> in a CLI script ? <0> aidan: One company I worked for used to do that, and their software was only like $50 <7> well i'd be pulling out numbers from the db and writing these numbers over the image - percentages <0> ovis: Sure. What do you expect it to do, though? Normally, a web browser is responsible for resolving that into a request for, and insert of, an image. <2> TML: What a strange way to do it, what were the benefits? <0> aidan: The argument I heard was that we knew who was looking at us. <11> TML it wont render when called from the comand line <0> ovis: Because your command line isn't a web browser. <0> At least, I hope it's not. <0> aidan: Of course, there's the counter argument, the one I happen to subscribe to, which is "No, it just means fewer people will look deeply enough to find out we're actually quite reasonably priced." <0> aidan: *I* certainly stop looking when I run into that. <2> yeh, I stopped looking <0> aidan: Although, given the product you're looking at, I think it's safe to say the price is outside what you're wanting to pay. :) <2> Yeh ... I get the feeling it would be similar to a CAD license, like 10k+ :( <0> yeah <0> Sounds like the right ballpark <2> They had a free version available 6 years ago, called CircuitMaker <2> I'm trying to track that down <2> Looking on limewire, sigh, it lists 100 different files of size 502kb ... Yeh, I'm sure that's not a virus <2> holy ****, it's on the wayback machine still <2> http://web.archive.org/web/20031203042639/www.microcode.com/downloads/student.htm <12> I'm using php 5.0.4 and am getting this error when trying to do some ldap authentication: Call to undefined function: ldap_start_tls() <12> Anybody know how to fix this? Is there a special configure switch I need to enable tls? <7> what's wrong with global var $varname ? <7> inside a cl***? <13> hey lra_ <13> lra_: i now have firefox working in IBLS (not released yet) :D <7> hey ico2 :) <7> good for you :) <14> Anyone think there would be a possible collision with my defining a cl*** called Object myself? <15> Etriaph: for security, I wouldn't even try.. If you already think it might become a problem, why wouldn't you choose a different name? <15> just to be sure you know.. <14> Well, I want a base object and I don't want to call it BaseObject. :D <14> I'm just anal is all. <15> Etriaph: It's not in the reserved words list, but still, I'd recommend against it. <14> Yeah. <14> I hate that PHP reserved Iterator as an interface name. :D <2> Etriaph: Objects should be self descriptive <2> Object doesn't mean _anything_, it doesn't even hint at what it could be for <14> aidan: A highly generic object that contains very few methods and is the base cl*** for everything else may as well be refered to as Object. <15> ^^ < my point exactly. <14> As it's my base definition for what all other objects should be. <2> Etriaph: What do the methods do? <16> i have a problem that i can't seem to find an answer for <16> i have used define to define a constant <14> Object naming, the setting of some default members that every cl*** should have. <17> is there a function to strip a string for everything else but integers? <14> It doesn't *do* anything besides contain data about the object. <2> Etriaph: Every cl*** that does what? <14> Well, any other cl***. <16> it seems that once the execution of script finishes the define statys (i used get_defined_constants() ) and i can't change/remove it <14> Like.. Apple <18> babi: preg_replace('/[^0-9]+/','',$string); <14> Apple will inherit Object <16> any idea what i might be doing wrong ? <2> Etriaph: That's poor application design, because it is pointless. If you are coding an application with a specific purpose - and that's the only reason you'd really need all objects to do something - then name your base object after that. <16> am i muted ? <15> danols: No, you're not. <16> berry__ cool just wanted to make sure <2> danols: what does "constant" infer to you? <16> aidan that it dosen't change througout runtime <2> danols: good call ... so why would you want to change / remove it? <14> Meh, I disagree with that statement, but it's probably a good idea not to use it anyway, as the PHP developers *could* define it inline at some point. <16> aidan well once the script is done shouldn't be unset ? <19> can I store an array in $_SESSION? <16> danols when i go buck and even remove the define() section that constant stays in the system <14> danols: You don't need to unset it. <15> eml: Yes. <16> *buck = back
Return to
#php or Go to some related
logs:
#perl how to install cedega_timedemo_installer 4400c dapper #perl outterhtml tiny imap server fedora 6 repo #kde yum install grouplist openoffice #osdev
|
|