Log in Register FAQ Memberlist Search Welcome to RCF - WHF Forum Index
alt : test.swf
Welcome to RCF - WHF
4fx3.gif 
calendar_open_closeCalendar 
Help with php coding...
Post new topic   Reply to topic View previous topic :: View next topic
Goto page: 1, 2  Next
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support Add To Bookmarks
Help with php coding...
PostPosted: 04/16/2007 5:42 AM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 10:02 AM
Location: Birmingham, UK.
greatbrE.gif
My co admin who I work with on djpassion hasn't been about for a month or so but I needed something changed on his personal website just in the index, so removed the code myself but now when going to his index page I get the following error

Code:
<br />
<b>Parse error</b>:  syntax error, unexpected T_VARIABLE in <b>/home/djpassio/public_html/reasonfreak/index.php</b> on line <b>1</b><br />


I used windows notepad to edit the file, I think it didn't save the coding in the correct format (like it wrapped the word coding) hence why there is a syntax error on the first line I think dontknow  maybe it’s something to do with it not  opening the page or exiting the page corretcly. Bad news is that I never made a backup of the file before I overwritten it so I can't restore the original Sad

How do I fix this???

Here is the index pages coding

Code:
<?php require_once("includes/header.php") ;?><h2>Welcome to my site</h2><p>Hello and welcome to the website of website designer / trance DJ / music producer, Karl Schaap, aka Reasonfreak.</p><h3>DJing / Music Production</h3><p>I started getting into dance music around 1995-1996. What more than likely, as I remember, got me into the scene was after listening to Pete Tong’s radio one essential selection show around that time. I also started to Danny Rampling’s show where he was playing the psychedelic trance on his shows, I instantly became hooked with this style of music and decided to invest in a set of turntables and a mixer in late 1996. Not knowing that Technics are the godsend of decks the decks I got were a set of Kam-Bdx180 belt drives (Shame on you I hear you say, but I soon realised that belts sucked, but I had to admit those turntables did the job for a beginner, like I was then). The mixer was worse, a 2 channel &quot;commando&quot; style mixer, like it was taken out of the army haha, with no eq, just a gain control. I have no idea how I mixed on that, I really don’t.</p><p>This made me make the decision to buy a better mixer, so I invested in a 3 channel numark mixer with full eq control, unfortunately I can’t remember the exact name of it now but it was definitely a lot better than the 2 channel army mixer I had, in the bin that went.</p><p>After a while of practising I decided to try and get myself gigs around the local area in  1998, so I asked around and got to play in a few bars, house party’s, the local club and a few festivals. The area where I live did not have much to offer so I was left dormant to my bedroom, blasting the tunes out of the window and annoying the neighbours.</p><p>This was on-going up until the middle of 1999 when I started getting into production. I started messing around with the ejay packs and the program music 2000. (got to start somewhere :$), then I looked into getting a copy of <a href="http://www.flstudio.com" title="FL Studio" target="_blank">fruityloops</a>. I started studying how the program worked and making a few songs with fruity, basically looking at other peoples tracks and how they were done and implementing that into my own work.</p><p>After a few years of working with fruity I went on and got myself a copy of <a href="http://www.propellerheads.se" title="Reason" target="_blank">propellerheads Reason</a> around the end of 2001. After reading reviews in magazines about how good it sounded. And it did, although I did find it very confusing at first.</p><p>So I left fruity in the background (no, it didn’t go in the bin that one lol) and started concentrating on Reason. I must admit it took me ages to get to grips with the program, it was tough. But again, like fruity I was looking at other songs and studying how they were done, also reading umpteen tutorials on the web and in magazines.</p><p>In 2005 I started figuring out how the program worked (yes it took me that long :O). So I was able to program synths and understand what each different control meant. I self-taught myself and stuck at it, not giving up, even though there was times I was not far away from doing so.</p><p>I have a number of productions that I have created over the years in the <a href="productions.php">production</a> section of the site. Please check them out :) </p><p><?php$banner1 = "banners/bnr_djpassion468-60.jpg";$url1 = "http://www.djpassion.co.uk";$banner2 = "banners/djpassion_bnr468_60_v2.jpg";$url2 = "http://www.djpassion.co.uk";$change = rand(1,2);$bannerpic = ${'banner'.$change};$location = ${'url'.$change};echo "<a href=".$location." target='_blank'><img src=".$bannerpic." border='0' alt='DJ Passion Internet Radio' /></a>";?></p><h3>Website design</h3><p>I started creating websites around 2000 after going to college to study graphic design, they did a short course on <a href="http://www.adobe.com/products/dreamweaver" title="Dreamweaver" target="_blank">dreamweaver</a>, the web design program, and it really got me interested.</p><p>I also was helping out on a local community project in 2001 where I had to design pages to display photos of the area. It made me think of progressing it further, at that point I had no idea what <acronym title="Hyper text mark up language">html</acronym> was, as it was all copy and paste with a <acronym title="What you see is what you get">WYSIWYG</acronym> editor.</p><p>After a while of not looking further into it I decided to give it another go in early 2005, when I got broadband for my <abbr title="Personal Computer">PC</abbr>. I started with an early project in June with my friend James Beaton, called speakerblasterz radio, an online radio station playing trance, techno etc. The first site I created was, to be honest, terrible lol, as then I still didn’t know much about html, <acronym title="Hypertext Preprocessor">php</acronym>, and <acronym title="Cascading style sheets">css</acronym> coding languages at that time.</p><p>The site went though numerous re-designs as I was still learning myself. Again like music production I was helped by the tutorials the web has to offer.</p><p>Speakerblasterz radio ended at the end of 2005 where I started looking into a new internet radio station. And to also teach myself a bit more about web design. So in March 2006, with the help of a DJ from Birmingham called Christopher Powell and a bit more advanced knowledge on the html coding language we launched DJ Passion Radio. This site is still up and running to this day.</p><p>I also started learning myself PHP server scripting language and CSS design in 2006 again with help of tutorials. The internet is a great resource for teaching you these and I have included a number of links to sites that I have used to help me in my link section.</p><p>I've created a few websites for friends as well, personal sites of DJs, you can also find  these in the links section as well.</p><p>Thank you for checking out my website.</p><?php require_once("includes/footer.php");?>


As you can see all of the coding is close together! It didn't look like that the first time I opened the file using notepad.

Please help... I’d like to get this fixed before he notices ** sssssh* lol  binky
Back to Top
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
Re: Help with php coding...
PostPosted: 04/16/2007 8:02 AM Reply with quote
Citation
poomerio
Citation
Posts 407
Word Cnt. 10,993
BDay May 28
Sign Gemini
Sex Sex:Male
Joined: Feb 25, 2007
Local time: 9:02 AM
Location: SE England
greatbrE.gif
Try and find a backup of the file, and don't use Notepad.
Use Wordpad or Crimson Edition or something like that.

- Poomie
Back to Top
View user's profile Find all posts by poomerio Send private message   Phoogle Map
Re: Help with php coding...
PostPosted: 04/16/2007 9:10 AM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 10:02 AM
Location: Birmingham, UK.
greatbrE.gif
I used to get this happen a lot when using notepad but it stopped doing it and I just thought it was my pc or something therefore I didn't think to backup the file before I removed a djpassion.co.uk Google analytics code. If that dam notepad didn't make the coding go all funny it would've been job done.  Since this happened though I’ve been using a php, html etc editor called  Aranae and haven't come into the problem I get with notepad ever since.

Nightrider didn't know what Aranae is so here's a link for those who what to check it out http://www.christopher-powell.co.uk/private/Software/araneae.rar

Still though, I DO NOT have a backup of the index file I messed up...

I know this is nothing to do with area51/phpbb2/easymod but there's no where else to post this Sad
Back to Top
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
Re: Help with php coding...
PostPosted: 04/16/2007 9:32 AM Reply with quote
Citation
poomerio
Citation
Posts 407
Word Cnt. 10,993
BDay May 28
Sign Gemini
Sex Sex:Male
Joined: Feb 25, 2007
Local time: 9:02 AM
Location: SE England
greatbrE.gif
Do you still have the original window open? If you did, then you could Undo (Edit > Undo) all the changes.

- Poomie
Back to Top
View user's profile Find all posts by poomerio Send private message   Phoogle Map
Re: Help with php coding...
PostPosted: 04/16/2007 10:22 AM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 10:02 AM
Location: Birmingham, UK.
greatbrE.gif
No. I did this a few weeks back. I had forgot all about it until today
Back to Top
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
Re: Help with php coding...
PostPosted: 04/16/2007 10:30 AM Reply with quote
Citation
poomerio
Citation
Posts 407
Word Cnt. 10,993
BDay May 28
Sign Gemini
Sex Sex:Male
Joined: Feb 25, 2007
Local time: 9:02 AM
Location: SE England
greatbrE.gif
Well, without a backup, all the lines and spaces need to be put back in manually.
Send me the file and I'll try my best.
PM me if you want to add me on MSN to send it.

- Poomie
Back to Top
View user's profile Find all posts by poomerio Send private message   Phoogle Map
Re: Help with php coding...
PostPosted: 04/16/2007 11:37 AM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 10:02 AM
Location: Birmingham, UK.
greatbrE.gif
Poomerio wrote:
Send me the file and I'll try my best.


Much appreciated Poomerio

The index.php file is in the winrar folder

http://www.reasonfreak.co.uk/index.rar
Back to Top
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
Re: Help with php coding...
PostPosted: 04/16/2007 1:24 PM Reply with quote
Citation
poomerio
Citation
Posts 407
Word Cnt. 10,993
BDay May 28
Sign Gemini
Sex Sex:Male
Joined: Feb 25, 2007
Local time: 9:02 AM
Location: SE England
greatbrE.gif
Done.
I ironed out all the flaws in the PHP parts, and I even starightened up the HTML for you Very Happy

MegaUploaded it - Since my server is down

- Poomie
Back to Top
View user's profile Find all posts by poomerio Send private message   Phoogle Map
Re: Help with php coding...
PostPosted: 04/16/2007 5:49 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 5:02 AM
Location: St Pete, FL
peace.gif
You might want to take a look at this too.  I used 1st Page 2000's
Tidy utility to format it in a more human looking format.  I didn't correct any errors in the code though...

Code:
<?php require_once("includes/header.php") ;?>
<h2>Welcome to my site</h2>

<p>Hello and welcome to the website of website designer / trance DJ / music producer, Karl Schaap, aka Reasonfreak.</p>

<h3>DJing / Music Production</h3>

<p>I started getting into dance music around 1995-1996. What more than likely, as I remember, got me into the scene was after listening to Pete Tong&acirc;&trade;s radio one essential selection show
around that time. I also started to Danny Rampling&acirc;&trade;s show where he was playing the psychedelic trance on his shows, I instantly became hooked with this style of music and decided to
invest in a set of turntables and a mixer in late 1996. Not knowing that Technics are the godsend of decks the decks I got were a set of Kam-Bdx180 belt drives (Shame on you I hear you say, but I
soon realised that belts sucked, but I had to admit those turntables did the job for a beginner, like I was then). The mixer was worse, a 2 channel "commando" style mixer, like it was taken out of
the army haha, with no eq, just a gain control. I have no idea how I mixed on that, I really don&acirc;&trade;t.</p>

<p>This made me make the decision to buy a better mixer, so I invested in a 3 channel numark mixer with full eq control, unfortunately I can&acirc;&trade;t remember the exact name of it now but it
was definitely a lot better than the 2 channel army mixer I had, in the bin that went.</p>

<p>After a while of practising I decided to try and get myself gigs around the local area in 1998, so I asked around and got to play in a few bars, house party&acirc;&trade;s, the local club and a
few festivals. The area where I live did not have much to offer so I was left dormant to my bedroom, blasting the tunes out of the window and annoying the neighbours.</p>

<p>This was on-going up until the middle of 1999 when I started getting into production. I started messing around with the ejay packs and the program music 2000. (got to start somewhere :$), then I
looked into getting a copy of <a href="http://www.flstudio.com" title="FL Studio" target="_blank">fruityloops</a>. I started studying how the program worked and making a few songs with fruity,
basically looking at other peoples tracks and how they were done and implementing that into my own work.</p>

<p>After a few years of working with fruity I went on and got myself a copy of <a href="http://www.propellerheads.se" title="Reason" target="_blank">propellerheads Reason</a> around the end of 2001.
After reading reviews in magazines about how good it sounded. And it did, although I did find it very confusing at first.</p>

<p>So I left fruity in the background (no, it didn&acirc;&trade;t go in the bin that one lol) and started concentrating on Reason. I must admit it took me ages to get to grips with the program, it
was tough. But again, like fruity I was looking at other songs and studying how they were done, also reading umpteen tutorials on the web and in magazines.</p>

<p>In 2005 I started figuring out how the program worked (yes it took me that long :O). So I was able to program synths and understand what each different control meant. I self-taught myself and
stuck at it, not giving up, even though there was times I was not far away from doing so.</p>

<p>I have a number of productions that I have created over the years in the <a href="productions.php">production</a> section of the site. Please check them out :)</p>

<p><?php$banner1 = "banners/bnr_djpassion468-60.jpg";$url1 = "http://www.djpassion.co.uk";$banner2 = "banners/djpassion_bnr468_60_v2.jpg";$url2 = "http://www.djpassion.co.uk";$change =
rand(1,2);$bannerpic = ${'banner'.$change};$location = ${'url'.$change};echo "&lt;a href=".$location." target='_blank'?><img src=".$bannerpic." border='0' alt='DJ Passion Internet Radio'>";?&gt;</p>

<h3>Website design</h3>

<p>I started creating websites around 2000 after going to college to study graphic design, they did a short course on <a href="http://www.adobe.com/products/dreamweaver" title="Dreamweaver" target=
"_blank">dreamweaver</a>, the web design program, and it really got me interested.</p>

<p>I also was helping out on a local community project in 2001 where I had to design pages to display photos of the area. It made me think of progressing it further, at that point I had no idea what
<acronym title="Hyper text mark up language">html</acronym> was, as it was all copy and paste with a <acronym title="What you see is what you get">WYSIWYG</acronym> editor.</p>

<p>After a while of not looking further into it I decided to give it another go in early 2005, when I got broadband for my <abbr title="Personal Computer">PC</abbr>. I started with an early project
in June with my friend James Beaton, called speakerblasterz radio, an online radio station playing trance, techno etc. The first site I created was, to be honest, terrible lol, as then I still
didn&acirc;&trade;t know much about html, <acronym title="Hypertext Preprocessor">php</acronym>, and <acronym title="Cascading style sheets">css</acronym> coding languages at that time.</p>

<p>The site went though numerous re-designs as I was still learning myself. Again like music production I was helped by the tutorials the web has to offer.</p>

<p>Speakerblasterz radio ended at the end of 2005 where I started looking into a new internet radio station. And to also teach myself a bit more about web design. So in March 2006, with the help of a
DJ from Birmingham called Christopher Powell and a bit more advanced knowledge on the html coding language we launched DJ Passion Radio. This site is still up and running to this day.</p>

<p>I also started learning myself PHP server scripting language and CSS design in 2006 again with help of tutorials. The internet is a great resource for teaching you these and I have included a
number of links to sites that I have used to help me in my link section.</p>

<p>I've created a few websites for friends as well, personal sites of DJs, you can also find these in the links section as well.</p>

<p>Thank you for checking out my website.</p>

<?php require_once("includes/footer.php");?>

munky2
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: Help with php coding...
PostPosted: 04/16/2007 6:22 PM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 10:02 AM
Location: Birmingham, UK.
greatbrE.gif
Poomerio wrote:
Done.
I ironed out all the flaws in the PHP parts, and I even starightened up the HTML for you Very Happy

MegaUploaded it - Since my server is down

- Poomie


Kewl. It's loads correctly now so thank you Poomie. I'm glad this is fixed Very Happy

I need to learn html/php more 8)
Back to Top
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
 Post new topic  Reply to topic
Information
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
All times are GMT - 5 Hours
Goto page: 1, 2  Next
Page 1 of 2


Add To Bookmarks

 
  
  


  Google

Powered by phpBB © 2001, 2005 phpBB Group

Page generation time: 0.1467s (PHP: 65% - SQL: 35%) - SQL queries: 58 - GZIP disabled - Debug on