| |
| |
| |
|
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> UltimateB|: i am not sure what i used to do, but the website works with www. and without <1> PHP6 will not have GOTO, per-se. Qoth Pollita: < Pollita> We're getting close. Labels actually exist in PHP6 now (used by break statements) <0> on the same cookie <2> I'm actually just wanted the name of the file, not the extension, although I suppose I could just substr() them. <1> Drakas: Only the ongoing conversations on internals@php.net. <0> TML: when i loooked at that page, it looked a bit like ***embler, "something :" <3> Drakas: i might be looking for the wrong solution tho, but i've got some weird logouts when www. gets added to the domain name while logged in. <3> Anyways, thanks for the options <0> UltimateB|: hang on, i will check what i've got <4> the 'meeting-note' thread was a large topic <1> Drakas: Again, that page was non-authoritative, and is horribly out of date. Some of the "decisions" there have been reversed, others rescinded, others have had subtle changes made to them. <5> TML: we had this out on internals two weeks ago <6> UltimateB|: point was, use .domain.tld note the leading . <1> NoBeard: Which is why I said Derick's page shouldn't be trusted as an information source. Some of the answers have changed. <5> TML: indeed <7> morning
<7> under apache, php seems to be running in safe mode even thought the configuration files all tell it that safe mode is off, how can i fix this? <1> ico2: Check phpinfo(), see what it says under "Master" and "Local" values <7> TML: thanks <5> John Stuart Mill, of his own free will, after half a pint of shandy was particularly ill. Playto could stay... <5> nd Rene Descartes was a drunken fart: "I drink, therefore I am." <7> TML: safe_modeOnOn <7> that shouldnt be <7> it is turned off in all the ini files <1> ico2: You're doing something wrong. Check the top of the phpinfo page, make sure you've changed the correct php.ini file. <1> ico2: Also, make sure you *completely* stopped *all* apache instances, and started apache again <7> it says php ini is in: /etc/php5/apache2 and i was looking at the correct file <1> ico2: Move /etc/php5/apache2/php.ini out of the way and create one in its place that contains *only* safe_mode = Off <1> ico2: Stop all apache instances , then start apache and check the same phpinfo page <7> done <7> no change <7> oh wait <7> didnt read the other line <7> 1 second <7> done, no change <1> Well, the only thing I can suggest from here is to run "strace -e open -o sometmpfile -s 6000 /path/to/apache2 -X" and connect, then look in "sometmpfile" and see which files it opened <1> Make that "strace -fF -e open...." <8> I'm trying to list directory, and I've set a $dir = "$SITEROOT_DIR/mydir/"; SITEROOT_DIR is previously defined as /var/www/mysite. but for some reason it won't list that dir. If I go dir = /var/www/mysite/mydir it works well.. I know it is dificult to tell but anyone have tip for me? <3> try makeing it $dir = $SITEROOT_DIR.'/mydir/'; <3> What would be the best notation for having the first iteration of a foreach loop be different then the rest? Isnt there something nicer then: ' $i=0; foreach ( $a as $i -> $v ) { if ( $i == 1 ) { // now do it different } // do stuff } ' ... any input would be welcomed. <8> I'l try. thanks <9> UltimateB|, maybe SET ENV inside htaccess/apache would be much safer <1> UltimateB|: I can't think of a good "notation" for it, but that's more than likely because the very idea violates the concept of iteration for me. <1> UltimateB|: Better would be to get an array_shift(), do your "first iteration" stuff, and then iterate over the remaining. <3> TML: Ok then, a case. I need to build up the WHERE clause of a query from an array. The first time it loops through it shouldn't add OR tot he clause, after that it should. What do you recon would be a better way to get that to work? <3> TML: Hmm, that might actually look/feel cleaner... <1> UltimateB|: I wouldn't use iteration for that at all <1> I'd use implode() <3> TML: now thats a new way of thinking for me... never ever use implode. <1> UltimateB|: It's a better fit for your task <3> TML: ill have a look at the manual for implode, thanks for pointing that function out <1> It only inserts the thing BETWEEN elements <1> Whereas you're doing it rather ad-hoc <7> TML: 13637 open("/etc/php5/apache2/php.ini", O_RDONLY) = -1 EACCES (Permission denied <7> ) <3> Good insight there, thanks. <1> ico2: There you go <7> TML: that is bad <7> i changed the permissions, but it still happens <7> chmod -R 777 /etc/php5 <1> Check the directory <1> ico2: Well, it's certainly not a PHP issue, so I'm not sure how much more I can do to ***ist. Do you have something like SELinux or apache running in a chroot? <7> no <10> Hi. <10> I have PHP 5.04 running as a DSO module with Apache 2.054. How do I make .php files run anywhere regardless of directory? AddType application/x-httpd-php .php didn't help, nor did modifying the DocRoot lines. It seems it's not setting the mimetypes automatically I think. <1> Treval: You should be using AddHandler rather than AddType, and make sure it's in the "Global" space and not a VHost <10> Hm..global.. <1> ico2: The only thing I can think of at this point is to have you try this: http://hashphp.org/pastebin.php?pid=6450 <1> See what that returns. <3> ok TML, implode rocks for that use. I might need to review my code now ;) <1> ico2: You'll need a C compiler on your machine...I only tested that against GCC, but I think it's fairly generic code that should work on anything POSIX <7> kk <10> TML: my dir isn't apache2\php.ini it is D:\APPZ\PHP504\php.ini <10> :O <1> Treval: What? <10> The location of my php.ini anyway.
<1> Treval: I don't understand what you're trying to tell me. <10> Well in your C sourcecode you just posted there is a dir mentioned "/etc/php5/apache2/php.ini". <10> But my php.ini is in D:\APPZ\PHP504\ <1> Treval: My source code was specifically directed to ico2 <10> Oh. Sorry. <1> That's why I started the line with "ico2: " <10> Eh yeah forgot to read that. <1> *blink* <11> dogh... why i always feel *check manual 1st* when working with (haystack, needle), comparing explode and strpos <12> helo <12> i get this error <12> can some one help me <12> preg_match(): Delimiter must not be alphanumeric or backslash in /home/koffie/public_html/links/index.php on line 108 <1> L|NUX: Which part of that do you not understand? <12> i have this on line 108 : <12> if (!preg_match('Powered by <a href="http://www.onlinetools.org/tools/easylinks.php">EasyLinks</a>$',$HTML)){die('Please add the Powered by EasyLinks branding to your template!');} <10> LoadModule php5_module "D:/APPZ/PHP504/php5apache2.dll" is this correct or does it have to be LoadModule php5_module "D:/APPZ/PHP504/dev/php5ts.lib" ? <1> L|NUX: Your regex doesn't have a delimiter. <12> where ? <12> can you help me ? <12> :$ <1> L|NUX: php.net/pcre, read the first paragraph please. <12> ok <12> :0 <1> I mean, it's the first freaking paragraph... <1> L|NUX: Although I really don't think a regex is a good fit for what you're doing there. strpos() would probably fit better. <13> TML sighing... usually a sign of user stupidity somewhere. <14> anyone know a good ftpd? <15> cranked: OpenSSH-d + trained users? :) <1> OpenSSH + WinSCP <1> "trained users" are like "honest lawyers" and "the tooth fairy" <15> Hey! <15> The tooth fairy exists! :o <10> AddHandler modulename .php <10> What should be the name of the module? <15> TML: And WinSCP feels horribly slow imho, never actually benchmarked it? <12> TML : i am not php developer i tried that but no luck <12> :( <16> Treval: php.net/install <12> if (!preg_match('/Powered by <a href="http://www.onlinetools.org/tools/easylinks.php">EasyLinks</a>/si',$HTML)){die('Please add the Powered by EasyLinks branding to your template!');} <12> this is the actual line <13> Wow <13> L|NUX: regular-expression.info <13> Time to learn some regex. <10> .. <10> Dangermouse: I already did that. <12> ok <16> Treval: Problem solved then? <10> No. :/ <10> I keep having problems. <10> .php only wants to run in my localhost:// <10> No other dir. <10> So I wanted to know what the name of the actual module should be in AddHandler modulename .php <11> L|NUX, strpos can done the same <12> bro i am not php developer <12> :) <17> hi <1> L|NUX: Then you're in the wrong channel. This is a channel specifically *FOR* PHP developers. <17> I'm looking for a doc to use preg_replace to remove some "balise" <...> <1> Zmanu: Use php.net/strip-tags instead <12> ok :( <17> TML: thanks <17> TML: i don't want remove all tags, but only some <11> Zmanu: What you already got for now ? <15> Zmanu: Read the documentation? ;) <11> if its pain with preg_*, why dont try substr+strpos ? <11> '<searchme' + '</searchme', and kill everything in the middle <15> bot, tell Zmanu 2l of strip-tags' description. <1> bot, tell me of strip-tags' description. <17> so I read the doc, and my problem is than I put file content in a mysql table, after I read, and print in a layer, but to do this, i must delete some html tags, like <doctype meta html head body and some else <1> FauxFaux: Were you just flailing wildly, or are you running a bot I should know about? <18> Tor users? <18> what be thar tor?
Return to
#php or Go to some related
logs:
#suse #debian updaterc remove reactivation php script table with multiple nods #css #fluxbox Geforce 6200 1600x1200 linux xorg.conf pornogrohy cflag yonah gcc whatis fscking
|
|