Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 [2]

Author Topic: T_CONSTANT_ENCAPSED_STRING in /home/myplanet/public_html/Earth/snews.php  (Read 8389 times)

Joost

  • Guest
Re: T_CONSTANT_ENCAPSED_STRING in /home/myplanet/public_html/Earth/snews.php
« Reply #15 on: September 03, 2008, 06:29:01 am »

I think there is some problem with my server, because even that is giving me this error

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/myplanet/public_html/Earth/snews.php on line 1012

I don't think that's the issue, because you are editing the file (probably) on your own computer. That's where you and I can see the typos. For that reason, I am thinking about malfunctioning file archiver used for unzipping. I use zip 7. But there are many other good archivers out there.
I don't know what to think else of.
Well i have to log out. Maybe you or someone else finds the solution.

Regards,

joost
Logged

impact

  • Newbie
  • *
  • Karma: 0
  • Posts: 11
Re: T_CONSTANT_ENCAPSED_STRING in /home/myplanet/public_html/Earth/snews.php
« Reply #16 on: September 03, 2008, 06:52:20 am »

Thank you so much for helping me. I used zip 7 and still  :'(

any ways, thank you for your time.
Logged

steerpike

  • Newbie
  • *
  • Karma: 13
  • Posts: 38
Re: T_CONSTANT_ENCAPSED_STRING in /home/myplanet/public_html/Earth/snews.php
« Reply #17 on: September 03, 2008, 06:57:26 am »

Yup, I download a fresh package. I use Macro Media dreamweaver MX 2004.

Not sure what the problem is with your issue.. but I know one thing for sure..  If I'm just modifying code and not doing wysiwyg, I am NOT using Dreamweaver.

Use something like Notepad++, Programmer's Notepad, or RJ TextEd.

I know this doesn't help much.. but who knows, you never can tell what type of damage Dreamweaver may wreak.
« Last Edit: September 03, 2008, 07:00:42 am by steerpike »
Logged

impact

  • Newbie
  • *
  • Karma: 0
  • Posts: 11
Re: T_CONSTANT_ENCAPSED_STRING in /home/myplanet/public_html/Earth/snews.php
« Reply #18 on: September 03, 2008, 02:07:52 pm »

Yup, it works when I use textpad for editing.   ;D
Logged

Keyrocks

  • Doug
  • ULTIMATE member
  • ******
  • Karma: 449
  • Posts: 6020
  • Semantically Challenged
    • snews.ca
Re: T_CONSTANT_ENCAPSED_STRING in /home/myplanet/public_html/Earth/snews.php
« Reply #19 on: September 03, 2008, 03:50:43 pm »

I downloaded the package myself, and I could not find the errors that came with your package. So my guess is, you downloaded the package right after the wrong package was uploaded. It seems the administrator found out and uploaded the right package.
So I suggest to download the package again.

CLARIFICATION:
I refreshed the Official Download yesterday - Sept.02.08 - ONE TIME ONLY with only ONE Patch added and one redundant string removed... neither of which have anything to do with the problem noted by impact. Line 1198 (snews.php) in the Download package was (and is) as Joost posted it... it was not (and is not) as impact posted from his file. The updated file-set was tested before uploading and it worked fine.

Our advice to anyone who attempts to edit ANY code file is... USE A CODE EDITOR that DOES NOT write or inject any code into your file on its own. NEVER open a file in any WYSIWYG editor unless you are absolutely sure you have its auto-generation functionality disabled so that it will only add or change code that you add or change manually. WYSIWYG editors (from my experience at least) are not suitable for working with PHP and MySQL files.
Logged
Do it now... later may not come.
-------------------------------------------------------------------------------------------------
sNews 1.6 MESU | sNews 1.6 MEMU

steerpike

  • Newbie
  • *
  • Karma: 13
  • Posts: 38
Re: T_CONSTANT_ENCAPSED_STRING in /home/myplanet/public_html/Earth/snews.php
« Reply #20 on: September 04, 2008, 03:57:18 am »

Yup, it works when I use textpad for editing.   ;D
Glad you got it working Impact!
Logged

impact

  • Newbie
  • *
  • Karma: 0
  • Posts: 11
Re: T_CONSTANT_ENCAPSED_STRING in /home/myplanet/public_html/Earth/snews.php
« Reply #21 on: September 04, 2008, 03:58:09 am »

Thank you,
Logged
Pages: 1 [2]