Home Page   #javascript  #perl  #c  #openmoko  #php  #ruby-lang  #apache  #cisco  #java  #mysql   Wallpapers Girl
Reliable $1 Web Hosting by 3iX

Channels


#php

08 November 2007


Total 53 pages. You are browsing page 1/53.

First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last

--- Log opened Thu Nov 08 00:00:10 2007
--- Day changed Thu Nov 08 2007
00:00 <****> zen-xstat: do you mean to use frames?....
00:00 <****> tml thank you
00:00 <****> that was a question
00:00 <****> I don't know what "the html command to include some other page outside php script" means
00:00 <****> De donde es usted, zen-xstat? TML no entiende tus pregunta.
00:00 <****> Given that HTML has neither commands, no any form of inclusion
00:01 <****> dionyziz: no, only to include plain html with no frames, at least some DIVs
00:01 <****> Ah, tu es de Argentina
00:01 <****> KomodoKoffee: English, please
00:01 <****> asi es komodokoffee
00:01 * mar77a high fives zen-xstat
00:01 <****> Ok, sorry TML
00:01 <****> if you guys want to discuss it in Spanish, use ##php.es or something
00:01 <****> using a bouncer, but im actually using fibertel zen-xstat :p
00:01 <****> high five!! *mar77a!
00:01 <****> No, my primary language is english TML
00:02 * dionyziz high fives mar77a
00:02 <****> zen-xstat: your question is fairly unclear. can you please try rephrasing it? how would you include external htmls in a div? what do you mean?
00:02 <****>, zen-xstat ?
00:04 <****> dionyziz, i want to separate files wide spread, so if i need to 'draw' a login page, i want it to be external in some other html file, it a bit stupid my question, sorry... i just wanted to know if it was better to require() or to use the html command to include code from other page
00:04 <****> zen-xstat: what do you mean by "the html command". there is no html() function in PHP.
00:05 <****> nono, i mean the php (include) for html, i know there is one, but don't remember it's name
00:05 <****>
00:05 <****> or something like that
00:05 <****> Thanks everyone, I need to go.
00:06 <****> zen-xstat: require does the same job whether your file is .php or .html.
00:06 <****> or .txt or .exe or .zip or ...
00:06 <****> no big deal, doesn't matter, i'll bring better questions :-S
00:07 <****> require() doesn't care what's in the file
00:07 <****> hey
00:07 <****> but maybe the php require takes more time trying to 'execute file' instead of including it's contents, but really doesn't matter, it's not a big deal
00:07 <****> looing for a circular index function
00:07 <****> on an array
00:08 <****> zen-xstat: What do you mean "execute file"?
00:08 <****> SnakeO2: A what?
00:08 <****> parse it
00:08 <****> by execute i mean to use the engine on code
00:08 <****> zen-xstat: Do you mean echo?
00:08 <****> as i said, parse it :)
00:08 <****> php does when executing script
00:09 <****> i'll be right back
00:09 <****> so like array [a,b,c,d].cindex( 1, 6 ) would return c
00:09 <****> are you asking whether it's faster to include/require an external file or to echo some HTML?
00:09 <****> cindex(stat, dist)
00:09 <****> start at index 1
00:09 <****> and move 6 places to the right
00:09 <****> circling around when you hit either end
00:10 <****> SnakeO2: $array[$i % $count]
00:10 <****> that wont work with negative numbers
00:11 <****> i.e. a left wraparound
00:11 <****> not my problem :)
00:11 <****> lol
00:11 <****> nice
00:12 <****> laughing cause ur a douche case ur wondrin
00:15 <****> Snake02: I don't know of any function that does that inherently, you'd probably have to write your own.
00:15 <****> froderick: exactly
00:15 <****> hence the question
00:17 <****> Array.prototype.cindex = function(start, dist) {
00:17 <****>
00:17 <****> 0 )
00:17 <****> return this[ (start + dist) % this.length ];
00:17 <****> else
00:17 <****> return this.cindex(start, this.length + dist);
00:17 <****> }
00:17 <****> how does that look
00:17 <****> tml, php is programming language, every script is executed in my case by an apache module, maybe if i include a plain html page inside php code, the zend engine will take some useless time in try to find some php code
00:17 <****> That looks reasonable, Snake02.
00:18 <****> Hmm, how can you lock a page down so that a user who isn't part of the session gets kicked off and moved to the login page?
00:19 <****> heya guys, need some help with a way to program something .. i have an automated server system that needs to have its workload controlled by php
00:20 <****> so for instance every message sent through the system goes into a php function, the function then looks at some sort of algorithm to choose with sever to send the data to
00:20 <****> but each server has a ratio percent like server1 has 40% of the message server2 has 10% and server3 has 50% of them
00:20 <****> froderick: top of page look to see if they are logged in, if not session_unset(); session_destroy(); header("location: login.php");
00:20 <****> when i do an ip2long what does it mean when there's a minus sign in the result
00:20 <****> is there a way of doing that via php
00:21 <****> Of doing math? Yes..
00:21 <****> well not so much maths, its what maths is needed
00:21 <****> wanderingii: What's the easiest way of identifying whether they're logged in? Trying to use a session variable?
00:22 <****> yes, i think they should have a session id set google it
00:23 <****> any ideas mattmcc
00:25 <****> Is there any particular disadvantage through passing session id via URL as opposed to cookies?
00:25 <****> yeh
00:25 <****> there's many security issues
00:25 <****> disadvantages. anyone who has that url can login and use there session
00:25 <****> Oh.
00:26 <****> So cookies really are the best way to go then.
00:26 <****> and of course, it looks very messy and unprofessional with a url like sessionid=2398uhsoiugsg3235
00:26 <****> where a nice clean .php url looks neat
00:26 <****> :)
00:28 <****> Sessions should also be locked to IPs
00:28 <****> theck that's a good idea
00:29 <****> I see the value in that, but how do I check? How do I match up a session id with a particular ip?
00:29 <****> Do I store that information in the cookie as well?
00:29 <****> ando only allow one login per ip_address
00:29 <****> You store the IP in the session
00:29 <****> whats the point in that Thecks
00:29 <****> Oh, so just assign it to a variable, and then check when I need to?
00:29 <****> why can't i reference a class from inside a non-class function?
00:29 <****> sureley if someone steals the session there ip will be in there..


Total 53 pages. You are browsing page 1/53.

First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last


Tutti i nuovi CAP Italiani. Come ottenere il database completo