Jump to content

Help! -Script works in one environment but gets clipped in WAMP


Recommended Posts

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!!

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.