| |
| |
| |
|
Page: 1 2 3
Comments:
<0> hey there <0> i have a script that was runnin well, but now after some time of execution, the browser prompts for downloading the script <0> apache runs nice and it loads the php module <0> any idea why it behaves like this ? <1> hi <1> can anyone help me with a simple thing ? <2> hi, does php provide a timer function , that executes a function after x seconds ? <3> why would you want to do that? <3> you're probably looking for sleep() <2> chendo > many purposes <3> example? <2> show a message for 10 seconds before redirecting <1> how can I create a form for two fields,, one for the email second for the comment and I want to be submited to database and to be sent to email <2> i know http sends the headers first <2> checking sleep() <3> you are better off using javascript
<3> wait, not even that <3> meta redirect is fine <1> how can I create a form for two fields,, one for the email second for the comment and I want to be submited to database and to be sent to email <2> chendo> the truth this idea is taken from bbs forums <2> and this forum is made using php <3> your point? <2> when you login a message appear : <3> that doesn't mean it can't use javascript or meta <2> authinticated : loging you in ... <3> that's meta redirecting. <3> not php <2> chendo > so true , but this gave me the idea to check if php also provide a function for this <3> because if you want to sleep() before redirecting, you can't, because you've already got output on the page <3> php is server side, not client side <2> 1- pizza <2> 2- outputting message before redirecting <4> <2> show a message for 10 seconds before redirecting <4> use the refresh heade <4> r <4> header("Refresh: 10;url=nextpage.htm"); <4> echo "your message"; <3> won't meta redirect tag do the same thing? ;/ <3> well, meta refresh <4> yes, but there's a reason it's http-equiv <4> it's a workaround equivalent to the actual http header in the event that you cannot influence the headers <3> ah, true <3> didn't know you could do it via header() <4> yup <4> it's how it was meant to be done in the first place <2> ok ..... php still ****s :( <2> they should create pizza(2); <4> Da_Ch0sen: programmers who expect client side reactions from server scripts... **** <3> QFT <4> oh.. well i'm with you on that point <2> thanks alot Two-Bits :) <4> cheerio <2> Two-Bits > i didn't excpect client side, this was the function i was looking for exactly <2> algorithm <2> timer (wait , do ...) <2> echo <2> ?> <4> it should be obvious why you can't show content and THEN redirect with a location header though <4> even if you could work out a way to pause the script <4> which you can't <4> er.. well shouldn't <2> thanks alot Two-Bits , you really helped <3> @sleep <5> (PHP 3, PHP 4, PHP 5) <5> int sleep ( int seconds ) <5> Delay execution <5> http://www.php.net/sleep <3> @usleep <5> (PHP 3, PHP 4, PHP 5) <5> void usleep ( int micro_seconds ) <5> Delay execution in microseconds <5> http://www.php.net/usleep <3> although yeah, no need to delay script execution <4> sleep's not really intended for use with php as a web scripting language <3> yeha <3> yeah*
<3> more like shell scripting <4> or with a gtk you can make applications <2> guys i am new to php and reading in my book i got to the session part <4> no questions about it until AFTER you've read it. not just gotten to it <2> a session id can be saved in a cookie , or it can be sent within the url , right ? <4> sigh, correct <2> Two-Bits > i read it sir. but i have some wonders my book dosn't answer <4> those are the automatic ways in which php will propogate the id <4> strictly speaking, you can propogate it any way you want <2> 1- saving it in a cookie. wouldn't be more secure than sending it within a url ? <4> no more no less. it's not peticularly insecure at all really <2> Two-Bits > which way you preffer ? <4> depends on the application and it's purpose. but the url is more reliable what with cookie blocking and such <4> plus you can span multiple domains running as one site if you use the url. you cannot do this with cookies <4> if neither of those are important though, cookie makes for less clutter. <2> what if a sniffer got my session id ? <4> also, if the id is in the url, you could bookmark a page, close down your browser, and return to the session later (***uming the session data has not expired on the server. session cookies only last as long as the browser is open <2> would he be able to access the site with my credentials ? <4> i think you can tell php to do an extra ip check <4> but that could be done via url as well. or any other way to propogate such an id <4> it's always going to be sniffable. of course, if that's a concern, you'd want to use ssl which would hide that information from sniffers anyway <2> thanks Two-Bits :) <2> my second wonder , registering global variables in apache , will make accessing session variables easier <2> but does it have any disadvantage ? <4> it's crap <2> since i noticed its off by default <4> the fact that you can never truely know which of the autoglobal arrays it came from <4> ***ume i posted a form to the action "foo.php?id=12" with a form field named "id" who's value was "13" along with a cookie "id=14" to the server where a session variable $_SESSION['id']=15 already exists <4> what will $id have? <2> lol <2> makes good point :) <2> thanks much sir <4> cheers <4> hah, i just rewatched that movie last night <2> which movie ? <6> "Don't be a menace to the south central..." :p <4> eXistenZ <4> i haven't seen dont be a menace in years <4> no 'the' though <4> dunno if i've ever seen the movie selter though <7> lol <2> me gone for launch <8> hello, how i can return the day,month or year from timestamp ?? select DAY(TimeStamp) from t1?? <9> http://dev.mysql.com/doc/refman/4.1/en/date-and-time-functions.html <8> pizza_milkshake thanx <10> sup pizza <9> evening HaNtU]uU[! <10> howdy <9> i'm trying to write a special-purpose html compressor that is better and faster than a general-purpose tool <9> yourself? <10> im trying to do something out of nothing. =\ <9> that's IRC for you. <10> ive been watchin some silly taiwanese game show for the whole night.. havent done any studyin or anything useful. hehe <11> any1 awake? <12> if i put a contact us form on my website, and I ask them to enter in the email to reply to, is it possible to make the email message from that reply email? <12> if i put a contact us form on my website, and I ask them to enter in the email to reply to, is it possible to make the email message from that reply email? <13> Yes, it is. <13> And it'll set off any decent spam tracking software <13> and it's generally a horrible idea. <13> you should isntead set the Reply-To field in the email to their email address. <13> and include custom information in the email body, so that you know it was an email submitted via the web <13> at least, IMO. <14> I have moderate PHP skills - I've written several small CMS's for sittes I and others run in PHP <14> I'm no ace <14> but I need to phone interview someone to determine their php skills <14> What are some telling questions I can ask, aside from actual code syntax discussions? <12> is there a good mysql query that will grab the most frequent number of rows for a feild, its for a tracker on my page, i want to see what page has been hit the most <15> sort by order by <13> and group by <13> there is no sort by <13> you n00b <16> lol <13> you'll want a grouped sum
Return to
#php or Go to some related
logs:
#worldchat #allnitecafe #allnitecafe #kl #worldchat dracola movies gentoo copypackagetochrooterror #india #india #kl
|
|