Go Back   WarriorForum - Internet Marketing Forums > The Warrior Forum > Main Internet Marketing Discussion Forum
Register Blogs FAQ Social Groups CalendarHelp Desk

Reply
 
LinkBack Thread Tools
Old 07-12-2009, 03:22 PM   #1
Marketing Ninja
 
Join Date: Dec 2008
Location: The Netherlands
Posts: 82
Thanks: 8
Thanked 4 Times in 4 Posts
Default Website Building Expertise

Hey all, I just have a quick question that I want some thoughts on because I can't figure out why this is NOT working.

My website and hosting service recognize both PHP codes and ASP codes inside my websites and I have used them several times. But when I want to insert a piece of PHP code for the date? Dreamweaver recognizes it, but the Internet does not! How can this be?

Can someone please tell me how they insert the date/time codes on their webpages. Im trying to optimize my landing page by inserting actual time with the offer to boost response.

The php codes I use can be found all over the net so I'm quite positive that Im using the right ones. So thats not the problem, maybe my Godaddy host is? Who can explain this problem.

I'm very curious...
Dennis Miedema is offline   Reply With Quote
Old 07-12-2009, 03:36 PM   #2
HyperActive Warrior
 
dreamtab's Avatar
 
Join Date: Dec 2007
Posts: 255
Thanks: 12
Thanked 8 Times in 8 Posts
Social Networking View Member's Twitter Profile 
Contact Info
Send a message via AIM to dreamtab Send a message via MSN to dreamtab Send a message via Yahoo to dreamtab Send a message via Skype™ to dreamtab
Default Re: Website Building Expertise

I use JavaScript for date. Can you post php code here?

SEnuke Outsourcing
SEnuke Outsourcing $99 Only

Full-Time VA Available. 3 years IM, SEO, WordPress, Customer Support experience.
dreamtab is offline   Reply With Quote
Old 07-13-2009, 12:04 AM   #3
Marketing Ninja
 
Join Date: Dec 2008
Location: The Netherlands
Posts: 82
Thanks: 8
Thanked 4 Times in 4 Posts
Default Re: Website Building Expertise

Here's the date code I tried to use:

<?php echo date('l, M d, Y'); ?>

Here's the time code I tried to use:


<?php echo date('g:i A ');?>
Dennis Miedema is offline   Reply With Quote
Old 07-14-2009, 04:36 PM   #4
Marketing Ninja
 
Join Date: Dec 2008
Location: The Netherlands
Posts: 82
Thanks: 8
Thanked 4 Times in 4 Posts
Default Re: Website Building Expertise

any thoughts?
Dennis Miedema is offline   Reply With Quote
Old 07-14-2009, 04:44 PM   #5
I have a lame list.
War Room Member
 
Dan C. Rinnert's Avatar
 
Join Date: Jul 2008
Location: One Second into the Future
Posts: 4,297
Blog Entries: 1
Thanks: 837
Thanked 2,307 Times in 1,028 Posts
Social Networking View Member's FaceBook Profile  View Member's Twitter Profile  View Member's YouTube Profile
Default Re: Website Building Expertise

Quote:
Originally Posted by Dennis Miedema View Post
any thoughts?
Are you using it on a page that has the .php extension or is otherwise setup to be parsed by the PHP engine?

Click here for the MOST FUN PRODUCT CREATION GUIDE for Procrastinators since forever.
Dan's content is irregularly read by handfuls of people. Join the elite few by reading his blog: dcrBlogs.com or following him on Twitter: dcrTweets.com but NOT by Clicking Here!

----------> [Free WSO] The Lamest WSO in the History of the Warrior Forum ☺ <----------
Dan C. Rinnert is offline   Reply With Quote
Old 07-15-2009, 11:06 AM   #6
Marketing Ninja
 
Join Date: Dec 2008
Location: The Netherlands
Posts: 82
Thanks: 8
Thanked 4 Times in 4 Posts
Default Re: Website Building Expertise

Hi Dan, well..

It's set up on a regular HTML page with a php code inserted in it. Does that mean I need to setup a separate .php file inside my website directory for it, or do I have to do something else?
Dennis Miedema is offline   Reply With Quote
Old 07-15-2009, 11:09 AM   #7
Active Warrior
War Room Member
 
jendoe's Avatar
 
Join Date: Jun 2009
Location: Atlanta, GA
Posts: 77
Thanks: 62
Thanked 11 Times in 10 Posts
Default Re: Website Building Expertise

The php code needs to be a page that actually ends with .php, otherwise the web server won't know it's supposed to use php on it.

It's frustrating - I ran into this too!

There's supposedly a workaround that involves the .htaccess file - but this did not work at all on the server I used. When I tried it, it literally killed my site! Not good!

If you're just getting the site up and haven't marketed it yet, you might want to consider just using .php for all your pages (so that you can easily embed any php you want)... I wish I had done that from the start, and *will* on the next site!

Good luck!
jendoe is offline   Reply With Quote
Old 07-15-2009, 11:14 AM   #8
I have a lame list.
War Room Member
 
Dan C. Rinnert's Avatar
 
Join Date: Jul 2008
Location: One Second into the Future
Posts: 4,297
Blog Entries: 1
Thanks: 837
Thanked 2,307 Times in 1,028 Posts
Social Networking View Member's FaceBook Profile  View Member's Twitter Profile  View Member's YouTube Profile
Default Re: Website Building Expertise

Quote:
Originally Posted by Dennis Miedema View Post
Hi Dan, well..

It's set up on a regular HTML page with a php code inserted in it. Does that mean I need to setup a separate .php file inside my website directory for it, or do I have to do something else?
If the php code is just in a regular HTML page, then it is not being parsed by the PHP engine at all, so the code just gets ignored.

You can change the filename from filename.html to filename.php.

If you have links to the .html version, you can setup your .htaccess to redirect requests for the .html page to the .php page.

There are also ways (through .htaccess) of setting it up so that all your .html or .htm pages are run through the PHP engine. The method of doing that will vary with your particular host and PHP configuration. That way, you wouldn't have to change the filename extensions.

Click here for the MOST FUN PRODUCT CREATION GUIDE for Procrastinators since forever.
Dan's content is irregularly read by handfuls of people. Join the elite few by reading his blog: dcrBlogs.com or following him on Twitter: dcrTweets.com but NOT by Clicking Here!

----------> [Free WSO] The Lamest WSO in the History of the Warrior Forum ☺ <----------
Dan C. Rinnert is offline   Reply With Quote
Reply

  WarriorForum - Internet Marketing Forums > The Warrior Forum > Main Internet Marketing Discussion Forum

Tags
building, expertise, website

Thread Tools

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



All times are GMT -6. The time now is 09:13 AM.