logs archiveIRC Archive / Freenode / #php / 2006 / June / 18 / 1
Wolfpaws
*blink*
Vitkus
Hi. I'm PHP programmer and good webmaster. Who need cool website for $, send me PM. My some works: eurofootball.lt ; eurobasket.lt
enygma
don't advertize in here
Vitkus
ok
sorry
sean_micken
Vitkus: use those "good webmaster" skills and make a website for yourself...
Vitkus
i'l maked website for myself, but i want and yourself. sorry, i'm back from realunix.net.. :) advertize channel :)
Wolfpaws
(Action) rawrs
rarman1
any web designers around?
Vitkus
rarman1: i'm listen
         

Wolfpaws
!tell rarman1 about guidelines
rarman1
Wolfpaws: should I be asking somewhere else?
Wolfpaws
rarman1: yes. #php.jobs
itrebal
heh
rarman1
well it's more of a free consultation, not a job
Wolfpaws
RAWR
rarman1
=?
Wolfpaws
itrebal: http://storm.homeunix.org/misc/bts/catgirl.jpg
nautiazn85
How do I define a method in PHP that throws an exception?
is that possible in PHP 5?
rarman1
there is a catch command
nautiazn85
for example: public function connect() throw IOException {}
but that doesn't work
i want something like what java methods can do...
Wolfpaws
um... php.net/oop5
RootSnatch
is anyone in here?
Xen0n
Hmmm.. this is strange... is there any way to add the PEAR dir to include_path?
RootSnatch
so I am using a php script and it creates a SQL insert string that says
insert into entries values('2c4a1bd51d982738b6b2159fa4540078','4396','6')
nautiazn85
Wolfpaws: so basically I don't have to explicitly state that is throws an exception?
RootSnatch
now when go into the mySQL database the second field the 4396 field is 127
whenever I run this using the script it enters 127
now if I just hard code that second field, it then works fine
Xen0n
RootSnatch, this isnt a PHP problem, its an SQL problem... but...
itrebal
Wolfpaws: nice :)
Xen0n
the problem is most likely the integer size you selected
         

RootSnatch
but when I hardcode the value it works fine
Xen0n
you using TINYINT ?
RootSnatch
yes I am
wow
Wolfpaws
itrebal: My first catgirl :3
RootSnatch
what I stupid thing of me
Xen0n
RootSnatch, i'm not sure, but tinyint might be 8 bits only
RootSnatch
it is a tinyint(20) how high a number does that allow for
Xen0n
max of 127 is right for 8-bit signed
RootSnatch
ok
thank you
Xen0n
try using SMALLINT or just INT
otherwise... maybe your code isnt doing what you think it is, if you think it should be entering one number and it is entering another one
RootSnatch
thank you
itrebal
Wolfpaws: so when does the first pr0n get released?
Xen0n
anyone know the best way for converting backwards and forwards between unix timestamps and ISO8601 timestamps?
also, anyone has any idea why PEAR wouldn't be in the include_path?
latehorn
hi, I would like to know if it's possible to mix SQL code with PHP functions. I need a "ORDER BY php_function(row[id])" kind of quote..
Wolfpaws
itrebal: anthro or human?
latehorn: It's not.
latehorn
A guy in another chatroom told me it is..
Wolfpaws
which one?
Xen0n
so THATS who Wolfpaws is!!!
gah!
Wolfpaws
hm?
Xen0n
damn you stormchaser!
Wolfpaws
why?
Xen0n
just because? :P
Wolfpaws
I mean, did I do something to you ?(except mute you)
surfdue
whats the stuff used in most templating systems with that buffer output whats the info so I can look that up?
CrazyTux
surfdue, ob_start
Wolfpaws
surfdue: It's called "code"
alakazam
http://php.net/ob_start
Xen0n
Wolfpaws, nope - just confused me :P
surfdue
ty
Wolfpaws
Xen0n: I'm confused percon... Deal with it XD
Xen0n
Anyone know where the include_path is controlleD?
PEAR for some reason isnt in it ...
Wolfpaws
php.ini
`m0
hi, how do we use curl to grab conents of a URL
Xen0n
hnmm
`m0
and later on to get part of that data
Xen0n
there is no declaration for it in there :/
Wolfpaws
`m0: php.net/curl and RTFM
`m0
IT is a resource
I cannot alter that resource
Wolfpaws
erf... Sorry...
Why are you using fopen?
itrebal
`m0: why not just file_get_contents ?
`m0
i am using curl
Wolfpaws
why?
`m0
it is disabled in my php
Wolfpaws
There are easier way to deal with grabbing external content
you have fopen off?
`m0
yes
Wolfpaws
why?
`m0
i wanted to use curl
dreamhost doesn't allow me
Wolfpaws
ew.
switch hosts, then
`m0
dh is great..
it is for a university club
so I don't pay that much money
10 dolalrs a year
Wolfpaws
`m0: Seriously... php.net/curl and read it
!+enter
php-bot
Don't use the enter key as punctuation. Think in complete thoughts, then type.
Wolfpaws
itrebal: You didn't answered my question
`m0
I know
I read it...
http://pastebin.com/715490
That allows me to print out the exact page
But once I parse ch (resource) it still keeps the original form
interrupt
hi was wondering if someone could look at this site and tell me if there is possibly a template or something that i can use to sort of emulate this design please?
http://smoothjazz.com/
`m0
What I could do is store it as a file and parse that file
Wolfpaws
o.O
`m0
which is easy
But I would like to do it withought storing it as a file
Wolfpaws
how do you modify $ch?
(Action) looks at interrupt
interrupt
:)
`m0
http://pastebin.com/715496
DJ_Spin
stealing != cool
`m0
Thats how I am currently doing it...
Wolfpaws
interrupt: #web, #copycats or something
interrupt
well wolfpaws this is what i am doing right now but it's just not where i am trying to go http://www.openjazz.org
`m0
I want to open up adifferent website and parse it but I cannot do it withought saving it, any ideas?
interrupt
i am not a programmer i am a musician. i play woodwinds and guitars.
Wolfpaws
And I'm an op.
`m0: Well... you don't do anything with $ch
`m0
stormchaser arn't you an op @ef
Wolfpaws
`m0: nevah!
`m0
ah were you thou?
Wolfpaws
same answer
`m0
heh k
what do I do with $ch?
once I got the resource?
Wolfpaws
Just a sec
`m0
(Action) was going to use curl_multi_getcontent
Wolfpaws
`m0: nah... Just $content = curl_exec($ch);
nautiazn85
Is a documention generator for PHP the same way there is for java (javadoc)?
`m0
(Action) dh does suck, i can't log on now :)
Wolfpaws
nautiazn85: IIRC, it's prety similar... phpdocumentor.org (or something) Google for it
nautiazn85
wolfpaws: awesome thank you
`m0
i will use CURLOPT_URL
itrebal
Wolfpaws: PM me your question, i have to go (i'm in and out all day today)
Wolfpaws
itrebal: Never mind, then
GNN-Ricardo
how i insert a binary value into a varbinary field in MSSQL?
Wolfpaws
GNN-Ricardo: This isn't #microsoft
tempered
how do I uninstall an old version of php and install a new one? can I just install on top or do I have do something special ( windows server 2003 )
Wolfpaws
tempered: Just remove the folder and unpack the files into the same dir
diogo86
tempered, also you may take care if you have copied any DLL file into system directory. those must be rewritten too
tempered
thank yous
« prev 1 2 3 4 5 6 7 8 9 10 11 next »