@# 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> I remember there being something like that but I forget what it was called...
<1> hays: highlight_file
<0> TML: I mean something on the server that would let you view any file's code instead of executing it.. am I smoking crack? heh
<1> hays: I don't understand how highlight_file() is not the answer to that question
<0> TML: sorry.. I think I found what I wanted on that page, actually.. What I was remembering was .phps..
<0> There is an extension that lets you view the source of any file with a .phps extension.. so I just made a symlink where appropriate
<0> TML: http://haysweb.home.dyndns.org/~hays/index.phps (if my server is configured, this link should work)
<0> ironically I can't check from here because I think it confuses my router to go out and come back in like that
<1> hays: I don't understand why you're giving me that lin
<1> s/$/k/
<0> no specific reason, just to show you what I was working on if you were curious
<1> Not really, no
<2> hi all, im having an issue formatting a str for mail() purposes... if the str contains line breaks(from a textarea field) then you add that to a text based email mail() function, it doesnt add the line breaks and im not sure how to get them in there...
<2> i know to add \r\n but not how to add it to the str im trying to mail
<2> i guess a more simple question would be how to str_replace the current str formatting with \r\n, im not sure how to tell what the current str is using to create the line breaks
<3> god, do any freenode mirrors work?



<4> how can i cast a char to an int? (int)$string{0}; returns 0 even though the char at that place is an 'a'...
<5> thnee: you want the ascii code for 'a'?
<4> yes
<5> use ord()
<4> er.... ok, thanks
<6> thnee: ww.php.net/ord
<4> OrbX: no ****
<6> thnee: How rude.
<4> OrbX: a little
<6> thnee: You might be new I was only trying to help.
<7> Could someone give me an idea how to debug this? At the site www.equipeevaetkate.com every page starts with a ?> and I can't find the php file that outputs that that shouldn't.. grepping '?>' in my files isn't useful...
<1> Daverag: Your pages are probably trying to use short_open_tag, which is deprecated. Make sure you use "<?php" everywhere
<7> nice thanks
<8> do I need a postgre_mod to run with php?
<1> julianoslack: What?
<1> The question makes no sense
<8> my browser is saying that i need to recompile my php , because my php installation does not support postgreSQL
<7> TML: I don't seem to have that anywhere everything starts with <?php .. and in php.ini short_open_tag is on.
<8> TML
<1> julianoslack
<8> my browser is saying that i need to recompile my php , because my php installation does not support postgreSQL
<1> julianoslack: That's not a PHP error message.
<1> julianoslack: Perhaps it's coming from some tool you're trying to use
<8> yep the phppgadmin
<1> julianoslack: What OS/distro are you on?
<9> TML: I still have problems with php.ini
<1> collinj: I told you the only thing I can think of that might help you
<8> TML: im on windows now, but i cant get it working on linux too
<1> julianoslack: You probably aren't enabling the pgsql module
<1> Daverag: View source on your files and see if there's something before the ?>
<10> julianoslack: Even if you are enabling it, you may not be restarting Apache either.
<11> hi
<7> TML: got it.. one of my language files had 2 ending ?>
<12> hmm
<13> does it seem ok for a function to return -1 on success?
<14> that's dumb...
<15> hehe
<16> dunos :)
<15> I just didnt wanna say it
<13> as if they are a valid user it returns -1, otherwise an error code, which start at 0->4
<13> but it seems odd to me
<14> EvilGuru: Usually the "ok" is either 0 (for error 0) or true.
<17> I'm getting this weird error. My cl*** variables are acting up. I do "$this->$thing = new Thing();" and later on "$this->$otherThing = new OtherThing($this->$thing);" and it gives me "Undefined variable" errors. Doing a "var_dump" on "$this->$thing", however, says it's an object and prints out its variables, though... Any clues?
<13> yes, the (possibly) strange way I have done it is to make an array of error messages with correspond with error codes
<14> DN-Phoenix: What is $thing?
<17> A cl*** variable. Created using "var $thing;" in the cl***.
<14> EvilGuru: For crying outloud... WHY?
<13> as I return error messages to the user but work with codes internally
<14> DN-Phoenix: Then you call the cl*** variable with $this->thing;
<17> Stormchaser: Ah. Wow, I feel stupid now, heh. Thanks a lot. Sorry for wasting your time. :)
<14> EvilGuru: I never, EVER heard of any program, that used 0 as error code.
<18> Is there anyway I can pretty print complex data structures in PHP?
<18> Like Data::Dumper in Perl?
<19> I could use some help with perl-compatible regular expressions, anyone know them real well?
<1> rindolf: var_dump()
<18> TML: thanks.
<20> Hi all
<20> I am new to php
<14> yes, and?
<20> I wanted to know how to make a script that can ssh into another server of mine and run scripts on it. Any documentation on such a thing or where do I look to start ?



<14> use libssh2, Dovid.
<20> Anyone here use asterisk ?
<20> What is that ?
<20> I am tryin to make it that I can call in and reboot diffrent servers, restart services etc.
<14> Dovid: Because only that will enable SSH2 functionality in PHP
<20> So I need to install that on my server and go from there ?
<14> Dovid: pecl.php.net and look for libssh2
<20> thanks
<20> Now once I install that where do I go on how to learn how to program a script to ssh in and run scripts
<14> Dovid: First: php.net/tutorial
<14> Then everything else
<21> Hi, is it possible to use variables that are stored in an include?
<14> Rich97-[HP]: yes
<20> Storm, I did a search for libssh2 and found nothing
<21> thanks stormchaser, do i need to do anything special to extract them, or do i just refer to them straight away
<9> TML: the php.ini problem - after i compiled as root instead of normal user it now works ... *confused*
<14> Rich97-[HP]: What do you mean by "extract"?
<21> ummm, dont worry i'm just being stupid, thanks anyway Stormchaser
<14> Rich97-[HP]: php.net/include has all the answers
<21> ill take note
<21> thanks
<14> no, read manuals
<21> yeh thats what i ment
<14> Dovid: Search for ssh2
<18> Bleh! Why can't PHP have something like Perl's use strict mode? My program was messed up because I wrote $var instead of $this->var...
<22> rindolf: error_reporting(E_ALL | E_STRICT);
<18> jbpros: thanks.
<20> Found it. www.libssh2.org
<14> Dovid: How much PHP do you know?
<23> good evening
<24> evenin'
<19> Does anyone know regex well? I need to somehow get an img tag's src attribute, but I haven't really been able to figure it out...and it's hard to figure out what wrong with the regex since I don't know them enough to know how to debug them
<14> sloloem: use DOM for parsing
<19> How
<23> is it possible to make the content of a variable usable after a post
<23> sry for my bad englisch
<23> english
<14> anthrax[net]: hm?
<23> Stormchaser i want to give a variable from the first site to the second
<14> sloloem: php.net/dom or php.net/simplexml (asuming you're using PHP5). If not, php.net/domxml
<14> anthrax[net]: curl.
<23> like a parameter in c
<19> Well actually the problem with that theory is there are zero to many img tags in a string that has lots of normal text in it. Would trying to use dom/simplexml still work?
<23> Stormchaser right
<23> stormchaser if i use post in a formular i only can transfer textfield curls or?
<14> sloloem: As long as you feed it XHTML code, you'll be fine.
<25> hello
<19> dom?
<23> hi
<23> Stormchaser do you know what i'm talking about?
<14> anthrax[net]: You *cannot* transfer variables from one server to another, but you *can* transfer data. That's curl for.
<14> *that's what curl is for
<23> ah ok
<23> i want to transfer data from one site (named 1.php to 2.php witch is hosted on the same server)
<26> hi all, anyone here help with a modrewrite using .htaccess problem?
<27> mm
<14> anthrax[net]: Then use sessions
<23> yes but i was searching a long time but i can't get it work
<27> say a user enters there username and p***word, im compairing it to a mysql database. bu using SELECT * FROM users WHERE username=$username AND p***word=$p***word
<23> must i set the header within the location
<27> and i dont get any returns
<27> well i do
<27> gibberish
<14> anthrax[net]: What header?
<23> this header ("Location: daten_anzeigen.php");
<14> anthrax[net]: And how "it doesn't work"?
<14> harleyg: define "gibberish"
<23> no it doesn't work because i got a header error
<27> was just gunna
<20> Stormchaser: just installed libssh2. Do you know where I can download a sample of a script that uses it ?
<19> harleyg, mysql stores it's user's p***words as MD5 hashes.
<23> if i leave the line and only use session_start ();
<27> yes i know


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#ubuntu
#lgp
aquapad ubuntu
ubuntu mysqld.sock does not exist
linux hw keeps changing
#fluxbox
how to fix dehydrator if doesnt work
#perl
gentoo /system.map': no such file
#bash



Home  |  disclaimer  |  contact  |  submit quotes