@# 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:

<0> why that isnt work1ng
<1> Hi, is there a set of variables that can be changed by one script, and then loaded by another? Like, they stay in memory for the time that the server is running and any script can access or modify them?
<2> how do i tell switch that a case is supposed to be insensitive?
<3> TML: comon there is more than that.
<4> mm2000: Hm... PHP-only... Then try Turbogears or Django, if you want non-PHP
<5> Ricky28269, no store them somehow.. db or in a session
<1> Fushuing: make it compare uppercase to uppercase
<2> Ricky28269: huh?
<0> select id from form where fid='506' and msg is not null
<0> that query isnt working
<1> Fushuing: like, make the test variable all uppercase (or copy to a temp var and uppercase that) and then make each case in uppercase
<6> Fushuing: switch ( strtoupper($mystring) ) { // usual stuff }
<2> not exactly what i wanted, but it should do ;/
<7> ricky28269: you could use something like http://eaccelerator.net/ and use shared memory
<8> Is there a valid use for "$$var"?
<8> Two $s



<8> Or would that be a typo?
<0> select id from form where fid='506' and msg is not null
<1> JAJMaster: thanks, i'm not sure about using that for shared memory, but increasing the speed of my PHP files is always good :)
<0> that query isnt working
<0> why ?
<7> crescendo: it can be "logically" and "syntax" correct...but opinions vary as to wether it is "good"
<6> Well if $var = 'stuff' and you have a variable $stuff;, you could use $$var;
<9> are there any significant programs that have been written in php for *nix?
<2> Zule: bad practice?
<9> as in not web-based
<6> Probably. I can't see any valid reason for it personally..
<7> crescendo: doing that type of thing can make it very difficult for someone else to examine/use your code
<6> Except I used it on code to get rid of magic quotes gpc to save copying/references.
<7> bison: you could do scripting stuff, and technically could do other things, but there are much better options than PHP usually for local executable apps
<9> JAJMaster: yes, and i realize php doesn't do great on benchmarks, but php is pretty simple and convenient for simple scripts
<9> and maybe even slightly more than simple
<7> bison: I wrote a XML parser for the output of mame's -listxml in PHP for use on the command line. But that was more just an excuse to learn XML parsing
<10> the main use of php command-line scripts to me is scheduled tasks that are part of a web app. that way you can use all the same libraries as your web scripts.
<9> nothing wrong with that
<9> Xyphoid: yeah, i understand that php is primarily for web programming...but i just love the syntax
<7> bison: I wouldn't recommend writing something like a MP3 player in PHP or anything
<9> and I hardly ever write anything complicated enough, that the performance of php would have an affect
<11> umm whats the url for the .= man page
<11> cause searching for it doesn't return it
<9> ah, maybe i should accept it and learn python or something
<7> bison: that command line based php code for parsing the xml from mame yields this: http://jackpot.jaj.com/mame.php
<6> johnm1019: http://uk.php.net/manual/en/language.operators.php
<11> Zule, thanks
<6> More specifically, this page. There's not a lot to know about it through: http://uk.php.net/manual/en/language.operators.***ignment.php
<12> is there any way at all to reference apache $_SERVER variables when coding in Zend?
<13> I'm writing a recursive function, does an oracle lookup and stores info in an array for later; having trouble with binding the one and only variable I need to. Anyone wanna help take a stab at what I'm doing wrong? These oci_ functions are fairly new to me.
<7> markcyst: hard to help without source code...pastebin.com?
<13> thx, I'll hook that up.
<13> http://pastebin.com/719590
<13> ^ The above stated Binding prob.
<13> er.... with the wrong code.
<7> hehe
<13> corrected: http://pastebin.com/719592
<13> Hey biodan, any good w/ oci binding for queries?
<7> markcyst: so, what is this thing supposedly not doing? Lot of code there.
<13> k 24-47 = build query and parse it. [successful]
<13> 48-63, set the bind value & prefetch.
<13> 24-63 was in an if statement to keep me from building/parsing twice as the function's called repeatedly.
<14> Sounds like you need two functions.
<7> markcyst: don't know all the situation yet, but julian has a point...that's an awfully big function to be recursing
<13> 68-100 : then execute the query, ***ign values to the master record, update the current record's parent item, set the current records item.
<13> I suppose, but then again, my sql is 20 lines by itself. :P
<13> I'm thinking my next move is going to be to move the SQL/parse/bind outside of the function.
<13> I'm still not sure how that'll affect the recursive queries though.
<13> basically operating them in the global env.
<13> or should I skip to Plan C?
<13> create a test page, test function, rip everything out except the bare minimums...
<15> anybody currently using dreamhost for hosting a php/mysql site?
<13> not me, but a forum I frequent/admin uses dreamhost for hosting.
<13> php/mysql yes.
<13> not too impressed. seems sluggish.
<7> markcyst: so what is it not doing that you would like to have it do (or vise-versa)?
<16> TML - ya still around?
<13> the short is:
<15> MarkCyst, sluggish - dreamhost?



<13> coolnetworkguy: ya
<15> same problem I'm having
<13> joy!
<15> mysql queries are taking too long
<13> sorry.
<13> JAJ, it gives me a ORA-01036
<15> are they working on it? the seem to want to trouble-shoot my side instead of theirs
<13> when I bind.
<13> coolnetworkguy I don't really know. I don't think there's an open ticket w/them.
<15> there is, I keep complaining
<13> JAJMaster so, the query is correct, I'm sure of that. is there an obvious problem with these 3 lines?
<17> Morning
<13> 2 lines, 56 & 57
<13> I later set the value I want to the proper variable name; but I don't get past the bind to REACH the proper value.
<13> mornin lig
<17> :) MarkCyst
<6> What weird timezone are you in? o.o
<17> Zule: thought I told you before +10 GMT
<6> You didn't, but probably Aus huh :)
<13> Oops. I'm -6
<17> Zule nope - Guam
<6> :O
<7> markcyst: I've never used oracle and PHP together, but on your oci_bind_by_name() is it possible to have a type mismatch for $this_part_no?
<13> possible, I thought of that. it's a number field. (so I changed from ='' to ='0' ... no change.
<13> hmm.
<13> okay... here's a twist for you that I didn't notice earlier JAJMaster .... bom_parsed is global.
<13> defined from w/in the function, but I wanted it accessible from anywhere [deeper in the function actually, but whatever, global is easier on my brain]
<18> well i have a script that pings a host, and shows Online or Offline. on one server the top of the page loads and the bottom half hangs untill the ping is done. on another server the page doesnt show at all untill the ping is done. any idea how to make it work like the first example?
<13> HAMM3R: do those pages use HTML tables?
<18> no
<18> well they may
<13> if you want action like #1, that might solve your problem. putting them in a simple table.
<13> IE won't show the table until it has the </table>
<13> FF ... I think FF is smarter than that.
<18> hehe ok
<13> or use javascript & css in the body tag... onLoad
<13> it won't trigger until after the </body>
<19> hey does somebody know a good tutorial how to make a secured loginscript???
<20> you could probably also use flush() in some way
<7> markcyst: I suppose you could p*** it by reference maybe, instead of it being global. Not sure if that would do anything.
<4> Damnit... I'm sleepy...
<19> hey does somebody know a good tutorial how to make a secured loginscript???
<20> you only need to ask once
<13> hmm, p*** by ref: &$variable right?
<13> I think I did that one too. :(
<7> kaju: how do you interpret the word "secured"
<21> kaju: You need to purchase an SSL cert.
<13> JAJMaster thanks. I'll tear it down and make it simple. maybe I'll see the problem then.
<13> thanks chief!
<19> no i mean prevent sql injection etc those kind of things :)
<7> kaju: interpretations could range from "clean" code, to public key infrastructure
<7> ahh
<19> iam noob at php :P
<19> thats why i need a tutorial :(
<20> have you searched google?
<19> yeah
<22> kaju: http://php.net/tutorial
<19> but i only get those simple login script
<23> hi there
<19> hi
<7> kaju: a google for "php login page tutorial" yields what may be many examples...google is your friend
<20> key is to be specific in your keywords
<19> ok ok thx anyway
<24> I bet you all missed me today
<25> piera: Yeah, i did
<24> MarkL: I thought so!
<25> ;)
<24> MarkL: hush
<25> :o
<26> When you send an email with big attachments in google they have a highlighted box in the top right corner come up basically saying "Sending..." any idea how I'd go about doing that? JavaScript?
<23> is there a Mac OS X user that could explain me why the default installation of PHP (the one shipping with the OS) doesn't support PostgreSQL?
<27> PHP does ship with OS X?
<25> mugger: JS and XMLHttpRequest
<27> phretor: But the answer to your question, if there is a built-in version, is, that someone didn't complie pgsql support in


Name:

Comments:

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






Return to #php
or
Go to some related logs:

qmail-send increase remote
#ubuntu
debian mkraid
#javascript
#sendmail
fedora MAKEOPTS
grenitch time zone
reiser4 resize
#linux
package buildaccessorsscalar



Home  |  disclaimer  |  contact  |  submit quotes