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



Comments:

<0> use open_basedir to limit php scripts from only accessing files in that directory
<0> the current directory
<0> ?
<1> does anyone know why I can't establish a connection to a server using fsockopen? More specifically my connection times out
<2> rodenta, how do the users authenticate? :S
<0> or is it possible to use something like open_basedir = "/docs/*" to limit each user to their directory
<0> what do you mean
<3> is it possable to have PHP controll a parallel port?
<2> how do people prove that they are who they claim to be?
<1> using a p***
<4> Allowed memory size of 16777216 bytes exhausted (tried to allocate 128 bytes)
<0> where would they need to prove anything
<2> djDeathx, are you answering for rodenta? :S
<3> ctooley: you got a variable that is getting to big
<4> Shadow_mil, how do I increas the maximum past 20M?
<3> ctooley: most likly a array



<1> RuchG: well, it's commonly known why we have p***words: to identify users, no matter what the case
<3> ctooley: you could try editing the php.ini file
<4> If I bump the max in php.ini to 30M I don't get this error, I get child segfault
<0> im trying to limit each user on the server from only accessing their directory through php
<3> ctooley: what type of data are you having to handle?
<1> ooh crap... YOU were helping here?
<1> *her?
<1> RichG: i thought u were asking
<1> and didn't know
<4> Shadow_mil, an array of rows from a database
<2> djDeathx, heh, don't worry about it
<4> it's probably 35 or 40 meg
<5> can someone tell me a quick way to replace a string inside a variable?
<4> Teolupus: $variable = "string of text"; works for me.
<3> ctooley: do you need to load all the data into variables, or can you process it alittle at a time?
<3> ctooley: paste bin the script
<2> rodenta, ooo, you want to limit scripts that your users write themselves?
<0> the only p***woyea
<0> yea
<4> Shadow_mil, need to bring it in to match on it. I can't pastebin it, it's about 10 modules.
<0> like so they cant include other peoples files, etc
<5> ctooley: i mean s/find/replace
<4> Shadow_mil, what I really need to do is bump the max past 20M
<3> ctooley: can't you use mysql to do a search
<3> ?
<4> Shadow_mil, if I edit the memory_max variable in php.ini and set it to something over 20M the httpd child processes segfault. If I leave it at 20M I get that error
<5> str_replace is what i need
<5> tks
<3> ctooley: PHP is not really well made for large admounts of data being saved in memory
<3> ctooley: if you can the best method is to have mysql do the matching for PHP
<4> Shadow_mil, so you're saying that I'm not doing something wrong, PHP just can't handle mroe than 20 meg of data?
<3> ctooley: most likly
<3> ctooley: even if it could
<3> ctooley: the time needed to handle that much in PHP would lag a website/script a ton
<2> rodenta, I don't know sorry :o
<0> i think i figured it out, but im sure im going to have to fix something
<4> Shadow_mil, hmm guess I'm going to need to not use PHP then. I'm going to have to merge this data in code, doing it in a Join is going to be difficult or impossible.
<2> a way of making PHP automatically chuid and chgid to the appropriate user's identifiers would be a good start
<3> ctooley: what type of match do you need to do, mySQL can do very advance searchs and matchs
<2> that way, the kernel is protecting unauthorised access
<6> hi
<0> that can only be done through cgi wrapping correct
<0> and that hurts the server
<6> can anyone help me with this regex: http://pastebin.com/586043 ?
<2> (chuid() and chgid() change the owner and group of a process, such as PHP, so the script has the same level of access as the user who owns it
<4> Shadow_mil, The kind where I don't have control over whether it's done in code or in mysql. I need to make PHP do this or provide another solution
<2> oops, didn't see what you said above
<0> yea but then can only be used if php is ran as different users, which can only be done through suexec
<3> ctooley: you could always have PHP save and recall data from a file
<7> hello
<7> if i loaded a png image, then wrote to it, then i destroy it. how can i actually save the new image to a new copy before saying destroy?
<8> I'm not sure of the command but a good start is looking up fwrite() in the PHP manual
<8> I'm not sure if fwrite() works or not
<8> it needs to be a binary-safe file write
<9> I want to parse another web page (not on every http request) so should i just setup a perl script on cron? I'm wondering if theres a PHP way to do this
<8> Well yeah
<8> php (script.php)
<8> that's a command-line parser
<9> oh ok
<9> would you do it that way?



<8> Probably.
<8> Just make sure it doesn't echo anything
<8> rather, make sure it writes it to a file
<9> ok
<8> so if you're catching errors, write them to disk
<10> I have a cl*** that authenticates users against a database. The file is called auth.inc, and I was wondering about general include file placement. Any reason I shouldn't store the file in /usr/local/apache/inc ?
<10> the root doc directory is /usr/local/apache/htdocs - btw..
<11> <i>afternoon</i>
<11> lol
<11> how do I italic words in here?
<8> cyphor; As long as you have a read/(write) access to /usr/local/apache/inc/ and the file
<8> you sohuld be fine
<8> *should
<10> they may not let you, or you have to use a benign tag like may [i]
<8> and there's no italicizing in IRC
<8> protocol doesn't allow for it
<10> ok, thank you Em`Zee =)
<11> lol - well, there you go
<11> can a php form change the displayed content based on the radio button selected?
<10> use javascript, and yes =)
<12> swimrr: No, but Javascript can.
<13> I have a php scrip that logs into an ftp and on one server it allows file editing and on the other it bombs on be (doesnt allow it) i checked permissions ownership etc and I cant seem to find out why its doing it any ideas?(both servers using PHP5)
<10> php is server side language, must use a client side script like javascript.
<11> so what does that mean? I have to use a javascript form?
<12> swimrr: .
<11> cyphor: thanks, that makes sense
<12> swimrr: NO.
<10> np =)
<12> swimrr: You're not even using a PHP form.
<0> just javascript code
<12> swimrr: You're using a HTML form.
<11> freeone3000: yes, I am
<10> it's true, but I understood what he meant =)
<12> swimrr: You're using a html form handeled with PHP.
<11> so I'd have to have a different form setup if I want different options then
<12> swimrr: No.
<10> html displays the form, when _GET or _POSTed php processes it. a language like javascript can cause the form to dynamically change on the client side..
<11> if I stick with php that is
<12> swimrr: ASP, Perl, JSP, tis all the same, tis all serverside, has the same restriction.
<11> good, I won't waste my time searching how I make an html form change based on user input!!! :-)
<11> 'cause it cant!
<12> ...
<12> Yes it can.
<10> yes, it can
<11> oh, sorry, my bad
<10> but you must use something like javascript..
<14> swimrr js, try #web
<11> ok, so I need javascript embedded in the form?
<10> yes
<14> swimrr js, try #web
<11> ah........
<11> a ha!
<11> no, here's a philosophical question
<11> should I try to stay away from Javascript?? don't some have it turned off on their browsers?
<14> swimrr : Dont REQUIRE JS to use your website
<10> like say this.onclick = location.href = ('/path/to/file.php?form=forma'); then when your php reads it it can dynamically display the form. I would never do it like this but it gives you an example. better to do all of this with javascript, not p***ing _GET params to the page.
<12> Javascript can do client-side stuff.
<12> Very little else can.
<12> And nothing else that I know of can without large applets/plugins.
<11> sorry, I know nothing about javascript, so i'm a bit lost here, other than its client site
<11> hmmmmmmmmmm
<10> search google for javascript tutorials
<11> can I have an html form with javascript embedded and then p*** it to a php script?
<10> yes
<14> swimrr: You can use Js on yourwebsite to make thing seasier for your visitors, but dont design it in such a way that REQUIRES them to have JS enabled. Give them an alternative method.
<10> depends on your users and the requirements, but what Jymmm is saying is a good practice...
<11> i want the form options to change based on previous answers, so it seems javascript is the way to go
<11> I understand what Jymm is saying
<14> swimrr I understood before you even asked the question.
<12> Or multiple pages built off the same script communicating though $_POST
<11> freeone3000: yes
<11> is php or javascript more powerful? or are they different?
<10> php
<10> they are different


Name:

Comments:

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






Return to #php
or
Go to some related logs:

debian apt-get public key stanchina.net
#centos
ubuntu annoying gnome-screenshot
SUSE 10.1 Yast user.sel
#perl
#fedora
#python
where is _elf_lib
#math
latex-scim



Home  |  disclaimer  |  contact  |  submit quotes