carl_in_washington Posted July 17, 2007 Share Posted July 17, 2007 Hello and thanks very much in advance for responding. I'm relatively new to PHP. Several months. I've been working on a project on my desktop environment that is working fine. I installed WAMP on my laptop because I need to show this finished project to my boss in a week, so of course, it's not working on the laptop. I'm using a javascript-based content editor that contains thousands of lines of code. When I run a page on my new WAMP server, the editor doesn't load, and when I check Firefox's error console, it says that there is a syntax error on line 3,000-something of the included javascript file. It reports that a closing bracket is missing, but when I look at the source code from the error console, it shows all of the content up to where that brace would be. In other words, it is only including that long file up to that point, so I know that this has something to do with settings for how much information can be included into a page in total including includes. I just don't know what setting in either a php.ini file or an Apache conf file would set that size limit a lot bigger. Like I say, it works on the desktop, and all pages not calling that javascript file work on the laptop WAMP server, but as this is for my boss and I'm kinda into a one-week time crunch, any ideas on settings to change is greatly appreciated!! Quote Link to comment https://forums.phpfreaks.com/topic/60442-help-script-works-in-one-environment-but-gets-clipped-in-wamp/ Share on other sites More sharing options...
wildteen88 Posted July 18, 2007 Share Posted July 18, 2007 As far as I know there is no setting within the php.ini that limits the amount of characters that can be included within in a include/require statement. Is the javascript being created dynamically by PHP? If it is perhaps there is an error causing your editor to fail. How come you are using PHP to include the javascript? Why cant you include the javascript with html using the script tag. Quote Link to comment https://forums.phpfreaks.com/topic/60442-help-script-works-in-one-environment-but-gets-clipped-in-wamp/#findComment-301435 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.