| |
| |
| |
|
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
Comments:
<0> You make each component only usable within the context of the application. To be perfectly honest the singleton sollution isn't really ideal either. <1> this is retarded, there's no reason why this shouldn't work :( <2> is *= a valid operator? <2> like say += <3> Gimp_: No, but if you turn on track_errors, there's a varaible you can check <3> Monkey_b: php.net/operators <3> Sarkie: yes <4> i made an alias, Alias /my_pics/ "G:\" and then i used the Directory directive, and set Options Indexes, and the top level directory does index, but none of the subdirectories of G:\ are accessible, what do i have to do to turn on subdirectories? <5> TML: thanks <1> xshad: would you mind pasting your .wsdl file? <6> Monkey_b had you tested it? <2> yes <2> but stupid error reporting on this server is set to not report anything <3> papajon: You have to ask in #apache <7> is this allowed? readdir(ftp://user:p***w@ftpserver/directory)? <4> oh ****
<2> so when the script crashes i cant tell if it's because of that <4> my fault, i meant to go to apache <4> haha <4> so used to coming here for php questions :P <8> TML cheers :) <2> cool *= appears to be valid <6> s|k http://201.24.61.172:81/~douglas/desenv/applications/g1/test/GoogleSearch.wsdl <1> xshad: thank you <3 <3> Killaz: I'm pretty sure readdir() is filesystem-only <5> Monkey_b: ini_set("display_errors", true); error_reporting(E_ALL | E_STRICT); <5> Monkey_b: put those at the top of your page. it will make ALL errors be outputed <9> bubblenut: the way i have it setup now is a index.php file includes an init file. the init file includes the configuration file and does some startup processes like setting a temporary error handler to clean things up. then, the index.php file instantiates some needed cl***es (database, session, dataobject, theme, etc). then i determine what module to load and it is included -- the problem was that i had like 10 vars that i'd instruct <9> developers not to use. now, i'll just have a single global object that shouldn't be used <10> anyone take the zce lately? <10> does it still only cover php 4? <11> TML: Of course... And I also "pencil it in" in the electronic format (a tablet)... <11> It seems, that I'm addicted :) <3> Stormchaser: So you don't pen-and-paper pencil it? <9> bubblenut: PHP isn't an OO based language anyway. if i wanted full OO i'd just use Ruby. If I sit down with a developer and take 5 minutes to explain how things work and allow them to setup up a simple app in 1 hour then something is being done right, eh? :D <11> TML: OF course I do... I can't draw sole with the tablet... <12> how do i define vars as global vars ? <12> or is there any other trick i should use for loading configuration vars.. <5> ido-: global $var; ? <1> constants <1> use constants <5> constants = best for config stuff <12> s|k, i'd like to change them on the fly though, so consts wont work for me <9> ido: use constants <3> Stormchaser: I have a friend that does <3> Stormchaser: What kind of tablet do you use? <11> TML: Chris? <11> Graphire 4 <3> Stormchaser: No...Katie. You wouldn't know her. <5> ido-: if you need to change them on the fly, just undefine, then redefine <1> ido-: it's probably best to p*** them as arguments to a function, using globals is hard to maintain <11> TML: Probable... Is she a webcomic artist? <13> t <3> Stormchaser: -ish <14> Has anyone here worked with APC? <12> s|k, its a small project. thanks though <3> Stormchaser: As far as I know, she only draws for me <12> hrm <11> TML: :) <12> isn't there a faster way to do it <0> ^Artnez: It comes down to a question of scrictness. I wouldn't like to have that kind of thing in my application, but as I said before, this argument will ultimately go nowhere <15> does php have a new line print ? <12> in case i want to define a bunch of vars as globals ? <16> hi, I'm looking for a projet manager for a php website (something like CVS) (we are 2 coder) any suggestion ? <11> TML: So you found an arrangement for your story? :) <15> like java's system.out.println <17> that won't draw anybody rich :P <11> lkr: echo $string."\n" <3> Stormchaser: Not yet <3> Stormchaser: The story she's working on is a third-party's <11> TML: Why don't you ask *her*? <15> theres no built in function? <3> Stormchaser: She takes too long <11> TML: oh <15> ."\n" is annoying to add to every string <3> Stormchaser: I do dialog, blocking, layout, and "editing"
<3> Stormchaser: She's done 5 pages in 18 months <10> lkr: then use heredoc <6> lkr function printl($string) { echo $string . "\n"; } <11> TML: o.O Im'm not *THAT* slow :) <11> -m <18> "RTFM is Interwebs-speak for "Repeat the first message". It is used when the message did not transfer over the Interwebs properly. If someone tells you to RTFM, be patient with them, and copy-and-paste your original message several times. Also, typing the message with capslock on will improve the chances that it will get through (similar to yelling at a brick wall, telephone, or foreigner)" <19> Hi, anybody knows hot to p*** $_POST variables from a script to another script, without <form> ? <18> aCmE--: Store them? Include the other script? <20> session ? <21> aCmE--: $_SESSION <15> xshad yea looks like i have no choice <3> Stormx2: o.O <22> hey guys, i have a bunch of variables from a form that im POST-ing, is there a way to group all the variables together, and a function to validate each user input at once? or do I need to !isset() and trim() else die() etc. etc. for EACH variable p***ed through the form? <23> to post a form with curl do you just set CURLOPT_POST to 1, CURLOPT_POSTFIELDS to field->data, CURLOPT_URL to the action page and run curl_exec? or is there another step? <22> im new to PHP, i need to know whether its practical..... or retarded lol ^_^ or maybe specify an alternative.... haha <11> TML: Usually it takes me like 5/6 hours to make the story, draw with pencil, scan, outline, and color everything... <24> Are there any special precautions or instructions needed to compile PHP (specifically 4.9) against Apache 2.2? <5> Stormchaser: thats HORRIBLE. <11> Gimp_: Why? <5> Stormchaser: wait. wait. nevemind. <5> nevermind* <11> Gimp_: *stab* <25> dan__t, except reading php.net/install no, not really. <5> stab harder! <11> Gimp_: You wouldn't want that... <24> I see. <24> I read that, yeah <25> I wonder where you found a 4.9 version of PHP though <24> uh, 4.3.9 <24> sorry <25> must be deep in your subconcsious ;) <24> ;) <20> Q: What do people think of osCommerce .. from a code point of view ? <25> you should _at least_ install the lastest version in the 4 branch <24> It's a CentOS release, I'm just rebuilding it. It should be backported. <10> if you have a previous version of php: phpinfo() will giveyou a good list of the last compilation flags <22> or better yet <22> is there a way to take all the variables the user inputted, and place them in a collection? then parse / validate that? <12> if i have a function which i p*** the string "abc" to it, could it know to look for vars $abc_name, $abc_number, etc ?, replacing "abc" with any other string.. <23> does anyone know how to post form data with curl? i can't find any good documentation for it and my attempt isn't working <23> :-/ <11> KB-Kris: It's a pile of crud <20> lol <3> Stormchaser: She's flaky. <10> ido-, yes you can <3> Stormchaser: She's also....like, 14 or something <11> TML: heh <11> o.O <3> Stormchaser: But quite good <10> ido-, use $$ syntax <20> osCommerce - I thought it might be ok as its so popular :| but after glacing at it lastnight.. i was shocked <23> i'm like invisible or something :( <20> it even need register_globals no :| :| <23> oh well...thanks anyway <22> me too firefly <12> hrm <22> gotta be patient i guess <22> : ) <12> cythrawll, example please ? <23> yep <10> ido-, rtfm comin at yah: http://us2.php.net/manual/en/language.variables.variable.php <12> i found ${$myvar."_name"} worked .. <25> ido-, arr, use arrays. <10> yah same thing <12> eh, got it to work by myself cythrawll. thanks for the link <12> eh though <12> colder-, how would arrays help here ? <14> Has anyone here worked with APC? <10> isn't that a UPS company? <14> I can't seem to get a function to return true, as the manual says <14> nope <14> php.net/APC <23> that's a good band Cody` ;)
Return to
#php or Go to some related
logs:
#linux netgear wg311tgr linux suse 10.1 resolution ubuntu zd8000 nforbes rsync: failed to connect to portage #css pizza mether #web unhex in python irc client change hostmask
|
|