| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12
Comments:
<0> anyone used ani or unattended <1> ngon svensk talande hr? <2> English, please? <1> sorry :-) <1> i have a small question about php, is this the right place? <2> yeah <2> just that it'll be harder to get an answer if your question is in Swedish <1> done some programing in matlab before, and i feel very home with creating function files, is this possible in php allso, and p*** variables between files, without using cookies <1> lite the function variable, but instead of calling a place in the same file, call another file <2> you can use get variables <1> ok, and the post <2> and p*** them using the page url <1> thats the way?, no internal variable manegement <1> becouse i dont want the browser to open the file, just want the php code to send an variable to the function file, and then recive a result <2> it's not magical
<2> you're using a stateless protocol. <2> different pages can't just automatically talk to each other <2> they're different scripts <1> why am asking, is becouse im starting a big projetct with php as fundation, and have alot of differente myasql and i didnt want the separate files to be so large. <2> you can make modules and include them in your files <1> so i was hoping to bouild the mysql part in a separate function file and just send and recive variables from that one <2> yeah. <1> modules, with function() <2> use include("functions.php") or whatever you call your functions file <1> havnt heard of that before, kinda new to php <1> ahh, geting interesting :-) <2> and then you can call the functions from the script that includes the file <2> read up on include() <1> thanx alot! <2> np <1> have a nice day! <3> that's better :) <4> anyone having ****y cold weater? <4> Today <4> Clear <4> 90 | 39 <2> yep <4> i'm not <4> ha ha <4> today's high is 90 <2> well, not ****y cold weather <2> nice cold weather <2> comfortable inside without running the ac weather <4> i wish i had cold weather, actually <5> cold weather? <5> http://www.flickr.com/photos/grantharding/98944747/in/set-72057594063475918/ <5> what? <5> hoodie hair. heh. <6> evulish, is that you? <5> yeah <6> well... whadda you know... myspace.com... "Server is too busy" <1> include 'file.php?name=jago'; <1> whats wrong with this pice of code? <5> you can't p*** variables like that locally <1> :-( <5> you can do something like $name = "jago"; include('file.php'); then reference $name inside of file.php <1> ahh, you can p*** variables at both ways <1> i thought it was just the return variables <1> thats good news :-) <6> jago_svensson: if you do it that way, like evulish says, you would access the variable at $name rather than $_REQUEST['name'] or $_GET['name'] <1> perfect.. <1> works fine, thanx again. <6> mod_rewrite... [R=301,L] <6> what does the L do? <5> K|O|G|I: it means Last <6> last what? <5> like if you have any more after that, it won't continue on to them <5> last rule <6> like last rule of a RewriteCondition ?? <6> RewriteCond %{QUERY_STRING} ^cat=clearpak <6> RewriteRule ^clearpaks.php$ http://www.naturespressed.com/products/clearpaks? [R=301,L] <6> there are plenty more lines after that that still get applied <7> I have coasters <7> and I use them <4> fag....
<7> my coasters have firm and supple breasts <8> hey, i keep getting the error that it cant open the file when i use the code: $content = fopen($file, "a+") or die('Error opening comment file.'); <8> it works on my home computer but not when i upload <8> any ideas why? <4> what's the error say? <8> its my error - Error opening comment file. <4> comment that internal error out <4> and see what fopen's error is <8> it doesn't give one <8> file permissions are set to 777 so thats not the problem <4> check the perms <4> hmmm <8> :) <4> are you a girl? <8> no, sorry <4> damn <4> i was gonna blame it on estrogen <4> is $file defined? <8> yup <8> comments/3.jpg.txt <9> as? <9> ^.- <4> jpg.txt <4> ? <8> its information about the file 3.jpg <8> its a txt file dont worry <8> well, actually it isnt, but it should create one <9> is the php with fopen in the same directory as the comments folder? <8> yeah <9> a+ ? <8> yep <4> doesn't fopen have errors? <8> no, page just loads blank <8> as i say, it works fine on my computer <9> ... how about doing an fread() ? <8> just doesnt do anything when i upload <9> or w/e it is <4> what's the a+ do? <7> is there a canadian around? <8> 'a+' Open for reading and writing; place the file pointer at the end of the file. If the file does not exist, attempt to create it. <4> i sure hope not <4> okay, then i'm going to ***ume that it just created it <4> and therefore, it's blank <8> hold on, ill create the text file then upload that and see if it works <9> ^.- <9> you do realize that what it means by creating the file, is not that it will magically load content in it, but that it'll create it to allow you to perform more functions / further manipulation of the file. <8> yeah, ive got the code to add stuff to it <8> but the thing is its not creating it <4> check your error levels <4> if fopen isn't doing something <4> it should be spitting out an error <9> err.. what exactly are you trying to do with the file after you open/create it? <9> and the directory has file permissions 777? <8> error_reporting 2039 <8> what is meant to happen is the file is opened/created and a serialized string added to the bottom of the file <8> which is what happens on my home pc <8> no problems <8> i upload it and it doesnt open/create the file and doesnt give me any errors <4> are we talking 2 different servers? <8> yeah <4> okay, that's something that's important to tell us <8> hmm, a+ come in php5 by any chance? <9> @fwrite! <10> (PHP 3, PHP 4, PHP 5) <10> int fwrite ( resource handle, string string [, int length] ) <10> Binary-safe file write <10> http://www.php.net/fwrite <9> @fopen! <10> (PHP 3, PHP 4, PHP 5) <10> resource fopen ( string filename, string mode [, bool use_include_path [, resource zcontext]] ) <10> Opens file or URL <10> http://www.php.net/fopen <9> $write = fwrite(fopen("$file","a+"), "content to write to end of file"); fclose($write); should do exactly what you need =\ .. but even if it is two different servers, can you be denied the use of fopen/write? <9> guess i gotta test it
Return to
#php or Go to some related
logs:
#allnitecafe #india rascal999 #kl #allnitecafe #php thenostra magalina hagalina cupbot coding #india
|
|