PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
devilchi
New Member
New Member


Joined: Aug 21, 2006
Posts: 6

PostPosted: Fri Jan 30, 2009 9:50 am Reply with quote Back to top

On some of the themes the theme.php calls a html file to insert instead of doing all the code in php. I understand how that works and love it since it keeps a better format to work in I think. The problem Im having is I need to use ' in places in the html file and it just does not work. I can't use \' because stripslashes takes away the \ . I hope this is making sense to everyone as Im almost confused asking now. I know I can just do the whole code in theme.php with echos. I just like using the external html files so i can find and fix things alittle faster in my upcoming themes. A example is below:

if i want to call a javascript function and use say somefunction('var') the ' and ' dont translate. they get turned into \' even if i had \'var\' in the first place. any help would be appreciated.

Thanks in advance.
View user's profile Send private message
Palbin
Site Admin


Joined: Mar 30, 2006
Posts: 2456
Location: Pittsburgh, Pennsylvania

PostPosted: Fri Jan 30, 2009 11:53 am Reply with quote Back to top

Is what your doing something similar to this?
Code:

    $tmpl_file = 'themes/3D-Fantasy/header.html';
    $thefile = implode('', file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"".$thefile."\";";
    eval($thefile);
View user's profile Send private message
devilchi
New Member
New Member


Joined: Aug 21, 2006
Posts: 6

PostPosted: Fri Jan 30, 2009 4:49 pm Reply with quote Back to top

Yes, the theme im currently working with uses just that. I want to be able to use ' inside the html code that the above code calls up.
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum