logs archiveIRC Archive / Freenode / #php / 2006 / April / 17 / 1
Silliman
iis :O
edhaskl
dynamic ip.
Stormchaser
philip: you were quieted not banned, silly...
Silliman
edhaskl, may i ask why its running IIS?
Stormchaser
there
edhaskl
silli: not really :)
Lyal
hey folks.. i have a really stupid probablem developing.
philip
i just typed /unban philip what do i know :)
Jymmm
lol
         

Stormchaser
philip: mode ##php -q <nick>
Jymmm
philip try unmuzzle next time
philip
mode, now that sounds like a useful operator
Lyal
i upgraded apache/php using WHM to 5.05.. when it finished, it wouldn't load php pages (gave a "You have chosen to open" error)
i converted back to 4.33, still getting the same error.
Stormchaser
philip: Just make sure you don't screw up chan modes :)
Lyal
Checked the httpd.conf, and it has AddTypes forapplication/x-httpd-php php files
philip
lobas is on the ban list :)
edhaskl
Silliman: i've never run itno any probs ruunning iis. inface infact it's much easier to setup.
philip
oh, quit mode
Stormchaser
Lyal: Clear the browser cache and try again
Silliman
edhaskl, depends
philip
lobas if you would like to speak, ask someone :)
edhaskl
Silliman: heh actually im running an xp box an apache right now.
Silliman
1 cmd is enuff to set apache op in linuz
Lyal
same action
Stormchaser
what is 'linuz'?
edhaskl
im at a friends house.
Lyal
recleared browser cach, and it had the popup
Stormchaser
Lyal: Does apache even have the PHP line in it's header?
nekrom
ChanServ- An access level of [10] is required for [OP] on ##php
what!
         

Stormchaser
...
Lyal
which line is that?
Stormchaser
make a 404 page and look there.
nekrom
it appears my role in the opwar is that of mere cannon fodder
Stormchaser
nekrom: more like canon ball or in other word: 'shootee'
Jymmm
nekrom: The war has been over for at least 3 hours, where have you been?
nekrom
nobody tells cannon balls about whats going on
Lyal
One sec storm
strat
is $x="" same thing with $x="0"?
philip
is 4 the same as 5?!
strat
:)
Jymmm
philip yes
strat
int
:)
Jymmm
oh wait... this aint TZ is it.... nm
philip
and in your case, string :)
strat
empty($x) see x in both cases as empty
philip
as documented, yes
perhaps http://us2.php.net/manual/en/types.comparisons.php will be of some use to you
strat
thanks
philip
btw, empty($x) would return false in php 3 :)
strat
hmm...
philip
for the "0" case that was
but nobody uses php 3 :( :)
strat
how can i send $x="0" from a form
and empty($x) to be !empty
philip
you can look at the php source (C) and change it :)
Stormchaser
philip: There is still a site I know of, that uses PHP/FI and there are still some sites, that use PHP1.0.8 :)
philip
i looked and could not find php1, just php2
Stormchaser
lemme see...
claudio`
fu*ked irssi auto-join
philip
strat: how about empty($x) && $x !== '0'
Mitja
Does Zend engine have any parsing bugs?
philip
no, they are features!
zircu
php1 php2?
Stormchaser
is lith banned from here?
philip
php3 phpinfo() output looks horrible
Mitja
zircu, Zend v2.1.0
Indentation and session expiration seem mysteriously connected here.
Stormchaser
mazzanet: Are you around?
Apocs
how can i replace æ, ø and å with the corresponding HTML values on a whole page?
with PHP
jules
Apocs: Look at htmlentities()
Stormchaser
Jymmm: *poke*
Fushuing2
POKE!
Apocs
tnx jules
budo
hi guys. i have a simple article system thats using id to identify its pages. can anybody teach me how i can make a title only/relevant search script.
zircu
ugly like: http://php30.zirzow.dyndns.org/phpinfo.php?
budo
or maybe point me to where i can find such script
Stormchaser
zircu: Ew. Kill the designer, please.
Vyker
hi, does anyone know off hand which encoding supports £ in xml? or even £ itself ?
aush
hey, i have a question about phpbb sort of
budo
anyone?
aush
how would i put a login / registration panel on a seperate page one dir up
for example
Stormchaser
Vyker: htmlentities?
aush
in index.php in webroot i want login + registration stuff
and phpbb is in webroot/forums
any ideas?
Stormchaser
no, we don't support any of that stuff...
Vyker
Stormchaser, yeah that changes £ to £ but when i view it in an xml file in IE, i get an error at that piont.
\zxc
"Cannot instantiate non-existent class: mysqli" -- How do I enable this on a linux box?
Jayinwww
hello
Stormchaser
Vyker: Then blame IE
zircu
\zxc: build php with mysqli
\zxc
bleh, it's a plesk box.
I have root, but if I touch it I'm likely to break plesk.
Vyker
Stormchaser, haha, same problem with FF too, do you know any speical encoding i should specify in xml decleration to show these special characters? or any links?
Stormchaser
Vyker: Why don't you convert the charset in UTF-8?
Jymmm
ASCII RULES!
zircu
*for dos
Jymmm
for everything!
Stormchaser
Jymmm: lith is asking why was he banned... I have no log for april 6th... Any idea, what happend?
zircu
well, my /lastlog shows he was here within the last 24 hours
Sn3f3ru
Hi; if anyone uses Eclipse/phpeclipse for coding, one question: how can I make a portion of the code to fold (if it's not folded by default)?
Stormchaser
hum
ah, I see it... Jymmm banned bit more than needed...
zircu
acually, 21:03 UTC today is when he left i dont see any ban from when he joined to quit
hmm.. my clock is all messed up on this machine
strixy
hell everyone
err. hello everyone
I was wondering if anyone had any suggestions on how to record a users IP address (into mysql).
MarkR
There are two ways normally, either convert it into an integer and store it there
Or just store it as a string in dotted notation
the latter is more obvious for human-readable reporting, the former better for doing things like looking up in IP range databases
Stormchaser
I swear I'm going to make an IP factoid...
!+ip
heh...
lig
Morning
Stormchaser
heya, lig
Tarantulafudge
I have a huge problem, I'm evaluating seperate sections of php from a page and using a function that automatically wraps ob_start(); and clean, but for some reason these sections cannot interact and share variables, any clues?
lig
Hey darlin' Stormchaser
strixy
Tarantula, is it possible to combine the pages and use steps (case) instead?
Tarantulafudge
strixy: well I'm grabbing the php elements from a page using a regex
strixy
MarkR - is there a getip() function in php? I've searched, but can't ifnd one
philip
there is no function to get an ip, just predefiend server variables
MarkR
philip
Tarantulafudge: read about variable scope
MID-Cloud
simple question: I want to put as a default value for a form something that contains " and ' but I don't know how to do that is there a way? (because php excapes the value fiels)
strixy
tarantula, I would say use a session, but I'm avoiding that very scenerio at the moment myself
Stormchaser
!+ip
php-bot
Intellectual property, but you're probably reffering to gathering client's IP address... $_SERVER['REMOTE_ADDR'] might be what you want.
Stormchaser
:)
philovirus
hi there
Anyone know how I might use borders to show which page you are on via a nav system that is called externally via php include?
Stormchaser
what?
philovirus
sorry not well worded.
strixy
philovirus, you talking CSS - now that I can help with!
philovirus
I've got a css based nav system that shows a border based on a class tag. I'd like to have that nav menu be called via an include. however doing that breaks the class tag method I'd been using.
Stormchaser
yes, but not here.
#css, please.
philovirus
yeah css is dead at the moment but I'm fairly certain it's the php include I need to work on.
Stormchaser
Jymmm: Are you here?
strixy
philovirusm i'll pop into #css
philovirus
thanks :D
Silliman
philovirus, if you include how can that break the class?
philovirus
the nav.php file is simple html but I'd like to have the css underscore the current page. using straight css I can just make each page have the nav bar inside with the correct link using the class tag to do that.
With it external in it's own file the nav.php doesn't allow me to do it that way.
Silliman
philovirus, if you do something like if($page == $_SERVER['PHP_SELF']} echo 'class="highligted"';
aimaz
what is a good DB abstraction library in case i want to change database later?
« prev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 next »