@# 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> I use eaccelerator beause it didn't complain about the mpm I was using
<1> JakeConnor: rockets?
<0> PHP docs are hopeless anyway. I'm not gonna fix everyone's problems by myself.
<2> |Clare|, i don't think it would be efficient enough.
<3> NoBeard: can you link me to that one?
<0> I'll just keep bugging you people, I suppose:P
<1> JakeConnor: errr, was an attempt at humour
<1> nm
<4> uh..? what manual didnt clear ?
<5> What's an alternative to using header('location: index.php');, not including <script>window.location='index.php';</script>?
<0> I regularly want to do something that the docs either don't cover, is unusual enough to not quite be covered, etc. Of coure, asking here results in being ignored as a newbie.
<4> reZo: try error_reporting(E_ALL); *and fix any error occured*
<6> reZo: <meta.. location index.php
<5> Ox41464b, I don't need to do that.
<5> FauxFaux, heh, yeah, duh :)
<5> I'll redesign the archatechure of this script >.<



<5> Damn server splits.
<7> How do i read the HTTP request body sent by the browser to the server?
<6> You can also serve a .. 30.. something moved permanantly page?
<4> and freenode redesign network ?
<4> ~_~
<8> reminded me of lemmings.
<6> niraj|work: Get it to post to a fake server, like.. say.. netcat -l.
<7> i want to read it in php...
<9> Should I use ADOdb with PHP 5.1 or there is a better option ?
<7> i'm learning ajax... right now i'm trying to get the browser to send the server an XML document in the request body
<5> Night folks.
<7> anyone?.. something like getheaders(), except i dont want the headers, i want the body..
<7> *get_headers
<10> Hi, if I have a html form with multiple checkboxes that all have the name "abc[]" I get all values returned in $_POST as 'abc'-array - is this intended behavior of php or is this something that just works but isn't recommended?
<4> niraj|work: how did you capture <form action="file.php" method="POST"><textarea name="captureme"></textarea></form> at
<4> *at php
<4> the value inside it ?
<11> Is there any function to return the number of times a certain char appears in a string? like: $string = 'Hello - Bye - Hoho'; echo count_chars('-', $string); // should return 2
<12> mkl1525: that's the behavious of the php, yes
<1> CopyNinja: substr_count()
<13> hey guys.. i have a php code, that generates an html form.. with a text input type and form action of method=post..(the name of the text input field is "job").. however, in the script that the form calls on submit, the variable job is empty... any ideas ?
<14> heimlich: try print_r($_POST) on the action page to see what you have in your POST variables
<13> sec
<15> !tell heimlich about vars
<13> i get an Array()
<13> if i try the print_r($_POST)
<10> Dragnslcr, thanks
<15> heimlich: Pastebin your HTML
<8> I love getting #1's on google.
<8> tis fun
<13> http://pastebin.com/655414
<14> `Rewt: what's yours?
<16> can you use explode mixed with a regex ?
<15> heimlich: That's horrific. :)
<15> Xspl0it: php.net/preg-split
<13> why ? :)
<14> heimlich: omg
<13> i am always open to suggestions.. i wrote this to be very simple.. and.. i am definitley NOT a programmer.. just doing this out of need
<15> heimlich: The HTML is invalid, you used printf() everywhere when you don't have any formatting characters...
<16> ty
<17> hi guys
<15> heimlich: Which version of PHP is in use?
<7> Ox41464b: sorry got kind of carried away.. i found what i was looking for.. php://input :)
<13> 5.something
<13> lemme check
<14> heimlich: instead of doing printf, just have HTML then put <?phpecho($variable);?> where you want your variable
<17> i have a question, how do i can see a object from another php file cl***?
<17> i mean, global objects
<15> Pretto: What do you mean?
<17> lemme explain
<13> Apache/2.0.54 (Win32) PHP/5.0.5
<17> i will create an object [functions cl*** = $util] in first.php, first php includes second.php, i want to call some calls in seconde.php file using $util->methodname
<15> heimlich: Make createjob.php contain only "<?php phpinfo(); ?>", sans quotes
<13> sec
<17> TML, do you get it?
<15> heimlich: Then open the HTML page in your browser, enter something in the input, and hit the button, see what the line "HTTP Request" says
<15> Pretto: No, you're not making any sense.
<17> how can i create global objects?
<15> Pretto: Every variable is in the global scope by default
<13> hmm.. its empty
<17> TML, but here i am getting Fatal error: Call to a member function write() on a non-object in /media/hda5/jcweb/library/database.php on line 40



<15> heimlich: "HTTP Request" is empty?
<16> erm... im trying to split "abc1" into $title[0] == "abc" and $title[1] == 1 using $title = preg_split("/[0-9]/", $_GET['channelselect']); ... however im only getting abc, what should i be doing ?
<15> Pretto: Then it's not an object.
<17> TMLm, i have created that object in session.php
<17> TML, i use it there
<16> i want to split it at the start of an integer but still keep the integer in the array
<15> Pretto: And is session.php available to database.php?
<13> TML: http://pastebin.com/655427
<18> Warning: scandir() [function.scandir]: (errno 0): No error in /test.php on line 49
<19> What's the largest filesize that php can efficiently handle? I've got a site here which uses a text file as database for it's guestbook (I know, yuk!) and I'd like to calculate when the script would turn from fine and dandy to slow as hell
<18> O_o
<17> TML session.php call an include to database.php
<15> Pretto: pastebin session.php
<6> Macke: Um.. zero? Files aren't efficient ;)
<17> ok
<15> heimlich: Look for the section "HTTP Headers Information
<15> s/$/"/
<1> Macke: why use a text file?
<15> heimlich: It will have a key "HTTP Request"
<19> NoBeard: Probably because the idiot who wrote this doesn't know how to use a database
<19> this is not my code
<6> Port it?
<13> this must be some sorta weird compile of php/apache..
<19> again, not my code, I don't really want to do anything about it
<13> this is all the info i got
<1> Macke: err, why not ask whoever wrote it, or, write a new one, guestbooks are simple
<15> heimlich: That's *ALL*? phpinfo() doesn't show anything else?
<19> I just want to give the guy who sent it to me a little heads up on how many entries his guestbook will be able to handle before giving up the ghost
<13> TML: yup
<15> Macke: 5
<15> heimlich: Where did you get your PHP from?
<17> TML, http://pastebin.com/655436
<13> TML: this one is some sorta special thing.. http://www.roadsend.com
<13> i am going to look in their support area
<15> Pretto: And what's the object you're calling write() on in database.php
<20> http://pastebin.com/655431 any reason why that wouldnt work? it just constantly displays zero no matter what url. it only stopped working when i started to use '!'
<13> gotta be something with their thing.. cause if i try locallly with php/apache, everything works
<15> heimlich: We can't support that. If you want help from ##PHP, use php.net's distribution.
<14> lilkid: you need if($url != ...
<13> yeah.. sorry.. i should have looked first what version they are using
<17> TML, i think that i got..... i must use "global varname" for each procedure i will use it?
<15> Pretto: You only need to use "global" if you defined something in a local scope and want that propagated to the global scope.
<20> dools: ahh i knew it, thanks :)
<17> ok... so take a look at my pastebin
<19> TML: Any math behind that figure or just something you made up? I wouldn't be surprised if that's about as many as his guestbook could handle ;o)
<15> Pretto: I did, and I asked a question that you haven't yet answered.
<17> TML, ask again please
<15> Macke: That's a number I pulled right out of thin air.
<15> 04:59 < TML> Pretto: And what's the object you're calling write() on in database.php
<17> TML, $dbug
<6> The slight differences between PDO and pear's "DB" are going to irritate the hell out of whoever has to maintain this code when debian becomes less lame. Which'll probably be me.
<6> :(
<16> im trying to split "abc1" into $title[0] == "abc" and $title[1] == 1 using $title = preg_split("/[0-9]/", $_GET['channelselect']); ... however im only getting abc, i want to split it at the start of an integer but still keep the integer in the array
<15> Pretto: Well, if I understand what's going on correctly, you're calling include on ../library/database.php before you ever define $dbug
<17> TML, i will try to change this order
<15> Xspl0it: Try looking at php.net/preg_split
<19> TML: Well, thanks anyway. I'll just make something up, he probably won't know the difference anyhow
<16> i have *re reads*
<17> TML, same error
<15> Macke: Instead of telling him when it will break, try suggesting alternatives, such as approved pre-built "guestbook" packages, or solutions to apply to his existing code, such as sqlite or mysql.
<15> Pretto: var_dump($dbug);
<17> TML, workd now... i put "global $dbug" in first line of a procedure i am using it in database.php
<19> TML: I did. I pretty much said: "Hey, this code will break very soon. What you need is a real database"
<12> Warning: preg_replace() [function.preg-replace]: Unknown modifier 'b' i
<15> Pretto: So you're trying to use $dbug inside a *function* in database.php?
<19> but a tad more elaborately, so he'd understand
<12> /(\<b([^>]*)\>)(.*)(\</b\>)/i
<21> i have run a load test on apache2 (on FreeBSD 6.0) and after a heavy load php seemed to stop working. Where should i start from???
<12> w=[
<17> yes TML
<15> Drakas: Use something other than / as your delimiter


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#linux
#css
gentoo resume list
gentoo HOWTO_Update_Full_System
#awk
unmerge orphans
#nvidia
flashlinux gcc
#python
Could not load neither mysql nor mysqli extension, you might not be able to use



Home  |  disclaimer  |  contact  |  submit quotes