IRC Networks
Irc Logs Stats
Start date: 2007-09-27 02:48:27
Last update: 2008-10-24 20:19:38
Channels: 41
Logged Lines: 6230436
Size: 1822.68 MB
Powered by
Channel Info
Network: freenodeChannel: #php |
Search in www.irclog.org
Log from #php at freenode 2006-05-11
Pages: < 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
35
36
37
38
39
40
41
42
43
44
45
46
47
Next >
[12:02]<[qz]lugq>its a login script
[12:02]<yffusyjgynn>shoot
[12:02]<[qz]lugq>but it skips the part that gets echoed
[12:03]<[qz]lugq>http://pastebin.com/711054
[12:03]<[qz]lugq>when im supposed to get logged in
[12:03]<[qz]lugq>seems like it cant get the $user_data variable
[12:06]<ow9w9792>[br]pun2, after check at SQL, you redirect them, *am i correct?*
[12:07]<ow9w9792>if that so... how come after redirect can passed Line:13
[12:07]<ow9w9792>there is no more $_POST after redirected
[12:08]<ow9w9792>and... where are you ? (im talking to myself)
[12:08]<[qz]lugq>im here
[12:08]<ow9w9792>Line 22~24 will never running
[12:09]<kjzvxzug>sjors_:fyi turns out there is a reported bug about this, and it some pecl stuff doesn't work with --enable-0versioning when called from a browser
[12:09]<[qz]lugq>hm
[12:09]<[qz]lugq>it does Ox41464b
[12:10]<[qz]lugq>if i get login_error=true then i get the correct html returned
[12:11]<mbnfn>hey all
[12:12]<mbnfn>i'm displaying an invoice via html... just click on the link and will retrieve all info from the database usin php and display on a page... is there a way to know if the information got to a second page so i can put the same header?
[12:14]<fusyjgt>in php, how to call a function with arguments from an array?
[12:16]<cgxgzdrg>I have a whole bunch of HTML code, and I want to echo it from PHP -- echo is tedious
[12:16]<cgxgzdrg>is there another way?
[12:17]<rxrsvr>KEYWORD<<<
[12:17]<rxrsvr>test
[12:17]<rxrsvr>KEYWORD;
[12:17]<dnznvx>guys, I have a question
[12:18]<rxrsvr>or something similar
[12:18]<rxrsvr>i've probably boned it
[12:18]<mbnfn>InsomniaCity, in other words, in file/page setup, there's "Page &p of &P" for the header... is there a way to retrieve &p that usin php ?
[12:19]<dnznvx>I have a Class which builds my page beforehand, so before I print anything to the client. Now, if this class takes a little bit longer (talking milliseconds here!) all browsers end up either loading the page forever without showing anything, or just timing out (like firefox: "The page isn't redirecting properly")
[12:20]<dnznvx>The only cure I can find until now, is to print a space (echo " ";) in one of my class methods, so the browser knows something is going to come
[12:20]<dnznvx>is anyone familiar with this problem?
[12:21]<rxrsvr>are you redirecting anywhere in the page?
[12:21]<dnznvx>keherman: printf should do it
[12:21]<zjw>I have a pattern to extract the valign=* from a [table] tag and insert it into the next col tag without a valign attribute, but it does not move onto the next col tag if it does have it set already, how would I make this loop and go thro all the col tags? regexp is "%\[table(.+)valign=(?:"(.+)"|(.+(?=\s+|\])))(.*)\](.*)\[col((?=!valign).*(?<!valign))\](.*)\[/col\](.*)\[/table\]%isU"
[12:22]<dnznvx>heh.. or just go out of php mode: "?>" and do your html stuff.. you can always add some php vars you wish to print with the shorthand: <?=$var_name;?>
[12:22]<dnznvx>Rhasta: no, not redirecting anything
[12:22]<dnznvx>well, not following this path anyway..
[12:23]<dnznvx>Rhasta: IE just takes forever loading
[12:23]<dnznvx>firefox obviously catches the 'error'
[12:23]<cgxgzdrg>yereth, good idea!
[12:23]<dnznvx>but nothing is wrong, it just takes a tad bit longer
[12:24]<zjw>not all servers support short tags you should do <?php echo($var_name); ?> to be safe so you can port your app to other servers without hassle
[12:24]<dnznvx>row: never had trouble with that
[12:24]<rxrsvr>well you will
[12:24]<dnznvx>and servers that do not support it, I don't support
[12:24]<rxrsvr>since they are removing shorttags
[12:24]<zjw>me either, but apparently not all servers have short tags enabled for whatever reasons
[12:25]<dnznvx>Rhasta: removing?
[12:25]<rxrsvr>from php
[12:25]<zjw>yereth: thats a rather silly comment, I take it you do dev work?
[12:25]<dnznvx>why?
[12:25]<dnznvx>row: I develop web applications
[12:25]<rxrsvr>no idea, im not a php dev
[12:25]<dnznvx>we configure our own servers
[12:25]<zjw>and you are lazy so cba to do such a simple thing to make your work more portable?
[12:25]<zjw>seems rather stupid to me
[12:25]<rxrsvr>but it's just another bad habit for people to get tripped on when they move code between servers
[12:26]<rxrsvr>for the additional benefit of not having to type a couple of characters
[12:26]<dnznvx>lazy??? php is unreadable already as it is... this is one way to keep the code a bit cleaner
[12:26]<zjw>echo for the avg joe that does not know much is easier imo
[12:26]<zjw>to read that is
[12:27]<dnznvx>perhaps.. I think it fucks up readability
[12:27]<dnznvx>no avg Joe is touching my code :)
[12:27]<zjw>and best not to even mix html and code up that way its even easier to read.
[12:27]<dnznvx>row: printf's are not always practical
[12:27]<zjw>who said anything about printfs
[12:28]<dnznvx>well, that's a way not to mix up code and html
[12:28]<zjw>its not very hard to write a small function to replace tags in some way in a template.
[12:28]<zjw>ie <%%pageTitle%%> pass a function a array and wrap the keys in /<%% %%>/ and then preg_replace key with value for example
[12:28]<zjw>I do that lots
[12:28]<dnznvx>row: everyone his own style
[12:28]<zjw>indeed
[12:29]<dnznvx>might you have any clue about my problem?
[12:29]<zjw>I joined too late, whats your problem?
[12:29]<dnznvx>I have a Class which builds my page beforehand, so before I print anything to the client. Now, if this class takes a little bit longer (talking milliseconds here!) all browsers end up either loading the page forever without showing anything, or just timing out (like firefox: "The page isn't redirecting properly")
[12:30]<dnznvx>The only cure I can find until now, is to print a space (echo " ";) in one of my class methods, so the browser knows something is going to come
[12:30]<zjw>hmm
[12:30]<zjw>how long is the page creation time?
[12:30]<zjw>would have to be rather major for a timeout
[12:30]<djjsnd>yereth, whats you doing, just came in
[12:30]<dnznvx>moosey:
[12:30]<dnznvx>I have a Class which builds my page beforehand, so before I print anything to the client. Now, if this class takes a little bit longer (talking milliseconds here!) all browsers end up either loading the page forever without showing anything, or just timing out (like firefox: "The page isn't redirecting properly")
[12:31]<dnznvx>row: what would be the best way to check?
[12:31]<zjw>have you got a redirection loop or something
[12:31]<zjw>yereth: to take a micro time at start and end of script and then echo the difference
[12:31]<zjw>ie micro time it took to run
[12:31]<dnznvx>row: I don't think I use a redirection in this particular part
[12:31]<jndv>Is it possible to specify a maximum allowed size of a session on the server?
[12:31]<djjsnd>jemt: yes,
[12:31]<dnznvx>row: alright.. hold on
[12:31]<zjw>yereth: you getting stuck it some insane loop?
[12:32]<djjsnd>yereth, milliseconds can't be the problem
[12:32]<jndv>moosey: Where? I can't seem to find it
[12:32]<zjw>indeed timeouts are lot longer than secs.
[12:32]<jndv>moosey: "session.entropy_length" ?
[12:32]<zzavnz>hi - i have an array of associative arrays and i want to sort it on a key common to each of the associative arrays (each has a 'name' key) - is there a built-in or standard way of doing this?
[12:32]<zzlzm>racter: usort()
[12:33]<dnznvx>0.77036000 1147338670
[12:33]<dnznvx>0.80155600 1147338670
[12:33]<zzavnz>arpad: awesome thanks







