I seem to be getting a LOT of parse errors with my php scripts. there are two things they have in common: 1. they are downloaded and uploaded without modifying them. 2. they all seem to have "unexpected $end" e.g
QUOTE
Parse error: syntax error, unexpected $end in /home/random1/public_html/hsp/forum/webinstall.php on line 271
that example for webinstall.php, a script used to install SMF. I know that trap17 provides fantastico to install SMF, but I want to install SMF1.1RC3 to use with joomla-smf, which fantastico doesn't support. if I upload and install SMF the old fashioned way, I get a similar message. I do not modify my php scripts before uploading. If other people can use them fine, why can't I? Does it have something to do with an old version of php on the trap17 servers? Thanks in advance for any help!
Notice from BuffaloHELP:
Topic title should be descriptive to the topic point and all copied words in QUOTE tag.
I am running SMF 1.1 RC3. And it was upgraded from 1.0 version. Both install and upgrade were done over FTP upload (bypassing Fantastico!). And they work just fine.
I have added few mods for the board so they too are working just fine.
Before we go any further, how are you uploading to your hosting space? Have you unzip the whole thing in your local harddrive and uploading one by one style file upload? Or are you uploading the whole zip file and letting cPanel to unzip it? Which FTP software, if any, are you using and have you set "auto detection" for file types? -- this is because some SMF files need to be uploaded in BINARY mode and some in ASCII mode.
thanks for your help, BuffaloHELP, i read the FAQ on trap17 and saw that you didn't exactly support hosting of .zip files so I thought that cPanel would not let me unzip files. how wrong I was. and it wasn't just SMF board that I was getting parse errors on. I dropped the drupal part of my site cos i kept getting these parse errors. it seems as though the parse errors came from my FTP client, FireFTP (a firefox extension). I uploaded them as .zip and let cPanel unzip them and it worked just fine.
As a question, how would uploading a file in different modes affect the contents of a file? Don't the contents of files stay the same no matter how it gets sent to the server?
Some FTP programs are better than others when distinguishing from binary mode and ASCII mode. Since I am not using FireFTP I am going to make the following conclusion.
The actual software client, such as WsPro, SmartFTP, CuteFTP, FireZilla are designed to either automatically detect the file type or force to certain transfer mode.
But as far as I can tell, FireFTP lacks this capability and it forces to be in ASCII mode at all times. This is bad when it reads "\n" or a blank return as "end of line" which then "re-writes" as "END", the very same error you received.
In Binary mode, it transfers character by character. This method takes longer when uploading but since it is in Binary mode (zeros and ones) it does not "re-write" anything other than the original character.
When you visit some script support forum, they actually tell you which files to upload in Binary mode and which files in ASCII mode. This is also known as UTF-8 mode (auto, force, never).
Regarding not hosting ZIP files pertains to illegal files, such as cracks and keygens, MP3, unlicensed software, expletive materials and pictures. SMF is free license thus you can upload it as ZIP and use cPanel to extract.
For more information and discussion on cPanel ZIP and UNZIP, please look through our Tutorial section.
Topic resolved and closed.
Since this topic also deals with FireFTP (which I think it stinks! ) if you would like to continue this topic please PM a moderator.
Since Trap17's CP provide the individual site's owner with goodies like MySql and
PhpMyAdmin, chances are some will want to make use of them. Well, it's fine enough to get that
on one's host (Gee! Thanks a lot, Trap17...) Knowing how the usual geek react, it might be
expected that most people considering to make use of a database on their site will want to do most
of the tedious job of developing and testing on their own local system before sending the wrapped-up
result on their domain/subdomain. This involves four basic steps (sorry for the compuwi...
Is there any way to install custom fonts? Like I've got a few fonts here that I would like to
install for my website. Is there any way to install them? So how can I install them? Would it even
be possible to install them?...
ok when i try and access the page i want, iget the following error: Parse error: syntax error,
unexpected ' however, my page looks like this: QUOTE // Connects to your Database
$username = "evolved_creation"; $password = "mypasswordishere"; $hostname =
"localhost"; $dbh = mysql_connect($hostname, $username, $password) or
die("Unable to connect to MySQL"); $selected =
mysql_select_db("evolved_clancreation",$dbh) or die("Could not connect to DB");
mysql_close($dbh); //checks cookies to make sure they ar...
Hello everyone, I was wondering if anyone around here has successfully installed Joomla on their
Trap17 web space. If so, what was your solution to the session save path dilema? I attempted to make
a custom php.ini with no luck and also attempted to edit the htaccess.txt file. All of these
solutions yielded no result, my session save path is still not set, and I can't properly install
Joomla 1.0.13. Should I try using 1.5 RC4? I doubt that would matter, any advice or help is greatly
appreciated /laugh.gif" style="vertical-align:middle" emoid=":lol:" border="0" alt=...
I was wondering, and I am horrible with Cpanels mind you, how to install a new theme. I have an smf
discussion board and I decided to download a theme from the theme place for smf. So it downloads,
and appears in winrar. When I extract it, it comes with a big pile of files, with 2 folders:
Language, and Images. First question is: Do I install these somewhere in the 'File manager'
in cpanel? Ok if yes: Where? Third: Do the main files, language , and image go in different
places? Fourth: There is about 4584305834098 image files, is there a quicker way to get ...
Hi. Iīm having a real big problem installing ffmpeg on my site... Can any of you guys explain to
me (as if I was 10 years old) please... I would like to test it on one of my sites here @ trap 17
but I canīt install it... Thanks in advance...
i get error when i trayed to install joomla about the default premising check this out i have set
the file premising to 777 and to 755 and the same problem what to do where to fix this
http://zam.trap17.com/earn-money/installation/index.php and in my hosting plans i did see shell
access but i cant it at my cpanel why ??? ---UPDATE--- will i have been able to install joomla
thanks but i still asking about the shell account double post merged ...
I was trying to install IPB 2.3.3 for my forums database and this is the error message I got as I
was starting the installation. mySQL query error: CREATE TABLE ibf_admin_logs ( id bigint(20) NOT
NULL auto_increment, act varchar(255) default NULL, code varchar(255) default NULL, member_id
int(10) default NULL, ctime int(10) default NULL, note text NULL, ip_address varchar(255)
default NULL, PRIMARY KEY (id) ) TYPE=MyISAM; SQL error: Table 'ibf_admin_logs' already
exists SQL error code: 1050 Date: Wednesday 22nd of August 2007 02:25:45 AM I hav...
Hello! I have successfully installed a phpbb2 forum on my site... (HORRAY)... but now I am
trying to install EasyMod for it, but it is not working correctly. Has anyone had success with
this? If so, can you give me step-by-step instructions, maybe I am doing something wrong? I fill
out everything, including login information to my ftp, and get this message: QUOTE Testing FTP
access... 1) Logged in successfully FTP ERROR: could not cd to public_html/forum/phpbb2 You
successfully logged into the server, but could not change direcory (CD) to the easymod direct...
hi, i am trying to install ipb v 2.2.0, but when i go to the url where it is at (after i went
through setup) i get this error: QUOTE IPB WARNING array_merge() : Argument #2 is not an
array (Line: 473 of /sources/classes/class_session.php) IPB WARNING Invalid argument supplied for
foreach() (Line: 504 of /sources/classes/class_session.php) IPS Driver Error There appears to be an
error with the database. You can try to refresh the page by clicking here So i dont know whats
going on. if some1 could help, that would be great....
Ok well I have tried installing the simple user system. Now when I try to register I get the
following errror Unknown column 'id' in 'field list' How can I fix this? I really
must know!...
Hello! I was just wondering how I go about installing the phpbb forum on my site. I assume I
go somewhere from the CPanel? I think someone told me that the CPanel has something that installs
it for me automatically. Thank you!...
I downloaded the zip version of the SMF, from www.simplemachines.org I am using SmartFTP, to upload
the files. I created a folder, named Forum, and uploaded all the SMF files there. On the
simplemachines site, it tells me to type my site url followed by /forum/install.php, or whatever the
directory I installed it on is called. I tried that, and I come up with this on the page. Not
Found The requested URL /forum/smf1.1/install.php was not found on this server. Additionally, a 404
Not Found error was encountered while trying to use an ErrorDocument to handle the re...
am i allowed to upload a forum? one that is all coded in php, not a service, a completely scratch
forum. the company who made the templates is simplemachines and its an smf. it just documents, i
just need to know if i can use it. also, it doesnt let me access files i have uploaded......
Hey guy's, ive done as you said and tried to install my phpbb without fantastico. I have got to
the the install page then i get a mysql error QUOTE Warning: mysql_error(): supplied argument
is not a valid MySQL-Link resource in /home/tdm/public_html/forum/phpBB2/db/mysql4.php on line 330
Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in
/home/tdm/public_html/forum/phpBB2/db/mysql4.php on line 331 phpBB : Critical Error Could not
connect to the database Im not sure why this has happened as i have never really used mysql for ...
One is one I think everyone is getting. I tried to submit a support request but it says I have to
define a language. I click the button and I get a WHW error or something. Then it redirects me back
to the main page. Then at the bottom of the sumbit request page is says that this feature has not
been set up by a admin yet. I think everyone is getting this one. If so please say you are or if I
am alone. QUOTE Warning: mysql_connect() : Can't connect to local MySQL server through
socket '/var/lib/mysql/mysql.sock' (2) in /home/damen/public_html/phpBB/db/m...
Hello, I am having database errors. They started after yesterdays HDD change. Its all fine when i
refresh site, they not that often but still i get them. It says "could not connect to database". And
i also received mail from gamma.xisto.com which says: QUOTE There has been a problem with the
database! This is a notice email to let you know that SMF could not connect to the database,
contact your host if this continues. so i am contacting my host.....
Joomla shows this warning QUOTE Following PHP Server Settings are not optimal for Security
and it is recommended to change them: * PHP register_globals setting is `ON` instead of
`OFF` Well it shows two warnings but the other one i can change. Is this something
i, or you should be woried about or is it normal......
Ok, i am hosted here and i am trying to get the phpBB2 forums installed on my site. I have made a
database, i have uploaded all of the folders to the FTP. Now everytime i try to start the install,
it either says that there is a critical error, and that i have configured something wrong. Does
anybody know the Database Type i need to use? And any other help that you could tell me would be
appreciated. Thanks....
I am trying to put php forums on my site. I think the only ones around are these
http://www.phpbb.com correct? even if there not they seem to be what most people use. I currently
have proboards which deffinelty leaves alot to be desired. What I am wondering is after i download
the forums and upload them via ftp. Where do i upload them to? the Public_html folder? and if so
can i edit and/make boards and categoirs etc just from being an admin on those forums or do i need
to go through the buttons on my cpanel Labeled MySQL Databases, phpMyAdmin, PostgreSQL Database ...
Hey guys, I'm having a problem setting cookies with PHP. I am trying to implement a script that
will allow someone to log in and access members only pages on my website. One of the aspects is that
I have to place a cookie on that persons computer. I know that you can use the PHP function
setcookie() to place it on your computer. The problem is that wherever i have setcookie() in my PHP
code I get an error: " Warning: Cannot modify header information - headers already sent by (output
started at /home/runeco/public_html/cookie.php:6) in /home/runeco/public_html/cooki...
Hello its 15:40 and I login see if everything runs oke, and I see numerus things deleted my mysql is
working again. Whats going on? My Webpage couple websites got deleted, and server folder files now
whats going on? /sad.gif" style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" /> my
forum also give errors but mysql db stil there /sad.gif" style="vertical-align:middle" emoid=":("
border="0" alt="sad.gif" />......
hi, I have a problem with my PHP on my site. It just started happening now but i think the PHP
database some how corrupted its self. How can i reinstall the PHP or upgrade it to the latest PHP
version, please respond back as this is effecting alot of my PHP scripts. Thanks...
First of all, before anybody accuses me of hacking or whatnot, I have purchased an IPB 2.1.5
liscense. Okay..Anyway... I'm trying to install IPB 2.1.5, and I'm not completely sure what
to put in the most of the SQL boxes.. I'm not sure what to select the drop down as, nor am I
sure on what to put in the "SQL Host" field. Also, whenever I click "Proceed", I get this error:
QUOTE Warning! The following errors must be rectified before continuing! Please go back
and try again! Connection error: Host 'gamma.xisto.com' is blocked because...
Frontpage
- server sent a response that frontpage couldn parse (0)
When i try to upload my files from microsoft frontpage it keeps giving me an error message when it
is on the proccessing stage of upload saying that the server sent a response that frontpage could
not parse. I have already tried to reinstall the frontpage extentions but that didnt fix the
problem. It is not the aoolication because i have tried uploading it to another Frontpage
extentions server and it worked. my URL is www.metalmusic.trap17.com and if someone could please
help me fix this problem. thanks...
I am wondering how to install python on the server my site is on. I would like to know if it is
possible to do, if so, can i do it or do i have to have a admin do it, and if it is against TOS or
any other thing. I need to install this script because i need to do some things with google
(Sitemaps) and i may find it useful other places. But if it is not posible i can live without it....
I just installed the FI theme for phpbb..on my forums... I want to install Poll , Recent written
topics and a shoutbox in my forum's front page....I tried to install some shoutbox script but
something goes wrong..even i m following the instructions very carefully.Could anyone help me
regarding to this ??? thanks...
i am trying to install some mods to invision powerboard. This might seem like a really stupid
question but i am new to this. It tell me to go to source/codes on certain files to edit them. How
do i get to that in the file? Plz Help! Corrected the topic title ...
Looking for parse, errors, installing, smf, board
Searching Video's for parse, errors, installing, smf, board
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE
forum, Create your own topics, Ask Questions, track topics, setup
subscriptions & notifications and Get a Free Website w/ Email and FTP.