| |
| |
| |
|
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
Comments:
<0> if I have the function myFunction() <0> and $cmd = 'myFunction()' <1> look up string syntax... {$cmd}() or something similar <2> OzzY, drop the () <2> and its simply $cmd() <2> you can also use call_user_func() <1> colder: really? neat solution <3> is that necessarily good coding, though? <2> no, its usually not ;) <2> but its sometimes necessary <4> Is it possible to execute a shell command in the background using the shell_exec command? <3> no doubt that's OzzY's situation <1> i don't know.. if you require those solutions i can't help but feel something is wrong in the implementation <3> the "no doubt" comment was wishful thinking
<3> unless he's made a script that creates functions and runs them <5> my current url is like this www.blabla.com/index.php?search=xxx ... how can i retrieve this inside a php script ($_SERVER['PHP_SELF'] retrieves just www.blabla.com/index.php) <3> rewriting PHP inside PHP <0> colder: cheers - works well (although there of course other bugs this has uncovered :-( <6> BigSinep: look at a phpinfo() page and p*** in the GET args <1> BigSinep: REQUEST_URI <5> stevarino... 10x <7> how could i create a session.. that dies after 10 minuts? <8> stevarino: The system works a treat, and with basically any webcomic now! thanks, goodnight! <7> without edting php.conf <1> Vixus: great :) <9> Can I use "cl*** child extends parent" in php4.3? <3> stevarino: Is REQUEST_URI safe in that instance, as a replacement for PHP_SELF? <3> it seems like there'd be something wrong with doing it that way <1> ^Migs^: safe? how so? <3> just rubs me the wrong way <4> alright, I'm having trouble running a process in the background... I'm using Proc_Close (Proc_Open ("./mycommand --foo=1 &", Array (), $foo)); and it isnt working... <1> ^Migs^: its provided by the server... as is php_self <1> vdepizzol: http://www.php.net/manual/en/keyword.extends.php <1> ^Migs^: its just as trustworthy as php_self <2> stevarino, you shouldn't use PHP_SELF <1> eh? <2> PHP_SELF can be injected, SCRIPT_NAME is a better alternative <1> ah i see ( http://chxo.com/be2/20050724_3837.html )... <1> thats honestly kinda interesting <2> it depends on apache's configuration <10> any idea how to wrap all words from given text with <a>word</a> ? <2> synak, use a regex using word boundaries <1> Syntux: preg_replace? <2> Syntux, <4> how would you guys suggest running a shell command in the background? <1> existance: perhaps a executing a shell command to execute a bg shell command? <11> existance: command -args & <4> Gimp_, that doesn't work because exec and shell_exec wait for a response <11> ah <11> hmm <2> existance, redirect the output <11> yah <4> stevarino, I'd rather not have to make a bash script if I don't have to :( <1> colder: that would still cause exec to hang, right? <2> stevarino, no, I don't think so <12> existance: http://www.welldonesoft.com/technology/articles/php/forking/ <4> colder, don't quite get what you mean, redirect what output? <1> shell won't know the diff between redirected output or not <13> Does anyone in here use eAccelerator (a PHP cacher) in a critical production environment? It finally supports PHP 5.1 now, but I don't dare to install it. Are there ANY known downsides of using it? Surely some people in here must be using it... <4> Shurique, nice, that helps :D <14> is there a built-in way in php to have a session cookie that persists across sessions? <1> ah, colder: you were right.. but it doesn't appear to be simple and clean <14> (as a cookie on the user's disk)? <2> stevarino, having to do such things in php never appears to be clean :) <11> bob0908: http://php.net/cookies <15> hey.. i have followed all directions I can find perfectly, and php info shows gd as installed, but i still see the "Fatal error: Call to undefined function: imagefttext()" error.. anyone have any ideas for me? <1> ftp3: is dg listed as installed in phpinfo? <4> does shell_exec("$command > /dev/null &"); look right? <14> Gimp_ I know you can set cookies manually, but is there any cookie-based session ide that php gives you out of the box? <16> ftp3: requires GD 2.0.1 or later <14> (like jsp) <15> stevarino: i ***ume you mean "gd" and yes <17> Does a folder need to be 777 if I want to allow users to upload files via a php script? Or can it be 775 if apache is in the user group ? <1> ftp3: d'oh <15> jymmm; i installed the latest version of gd
<18> how do you get something like foreach to fail silently? i tried putting @ in front if it but that didnt work <11> bob0908: yes, it does, look in your php.ini file under sessions <4> err i tried exec("$command > /dev/null &"); and the command doesnt show up in ps a <15> phpinfo says (under gd) bundled (2.0.28 compatible) <19> bina: I usually wrap the foreach in an if() <9> anyone uses the php-gtk2? <14> Gimp_: from my php.ini: session.use_cookies = 1 <18> mikere: oh right, its probably just my PHP settings then, good. Thanks <14> Gimp_: ah, just saw this: session.auto_start = 0 <14> I guess I'll set that to 1 <1> this has to be a typo.. consultant job listing: "Compensation: $1 to $2 per hour " <19> bina: if($result){foreach($result as $singleresult){ <18> mikere: oh right, i didnt do that :-) i was thinking of something else for some reason. I'll try that <18> thanks :) <19> stevarino: there are places in the world where that's a good wage <20> stevarino: a job I saw recently said "Rate: p/h negotiable" <21> hey im doing a mysql query inserting data, whats the best way to secure the data as in to make sure mysql or php cant be messed with from the user input? <22> Anyone kno why my DDR400 ram in my DRAM configuration in BIOS only allows me to select 100, 133, 166 and 200mhz Speed settings and not 400? <1> surfdue: mysql_real_escape_string <- VERY IMPORTANT <19> ***yKen: ddr doubles the fsb <23> DDR400 is 2x200mhz <22> My FSB should be 800mhz <23> it's DDR400 <22> I am running CPU-Z right now and it's reporting CPU: Core Speed 2259.6Mhz, Multiplier x 10.0, HTT 226.0mhz <22> Why isn't it HTT 800mhz <24> Anyone have an opinion (and reason) for or against using the __autoload() function? <19> ***yKen: you are right - crank that baby up to 800x10! <22> No <22> But my FSB is supposed to be 800mhz <22> Why isn't it <1> __autoload rocks... i had a really complicated cl*** heirarchy once, never had to worry about includes <23> from wikipedia: (...) thus DDR SDRAM that runs on a clock signal of 100 MHz, with data transfer the same as SDR SDRAM running at about 200 MHz, is called DDR-200 and PC-1600 (...) <23> got it? <25> http://pastebin.com/635590 - Need an easier way to check a variable against values in an array <22> I'm not talking about the ram itself <22> The ram only runs at what the bios tells it to run at <23> but it can run faster than 200mhz if it's ddr400, no matter your fsb <23> can't run* <26> is there a way to return a cl*** variable to its original value other than saying $this->var = whatever ? <23> are you expecting it to run at 400mhz or something? <22> Yes <27> What's the difference between the php cgi-binary and the command-line-binary <27> ? <22> Considering it says it's supposed to <23> ***yKen, it is NOT supposed so <23> ***yKen, DDR400 runs at 200mhz, point <24> stevarino: so it just looks for files called Cl***name.php in include_path ? <19> and it's DDR = dual data rate = sends data on both the rise and fall of the signal <23> jals, what do you mean by initial value? <28> double <27> I mean why are two different executables required? <26> well say i create a cl*** then set var $variable = 5 <27> For perl it's the same (for example) <26> then it gets changed, and i want to return it to that value <21> stevarino, i dont understand http://pastebin.com/636447 ? I understand that the variables are now checked but how are those variables inserted %s and %s <27> what would happen if I use the cli-version in a cgi-script? <28> mikere, http://www.amd.com/us-en/Processors/TechnicalResources/0,,30_182_869_893,00.html <21> is %s like something telling it the variable is inserted later in that order? <1> hermit: you define __autoload to load what you want, i had mine recursively search a directory tree to find the proper include <23> jals, there is no way to do that. you should make a copy of the initial value in the constructor OR use a constant <19> streaky: why you linkin that to me? <1> surfdue: exactly... its a string feature <26> right <28> it's double data rate, not dual ;) <21> ok ;) <21> tx man <29> surfdue, in this case, sprintf is total overhead though. <24> stevarino: ok thanks man <21> why is taht colder? <1> colder-: i'm guessing you're going to recommend concatenation? <19> streaky: ok........ <29> surfdue, because sprintf is a formatting function, here the point is only to insert variables in a string, withough any kind of formatting, using concatenation would be more simple. <30> can somebody please check this peice of code? i just cant get query strings to work... http://pastebin.com/636451 the upmost one is the link used and the one below is a part af the page. <21> hmm
Return to
#php or Go to some related
logs:
GLIBC_2.4 up2date Linux addgrp mysql_inser_id TAP-Win32 adapter 'MyTap' not found No rule to make target `arch/i386/kernel/msr.c' #mysql #suse #sed mysqlcheck 2013 remove gdm mythtv ubuntu
|
|