@# 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 28 29 30 31 32 33



Comments:

<0> yes
<0> tried absolute and relative
<0> but nothing
<1> scarfboy, "sounds like" != Its "should be"
<2> baby was a black sheep, baby was a whore, well I know shes gettin big but now she'll bigger, baby baby baby is a rock'n'roll nigger
<3> scarfboy: Not necessarily - for insrtance if the script were waiting on say an endless mysql query, or the result of a system()
<4> how about a url-based open() ?
<3> That too, I think
<4> but those should terminate when the connection dies
<4> right, RIGHT?
<3> um, er, well....
<4> right
<4> php
<5> anyone knows a good site with tells you about sessions and forms
<4> shoulda figured
<3> been there, done that



<1> Petre: http://www.phpro.org/tutorials/Introduction-to-PHP-Sessions.html
<4> if so, do you have a solution?:)
<4> other than restarting apache from a cron script, that is
<4> sure, but that's your own fault:D
<5> thanks ox41... man tought name to write
<4> I just expect not to php to not blow up and look what it gets me:)
<4> 's what username completion is for, Petre.
<4> Ox41464b
<4> yay:)
<3> Exactly - my errors, my f__kup
<4> I did that too yesterday. Explosive join.
<4> sort of stupid, in retrospect.
<1> scarfboy, btw... any source-code of your problem around ?
<6> I remember the thing that used to piss me off most when I tried to figure out what was wrong with my log in scripts etc.. the fact that I had to restart my browser for some god-only-knows reason after trying something that was wrong
<3> scarfboy: I thik there was a discussion on remote connections, with input from Rasmus, on php-general in hte klast 24-36 hours
<4> But this bug may mean I'll have to abandon php
<7> scarfboy: is the php still running, or is the system call you asked it to do still running
<4> Ox41464b, I don't even know for sure what the problem is
<4> 's not a system call
<8> scarfboy: switch to asp.net :P
<4> But I don't know how to narrow it down
<4> .net, maybe. asp, er, well, er, no?:)
<1> scarfboy, 1st test seperate your DB *if any*
<4> This isn't a database query
<1> geez....
<7> scarfboy: can you make it die in certain places? then you can binary search thru the code to find out where the trouble is
<4> An external python script calls a php page, which then fetches data from a server elsewhere
<1> "Doctor... gimme a Shot!"... "Uh... what wrong with you?" "Just gimme Shot!"
<4> all I know is when I do that it leaves processes
<7> scarfboy: how does it call the php page
<4> ...is that really the only way to debug php?
<8> scarfboy: try asp, php not for you
<1> No one can help, if you didnt explain in detail
<4> just by requesting the url
<4> My system's the one that doesn't explain it in much detail:)
<7> scarfboy: it's a tried and true method
<1> scarfboy, requesting URL? explain what you talking about request...
<8> scarfboy: http://www.php.net/manual/en/index.php
<8> read the beloved manual ;)
<4> ...what, all of it?
<7> scarfboy: is the php process the one eating up your CPU time?
<9> hey once again
<4> apache process, but I think it'd be php
<9> is there a function to transform a Datetime var into a date like: Apr-03, 2006
<1> endra, http://php.net/date
<9> thx
<4> and I request things from a python script. Used to be an urllib.open, now it's twill so that it handles cookies for me
<1> scarfboy, Are you the one who create this mysterious.php
<4> the php script that is likely tripping up PHP5? Yes, I wrote it. That's what one does with PHP, right?
<5> gox41464b: to be honest i didnt find it very useful, since the session var was pre ***igned, what i need is to get the sess var from a input text
<3> endra: From mysql? DATE_FORMAT() PHP - date()
<1> scarfboy, what method|function did you use for: "Requesting URL" ?
<10> How to replace space characters with &nbsp; on a string ?
<4> the one from php, not the one from python? open().
<1> scarfboy, okay.. you lie to us... there is no open() at <?php?> contact your Author
<1> Bogus Solved :D
<3> davi: str_replace
<4> oh, sorry..
<4> mixing up my code.
<4> file_get_contents



<11> hello all
<11> anyone help me with modules?
<4> it's fun using three languages at once:)
<12> if i do: $action = $_GET['action'];, but there was no action request in the URL, would isset($action) be true or false?
<11> how do i load one at startup?
<11> false
<11> Storkme: false i'm sure.
<1> Storkme, get used to: error_reporting(E_ALL); in development phase
<3> Storkme: TIAS ?
<4> and I ws thinking of file(), not open(), sorry. (In python they're identical, I think)
<12> okay, thanks
<13> Storkme: try array_key_exists first, and avoid the problem entirely
<0> Anyone got any ideas ? Any php script called by apache inside /var/www/ trying to access a file outside /var/www/ (i.e. /var/cl***es/myobj.php) is getting Permission denied. All dirs are 755 and files are 644. When running the script from the command line as root it works.
<7> scarfboy: if you dont know where it's not working, then maybe it's not PHP's fault - find out where it stops working first
<3> T-Start: Safemode??
<11> T-Start: are you using exec?
<11> check the ini
<0> wobbles, hm.. could point.. how can i check if it's running in safe_mode ?
<4> stops working? It never stops working, that's the whole problem:P
<0> php_info() sais safe_mode is off
<7> scarfboy: you KNOW what i mena
<10> thanks wobbles
<5> guys can thsi work? $name= $_SESSION['sess_name'] = $_POST['name'];
<3> T-Start: phpinfo()
<4> so what do you suggest as a debugging method?
<0> roundyz, what do you mean with using exec ? I'm trying to access using require()
<4> die()?
<6> scarfboy: or echo(), open a file and log to that, whatever
<0> wobbles, checked, and safe mode is off
<11> exec to execute programs outside of php.
<4> it's sort of inconvenient in this case since I'm querying a lot of databases over the 'net
<4> 'kay
<0> roundyz, then no, i'm not
<7> scarfboy: gl
<4> Thanks, I'll need it:)
<11> anyone help me with a kernel module?
<14> lo all. Is there anyway to profile memory usage of variables? I've got a script that is using far more mem thatn I expect. Wanna find out where :)
<11> i know its offtopic but i'd thought id ask
<1> Robbster, opening big File ?
<0> So.. i'm not in safe_mode, not running any exec,.. phpinfo() doesn't mention anything about /var/www specificly,.. it's a clean install from this morning,... tried rechmodding, renaming, etc but nothing. I'm running out of ideas :(
<6> why do you need to keep the dir outside of /var/www anyways?
<3> roundyz: Slack does it via /etc/rc.d/rc.modules - other distros may vary\
<0> It's a large webserver with numerous of domains and the scripts are counting on the objects beiing inside /var/cl***es
<14> Ox41464b: naw. outputting a hierachy to a web page. The result is +- 250K, the mem limit = 12 Mb and the page uses > 12 Mb. I'm using templates, so that will account for some of the overhead, but 12M is a lot of mem 2 b using. need to find out what the variable is that is hogging the mem.
<6> oh
<4> That reminds me... anyone ever complain about mediawiki/php overallocating here? Just wondering, some of my processes die that way.
<1> Robbster, php.net/get_defined_vars
<14> ... and then check the size. Wonder how it will like the objects?
<1> uh... sorry... you talking about the variable hold the BIG one? or the variable who hold the limit ?
<0> And worse of all.. it's a live server and we've been offline for several days now losing thenthousands of visitors each hour. Host has given us a new server coz the previous one got hacked. Now it's running fedora core 4 and i'm having nothing but trouble :-(
<6> hum
<14> well, I want to see what variables are in use and how much mem they hogging.
<1> Robbster, php.net/get_defined_vars + php.net/memory_get_usage
<14> I suspect that one is going to be hugs which will let me know where to start the optimisation.
<3> T-Start: Providing permissions are OK, it shoud Just Work[TM] Something is odd.
<6> T-Start: are you sure you've done chown -R user:grp /var/cl***es ?
<4> hm, is there some way to get a globally unique thing (to log)
<0> I've been working yesterday for over 6 freaking hours to get apache running becouse of permission problems.. only solution i found was to reinstall apache again and then it was fixed.
<4> I mean local to a request
<14> Ox41464b: memory_get_usage is system wide without considering the variables. Useful to check against. Thx
<0> lietu, dozens of times
<3> T-Start: Wait, new server, FC4, what is that rotten security app that comes with some of the newer distros?
<0> no idea.. i was working with gentoo before and i loved it
<3> Anyone??
<6> wobbles: selinux
<6> ?
<3> That's it
<6> wobbles: I just read about it causing pooploads of problems with apache&php&so on under FC4
<3> If that is running, kill it and consign it to the depths of Hades
<3> lietu: Yeah, it gets a mention every so often on #mysql and #apache
<15> hi!
<6> ... I always just think to myself that as long as people use weird & crappy distros like FC, they should be on their own


Name:

Comments:

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






Return to #php
or
Go to some related logs:

ndiswrapper rmp fc5
Cafuego's Dapper Stuff
#perl
#oe
#osdev
#web
#suse
yum install bugzilla
db-4.2 library exists gentoo
translated ATA stat/error



Home  |  disclaimer  |  contact  |  submit quotes