logs archiveIRC Archive / Freenode / #php / 2006 / February / 1 / 1
kuja
After you figure it out, you'll want to stab yourself for not knowing.
Stormchaser
Uuuu! Lookie there!
itrebal
what the FUCK?
Wizz_Kidd
hmmmm
Stormchaser
itrebal: hm?
kuja
Smoke: Feel like hitting yourself yet?
itrebal
Websense has a PDF on things it blocks, one of them is "Dynamic Content - URLs that are generated dynamically by a web server."
Stormchaser
lol
itrebal
it doesnt do a good job
         

Wizz_Kidd
itrebal: in a way url rewriting is cheating
Smoke
kuja, maybe you think i didnt read the manual, or that i didnt tryied to supply the second [filename] parameter... but you are wrong
im just asking coz its not working good
kuja
Then enlighten me on what you did do, and what didn't work.
If you just tell us something ain't workin', do you expect us to read your mind?
Give us more information.
mfonda
Smoke, "The imagepng() outputs a GD image stream (image) in PNG format to standard output (usually the browser) or, if a filename is given by the filename it outputs the image to the file."
Smoke, supply the filename. If you look, you will see it is bool, meaning it returns true or false
kuja
Smoke: Here, let me ask you this... I have a function, what it doesn't work. What's wrong??
s/what/but/
mfonda
Smoke, just add the filename parameter
itrebal
... this is DUMB "Personal Websites - Sites published and maintained by individuals for their personal self-expression and ends." they dont have Geocities or 0Catch blocked, or ANY others
mfonda
itrebal, write a letter to the editor
Smoke
mfonda, but it dont seems to work good, the result image is invalid, looks like its missing 5 bytes of it
itrebal
mfonda: heh, i'm for getting arround them, not making it stronger :D
Smoke
kuja, dont worry your allmightyPHP, treating ppl like stupid all the time does not helps anybody, we are not stupid if we make questions
dfclient
i have this nice complicated application i didn't write (co-worker did, he is now not here) but i am modifying that uses php-gtk2. It works when i run it with the php cli, but it crashes in certain places when i run it in the embedded environment, which uses this "embed_no_win.exe". i don't know where to start debugging this, since, even when i run it with "embed_win.exe" (the only difference is that it shows the command window)
Smoke
thanks for the help mfonda, i'll read more around
kuja
(Action) needs to figure out how to copy non-English files that may contain some English
Heh, how stupid.
:)
Stormchaser: I don't think we support PHP-GTK2? Right?
Afterall, who the hell uses it
Stormchaser
(Action) shrugs :)
dfclient: You heard it. We do *not* support php-gtk
dfclient
believe me, it was not my choice, but i'm stuck with it now.
Stormchaser
dfclient: Then bug the one that made that choice
dfclient
he is in the army now..
kuja
Tell him it's urgent.
You've got a mission for him, and the president requests his presence.
Stormchaser
:)
         

itrebal
dfclient: tell someone its got something to do with Homeland Security
kuja
Tell him his family has been kidnapped by terrorists
"God dammit! I don't care what you have to tell him! Bring him here!"
dfclient
well, clearly you guys are going to be the stubborn, stuck up type of OSS devs, so, i will leave.
Stormchaser
bye then
what is 'stuck up' type?
kuja
Not sure
DjDarkPingvin
hello ,how can I open a link in s php script? like a redirect
kuja
I'm not stuck up right now, but I am when my girlfriend wants to play with me :)
itrebal
eewww
Stormchaser
kuja: :)
bambino
What array sorting function should I use if I want to sort an array by a column that has alphanumeric values...i want it to sort it numerically and alphabetically..
DjDarkPingvin: header("location: filename");
not 'opening' a link, but it will redirect the browser to the specified filename..
DjDarkPingvin
i`m writing a chat php script and i need to refresh it
bambino
i would use javascript to do that then..
do a setTimeout('refreshFunction()',10000) inside of refreshFunction
refreshFunction has location.reload();
10000 means the refreshFunction gets called every 10 seconds..
DjDarkPingvin
i don`t wan`t it to refresh constanty ,only when a user posts a message
Stormchaser
...and take the rest to #javascript
bambino
hehe..
you have to have something constantly checking for new posts
so it knows when to refresh..
Does anyone know what array sorting function will sort an array alphanumerically?
Is it natural sort?
Stormchaser
DjDarkPingvin: Then don't use PHP for that kind of chat (or HTTPD protocol for that matter)
s/D//
DjDarkPingvin
Stormchaser: i`m writing a "message wall" ,where a user can post messages and ,after he posted one ,he should see it ,like a guestbook or a forum
Stormchaser
Well... That's easy... Just send the form content to self, store and display the monster.
Jax
any oppinions on when to use XML Attributes over NodeValue.. or would there only be semantical reasons?
masquerade
Jax, there are common sense reasons
MikeH
Guys
Jax
masquerade fill me in
MikeH
how can I merge 2 objects into 1 variable
masquerade
how would you like it if in HTML it was <a><href>http://link</href><title>A title</title><content>Then link text</content></a>
Jax
well basically you would use an attribute as long as it doesn't have sub properties i guess
MikeH
Basically I'm trying to merge 2 objects (from mysql_fetch_object() ) into one var to i can return it from a function
http://pastebin.com/532883 <-- might give a better idea of what I'm trying to do
Jax
MikeH you sure you can't get the result in one query?
MikeH
Jax: look at the pastebin and You'll understand
Jax
and does it really make sense to merge 2 mysql objects with different column definitions?
MikeH
well basically
I want to return all those values
Jax
ew that looks quite unhealthy
MikeH
to whatever calls that function
Jax
how bout putting both objects into an array
and returning the array
MikeH
it's messy for the coder though :(
Jax
$return_vals = Array(); array_push($return_vals, $obj1); array_push($return_vals, $obj2);
masquerade
returning two values from a function is wrong on multiple levels
Jax
or so
totally
MikeH
none of the field names conflict, so theres no reason to put it in an array
Jax
make 2 functions
MikeH
Jax: I'd rather not, is this not possible
ee99ee
are iframes depreceated?
Jax
ee99ee use flash! :D
ee99ee
(Action) twitches
enygma
jax - and you wonder why I don't love you? ;)
Jax
ah come on !
:D
MikeH
Jax: if I used mysql_fetch_array would they merge ok?
Jax
why would you want to merge the 2 ? how will you be accessing that object later?
MikeH
well basically
Jax
how do you know where the results from query 1 end?
MikeH
say I wanted to get that users email address
I would do
$udata = getuser( $userid);
print $udata->email;
Jax
no no
you make a User object.. with properties
and you init the object with a user ID
and re-use the properties
via $YourUser->getEmail();
$YourUser->getName();
Stormchaser
!tell jax about enter
MikeH
I'm not an OO person
Jax
!tell Stormchaser about anal retentive
masquerade
!tell Jax about goodbye
MikeH
LOL
he was helping me :(
wundaboy
MikeH: you should be an OOP person
Stormchaser
he'll be back\
Jax
!tell Stormchaser about quakenet
lamer
MikeH
lol
colder
err :)
Stormchaser
(Action) twiches
masquerade
MikeH, you should be doing an SQL selct statement to get all those results, there's no reason for you not to be
MikeH
masquerade: I want a function for it, it saves alot of time
when I use it about 20-30 times throughout the site
:|
Stormchaser
Mike_: I'd build that in OO, if I were you...
masquerade
MikeH, put the select in the function, but don't run two selects for such a simple query when its not even close to being necessary
MikeH
someone care to elaborate a little further
I just wanna keep it simple
masquerade
SELECT `table`.col1, `table1`.col2 FROM table WHERE `table1`.col = 'val' AND `table2`.col2 = 'val'
something along those lines
MikeH
hrm]
how can I used table1. and table2. when im only selecting from one table?
itrebal
O.o i got about 3,000 spam emails today
Dangermouse
itrebal: oh my godf
-f
masquerade
MikeH, by learning SQL
MikeH
I know what I mostly need to know
this is why I'm asking for help....
itrebal
(Action) writes some powerfull anti-spam rules
colder
(Action) would use them
itrebal
colder: i found a method of getting rid of spam (in general, not all)
FenixRF
kuja, I've another question
« 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 »