@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info


Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 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 32



Comments:

<r0xoR> siddichan, not if you ask like that
<siddichan> :)
<Jeewhizz> Noel4DMB - that's a client side css issue
<Jeewhizz> i'd look in a different channel
<AlleyKat> if ($projhandle = opendir( $file))) {
<AlleyKat> while (false !== ($projfile = readdir($projhandle))) {
<AlleyKat> if ( ($projfile{0} != ".") && ($projfile != "index.htm"))
<AlleyKat> echo "<option value=\"".$projfile."\">".$projfile."";
<AlleyKat> ^- this is what I do to list files (safely?) in a dir, but how do I remove the directories from the list too?
<Jeewhizz> if ( ($projfile{0} != ".") && ($projfile != "index.htm") && (is_file($projfile)))
<siddichan> It's php related but not solely php and yet I think you guy's might help me? i'm using mxbb for phpbb and my site as well asmxbb portal site "Register" function gives me errors. I wonder if its my browser.
<AlleyKat> is_file... thanks Jeewhizz
<AlleyKat> what kinda errors siddichan
<siddichan> "Could not update session robot
<siddichan> DEBUG MODE
<siddichan> And it says something different to each site.
<siddichan> But goes into debug mode.
<Jeewhizz> you are best off going to the script maker's support site for that
<HS^> if something is send like this to a php site test[] = 3 test[] = 443 etc. how would it loop this via a $_GET?
<siddichan> I see plenty of people registered in their site. For some reason, I get that. -- Yea. 's what I was trying to go for. Except I need to register in their forums. :X
<HS^> im talking about the php code behind this:
<HS^> http://verens.com/multiselect/multiselect.php
<Jeewhizz> brb
<siddichan> Okay. Just helpme out. Does clicking on "Register" http://www.mx-system.com/index.php <~ in this website give you that debug error too? Or is it just me?
<AlleyKat> yep here too
<HS^> here also.
<||cw> HS^: foreach
<HS^> ||cw.. yea..but ho
<HS^> w
<AlleyKat> siddichan: I got an account there, I'll post the error
<||cw> php.net/foreach
<siddichan> Thank you. My own error was different. It was telling me that all the fields were incorrect. My installation was perfect but,yea, registering ain't working.
<Larry> is this okay for an html e-mail:
<Larry> http://pastebin.com/589074
<Larry> (just headers)
<cynic> HS^: You would count test[].
<siddichan> Hold on. I'm sorry. On my installation it's the debug error when trying to log in. Not register.
<JonStewart> Martha!
<MarthaStewart> Jon!
<Noel4DMB> Walk the line was Ray with white people.
<HS^> cynic, ||cw.. like this?
<HS^> if($blah $_GET['test[]']) {foreach($blah as $v){ echo $v. "<br>"; }
<HS^> if($blah = $_GET['test[]']) {foreach($blah as $v){ echo $v. "<br>"; }
<SHaWF> which ide are you using. the feautures i want is, CVS support, code auto complete, custom code auto complete, debugging
<cynic> HS^ I would personally check to see if something other than that is set.
<HS^> well it works.. but what do you mean something othet
<cynic> Actually, I'd have to type up a test. Something I can't really do right now.
<HS^> other
<cynic> HS^: Why not just try it and see?
<HS^> it works
<HS^> "I would personally check to see if something other than that is set."
<HS^> you mean the name of the form or something?
<Larry> http://pastebin.com/589074
<Larry> any reason why these dont work?
<cynic> HS^: Yes, or the submit button.
<cynic> I usually go for the submit button.
<winmutt> why cant I : new Object()->doSomething();
<winmutt> i get a syntax error,unexpected T_OBJECT_OPERATOR
<kuja> Because you can't do it. It's illegal.
<winmutt> thats retartded
<||cw> why
<||cw> doing that is retarded
<winmutt> your right. i ended up with $var->add(new Object())->doSomething();
<kuja> function foo() { $obj = new stdCl***(); $obj->bar = "baz"; return $obj; } echo foo()->bar;'
<winmutt> thats more or less what i have
<winmutt> function foo($obj)
<stelt> where does PHPSESSID come into my URLs? It's not mentioned in my code
<kuja> Yeah, either way will work.
<vhuren> is there a way to have a file always included for all documents
<kuja> vhuren: php.ini has an option for it.
<vhuren> ok cool
<Anil> is this php valid: $query = "SELECT netID FROM users WHERE netID LIKE '$netID'";
<winmutt> vhuren: use .htaccess
<winmutt> anil yes thats more of a sql eustion tho
<cynic> Ohh.. I think that HS^ guy needed to use extract($_GET). :-/
<cynic> He really should be using post.
<cynic> Is it possible for users to add thier own variables to post?
<Anil> this always returns me record exists eventhough record doesn't exist: http://rafb.net/paste/results/z5lkLo29.html
<Anil> some thing wrong with != NULL
<Anil> ?
<Anil> any idea guys?
<AlleyKat> why not just test against ""
<Luqq> Nevermind, i just found out how to create shadowp***words working with pam
<Raumkraut> Anil: mysql_query will succeed if the query is correct - even if it returns no results
<scotepi> Anil whe is mysql_query($query) have a ( ) around it?
<Raumkraut> Anil: try mysql_num_rows instead
<scotepi> Anil and what Raumkraut said, try == "" or " "
<Dragonslicer> mysql_query never returns NULL
<Dragonslicer> It returns false on failure, or a result resource
<Raumkraut> or true on an update/delete/drop, apparently :)
<Dragonslicer> Yeah, that too
<vhuren> is it possible for a static function within a cl*** to be called and how do you make that function call a function outside its cl***?
<Dragonslicer> self::staticfunc() should work
<Dragonslicer> And it can call any normal functions the same way as any other function
<vhuren> ok thaznx
<Luqq> can somebody help me?
<Julianyus> hi
<MicW> hi
<MicW> how can i access somethink like mysql_num_rows after an update in pdo (the number of lines affected by the where condition of the update statement)?
<MicW> s/somethink/something
<Dragonslicer> Think it's $statement->rowCount()
<MicW> no, that returns "affected rows" which excludes all rows which are affected but not changed
<Dragonslicer> Dunno if databases are guaranteed to return the number of rows matched but not changed
<Dragonslicer> You can always run a select with the same where clause
<MicW> any other good idea how i can insert new and update existing entries?
<MicW> without preceeding query
<MicW> currntly i tried somethink like : if (!update) insert
<Dragonslicer> You can use a select to see if the row exists, then update if it does and insert if it doesn't
<Dragonslicer> Or if you have a unique key, you can just try an insert, and if it returns a duplicate key error, update instead
<Dragonslicer> Not really sure if one is considered "better" than the other
<||cw> if you are using mysql, you can use REPLACE INTO
<Raumkraut> attempting an INSERT IGNORE is a better method than SELECTing IME, as there is a time gap between the select and insert during which another process could insert...
<MicW> "replaces" does an delete/update -> bad because high costs
<MicW> insert, update on fail is bad because it produces a fail (=an error) in most cases
<Raumkraut> replace doesn't update at all - it just overwrites the record
<MicW> and query, then insert and update is always one query overhead
<Raumkraut> so not useful if there's stuff in that record you want to keep :)
<||cw> which is what update does, right?
<||cw> oh you mean other fields
<MicW> ok, i consider to use replace
<Raumkraut> yah :)
<||cw> that on insert would use default values?
<MicW> will "replace" create a unique key for me
<MicW> no
<MicW> won't work :-(
<errr> can I have a function in like: function hello() { echo 'hello';} function hello($name) { echo 'hello $name';} so I can call it with or with out p***ing **** to it, or is there some other way to do this?
<||cw> errr: read the manual section on functions, use a default valuse, or use func_get_args()
<MicW> i consider to use mysql_* instead of pdo :-(
<||cw> MicW: irrelevant. though if you are looking for abstraction, Id recomend going 3rd party like PEAR or adodb
<Mrdini> yo all
<MicW> ok, i could use pear instead
<Mrdini> unlikely anyone here'll know, but anyone has had issues subbing to a PHP.net mailing list? (can't seem to subscribe to the SOAP list)
<MicW> if pear supports fetching into cl***es... :)
<^Migs^> PEAR can do anything
<Mrdini> (I get the subscription confirmation, but nothing when I reply to that)
<MicW> recently i did a project with pead and the dbobject form generator
<MicW> s/pead/pear
<MicW> some forms contained a file upload dialog where only the filename needed to be stored on database
<MicW> this needed _very_ strange hacks to the library :-(
<Larry> see anything wrong with this REAL BASIC mail()?
<Larry> http://pastebin.com/589163
<Larry> it sends "sent"
<Life-> I have a file that is used by another script, but i want the script it's in a .html file not to be accessable via a browser, any ideas how to do that? I do something like if $ip != localhost die(); but when i enter php code like even <?php ?> the entire page looks bad :-/
<Mrdini> larry, why @mail
<Larry> huh
<Larry> I just dont get the emails
<Mrdini> Larry, do you know what @function_name() does?
<Mrdini> @ = suspresses error messages
<Larry> right i took it off
<Larry> nothing either


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #php
or
Go to some related logs:

mp3 support for amrok
tproxy 2.6.17
cluew extra
#dns
kdm autoload debian
#debian
hdc error code: 0x70 ubuntu
!javadebs
funney-game
bcm 43xx-fwcutter



Home  |  disclaimer  |  contact  |  submit quotes