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.67 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:33]<dnznvx>row, moosey: what do you think?
[12:34]<frrrnfjvscy>hi guys, is it possible to pass a variable to multiple sites?
[12:34]<zjw>yereth: whats the 2nd value?
[12:34]<dnznvx>this is what it prints
[12:34]<dnznvx>the first is start time
[12:34]<dnznvx>the second end time
[12:34]<zjw>then why two lines, ran it twice?
[12:34]<dnznvx>2 lines?
[12:35]<dnznvx>start time: 0.77036000 1147338670
[12:35]<dnznvx>end time: 0.80155600 1147338670
[12:35]<djjsnd>you using cookies?
[12:35]<djjsnd>if not i think its session.gc_maxlifetime
[12:35]<jndv>moosey: Talking to me?
[12:35]<pdznsvzvz>pangelovski: yes
[12:35]<dnznvx>moosey: well, I use cookies at a certain point
[12:36]<zjw>yereth I will pm you a function to make it more reable
[12:36]<zjw>readable*
[12:36]<dnznvx>but that doesn't seem to mather
[12:36]<djjsnd>use .htaccess and try setting
[12:36]<djjsnd>php_value session.gc_maxlifetime 200000
[12:36]<djjsnd>change 200000 to whatever obviously
[12:36]<djjsnd>see what happens
[12:36]<frrrnfjvscy>fyre: where can i find info on it
[12:37]<dnznvx>moosey: .htaccess is not exactly an option I'd say
[12:37]<dnznvx>don't want to depend on that actually
[12:37]<djjsnd>then edit php.ini
[12:37]<djjsnd>or copy a php.ini into your php script dir
[12:37]<dnznvx>can't I do it in the php document?
[12:38]<zjw>not all values can be set at runtime
[12:38]<frrrnfjvscy>fyre: i basically have a php file with containing var1 and i want to pass it to a function in another file.
[12:39]<djjsnd>why do people have a problem with a php.ini in their dir with the options they need :/
[12:39]<dnznvx>moosey: I'm not keen on having to have custom settings
[12:40]<djjsnd>in other words your selling your script and looking for portability / ease
[12:40]<zjw>yet you jsut said you only work on your servers so short tags does not matter....
[12:40]<zjw>make your mind up.
[12:40]<dnznvx>moosey: it's a combination of a CMS and a front-end site builder class, which work together..
[12:41]<mzzayg>hello all
[12:41]<mzzayg>um guys
[12:41]<mzzayg>i need a liitle help with regexp
[12:41]<djjsnd>so what's a default php.ini with a change in php_value session.gc_maxlifetime 200000
[12:41]<zjw>I really can't see why it would take so long for the sript to run unless its complex shit
[12:41]<dnznvx>row: yes, but sometimes we also set up the system on other servers
[12:41]<djjsnd>going to do?
[12:41]<mzzayg>preg_match_all('/\<span style="font-size: [[:digit:]]{1,2}[[:alnum:]];">/', $string, $array, PREG_PATTERN_ORDER);
[12:41]<mzzayg>here is the function and regexp from my script
[12:41]<djjsnd>or why is a .htaccess php_value session.gc_maxlifetime 200000
[12:41]<djjsnd>going to be a problem? hehe
[12:41]<mzzayg>i need to get a part of a tring thath conains : <span style="font-size: 12px;">
[12:42]<djjsnd>whatever.. back to work for me
[12:42]<dnznvx>I'll have the .htaccess then
[12:42]<mzzayg>but i could be: 12pt, 10px
[12:42]<dnznvx>moosey: thanx !
[12:42]<mzzayg>so only the value of font-size will change
[12:42]<mzzayg>the regexp that i paste didn't work :/
[12:42]<djjsnd>only problem is if a server is in php_suexec mode the php_values wont work
[12:42]<djjsnd>which is why you should go with a php.ini
[12:42]<dnznvx>er... great
[12:42]<dnznvx>but do I have to copy the complete php.ini?
[12:43]<zjw>Macca: or a single digit
[12:43]<djjsnd>no
[12:43]<dnznvx>or can I just put an empty php.ini with just this value in it?
[12:43]<djjsnd>i believe so
[12:43]<dnznvx>alrighty
[12:43]<dnznvx>brb.. I'm gonna try
[12:44]<dnznvx>moosey: do I need specific accessrights?
[12:44]<djjsnd>no
[12:44]<djjsnd>just read
[12:45]<djjsnd>755 i guess wont hurt
[12:45]<dnznvx>alright
[12:45]<zjw>Marcin: I would do it this way '/\<span style="font-size: [0-9]+\D+;">/i'
[12:46]<dnznvx>moosey: doesn't seem to work
[12:46]<dnznvx>even have session.gc_maxlifetime = 30000000
[12:46]<mzzayg>row: mhm w8
[12:47]<djjsnd>run a phpinfo()
[12:48]<dzvnaxrud>Is it possible to make PHP do subtraction multiplication and division, i have figured out how to make it do addition but when replacing the + with a - it didn't work
[12:48]<zjw>Marcin: does not work
[12:48]<cucx>guys, help... i'm not php coder... and i am getting this message in log: Unknown error type [2048] "date() [<a href='function.date'>function.date</a>]:
[12:48]<frrrnfjvscy>mrtechguy, what do u mean, like 1+2???
[12:48]<mzzayg>row: yep it's not working :/
[12:48]<dzvnaxrud>1+2 works fine
[12:48]<mzzayg>row: well it's working but incorrectly
[12:49]<dnznvx>moosey: session.gc_maxlifetime14401440
[12:49]<cucx>It is not safe to rely on the system's timezone
[12:49]<cucx> settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function.
[12:49]<dzvnaxrud>but 2-1 i can't figure out how to do
[12:49]<dnznvx>ow.. those are 2 values
[12:49]<djjsnd>hold on, are all php sessions cookie based?
[12:49]<dnznvx>1440 local and master
[12:49]<cucx>how to set that date_default_timezone ?
[12:49]<cucx>i think, that it's 5.1 problem
[12:49]<curr>moosey: Session data is stored in files by default, bu the session ID is stored in a cookie.
[12:49]<dnznvx>moosey: normally and preferably they are
[12:49]<curr>s/bu/but/
[12:50]<djjsnd>ini_set('session.gc_maxlifetime', 300);
[12:50]<djjsnd>there's php i guess it works but it might not be what you want
[12:50]<djjsnd>ini_set('session.cookie_lifetime', 300); // try this
[12:50]<djjsnd>if set to 0 it will log them out when they close browser
[12:51]<cucx>someone help, please
[12:51]<dnznvx>yes, but this is apart from sessions... well that's the idea
[12:51]<dnznvx>maybe it's on autostart







