| |
| |
| |
|
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
Comments:
<0> b1n0ry: linux <1> merlincorey: or, you could have compiled php 5 and didn't explicitly say --with-mysql <1> as it's not enabled by default <0> I didn't compile it, I'm using a binary with the php extension <1> ok, then i'm out of suggestions :) good luck <0> heh <2> merlincorey- the CLI executable is different from the Apache module <0> thanks <1> sorry, it's just after 5 and i don't like to stick around the office <2> You also need to restart Apache after reinstalling PHP <0> Dragnslcr: have restarted apache several times; the only possible problem I think might be that php4 and php5 are installed on this box but I told apache to use php5's module and loaded the extension in php5's ini <3> open question to the audience: is there a way with php and sql to get 20 records on one page, and then 20 records on the next page etc? <0> Jetpack: duh <0> Jetpack: come on, man. ask #sql about LIMIT and p*** yourself starting points <3> its teh starting point bit that worried me <4> !tell Jetpack about pagination
<5> limit would be the key wor there. <5> ;-) <0> hmm <3> ta itrebal <0> is there a CLI way I can tell which file is being used as php.ini? <4> yup <6> merlincorey: php -i |grep php.ini <0> Stormchaser: danke <0> AH! <0> I found my problem <4> php-bot knows german: (03/08/2006 05:55:59 PM) itrebal: thanks <4> (03/08/2006 05:55:59 PM) php-bot: de nada, itrebal <0> this stupid distro's packaging system created an /etc/php5/php.ini but php5's binary is using /etc/php.ini <6> de nada isn't german... It's spanish <4> sorry, i get the two mixed of every so often.... <7> Morning <0> alles klar, itrebal <4> heh <8> Any freelancers in here on AIM at the moment that are familiar with php, a payment processor, and maybe mysql? I have a referal ... just private message me. I'm too busy to take on this job ... <8> stedios: rawrs? <8> Stormchaser: ^^ <9> Stormchaser: YOU LEFT MY COOL CHANNEL!? T_T <6> kuja: Of course I did... I WENT TO SLEEP! <9> T_T <6> !tell foo about jobs <9> Idle forever, bizzaaTch! <10> hi <0> hmmm <8> Stormchaser: ahhh, my bad. Didn't know that - thanks <6> kuja: I **** at idling <0> how do I force php to reload its ini file? I already restarted apache after moving the ini file to where it wants it but it is using the same modules as before <9> Stormchaser: Yes, if you played IdleRPG, you'd get pwned. <9> Yeah? Now try stabbing me in IdleRPG :P <10> is there a way to fill value into ootemplates with PHP, i.e. you have an online app. written in HTML/PHP and then it calls an OOtemplate and fills in the PHP vars and then you can print it or save it a pdf? <4> kuja: http://itrebal.com/?irpg <10> I think there has to be sth. like that. <11> hello guys, I can't use the function header at the end of the php page. Is there any equivalent? <9> itrebal: lol, I'm like level 40. <0> Toerkeium: of course you can't <0> Toerkeium: you can't send any headers once output has been sent <0> Toerkeium: it's part of how HTTP works <4> kuja: i did that page just so i could play with simpleXML <11> and how can I redirect to another page? <0> Toerkeium: if you MUST you can use a meta redirect <4> Toerkeium: in my template system i use output buffering, you can make header calls anywhere <10> Toerkeium: you just don't <11> ob_flush, itrebal? <0> Toerkeium: but there's no reason you can't make the header redirect work before any output <9> itrebal: Cool =) <6> igel: What? <4> Toerkeium: ob_start(); $content = ob_get_clean(); <11> merlincorey, I have to redirect the user after some checkings <4> that way you can run function on the output, as well <11> that's why it's complaining <4> (i run tidy on it) <0> Toerkeium: yes, do the checking at the top of the page <10> Stormchaser: ? :D <11> that's what I do
<0> Toerkeium: do the checking without any output ;) <11> the header function is at the end of the redirect (doing it without outpus), If I can I can past the code so you can see it <11> can I? <0> Toerkeium: use a codepaster <0> and give us a link <11> sure <10> doesn't anyone have an idea for that PHP+OopenOfficeTemplates problem? <6> no. Use pastebin <6> \ <11> http://pastebin.com/591591 <11> that's the code, very simple <11> the only line which outputs something is commented <4> does the bls.php file has any newlines in it (outside of <?php ?> <0> Toerkeium: I think you have spare newlines in bls.php like itrebal is telling you <4> (or anything at all, not in <?php ?>) <11> hmm let me check <11> hmm no, there is just one function there and some defined variables, all inside a <?php ?> block <11> no white spaces <0> on either side? <11> no new lines <11> nope, the first character of the file is < and the last one is > <12> check the last line outside the ?> <12> sometimes 1 will sneak in there <11> there is no one Wilik, I did check it <0> you're outputting something somewhere, Toerkeium, or you'd be able to send headers all day <12> whats the error you get? <11> could be the function ssh2_connect ? <12> possibly, if its sending an error <12> add "error_reporting(E_WARN);" to the top of your page <4> Toerkeium: turn your error reporintg all the way up, E_ALL <11> I have reports on <12> or even E_ALL works <13> Is mysql5.x much faster then mysql4.x? <11> hmm let me check <12> Smoked1, you might want to check with #mysql <4> Smoked1: thats more of a #mysql question <13> OK I usually install php4.x and am setting up a new web server right now. Is php 5.x faster or better then 4.x? <4> Smoked1: you should upgrade to 5.x <11> the exact error is: Warning: Cannot modify header information - headers already sent in /webspace/resadmin/baireslivestream/baireslivestream.com/www/preview.php on line 67 <4> http://pastebin.com/591591 is that preview.php ? <11> and the line 67 correspond to header(".... <11> yes, without the header line at the end <13> Will my existing code still run? <11> I forgot to add it <0> Smoked1: I haven't had a problem yet with existing code running <14> what is the best way to have a php-script read a local file and show its contents in the html file generated? <4> Smoked1: usually, you'd have to upgrade some things though <4> outlaw84: do you want to directly output it, or read it into a string <11> itrebal, in line 67 I added header("Location: http://google.com"); <0> outlaw84: see file() <14> itrebal: directly output it <4> merlincorey: uhh, no <4> outlaw84: readfile <0> itrebal: uhhh, yes ;) <13> I'll try it. I am using apache 2 instead of 1.3 and now php5 instead of 4. This should be interesting <4> merlincorey: that returns an array <0> Smoked1: careful about changing too much at once <4> merlincorey: i upgraded to 2.x and php6, all in the same day - it was exciting :P <12> you can use implode("", @file( "thefile" )); <0> itrebal: which can then be outputted quite easily with a foreach or for loop (also allows you to add things like <br /> or whatever tags you want and strip things if need be) <15> can any body tell what is this error "cannot get the input object abc" <13> It's a new webserver so I don't have to migrate to it all at once. <15> can any body tell what is this error "cannot get the input object abc" <4> merlincorey: thats not what he wanted, he wanted it directly outputted, and unless he wants to modify the code (by reading it into a variable: outlaw84: do you want to directly output it, or read it into a string.... outlaw84: itrebal: directly output it) than he should use readfile <12> lamers_inn, $abc isnt defined more then likely <15> this error comes on third page and i initialized it on first page <15> and then write cookie for it <15> does i have to do with it on the second page again? <12> you are adding an object to a cookie? <15> its just a variable <0> itrebal: file() is way more useful than readfile() <4> lamers_inn: serialize the object <4> merlincorey: unless you want to directly output it <0> itrebal: he may want to do nothing with it now but I'm talking about his future
Return to
#php or Go to some related
logs:
#linux #perl centos mcp61 forcedeth Sampling rate 8000 is not allowed in mp2 gentoo vmware version magic should be
#linux telnet send message qmail agpgart gentoo 810 mount nfts recovery ubuntu #mysql
|
|