@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21



Comments:

<0> actually
<1> can I view the current file content using php
<1> meaning I need it in real time
<0> its probably because there is an error in the page...
<2> edrop: ?
<0> so it wont set error_reporting
<2> edrop: You want to display the content of a php file ?
<1> no txt file
<2> edrop: Ah, ok
<1> but the file is getting updated
<1> in real time
<2> edrop: Ah, IC. You can't get the most recent file without refreshing your browser
<1> damn
<2> edrop: But a combination between JavaScript and PHP would do the trick
<1> is there some other way
<1> oh yes



<1> that is a good solution
<1> could you give me a bit more info ?
<2> edrop: Sec
<1> cool thx
<2> edrop: You will need a page (let's say index.php) which is being updated automatically every 10 seconds using this code: '<META HTTP-EQUIV="Refresh"
<2> CONTENT="10; URL=index.php">'. Then, also in your index.php you will ned to get the file content like this: '<?php echo get_file_contents("file.txt"); ?>'
<1> yeah I already tried that and it's a bit :(
<1> but ok
<1> is there a way that from a php script to refresh a site ?
<2> edrop: Nope - not when it has been loaded client side
<2> PHP is server side only
<2> It didn't work with the meta tag?
<1> it worked
<2> So what's the problem?
<3> why use the <meta> tag?
<1> it refreshes all the info
<3> you're in PHP, just send the Refresh header
<2> GarethAdams: In the end it's the same result
<1> refresh header ?
<3> http-equiv means "This is supposed to be a header"
<2> True
<1> yeah
<3> http-equiv was designed for people who didn't have access to server settings
<2> edrop: Yes, it does. Your only alternative would be using frames (Yirks!)
<4> hi
<1> this is what I did
<1> and it is a you said :(
<1> so guess
<1> it;a up to java
<1> now
<2> edrop: True, that would be the solution you are looking for
<2> Even though I don't like applets
<1> servlets
<2> Oh, ok. Don't know much about that :)
<2> I have only been working with ordinary java applications, applets, and mobile applications
<1> :)
<5> Hi! I have some problems with function is_dir on Linux, using PHP 4.3.10 - it doesn't work correctly with symbolic links. Any ideas?
<5> It works fine in console though
<1> another question
<1> can I read just last lets say 3 lines from a file ?
<6> is there any way to remove all html tags from a string in PHP without removing links. ie. <a>nchors?
<7> krisp strip tags can be told what tags to allow
<7> but use it with care
<6> Cheez oh cool
<6> but how to I do any link]?
<6> strip_tags($foo,'<a>') ?
<8> when I go to a page, and I suddenly get a Save File to... Dialog-Box, to download the php file, there is a misconfiguration in the apache somewhere, correct?
<9> yeah
<8> but the problem is, the file that I then get is empty and other php pages work
<9> you should install the php-omd extension
<8> just one particular not
<9> oh
<9> strange
<9> what's the filename ?
<8> index.php
<9> ah :]
<8> I'm totally confused
<9> I already had that with phpsysinfo
<9> when I typed http://blahblah/phpsysinfo/ it wanted to save the file and when I added index.php, it worked once for all, or the contrary
<8> one evening, I played around with some settings but put them all back and since then, sometimes Iget that dialog
<10> I'm trying to install Joomla 1.0.8 and it says i don't have session save path set.. How can I set it?



<9> mkdir /session
<10> where?
<9> on the top of your site
<10> in htdocs?
<10> or in the joomla folder?
<10> cuz they're different.
<9> in the root of your website
<10> so in the root of joomla.
<9> mkdir /sessions I think ior /session, gonna check
<8> Jojosan: what did you do to fix that problem?
<9> ndee, just told you
<9> when I typed http://blahblah/phpsysinfo/ it wanted to save the file and when I added index.php, it worked once for all, or the contrary
<8> Jojosan: the problem is that's with Typo3 and I cannot alter the address
<9> well... you can't open the file index.php by force ?
<9> like http://mysite/www/index.php
<9> instead of http://mysite/www/
<10> Jojosan: it doesn't work. I think I have to specify it somewhere like php.ini, huh?
<9> huh, dunno
<10> Anyone?
<9> Luxbum does that automatically
<10> blah.
<11> re
<4> bye
<12> does anyone know a way to escape a '?' in a sql query? tried addslashes / mysql_escape_string but doesn't appear to be working
<8> Jojosan: somehow, I can only reproduce it with the script but not by hand
<9> er :\
<9> k
<9> buggy script, heh ?
<8> it's a typo3 installation which makes it kinda trickier
<13> rhys: str_replace()
<13> addslashes()/mysql_escape_string() won't work because `?' isn't special.
<12> kuja - thnx!
<8> Jojosan: with IE, the page gets into an endless loop and times out, with Firefox, it wants to download the index.php file although it's empty. Very weird.
<9> cool :|
<9> your script or your page must be somehow buggy
<8> yeah, it's an extension from another developer but it's weird, it sometimes also happens on the main page but there, I can't reproduce it
<14> how to make this correct? $stringIsNumerical='100'; var_dump(is_int($stringIsNumerical)); // i want its return true;
<14> duh... nevermind... is_numeric() is avaible
<9> why var_dump ?
<15> added the mysql_real_escape_string to the query.. and a cell in db contains "\'blah blah" ..thats normal?
<9> yeah
<15> so I use htmlspecialchars to print it out without slash?
<9> you have to use stripslashes or so
<14> comfusingnick: php.net/magic_quotes
<16> hi there
<14> turn that off
<15> Hm, I don't have controll of php.ini
<17> If I accept a text file from a user, and insert the contents into a unicode database, how do I know the encoding of the original file?
<14> and.. ? i guess you still have another method to turn that off
<16> what's the best way to round any integer to a value which is a multiply of 4. like: 3 would round to 4, 6 would round to 8, 25 would round to 28, etc...
<17> rastakid: find out the remainder from diving by four, then add x?
<16> beanz, eh.. where x would be the remainder * 4?
<17> rastakid: no, where x would be the 4 - remainder
<3> round($x/4)*4
<16> hmm..
<3> round=integer, round*4 = multiple of 4
<15> hm... in phpinfo it says: magic_quotes_gpc = on, and magic_quotes_runtime = off
<15> its the gpc that should be turned off?
<14> rastakid: php -r "function r($a) { return ((round($a/4)+1)*4);} echo r(25);"
<14> uh... :(
<16> Ah, I found this one: ceil(intval($val)/4)*4
<16> where $val = the number to round (like 3, 6 or 25 in my examples)
<16> thanks all :)
<3> well
<3> ceil if you're rounding up
<8> i bi im wartsaal uf d'welt cho
<16> yeah, that's what i meant.
<3> oh, you are
<8> how gibberish that have to look for most of you :D
<3> intval() isn't really needed
<17> A user uploads a text file - how can I identify the encoding of that file?
<14> beanz, i guess you're out of luck :(
<14> i hope iconv('*', 'UTF-8', $string); can works
<17> Ox41464b: I'll try, last time I used iconv it converted utf8 to utf8, ugh.


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #php
or
Go to some related logs:

#ati
15 kilohertz mp3
php_fileinfo debian
#gentoo
unrar-free Failed Debian
gaim exchange account
play4sure p4s
undefined reference to `ipaq_asic3_set_led'
#ubuntu
mySQL insert select_last_insert_id()



Home  |  disclaimer  |  contact  |  submit quotes