P.Z. Low Cost CPanel Web Hosting  

Go Back   P.Z. Low Cost CPanel Web Hosting > Page-Zone Web Hosting Main Forum > General Discussion

General Discussion Anything which doesn't fit into the specific topics above. Posting limited to registered members.

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
a PHP Question...
Old
  (#1 (permalink))
karenkhtml
Registered User
karenkhtml is on a distinguished road
 
karenkhtml's Avatar
 
Status: Offline
Posts: 38
Join Date: Sep 2004
Location: Texas
Rep Power: 27
a PHP Question... - 01-10-2007, 02:21 PM

I've an extreme novice about PHP but I had someone create a form for me, a fellow designer and one of the files is a .php file and for some reason it's not working.....is there a way to tell if my server allows php or have I somehow deleted it.....can someone check this for me....??? ((help!!!!!)

thanks!!

Karen


The wise shall inherit glory ~ Proverbs 3:35 {Bible}


www.webmasterkaren.com
Providing web site solutions for e-minded people
  Send a message via Yahoo to karenkhtml  
Reply With Quote
Old
  (#2 (permalink))
midwest
blink and it's over
midwest will become famous soon enough
 
midwest's Avatar
 
Status: Offline
Posts: 802
Join Date: Oct 2002
Location: Big Sky, MT
Rep Power: 78
01-10-2007, 02:39 PM

Put this in a file and call it in a browser.

<?php
echo "<p>We have php";
?>

I can say that it is 101% that your server has php installed. No, you cant delete it. So it is your php file that has a problem. Look at the file and make sure that the paths and urls are correct.

.


Ronnie Gauthier
www.instaguide.com

======================
for official page-zone support please visit
www.page-zone.com/support.shtml
   
Reply With Quote
Old
  (#3 (permalink))
karenkhtml
Registered User
karenkhtml is on a distinguished road
 
karenkhtml's Avatar
 
Status: Offline
Posts: 38
Join Date: Sep 2004
Location: Texas
Rep Power: 27
01-10-2007, 03:01 PM

Okay, I just did that here and it's not working....any clues as to why?..

http://www.webmasterkaren.com/wehave.php


The wise shall inherit glory ~ Proverbs 3:35 {Bible}


www.webmasterkaren.com
Providing web site solutions for e-minded people
  Send a message via Yahoo to karenkhtml  
Reply With Quote
Old
  (#4 (permalink))
midwest
blink and it's over
midwest will become famous soon enough
 
midwest's Avatar
 
Status: Offline
Posts: 802
Join Date: Oct 2002
Location: Big Sky, MT
Rep Power: 78
01-10-2007, 07:22 PM

What are the perms of the file? I get a 403 which means you have to open the perms up a bit, 644 should be OK.

.


Ronnie Gauthier
www.instaguide.com

======================
for official page-zone support please visit
www.page-zone.com/support.shtml
   
Reply With Quote
Eliminate possible problems
Old
  (#5 (permalink))
Jim
of Page-Zone
Jim will become famous soon enoughJim will become famous soon enough
 
Status: Offline
Posts: 1,130
Join Date: Jun 2002
Location: Wauseon, Ohio
Rep Power: 97
My location
Eliminate possible problems - 01-10-2007, 08:23 PM

The script should run if the permissions are set to 644. Also if you see a file called .htaccess in the directory that that php script is in, or a higher directory if that php file is in a subdirectory and it is showing any file size to it, try renaming it to something else (.htaccess1 will work) that will effectively eliminate that as the cause.

There is also a real time error log in cpanel, refreshing both pages (php script, and the error log page in cPanel) will yield a clue.

Also if you have shell access try running the script at the command line:
#php wehave.php

P.S. I'm just writing this for future searches. I have enough info to go do all of that myself in this case.


--
Thank You,
Jim Snape
Page-Zone
--
   
Reply With Quote
Old
  (#6 (permalink))
Jim
of Page-Zone
Jim will become famous soon enoughJim will become famous soon enough
 
Status: Offline
Posts: 1,130
Join Date: Jun 2002
Location: Wauseon, Ohio
Rep Power: 97
My location
01-10-2007, 08:48 PM

solved -

This was in the .htaccess file:

Options Includes FollowSymLinks

The syntax of that isn't correct. I changed it to

Options +[option] +[option] syntax and it works

e.g. Options +Includes +FollowSymLinks

So that should be a plus for you. (sorry had to say it)


--
Thank You,
Jim Snape
Page-Zone
--
   
Reply With Quote
Old
  (#7 (permalink))
karenkhtml
Registered User
karenkhtml is on a distinguished road
 
karenkhtml's Avatar
 
Status: Offline
Posts: 38
Join Date: Sep 2004
Location: Texas
Rep Power: 27
01-10-2007, 09:10 PM

oh I've messed it up at the same time you were changing it I think !! Because someone made the contact form for me & I had that person upload it to my web site that I didn't have anything on yet, (karenhenry.com) because I don't give out to others my FTP for my "main" web site where I have some web host customers ....so then I wanted to copy the files and upload them to my (webmasterkaren.com) web site, and that's where I want them...here's what she had in the .htacess file at karenhenry.com & obviously she uses FP but I use DW, so I copies this & put it in my .htacess file at my webmaster site!! - Is this wrong?....if so, what 'exactly' does it need to say & could you try changing it once again?....

Here's what's in the .htacess file

# -FrontPage-

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName Providing web site solutions for e-minded people at WebmasterKaren.com
AuthUserFile /home/webmast/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/webmast/public_html/_vti_pvt/service.grp


The wise shall inherit glory ~ Proverbs 3:35 {Bible}


www.webmasterkaren.com
Providing web site solutions for e-minded people
  Send a message via Yahoo to karenkhtml  
Reply With Quote
Old
  (#8 (permalink))
karenkhtml
Registered User
karenkhtml is on a distinguished road
 
karenkhtml's Avatar
 
Status: Offline
Posts: 38
Join Date: Sep 2004
Location: Texas
Rep Power: 27
01-10-2007, 09:13 PM

# -FrontPage-

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName Providing web site solutions for e-minded people at WebmasterKaren.com
AuthUserFile /home/webmast/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/webmast/public_html/_vti_pvt/service.grp


---------------------------------------------------------all that above is
in the .htaccess file --I don't have Includes anymore, I used to tho...


The wise shall inherit glory ~ Proverbs 3:35 {Bible}


www.webmasterkaren.com
Providing web site solutions for e-minded people
  Send a message via Yahoo to karenkhtml  
Reply With Quote
Old
  (#9 (permalink))
Jim
of Page-Zone
Jim will become famous soon enoughJim will become famous soon enough
 
Status: Offline
Posts: 1,130
Join Date: Jun 2002
Location: Wauseon, Ohio
Rep Power: 97
My location
01-10-2007, 09:20 PM

I re-added the stuff to the .htaccess file. But if you say the form still doesn't work I'll check that out. The fix above was just to allow midwest's php verifying code to run - unless you were getting the same 403 error on the mail form..


--
Thank You,
Jim Snape
Page-Zone
--
   
Reply With Quote
Old
  (#10 (permalink))
karenkhtml
Registered User
karenkhtml is on a distinguished road
 
karenkhtml's Avatar
 
Status: Offline
Posts: 38
Join Date: Sep 2004
Location: Texas
Rep Power: 27
01-11-2007, 12:28 AM

THANKS JIM! - That's probably what it was & it's working GREAT now!

The PHP form will hide my email from spammers, in fact my email isn't even in the html of the contact page & since they can't see the page source in PHP they can't see my email. If anyone else is interested in this PHP form they can find it here: http://www.anekostudios.com/2006/05/23/php-forms/ What's ALSO nice is that it's FREE!! (I make no guarantees of any kind because I don't even know them at the PHP form site, but for those who have knowledge of PHP it may be of some help).

Blessings,
Karen


The wise shall inherit glory ~ Proverbs 3:35 {Bible}


www.webmasterkaren.com
Providing web site solutions for e-minded people
  Send a message via Yahoo to karenkhtml  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Live Help



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC6
vBulletin Skin developed by: vBStyles.com
Copyright © 2002 Page-Zone Web Hosting. All rights reserved.
Smilies provided by Crack's Smilies http://www.mysmilies.com