[PHP] HELP - Parse Error
*Parse error*: syntax error, unexpected $end in * /home/a9066165/public_html/admin/processccu.php* on line *231* I did some major code rewriting about halfway through (lines 114-132), and suddenly I'm getting the above ERROR. I have examined the code line by line, but I'm still relatively new to this, and I don't even know what to look for! Here is the complete code, from beginning ?php tag to closing /html tag: ?php_track_vars? ?php //CHECKS TO SEE IF FIELDS WERE PROPERLY COMPLETED AND ASSIGNS VARIABLES TO INPUTS - OTHERWISE AN ERROR MESSAGE IS PRINTED $Employee = $_POST['Employee']; if(!empty($_POST['FirstName'])) { $FirstName = $_POST['FirstName']; } else { print p class='error'You have not entered the customer's bFirst Name/b, please go back and enter it now./p; } if(!empty($_POST['LastName'])) { $LastName = $_POST['LastName']; } else { print p class='error'You have not entered the customer's bLast Name/b, please go back and enter it now./p; } if(!empty($_POST['EMailAddress'])) { $EMailAddress = $_POST['EMailAddress']; } else { $EMailAddress = ; if(!empty($_POST['Address1'])) { $Address1 = $_POST['Address1']; } else { print p class='error'You must supply the customer's bFirst Address Line/b, please go back and enter it now./p; } if(!empty($_POST['Address2'])) { $Address2 = $_POST['Address2']; } else { $Address2 = ; } if(!empty($_POST['City'])) { $City = $_POST['City']; } else { print p class='error'You have not entered the customer's bCityb, please go back and enter it now./p; } if(!empty($_POST['IsHandicappedAccommodations'])) { $IsHandicappedAccommodations = YES; } else { $IsHandicappedAccommodations = NO; } if(!empty($_POST['State'])) { $State = $_POST['State']; } else { print p class='error'You have not entered the customer's bState/b, please go back and enter it now./p; } if(!empty($_POST['ZIP'])) { $ZIP = $_POST['ZIP']; } else { print p class='error'You have not entered the customer's bZIP Code/b, please go back and enter it now./p; } if(!empty($_POST['IsSenior'])) { $IsSenior = YES; } else { $IsSenior = NO; } if(!empty($_POST['DaytimeTelephone'])) { $DaytimeTelephone = $_POST['DaytimeTelephone']; } else { print p class='error'You have not entered the customer's bDaytime Telephone Number/b, please go back and enter it now./p; } $_POST['Category1'] = $Category1; $_POST['Category2'] = $Category2; $_POST['Category3'] = $Category3; $_POST['Category4'] = $Category4; $_POST['Category5'] = $Category5; $_POST['Category6'] = $Category6; $select = Select; if($Category1 == $select $Category2 == $select $Category3 == $select $Category4 == $select $Category5 == $select $Category6 == $select) { print p class='error'You must choose at least one bCategory/b!/p; } $categoryarray = array($Category1, $Category2, $Category3, $Category4, $Category5, $Category6); foreach ($categoryarray as $c) { if ($c == $select) { $c = ; } } //REPLACES NAME VALUES WITH USER-FRIENDLY STRINGS $fields = array(); $fields{EMailAddress} = Email Address; $fields{FirstName} = First Name; $fields{LastName} = Last Name; $fields{DaytimeTelephone} = Home Phone; $fields{Address1} = Address Line 1; $fields{Address2} = Address Line 2; $fields{City} = City; $fields{State} = State; $fields{ZIP} = Postal Code; $fields2 = array(); $fields2{Employee} = Employee; $fields2{IsHandicappedAccommodations} = Needs Handicap Accommodations; $fields2{IsSenior} = Senior Status; $fields2{Category1} = Email Category 1; $fields2{Category2} = Email Category 2; $fields2{Category3} = Email Category 3; $fields2{Category4} = Email Category 4; $fields2{Category5} = Email Category 5; $fields2{Category6} = Email Category 6; //SETS VARIABLES TO BE USED FOR EMAIL $to = market...@cityoflancasterca.org; $subject = Constant Contact Update Form; $headers = From: $Employee\nMIME-Version: 1.0\nContent-type: text/html\ncharset: iso-8859-1; $body = We have received the following information:\n\nhtml\nbody\ntable cellspacing='2' cellpadding='2' border='1'\ntr valign='top'\n; //FOREACH LOOP $format = %s\t; $headerlabel = '0'; foreach ($fields as $x = $y) { $headerlabel = $headerlabel +1; $body .= td{$headerlabel}br\nimg src=' http://lpacmarketing.hostzi.com/images/spacer.gif' width='120' height='1'/td\n; } $body .= /tr\ntr valign='top'\n; foreach ($fields2 as $x = $y) { $body .= td{$y}/td\n; } $body .= /tr\ntr valign='top'\n; foreach ($categoryarray as $d) { $body .= td{$d}/td\n; } $body .= /tr\ntr valign='top'\ntd colspan='9'pre\n; foreach ($fields as $a = $b) { $body .= sprintf($format, $b); } $body .= br; foreach ($fields as $a = $b) { $body .= sprintf($format, $_POST[$a]); } $body .= /pre/td\n/tr\n/table\n/body\n/html; //END FOREACH LOOPS //SETS VARIABLES TO BE USED FOR THANK-YOU EMAIL $send = mail($to, $subject, $body, $headers); //test escape character on URL if($send) {header(Location: http:/\/ lpacmarketing.hostzi.com/admin/processccu.php); } else { print p class='error'We encountered an error
Re: [PHP] HELP - Parse Error
On Tue, Aug 4, 2009 at 13:47, Allen McCabeallenmcc...@gmail.com wrote: [snip=everything] Looks like you're missing a closing bracket here: if(!empty($_POST['EMailAddress'])) { $EMailAddress = $_POST['EMailAddress']; } else { $EMailAddress = ; // --- Right here -- /Daniel P. Brown daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.net/ Check out our great hosting and dedicated server deals at http://twitter.com/pilotpig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] HELP - Parse Error
Allen McCabe wrote: *Parse error*: syntax error, unexpected $end in * /home/a9066165/public_html/admin/processccu.php* on line *231* I have learned from a number of similar mistakes that this error message /normally/ means that I have a miss-matched number of brackets on a foreach, while, or if, etc... statement. Usually the line number will represent the last line in your script. In this case, they don't seem to match... Jim I did some major code rewriting about halfway through (lines 114-132), and suddenly I'm getting the above ERROR. I have examined the code line by line, but I'm still relatively new to this, and I don't even know what to look for! Here is the complete code, from beginning ?php tag to closing /html tag: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] HELP - Parse Error
On Tue, 2009-08-04 at 10:56 -0700, Jim Lucas wrote: Allen McCabe wrote: *Parse error*: syntax error, unexpected $end in * /home/a9066165/public_html/admin/processccu.php* on line *231* I have learned from a number of similar mistakes that this error message /normally/ means that I have a miss-matched number of brackets on a foreach, while, or if, etc... statement. Usually the line number will represent the last line in your script. In this case, they don't seem to match... Jim I did some major code rewriting about halfway through (lines 114-132), and suddenly I'm getting the above ERROR. I have examined the code line by line, but I'm still relatively new to this, and I don't even know what to look for! Here is the complete code, from beginning ?php tag to closing /html tag: Thats why I always prefer to have the brackets line up in the code (I forget what the style is called) so that it looks like this: function someFunction { if(condition) { do something } } etc.. Thanks, Ash http://www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] HELP - Parse Error
Ashley - I am formatting this way, it just didn't translate into gmail : ) Daniel, Martin, and Jim - Thanks very much, my php runs now, however I don't get the result page anymore. My inbox receives the form (missing cells, but that's another issue), but the browser doesn't load processccu.php, it says it cannot display the webpage. note: I did address the mismatch of the DIV and TABLE (including TR's, TD's) tags, so I don't think it's my HTML. On Tue, Aug 4, 2009 at 10:58 AM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: On Tue, 2009-08-04 at 10:56 -0700, Jim Lucas wrote: Allen McCabe wrote: *Parse error*: syntax error, unexpected $end in * /home/a9066165/public_html/admin/processccu.php* on line *231* I have learned from a number of similar mistakes that this error message /normally/ means that I have a miss-matched number of brackets on a foreach, while, or if, etc... statement. Usually the line number will represent the last line in your script. In this case, they don't seem to match... Jim I did some major code rewriting about halfway through (lines 114-132), and suddenly I'm getting the above ERROR. I have examined the code line by line, but I'm still relatively new to this, and I don't even know what to look for! Here is the complete code, from beginning ?php tag to closing /html tag: Thats why I always prefer to have the brackets line up in the code (I forget what the style is called) so that it looks like this: function someFunction { if(condition) { do something } } etc.. Thanks, Ash http://www.ashleysheridan.co.uk
Re: [PHP] HELP - Parse Error
Well, I got it to display a thank you page instead of what I had. I'm rolling with the punches. Got to work on why my email table is not building right. Stay tuned! On Tue, Aug 4, 2009 at 11:09 AM, Allen McCabe allenmcc...@gmail.com wrote: Ashley - I am formatting this way, it just didn't translate into gmail : ) Daniel, Martin, and Jim - Thanks very much, my php runs now, however I don't get the result page anymore. My inbox receives the form (missing cells, but that's another issue), but the browser doesn't load processccu.php, it says it cannot display the webpage. note: I did address the mismatch of the DIV and TABLE (including TR's, TD's) tags, so I don't think it's my HTML. On Tue, Aug 4, 2009 at 10:58 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Tue, 2009-08-04 at 10:56 -0700, Jim Lucas wrote: Allen McCabe wrote: *Parse error*: syntax error, unexpected $end in * /home/a9066165/public_html/admin/processccu.php* on line *231* I have learned from a number of similar mistakes that this error message /normally/ means that I have a miss-matched number of brackets on a foreach, while, or if, etc... statement. Usually the line number will represent the last line in your script. In this case, they don't seem to match... Jim I did some major code rewriting about halfway through (lines 114-132), and suddenly I'm getting the above ERROR. I have examined the code line by line, but I'm still relatively new to this, and I don't even know what to look for! Here is the complete code, from beginning ?php tag to closing /html tag: Thats why I always prefer to have the brackets line up in the code (I forget what the style is called) so that it looks like this: function someFunction { if(condition) { do something } } etc.. Thanks, Ash http://www.ashleysheridan.co.uk
Re: [PHP] HELP - Parse Error
Allen McCabe wrote: Ashley - I am formatting this way, it just didn't translate into gmail : ) You might try using indentation with more then one space. Try tabs. Any respectable editor will allow you to set the number of spaces it uses to actually represent the tab. That way I can have mine set to 8 spaces while other can have 3 or 4 spaces. Daniel, Martin, and Jim - Thanks very much, my php runs now, however I don't get the result page anymore. My inbox receives the form (missing cells, but that's another issue), but the browser doesn't load processccu.php, it says it cannot display the webpage. note: I did address the mismatch of the DIV and TABLE (including TR's, TD's) tags, so I don't think it's my HTML. On Tue, Aug 4, 2009 at 10:58 AM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: On Tue, 2009-08-04 at 10:56 -0700, Jim Lucas wrote: Allen McCabe wrote: *Parse error*: syntax error, unexpected $end in * /home/a9066165/public_html/admin/processccu.php* on line *231* I have learned from a number of similar mistakes that this error message /normally/ means that I have a miss-matched number of brackets on a foreach, while, or if, etc... statement. Usually the line number will represent the last line in your script. In this case, they don't seem to match... Jim I did some major code rewriting about halfway through (lines 114-132), and suddenly I'm getting the above ERROR. I have examined the code line by line, but I'm still relatively new to this, and I don't even know what to look for! Here is the complete code, from beginning ?php tag to closing /html tag: Thats why I always prefer to have the brackets line up in the code (I forget what the style is called) so that it looks like this: function someFunction { if(condition) { do something } } etc.. Thanks, Ash http://www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] HELP - Parse Error
I created a webpage with the code listed, and a screen shot of the email I am currently receiving (with nonsense entered into my inputs) URL: http://lpacmarketing.hostzi.com/admin/help.html Anyone that can provide help will be rewarded in their next life. That's a promise. Thanks! On Tue, Aug 4, 2009 at 10:58 AM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: On Tue, 2009-08-04 at 10:56 -0700, Jim Lucas wrote: Allen McCabe wrote: *Parse error*: syntax error, unexpected $end in * /home/a9066165/public_html/admin/processccu.php* on line *231* I have learned from a number of similar mistakes that this error message /normally/ means that I have a miss-matched number of brackets on a foreach, while, or if, etc... statement. Usually the line number will represent the last line in your script. In this case, they don't seem to match... Jim I did some major code rewriting about halfway through (lines 114-132), and suddenly I'm getting the above ERROR. I have examined the code line by line, but I'm still relatively new to this, and I don't even know what to look for! Here is the complete code, from beginning ?php tag to closing /html tag: Thats why I always prefer to have the brackets line up in the code (I forget what the style is called) so that it looks like this: function someFunction { if(condition) { do something } } etc.. Thanks, Ash http://www.ashleysheridan.co.uk
Re: [PHP] HELP - Parse Error
Allen McCabe wrote: I created a webpage with the code listed, and a screen shot of the email I am currently receiving (with nonsense entered into my inputs) URL: http://lpacmarketing.hostzi.com/admin/help.html Anyone that can provide help will be rewarded in their next life. That's a promise. um, your hosting doesn't like that for some reason. Click it and see what you get. Thanks! On Tue, Aug 4, 2009 at 10:58 AM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: On Tue, 2009-08-04 at 10:56 -0700, Jim Lucas wrote: Allen McCabe wrote: *Parse error*: syntax error, unexpected $end in * /home/a9066165/public_html/admin/processccu.php* on line *231* I have learned from a number of similar mistakes that this error message /normally/ means that I have a miss-matched number of brackets on a foreach, while, or if, etc... statement. Usually the line number will represent the last line in your script. In this case, they don't seem to match... Jim I did some major code rewriting about halfway through (lines 114-132), and suddenly I'm getting the above ERROR. I have examined the code line by line, but I'm still relatively new to this, and I don't even know what to look for! Here is the complete code, from beginning ?php tag to closing /html tag: Thats why I always prefer to have the brackets line up in the code (I forget what the style is called) so that it looks like this: function someFunction { if(condition) { do something } } etc.. Thanks, Ash http://www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Help, Parse error caused by quotes andapostrophes in function, How do I fix this?
The following is the format needed in order to run the convert command from command line, but I have a problem in exec() format: convert picture.jpg -font Arial-Bold -pointsize 20 -fill red -gravity southeast -draw text 10,10 'my text to add to picture' text-overlay.jpg this causes problems Parse error: parse error, unexpected T_STRING: exec('convert picture.jpg -font Arial-Bold -pointsize 20 -fill red -gravity southeast -draw text 10,10 'my text to add to picture' text-overlay.jpg'); I am positive the it is due to all the s and 's within the command, I have tried the specialchars for quotes andapostrophes but I am still missing something: exec('convert picture.jpg -font Arial-Bold -pointsize 20 -fill red -gravity southeast -draw quottext 10,10 \'my text to add to picture\'quot text-overlay.jpg'); If anyone has any ides on how to avoid probles with quotes andapostrophes inside the exec() I am all ears :o) Thanks --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.386 / Virus Database: 218 - Release Date: 9/9/2002 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Fw: [PHP] Help, Parse error caused by quotes andapostrophes in function, How do I fix this?
Hi. Try the backticks (execution) operator instead so you're not fighting yourself with quotes. I think it should work but this is untested. Let me know if it doesn't.. $out = `convert picture.jpg -font Arial-Bold -pointsize 20 -fill red -gravity southeast -draw text 10,10 'my text to add to picture' text-overlay.jpg`; -Kevin - Original Message - From: Kurtis Harper [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 10, 2002 5:35 PM Subject: [PHP] Help, Parse error caused by quotes andapostrophes in function, How do I fix this? The following is the format needed in order to run the convert command from command line, but I have a problem in exec() format: convert picture.jpg -font Arial-Bold -pointsize 20 -fill red -gravity southeast -draw text 10,10 'my text to add to picture' text-overlay.jpg this causes problems Parse error: parse error, unexpected T_STRING: exec('convert picture.jpg -font Arial-Bold -pointsize 20 -fill red -gravity southeast -draw text 10,10 'my text to add to picture' text-overlay.jpg'); I am positive the it is due to all the s and 's within the command, I have tried the specialchars for quotes andapostrophes but I am still missing something: exec('convert picture.jpg -font Arial-Bold -pointsize 20 -fill red -gravity southeast -draw quottext 10,10 \'my text to add to picture\'quot text-overlay.jpg'); If anyone has any ides on how to avoid probles with quotes andapostrophes inside the exec() I am all ears :o) Thanks --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.386 / Virus Database: 218 - Release Date: 9/9/2002 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Help..Parse error
Actually that is the default setting under 4, and the rest of the code works with the short tags, it's definately something code related... I don;t think it likes that code, but can't find anything to help me resolve the problem. I was hoping not to re-write the code just yet... Thanks Steve Edberg wrote: My guess is that you have the short_open_tags option on in your PHP3 config, but off in your PHP4 config. If it's off, PHP will only recognize the ?php...? tags, not ?...?. PHP config params can be set in php.ini, .htaccess, and/or Apache httpd.conf files. Scroll down to short_open_tag in http://www.php.net/manual/en/configuration.php#configuration.file for more info. You can also check your config via the phpinfo() function. - steve At 1:45 AM -0400 7/20/01, Jack Sasportas wrote: I have some code that runs under php3, but under 4 I get a parse error on this specific line, can't figure out how to resolve it. the code looks like this html stuff ? } ? more html stuff the error is in the middle line which is the end of a condition... Thanks in advance... -- ___ Jack Sasportas Innovative Internet Solutions Phone 305.665.2500 Fax 305.665.2551 www.innovativeinternet.com www.web56.net -- +-- Factoid: Of the 100 largest economies in the world, 51 are --+ | Steve Edberg University of California, Davis | | [EMAIL PROTECTED] Computer Consultant | | http://aesric.ucdavis.edu/ http://pgfsun.ucdavis.edu/ | +--- corporations -- http://www.ips-dc.org/reports/top200text.htm ---+ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- ___ Jack Sasportas Innovative Internet Solutions Phone 305.665.2500 Fax 305.665.2551 www.innovativeinternet.com www.web56.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Help! Parse error.....
I have some code that runs under php3 perfectly, but now under 4 I get a parse error on this specific line, can't figure out how to resolve it. the code looks like this html stuff ? } ? more html stuff the error is in the middle line which is the end of a condition... Thanks in advance... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Help! Parse error.....
On Friday 20 July 2001 06:16, Jack Sasportas wrote: I have some code that runs under php3 perfectly, but now under 4 I get a parse error on this specific line, can't figure out how to resolve it. the code looks like this html stuff ? } ? more html stuff the error is in the middle line which is the end of a condition... Thanks in advance... Have you tried using the alternative syntax capabilities? More here: http://www.php.net/manual/en/control-structures.alternative-syntax.php -- Paul Strange Lead Programmer Level 67 LC --- eMail: [EMAIL PROTECTED] Office: 801.486.4686 Fax: 801.994.0467 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Help! Parse error.....
Tried the alternative stuff with no luck... Looking for any crazy ideas that might work... Thanks ! Paul Strange wrote: On Friday 20 July 2001 06:16, Jack Sasportas wrote: I have some code that runs under php3 perfectly, but now under 4 I get a parse error on this specific line, can't figure out how to resolve it. the code looks like this html stuff ? } ? more html stuff the error is in the middle line which is the end of a condition... Thanks in advance... Have you tried using the alternative syntax capabilities? More here: http://www.php.net/manual/en/control-structures.alternative-syntax.php -- Paul Strange Lead Programmer Level 67 LC --- eMail: [EMAIL PROTECTED] Office: 801.486.4686 Fax: 801.994.0467 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- ___ Jack Sasportas Innovative Internet Solutions Phone 305.665.2500 Fax 305.665.2551 www.innovativeinternet.com www.web56.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Help! Parse error.....
in the great big FWIW department, the error may not be on that line, it may only indicate the point where php recognized an error. I had one page with several includes and html code...php reported a parse error on the main page, I couldn't find it, however, eventually, I tracked the error to an early include file that was missing a bracket. Chances are you're missing a bracket some place before the reported error, could be anyplace. rm --- Jack Sasportas [EMAIL PROTECTED] wrote: Tried the alternative stuff with no luck... Looking for any crazy ideas that might work... Thanks ! Paul Strange wrote: On Friday 20 July 2001 06:16, Jack Sasportas wrote: I have some code that runs under php3 perfectly, but now under 4 I get a parse error on this specific line, can't figure out how to resolve it. the code looks like this html stuff ? } ? more html stuff the error is in the middle line which is the end of a condition... Thanks in advance... Have you tried using the alternative syntax capabilities? More here: http://www.php.net/manual/en/control-structures.alternative-syntax.php -- Paul Strange Lead Programmer Level 67 LC --- eMail: [EMAIL PROTECTED] Office: 801.486.4686 Fax: 801.994.0467 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- ___ Jack Sasportas Innovative Internet Solutions Phone 305.665.2500 Fax 305.665.2551 www.innovativeinternet.com www.web56.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Help..Parse error
I have some code that runs under php3, but under 4 I get a parse error on this specific line, can't figure out how to resolve it. the code looks like this html stuff ? } ? more html stuff the error is in the middle line which is the end of a condition... Thanks in advance... -- ___ Jack Sasportas Innovative Internet Solutions Phone 305.665.2500 Fax 305.665.2551 www.innovativeinternet.com www.web56.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Help..Parse error
My guess is that you have the short_open_tags option on in your PHP3 config, but off in your PHP4 config. If it's off, PHP will only recognize the ?php...? tags, not ?...?. PHP config params can be set in php.ini, .htaccess, and/or Apache httpd.conf files. Scroll down to short_open_tag in http://www.php.net/manual/en/configuration.php#configuration.file for more info. You can also check your config via the phpinfo() function. - steve At 1:45 AM -0400 7/20/01, Jack Sasportas wrote: I have some code that runs under php3, but under 4 I get a parse error on this specific line, can't figure out how to resolve it. the code looks like this html stuff ? } ? more html stuff the error is in the middle line which is the end of a condition... Thanks in advance... -- ___ Jack Sasportas Innovative Internet Solutions Phone 305.665.2500 Fax 305.665.2551 www.innovativeinternet.com www.web56.net -- +-- Factoid: Of the 100 largest economies in the world, 51 are --+ | Steve Edberg University of California, Davis | | [EMAIL PROTECTED] Computer Consultant | | http://aesric.ucdavis.edu/ http://pgfsun.ucdavis.edu/ | +--- corporations -- http://www.ips-dc.org/reports/top200text.htm ---+ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]