IRC Networks
Irc Logs Stats
Start date: 2007-09-27 02:48:27
Last update: 2008-10-24 20:19:38
Channels: 41
Logged Lines: 6230436
Size: 1982.48 MB
Powered by
Channel Info
Network: freenodeChannel: #php |
Search in www.irclog.org
Log from #php at freenode 2006-05-19
Pages: < 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
30
31
Next >
[08:51]<vxgjvxgefjge>Validate->email() also can take an optional second argument that checks that the domain also exists and has a functioning mail server
[08:52]<vxgjvxgefjge>maybe
[08:52]<[rgs]snzyrfcyffn>remove text form string
[08:52]<[rgs]snzyrfcyffn>or varible
[08:52]<vxgjvxgefjge>How to remove text from a string??
[08:53]<[rgs]snzyrfcyffn>say $cat = "Bill the cat is cool!"; i want to remove words the cat
[08:53]<_fgwgffdg>so, i'm guessing there aren't any windows users about able to assist me?
[08:53]<[rgs]snzyrfcyffn>echo whats left
[08:53]<vxgjvxgefjge>2 ways... one is easy one is hard but better...
[08:53]<[rgs]snzyrfcyffn>what is the windows q?
[08:53]<_fgwgffdg>hoi. has anyone here used php as an isapi extension with apache?
[08:53]<[rgs]snzyrfcyffn>pastebin it dude
[08:53]<_fgwgffdg>alternatively, could someone guide me through setting up the php extension mapping on iis?
[08:54]<_fgwgffdg>i don't ever use iis, and that's the only step i couldn't get done from the install.txt
[08:54]<[rgs]snzyrfcyffn>ok theOtherFonz : the better way
[08:54]<_fgwgffdg>pastebinning a question shouldn't be necessary :/
[08:54]<[rgs]snzyrfcyffn>_Lewellyn : thats was for foze not you bro
[08:55]<_fgwgffdg>oh. ok :)
[08:55]<vxgjvxgefjge>If its a basic string replacement use $result = str_replace(search for, replace with, in this string);
[08:56]<[rgs]snzyrfcyffn>ok, but will it replace with blank, emulationa cut function
[08:56]<[rgs]snzyrfcyffn>like
[08:57]<[rgs]snzyrfcyffn>this $result = str_replace(the cat,,$cat);
[08:57]<xunpnz>what's the standard way to make/write php extension document?
[08:57]<xunpnz>there's many "proto" in the .c source file
[08:58]<azdjzyaas>$result = preg_replace('the cat', '', $cat);
[08:58]<[rgs]snzyrfcyffn>ok cool
[08:58]<xunpnz>str_replace
[08:58]<[rgs]snzyrfcyffn>will try that
[08:58]<azdjzyaas>preg_replace is better. -.-
[08:58]<_fgwgffdg>bah. if anyone can assist me, please msg me. i don't have notification of my nick enabled, and i have too many channels on screen :(
[08:58]<azdjzyaas>(I think the docs even say so.)
[08:58]<xunpnz>is isn't better
[08:59]<_fgwgffdg>i'm guessing now would be a bad time to ask about the other thing i was wondering, as well :/
[08:59]<sxrdjw_dyf>I have done a great crime... :(
[08:59]<azdjzyaas>Yeah, str_replace is better for simple stuff. I've just fallen into a preg_replace habit...
[09:00]<vxgjvxgefjge>[AGS]Serialkille: it's worth learning http://au3.php.net/manual/en/function.preg-replace.php
[09:00]<grvxn>ok style question. Is it better when writing a wrapper to use public function funcname( (string) $varname){} or to checktype inside?
[09:01]<[rgs]snzyrfcyffn>cool thanks guys
[09:02]<`d0>hi what does this technically mean?
[09:02]<`d0>Warning: Invalid argument supplied for foreach()
[09:02]<`d0>foreach($formvars['qty'] as $qty_key => $qty_value) {
[09:02]<vnc_>nothing provided to loop through
[09:03]<`d0>Can this mean a variable is null within that loop?
[09:03]<vnc_>just $formvars
[09:03]<vnc_>is qty a multidimensional array/
[09:04]<`d0>hmm
[09:06]<`d0>I don't know what is wrong lol, It only happens when I delete an item from the cart, if I do.. and I try to update the cart (pressing update button) that error comes through
[09:08]<`d0>is an If statement O(n)
[09:08]<`d0>or just O(1)
[09:12]<grvxn>`m0 it meens that what your providing as an argument isn't an array. Most of the time.
[09:22]<fyr>Hmm - that wasn't as bad as I thought it would be
[09:28]<gjrxnss>hi all
[09:29]<vmmwno9>any one know of a good table generator, form generator?
[09:42]<ran_dn>if I define a class and I include some other class in the new class def header, how could I see a function from included class ?
[09:43]<ran_dn>I have class documentation{ var $id; var $son; var $userlevel; and class session was included in the first php line but I can't see if (!$session->logged_in){
[09:44]<ran_dn>any idea beside suicide myself ? :)
[09:45]<zgfggg>use the isset()
[09:45]<zgfggg>if(isset[$_SESSION["sessionname"])
[09:45]<ran_dn>$session->logged_in is a function in an other class !
[09:46]<ran_dn>can I refer that function in a new defined class ?
[09:48]<zgfggg>Try it
[09:49]<ran_dn>let me ask different ! if i define a class in a php file can anyone access that file and use the function in it if the ph pfile is not protected somehow by checking who refered the file ?
[09:49]<scymmynfnnv>it works!!!
[09:49]<scymmynfnnv>someone rejoice with me :)
[09:49]<scymmynfnnv>I wonder how many bugs I just programmed into my site
[09:49]<ran_dn><skiddieleet> is about my question ?
[09:50]<scymmynfnnv>no
[09:50]<scymmynfnnv>I was working on my site
[09:50]<ran_dn>:) glad for you
[09:50]<scymmynfnnv>thanks
[09:50]<ran_dn>what are you progreamming ?
[09:50]<ran_dn>the site
[09:50]<scymmynfnnv>I was adding an edit feature to the forums
[09:50]<scymmynfnnv>before nobody could edit their posts
[09:51]<ran_dn>is your personal forum or phpBB
[09:51]<vmmwno9>Any oneknow of a good php mysql generator?
[09:52]<scymmynfnnv>personal forum
[09:52]<sdzwjz>http://login:password@domain.com:2082/frontend/bluelagoon/cron/simplecron.html?entcount=1&command1=mycommand&hour1=12&hour1=34
[09:52]<scymmynfnnv>I've been revamping my backend code for a few days now, and decided to add some features too
[09:52]<sdzwjz>I'm trying to set a cron using that string, am I missing something?
[09:52]<sdzwjz>doesn't seem to be working
[09:56]<alnr>is it supposed to set a cronjob?
[09:57]<rymrg>smaxor: ... what's that got to do with PHP?
[09:58]<alnr>wth is bluelagoon?
[09:58]<alnr>and call me crazy, but &hour1=12 &hour1=34 looks wrong.
[09:59]<sdzwjz>I'm writing a install script
[09:59]<sdzwjz>in php and bluelagoon is a theme for cpanel
[09:59]<rymrg>smaxor: ... do you have a question?
[10:00]<sdzwjz>yeah I'm wondering if anyone knows how to set a programatically using php?
[10:00]<sdzwjz>I was trying to use url strings and cpanel but it didn't seem to be working
[10:00]<alnr>how to set a .....?
[10:00]<alnr>a cronjob through cpanel?
[10:00]<sdzwjz>whoops, cron
[10:01]<sdzwjz>programatically
[10:01]<rymrg>smaxor: the words "what the fuck" come to mind
[10:01]<rymrg>smaxor: do you actually have a PHP question?
[10:01]<sdzwjz>does the words "quit being a jackass"come to mind aidan?







