logs archiveIRC Archive / Freenode / #php / 2006 / March / 27 / 1
absentia
(Action) wrote is own DB so he wouldn't have that problem.
colder
SunShineLady, that's silly
absentia
aca: ya, we do it. I also [re]wrote the upload and download code.
aca: print the header, stream the file.
(Action) refactored out over 17,000 lines of code this weekend
SunShineLady
colder - why is that? what would you do write "htmlspecialchars()" on every output?
colder
SunShineLady, you should save the data as it is, and then decide if you need to change it before an operation.
acalbaza
absentia: to just dump the header and read the file while writing to the response stream?
philip
colder: that sounds odd
Ciantic
Anyone got any tips to create Dynamic Cache?
rafacesar
how can i fix the message "Error CGI" ??
         

philip
if you do not want to allow, for example, html... why insert html?
colder
err ?
Viflux
colder: It's much cheaper to strip_tags() before INSERT than do it on every SELECT.
absentia
aca: ya.. in your php .. you output the header that you want (ie: no cache, etc) ... and then just spew the flv ... you can stream_copy or you can loop it yourself.
philip
or if you want all numbers, why insert non-numbers?
absentia
what do you mean -- dynamic cache?
philip
there must be a misunderstanding somewhere :)
Ciantic
I was thinking, that i write cache class that works only with the dynamic content, the rest is loaded as supposed
colder
philip, Viflux, who talked about strip_tags ?
absentia
?
Ciantic
absentia, the very itself :) caching dynamic content
absentia
what dynamic content?
acalbaza
absentia: simple nuff... i thought the flv needed to be embedded in something to be able to play? sorry.. a bit new to flash here.
colder
I'm talking about converting data before saving it.
philip
colder: true
absentia
aca: yes, but in your page... you have the flv player
Viflux
colder: SunShineLady is trying to prevent HTML tags but is doing it the wrong way. I'm hoping if I say strip_tags() enough times, she'll realize that it's the proper way. strip_tags() strip_tags()
Ciantic
absentia, gallup, article lists, forum topics, ...
absentia
I think we bought one from some guy in .eu -- was $12 euros
and then you pass back the url to the php that spews/streams the file
rafacesar
someone can help me to install php in IIS ??
         

philip
we do not know if she wants to remove, or simply display it as text
colder
Viflux, strip_tags is not the proper way. what about a guy that write : hello I'm so sad :< ..... 200 lines .... now I'm happy :>
acalbaza
absentia: sorry... i meant that i thought the flv needed to live as part of an swf file or something?
philip
rafacesar: consider the manual
SunShineLady
Viflux - Im using htmlspecialchars because you might want to show some code but not to corporate it in the page
absentia
aca: nope
Ciantic
Lets take example calendar, which obiviously is slow due to fact that PHP's own date related functions are slow, caching the Calendar i can reduce the load a significantyl
acalbaza
absentia: i'll give it a shot, thanks!
absentia
ffm_mpeg fvcks sound on conversion from other formats, though.
rafacesar
[philip]: i tried it, but dont work :/
colder
philip, converting it increase the size of the data, doing so before saving it is silly.
Viflux
SunShineLady: Then you shouldn't have said you want to prevent HTML. You want to encode it, not prevent it.
absentia
ciac: yes, I am doing that. but the cache is different on different features
SunShineLady
And besides when you see unsuccessful attempts of injecting HTML is makes you feel good :P
philip
colder: converting it on every request sounds inefficient too
Viflux
colder: I wasn't aware (but I'm not surprised) that the strip_tags() implementation would be stupid enough to strip that.
Ciantic
absentia, not really, the basic prinicble is same, you can retrieve all modify times from dynamic content and use that to wethere recreate parts of page.
absentia
when a user "logs in" ... I tag when that occurred.. and then for each faeture cache, I compare the login time - cache time and if that's greater than the cache-config-time for that cache, I regenerate
acalbaza
i was going to use flix for the conversions
SunShineLady
Viflux - preventing HTML is also displaying is as text but your right about that I wasn't clear enough.
absentia
I don't have experience with flx
ok, back to coding.
Ciantic
absentia, catching all the modify times from the dynamic content is not that easy
First, i'll have to wrap all the blocks of different things in page to object or similiar
absentia
c: it is, with my BE
Ciantic
absentia, BE?
absentia
back end, sorry.
Ciantic
I'll have to improve mine to be able to create that smoothly
It's causing headache to just think
absentia
:-/
_xaxes|free
hey ;)
Ciantic
absentia, how do you separate the inner blocks? (Dynamic content block that has another block inside) ?
_xaxes|free
have a script, that doesnt work on my server, but on another it does .. could anybody look at the output und say me whats wrong .. havnt enough knowledge =\
files.foonative.org/upload.php
files.foonative.org/upload.phps
Ciantic
If you don't have enough knowledge, u'd perhaps shouldn't try to install it :-)
absentia
well, I only cache on the inner blocks.
(for now)
Ciantic
absentia, innermost?
_xaxes|free
Ciantic, php works already, but dont this script
absentia
well, it's different on each module... some can go futher out
Ciantic
absentia, i'm having hard time to determine the innermost block in my system, since the caching check should be always begin from the innermost
_xaxes|free
get output like this : bool(false) array(1) { ["userfile"]=> array(5) { ["name"]=> string(4) "reli" ["type"]=> string(0) "" ["tmp_name"]=> string(0) "" ["error"]=> int(6) ["size"]=> int(0) } }
absentia
ah. :-/
_xaxes|free
cant go around with this
Ciantic
absentia, you happen to have somekind of database of the structure of every document?
absentia
my stuff is made up of divs, each doing a call .. (ajax ready) ... and the backend is split so the work is split to respond to each div, etc.
no database of the structure, but of the data.
food's ready.. bbiaw
Ciantic
absentia, yea, i know what you mean... I have pretty much same thing here. But to get the caching work only to specific blocks and recreate the page from some places the structure must be known to cache system
Narada
Hmm phing seems pretty cool.
_xaxes|free
bye ;)
absentia
cia: oh, I get it.. see, I don't cache the "page" .. I cache the data that makes UP the page.. so, ya, I still have to do like 3 to 10 calls -- but those calls don't have to "generate" the data -- every time...
it's still a *huge* savings.
so, ya, I only really cache at the very front things like huge static files -- but not dynamic pages, etc.
Bruce_LeeRoy
I have a timestamp column in mysql how do i write the current time into it?
timestamp(8)
Ciantic
absentia, so basically you define by hand which blocks to cache
panicou
hello, i am trying to search an array filled with data opened from a file with the file command using the array_search function, but it doesnt work. is there anything i should be looking like encoding etc etc that i am missing ?
matthewk
Why is my square black instead of green? http://www.draughts.info/a/img2.php src: http://www.draughts.info/a/src.php?url=img2.php
sorry, my english is not great. does anyone understand my question?
Ciantic
matthewk, well obiviously yes
matthewk, you don't seem to trust ur english much ;)
panicou
hello, i am trying to search an array filled with data opened from a file with the file command using the array_search function, but it doesnt work. is there anything i should be looking like encoding etc etc that i am missing ?
matthewk
Ciantic, i found the problem thank you
Wizz_Kidd13
anyone know any wireless keyboards that work with linux
Stormchaser
isn't that ##linux question?
Wizz_Kidd13
yes but ,many php users use linux right :P
Stormchaser
Wizz_Kidd13: You're an idiot
panicou
....
:)
Wizz_Kidd13
Stormchaser: i was asking a good question
Stormchaser
True
Wizz_Kidd13
your the idiot for ebing in here all hours of the day ........everytime i come in here your here i guess its clear #php is your life
Stormchaser
Damnit
zircu
he beat you to it
panicou
anyone some help please ? i am stuck :)
Jymmm
!+g1
php-bot
Guideline #1) Don't ask to ask, Don't state: "I have a question", Don't ask: "Is anyone around?" or "Can anyone help?". Just Ask The Question
zircu
(Action) joins #linux for the fun of it
Stormchaser
zircu: I said 'dammit because I forgot about the : in the command and it got cut odd
absentia
ha
Jymmm
Stormchaser: Fuck, I JUST cleared the banlist and the dumbass has to fu*kup within 24 hours *sigh*
Stormchaser
Gah!
(Action) can't type today
Andy298
i need a FREE host that will support PHP and i can get my site online right away! any ideas?
Stormchaser
Jymmm: Sadly so :(
matthewk
Ciantic, do you have idea for getting x y for green squares of http://draughts.info/img/tn/brd.gif ?
http://draughts.info/a/img2.php shows how i am placing images
Stormchaser
(Action) officially declares that Hydra is CRAP.
Ciantic
matthewk, what do you mean to get x y? But aren't those known?
matthewk, they are the size of the block times the amount of blocks in x and so on...
matthewk
http://www.draughts.info/a/img2.php , i am need to place the imgs in increments of 20 px
Ciantic
matthewk, yes, and those are the places, so whats the problem?
matthewk
ok
Andy298
i need a FREE host that will support PHP and i can get my site online right away! any ideas?
Jymmm
Andy298: http://127.0.0.1/
Ciantic
matthewk, isn't it obivious that the first green block is 0,20 second is 0,60, then 0,120 and so on... y works same but with different x
Niacin
Andy298 i will host it for free if you know backbase :)
Andy298
Jymmm: lol
Niacin: what??
lol
Ciantic
oh man we have expert here
mikere
I was getting this error from dbase_open() that it couldn't open the .dbf file. Turns out the error was permissions on the file. Have to chmod 666 the file (I suppose 606 would have done it). Not sure why the web host service doesn't add the user php runs under to my user group ><
Niacin
anyone worked with the backbase ajax framework?
Ciantic
mikere, to make it unsecure ;)
Jymmm
$x_square = ($width / ($num_sqaures * $square_width)) * $sqaure_num;
mikere
Ciantic: adding php user to my group makes unsecure?
Ciantic
mikere, no i meant that you'll have to add other 6 or 7
mikere, more like 660
is best
mikere
Ciantic: ah - understood. 660 is what I thought would fix it
Stormchaser
(Action) usually does a 755
Jymmm
(Action) does 666
Ciantic
i don't give other anything more than i need to
zircu
(Action) does a 777
Jymmm
oh were talking permissions, nm.
Stormchaser
Jymmm: >:)
Ciantic
The unix permission should be rewritten, it's not very practical if you ask me
« prev 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 next »