-
Posts
83 -
Joined
-
Last visited
Never
Posts posted by holiks
-
-
i also started on learning php @ first rather than concentrating on the details of setting it up
... anyway, glad we could help
-
...and...
Installing PHP for Apache as CGI binary
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If you wish to install PHP as a CGI binary, read this first:
http://www.cert.org/advisories/CA-1996-11.html
and then if you are really sure, insert these lines to your conf file:
ScriptAlias /php/ \"c:/php/\"
AddType application/x-httpd-php .php
Action application/x-httpd-php \"/php/php.exe\"
..from php install.txt ...
-
ok sorry i meant to say \"installed as a cgi Binary\"
...chk the windows installation txt my friend
...he did say phpTriad.
/edit
i said it would look for php in his php binary folder cuz he\'s using the default setup i imagine with apache
..anyway
The Windows PHP installer is available from the downloads page at
www.php.net. This installs the CGI version of PHP and, for IIS, PWS,
and Xitami, configures the web server as well.
Note that this version does *NOT* install any extensions or server
api versions of PHP.
-
have you only tried using a folder in document root named \"php\" ?
...because if php is also installed as cgi(phpTriad?) then php will look for \"test.php\" in your php binary directory ...at which point your webserver might give you that 404.
-
Keep in mind though that there are many places on the net that can give you help. Like phpfreaks.com, php.net (the manual), and many other places.
...what other would one need? ..this site rux :twisted:
-
..maybe something along the lines of....
<form> <input type="text" size="3" name="areacode" maxlength="3"> - <input type="text" size="3" name="number1" maxlength="3"> - <input type="text" size="4" name="number2" maxlength="4"> <br> <input type="submit" value="submit"> </form>
-
my code was a basic (incomplete) example...the other replies in that thread gave better examples
-
-
It\'s called pagination. You want to paginate your results. There are quite a few tutorials out there and maybe this can help you get started..
-
if router and softwall are configured correctly i don\'t see why not.
-
-
i will ans to my best ability atm
..maybe someone else can add...
1. Yes i believe its better to open the connection once and close it at end of script(which php does automatically anyway) ..in the case of more than 1 or 2 queries to be executed in the same script i would say yes ..use the mysql_pconnect. Of course this is all so that the server and client wouldn\'t have to re-establish connection with each other. Yes this has to do with server load/traffic..
2. mysql_connect or mysql_pconnect? ...not sure ...i believe it depends on ur script ...lotta queries = pconnect ...little = connect ...this is what i know so far.
//anyone plz correct me if needed
-
ah you\'re asking quite the vague question. Search on google(great engine) for stuff like \"network security\" .. \"tcp/ip\" ...read some RFC\'s on the different network protocols...then maybe you can consider yourself ready to start learning about server security :- )
-
...maybe because of incorrect use of \'if\' statement?
[php:1:b602e2cd6d]
if(isset($_POST[\'submit\'])):
{
//do something
} else {
//do something else
}
[/php:1:b602e2cd6d]
..is wrong
..but you did use it right the second time which is maybe why that worked..
[php:1:b602e2cd6d]
if (isset($_GET[\'record\'])):
//do something
else: // Allow the user to enter a new author
endif;
[/php:1:b602e2cd6d]
..use the first if statement u mentioned like u did the second
-
php is setup to work with your Web Server. (CLI available too but u maybe don\'t need that now)
Then you can use php to interact with the Access database.
http://www.google.com/search?hl=en&ie=ISO-...access+database
...take the first result
-
so i guess it would really hurt your webhost to take the same peek at the link u so graciously provided
anyway i\'m thinking the prob lies somewhere here..
[php:1:61351d7726]
if (!($connection = @ mysql_connect($dbhost,
$dbusername,
$dbpasswd)))
showerror();
[/php:1:61351d7726]
..and guessing that showerror() is a mysql_error() return?
..andyou just did the following in include.php?
[php:1:61351d7726]
$dbhost = \'host\';
$dbusername = \'name\';
$dbpasswd = \'passwd\';
[/php:1:61351d7726]
..if so i can\'t see why you get access denied unless it is a username/pass error.
-
weird you have a firewall?
and i don\'t know if phpTriad sets the following for you
<IfModule mod_dir.c> DirectoryIndex index.html index.php </IfModule>
and also in same file..
ScriptAlias /php/ "c:/php/" AddType application/x-httpd-php .php Action application/x-httpd-php "/php/php.exe"
..chk if those are in apache.conf(httpd.conf) file
and your browser has nothing to do with compatibility and apache ;-)
-
post a section of code with the query giving the error msg.
-
//edit
srry misunderstood the prob.
(mod plz del this post)
-
any specific reason to use 3 fields?
why not just use one?
e.g \"date_field DATETIME\" or maybe \"date_field TIMESTAMP\"
..date maniupualtion would be easier i think
-
u can already sort ....by Name, Last Modified, Size and even Description...with apache
-
$queried_boss_id = 12; $sql = "select * from emp where bossid = \'$queried_boss_id\'"; if(mysql_num_rows($sql) < 1) { $employees = \'No one\'; $count = \'0\'; } else { while($row = mysql_fetch_array($sql)) { $employees .= \' \'.$row[\'userid\']; $count++; } } print "He is boss of $count"; print "Their ideez being $employees"; //untested
..hope this is going your way...
-
why don\'t you jst use one table for all messages with an extra field labeled sumthing like \"read\" and set unread msgs to 0 and read to 1 ...or yes and no?
-
...ssssure!
in your httpd.*cough* find:
AddType application/x-httpd-php .php
replace with:
AddType application/x-httpd-php .php .phtml
hope it helps :wink:
apache.exe
in Apache HTTP Server
Posted
go to Apache\'s homepage and download the source distribution .then find yourself a c ide and compiler![:P](https://forums.phpfreaks.com/uploads/emoticons/default_tease-02.gif)