/    Sign up×
Community /Pin to ProfileBookmark

I recently opened up a web site. I’m trying to create a PHP counter. I have the files and all, but I cant seen to make it work. My host supports PHP, CGI, My SQL, etc..

What am i doing wrong..

to post a comment
PHP

17 Comments(s)

Copy linkTweet thisAlerts:
@JonaNov 15.2003 — [font=arial][color=maroon]What program are you using?[/color][/font]

[b][J]ona[/b]
Copy linkTweet thisAlerts:
@djloquitoauthorNov 15.2003 — I'm trying to install "[url=http://www.hotscripts.com/Detailed/13533.html]PHP Multiple Newsletters[/url]" using WS FTP95 LE
Copy linkTweet thisAlerts:
@JonaNov 15.2003 — [font=arial][color=maroon]That's a newsletter. I thought you were trying to figure out how to make a counter.[/color][/font]

[b][J]ona[/b]
Copy linkTweet thisAlerts:
@djloquitoauthorNov 15.2003 — oops, thats right... still have the same problem though..
Copy linkTweet thisAlerts:
@pyroNov 15.2003 — Can you get any PHP to work? How about something like:

[code=php]<?PHP
echo "PHP is working.";
?>[/code]
And be sure you have it saved with a .php extention.
Copy linkTweet thisAlerts:
@djloquitoauthorNov 15.2003 — nope...
Copy linkTweet thisAlerts:
@JonaNov 15.2003 — [i]Originally posted by reggaetonbeats [/i]

[B]nope... [/B][/QUOTE]


[font=arial][color=maroon]E-mail your administrator and ask him to install PHP, then...[/color][/font]

[b][J]ona[/b]
Copy linkTweet thisAlerts:
@djloquitoauthorNov 16.2003 — [i]Originally posted by Jona [/i]

[B][font=arial][color=maroon]E-mail your administrator and ask him to install PHP, then...[/color][/font]



[b][J]ona[/b] [/B]
[/QUOTE]


Ok, I its works now.. But the host is elsewhere.. Usually its http://www.domain.com/cgi etc but mine is http://cgi.domain.com/ so how would i go about linking it to my main site?
Copy linkTweet thisAlerts:
@chadypuNov 16.2003 — what does cgi have anything to do with this...
Copy linkTweet thisAlerts:
@djloquitoauthorNov 16.2003 — [i]Originally posted by chadypu [/i]

[B]what does cgi have anything to do with this... [/B][/QUOTE]


PHP like all cgi technologies run on the cgi server

I Didnt know that untill now ?
Copy linkTweet thisAlerts:
@chadypuNov 16.2003 — but you dont need a cgi bin or whatever to run php
Copy linkTweet thisAlerts:
@djloquitoauthorNov 16.2003 — [i]Originally posted by chadypu [/i]

[B]but you dont need a cgi bin or whatever to run php [/B][/QUOTE]


yeah well, it wasnt running without it for me..
Copy linkTweet thisAlerts:
@chadypuNov 16.2003 — php must be configured very wierd on your server then :-

php doesnt and shouldnt need a cgibin

correct me if im mistaken
Copy linkTweet thisAlerts:
@pyroNov 16.2003 — Correct. PHP rarely ever runs as a CGI build (it certainly is not recommended to run as such). It's probably the way the server is set up.
Copy linkTweet thisAlerts:
@djloquitoauthorNov 16.2003 — how can i get it to work without a cgibin?
Copy linkTweet thisAlerts:
@pyroNov 16.2003 — Do you have access to the server, to make changes?
Copy linkTweet thisAlerts:
@GonavitchMay 18.2004 — You do not need a cgi-bin at all to run php, in fact you don't even need cgi installed on the server to run php, because php has nothing to do with cgi, you just need a server that supports php.
×

Success!

Help @djloquito spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...