| |
| |
| |
|
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
Comments:
<0> $abcd = "/center/music"; <0> web_path = "$abcd" <0> but that set the path to $abcd instead of /center/music <1> Travis, You don't need the quotes. <0> k <2> Touqen: pay attention. <0> it still doesn't work though <1> Don't "pay attention" me until you actually contribute. <1> Travis, What "config file"? <1> Like an ini file? <0> its for a program called ampache <0> its just config.php <1> Oh kay <3> Travis: so you're saying that var_dump($web_path) gives you "$abcd"? <0> well ampache.cfg.php <2> Touqen: there's nothing worse than contributing without clue, like you just did ;)
<1> et, How am a contributing with out a clue? <0> CryWolf well when I goto the script in the browser it breaks because its using $abcd as the path <1> There was no need to have quotes around the variable like he had. <0> instead /center/music <3> Travis: that didn't answer my question <1> I was ambiguous yes but informed, I don't think so unless you can show me otherwise. <1> uninformed rather. <0> CryWolf ok then yes <3> Travis: and there are no quotes of any type around $abcd when you do the ***ignment that doesn't work right? <0> sure <0> $abcd = "/center/music"; <0> web_path = $abcd <0> is it because the config file isn't a php script? <1> Travis, pastebin the config file. <3> Travis: I know that's not the real script, because you're missing a $ from web_path <4> Cripse, is there a full moon tonight? <1> Pollita, It's always a full moon over ##php <0> CryWolf its config file <0> Touqen ok <3> Travis: if it's a config file and not a php script, what makes you think a variable ***ignment will work? <4> Travis: How is that config file being loaded? <1> Pollita, He doesn't know. <1> It's actually a 3rd party script thingy. <4> He.... doesn't know?? <1> He didn't write it. <5> and your supporting it? <1> And from what I can tell is rather clueless about php also. <1> [itrebal_sleep], I'm just being nice. <5> meh <3> being nice lets you gather more rope <1> I'm still waiting for et to actually back up his claim that I'm contributing without clue. <2> Touqen: from what he pasted, it was obvious that it's not php what parses the file, so you can't know if the quotes make a difference... <0> http://pastebin.com/539643 <0> so if I added php tags would it work? <1> et, It wasn't obvious. <1> For all I know the missing $ could have been a typo. <2> Touqen: a typo that gets pasted, including a tab char? <3> Travis: yes, if you completely change the format of the config file, and alter how it's loaded. <0> yeah I don't know very much about php <1> et, Uh yes. <0> I added php tags <1> Travis, 1. This isn't php. <0> ok <1> 2. Adding php tags isn't going to do much. <0> I get what your saying <2> Touqen: additionally, what version of php would "but that set the path to $abcd instead of /center/music"? <4> oh wow <2> +"do that" <4> ampache.cfg.php gets read in and manually parsed by another php script <4> So...um...yeah, the answer is "no" you can't use variable substitution <4> It's not a real script. <1> et, None. Fine. <0> k <0> thanks for the help <3> it's probably getting parsed by parse_ini_file() <1> So I don't spend my time nit picking at minor details. <4> CryWolf: No. I mean MANUALLY parsed <4> like fopen()/fread()/etc... <1> Do you want 40 acres and a mule with that too?
<4> fwiw, parse_ini_file() *does* provide for some variable substitution <3> Pollita: shatter my illusions, then. I was hoping they did something at least somewhat intelligently. <1> et, Either way what gives you the right to criticize what I say? <1> You still haven't actively contributed to the problem at hand... <1> All you did was harr*** me. <2> i didn't know what he was talking about, so i kept my mouth shut so i don't cause additional damage <1> If you think you attempting to "get me back" for whatever I may have said to other people about paying attention because you feel it necessary to be some kind of public avenger, I only find it necessary to tell people to pay attention or to stfu when they clearly don't have _any_ grasp on the actual problem at hand. IE: When someone says "I want to do A" and someone respond with "You should do X Y and Z" when the actual answer is somewher <1> Or even if the answer isn't even clearly defined, providing answers that aren't actually helpful to discovering what it is the person seeking the question is trying to actually explain. <4> Yeah.... definately a full moon <1> So, if you feel better about yourself for your "good deed" of the day, great. Whatever gets you through the day. I will not stop being who I am or doing what I do until I am either told to stop or asked to leave. <4> et makes the tenth nutjob today <1> Okay. I'm glad I wasn't the only one who thought so. <2> Touqen: i wouldn't have made a big deal of it if you hadn't insisted that i explain why i told you to pay attention... <1> You brought it up and didn't think that I wasn't going to demand clarification? <4> Okay and you explained and proved that you're a mile off your rocker, can we stop now? <2> Touqen: i thought you'd realize that your answer didn't have anything to do with his problem. and now i'll stop. <1> et, Why didn't you just say "Touqen: You're an idiot, it's clearly not a PHP file"? <1> As opposed to making me drag it out of you? <1> I can't do it. <4> *nudge* <4> COMMON <1> You are more than welcome. <4> bleh <1> And now I'm going to sleep. <1> I've had enough excitement for one day. <4> noite <1> night! <6> I have a few questions reguarding POST HTTP file upload and PHP $_FILE. I've read the docs and I just want to make sure I'm not mistaken. When my PHP script is run, $_FILES['userfile']['tmp_name'] gives me the path of the temporay file and I can operate on that file for the PHP script lifetime. Correct? <2> ppl: yes... with 'userfile' being the name of the file input element <6> ok. then i can run some test to validate the file content before calling move_uploaded_file(). <4> There's an exception to that. <6> Pollita: Which is? <4> If your host has safe_mode turned on, you NEED to use move_upload_file() first as it's a special function that byp***es open basedir/safe mode restrictions <6> is there a way to test for safe_mode in the php script? <4> if (ini_get('safe_mode')) ... <6> ok, ill just do a if (ini_get('safe_mode')) die("Safe mode is on"); to avoid problems <4> heh <6> Well.. at least it will warn me if I hit a server with safe mode :) <6> Pollita: Is it on by default? heh <4> no <4> It's got to be turned on <4> Primarily it's ISPs that enable it on their shared hosting servers <6> I'll test on sf.net. its probably there my script is going to be hosted. <7> :o <7> i am not tired thats so weird <4> Alright.... REAL science on Brainiac tonight <4> "What's the fastest way to get the most drunk?" <8> beer bong <9> phew <9> at least we're not the only country doomed with that crap <8> injections <7> putting a tube inside your stomach and pumping vodka <8> when i wanna get wasted quick, i just go to the bar and order shots of tequila <8> wash it down with beer <8> then get some rum and cokes <7> what about what's the quickest way of making Mr John Title fart? <8> i'd rather not try that one thanks <8> i'll keep working on self intoxication tho <7> :D <10> hey wykis_ could it be you are i-am at wykis dot com ? <11> bah, car shopping ****s <10> terrific <12> Hey, I'm looking for a web server for windows that supports both php and mysql... and smaller and easyer to configure than Apache... any suggestions? <13> lighttpd <11> Cicciux: uhm, for PHP, Apache is probably your best bet, unless you want to do IIS <11> but I understand thats a bear to setup <12> is there an easy-install suite??? <12> noooo IIS no!!! <12> I'd stick with apache... <11> there are WAMP installers, but really, its *not hard* <2> to configure apache is not hard once you realize that you can leave most of the configuration alone <11> LoadModule php5_module "C:\php5\php5apache.dll" where all the others are, then AddType application/x-httpd-php .php
Return to
#php or Go to some related
logs:
#php ubuntu apt-get remove python oops streamtuner 10.1 ocfs installer.exe #php #perl slack for mac install audiopci-97 ubuntu setting the clock fluxbox #physics
|
|