| |
| |
| |
|
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
Comments:
<0> bah, i really like oop. i think your code is much less of a mess <1> kon: what is the default chmod of a newly created folder? <0> both on the formatting <2> if you have, 15minutes plz... <0> and on the logical, flow chart kind thing <3> DavidHKMrPowers: depends on the umask <2> zeasier, http://www.rubyonrails.org/screencasts <3> default umask is 022 wich menas 755 is the default perm <2> view the first one, creating a weblog in 15minutes... <4> heh, i've seen that one. that guy is pretty cool <2> the idea behind mvc is everything knows whats going on with everything else. considering different interfaces is no problem. <2> its all 100% scalable to any idea (controller) you can throw at it <4> yeah, we're actually going to try a rails project here in the future <5> hrm. is cal_days_in_month() in a non-default module? <6> Does anyone know why ReflectionFunction::export() would return a <visibility error>? I'm trying to use reflection to output the code that defines the function, but maybe there's something I'm missing. <4> a fun little app we're going to make that will choose where we eat for lunch
<2> well anyone that wants in on php-mvc, just PM me. good night everyone. <4> gnite <1> kon: why a php app usually needs me to chmod a folder as 777 but not 770? I think a php file in my server is not from public, right?? <7> new to php i have a question is it possible to a switch with case string: .. <8> Hi <8> I have a question <7> to have <8> about php.ini and upload function <5> anyone? >_>; <3> DavidHKMrPowers: i dont know exactly, but maybe if its a phpfile that can run under differend UIDs? <3> s/can run/can be run/ <1> don't know... <6> how about a rephrase: Does anyone know a good way to retrieve the code inside a user-defined PHP function? (from within a script) <3> i wouldnt know of any other sane reason, DavidHKMrPowers <6> I was thinking ReflectionFunction::export(), but it doesn't seem to work... <4> schapht - you can always write a script to get the function out of the source file <9> scan" <6> zeasier: you mean like using fopen()? I was hoping to avoid that if possible since a PHP has already opened the file that the function was defined in. <6> I really wish there was more documentation for Reflection. It's really sparse. <10> is there a good mailer script that anyone know of for eliminating email injection into forms? <10> my mailer script is a recent haven for spammers <4> rift - have you tried one of those type in this picture things? <4> rift - also you might try randomizing the forms namespace <10> captchas? i will be adding that soon <11> Hello, Is there a way to change the show errors setting from a script ( like for debuging it so i don't have to scew up the server ) <6> walterwoj: pretty sure it's here: http://us3.php.net/manual/en/ref.errorfunc.php <6> you probably want: http://us3.php.net/manual/en/function.error-reporting.php <4> rift - for example you would use a key for form field names and have it randomly populated <4> rift - then store the key in the session so it be understood by future requests <4> rift - though if the spammers are using script that emulates user input (ie it tabs through form elements) that won't work <4> rift - but chances are they are just reproducing post data <12> anyone know a site that delivers roses? <13> Xsploit, in what part of the world? <12> europe <13> http://www.fleurop.com/ <14> zeasier: Do you know a resource for emulating user form input? <14> zeasier: It's not for spam purposes. <15> Hi all, anyone know a good site that can help me write a php script which will do an SQL Insert statement into a PostGres Database? <16> heh, lazy j <16> It seems like a pretty straightforward thing you're asking for <16> And well documented on php.net. Have you rtfm already? <4> kambei - well this isn't literally emulating user input, but you can always go through each form element with javascript and fill out their values <16> brif8: http://www.php.net/manual/en/ref.pgsql.php <4> kambei - that way you fill out the fields as they occur instead of depending on their names <17> hi all <15> _thom_ thanks for the link, I have gone through but obviously missed something. Thanks anyways <18> hello <17> why my php script in a '.html' works only between <script language="php"> tag and not within <?php ... ?> tag <16> there's a fricking example right on that page of a pg connection. just use pg_query <18> could someone help me with switch please? <3> mr_blue because your webserver hasnt set up a php application handler for files with html extensions <17> hmm ok, so with apache i need to add : AddHandler directive ? <18> I know it replaces multiple if statements, however can you change the case1: to whatever you like? <18> are theses the actual if commands? <18> i only have one example and it's unclear. <19> roundyz: have you read php.net/switch? <3> mr_blue: AddType application/x-httpd-php .html something like this <18> yerh, i don't know which part of the switch i use to put my maths bit in... <18> i have a variable $date. <18> the variable is a number <18> a year to be exact
<18> and i need to use a switch statement to see what year it would fall in, i.e 30s 40s etc. <19> roundyz: switch takes the expression given, and compares it to each case. <20> if ($date) { <19> roundyz: I don't think switch is the right solution there. <20> switch ($date) { <20> probably an easier way :) <18> but i have to use switch it's the ***ignment. I'd rather use elseif <20> okay <19> well, now you know how switch works, then. <18> is it just a load of elseif's? <21> no <19> roundyz: the first example on php.net/switch shows how it works. <17> kon, i have this (http://pastebin.com/548507) in my /etc/apache2/mods-enabled/php4.conf <17> i put .html in AddType directive but still dont work <18> what if i don't want it to equal a specific year (to prevent me from doing 99 entries) how would i do it so i only have to do 10? <20> roundyz - pm me <19> roundyz: you could use math <22> The main difference between switch and a chain of else ifs is that a switch makes it clear to the code reader that you are making decisions based on the value of one expression, and it makes it clear to the compiler that the expression need only be evaluated once. <3> try also adding it in /etc/apache2/mime.types <19> phphunter: it's a school ***ignment - he should be able to come up with the solution on his own. <17> kon, ok i'll try <20> i'm not going to help him with the ***ignment :) <19> phphunter: ok, sorry then. <3> mr_blue: you also have any AddHandler lines anywhere? <20> just give him an example he understands from which he can figure out how to apply the logic to his problem :) <18> i dont want ***ignment help as such, just need a better understanding of this statement <18> yerh that would be good <20> roundyz - pm me and i'll run a few examples past you til you get it :) <17> kon, nope <23> hey kids, what's cookin'? <17> kon, do i have to set an AddHandler directive ? <23> I'm thinking about using PHP to make an installer, but I want it to be console-GUI-style (think Linux kernel configuration, etc.) - are there any PEAR cl***es anyone knows about to handle things like widgets and so on via ncurses? <23> I've checked pear.php.net but no love <3> mr_blue: not quite sure, but basically you need to tell apache that .html is not text/html but the php mime type application/x-httpd-php <22> Darien: Doesn't really sound like the right tool for the job, even if it worked. Why? <3> i'd say you dont need AddHandler <3> have you added .html to the mime.types mr_blue and tried if it works? <23> dj_segfault: because I like PHP, I want to write an installer, and I don't want to write it in C :p <20> could someone direct me where to look on php.net that would help me link php on apache to ether detect - which collects packets from the network ? <20> please :D <23> besides, I'm always up for learning new things <23> php-bot: you want to do packet capturing? <20> <== yes :D <23> oops, missed <23> I guess PHP doesn't have a pcap extension <22> Darien: There is a GTK binding for PHP. I think you would be better off with Perl or Python though. <20> pcap extension? <20> *checks for that* <23> dj_segfault: well perl's not really an option, as far as I can see, because a basic compile of perl is like 40 megs <23> phphunter: I doubt it exists :p <20> okay :D <18> phphunter <23> dj_segfault: to get all the 'well.... no, that's not what I'm looking for...' out of the way, this is for an OS installer :p <18> pm <23> dj_segfault: it's meant to be quick-and-dirty <23> but to work <20> i sent you a pm roundyz :) <22> Darien: http://www.zend.com/pecl/tutorials/ncurses.php <23> yeah, that's where I am now <17> kon, i don't have a mime.type in my /etc/apache2 <23> I guess I'll keep reading it, thanks :) <18> **** <18> freeenode init <20> yup <18> phphunter: you have IM instead? <22> Darien: What parts of the installer you're writing can't be done in straight bash? Or bash with tk? <3> mr_blue its mime.types <20> yup - which IM would you like? <18> msn <20> arcaneerudite_is_@hotmail.com <- <17> kon, i don't have a mime.types in my /etc/apache2 <18> ok <22> Darien: http://us3.php.net/ncurses <3> mr_blue: and in /etc ?
Return to
#php or Go to some related
logs:
existance of math
php check for divisibility by 5 #web #perl php statement modifiers cedegarc fedora crontab whatprovides #python #web #gaim
|
|