Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 11-30-2009, 03:39 AM Parse error
Moritz's Avatar
Average Talker

Posts: 24
Name: Daniel Moritz
Location: Sweden
Trades: 0
Hey, i got this error. Does anyone know whats wrong?

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/a3540980/public_html/ucp/main.php on line 20

Line 20:
Code:
require_once(include_path'.:/usr/local/lib/php');
Might be a simple prob. But i suck so :P
Moritz is offline
Reply With Quote
View Public Profile Visit Moritz's homepage!
 
 
Register now for full access!
Old 11-30-2009, 03:53 AM Re: Parse error
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,384
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
at a guess
PHP Code:
require_once($include_path ':/usr/local/lib/php'); 
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-30-2009, 04:16 AM Re: Parse error
Moritz's Avatar
Average Talker

Posts: 24
Name: Daniel Moritz
Location: Sweden
Trades: 0
Now i got this

Code:
Warning:  require_once(:/usr/local/lib/php) [function.require-once]: failed to open stream: No such file or directory in /home/a3540980/public_html/ucp/main.php on line 20

Fatal error: require_once() [function.require]: Failed opening required ':/usr/local/lib/php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/a3540980/public_html/ucp/main.php on line 20
Moritz is offline
Reply With Quote
View Public Profile Visit Moritz's homepage!
 
Old 11-30-2009, 04:38 AM Re: Parse error
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,384
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
I'd guess you have the paths wrong in that case.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-30-2009, 06:20 AM Re: Parse error
Moritz's Avatar
Average Talker

Posts: 24
Name: Daniel Moritz
Location: Sweden
Trades: 0
OKay, so now i fixed that. But now all that shows is "MySQL Error:" and anothing after that
Moritz is offline
Reply With Quote
View Public Profile Visit Moritz's homepage!
 
Old 11-30-2009, 06:36 AM Re: Parse error
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,384
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
In the absence of any useful information, I'll guess at there being an error in something to do with getting data from the MySql server.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-30-2009, 06:48 AM Re: Parse error
Moritz's Avatar
Average Talker

Posts: 24
Name: Daniel Moritz
Location: Sweden
Trades: 0
Kinda odd that it just says MySQL Error:
Theres probably a connection error since i tried to enter the wrong password, and same error came up.

Last edited by Moritz; 11-30-2009 at 06:53 AM..
Moritz is offline
Reply With Quote
View Public Profile Visit Moritz's homepage!
 
Old 11-30-2009, 06:54 AM Re: Parse error
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
Well, investigate!
Look at the result of mysql_error()...
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 11-30-2009, 06:59 AM Re: Parse error
Moritz's Avatar
Average Talker

Posts: 24
Name: Daniel Moritz
Location: Sweden
Trades: 0
Its a connection error. I got this now when i changed some stuff.

MySQL Error: Access denied for user 'a3540980_samp1'@'10.0.0.10' (using password: YES)

So its a connection error. Though i dont get why the hell it wont connect, I use everything right.

If you wanna see it http://tesst.netau.net/ucp/

Last edited by Moritz; 11-30-2009 at 07:03 AM..
Moritz is offline
Reply With Quote
View Public Profile Visit Moritz's homepage!
 
Old 11-30-2009, 07:03 AM Re: Parse error
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,384
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Nope! That's a password or username error.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-30-2009, 07:04 AM Re: Parse error
Moritz's Avatar
Average Talker

Posts: 24
Name: Daniel Moritz
Location: Sweden
Trades: 0
Ok, i'll just keep trying then : /
Moritz is offline
Reply With Quote
View Public Profile Visit Moritz's homepage!
 
Old 11-30-2009, 07:11 AM Re: Parse error
Moritz's Avatar
Average Talker

Posts: 24
Name: Daniel Moritz
Location: Sweden
Trades: 0
Set me as noob of the week! There was a space in my password. Thanks guys for wasting time on me. Now i know where to hang out to get help and other stuff. Always been searching for a active webmaster community, and this is simply the best. Bookmarked!!
Moritz is offline
Reply With Quote
View Public Profile Visit Moritz's homepage!
 
Reply     « Reply to Parse error
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.33369 seconds with 12 queries