logs archiveIRC Archive / Freenode / #php / 2006 / January / 28 / 1
js_
is it possible to use header() to send someone to a location and specify GET variables in therE?
itrebal
nforbes: no.... 0/1s
enygma
nope
dannyp
try changing the typedef for time_t and recompiling your entire system... not everything will work properly, it's often not that simple
nforbes
What's the point of 8-bit if you only use 1?
dannyp
granted, many times it is
nforbes
:(
Stormchaser
dannyp: I am *NOT* assuming, that everyone is using glibc, and I stated, that Debian's glibs does the proper negative timestamp processing... So I have no idea, what you are on about..
dannyp
but sometimes code is poorly written or makes assumptions about time_t
         

itrebal
nforbes: er, i lied it uses 2 & 3 occasionally
Stormchaser
s/glibs/glibc
dannyp
Stormchaser: I'm not sure what you mean by "proper negative timestamp processing"
Meltir
js_: header ("http://foo.php?blah=bar&xyverz=bar") and so on.
nforbes
dannyp: timestamps are just unsigned int's aren't they?
itrebal
nforbes: but its all 0, 1, 2, 3 depending on the position of elements,sensors,motors, etc
nforbes
itrebal: ah
Stormchaser
dannyp: Lesser than 0 EPOCH
dannyp
we will have the proper time at epoch+2^31 seconds, and then the next second will overflow and we will be at epoch-2^31 seconds
nforbes: no, they're signed ints
Meltir
unsigned ?
nforbes
That's stupid
dannyp
Stormchaser: sure, of course that will work, but it won't be right, and any running process will have to deal with the time going back 2^32 seconds
nforbes
Why would they be signed?
Meltir
my bad.
itrebal
nforbes: but it handles a LOT of it, and its just fast enough to keep up with everything else - and the software wont work with newer computers, so they just keep it on the old machine, until they *have* to upgrade
dannyp
nforbes: because in 1971 they were still working with data from 1968?
believe it or not time did not start with the epoch
nforbes
Yes it did :(
Meltir
?!
nforbes
itrebal: lol
Stormchaser
dannyp: When did it started?
         

Meltir
Stormchaser: -2^n epoch
Stormchaser
lol
dannyp
heh, time is a construct of the universe
enygma
no
Meltir
dannyp: and thus 32 bits shoud suffice
enygma
time is a construct of man
nforbes
No it's not
Julian|Work
Let's not get into a metaphysical argument now.
enygma
to explain why things change
Stormchaser
nforbes: Sure it is
dannyp
Meltir: ... how do you figure?
nforbes
We gave the process a name, but there's no denying its existence
enygma
and to measure that change
Meltir
dannyp: because ;)
dannyp
Meltir: you either use something more than 32 bits, or you change the epoch, come 2038
Stormchaser
Meltir: and 640kRAM should be enough for ALL
Julian|Work
It's say to say that it hasn't been proven one way or another, regardless how compelling our arguments are.
enygma
anyway :) I'm off work now! so there ;p
dannyp
the former is waaay easier than the latter
Julian|Work
safe to say*
Meltir
Stormchaser: and it would be, if not for spam
Julian|Work
Stormchaser: enough for a timestamp? :P
Stormchaser
Julian|Work: I'm all out of guesses... you're next
Julian|Work
<Stormchaser> Meltir: and 640kRAM should be enough for ALL <--
Meltir
Julian|Work: and it would be, if not for spam :P
Julian|Work
Meltir, I'd rather not get into it.
Meltir
k
eml
do you do if ($var =~ /REGEXP/) in php?
Julian|Work
eml, http://php.net/ereg http://php.net/preg
eml
thank you
Julian|Work
eml, yup
Stormchaser
Julian|Work: Don't point on POSIX regex
caffinated
eml: erm, if you do that in php, it will error
eml
ereg?
oh.. =~ =)
caffinated
use preg (pcre)
TML
ereg is deprecated
Use PCRE
eml
bah, I want perl-syntax
TML
eml: Use PCRE
eml
ah =)
TML
Perl Compatible Reg Ex
eml
hehe, yeah =)
mattmcc
It's as close to Perl syntax as you're going to get with PHP.
caffinated
eml: so, submit a language syntax change. i'm sure it will get summarily rejected :)
eml
ah well, I'm gonna go read now
TML
There are some tiny syntacic differences
But few people run into them
eml
caffinated, I was pointing at regexps..
MalMen
hwy ppl
caffinated
eml: oh, i was speaking of the =~ operator
MalMen
goods []
i need some help :s
eml
caffinated, =)
MalMen
for example
$var = "is telepac";
Meltir
and whats the problem ?
MalMen
how can i see if $var have telepac?
:s
TML
MalMen: php.net/strstr
Meltir
php.net/preg_match
(yes, i use them for everything)
TML
Prefer the str* functions to regex
nitishp_
Hello.
Meltir
TML: it keeps me from forgetting the syntac (which happens when i dont use something too often)
:)
*syntax
`Bryan
I've got " $loginquery = mysql_query("SELECT * FROM users WHERE password = PASSWORD('".$_POST['adminPassword']."') AND username = '".$_POST['adminUsername']."'");
$login = mysql_fetch_array($loginquery);" so how do I display the results from the login?
nitishp_
Is there any reason that http://team254.bcp.org/new_site 's community outreach page doesn't work properly? I have pageid tested for in a php script something like if ($pageid == 1) { blah } but it isn't seeming to work.
Stormchaser
I do PCRE magic every few months (maybe), but I don't forget the syntax
What's a $pageid?
nitishp_
It's the variable I use to test for what page to insert in the content section.
So if community outreach worked... it should have printed "This is the community outreach page!
"
Stormchaser
!tell nitishp_ about predefined variables
nitishp_
Thanks, I'll check it out :)
toggg
PCRE magic ?
Meltir
preg_$foo stuff
toggg
ah
Stormchaser
!+pcre
php-bot
[PCRE] Perl Compatible Regular Expressions - See http://www.php.net/pcre
nitishp_
Ah, Stormchaser, thanks :)
toggg
yes, Stormchaser is a healthy guy ! sure :)
magie is not that world
Meltir
Stormchaser: does php-bot have them predefined, or does it search php.net for hits ?
Drew
Any windows users suggest any free text editors with PHP syntax highlighting?
Stormchaser
Meltir: It was said to him to remember.
Drew
I just need Notepad with syntax highlighting and I can die a happy merman.
Meltir
predefined. k.
Stormchaser
!tell Drew about editors
Meltir
Drew: eclipse ?
DavidHKMrPowers
what is the logic php-bot to check a question or sentence from a person?
Imdsm
drew: http://editplus.com :)
`Bryan
How do I set variables from a mysql query?
Imdsm
DavidHKMrPowers: probably keywords maybe?
Stormchaser
DavidHKMrPowers: Why would you need to know?
Meltir
`Bryan: php.net/mysql
Drew
I heard editplus was teh homosex
`Bryan
Such as searching for a match to a username and password and retrieving an id number from the match and storing that id number as the value to a variable?
eml
$dirs = array(); <- will create an empty array right?
Drew
But thanks for the info everyone :)
eml
can't seem to find the problem in my code
Imdsm
Drew: O_z oh noes!1 off who? :p
Meltir
eml: right
DavidHKMrPowers
Stormchaser: I have written a bot of myself and it is still in progress
eml
ok
Imdsm
Drew: it's notepad with highlighting ;)
Stormchaser
DavidHKMrPowers: In PHP?
Drew
I don't want anything but highlighting.
I <3 Notepad
Imdsm
Lool
Drew
lol :)
DavidHKMrPowers
Stormchaser: yes, in php, I set people to talk to me( bot-me )
Drew
Thanks for the suggestions all
Imdsm
*Lol, got some highlighters?
Meltir
hehe
Imdsm
(Action) imagines Drew highlight the screen and rubbing it out and re-doing it as he scrolls
nitishp_
Drew: Try 1st Page by Evrsoft. -> http://www.download.com/First-Page-2006/3000-2048-10490779.html?part=dl-FirstPage&subj=uo&tag=button
DavidHKMrPowers
Stormchaser: let people
« prev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 next »