@# 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> but i get redirected to a site where i have to click FG-Chat to enter the chatroom
<1> ...
<2> SirFragger: We've practically coded the whole site for you and we can't see it !?!
<1> if i ask this, i have read it
<3> SirFragger: thats probably a login-issue
<4> CLOUD: you damn well have not
<0> ya i will enable it later
<0> ok i enable it, so you can see my problem
<5> htmlentities() does not appear to escape ' is there a function that does?
<4> CLOUD: this is probably the most common configuration option in suphp.
<4> CLOUD: Infact, there's little else to set up, except this ONE configuration option.
<3> flaccid: addslashes ( i think)
<1> for the uid ?
<0> http://www.flame-guards.com/index.php
<0> pleaes click FG-Chat here
<4> CLOUD: We don't support suPHP in here anyway, post on their mailing lists



<0> mm2000, markl, do you know what i mean?
<6> flaccid: It does convert ', if you tell it to.
<3> SirFragger: change href to http://www.flame-guards.com/x7chat2_0_0/x7chat2_0_0/index.php/
<2> SirFragger: So use http://www.flame-guards.com/x7chat2_0_0/x7chat2_0_0/index.php/ as the link
<2> doh
<0> hehe..
<0> <html>
<0> <body>
<0> <a href=" http://www.flame-guards.com/x7chat2_0_0/x7chat2_0_0/index.php/</a>;
<0> </body>
<6> flaccid: php.net/htmlentities -- See ENT_QUOTE
<5> thanks
<4> It bothers me someone can make a site without knowing what a link is...
<0> thats the text in my index.php in the FG-Chat folder
<4> SirFragger: htmlhelp.com and don't paste in the channel again
<0> hey dude. everything is possible
<4> SirFragger: It shouldn't be possible.
<2> SirFragger: <a href=" http://www.flame-guards.com/x7chat2_0_0/x7chat2_0_0/index.php/">CHAT</a>;
<0> dudes you must be kidding
<0> did you view the link on my site?
<0> i dont want to click Chat to enter the chat room
<4> good call
<4> Although that's seriously killed the conversation :(
<4> Hey kuja, how was your day?
<5> i'm a bit confused on which functions to use for storing and retrieving a field in database that stores html code
<7> flaccid, the query() command
<2> mysql_escape_string() or mysql_real_escape_string()
<6> aidan: Horrible :P
<6> G'night aidan
<5> i'm cool with doing the query, just the function on the html field
<2> flaccid: Either of the mysql_escape_* ones will do as it doesn't matter that it's html, just that there's no chars in there to bork the query
<8> How do you add a rule that picks up another .php file to incorporate it into the current script? Say i have recent.php and I want it to appear in index.php
<2> require_once 'recent.php';
<8> that is the whole arguement?
<2> Yep
<8> o.O
<8> and lsip it under any lines i want it to be?
<2> Come again?
<5> which function do i use when i pull the field to display the html tags as html?
<2> flaccid: You probably won't need one
<8> do I have to <?php require_once 'recent.php'; ?>
<2> flaccid: If you do it will probably be stripslashes()
<2> j45on: Yep
<2> j45on: If you're putting it in the middle of some HTML code you do
<2> j45on: You might need to add a path if recent.php isn;t in the same dir as index.php and your include_path isn't set up correctly
<2> But the principles the same ;)
<8> ok I have an error, www.notd-aftermath.com/veritas
<9> its require_once();
<9> find all you need @ www.php.net/require_once
<8> tq
<2> j45on: Yeah, require_once, sorry, i didn't see you left the _once off ;)
<5> when i pull them, the tags display escaped like &lt;/p&gt;
<2> flaccid: What are you running on them before you insert into the db?
<9> flaccid perhaps htmlspecialchars
<9> www.php.net/htmlspecialchars
<5> $prop_desc = mysql_real_escape_string($_POST['prop_desc']);
<5> thats it
<5> i check in phpmyadmin they are stored unescaped like <p>fdsf</p>
<8> to no avail, I don't know what I am doing =D
<8> here is what I'm trying to put into my side bar http://notd-aftermath.com/veritas/recent.php.



<8> and this is my 'before' sidebar.
<8> http://notd-aftermath.com/veritas
<10> flaccid, htmlentieies
<9> j45on it says it can't open recentphp are you sure your not mistyping the include?
<9> shouldn't it say recent.php
<2> j45on: What you just had before was correct, the error related to the path/include_path i mentioned
<5> for some reason i have to use html_entity_decode
<2> j45on: recent.php not recentphp ;)
<8> yea..
<8> <?php require_once(recent.php); ?>
<2> no
<10> require_once('recent.php');
<2> <?php require_once 'recent.php'; ?>
<2> brackets or not .. the quotes are what matter ;)
<8> ok new error =P
<2> j45on: You have defined get_userdata() in two different files
<8> how come you guys get to understand what it's saying?
<2> "Cannot redeclare get_userdata() (previously declared in" gives it away ;)
<8> i wonder where could that be =(
<8> i think it's better you guys have the big picture.
<8> I have a forum, phpbb, and i installed a mod to get a snippet of the most recent forum, that snippet will be placed in my blog.
<8> so far so good?
<2> yup
<8> the snippet is working fine and I've edited it to suit what I want: www.notd-aftermath.com/veritas/recent.php
<8> and I'm going to put it in the blog: veritas's sidebar.
<2> If pluggable-functions.php is used on every page, and get_userdata() is the exact same function in both pluggable-functions.php and recent.php then you can remove get_userdata() from recent.php
<8> I believe the blog's get_userdata() is the blogs database rather than the phpbb's database, am i right?
<8> becuase they both work in a diff database.
<2> j45on: Then you'll have to rename one of the get_userdata() functions
<8> It is possible I can merge the tables of both wordpress and phpbb am i right?
<8> unless they both uses different credentials.
<2> I should image there's some bridge code somewhere, yeah
<11>
<2> Search phpBB's forum for a wordpress phpbb bridge script thingy
<8> is there another work around? Where as you said, just mirror it rather than put the whole thing there using require_once.
<8> can the mirror be done?
<2> j45on: Try <?php readfile('http://www.notd-aftermath.com/veritas/recent.php'); ?> instead
<2> That way you'll get the html output of recent.php
<8> oh that worked great.
<8> now I have to go and edit the column length
<8> should I use pixel or % in my case?
<2> j45on: It's up to you, i prefer % myself so it's more liquid/fluid
<8> tq MarkL.
<12> Hi, if I want to store plain text with html tags(guess this doesnt matter) in a database how should the table in the database lok like?
<12> I mean it should be infinitive fields
<2> Same as if there were no html tags
<12> and I have to tell how many fields I want when creating the table
<13> granden: depends on how much text and which database. For MySQL and medium amounts of text, try the TEXT type (or mediumtext, or longtext).
<2> TINYINT
<2> ...maybe not
<12> tetrarch: It is mysql and I have never used mysql and php before first time. But sometime should be the first.
<12> Im using phpMyAdmin to administrate the MySQL database
<13> okay, something like: create table stuff ( id INT(11) UNSIGNED NOT NULL auto_increment, txt MEDIUMTEXT null, primary key (id) );
<8> Hi again MarkL, it seems that recent.php is interfering with the text format of the blog. How can I prevent this?
<2> granden: http://dev.mysql.com/doc/refman/5.0/en/data-types.html should help too
<12> MarkL: Ok
<12> tetrarch: stuff is that the name of my table?
<2> j45on: Wrap it in an enclosing div ?
<8> oh right. I see what you mean
<2> Or use AJAX and have it slide on, fade in, and scale itself .. whilst flashing
<8> what is that may I ask? =)
<13> granden: yep. If you're using phpmyadmin just fill in the data you need. All depends on what it's for, of course...
<12> tetrarch: Im doing a simple guestbook
<2> j45on: You not heard of AJAX .. you must be the only one ;)
<12> I thought it could be a good php-project when learning both php and mysql
<8> <div><?php readfile('http://www.notd-aftermath.com/veritas/recent.php'); ?></div>
<8> no effect there.
<13> granden: you probably want a DATETIME column, an ID column (often good practise, make it unsigned and auto-increment, and set it as the primary key).
<2> <div style="width:10%"> or however wide
<13> granden: then you'll have the text column, of course... and maybe a name column if you want to get fancy.
<12> tetrarch: What
<12> Wow that was much info
<12> I done 3 tables with this line CREATE TABLE text( id INT( 11 ) UNSIGNED NOT NULL AUTO_INCREMENT , txt MEDIUMTEXT NULL , PRIMARY KEY ( id ) ) ;
<12> one called text, one name and one topic


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#web
qmail-tcpok: not found
#css
villageladies set
libclient maildirs
foy bloxsom
cahnge root password mysql
fsockopen goddady
#web
#postfix



Home  |  disclaimer  |  contact  |  submit quotes