mattkirkey Posted June 1, 2006 Share Posted June 1, 2006 I'm new here, but I have a problem. I initially thought it was an AJAX problem, now I think it's a PHP problem...I have a help file stored in a database. The help file has both HTML, PHP, CSS and javascript (non-ajax stuff).When the info is pulled (using PHP), it is dumped into a $body variable and then printed. Essentially, what I have is a webpage within a webpage. BUT, none of the php or external javascript linking in the $body is being processed (or the CSS I think).[code]print("<div id=help height='95%' width='95%' bgcolor=#ffffff>"); include ("help-getPage.php");print("</div>");[/code]then the help-getPage.php important code is:[code]for ($i = 0; $i < $numParts; $i++) { $body .= stripslashes($partsArr["VALUE"][$i]);}print ($body); [/code]$body will contain a bunch of html, php, css, javascript links.I can't seem to get it to process correctly. Does anyone have any helpful tips/suggestions?Thanks,-Matt Link to comment https://forums.phpfreaks.com/topic/10979-php-not-being-processed/ Share on other sites More sharing options...
trq Posted June 1, 2006 Share Posted June 1, 2006 Storing php in a database is never a real good way of going about things, but anyway, take a look at the [a href=\"http://php.net/eval\" target=\"_blank\"]eval[/a]() function. Should help you out. Link to comment https://forums.phpfreaks.com/topic/10979-php-not-being-processed/#findComment-41036 Share on other sites More sharing options...
mattkirkey Posted June 1, 2006 Author Share Posted June 1, 2006 I know. My boss, however, wants it in a database.In anycase, it's not just pHP, but HTML, CSS, Javascript calls as well.When I try to use eval, I get parse errors.Is there anyway to execute a large-text processing of php?-Matt[!--quoteo(post=379196:date=Jun 1 2006, 06:04 PM:name=thorpe)--][div class=\'quotetop\']QUOTE(thorpe @ Jun 1 2006, 06:04 PM) [snapback]379196[/snapback][/div][div class=\'quotemain\'][!--quotec--]Storing php in a database is never a real good way of going about things, but anyway, take a look at the [a href=\"http://php.net/eval\" target=\"_blank\"]eval[/a]() function. Should help you out.[/quote] Link to comment https://forums.phpfreaks.com/topic/10979-php-not-being-processed/#findComment-41039 Share on other sites More sharing options...
trq Posted June 2, 2006 Share Posted June 2, 2006 [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]Is there anyway to execute a large-text processing of php?[/quote]? Link to comment https://forums.phpfreaks.com/topic/10979-php-not-being-processed/#findComment-41053 Share on other sites More sharing options...
mattkirkey Posted June 2, 2006 Author Share Posted June 2, 2006 ie. $giantTextString giantTextString has a mixture of html, php, css, javascript functions (it is a 200-300 line-of-code page)so is there a function to process $giantTextString as a whole? Link to comment https://forums.phpfreaks.com/topic/10979-php-not-being-processed/#findComment-41092 Share on other sites More sharing options...
trq Posted June 2, 2006 Share Posted June 2, 2006 [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]so is there a function to process $giantTextString as a whole?[/quote][a href=\"http://php.net/eval\" target=\"_blank\"]eval[/a](). Link to comment https://forums.phpfreaks.com/topic/10979-php-not-being-processed/#findComment-41103 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.