eXceem

Go Back   eXceem > Off Topic > Technical Help

Claim your amazing £1,000 slots booster bonus now!


PHP help....

This is a discussion on PHP help.... within the Technical Help forums, part of the Off Topic category; rite, i want to do two things.... first of all i want to put a rotator script onto a rollover ...

Reply
 
Thread Tools
Old 04-05-08, 06:37 PM   #1
iPod 60gb
 
eonbar's Avatar
 
Join Date: Nov 2007
Location: Reading
Posts: 1,706
eonbar is just really niceeonbar is just really nice

PHP help....


rite, i want to do two things....
first of all i want to put a rotator script onto a rollover image that i have in Dreamweaver. i.e. when people click the image, it will take them to a random URL (from a list of 20 ish)

secondly, i wana put an email thingy in like the one Xaviier have on her website, Free iPhone, Free PS3, Free Xbox, Free Wii - Save-Your-Money.co.uk :: Home ... she told me to use this site...

PHP Contact form with image code verification but i have no idea how to put in PHP-ness ...
:P

any tips people
 
Reply With Quote
Old 04-05-08, 06:48 PM   #2
Mini Mac
 
Join Date: Feb 2008
Posts: 3,143
-null- is a glorious beacon of light-null- is a glorious beacon of light-null- is a glorious beacon of light

Re: PHP help....


Download the contact form using the link at the bottom of the page, extract the files, change the name of index.php to contact.php and upload them to your website then add a link to contact.php on your site.

You should make sure your website supports PHP first though.
 
Reply With Quote
Old 04-05-08, 06:53 PM   #3
iPod Nano 4GB
 
Xaviier's Avatar
 
Join Date: Apr 2008
Location: Telford
Posts: 266
Xaviier has a spectacular aura about

Re: PHP help....


Ah - sorry, I just figured you'd know what to do with the files!

I presume you've downloaded the files for the form?

After changing index.php to contactform.php all you need to do is upload the files to the same folder as your website and on the page where you'd like the contact form to be you use the following code:

Code:
<?php include('contactform.php'); ?>
The only other thing you need to edit is mailer.php by putting your email address in there in the section beneath "// check to see if verificaton code was correct" like so:

Code:
// if verification code was correct send the message and show this page
	mail("contact@save-your-money.co.uk", 'Online Form: '.$subject, $_SERVER['REMOTE_ADDR']."\n\n".$message, "From: $from");
As for the random link, I've found this for you. I've had a quick look at the script and I think it does what you'd like - or you can make it do what you'd like - but if you have any trouble setting up after reading the readme's and such, I'd be happy to help.

^_^
 
Reply With Quote
Old 04-05-08, 07:03 PM   #4
iPod 60gb
 
eonbar's Avatar
 
Join Date: Nov 2007
Location: Reading
Posts: 1,706
eonbar is just really niceeonbar is just really nice

Re: PHP help....


huhmmm..not working yet... going to eat, and then have another lookey
thanks tho
 
Reply With Quote
Old 04-05-08, 08:05 PM   #5
iPod 60gb
 
eonbar's Avatar
 
Join Date: Nov 2007
Location: Reading
Posts: 1,706
eonbar is just really niceeonbar is just really nice

Re: PHP help....


Quote:
Originally Posted by -0707- View Post

You should make sure your website supports PHP first though.
how would you go about doing that?
i have the php code all correct, and i have renamed my index.php to contact.php, as well as altering my email address in the mailer.php

in my design view i have a little green box with php in it, and the code looks good as i have already said. still not getting it working though ... how dod i make my website support php?
 
Reply With Quote
Old 04-05-08, 08:21 PM   #6
Mini Mac
 
chigley's Avatar
 
Join Date: Sep 2006
Location: Bolton/London (home/uni.)
Posts: 8,424
chigley has a reputation beyond reputechigley has a reputation beyond reputechigley has a reputation beyond reputechigley has a reputation beyond reputechigley has a reputation beyond reputechigley has a reputation beyond reputechigley has a reputation beyond repute
Send a message via MSN to chigley

Re: PHP help....


To test if you can run PHP, make a file called test.php and put the following in it:

Code:
<?php

phpinfo();

?>
If you get a pretty looking output, you have PHP supported on your server
 
Reply With Quote
Old 04-05-08, 08:27 PM   #7
Mini Mac
 
Join Date: Feb 2008
Posts: 3,143
-null- is a glorious beacon of light-null- is a glorious beacon of light-null- is a glorious beacon of light

Re: PHP help....


Quote:
Originally Posted by eonbar View Post
how would you go about doing that?
i have the php code all correct, and i have renamed my index.php to contact.php, as well as altering my email address in the mailer.php

in my design view i have a little green box with php in it, and the code looks good as i have already said. still not getting it working though ... how dod i make my website support php?
You wont be able to test it on your own machine. You'll need to upload it to the server to test it. Perhaps upload it and give us the link.
 
Reply With Quote
Old 04-05-08, 10:28 PM   #8
Mini Mac
 
Simon's Avatar
 
Join Date: May 2005
Location: London
Posts: 6,321
Simon is a name known to allSimon is a name known to allSimon is a name known to allSimon is a name known to all

Re: PHP help....


Quote:
Originally Posted by -0707- View Post
You wont be able to test it on your own machine. You'll need to upload it to the server to test it. Perhaps upload it and give us the link.
You can test it using xampp, saves having to upload to test.
 
Reply With Quote
Old 04-05-08, 11:02 PM   #9
Mini Mac
 
Join Date: Feb 2008
Posts: 3,143
-null- is a glorious beacon of light-null- is a glorious beacon of light-null- is a glorious beacon of light

Re: PHP help....


But not everyone wants to install php and a web server just to test a single page. And if he uploads it, if there are any errors others will be able to help diagnose the problem.
 
Reply With Quote
Old 04-05-08, 11:11 PM   #10
BANNED
 
Join Date: Apr 2007
Location: Nr Blackpool
Posts: 251
djgallagher is an unknown quantity at this point
Send a message via MSN to djgallagher

Re: PHP help....


anybody know if this is possible to do using a freewebs site? *blushes*
 
Reply With Quote
Old 04-05-08, 11:23 PM   #11
iPod Nano 4GB
 
Xaviier's Avatar
 
Join Date: Apr 2008
Location: Telford
Posts: 266
Xaviier has a spectacular aura about

Re: PHP help....


As stated in the Freewebs FAQ:

What about MySQL, MSACCESS, and PHP?
Unfortunately, Freewebs does not offer these functions.
 
Reply With Quote
Old 04-05-08, 11:54 PM   #12
BANNED
 
Join Date: Apr 2007
Location: Nr Blackpool
Posts: 251
djgallagher is an unknown quantity at this point
Send a message via MSN to djgallagher

Re: PHP help....


o well im thinking of pushing my site to get it up the google rankings and at the moment i know little to nothing about SEO etc now will freewebs not being able to offer : MySQL, MSACCESS, and PHP be a factor in how my site is ranked? would it be easier to get it up the rankings with a better host that did offer these?
 
Reply With Quote
Old 05-05-08, 12:18 AM   #13
iPod Nano 4GB
 
Xaviier's Avatar
 
Join Date: Apr 2008
Location: Telford
Posts: 266
Xaviier has a spectacular aura about

Re: PHP help....


Whether or not your website utilizes MySQL, MSACCESS and PHP is irrelevant when it comes to SEO.

However..

Freewebs is basically a 'WYSIWYG' setup - (this assumption is based upon a quick look at what they do) - and it appears that they're highly template based. If you try and optimize the site.. you're not going to get as good results than if you had your website hosted on a proper host (with all of the code being your own). This is due to duplicate website structure and because it's template based (and there are a lot of freewebs sites using the same or similar code) your website isn't going to have the same amount of credibility with Google.

I'd recommend signing up to a host like HostGator. I've been with them for 3+ years and I have had no problems. You can get your website up and running on there for $4.95 a month. My account with HostGator has unlimited everything, I run about 10 sites with them and pay $24.95 a month - they're that good. If you're not wanting to spend money on hosting and aren't aspiring to be #1 on Google for any search terms, I'd say stay with Freewebs. You'll still get high enough in Google to get decent traffic.
 
Reply With Quote
Old 05-05-08, 07:16 AM   #14
Mr Baldy Chicken
 
the_icks's Avatar
 
Join Date: Mar 2006
Posts: 14,487
the_icks has a reputation beyond reputethe_icks has a reputation beyond reputethe_icks has a reputation beyond reputethe_icks has a reputation beyond reputethe_icks has a reputation beyond reputethe_icks has a reputation beyond reputethe_icks has a reputation beyond repute
Send a message via MSN to the_icks

Re: PHP help....


Quote:
Originally Posted by djgallagher View Post
o well im thinking of pushing my site to get it up the google rankings and at the moment i know little to nothing about SEO etc now will freewebs not being able to offer : MySQL, MSACCESS, and PHP be a factor in how my site is ranked? would it be easier to get it up the rankings with a better host that did offer these?
www.hosting-cow.com owner is a member on here, free hosting.
__________________

 
Reply With Quote
Old 05-05-08, 08:39 AM   #15
Mini Mac
 
Join Date: Feb 2008
Posts: 3,143
-null- is a glorious beacon of light-null- is a glorious beacon of light-null- is a glorious beacon of light

Re: PHP help....


Quote:
Originally Posted by the_icks View Post
www.hosting-cow.com owner is a member on here, free hosting.
They're a re-seller (?) of byethost's services. I have accounts with both, they had a few problems recently as they upgraded their servers but things seem to have settled down.

But I'd question whether you need to move hosts. You can upload your own site to freewebs using "advanced HTML" mode. I would recomend you get your own domain though, you can get one at co.cc and point it to your freewebs site. As per the standard advice if you search for freewebs there are some threads that talk about SEO and freewebs.

And has anyone seen angrycow about lately. He said to submit a support ticket to get ads removed from your site but he hasn't replied to mine.
 
Reply With Quote
Reply

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 On
Refbacks are Off





All times are GMT. The time now is 08:47 PM.
All trademarks and copyrights held by respective owners. Forum posts are owned by the poster.

Powered by vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO
no new posts