logs archiveIRC Archive / Freenode / #php / 2006 / May / 21 / 1
Jymmm
Gimp_: Neither do I, I'm a ham.
Gimp_
Jymmm: sweet
tominator
kamoricks Im sorry but Im not sure what that means. Do I have to edit php.ini somehow?
Gimp_
;)
Eleaf
PerL_MonK, alright, still a little stuck.. So let's say I have variable $filepath, I'm still confused how to pass this on correctly
kamoricks
tominator: Nope. You have to either rebuild php with mysql libs. I believe there's also a way to do it without recompiling, but I don't know it, and never had to do it myself - my OS install script did it for me.
Eleaf
brb
richjkl
Is there any way to make str_replace (or a similar function?) only replace once?
PerL_MonK
Jymmm i'll do you a favour and just leave, so its one down, 448 left
         

Jymmm
actually, he wasn't that bad =)
arpad
richjkl: you can limit preg_replace() but that's overkill for a static string, simpler to combine strpos() and substr_replace()
Maddy
hiho
richjkl
arpad: Does limit in preg_replace start at 1 or 0?
Stormchaser
richjkl: Try it
lkr
how can i make the browser navigate to anaother page with php (if possible) ?
gupteshwar
header could help
Gimp_
lkr: php.net/header
lkr
is it something with header('Location: [addr]');
Gimp_
see location:
lkr
ic
do i need to send anything after that ?
Stormchaser
!+typing english
php-bot
##PHP does not allow aolbonics (or leetspeak) such as "u for you, r for are, ic for i see -- etc" and typing like this will result in you being silenced; furthermore, inability to adapt may result in a ban.
lkr
"Firefox has detected that the server is redirecting the request for this address in a way that will never complete."
LOL
oic
kthx
o_O
Stormchaser
What's so funny?
gupteshwar
but sometimes i face a problem that header already sent
abchirk500
hi
anybody knows a pirctureviewer for browser without mysql?
Stormchaser
google does
abchirk500
and where i can copy easy pictures in a DIR
gupteshwar
why that happens which works when output_buffer got on
         

Stormchaser
abchirk500: Google knows the answer to that. ##php isn't your personal search engine.
abchirk500
hm i searched but found only gallery2 and coppermine
Jymmm
!+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.
Jymmm
!+g10
php-bot
Guideline #10) We don't support script(s). We help you *write* PHP, not recommend or download and install/hack/modify/adapt/use pre-written scripts
gupteshwar
Gimp_, can u help me why that header already sent message appears
Stormchaser
abchirk500: And your point it...?
!+u
php-bot
Surely you mean 'you', not 'u'? The letter 'u' is not a personal pronoun. Talking like this in ##php may get you silenced. For details, /msg php-bot aolbonics
gupteshwar
does it has any alternative
Gimp_
gupteshwar: it means you have already outputed something. header needs to be used before any outputs
Jymmm
!+headers
php-bot
If you are getting error like "Warning: Cannot modify header information - headers already sent by (output started at /path/file.php:1)" it means you've got some output before your header() call or starting a session. *No* output can be sent. that includes whitespace (outside of <?php and ?>) and any (X)HTML. You can also use output buffering
Jymmm
prophile do you realize your nick is one tiny regex away from being pedophile?
gupteshwar
i didnt get ...i coded some script on some m/c working when shift other there too but at some place i face such problem with same script
richjkl
lol
Jymmm
I guess he does.
Hi
I have an active state for my links, so by default the "home" link has a red background image. But, since the links to the games are not actually links to real pages (action.php, etc), any idea how could I make it work?
Like some if else statement that looks at the URL and based on that, can choose whether or not to write "class="active" to each navigation link?
gupteshwar
why does it asks for open/save file when i am trying to access php at firefox
?
can anyone help me
Hi
uh
i think i had a similar problem
did u put it in localhost?
gupteshwar
yeah
Hi
o
gupteshwar
does works now?
Hi
?
Stormchaser
!+typing english
php-bot
##PHP does not allow aolbonics (or leetspeak) such as "u for you, r for are, ic for i see -- etc" and typing like this will result in you being silenced; furthermore, inability to adapt may result in a ban.
Stormchaser
!tell gupteshwar about at
gupteshwar
i mean is ur side is working fine?
Stormchaser
oh, ffs
anyone else?
Hi
stormchaser
do you think you can help me with the problem?
Jaywalker
(Action) raises hand
Stormchaser
Hi: It's a non-php question. Try #web.
richjkl
arpad: Thanks for the tip. I just made a str_replace_once function; it works wonderfully.
$find = strpos($subject, $search);
$output = substr_replace($subject, $replace, $find, strlen($search));
return $output;
Stormchaser
...
Hi
Stormchaser: how is it a non-php question?
Stormchaser
Hi: Simple. Your question is HTML related.
Hi
How?
gupteshwar
php-bot, i am sorry for using aolbonics
Hi
I need PHP to determine whether it writes out class="active" or not depending on the URL
and the URL's have variables in them..
Zelaron
Does anyone know if LimitRequestBody should be set in php.conf using php5?
Stormchaser
Hi: print_r($_GET
missing a ) there
Jymmm
!+gv
php-bot
Global Variables - this will show you everything that php sees: <pre><?php print_r($GLOBALS); ?><hr size=5 noshade><?php var_dump($GLOBALS); ?></pre>
kibibyte
what
Jymmm
(Action) fondles lig in an affectionate manner
ok, slightly sexualy too.
Farhad fix your client please.
Farhad
what?
the_rock
hi, any program around to analize the post and gets generated from a form? im trying to make a curl script\
or maybe a login curl sample around?
Stormchaser
php.net/curl and google
the_rock
nothing there about logins
Stormchaser
notice the "google" part
the_rock
'nothing' there about logins\
Stormchaser
the_rock: Well... From my search I found a couple of thousand results about curl login... Care to explain?
the_rock
please target me to one of those which works, ive already tried all
Stormchaser
the_rock: no.
the_rock
same thing\
Gimp_
the_rock: something tells my mind to doubt that you've tried every single one of the couple of thousand results.
the_rock
believe me , im in this 4 days googling , all is crap
Stormchaser
the_rock: Um... You could always read the manuals carefully, too...
the_rock
i guess ill pay someone to do it
Fr0zen
http://pastebin.com/728855
anyone see an error on line 7
actually line 3, sorry
Stormchaser
Fr0zen: *WHAT* error?
Fr0zen
Warning: Invalid argument supplied for foreach() in /homepages/34/d162582622/htdocs/generators/trainjoiner/join.php on line 7
line 7 is line 3 in that payste bin
*paste bin
Stormchaser
Fr0zen: What is $train?
the_rock
anyone want to make a curl login monster.com script for $$$?
Stormchaser
!+jobs
php-bot
no job posting / asking for jobs on ##php (see /msg php-bot g7). You might want to check out: ##php.jobs http://www.geekfinder.com, http://www.monster.com, http://www.rentacoder.com or http://www.getacoder.com, or php.net/links, "Developers and Job Opportunities".
lkr
haha pwnt
ohnoes aol speakz!
(Action) runs away
Fr0zen
the_rock, here is the entire script, it should give you a better idea. http://pastebin.com/728856
the_rock
##php.jobs sorta empty
Stormchaser
the_rock: *blink*
Fr0zen: I'll reask my question... What the hell is $train?
the_rock
(Action) msg me anyone who likes 'bananas'
TML
Fr0zen: You've passed an invalid argument to foreach(). The only thing you can pass to foreach() is an array.
Fr0zen
ah
how can i fix that?
Stormchaser
Fr0zen: Define $train with proper content...
TML
Fr0zen: Simple. Pass an array to foreach().
Fr0zen
(Action) is a newb to php
i will read up on it
Jymmm
(Action) fondles TML in a macho sorta way!
TML
Good, ChanServ is back.
the_rock
ops sorry i closed the window by mistakey :P\
Jymmm
the_rock: No, you were booted. You've been told many time no job offers/talk in here.
Gimp_
hahaha
Jymmm
TML perfect timing... I gave him the reason, you gave him the boot
WCX
anyone use phpbbblog?
Jymmm
!+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.
Jymmm
!+g10
php-bot
Guideline #10) We don't support script(s). We help you *write* PHP, not recommend or download and install/hack/modify/adapt/use pre-written scripts
WCX
ok no script support =p
Fr0zen
ride out homie G !
itrebal
gah! i have to rewrite someones code that used null on FAILURE!
SinnerG
search for : null / replace with : false/0 ? :p
« prev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 next »