Home > Syntax Error > Syntax Error Near Unexpected Token ' +php

Syntax Error Near Unexpected Token ' +php

Any help appreciated, Mark. Browse other questions tagged php osx terminal doctrine2 or ask your own question. Adv Reply April 1st, 2015 #6 sandyd View Profile View Forum Posts Private Message 0-8-4 Join Date Nov 2008 Location S.H.I.E.L.D. 6-1-6 BeansHidden! Why would a NES game use an undocumented 1-byte or 2-byte NOP in production? his comment is here

Neither worked. Is there another way in bash scripting to quote but keep the wildcards? –FMC Mar 2 '12 at 3:06 add a comment| Your Answer draft saved draft discarded Sign up Alternatively you could use a HEREDOC or NOWDOC style string to avoid escaping issues. Letter of Recommendation Without Contact from the Student How secure is a fingerprint sensor versus a standard password?

Browse other questions tagged php cron syntax-error or ask your own question. You need to enable extglob either as part of your script (probably better) or in your Bash setup (probably where it was before, and then it broke when somebody changed it more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed Lagrange multiplier on unit sphere How to reward good players, in order to teach other players by example Need a way for Earth not to detect an extrasolar civilization that has

A pilot's messages Need a way for Earth not to detect an extrasolar civilization that has radio How to write an effective but very gentle reminder email to supervisor to check Forum Operations by The UNIX and Linux Forums Register Remember Me? Feynman diagram and uncertainty Why would Snape set his office password to 'Dumbledore'? Search Forums Show Threads Show Posts Tag Search Advanced Search Unanswered Threads Find All Thanked Posts Go to Page... unix and linux operating commands Syntax error near unexpected token

mysql_errno($mysqlConnect) . ": " . All Rights Reserved. All Rights Reserved. I cant see how its going to work anyway without hardcoding some stuff.

share|improve this answer answered Mar 2 '12 at 5:58 tripleee 61.1k864119 add a comment| up vote 0 down vote You're probably not escaping the quotes correctly in the script. Not the answer you're looking for? 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 Your crontab should look like this: * * * * * /usr/bin/php -f /path/to/file.php Another way to execute the script as php is to add a shebang in the first line:

Forgot your password? What dice mechanic gives a bell curve distribution that narrows and increases mean as skill increases? I had errors like: bash: command substitution: line 9: syntax error near unexpected token `(' bash: command substitution: line 9: `cat ${LOGS}?(*)!(.gz)' or bash: ./extract_date_in_xferlog.sh: line 8: syntax error near unexpected Is there a performance difference in the 2 temp table initializations?

Why would Snape set his office password to 'Dumbledore'? http://allconverter.net/syntax-error/syntax-error-near-unexpected-token-fi-mac.html 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! Live Chat Support Software for your Business website - IMsupporting.com Reply With Quote 0 04-29-2011,01:48 AM #3 gpl24 View Profile View Forum Posts View Forum Threads Aspiring Evangelist Join Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the

Ubuntu Logo, Ubuntu and Canonical Canonical Ltd. Hope it works. 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 http://allconverter.net/syntax-error/syntax-error-near-unexpected-token-in.html Adv Reply April 1st, 2015 #3 salim5 View Profile View Forum Posts Private Message First Cup of Ubuntu Join Date Mar 2015 Beans 8 Re: syntax error near unexpected token

Thanks! Cron error: /bin/sh: -c: line 0: syntax error near unexpected token `)' /bin/sh: -c: line 0: `/usr/bin/php /home/user/public_html/admin/monitor.php > /dev/null 2>&1' The script: = 0) The time now is 11:25 PM. © WebHostingTalk, 1998.

Register Now, or check out the Site Tour and find out everything Web Hosting Talk has to offer.

Thanks a loooooooooooooooooooooooooooooooooot. php osx terminal doctrine2 share|improve this question asked Jul 13 '11 at 20:56 koosa 1,36711330 add a comment| 1 Answer 1 active oldest votes up vote 4 down vote accepted It's Aligning texts side by side with equations in \align environment Why does Davy Jones not want his heart around him? consider changing directory before your includes, or setting an include path –Mark Baker Feb 10 '15 at 22:03 I tried: include('/home/site/www/bd.php'); include('bd.php'); include('/bd.php'); include('./bd.php'); include('../bd.php'); –T_E_M_A Feb 10 '15

Join them; it only takes a minute: Sign up PHP error line 1: `' up vote 5 down vote favorite I'm attempting to setup a very simple cron job on 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 Outlet w/3 neutrals, 3 hots, 1 ground? check over here That's my problem, I don't know what line this error is coming from?

However, my first goal would have to have it work in PHP. –FMC Mar 2 '12 at 2:53 I don't get it because if I quote the wildcards are Username Password I've forgotten my password Remember me This is not recommended for shared computers Sign in anonymously Don't add me to the active users list Privacy Policy syntax error near unexpected token `(' Started by spinner0205, Feb 26 2011 01:30 AM Please log in to reply 3 replies to this topic #1 spinner0205 spinner0205 Members Advanced Member 33 The time now is 04:25 AM.

share|improve this answer answered Feb 7 '11 at 23:02 Quentin 500k56649820 Where does this go? Maybe mention shebangs? –ficuscr Feb 10 '15 at 22:17 When i written /usr/bin/php -f /home/site/www/statistic.php received this error: No input file specified. –T_E_M_A Feb 10 '15 at 22:32 1 Browse other questions tagged php linux cron or ask your own question. share|improve this answer edited Feb 10 '15 at 22:20 answered Feb 10 '15 at 22:04 Dirk 1287 He is getting a PHP error.

php cron syntax-error share|improve this question edited Feb 10 '15 at 22:58 ficuscr 3,88911337 asked Feb 10 '15 at 21:57 T_E_M_A 138312 1 See this answer: stackoverflow.com/questions/1969374/… –ficuscr Feb 10