logs archiveIRC Archive / Freenode / #php / 2006 / February / 21 / 1
Stormchaser
xshad: Can you draw cartoons?
xshad
Stormchaser by hand? yes :)
Stormchaser
you can? Show me
xshad
should be a nice experience hehehe
moop32
hello! what is the common cause for error in deserialize() (gives me "error @ offset")?
xshad
i'll draw something and send you, msg me your email
raden
is it possible todo menus like www.iolaoldcarshow.com/ has with php ?
Stormchaser
xshad: You don't have anything in stock? :)
sandstrom1
raden no.
         

xshad
deserialize? does this functions exists ?
sandstrom1
raden you want #css or #javascript
raden
sandstrom1, CSS can do menus like that ?
xshad
Stormchaser no... I used to draw by hobby :)
notx
is there a quick script to check whether the user has entered a valid email?
sandstrom1
notx yes. 1sec.
notx
k
sandstrom1
notx preg_match("/^.+@([-0-9a-zA-Z]+[.])+[a-zA-Z]{2,6}$/", $input);
that will return true if $input is a valid email.
notx
thanx
sandstrom1
the regexp has some downsides, wont match ips etc. that you should be aware of, but it does the job in most situations...
I use it on commercial website.
xshad
notx http://pastebin.com/564593
notx
ahh.. nice thanx
:)
xshad
notx validate any email addr
notx
wont load bro
xshad
sh*t
sandstrom1
pastebin seems to be having problems.
xshad
wait a second
notx
ok
Stormchaser
xshad: KILL THAT AUTO-AWAY!
ktos
does in php exist varibles whos i can use from other file?
         

Stormchaser
ktos: eh?
ktos
like bash export
index.php: $somevar = 1
nitishp
How would I get a variable like $_SERVER['REMOTE_ADDR'] into a command like `whois $_SERVER['REMOTE_ADDR']`?
ktos
index2.php $somevar
does exist method for use it?
Stormchaser
yes. include()
lig
Morning
notx
xshad: any luck bro?
Stormchaser
I hope not... I want some sleep...
^-- lig
lig
so go take your nap Stormchaser :D
ktos
any more?
nitishp
Is it possible to stick a PHP global variable like $_SERVER['REMOTE_ADDR'] into a system command called from PHP? Like `whois $x`?
xshad
notx 201.10.169.144:8082/~douglas/email.php
nitishp sure
nitishp
How?
notx
wow
that is massive xshad
xshad
$x = $_SERVER['REMOTE_ADDR']; exec("whois $x");
or with proc_open
nitishp proc_open should be better... www.php.net/proc-open
Jymmm
robert_ oh, duh.
nitishp
>_<
Stormchaser
xshad: Why? exec("whois ". $_SERVER['REMOTE_ADDR']); isn't good?
nitishp
Never mind.. the error was totally separate.
Yeah, that's what I had originally without the $x.
xshad
Stormchaser nv... the same hehehe :)
Stormchaser
xshad: Less memory.
ktos
Stormchaser: i can't use include, maybe do you know any more?
xshad
hmm.. i don't know, rare to use these stuffs :)
notx yes :) but this validate any kind of given email
Stormchaser
ktos: Why can't you include? You can't type it on keyboard?
xshad
and also works with .js THIS_REGEX.text(email);
rotf
nitishp
I can pass the results to an array right?
Like exec("blah", &$array);
xshad
functionName(&$array) is deprecated
nitishp
Yeargh.
robert_
Jymmm: heh
ktos
i have in index.php varible lang. i want to do links on page localhost/gallery where gallery is directory with index.php and there is header(Location '../index.php?{here i want use $lang from index.php} can ypu help me plese?
Stormchaser
ktos: Use sessions.
Jymmm
robert_ you're coding style realy threw me
xshad
ktos www.php.net/session
ktos
well, yes its good idea
xshad
(Action) has returned.. back again (5h 9m 38s)
ktos
thank you
xshad
crap bi**hx :D
robert_
Jymmm: ah
Stormchaser
I *did* warned you.
xshad
my bi**hx is crazy :P
Stormchaser
xshad: Isn't everybody's?
notx
doesnt work xshad?
xshad
notx why not ?
there was 1 error there hehehe
notx 201.10.169.144:8082/~douglas/email.php
get it again
robert_
so- Jymmm, refresh the source page, now
akumanz
whats up
Stormchaser
sky
akumanz
where is everyone. #mysql is dead
hows #php doing
Stormchaser
Make a burial, then
akumanz
you any good with Mysql Storm?
pwnt
mysql isnt dead, i see this annoying akumanz guy blabering non stop
Stormchaser
!+g8
php-bot
Guideline #8) SQL Q's: #sql, #mysql or #postgresql. Apache Q's: #apache. Linux Q's: Either #yourdistro, #linuxhelp or #linpeople. HTML/CSS/JavaScript Q's: #web. Just because some other channel is 'dead' does NOT mean you can ask here.
akumanz
yeah #php aint known for funny guys..
xshad
rotl i love this g8
Stormchaser
I'm probably laughing right now...
I think...
xshad
hehe
robert_
heh
so
omerix
i'm looking for a hosting (unlimited or high bandwith limit). can you help me
Stormchaser
no
php.net/links
xshad
wtf this have to do with php ?
robert_
indeed
Stormchaser
xshad: He wants the boxes to run PHP OS
pwnt
uh oh, omerix is banned
Stormchaser
he is?
xshad
hehehehe you're funny today storm :)
any special reason? :>
omerix
why
xshad
I'll draw your cartoons... that's it :P
Stormchaser
Yeah... Somebody is tickling my funny bones :)
xshad: I just want an example
xshad
tonight.. i'm lazy right now :D
Stormchaser
hehe... I'm not the only one to read VGCats here :)
Xyphoid
ooh, new comic time?
Stormchaser
wht new comic?
*what
Xyphoid
VG cats? but I see not.
sakey
another noob question here if somone can tell me what to google for i will but i have like 9 .php files for a project i have done, but i wanna mve it to one php file and then do that nifty address thing like index.php?catt
Stormchaser
Macca`: Why do you change your nick on every join?
Xyphoid: www.vgcats.com/comic/
robert_
Jymmm: any insights?
CopyNinja
How do I send a $_GET with a PHP-file through the command line tool? (like C:\php\php.exe -f E:\root\htdocs\pub\sites\netSpy\netspy.php?foo=1) ??
robert_
er
Stormchaser
CopyNinja: That's badly invalid.
robert_
Jymmm: to answer your previous question, I was getting data that I'd not anticipated php would give me
sakey
i think thats my question to lol
CopyNinja
Stormchaser: yeah I know... I was just showing you that so you would understand my question... but I think I found out now anyways =)
Jymmm
robert_: Sorry, I'm in the middle of something else atm.
sakey
im still googling somone help me //;s
i just need somthing to go on
CopyNinja
Stormchaser: Like this? C:\php\php.exe -f E:\root\htdocs\pub\sites\netSpy\netspy.php 'foo=1'
sakey
like a tut or somthing to google on
robert_
ah, ok
Stormchaser
CopyNinja: *TRY*IT*
CopyNinja
didn't work
also tried with a ? infront of foo...
xshad
CopyNinja you should use argc/argv
or STDIN
Stormchaser
CopyNinja: Then fake the GET via argv...
sakey
another noob question here if somone can tell me what to google for i will but i have like 9 .php files for a project i have done, but i wanna mve it to one php file and then do that nifty address thing like index.php?catt
Stormchaser
I'd use ARGV
CopyNinja
okay ill read up on that in the manual... thanks
« 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 next »