Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
Programming Q&A
jQuery PHP Header?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="NSA" data-source="post: 180987" data-attributes="member: 10034"><p>Hello all,</p><p> </p><p>I am trying to use jQuery inside of a PHP file with the header set as: "header("Content-type: application/x-javascript");"</p><p> </p><p>But when I go directly to the file I get this error: "<strong><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">Parse error</span></span></span></strong><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">: syntax error, unexpected '(', expecting variable (T_VARIABLE) or '$' in </span></span></span><strong><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">C:\xampp\htdocs\jes\dd\meme2.php</span></span></span></strong><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"><span style="color: #000000"> on line </span></span></span><strong><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">5"</span></span></span></strong></p><p> </p><p><strong><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">Is it possible to use jQuery inside of this file or JUST raw JavaScript?</span></span></span></strong></p><p> </p><p><strong><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">Thanks.</span></span></span></strong></p></blockquote><p></p>
[QUOTE="NSA, post: 180987, member: 10034"] Hello all, I am trying to use jQuery inside of a PHP file with the header set as: "header("Content-type: application/x-javascript");" But when I go directly to the file I get this error: "[B][SIZE=4][FONT=Times New Roman][COLOR=#000000]Parse error[/COLOR][/FONT][/SIZE][/B][SIZE=4][FONT=Times New Roman][COLOR=#000000]: syntax error, unexpected '(', expecting variable (T_VARIABLE) or '$' in [/COLOR][/FONT][/SIZE][B][SIZE=4][FONT=Times New Roman][COLOR=#000000]C:\xampp\htdocs\jes\dd\meme2.php[/COLOR][/FONT][/SIZE][/B][SIZE=4][FONT=Times New Roman][COLOR=#000000] on line [/COLOR][/FONT][/SIZE][B][SIZE=4][FONT=Times New Roman][COLOR=#000000]5"[/COLOR][/FONT][/SIZE][/B] [B][SIZE=4][FONT=Times New Roman][COLOR=#000000]Is it possible to use jQuery inside of this file or JUST raw JavaScript?[/COLOR][/FONT][/SIZE][/B] [B][SIZE=4][FONT=Times New Roman][COLOR=#000000]Thanks.[/COLOR][/FONT][/SIZE][/B] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Programming Q&A
jQuery PHP Header?
Top