Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 01-20-2005, 07:44 PM   #1
GiantGnome
Confirmed User
 
Join Date: Jan 2004
Location: Nebraska
Posts: 4,344
PHP help please

heres the error
Parse error: parse error, unexpected T_ECHO, expecting ',' or ';'

and here is the line
"Free ", $myTxt[$pick], " E&middot;Zine</span></a>\n";

how do i fix it?
Thank you
__________________
NOOOOOOOOOOOOOOOOOOOOOOO-Darth Vader
GiantGnome is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-20-2005, 07:44 PM   #2
Steen2
Confirmed User
 
Join Date: Feb 2004
Location: Vancouver, Canada
Posts: 7,662
CTR + ALT + DEL


Does this work still?
__________________
ICQ: 2262.73945
Steen2 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-20-2005, 07:48 PM   #3
d00t
Confirmed User
 
Industry Role:
Join Date: Sep 2002
Location: In your mind
Posts: 3,766
google it..
d00t is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-20-2005, 07:50 PM   #4
FlexxAeon
Confirmed User
 
FlexxAeon's Avatar
 
Industry Role:
Join Date: May 2003
Posts: 3,765
i think it needs to be "Free ". $myTxt[$pick]. " E&middot;Zine</span></a>\n";

but i'm still an intermediate on PHP so i could be wrong
__________________
flexx [dot] aeon [at] gmail
FlexxAeon is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-20-2005, 07:50 PM   #5
Cogitator
Confirmed User
 
Join Date: Feb 2002
Location: Florida
Posts: 672


You have to show the lines before and after it. No one can tell what you're trying to do in that one line.
__________________
- this space intentionally left blank -
Cogitator is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-20-2005, 07:55 PM   #6
GiantGnome
Confirmed User
 
Join Date: Jan 2004
Location: Nebraska
Posts: 4,344
Quote:
Originally Posted by Cogitator


You have to show the lines before and after it. No one can tell what you're trying to do in that one line.
fine, heres before and after.

echo "<span style=\"font-size: 16pt; line-height: 120%; font-family: Times New Roman, Arial, Courier, sans-serif\">\n"
echo "Free ", $myTxt[$pick], " E&middot;Zine</span></a>\n";
echo "</div>\n";
__________________
NOOOOOOOOOOOOOOOOOOOOOOO-Darth Vader
GiantGnome is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-20-2005, 07:56 PM   #7
Damian_Maxcash
So Fucking Banned
 
Join Date: Oct 2002
Location: MaxCash.com
Posts: 12,745
echo "<span style=\"font-size: 16pt; line-height: 120%; font-family: Times New Roman, Arial, Courier, sans-serif\">\n";
echo "Free ", $myTxt[$pick], " E&middot;Zine</span></a>\n";
echo "</div>\n";
Damian_Maxcash is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-20-2005, 07:56 PM   #8
StuartD
Sofa King Band
 
StuartD's Avatar
 
Join Date: Jul 2002
Location: Outside the box
Posts: 29,903
echo "<span style=\"font-size: 16pt; line-height: 120%; font-family: Times New Roman, Arial, Courier, sans-serif\">\n";
echo "Free ", $myTxt[$pick], " E&middot;Zine</span></a>\n";
echo "</div>\n";

You're missing the ; after the first line.
StuartD is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-20-2005, 08:05 PM   #9
GiantGnome
Confirmed User
 
Join Date: Jan 2004
Location: Nebraska
Posts: 4,344
Thank you damian and Stuart.
__________________
NOOOOOOOOOOOOOOOOOOOOOOO-Darth Vader
GiantGnome is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-20-2005, 08:07 PM   #10
Cogitator
Confirmed User
 
Join Date: Feb 2002
Location: Florida
Posts: 672
didn't mean to be rude. but it is helpful to see more than just one line. glad the problem is fixed
__________________
- this space intentionally left blank -
Cogitator is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-20-2005, 08:14 PM   #11
GiantGnome
Confirmed User
 
Join Date: Jan 2004
Location: Nebraska
Posts: 4,344
Quote:
Originally Posted by Cogitator
didn't mean to be rude. but it is helpful to see more than just one line. glad the problem is fixed
Thats ok. I didnt think you were rude.
__________________
NOOOOOOOOOOOOOOOOOOOOOOO-Darth Vader
GiantGnome is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-20-2005, 08:18 PM   #12
Azlord
Confirmed User
 
Azlord's Avatar
 
Industry Role:
Join Date: Dec 2003
Location: City... City of Satan
Posts: 2,651
It's easier and a lot cleaner to break out of the php and then use short hand for echoing it out

<?=$blah?>
That way you don't have to escape a ton of " marks.

<span style="font-size: 16pt; line-height: 120%; font-family: Times New Roman, Arial, Courier, sans-serif">
Free <?=$myTxt[$pick]?> E&middot;Zine</span></a>
</div>
Azlord is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-20-2005, 08:30 PM   #13
Linguist
Confirmed User
 
Join Date: Apr 2004
Location: Toronto, ON
Posts: 1,706
Quote:
Originally Posted by NichePay - StuartD
echo "<span style=\"font-size: 16pt; line-height: 120%; font-family: Times New Roman, Arial, Courier, sans-serif\">\n";
echo "Free ", $myTxt[$pick], " E&middot;Zine</span></a>\n";
echo "</div>\n";

You're missing the ; after the first line.
You don't need the ; cause echo can span several lines

Try this as was suggested above:

echo "Free ".$myTxt[$pick]."E&middot;Zine</span></a>\n";
__________________
315-310
Linguist is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-20-2005, 08:51 PM   #14
Varius
Confirmed User
 
Industry Role:
Join Date: Jun 2004
Location: New York, NY
Posts: 6,890
Forget echoing html ever again. Start doing this NOW, you'll thank me in the future

Use Smarty - a templating engine for PHP.

http://smarty.php.net/
__________________
Skype variuscr - Email varius AT gmail
Varius is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-21-2005, 01:38 PM   #15
GiantGnome
Confirmed User
 
Join Date: Jan 2004
Location: Nebraska
Posts: 4,344
what about this one?

if (stristr($_SERVER["SERVER_SOFTWARE"], "apache") !hahahaha false)
include( "http://" . $_SERVER["SERVER_NAME"] . "/scripts/febfpa2link.html" );

?>
__________________
NOOOOOOOOOOOOOOOOOOOOOOO-Darth Vader
GiantGnome is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-21-2005, 01:43 PM   #16
StuartD
Sofa King Band
 
StuartD's Avatar
 
Join Date: Jul 2002
Location: Outside the box
Posts: 29,903
Quote:
Originally Posted by GiantGnome
what about this one?

if (stristr($_SERVER["SERVER_SOFTWARE"], "apache") !hahahaha false)
include( "http://" . $_SERVER["SERVER_NAME"] . "/scripts/febfpa2link.html" );

?>
I'm asuming you have a double equal sign after that !

Don't... it's just !=

example:

Code:
if (stristr($_SERVER["SERVER_SOFTWARE"], "apache") != false)
        include( "http://" . $_SERVER["SERVER_NAME"] . "/scripts/febfpa2link.html" );
StuartD is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-21-2005, 01:47 PM   #17
Dalai lama
Strength and Honor
 
Join Date: Jul 2004
Location: Europe
Posts: 16,540
alt + 4 should work
__________________

A program you can trust.
Gallerybooster Run multiply TGPs of 1 script
Dalai lama is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-21-2005, 01:54 PM   #18
GiantGnome
Confirmed User
 
Join Date: Jan 2004
Location: Nebraska
Posts: 4,344
Quote:
Originally Posted by NichePay - StuartD
I'm asuming you have a double equal sign after that !

Don't... it's just !=

example:

Code:
if (stristr($_SERVER["SERVER_SOFTWARE"], "apache") != false)
        include( "http://" . $_SERVER["SERVER_NAME"] . "/scripts/febfpa2link.html" );
Thanks again!
__________________
NOOOOOOOOOOOOOOOOOOOOOOO-Darth Vader
GiantGnome is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-21-2005, 03:30 PM   #19
GiantGnome
Confirmed User
 
Join Date: Jan 2004
Location: Nebraska
Posts: 4,344
Hey Stuart, please icq me if you can. 172768566
__________________
NOOOOOOOOOOOOOOOOOOOOOOO-Darth Vader
GiantGnome is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-21-2005, 03:47 PM   #20
StuartD
Sofa King Band
 
StuartD's Avatar
 
Join Date: Jul 2002
Location: Outside the box
Posts: 29,903
Quote:
Originally Posted by GiantGnome
Hey Stuart, please icq me if you can. 172768566
uh oh.. I get the feeling I'll be doing php support in the very near future

ICQ sent
StuartD is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.