I bet this is simple for you, but for me...

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
maximize
Forum Newbie
Posts: 2
Joined: Mon Sep 10, 2007 8:02 pm

I bet this is simple for you, but for me...

Post by maximize »

Hi - I'm new to PHP.

I'm just trying to install a script from a vendor and I'm getting an error that seems weird...thought you might be able to help. Thanks in advance for that.

I'm trying to use a PHP include on my page here:

http://www.repeatable.com/teleseminar/mmwt_test.htm

The include is this code:

<?php include(“http://www.repeatable.com/EZPRO/index.php?SiteID=1”);?>

And I get this error:

Parse error: syntax error, unexpected ':' in /home/repeatab/public_html/teleseminar/mmwt_test.htm on line 22

Can you tell what's wrong. Error says ":" - but the only colon is required in the "http://"

Thanks again.

David
User avatar
Zoxive
Forum Regular
Posts: 974
Joined: Fri Apr 01, 2005 4:37 pm
Location: Bay City, Michigan

Post by Zoxive »

Parse error: syntax error, unexpected ':' in /home/repeatab/public_html/teleseminar/mmwt_test.htm on line 22
Show us line 22, and a few above and below it..
maximize
Forum Newbie
Posts: 2
Joined: Mon Sep 10, 2007 8:02 pm

Line 22

Post by maximize »

oops...that was dumb... Here you go:

15 <p>Once you've reviewed these products, please leave a <a href="http://www.the60dayexperiment.com/yat/?pa
ge=navig/index&cmp_id=75" target="_blank">testimonial
16 here</a> if
17 you're so inclined. <span class="red"><em>(If you do submit a testimonial, you'll receive all
18 teleseminars we do as a part of this series. That includes the mp3, the
19 transcript and any bonus package!)</em></span></p>
20 <p><strong>Here's just a few of the current testimonials. Be sure to add
21 yours below:</strong></p>
22 <?php include(“http://www.your-domain.com/EZPRO/index.php?SiteID=1”);?>
23 <p>Right click on the products below to save them to your hard drive.</p> <p>1) <a href="/dl/cindi.mp3
">Making
24 Money With Teleseminars Interview</a> with Cindi Dawson (mp3)</p>
25 <p>2) <a href="/dl/mmwt.pdf">Making Money With Teleseminars Interview</a> with Cindi Dawson (pdf)</p>
26 <p>3) <a href="/dl/60daystudyguide.pdf">Making Money With Teleseminars Interview
27 60-Day Experiment Study Guide</a> (pdf)</p>
28 <p>4) <a href="/dl/EasyPodcasting.pdf">Podcasting Made Easy</a> (pdf)</p>


dp
User avatar
Zoxive
Forum Regular
Posts: 974
Joined: Fri Apr 01, 2005 4:37 pm
Location: Bay City, Michigan

Post by Zoxive »

Your quotes are not normal double quotes.. look

Code: Select all

<?php include(“http://www.your-domain.com/EZPRO/index.php?SiteID=1”);?>
And may i ask why you are including with http ?
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1 wrote:2. Use descriptive subjects when you start a new thread. Vague titles such as "Help!", "Why?" are misleading and keep you from receiving an answer to your question.
Post Reply