Jump to content

Archived

This topic is now archived and is closed to further replies.

Humpty

php Counter...free for everyone...no help needed

Recommended Posts

The forum kept giving me an error when trying to submit the code as part of my post, (the following 4 to 6 replies will verify this)

Instead I have had to set the code on a server where people can see it.

As such if you want to update it then I would suggest you give me the code to also put on the server or do the same as I have and place a link to it.

Here is the links:

This is the code:
[a href=\"http://www.oznett.com/helpfull/php\" target=\"_blank\"]http://www.oznett.com/helpfull/php[/a]

This is an example:
[a href=\"http://www.signsone.com.au\" target=\"_blank\"]http://www.signsone.com.au[/a]

Moderators: This was not a shamless self promotion or anything of the sort.

If the forum actually let me submit my code in my initial post then these links would not be there.

Share this post


Link to post
Share on other sites
Yeah... I think there are some issues ATM, Ive had a few wird posts and timeouts. Maybe just describe your problem?

Share this post


Link to post
Share on other sites
[!--quoteo(post=355355:date=Mar 15 2006, 09:31 AM:name=Humpty)--][div class=\'quotetop\']QUOTE(Humpty @ Mar 15 2006, 09:31 AM) [snapback]355355[/snapback][/div][div class=\'quotemain\'][!--quotec--]
Why do i get a permissions error if I try pasting my code?
[/quote]

i noticed the other day that when i tried to post any full documents with doctypes or headers of any sort i'd get bumped. maybe you could just provide a link to a highlight_file() version of you script.

Share this post


Link to post
Share on other sites
[!--quoteo(post=355360:date=Mar 15 2006, 09:36 AM:name=obsidian)--][div class=\'quotetop\']QUOTE(obsidian @ Mar 15 2006, 09:36 AM) [snapback]355360[/snapback][/div][div class=\'quotemain\'][!--quotec--]
highlight_file() version[/quote]

DUH huh?

What is that?

(also I don't know if it, (my script) works....it worked here on my test server but when I uploaded it it isn't working...I even tried the permissions. It just doesn't seem to do anyting..no errors or nothing.)


This is the error I get trying to add my code (with or without specifying it as code

Forbidden
You don't have permission to access /forums/index.php on this server.


--------------------------------------------------------------------------------

Apache/1.3.33 Server at www.phpfreaks.com Port 80

I'm a knob...the script does work

I just didn't have PHP enabled on the webserver....still can't post the script here though...help me...I want to share it.

Share this post


Link to post
Share on other sites
[!--quoteo(post=355362:date=Mar 15 2006, 09:49 AM:name=Humpty)--][div class=\'quotetop\']QUOTE(Humpty @ Mar 15 2006, 09:49 AM) [snapback]355362[/snapback][/div][div class=\'quotemain\'][!--quotec--]
DUH huh?

What is that?
[/quote]

highlight_file() is a function that will output the source of the file you pass to it highlighted to show PHP syntax. for instance, if i wanted to show you the source of a file called "myTest.php", i'd actually point you to a file called "myTestSource.php", and the source of that page would simply be:
[code]
<?php
highlight_file("myTest.php");
?>
[/code]

Share this post


Link to post
Share on other sites
ok

Here is the links:

This is the code:
[a href=\"http://www.oznett.com/helpfull/php\" target=\"_blank\"]http://www.oznett.com/helpfull/php[/a]

This is an example:
[a href=\"http://www.signsone.com.au\" target=\"_blank\"]http://www.signsone.com.au[/a]

Moderators: This was not a shamless self promotion or anything of the sort.

If the forum actually let me submit my code in my initial post then these links would not be there.

Share this post


Link to post
Share on other sites
i would recommend one alteration... keep a flat file with the IP numbers of your visitors so that it doesn't continue to increment with every refresh of the page. if you filter out IP addresses, you can at least be sure that you'll only count each person ONCE per visit.

Share this post


Link to post
Share on other sites
I do that when I use a database. I record IP time date and often which page, or in the case of the online shop i'm doing which catagory or products specifications. I have also set it up to record sites that use a ?xx=yy at the end of a link so we cansee where they are comming from.

This was my first ever attempt at writting to file. Signsone as above is a hosting customer of mine, (you don't have to be smart to sell hosting btw).

His plan did not include a database and I needed an alternative small, quick and easy method. This suited just fine :D

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.