Php Error Parsing Url_rewriter.tags
Configuration → Installation on Linux Javascript Disabled Detected You currently have javascript disabled. Several functions may not work. Please re-enable javascript to access full functionality. PHP Parsing Error :'( Started by alexville, Feb 13 2011 04:33 PM Please log in to reply 6 replies to this topic #1 alexville alexville Advanced Member Members 71 posts Posted 13 February 2011 - 04:33 PM Hello, I'm so mad at PHP right now... I'm trying to run a php shell file from SSH but when I run it I get thrown this error from PHP: root@server1 [/home/alexvill/www/3.0/socketchat]# ./socketShell.php PHP: Error parsing /usr/local/lib/php.ini on line 811 On line 811 of that php.ini file this is what occurs: url_rewriter.tags = a=href,area=href,frame=src,input=src,form=,fieldset= I have no idea what is wrong with this line. I have added quotes to it and that causes my whole site to get 500 errors. If anyone can help me out I would be so grateful! Here are the lines before that and after: ; session.use_trans_sid: (ini file field description not available) session.use_trans_sid = 0 ; url_rewriter.tags: (ini file field description not available) url_rewriter.tags = a=href,area=href,frame=src,input=src,form=,fieldset= ; sybase.allow_persistent: (ini file field description not available) sybase.allow_persistent = On Back to top #2 alexville alexville Advanced Member Members 71 posts Posted 15 February 2011 - 09:46 PM Bump. Please help anyone. Back to top #3 Infinitive Infinitive Advanced Member Members 32 posts Posted 15 February 2011 - 10:28 PM Not an expert but any unbalanced assignment that goes "something=," is generally asking for trouble. Here's my own line, try using it: url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry" And if i
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Syntax error from older PHP https://forums.phpfreaks.com/topic/227533-php-parsing-error/ script up vote 0 down vote favorite Can someone please tell me what the error is in the following script? Was forced to update to php 5.3 instead of 4 and now site is down syntax syntax-error share|improve this question edited Aug 22 '12 at 1:36 Niet the Dark Absol 209k37240372 asked Aug 22 '12 at 1:34 user1615674 31 add a http://stackoverflow.com/questions/12065259/syntax-error-from-older-php-script comment| 1 Answer 1 active oldest votes up vote 0 down vote accepted You should check your php.ini to see if short tags are enabled. They are often disabled by default. As of PHP 5.4 short tags are always on, but not so on PHP 5.3 and lower. If you're able, in php.ini you'd enable this with: short_open_tag = On Be aware thought that in some hosting environments you actually may be prevented from enabling the use of short tags. And even though 5.4 has them always available, they are generally not recommended because of the very issue that you may have encountered: you may move to another environment that doesn't have them enabled (or even allow it). The alternative is to use: More info can be found here: Are PHP short tags acceptable to use? share|improve this answer answered Aug 22 '12 at 1:44 tptcat 1,71611335 this is all i have in my php.ini file-thank you register_globals = off allow_url_fopen = off expose_php = Off max_input_time = 60 variables_order = "EGPCS" extension_dir = ./ upload_tmp_dir = /tmp precision = 12 SMTP = relay-hosting.secureserver.net url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset=" [Zend] zend_extension=/usr
UTC Votes:1 Avg. Score:3.0 ± 0.0 Reproduced:1 of 1 (100.0%) Same Version:1 (100.0%) https://bugs.php.net/bug.php?id=34305&edit=1 Same OS:1 (100.0%) From: mail at bjanetzki dot de Assigned: Status: Not a bug Package: Session related PHP Version: 5.0.4 OS: Linux https://bbs.archlinux.org/viewtopic.php?id=175322 Private report: No CVE-ID: View Add Comment Developer Edit [2005-08-30 13:07 UTC] mail at bjanetzki dot de Description: ------------ While using session trans_sid php error there is a problem with some url_rewriter tags. Reproduce code: ---------------
bar php error parsing bar Expected result: ---------------- bar Actual result: -------------- bar Patches Add a PatchPull Requests Add a Pull RequestHistoryAllCommentsChangesGit/SVN commitsRelated reports [2005-08-30 13:09 UTC] sniper@php.net Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip [2005-08-30 13:09 UTC] derick@php.net Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php The url rewriter doesn\'t fix all HTML code as that would be way to slow. Put them on one line and it works. Copyright © 2001-2016 The PHP Group All rights reserved. Last updated: Mon Oct 24 04:01:40 2016 UTCfriendofarch Member Registered: 2013-12-30 Posts: 47 [SOLVED]Persistent PHP syntax error I try to install friendica on localhost and since I didn't manage with nginx I tried apache what I have installed before (on debian).Now the odd thing is that I either get:PHP: syntax error, unexpected '"' in /etc/php/php.ini on line 175and the friendica install page tells me that it can't find most of the necessary php modules (but mod_rewrite works!)The according line from the php.ini looks like this:174 ; url_rewriter.tags 175 Default Value: "a=href,area=href,frame=src,form=,fieldset=" 176 ; Development Value: "a=href,area=href,frame=src,input=src,form=fakeentry" 177 ; Production Value: "a=href,area=href,frame=src,input=src,form=fakeentry"or if I comment out line 175, everything works (according to the friendica install check) except for the mod_rewrite module (which I can understand, since that's what I commented out ;-) )To make it even more strange:I found this thread and since it's suggested to check if it´s the right php.ini I deleted it and restarted the apache daemon and still get the same errors in /var/log/httpd/error_logBut if I uncomment f. ex. line 176 and comment out 175 I just get PHP: syntax error, unexpected '"' in /etc/php/php.ini on line 176So somehow the server reads the php.ini file and somehow not...Where is the logical mistake? Last edited by friendofarch (2014-01-06 20:07:34) Offline #2 2014-01-06 16:07:46 GE Member Registered: 2014-01-04 Posts: 41 Re: [SOLVED]Persistent PHP syntax error Default Value: "a=href,area=href,frame=src,form=,fieldset="It is a comment (information for you, not PHP), not an actual setting.# Default Value: "a=href,area=href,frame=src,form=,fieldset=" url_rewriter.tags = "a=href,area=href,frame=src,form=,fieldset="Try it that way and let us know if you encounter any new errors. Last edited by GE (2014-01-06 16:24:42) • WM: Openbox• Resolution: 1366x768• CPU: CPU: Intel Pentium CPU B980 @ 2.4GHz• RAM: 2931MB Offline #3 2014-01-06 16:17:11 friendofarch Member Registered: 2013-12-30 Posts: 47 Re: [SOLVED]Persistent PHP syntax error Oops, thanks! I thought the ini contained the different possible values