![]() | | ||||||||
| | #1 |
| Marketing Ninja Join Date: Dec 2008 Location: The Netherlands
Posts: 82
Thanks: 8
Thanked 4 Times in 4 Posts
|
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... |
| | |
| | #2 |
| HyperActive Warrior Join Date: Dec 2007
Posts: 255
Thanks: 12
Thanked 8 Times in 8 Posts
|
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. | |
| | |
| | #3 |
| Marketing Ninja Join Date: Dec 2008 Location: The Netherlands
Posts: 82
Thanks: 8
Thanked 4 Times in 4 Posts
| 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 ');?> |
| | |
| | #4 |
| Marketing Ninja Join Date: Dec 2008 Location: The Netherlands
Posts: 82
Thanks: 8
Thanked 4 Times in 4 Posts
|
any thoughts?
|
| | |
| | #5 |
| I have a lame list. War Room Member 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
| |
| 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 ☺ <---------- | |
| | |
| | #6 |
| Marketing Ninja Join Date: Dec 2008 Location: The Netherlands
Posts: 82
Thanks: 8
Thanked 4 Times in 4 Posts
|
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? |
| | |
| | #7 |
| Active Warrior War Room Member Join Date: Jun 2009 Location: Atlanta, GA
Posts: 77
Thanks: 62
Thanked 11 Times in 10 Posts
|
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! |
| | |
| | #8 | |
| I have a lame list. War Room Member 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
| Quote:
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 ☺ <---------- | ||
| | |
![]() |
|
| Tags |
| building, expertise, website |
| Thread Tools | |
| |
![]() |