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



Comments:

<0> the same as => valide_quote($_POST['case_delete'][$i]);
<1> hi guys, running slackware 10.2 with apache2.0.55 and php 5.1.2 and i'm getting a lot of
<1> Warning: preg_match: internal pcre_fullinfo() error -3
<1> i have pcre installed
<0> _StarScream pcre is install ?
<0> excuse me :) you have send the response
<1> np :)
<1> yeh phpinfo shows up with pcre enabled
<1> i can't for the life of me work out where its dying
<0> pcre do not need perl ?
<0> do you have perl install on ur slack ?
<2> can someone help me out wiht a mail() script?
<1> GaMeZ|CodinG: yep
<1> perl-5.8.8-i486-1
<2> http://pastebin.com/561572
<2> can someone tell me why that isn't sending to my mail?



<2> http://pastebin.com/561579
<2> that is the one I wanted to send.
<1> tuxtheslacker: do you have an smtp server on your machine, i.e sendmail or postfix or something installed ?
<0> what's wrong tuxtheslacker ?
<3> hi all
<2> _StarScream, sendmail
<0> hi thisisgood
<3> hi coding
<3> what's rocking here
<1> tuxtheslacker: does php.ini have the correct location of the binary
<2> mmhmm, the script worked before, then I bungled it somehow, and I don't see where.
<1> and have you told it to use the binary instead of local smtp server..(unless you are running that of course)
<1> next thing would be to look for errors in /var/log/maillog
<3> i got a web application written in perl/cgi, it's so slow; we are thinking of converting it over to php, anyone has any thoughts ?
<2> _StarScream, can you go to #flood to look at the error there real quick?
<4> thisisgood, convert it to use mod_perl and see if that helps performance. rewrting in another interpreted language will not necessarily resolve performance problems.
<5> thisisgood, switch to mod_perl, and benchmark for where the bottlenecks are. See if they're actually faster in php.
<3> thanks jonez and dysk
<0> anyone for a few problem ?
<3> is switching from cgi/perl to mod_perl an easy project?
<0> i want to send $_POST in function
<0> the same as => valide_quote($_POST['case_delete'][$i]);
<3> is that pretty much a re-write ?
<5> thisisgood, Easier than perl to php.
<0> how enabled it to me ?
<5> thisisgood, No, it's not anywhere near a rewrite.
<0> but if i $num = $_POST['case_delete'][$i];
<3> dysk: i've been reading a lot about php vs perl for webapplications; lots of people say php for web is the way to go
<0> will return false :'-(
<1> tuxtheslacker: ok in #flood
<2> _StarScream, nvm... it sends, but it times out.
<1> tuxtheslacker: wanna paste the timeout message
<6> when i use mysql_fetch_array and i want print a message if there aren't any rows from the result set
<6> i need to execute two query, the first with mysql_num_rows to check if there are any rows to get
<2> stat=Data format error
<2> _StarScream, that's the problem me thinks.
<6> and later mysql_fetch_array to get the result set
<4> kioto, I don't think you will have to run the query twice.
<6> jonez what is the alternative method
<4> kioto, execute the select query, call mysql_num_rows, if result is greater than zero, then do your loop with fetch_array
<0> the solve is => $num_quote = (integer)$_POST['case_valide'][$i];
<6> yes jonez i want use that way
<1> tuxtheslacker: have a look at the toname
<1> you may need a "To:
<1> address
<1> as well as a from
<1> in the headers
<7> Hey guys, was wondering if you knew of a site that had lots of little phpscripts the kinda ones you use in your website to show your ip and show your browser etc?
<7> So like when you connect to the page, it shows you are using ip.. and browser..
<1> jack32: php.net :)
<1> those are really simple to write
<8> <?=$_SERVER['REMOTE_IP']?>
<8> what a script!
<7> _StarScream, I don't wanna sound cheeky but i dont wanna learn php i just wondered it there was a script site out there somewhere
<1> see domas :)
<7> that doesnt work
<7> i you just place that in your .html
<7> do you know of any sites or not?
<7> i dont want smart arse comments
<9> http://google.com/



<9> Sorry for the smart arsiness.
<7> lol
<8> php.net is somewhat better
<10> whats the easiest way to check a string has valid input before you use it in a mysql query?
<11> In two different scripts on the same server date() returns different times. What setting affect it?
<9> zimnyx: Date returns diffrent times, as in completly diffrent, or just +/- a bit?
<12> Hey all. I'm downloading an HTML page using cURL that contains a form layed out in a table. I need to pull out one value based on information in that same table row that may or may not be on the same physical line of text and will always appear after the information I actually want. Any suggestions on which path to go down?
<11> freeone3000: 1hr difference
<12> I could loop the lines of the page doing string searches, I could try to use regex, but I'm wondering if parsing the file using an XML parser might not be easier and more reliable.
<11> Simplex3: use regexp.
<11> this external page is not your, correct?
<12> Yes
<12> I'm basically automating a registration process.
<12> zimnyx: I'll need to use look-behinds to get a piece of info that comes before the string(s) I'm looking for, right?
<13> what gtk2 should i install to be able to start pear with gtk?
<13> i'm using a debian
<13> and when i apt-..search gtk2....i've got lots of things, please help
<11> toshiro: ask on debian or google it.
<14> hey guys, im learning oop and having some trouble with http://pastebin.com/561658
<14> its at the bind_result query
<11> _Dom_: what is the problem?
<15> hello. can somebody help me with this: Warning: mysql_result(): Unable to jump to row 0 on MySQL result index 3 in /var/www/userese/main.php on line 70
<16> Why would mkdir() return false? ... the dir I'm creating inside of is 777
<16> this is not on a machine I control, so I'm not sure if it's running in "safe" mode or what....
<11> tziku: did you check if query was successfullm and if result is not empty?
<16> phpinfo tells me safe_mode is Off .... so that's not an issue. Why is my mkdir() call returning false?
<11> thread: maybe you got no rights to create it, or it;s beyound safe dir?
<16> zimnyx: the dir I'm creating the dir inside of is 777
<11> thread: maybe webserver doesn;t have rights to create it.
<16> everybody should have access
<11> thread: is dir name valid?
<11> thread: set error reporting to E_ALL
<11> and you will know
<16> I can't even tell what the webserver user is cuz ps isn't available let alone actually change group/user ownership of the dir
<16> how do you do that?
<16> yea I echoed the first argument and pasted it in myself... the dir gets created
<15> zimnyx is not empty.
<5> thread, Isn't the web server's user part of phpinfo?
<14> sorry
<16> Dysk: oh.. maybe... but I still can't change ownership of the dir without root
<14> zimnyx its giving Error: Using unsupported buffer type: 252 (parameter: 1).
<11> thread: http://pl2.php.net/manual/en/function.error-reporting.php
<11> thread: set it to E_ALL
<16> error_reporting(E_ALL);
<11> _Dom_: i dunno mysqli. try google or mysqli doc
<16> Warning: mkdir(/home/laura/mainwebsite_html/content_files/4): No such file or directory...
<11> _Dom_: and try PEAR MDB2 instead of that
<16> wtf? /home/laura/mainwebsite_html/content_files absolutely exists
<11> thread: path is wrong
<16> and content_files is 777
<11> thread: what is actuall call with arguments?
<16> mkdir($config['CONTENT_FILES_PATH'].$id, 0755)
<16> $config['CONTENT_FILES_PATH'].$id == /home/laura/mainwebsite_html/content_files/4
<17> thread: http://us2.php.net/manual/en/features.safe-mode.php#ini.open-basedir
<11> Jymmm: date() in different scripts returns differrent time on the same server. What can affect it?
<17> zimnyx: The cost of condoms in china
<14> is there an introduction to PEAR somewhere, i have just started oop today and carnt find any real decent world examples of a tutorial, theres one about a bear, one about a cow and one about a car, what about a simple blog script in php5 oop? is that too much to ask?
<16> Jymmm: open_basedir has no value
<11> _Dom_: first read whole OO doc on php.net
<11> _Dom_: than read PEAR Manual, if you got problem with understanding it, google PEAR
<14> ok :)
<11> Jymmm: lets focus on php settings, china condoms are fuzzy subject.
<17> zimnyx I was.
<17> !+##php
<18> ##php is really 'Pretty Horny People'. The computer language is just a cover.
<19> true very true
<11> i've checked date.* settings, and they seem to be the same for both scripts, but they return different time in date() output. I stucked.
<17> !cli
<18> [CLI] Command Line Interface
<16> anybody have anymore ideas why mkdir() might fail? target (parent) dir is 777, and open_basedir is empty.
<20> $str_len = strlen("test"); ereg("[[:alpha:]]\{$strlen)", "test"); Isn't returning what i'd expect? is there a syntax error here? it seems right to me
<20> s/$strlen/$str_len
<11> thread: echo the dir name. warning said it's wrong.
<16> yeah... it appears totally right to me


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#linux
Failed to execute child process cdrecord
AUTOMATIX DRAPER
#linux
#perl
Oracle select count(*) from 2 tables
#gentoo
#suse
innodb hotcopy
#ai



Home  |  disclaimer  |  contact  |  submit quotes