Home > Syntax Error > Php Syntax Error Near Unexpected Token

Php Syntax Error Near Unexpected Token

Contents

Ubuntu Ubuntu Insights Planet Ubuntu Activity Page Please read before SSO login Advanced Search Forum The Ubuntu Forum Community Ubuntu Official Flavours Support New to Ubuntu [SOLVED] syntax error near unexpected yes, shared ./configure: line 5329: syntax error near unexpected token `fi' ./configure: line 5329: `fi' Test script: --------------- pecl install -f http://pecl.php.net/get/geoip-1.1.0.tgz Expected result: ---------------- Configure script should pass. Register FAQ/Rules My SitePoint Forum Actions Mark Forums Read Quick Links View Forum Leaders Remember Me? Results 1 to 6 of 6 Thread: syntax error near unexpected token newline while installing zpanel Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch check my blog

There may be newline differences to consider too (In Windows environments, a carriage return and linefeed is often used to terminate lines in files, whilst in Linux and OSX, only a Thanks Quick Navigation PHP Top Site Areas Settings Private Messages Subscriptions Who's Online Search Forums Forums Home Forums Community Center News & Announcements General Discussions Introductions Talk With The Experts Website Whats the line in your crontab? Note: This is not an exact replication of your environment (I don't have access to a Mac), however it seems likely to me that the issue is that an editor, somewhere, http://stackoverflow.com/questions/4927691/php-error-line-1-php

Syntax Error Near Unexpected Token (' Bash

Right now, for testing purposes, cron.php is simply this: And now, every minute, I'm receiving the cron email with these errors: //home/user/public_html/mysite/cron.php: line 1: syntax error near unexpected token Why is AT&T's stock price declining, during the days that they announced the acquisition of Time Warner inc.? bash, its the equivalent of this; $ bash test.php test.php: line 1: syntax error near unexpected token `newline' test.php: line 1: `' at the very least, something like this would at

What's the difference in sound between the letter η and the diphthong ει? SitePoint Sponsor User Tag List Results 1 to 3 of 3 Thread: Cron Job Problems!! If you copy his code in a file, make it executable and let bash run it, you get: ./test.php: line 1: ?php: No such file or directory ./test.php: line 2: syntax Bash Syntax Error Near Unexpected Token (' Ubuntu Apex variable map values passed to auto-launched flow not recognized by flow Why do units (from physics) behave like numbers?

It sounds like the shell was complaining about the ^M carriage return character, not the quote as the OP seemed to indicate. –Potatoswatter Jan 5 '14 at 4:41 | show 1 Syntax Error Near Unexpected Token In Shell Script Teaching a blind student MATLAB programming Why do jet engines smoke? Reply With Quote 0 Quick Navigation Hosting Security and Technology Top Site Areas Member Control Panel Private Messages Subscriptions Who's Online Search Forums Forums Home Forums Premium & Corporate http://stackoverflow.com/questions/6685565/why-do-i-get-errors-when-running-this-shell-script-in-terminal i.e. $ cat originalfile | tr -d "\r" > newfile then it would execute.

Did you mean to use bash 10_1_1.sh instead of chmod +x 10_1_1.sh sudo ./10_1_1.sh If yes,then it is still giving me same error Adv Reply April 1st, 2015 #4 sandyd Syntax Error Near Unexpected Token Perl first order condtion of Lagrangian Can a nuclear detonation on Moon destroy life on Earth? If this works, the issue was carriage returns as hidden characters. HELP!!

Syntax Error Near Unexpected Token In Shell Script

Advertisement Register for Free! see here How do you say "you all" in Esperanto? Syntax Error Near Unexpected Token (' Bash Browse other questions tagged php cron or ask your own question. Syntax Error Near Unexpected Token R In Shell Script Where's the 0xBEEF?

Does the code terminate? click site Can a nuclear detonation on Moon destroy life on Earth? HELP!! At the top of the crontab? –Dante Cullari Sep 10 '13 at 2:51 Got it, combined your answer with this one and got it going! Syntax Error Near Unexpected Token In Unix

When I try to run via command line, I get this: -bash: syntax error near unexpected token `)' Reply With Quote 0 04-29-2011,04:52 AM #4 lynxus View Profile View Forgot your password? Only this Cron that does not like something. news syntax error near unexpected token `<' syntax error near unexpected token `newline' /newsletter_auto.php: line 2: `' the code of the newsletter_auto.php file is below Market Trend Newsletter