| |
| |
| |
|
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> bye <1> dzekas: it's 777, the directory was created by me but i don't know who is the group <2> mrstocks: And you know the output of the array in question? Do a print_r() on it if not. (Btw: SQL keywords in CAPS, the rest in lowercase, that is the standard way of writing SQL. More readable. But you knew that,) <3> deadroot: have you used ftp to create that directory? <1> dzekas: yes <4> hellooooo <4> I have a small problem with variable scope I want to try and solve <4> basically I wrote a little thing that checks for files and includes them to get around errors, change language and so on, in a function called _content() <4> but of course any global variables I have defined don't exist inside the included files inside that funciton <3> deadroot: i suspect selinux restrictions <1> dzekas: so i have to use shell to create that directory? <2> NekoXP: Getting a global variable can be done with the statement global $variablename http://dk.php.net/global <4> right but I would need to do that "on demand" and it doesn't seem to work if I say global $varname in the middle of a function? <4> hmm wait <4> would $globalvar = $GLOBALS["globalvar"] work just the same or? <2> NekoXP: "Notice how $GLOBALS exists in any scope, this is because $GLOBALS is a superglobal"
<4> I never thought of that :3 <4> okay I am just not thinking straight today <4> thanks <3> deadroot: I think selinux restricts httpd processes on fedora. But it should be enabled only in fedora core 3 or later <2> deadroot: If PHP creates the directory, it's created by a user that owns it. The next problem: can you write to it. If you can chmod() the newly created directory, then that'll work too. <1> olleolleolle: i could test that <1> dzekas: noted <2> deadroot: What I meant to say: creating some dirs via PHP can be a way of making sure that PHP can write to them. <3> if you can create directory and put files in it with ftp and can't access files with php, it is selinux, open_basedir or safe_mode <2> deadroot: And here is the chmod function, when you need that http://php.net/manual/en/function.chmod.php <1> olleolleolle: thanks <5> Anyone around? I'm having a problem with a form (HTML+PHP) <6> How do i check if a input field has been writen in? <1> NiGHTFiRE^: see if it's empty or not? <2> NiGHTFiRE^: How about if (! empty($_POST["thefieldwetalkabout"] ) ) <7> trim($_POST['field) != '' <6> Well if it's in 2 diffrent scripts? <8> Hello <7> !tell Trixsey about 1 <6> I got one register script where they add all information and then one that adds the user <7> !tell Trixsey about g1 <8> how do I connect 2 form result in one string? <5> echo "<form method=\"post\" target=\"_BLANK\"> <5> <input type=\"text\" name=\"torrentkeyword\" style=\"border: 1px #003366 font-family: tahoma; font-size: 10px; color: #000000;\"> <5> <input type=\"image\" name=\"torrentsearch\" src=\"images/layout/goknapp.gif\" width=\"37\" height=\"20\" border=\"0\">"; <5> if(isset($_POST['torrentsearch'])) { <5> echo "hej"; <5> } <5> why aint this working? <1> Trixsey: don't paste code here <1> Trixsey: use pastebin.com <7> !tell Trixsey about pastebin <5> well I already posted it here <5> not much I can do about it <7> pastebin it <8> !tell _KZ about forms <8> !tell _KZ about form <5> I got kicked because I said "Not much I can do about it"? If you can change the past be my guest, I got a few things I regret, perhaps you can erase em for me? <1> Trixsey: it'd be a nice gesture if you did pastebin it, instead of arguing over it <8> hi rofo <8> hi stormx2 <9> Hello! <9> "RTFM is Interwebs-speak for "Repeat the first message". It is used when the message did not transfer over the Interwebs properly. If someone tells you to RTFM, be patient with them, and copy-and-paste your original message several times. Also, typing the message with capslock on will improve the chances that it will get through (similar to yelling at a brick wall, telephone, or foreigner). " <10> Hm.. If I call a function (located in common.php, included) from a script, will that function remember any variables defined in the calling script? <6> " " stands for nothing right? <6> so if i do if ($var == " ") { <7> !tell _KZ about msg the bot <8> K, HOW ARE YOU GUYS TODAY???? <7> _KZ: Loose the caps <8> Kidding <8> see ya, thx for help <11> Anyone know how to delete a folder with PHP? <11> (more accurately the cgi-bin folder if that matters) <6> " " stands for nothing right? <7> NiGHTFiRE^: No. <11> unlink('foldername'); <- didnt work <5> deadroot: My point was, whats the point in arguing / kicking people about things that already happened? <1> NiGHTFiRE^: that has a 'space' <7> easypwn: Because it's not empty <6> "" stands for nothing? <11> oh
<1> NiGHTFiRE^: yeah <11> well I tried an empty folder too, though it was still not working :\ <6> Okey, thanks <12> hello <7> NiGHTFiRE^: '' stands for an empty string. <7> !tell MagmaRules about g1 <6> So it's like this; if ((!_POST['number']) && (!_POST['key1']) == "") { <1> okay Trixsey, just don't do that again. so where's the code? i don't log stuff <12> if lol <5> http://www.wilcob.com/Wilco/Pastecode/2477/showpaste.aspx <7> What's a !_POST? <6> oh <6> lol forgot the $ <6> and took the ! lol sry <5> I also have a </form> <6> if (($_POST['number']) && ($_POST['key1']) == "") { <13> $ > ! <6> that's right right? <5> NiGHTFiRE^ doesnt use pastebin, lets kick him..! <12> if i want to reuse a php connection to mysql but i dont have persistent connections how can i do it ?? or i need to close it and re-open it in the next page ? <6> lol, not even 1 line.. unesscary to use pastebin there, so **** off geek <7> Trixsey: ... <5> NiGHTFiRE^: mine was only a few lines too :p <6> Well mine wasn't even 1 line <5> I feel a witchhunt is nessecary! <1> Trixsey: yours is effectively flooding the channel <7> NiGHTFiRE^: You might want to use isset() with that... <12> if i have 3 queries to a mysql database is it faster do do it with 3 httpxmlrequests or the traditional way ? <1> Trixsey: what if several people did it the same time? <5> it'd get messy.. like if 10 people pasted their 1 line codes at the same time it'd get messy too <7> Trixsey: please stop. Nobody asked you to paste the code into the channel, and you have shown that you haven't read the guidelines. So stop bitching. <2> MagmaRules: Depends on the time these queries took. If trivial, I'd go with the non-traditional style. <5> That kick was totally unnessecary, a way to demonstrate your power or something... But w/e :p <7> Trixsey: I won't repeat again: Stop bitching. <12> olleolleolle, is the httpxmlrequest more inificient than the traditional way ?? i mean httpxml has to open 3 TCP connections ... <2> MagmaRules: Time the queries. <5> Since when is standing up for yourself bitching? How would a society function if no one was able to question authorities? <12> ok <12> my point on this questions is: if i can make the queries the traditional way should i do it ? <2> MagmaRules: We are speculating, still. What kind of queries is it about? Is the database access slow? <7> NiGHTFiRE^: What are you trying to do? <12> olleolleolle, lets see we have simple queries like a list of news and complicated ones like comparing 3 tables . <14> ^^ <2> MagmaRules: Are these used "all the time" by all users? <12> the news are used each time anyone enters the site <12> the 3 table ones are more restricted to admins <2> MagmaRules: Do these news queries require the XmlHttpRequest? <12> olleolleolle, not at the beguinning , but if i want to make a user specific "news since last time you logged in" i guess i will need xmlhttp <2> MagmaRules: Is there a reason for AJAX with them; what's the functionality= <15> Stormchaser: Know of any Qt window managers? <7> kuja: KDE :) <15> lol <15> Something smaller? :) <7> kuja: I don't know... <15> I'm going to try KDE again and see if my Korean input works <15> Works flawlessly on GNOME <2> MagmaRules: But News Since Your Last login needs only some kind of Session stuff, not any background-sent data. Or am I missing something here? <12> olleolleolle, im trying to make a site that shows advantages, by using new ajax systems . <7> kuja: Hm... It should work on KDE as well, as it's built on UTF-8 <12> so when a user logs in there will be no page reloading the login box will retrieve user data and change the contents of the box <16> anyone know why I am getting a "Fatal error: Cl*** 'Template' not found" error <7> olleolleolle: You're missing something... Just compare the date of your last login and the news from the time... <15> Stormchaser: Hopefully with the new resources I've been writing, I did it right this time <12> the news list will be changed with user specific last logged in <7> kuja: lol <15> s/writing/reading/ <2> MagmaRules: Makes more sense now. So what you need is a function that returns an HTML chunk to replace the content of the news DIV in your layout. <12> olleolleolle, after the login yes <12> bu i guess that for the normal page openning the traditional way will work better <2> Stormchaser: You're right. That is simplest. <6> How do you stop the mysql connection (sry for the question it's easy i know) <7> NiGHTFiRE^: mysql_close() <2> NiGHTFiRE^: http://dk2.php.net/mysql has a long list of functions. and there I found mysql_close -- Close MySQL connection <2> MagmaRules: This remote scripting stuff, it's really easy to overdo it. But go with your intuition. See what stuff other websites use, what stuff you like. I'm a fan of autocompleting input fields.
Return to
#php or Go to some related
logs:
Starting ESP Ghostscript Error: couldn't find RGB GLX visual ubuntu ati how start x ubuntu server ubuntu gpm apt-get #mysql giftoppm ubuntu sed replace new line
mdadm no devices found for /dev/md0
#fedora rar archieves ubuntu
|
|