| |
| |
| |
|
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 35 36
Comments:
<0> ask your question and see :P <1> lol ok <2> who here isn't a PHP resident guru? <3> Zeth? :P <4> ironpig: Do you want that file to be parsed or...? <2> aside from most of us <1> we will see won't we :) <1> $obj = &new MyCl***(); // what does the & mean? <4> b1n0ry: I'm not... I'm a cookie eater guru :) <0> heh, I answered that like 10 minutes ago <0> hold on <5> I've never seen that used before... <1> i missed it <2> alright, let me go hold this guy's hand again through setting up a video conference <4> reference
<0> SDE: In php 4 it ***igns a reference to the new object instead of copying it. It's completely unnecessary in php5 <2> ...again <1> ds-: tyvm. i'm working on a recently ported-to-php5 project. that helps me a lot. <0> actually, to word that better, it ***igns a reference OF the new object <0> er no, to is the right word <0> hmmm <0> you get the idea I guess <0> It is safe to remove it in php5 <1> cool thanks. <6> its a huge file, let me shrink it... <7> can i use the target attribute in an input tag (type="submit")? <4> ironpig: Just the relevant parts... <4> ganymed_: Care to try it? <8> ganymed_: www.w3.org <8> sorry <8> http://www.w3.org/TR/html4/interact/forms.html#h-17.4 <9> ganymed: I think it's meant to be used on a form tag, not input tags. <4> Kurisuteru: ... We don't deal with HTML here... PHP only. <9> ganymed: But #html or #web would be a better place to ask such questions. <6> well, I think I found the prob :p <6> heh <6> this is how is always happens, I come in here looking for help, then to explain what the problem is to everyone, I then figure it out... :p <1> i noticed that primarily php and boobies are the only subjects allowed here myself. <7> Stormchaser: sorry, was busy for some time. what do you mean? <10> !tell ganymed_ about #php <4> itrebal: That's kinda right ^.^ <10> Stormchaser: very much so :) <4> haha <7> well, this doesn't help me... <10> woops <8> ask somewhere else, ganymed_ <10> !tell SDE about #php <4> !+##php <11> ##php is really 'Pretty Horny People'. The computer language is just a cover. <1> lol and that explains it. <6> so I guess the simplist way I could have put it was this way, when using include to ref to a file that starts and ends with <script> </script> should it load, or do I need to put in <?php ?> and echo stuff to have it load? <4> ganymed_: Humm... That doesn't help you... How about this: <4> !+g8 <11> 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. <8> ganymed_: or follow the link I just gave you, the specs are your happy fun friends. You won't see HTML help here <6> Stormchaser, did that at least make sense... <12> whats all this about keyloggers I hear all over freenode? :( <13> is there a function to capitalize a string? <8> Stormx2: see topic <12> marccd: Yeah.. strtoupper I think <12> marccd: Let me check that <5> how does one tell if the script is running in a CLI or as a web page? <8> numist: ??? <13> Stormx2: only the beginning letter <12> marccd: That would be ucwords then <5> I imagine checking if $argv is set would work <14> numist: check for the server global variables <5> but the user can set $argv themselves, too <12> marccd: You might want to do $name = ucwords(strtolower($name)); <5> myconid: that can still be set by a user to fool the lib <5> or for any other stupid reason <13> Stormx2: yep, safe *** is good *** <12> marccd: Indeed :P <14> numist: there is no 100% conclusive way to confirm a script was run by apache or from the cli. <9> numist: One second, I know the answer but I need to get the function name. <14> numist: since apache w/ cgi is the same essentially as running from cli.
<15> wtf does Warning: main(../header.php): failed to open stream: No such file or directory mean? <14> Migs: means the file doesnt exist, or you dont have permissions (probably the prior) <9> numist: http://php.net/manual/en/function.php-sapi-name.php <2> marccd: any *** is good *** <7> well, i don't know, but are you really so irritated? <15> pathname problem? <9> numist: Possible return values are listed in the comment below the documentation. 'cli' is one of them. <2> ^Migs^ NEI <15> when I include something in another directory, are includes in the include relative to the included include, or relative to the original unincluded file? <16> hello. <5> oh excellent <5> thanks Elazar <9> numist: NP. :) <16> i need one coder for one project... <15> what project, emental? <9> numist: That's the best way I know of, anyway. You'd have to ask myconid if it's 100% conclusive or not. <17> ^Migs^: e=mc^2 <16> to make one site for me, i will pay for it <2> ^Migs^: path is relative as follows: first to the current file (that holds the include() directive) then to any parent files (that are including the file with the include() directive) then to your php path. <18> !+g7 <15> eljak? <11> Guideline #7) No spam, bots, scripts, trolls, job postings (includes asking for work), advertisements or onjoin/away/back messages. <15> could you describe it a little better? <15> is it a small site? big site? ecommerce site? <18> NO JOB POSTING IN HERE <19> How big of a difference is there between php4 and php5? - mainly if I pick up a php4 book to learn from, will I run into any major problems? <15> yeah, this isn't a recruiting forum, btw <16> if any is interested pls pm me in pv.. <2> Jymmm: what if i'm looking for strippers? <15> well, feel free to msg me and tell me about it <15> that's in #phpstrippers <20> I have a error related to http://bugs.php.net/bug.php?id=35029 , but i have PHP 4.4.2 and Apache 1.3.34 ( segmentation faults with multiple include virtual requests ), i tried upgrade, remove, re install, and nothing solve the problem, i got this too: signal Segmentation fault (11). Thanks in advance. <7> ciao <21> b1n0ry: uhm, if I'm not mistaken, PHP 4.4.2 was just released recently <2> Davey: and apache 1.3.34? <2> yeah, i guess it was too <21> b1n0ry: is the latest release there too <20> damn <20> none have a idea <20> of my problem <20> please! <2> !tell bet0x about enter <6> so, I stll don't have it write... I have a file with java script, thats all, from <script> .... </script> my index.php file then has an include line to load that file, where the js should be, the javascript basically includes links to other pages, with the js function popupwin... but when I load my index.php file, none of the <a href javascript:link();"> will execute... What could I be doing wrong? <20> yes yes, i know, sorry, try !Tell bet0x how solve the problem <6> write = right <2> ironpig: here, let me give you an example... <2> ironpig: i'll pastebin it <6> thanks :) <6> really, this has been bugging me for awhile. <2> give me a few seconds to come up with something <6> take your time <8> Since Smarty has been described as "quite" leaky and bloated by some of you, what would you recommend instead? <9> Kurisuteru: Savant -- http://phpsavant.com <4> Kurisuteru: PHP <2> ironpig: http://pastebin.com/595080 <2> Kurisuteru: i prefer WriteYourOwnTemplateEngine <22> Ok someone tell me what a "template" is good for? I looked a the smarty web page and it looked like it did nothing more then regular php <23> meh <23> did anyone see my question? <24> When you are doing a php sql squery is there a function to do something if the query comes up empty? <25> Shaba1, do you know what a template is? <23> you mean if the result comes up empty? <24> yea <9> Shaba1: http://www.m******i.com/php/articles/template_engines/ <2> Shaba1: it basically allows you to format a page without having the page integrated into your script. thus, you can change the formatting and appearance of your page by modifying the template rather than all of your html files, echos, prints, etc. <23> if (!$result) <24> basically.. how do you tell if it is empty? <5> Elazar: looks good to me.. just wanted a way to figure out if I should html format output or not <24> what does the ! do? <9> numist: That's what I use it for. ;) <5> :) <15> it means NOT <15> same as if ($result == NULL)
Return to
#php or Go to some related
logs:
#web movw syntax ARM #perl ubuntu www.linux-live.org why is carbon black?
#oe perl not single ref phpfunction onclick echo acer + linux + eth config +chkroot +debian
|
|