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: 1982.49 MB
Powered by
Channel Info
Network: freenodeChannel: #php |
Search in www.irclog.org
Log from #php at freenode 2006-07-15
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
Next >
[14:15]<tzzdzw>ok thanks markR42
[14:16]<krgkjugy>hello ...
[14:16]<zxnzvnz>hello
[14:16]<krgkjugy>:|
[14:16]<zxnzvnz>:|
[14:17]<krgkjugy>no one can tell me how to convert the 1152784376 to real time in php page !
[14:17]<zxnzvnz>no idea how you'd do that, sorry
[14:18]<wjlllrws>date()?
[14:19]<krgkjugy>ok but HOW
[14:19]<wjlllrws>RTFM?
[14:19]<krgkjugy>i can't understand you.
[14:19]<wjlllrws>!+rtfm
[14:19]<lxl-2jv>[RTFM] Read The Fscking Manual ya lazy bastard! http://php.net/WhatYouWantToSearchForGoesHere - http://ben.nullcreations.net/rtfm.txt
[14:19]<krgkjugy>ok sir
[14:19]<ys_guff>hello everybody, how can i write binary to a file please ? i know fopen() and fclose() but php.net/fwrite displays : "fwrite -- Binary safe write file' ... binary data is in an array (fetched with curl functions)
[14:20]<djdrs>is_null: add 'b' to open options
[14:21]<mzzcz9q>is_null: Open the file in (e.g.) "wb" mode, and it will be binary-safe
[14:21]<ys_guff>domas: then use fwrite ?
[14:21]<wjlllrws>is_null: What array?
[14:21]<ys_guff>i meant a variable sorry
[14:21]<mzzcz9q>If it was fetched with e.g. curl, it's probably just as a string of binary data
[14:21]<ys_guff>*exactly
[14:21]<wjlllrws>is_null: use current() or implode() for putting the data into string
[14:22]<ys_guff>i want to save it to a file .... there is no array sorry i mistaken this
[14:22]<djdrs>is_null: then yes, fwrite()
[14:22]<ys_guff>i can't see b option in php.net/fopen
[14:23]<ys_guff>ok i am all good, thank you guys :)
[14:23]<ys_guff>good day
[14:26]<vjffne>assalamualaikum w w
[14:26]<krgkjugy>ws
[14:27]<krgkjugy>dam
[14:27]<krgkjugy>i cannot understand that.
[14:28]<gzznvxzdzds>toplez: You cast the spell 'assalamualaikum'. It goes dark.
[14:28]<gzznvxzdzds>toplez: You move west. It is dark. You are likely to be eaten by a grue.
[14:28]<gzznvxzdzds>toplez: You move west. It is dark. You are likely to be eaten by a grue.
[14:29]<wjlllrws>arf?
[14:29]<wjlllrws>Hey, noo nethack RP here
[14:29]<gzznvxzdzds>lol
[14:35]<fz0gs>Hey All
[14:35]<krgkjugy>west. It is dark. You are likely to be eaten by a grue.
[14:35]<krgkjugy><Wolfpaws> arf?
[14:35]<vjffne>hey!
[14:35]<krgkjugy>sorry
[14:36]<wjlllrws>KanKouni: May I help you?
[14:37]<krgkjugy>bro i searched in there befor i connect to this network. i cannot get the the point
[14:37]<krgkjugy>please give me a small example to convert the 1152784376 to a real time .
[14:37]<wjlllrws>the point of what?
[14:38]<wjlllrws>What is a "real time"?
[14:38]<krgkjugy>1152784376 is date+time
[14:38]<krgkjugy>//echo $asctime(1152784376)
[14:38]<krgkjugy>this is the mirc convert command
[14:38]<krgkjugy>i want exactly in the php to convert that to the real time
[14:38]<wjlllrws>That tells me absolutely nothing
[14:38]<krgkjugy>because i have it in the mysql database
[14:39]<krgkjugy>Thu Jul 13 12:52:56 2006 :-\
[14:39]<fyfuym-syfggag>hmmm
[14:39]<fyfuym-syfggag>can you have attributes on classes in php?
[14:39]<rrdrdr>is it a unix timestamp?
[14:39]<fyfuym-syfggag>ie [SomeAttribute(SomeAttributeName = someVal)]
[14:39]<fyfuym-syfggag>then someClass someVal?
[14:40]<wjlllrws>!+func date
[14:40]<lxl-2jv>string date(string format [, int timestamp]): Format a local time/date
[14:40]<kgfjzrg>can anyone help me with this, (its PHP generated XML), the error is "XML Parsing Error: no element found", the source is, http://linc.pastebin.com/748638
[14:40]<krgkjugy>yes it is
[14:40]<rrdrdr>Liquid-Silence - you could always define a var global to the class
[14:40]<rrdrdr>$class->foo
[14:41]<fyfuym-syfggag>enygma no that defeats the object of what I am trying to do
[14:42]<rrdrdr>oh
[14:42]<fyfuym-syfggag>I need extended attributes on classes
[14:42]<fyfuym-syfggag>and can you reflect properties of classes to a requestion Class?
[14:43]<mzzcz9q>PHP does not support attributes like C#, but you can probably achieve that function in some other way. You can have initialised static properties
[14:43]<zr2rucn>hello, I have a problem with open_basedir. it is set to /srv/www/domain.com/httpdocs. I have an index.php that includes a file from _functions/_filetobeincluded, this works. _filetobeincluded then includes another file from the same directory, at that point php restricts access. Why?
[14:43]<zr2rucn>The iclude path is include("_katalog.inc.php");
[14:43]<zr2rucn>in the php error I see a / informt of the filename, might that be the reason?
[14:45]<zr2rucn>File(/_katalog.inc.php) is not within the allowed path
[14:45]<zr2rucn>where does the / come from?
[14:45]<zr2rucn>or shall I include ./_soemfile?
[14:45]<fyfuym-syfggag>MarkR42 reflection in php is simaler to reflection in c#?
[14:45]<mzzcz9q>Is there a _katalog.inc.php in the root directory? Is root in the include_path ?
[14:46]<mzzcz9q>Liquid-Silence: It's not identical but you can do most of the same things.
[14:46]<fyfuym-syfggag>ok last stupid question
[14:46]<fyfuym-syfggag>is there properties in php eg: get { } set { }?
[14:48]<kgfjzrg>guess my code isnt an issue then even if it is erroring !!
[14:48]<kgfjzrg>guess my code isnt an issue then even if it is erroring !!
[14:48]<kgfjzrg>can anyone help me with this, (its PHP generated XML), the error is "XML Parsing Error: no element found", the source is, http://linc.pastebin.com/748638
[14:48]<mzzcz9q>Liquid-Silence: No there is not, but you can define __set and __get http://uk.php.net/manual/en/language.oop5.overloading.php
[14:48]<mzzcz9q>I don't think that's a good feature to use though, it appears confusing
[14:49]<zr2rucn>MarkR42: by root you mean /srv/www/vhosts/domain.com/httpdocs?
[14:49]<zr2rucn>or /
[14:49]<mzzcz9q>rabauke: I mean /
[14:49]<zr2rucn>no, there is nothing in / on the harddisk
[14:49]<zr2rucn>nothing but directories like etc of course :)
[14:53]<zywvx>Is there a service somewhere where I can submit useful PHP functions?
[14:55]<zxnzvnz>the manual comments are the best place
[14:56]<ayzzsvnz_>each one in their respective location
[14:56]<lyzrvrlrrruyr>how come with mysqli even when I give a completely wrong database username, password and database name mysqli_connect_errno () still returns 0 ??
[14:56]<mjvyzawq9q>how do I write a regex to find all the instances of links like this href="/dl.php?id=12623576" where that # could be anything
[14:56]<zywvx>cheater, but what if the function referred to, say, video conversion?
[14:56]<ayzzsvnz_>a code repository then
[14:57]<ayzzsvnz_>ie: hotscripts.com or something like that







