Members Login.
 

Please register HERE to be part of our Community
Contest of the Day.
 
Current Promotions.
 
Refer your friends to this forum and earn BRL per referred member.

Post a New Thread anywhere on Web Development Board to earn BRL$ 5 for every thread. Post a New Reply there and earn BRL$ 3 for every reply.

Post a New Thread anywhere on Search Engine Optimization Board and earn BRL$ 5 for every thread.
Earn By Posting
 
Participate in forum and Earn $$$.

Get Referrer Credit - BRL$ 20
Get Positive Rep Cr. - BRL$ 3
Get New Thread Cr.- BRL$ 3
Get Posting Cr. - BRL$ 2
Get Post size Credit

Full List of BRL$ Earnings
Sponsors.
 


PHP Discussion related to PHP web development, PHP coding. Tutorials, source code, tips and tricks related to PHP programming.

   

PHP in HTML and GoDaddy


This is a discussion on PHP in HTML and GoDaddy within the PHP forums, part of the Web Development category; Hi, I have a client who's site is hosted by GoDaddy. Ugh. I have successfully put php code into ...

Reply
  #1 (permalink)  
Old 09-04-2007
Administrator

Join Date: Jun 2007
Posts: 3,729
BRL$: 35,045.20
Thanks: 0
Thanked 7 Times in 7 Posts
Rep Power: 406
Rss_Feeds is on a distinguished road
Default PHP in HTML and GoDaddy

Hi, I have a client who's site is hosted by GoDaddy. Ugh. I have successfully put php code into HTML pages and can get them to be parsed by modifying the .htacess file with a "AddHandler x-httpd-php .html .htm .cgi .php". However, as soon as I add that to the .htaccess file, the stats interface that GoDaddy provides them does not work. I get this: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator,
To view links or images in this forum your post count must be 1 or greater. You currently have 0 posts.
and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Apache/1.3.33 Server at anokacountyonline.com Port 80 If I remove the .html from "AddHandler x-httpd-php .html .htm .cgi .php". stats work again, but obviously my php does not. I have tried other AddHandler and AddType lines that do not work for the php side of it. GoDaddy gives my client no access to error logs or any kind of access to the stats folder. I checked the .html pages in the stats folder and it's straight html. I am not sure why having .html parsed through php first would screw things up in the folder. Any help appreciated!


To view links or images in this forum your post count must be 1 or greater. You currently have 0 posts.
__________________
High Quality
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.

Powerful
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.


To receive latest updates about BRL Forums, Subscribe to Latest Updates Thread.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 06-16-2008
New Foot Prints

Join Date: Jun 2008
Posts: 5
BRL$: -51.73
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
jhon_312020 is on a distinguished road
Default Re: PHP in HTML and GoDaddy

hi this is janakiraman i have a problem with godaddy.com

<?php
echo "<pre>";
print_r($_POST);
print_r($_REQUEST);
// print
?>
<html>
<head>
<title>
Testing post values
</title>
</head>
<body>
<form name="frm" method="post" action="test_post.php">
<input type="text" value="" name="txt1"/>
<input type="submit" name="test" value="Submit" />
</form>
</body>
</html>

when i run this program in the godaddy server first time the value is get posted. if i submit second time the value is not posted? Is anything wrong in my coding. Please help me out.

Advance thanks
Janakiraman


To receive latest updates about BRL Forums, Subscribe to Latest Updates Thread.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 06-16-2008
Administrator

brl_admin's Avatar
Join Date: Dec 2006
Posts: 6,127
BRL$: 50,587.33
Thanks: 4
Thanked 26 Times in 23 Posts
Rep Power: 657
brl_admin will become famous soon enough
Send a message via MSN to brl_admin Send a message via Yahoo to brl_admin
Default Re: PHP in HTML and GoDaddy

Can you post the URL where we can reproduce this error?

post the files names too!!!
__________________
Jason p. - Administrator
High Quality
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.

Powerful
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.


To receive latest updates about BRL Forums, Subscribe to Latest Updates Thread.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 06-17-2008
New Foot Prints

Join Date: Jun 2008
Posts: 5
BRL$: -51.73
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
jhon_312020 is on a distinguished road
Default Re: PHP in HTML and GoDaddy

Thanks of the quick reply Mr. Brl_admin

the url is this

please add mlxfsbo.com/admin/test_post.php

file name is test_post.php

Advance thanks for the help...


To receive latest updates about BRL Forums, Subscribe to Latest Updates Thread.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 06-17-2008
New Foot Prints

Join Date: Jun 2008
Posts: 5
BRL$: -51.73
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
jhon_312020 is on a distinguished road
Default Re: PHP in HTML and GoDaddy

Hi since i am new user it is not allowing to post the url. so i ve posted the path alone.

Thanks Mr. Brl_admin .


To receive latest updates about BRL Forums, Subscribe to Latest Updates Thread.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 06-17-2008
Administrator

brl_admin's Avatar
Join Date: Dec 2006
Posts: 6,127
BRL$: 50,587.33
Thanks: 4
Thanked 26 Times in 23 Posts
Rep Power: 657
brl_admin will become famous soon enough
Send a message via MSN to brl_admin Send a message via Yahoo to brl_admin
Default Re: PHP in HTML and GoDaddy

This is a very strange issue. The script is completely working fine at
To view links or images in this forum your post count must be 1 or greater. You currently have 0 posts.
... but the same script is not working at godaddy hosting.

It seems to be some session related issue. If session is cleared the values are displayed... but once the session is established ... post values are not displayed.
__________________
Jason p. - Administrator
High Quality
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.

Powerful
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.


To receive latest updates about BRL Forums, Subscribe to Latest Updates Thread.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 06-17-2008
New Foot Prints

Join Date: Jun 2008
Posts: 5
BRL$: -51.73
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
jhon_312020 is on a distinguished road
Default Re: PHP in HTML and GoDaddy

Thanks for the quick reply Mr. Brl_admin

Actually in that page i have not even started the session or neither used any session variables in it then how come this problem arises. Really thanks for ur quick reply. Then any solution is their for this.

Advance Thanks
B. janakiraman


To receive latest updates about BRL Forums, Subscribe to Latest Updates Thread.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 06-17-2008
New Foot Prints

Join Date: Jun 2008
Posts: 5
BRL$: -51.73
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
jhon_312020 is on a distinguished road
Default Re: PHP in HTML and GoDaddy

Then again i tried by starting the session and destroying the session then also i am not getting the post values when i use the metho=get it is nicely working.

One more thing the hosting is free. May be this have any effect on it.

advance thanks

B. Janakiraman


To receive latest updates about BRL Forums, Subscribe to Latest Updates Thread.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
godaddy, html, php


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 On
Pingbacks are On
Refbacks are On


 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105