logs archiveIRC Archive / Freenode / #php / 2006 / February / 23 / 1
Phuzion
So I have to enclose a number in quotes when setting a variable to it?
Jymmm
!+tias
php-bot
[TIAS] Try It And See. If you want to know if something works, try it first.
xshad
Phuzion www.php.net/tutorial
Phuzion
For example, $var=5; or $var="5"; ?
CarlH
Is there anyone here who is looking for part-time php coding work? I pay via paypal
Jymmm
!+g7
php-bot
Guideline #7) No spam, bots, scripts, trolls, job postings (includes asking for work), advertisements or onjoin/away/back messages.
King
depends what work it would be
         

CyberShadow
xshad, ok, what about custom headers? coz that's my goal actually
Jymmm
CarlH NO JOB OFFERS ALLOWED IN ##PHP
xshad
CyberShadow hmmmm... lemme try to remember, 1 second
CyberShadow www.php.net/headers-list
enygma
Jymmm - not even for escorts?
xshad
hehehe
CyberShadow
umm
that's
for sent headers
Jymmm
enygma a blowjob is not a Job
Lateralus
Jymmm, lol, I'll keep that in mind... and install it on other boxes in here when no one's watching >:D
CyberShadow
outgoing
not incoming
TML
enygma: Especially not for escorts. We don't want to cut into Pollita's bottom line.
enygma
(Action) snickers
Jymmm
(Action) lol @ TML
TML
oh, dear
We don't really need that in the topic...
Jymmm
TML need is a relative term =)
TML
CyberShadow: The only SAPI that PHP has hooks for to get incoming headers is Apache.
jiggster
so i was out playing in the snow today, it's snowing heaps
started making an igloo, lol
Jymmm
TML If you must, feel free to remove it at your will.
enygma
jiggster - heaps at a time? nifty
CyberShadow
...:(
jiggster
i'm soaked tho :\
         

King
How would I search a table for word in a field?
jiggster
and i only finished three rows so it's about 25% done :P
phpcodinfool
hey.. anyone know how to get PDFlib working?
myconid
select fields from table where field like "%whatever%";
Jymmm
TML: That was pretty good though =)
myconid
phpcodinfool: compile it in, or install it via rpm
King
what I mean is
Jymmm
!TML++
King
like
enygma
myconid - you compile in PDFlib? I thought it was just scripts/libraries
King
QUERY table FROM id WHERE id="5"
or soemthing
enygma
king - um, that's what he gave you
phpcodinfool
myconid: you know what the RMP is.. just pdflib
AcidReign
King: #SQL
TML
enygma: PDFlib is an extension
enygma
ah
what's the one I'm thinking of?
King
ic ic
SunSparc
Has anyone read "PHP 5 Objects, Patterns, and Practice"? I am thinking of buying it and wanted some opinions or perhaps suggestions of a better book.
foo
If I am using PHP to spit out a filename so someone could click a link and download that file, what function should I run against the filename to set spaces to %20 and what not?
King
cheers
enygma
urlencode
myconid
I prefer unlink
TML
CyberShadow: As far as I know, none of the other servers *have* an API for that. Which server are you using?
foo
enygma: thanks, that's what I thought
CyberShadow
TML, ok, I don't blaim you
phpcodinfool
there is no pdflib rmp for fc4
TML
CyberShadow: Which server are you using?
CyberShadow
well the server I need to put this on is IIS :/
torpid
I am having a weird problem, I am copying a thumbnail I gennerate from an image that the user uploads, but the script will continue to execute before the file is done being written
CyberShadow
but I need to make it cross-server anyway
TML
CyberShadow: There's no cross-server way to do it.
CyberShadow
so I guess I'll have to deal without this and find another way
torpid
is there any effective way to perhaps test to see if a file has been written completely? I am on IIS6 on windows
CyberShadow
thanks for your help TML
myconid
torpid: check filesize?
phpcodinfool
torpid: check the size
torpid
I don't know what the file size is going to be
I am using gd to write the thumbnail
myconid
it should be whjat i twas 10ms ago
Jymmm
enygma (that's why there's #BDSM btw)
enygma
uNF
myconid
irc needs a threaded mode..
madsara
Hey, does ini_set("SMTP","somehost") not actually work?
enygma
myconid - no, you just need to read faster :)
myconid
madsara: the real question might be why are you using mail()
torpid
imagejpeg doesn't seem to wait until the file is done being written
phpcodinfool
torpid: use imagemagick, its faster better etc etc
madsara
myconid Is there a better function?
myconid
madsara: there are mail sending libraries
enygma
torpid - imagejpeg will write until it's not given any more data
toodles
Hello everyone. Any chance of of explain to me why in example 19-4, it says that '$assigned will have this value', if $assigned is a copy of $instance? Is this a mistake in their example, or am I not getting it? http://www.php.net/manual/en/language.oop5.basic.php
madsara
Well, this is just a dumb script, to fix a 421 deny message I just need the script to use a different server.
torpid
this seems to be the problem: imagejpeg($img, $coach_picture, 100);
madsara
php.ini has a host, I'm just looking to use ini_set w/ this script.
torpid
after that line the script keeps executing even if the file isn't done yet
foo
I am writing a script that will record stats for files such as time uploaded and number of times downloaded. Would it be best to have the script spit out files from the database and do some checking to see if the database records match that directory, and then if so continue, otherwise add new files to the database and spit them out ... or to do a opendir to read the files and have a script be ran after new files are uploaded to add files to the database? Probabl
torpid
and the server is under a lot of load, so I imagine that filesystem operations are delayed a bit
lig
Morning
myconid
foo: *blinks*
enygma
torpid - PHP waits until the filesystem stuff is done
foo
myconid: Did that not make sense? Hmm
Jymmm
Morning lig!
(Action) hands lig her comics
phpcodinfool
torpid: use imagemagick.. and wait until the process is done before moving on
lig
hey Jymmm!
torpid
how do I do that?
enygma
and PHP doesn't multi-thread, so it's not going to do something else while imagejpeg is "running"
torpid
how do I know that imagejpeg is done
jiggster
(Action) hands Jymmm some tissues
lig
Thanks Jymmm
Jymmm
jiggster: You again?! Here, drink some of this S. African Kool-Aod
torpid
is there a way that perhaps I could capture the output of imagejpeg so I could control its filehandle for the output file
Jymmm
Aid
myconid
torpid: you could write it yourself
enygma
torpid - imagejpeg only returns a boolean, not the image data
lig
(Action) reads her morning comics since Jymmm gave them to her
torpid
if you don't give imagejpeg a filename, it just outputs the raw jpeg data
enygma
icky
Jymmm
jiggster: how ya doin?
foo
I got cut off apparently - continued ... and then if so continue, otherwise add new files to the database and spit them out ... or to do a opendir to read the files and have a script be ran after new files are uploaded to add files to the database? Probably the former, right?
jiggster
Jymmm: lemonade please :P
myconid
foo: i have a 30 second memory..
jiggster
pretty good Jymmm how are you these days?
myconid
foo: you just took 90 second ot pos tan entire message
foo
myconid: Haha. Right. No one told me it was cut off.
(Action) tries again
enygma
torpid - pastebin your script
myconid
foo: ask the question, dont give us 5 pages of description
torpid
ok
lig
(Action) rofl from dlibert
Jymmm
jiggster: Eh, not too bad. Ask me tomorrow after I ask someone for CAD drawings of their products =)
foo
I am writing a script that will record stats for files such as time uploaded and number of times downloaded. Would it be best to have the script spit out files from the database and do some checking to see if the database records match that directory, and then if so continue...
jiggster
heh alright deal :P
foo
continued ... and then if so continue, otherwise add new files to the database and spit them out ... or to do a opendir to read the files and have a script be ran after new files are uploaded to add files to the database? Probably the former, right?
myconid
foo: store the file on the filesystem
itreba1
anyone have a copy of solidworks they'd like to donate....
enygma
myconid - amen, brotha
foo
myconid: Yes, I am ... just trying to figure out the best way to populate the database of new files. The filesystem is going to be changing daily.
myconid
foo: you dont put the files in the database.
phpcodinfool
so can anyone tell me where to start.. im trying to install pdflib.. there is no fc4 rpm for it.. not sure where to go..
torpid
http://pastebin.com/567519
jiggster
what's solidworks
torpid
I warn you, it is sloppy
myconid
foo: you store metadata in the database, you store the file on the filesystem.
enygma
myconid - I can only assume he means the metadata about the file
itreba1
jiggster: its like autocad
foo
myconid: err, I said it wrong ... file info, not the actual file. Files will be uploaded via ftp by one person.
itreba1
jiggster: but from what i hear 10x better
jiggster
ohhhhhhh
ok
MalMen
how can i do for dont get more thats warns
phpcodinfool
http://us3.php.net/manual/en/ref.pdf.php i checked there... but it just talks about some crap you gotta pay for
MalMen
Warning: Division by zero in /var/www/localhost/tracker/include/bittorrent.php on line 753
?
« 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 next »