| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
Comments:
<0> ace_me: yep <1> jmut the page didn't show up.. <1> just blank... white screen <2> If I have ignored this problem for so many years, I might as well ignore it for a bit longer. <1> i try put echo "hello world" inside the function <3> I've used system <0> CyberMad: this has nothing to do with this function though <3> :( <1> then, there is "hello world" message on the white screen <0> CyberMad: well this does not prove anything. you need $smarty->display("template_name") call to run smarty and actualy show something <1> if i remove the DoChecking($check_ag_company_name,$mark_ag_company_name); the page will show very well <1> looks like the process trap in the function.. so can't get out <0> CyberMad: well I ***ume thi $Mark_Input is not string or something. put error_reporting E_ALL... and how exactly do you reference $smarty withing the function. there is no global or anything? <0> ace_me: is it working now? <1> i just put this at the top of the codes: <1> define("SMARTY_DIR","lib/smarty/libs/"); require_once(SMARTY_DIR."Smarty.cl***.php"); $smarty = new Smarty;
<1> $smarty->compile_check = true; $smarty->debugging = true; <0> CyberMad: ok but this is diferent scope??!?!? u need global $smarty; as first line in the function to use $smarty reference <4> !tell CyberMad about smarty <4> piera: woof :) <5> hey Stormchaser <4> !+typing english <6> ##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. <1> ^^ ok... thank you <4> piera: how are things? <5> Stormchaser: pretty good.. getting ready to go to work.. enjoy a day of printing and telling clients off.. going downtown montreal to meet my other half go have a bite to eat and then go watch the davinci code <4> piera: have you read the book? <5> Stormchaser: nope but I plan to read the movie :) <5> Stormchaser: my fiance read the book <4> piera: When is the wedding? <0> ace_me: well I made simple test and it is the same with exec() and system(). they wait the sleep in the bash script I created to finish . and then continue the script <7> hmm I'm trying to make a php 'program' that runs on a server reading new additions to a logfile and if a logline matches "foo" do my_action(). However I cannot get php to follow the logile correctly. If I fgets() a line from that file in a while loop the programs reads everything there is in the file but new lines are ignored. It is like fgets does not look for new data in the file after it first reached the end of the file. How do i get this done? <5> Stormchaser: June 16 of next year <4> piera: heh... That's a long wait :) <8> hi, i have a phpfile wich returns a 2 dimensional array from 1 function getDL(). i include this file in a config file and command $defaultlanguage = getDL() then i include this config in another file an use the var from the config with "global $defaultlanguage", the array is ***iocitive and since yesterday the array doesnt provide the variables i i recently added to the languagefile. if i rename the var inside the config my the global is empt <5> Stormchaser: gives us enough time to save money :) <4> piera: :) <9> So I was reading the /. article about seperation of presentation and logic, and it got me wondering, does anyone here have a good example of a high degree of seperation? I mean, obviously there needs to be a templating system or some code in the presentation, but how much? <5> woohoo xmen3 comes out next week <10> what about Da Vinchi code? <0> scott7^newbee: you don't need to do global to use $defaultlanguage. Something else went wrong. Simplify the problem and turn error_reporting(E_ALL) <5> Jeff__: im gonna go see it tonight <11> piera: me too :) <10> on this weekend I hope <5> i have a funny feeling im gonna fall asleep at the theatre <11> lol <5> i tend to do that at every movie <10> "loard of the rings" sleeping here <0> Dakirith: well take smarty for example. This is its idea. Have some templates where presentation is. And php where logic is...voala, separated :D <12> Ha, the Da Vinchi Code is being reviewed as "the TOTAL ****age" <13> I have file index.php. When I access URL "http://host/dir/" I see nothing (blank page). When I access "http://host/dir/index.php" I see nothing again. What's wrong? Why dont I see the content of index.php? <14> jay199415, cause its erroring out.. check your error log <11> jay199415: Is there an error? <14> display_errors might be set to no <13> I cant check erro log, I have ftp access only to htdocs dir. I see absolutely nothing, no error messages, blank page. <11> jay199415: at the top of the page put: error_reporting(E_ALL); ini_set('display_errors', 'on'); <5> i've come to the conclusion i have a pair of shoes to match at least every color of sweaters I own.. thats pretty cool <13> I already have error_reporting(E_ALL); Wait a moment I'll add ini_set <15> jay199415: you can get a blank page if you page isnt echoing anything <15> try a test php page with <?php echo "hello world"; ?> or something <0> jay199415: can you display anything? html anything. Was it running before...or first try? <13> Thank you, I have error message now <0> hurray <11> yw <0> congrat <12> piera: I own 4 pair of "regular" shoes. Black Docs, Brown Docs, athletic shoe, boots. <5> JAJMaster: you need more shoes hehehe <11> JAJMaster: You're make, right? <11> male* <5> last summer i threw out 19 pairs of shoes <11> holy crap <0> WTF :). how could you wear out (I ***ume) 19 pairs per season <8> thx jmut <5> jmut: i don't they are not in style haha <11> pfff...women :P <12> Dangermouse: yes, yes I am. Although a good friend of mine (guy) is a total shoe addict.
<5> i have a shoe addiction that i do admit.. i was fascinated yesterday when I wore a pale blue sweater and had pale blue shoes to match.. thats just cool <11> lol <5> k ttyl kiddos im off to work.. need to paycheck for new shoes <5> need the paycheck <12> I did go so far as to get a nice leather reversible belt so that it could be brown or black to match the Docs <11> lol <11> thats acceptable <12> For a few years, it was to make the wife happy...but it kind of grew on me <12> Sheesh. Anyone checked out slashdot today? Microsoft's page on Vista is nuts. 1Gig of memory recommended. <16> how are <input type="p***word"> fields posted to a script. is the p***word posted as plain text? would it be easy to sniff a p***word from a login script if it's not using ssl? <14> wrmachine yes they are in plain text <16> i use the term "easy" very loosely <16> okay <16> should i worry about that? <14> if you are worried make that page be in ssl <16> well that'll come down the road when i convince my boss to buy a certificate <14> you can buy them now for like $10 <12> wrmachine: or you could make your own VERY easy. Installing your CA is trivial, and then you don't even get warned. (See http://www.jaj.com/ssl/ for example) <12> wrmachine: you could even do something crazy like using PKI to authenticate folks :) <16> heh <17> Hey, does anyone know how to detect if a user is on for example a dial-up connection? Is it even possible? Should I consider #web? <12> eml: It is possible...but not trivial. Meh, screw the dial-ups anyway. I try not to make my default content crazy big, but in this day and age, I'm not about to cater to the dial-ups. <17> JAJMaster, Yeah, well I'm just researching, saw a project on rentacoder where they needed something similar. <12> There are a few ways you could do it. Timing how long it took to stream them content, doing some XMLRPC stuff to time responses, etc. <17> XMLRPC? <18> i set the lifetime of the php sessions from an init script http://phpfi.com/118614 <18> but the session when the lifetime is p***ed seem to exist again <0> eml: why don't you just ask the user :) <18> for example can i use 2 seconds like lifetime of the cookie session <17> jmut, Waste of time. :) <0> eml: just setup a survey and you wont waste time. maybe some angry clients and false results <17> jmut, Well, the point is that I was trying to figure out how you do this automatically without user interference, because I was a bidrequest on rentacoder which needed this (no, I'm not trying to have anyone doing my work, I haven't bid on it either). <19> Anyone can tell me, whats wrong with this code? <19> $yahoo_query = tep_db_query("select search_url, search_term, rank, sites_searched, date from " . TABLE_SEO_YAHOO ) or die("Query failed");; <19> $yahoo = tep_db_fetch_array($yahoo_query); <17> jmut, I'm trying to get a wider knowledge of how things are done in web development so I can start bidding on the projects that actually gives one some money. <0> eml: sorry if got it the wrong way. just trying to be funny :). have no idea how to solve the problem sorry <17> jmut, No problem. <19> Any of you know of any PHP validator. Online service or Software <17> pronetsys, First google hit on "php validator" <0> pronetsys: validator of what? <0> pronetsys: nothing is wrong with the code....why? <17> Hehe, to be fair I don't see why one would validate. And if you must, doesn't Zend Studio do this for you? AFAIK, it gives a lot of warnings that arent critical for running the script flawlessly. <0> eml: maybe he needs syntax checking.. like php -l <17> php -l then. :) <0> eml: + not everyone can afford Zend Studio <17> Evalution <3 <17> Too bad I'm running out of days soon :/ <0> eml: so you are working with Zend Studio on evalutions only? <20> any of you happen to have or know where I can find a method to take a string and only return the first X-number of *words*? <17> jmut, Hehe, yep. <17> Is that legal? <12> ee99ee: like maybe split it on whitespace and take however many array elements you want? <0> eml: donno. I guess so. <20> JAJMaster: doh, I guess that would be easy... sorry, it's still early here <12> ee99ee: hehe, np. I guess you would need to check for alpha-numeric to avoid punctuation, but that's trivial <20> ya <12> I'd never been to the rentacoder website before...is it just me or is that some seriously lowballed stuff? <0> ee99ee: be care full. you don't want to offend Mr. O'Conner by taking alpha-numeric only <19> thank you very much jmut and eml <12> jmut: or something like semi-complete <3> at what should I think when error The specified CGI application misbehaved by not returning a complete set of HTTP headers. on a IIS6 ? <21> " I should be using apache " ? <12> ace_me: one of your CGI applications is not returning proper HTTP headers? <0> cool answers you got there. go for it <0> I like the first one better <12> Yeah, someone is going to have to preach long and hard to convince me to use IIS over Apache. <22> can anyone explain why, during periods of activity, php is cleaning up session files (/tmp/sess_*) after only around an hour? session.gc_maxlifetime is set to 72000 <22> what else would affect that? I am completely stumped <0> http://www.captain.at/howto-php-sessions.php <0> there is some table after scroll. with some explanation. might help. donno <22> I've even tried downgrading php to 4.3.x thinking it might have been a bug with 4.4.2 or something, but no dice <23> dippo: maybe its your system instead of php itself? <22> could be, i suppose
Return to
#php or Go to some related
logs:
_Caleb_ #perl #suse Fatal error: main(): Failed opening required 'Pager.php' vmware server ubuntu choppy login form vbasic example XOrg * sis741 python mechanize hidden form #gentoo #css
|
|