Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 05-26-2009, 05:12 PM PHP Copyright update
Banned

Posts: 315
Name: Doug
Trades: 1
I am trying to do what should be an Extremely simple PHP call.

Copyright © 2007- [PHP] echo date('Y'); [PHP]

Using the correct tags of course.

What I am getting on the screen is the code, not the resulting YEAR.

I even tried changing it to PRINT and that did not work either.

I am pretty sure I have PHP on my server, though I am NOT sure which version yet.

This is in an HTML document. XHTML 1.0 Transitional.
with a content="text/html; charset=utf-8"

What did I forget?
marketingman100 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-26-2009, 05:20 PM Re: PHP Copyright update
VirtuosiMedia's Avatar
Web Design Made Simple

Posts: 1,228
Trades: 0
Save the file extension as php
__________________
Want new web resources every day? - Follow me on
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
VirtuosiMedia is offline
Reply With Quote
View Public Profile Visit VirtuosiMedia's homepage!
 
Old 05-26-2009, 05:25 PM Re: PHP Copyright update
Extreme Talker

Posts: 181
Name: David Jackson
Trades: 0
PHP Code:
Copyright © 2007- <?php echo date('Y'); ?>
works for me

to test

create an empty page

add the following

PHP Code:
<?php
 
phpinfo
();
 
?>
name the file info.php and browse for it through http

You should see lots of info
__________________

Please login or register to view this content. Registration is FREE
davidj is offline
Reply With Quote
View Public Profile
 
Old 05-26-2009, 05:57 PM Re: PHP Copyright update
Banned

Posts: 315
Name: Doug
Trades: 1
[Insert Brain Fart and Typo Here]

I remembered the PHP extension thing right after I posted. But it still wasn't working so I copy and pasted Davidj's code and compared it to what I had typed.

I had an extra space between the < and the ?PHP and PHP doesn't like that.

It's working just fine now!

Thanks for the help folks!
marketingman100 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to PHP Copyright update
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.94396 seconds with 12 queries