By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,825 Members | 2,437 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,825 IT Pros & Developers. It's quick & easy.

PHP ini file..

P: n/a
Can anyone send me a php.ini file that is used by almost by all hosts? My
damn computer's (winxp) mini server is messed up and I am starting over so I
am trying ot get php to behave on my system. SO please, if you can, please
send me the php.ini file used by most hosts.

--
Sharif Tanvir Karim
http://www.onlyonxbox.net
Jul 17 '05 #1
Share this Question
Share on Google+
8 Replies


P: n/a
On 2003-12-12, Sharif Tanvir Karim <sh****@nyc.rr.com> wrote:
Can anyone send me a php.ini file that is used by almost by all hosts? My
damn computer's (winxp) mini server is messed up and I am starting over so I
am trying ot get php to behave on my system. SO please, if you can, please
send me the php.ini file used by most hosts.


What is wrong with having a look at the default one(s)
that is/are delivered with PHP?

--
verum ipsum factum
Jul 17 '05 #2

P: n/a
Can someone recommend a script for a Contact List or Address Book?

I've looked at many that are available, but would like to solicit other
ideas.

I am looking for a solution to manage and make available the 1000's of name
and numbers that a family accumulates. I want to make this information
available away from the home, and have a host with:

PHP Version 4.3.3
Mysql Version 4.0.15-standard

Php-projekt seems to have the features in Contacts that I would like,
especially import and export. I would like something with a simpler
interface, though.

Is there a PHP book that might cover something like this?

I don't have the programming experience to do this, of course, but maybe I
should attempt it.

I've rambled on a bit, but think this is a topic that many people are
interested in.

Any ideas?

Ed
Jul 17 '05 #3

P: n/a
I noticed that Message-ID: <Z6********************@comcast.com> from Ed
Wurster contained the following:
I don't have the programming experience to do this, of course, but maybe I
should attempt it.


You should - it's just a simple database app.

This tutorial shows how
http://hotwired.lycos.com/webmonkey/99/21/index2a.html

If you have a PHP enabled server, you don't need to do all the
installation. Skip to
http://hotwired.lycos.com/webmonkey/...tw=programming
and upload your .php files to your server via ftp.
--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Jul 17 '05 #4

P: n/a

"Geoff Berrow" <bl******@ckdog.co.uk> wrote...
I don't have the programming experience to do this, of course, but maybe Ishould attempt it.


You should - it's just a simple database app.

This tutorial shows how
http://hotwired.lycos.com/webmonkey/99/21/index2a.html


I will look into this. Thanks for the link. I appreciate it.

Also, thanks for finding my post in the wrong thread!

I'm going to re-post.

Ed
Jul 17 '05 #5

P: n/a
Tim,
I think Sharif has suffered the same issues as me...
As a total newbie to programming let alone PHP, I am totally confused by the
options available to configure PHP.
I have tried to select the options I need after reading the documentation
but quite frankly I have not got a clue and am totally confused.

Like Shariff, I too am running WinXP pro (as test Server) with Apache 2.0.43
, PHP 4.3.1. and MySQL.
I have code that I know works on a mates machine but I am buggered if I can
get it to work on mine, he's goneaway for Xmas so I can not get a copy of
his PHP.ini or Httpd.conf, I am pretty much convinced the only differance
can be the configs.

I have apache installed c:\program files\apache group\apache2, PHP installed
in C:\php with the DLLs and php.ini copied to the c:\windows\system32 dir
and Mysql resides in c:\MySql.

I can get connection to the Mysql database and can get the apache server
page to be displayed so i know its running, also the phptest.php screen but
if I try to run any PHPcode I get undecleared variable warnings and
something about Headers that Can not be sent... I have looked at the
forums..about the various errors.. some people say the headers issue is
something to do the the path to browscap.ini and error_reporting(7) is
needed to kill the some of the notices...I am lost....Quite frankly all I
and Shariff need are known working examples of basic setups and a couple of
instructions as to where to put files to match the .ini's..

Any example you can provide for a stupid noobie like me would be VERY VERY
much appreciated... Hopefully I can then look at the code structure, watch
how they work and learn...

Cheers
"Tim Van Wassenhove" <eu**@pi.be> wrote in message
news:br************@ID-188825.news.uni-berlin.de...
On 2003-12-12, Sharif Tanvir Karim <sh****@nyc.rr.com> wrote:
Can anyone send me a php.ini file that is used by almost by all hosts? My damn computer's (winxp) mini server is messed up and I am starting over so I am trying ot get php to behave on my system. SO please, if you can, please send me the php.ini file used by most hosts.


What is wrong with having a look at the default one(s)
that is/are delivered with PHP?

--
verum ipsum factum

Jul 17 '05 #6

P: n/a

"Neil Adams" <no********@blueyonder.co.uk> wrote in message
news:24*******************@news-binary.blueyonder.co.uk...
Tim,
I think Sharif has suffered the same issues as me...
As a total newbie to programming let alone PHP, I am totally confused by the options available to configure PHP.
I have tried to select the options I need after reading the documentation
but quite frankly I have not got a clue and am totally confused.

Like Shariff, I too am running WinXP pro (as test Server) with Apache 2.0.43 , PHP 4.3.1. and MySQL.
I have code that I know works on a mates machine but I am buggered if I can get it to work on mine, he's goneaway for Xmas so I can not get a copy of
his PHP.ini or Httpd.conf, I am pretty much convinced the only differance
can be the configs.

I have apache installed c:\program files\apache group\apache2, PHP installed in C:\php with the DLLs and php.ini copied to the c:\windows\system32 dir
and Mysql resides in c:\MySql.

I can get connection to the Mysql database and can get the apache server
page to be displayed so i know its running, also the phptest.php screen but if I try to run any PHPcode I get undecleared variable warnings and
something about Headers that Can not be sent... I have looked at the
forums..about the various errors.. some people say the headers issue is
something to do the the path to browscap.ini and error_reporting(7) is
needed to kill the some of the notices...I am lost....Quite frankly all I
and Shariff need are known working examples of basic setups and a couple of instructions as to where to put files to match the .ini's..

Any example you can provide for a stupid noobie like me would be VERY VERY
much appreciated... Hopefully I can then look at the code structure, watch
how they work and learn...

Cheers
"Tim Van Wassenhove" <eu**@pi.be> wrote in message
news:br************@ID-188825.news.uni-berlin.de...
On 2003-12-12, Sharif Tanvir Karim <sh****@nyc.rr.com> wrote:
Can anyone send me a php.ini file that is used by almost by all hosts? My damn computer's (winxp) mini server is messed up and I am starting
over
so I am trying ot get php to behave on my system. SO please, if you can, please send me the php.ini file used by most hosts.


What is wrong with having a look at the default one(s)
that is/are delivered with PHP?

--
verum ipsum factum



"undeclared variable warnings something about Headers that Can not be sent"
is pretty vague.
You will get a lot more help if you post your exact code from phptest.php
and your exact errors.

Jul 17 '05 #7

P: n/a
Based on Geoff's recommendation, I've decided to jump in to a simple
database app for contacts.

I'm in the early stages of the tutorial, and find a need to error check, to
see if I am connected to the database and so on.

For instance I'm getting this error:

Warning: mysql_result(): supplied argument is not a valid MySQL result
resource in /home/(rest of path omitted) on line 9
firstN:

I know from reading through messages in this group that I shopuld include
some error checking in the example.

For instance, I've modified the tutorial to something more relevant for me:

<html>

<body>

<?php
$db = mysql_connect("localhost", "user", "password");
mysql_select_db("database_contacts",$db);
$result = mysql_query("SELECT * FROM peeps", $db);
printf("firstN: %s<br>\n", mysql_result($result,0,"firstN"));
?>

</body>

</html>
All of which generates error as noted above.

What error checks do I need to include?

Thanks.

Ed

"Geoff Berrow" wrote...
If you have a PHP enabled server, you don't need to do all the
installation. Skip to
http://hotwired.lycos.com/webmonkey/...tw=programming and upload your .php files to your server via ftp.

Jul 17 '05 #8

P: n/a
On Mon, 15 Dec 2003 17:44:56 -0500, "Ed Wurster" <ea********@comcast.net>
wrote:
I'm in the early stages of the tutorial, and find a need to error check, to
see if I am connected to the database and so on.

For instance I'm getting this error:

Warning: mysql_result(): supplied argument is not a valid MySQL result
resource in /home/(rest of path omitted) on line 9
firstN:

I know from reading through messages in this group that I shopuld include
some error checking in the example.

For instance, I've modified the tutorial to something more relevant for me:

<?php
$db = mysql_connect("localhost", "user", "password");
$db = mysql_connect("localhost", "user", "password")
or die ("Connect failed: " . mysql_error());
mysql_select_db("database_contacts",$db);
mysql_select_db("database_contacts",$db);
or die ("Database selection failed: " . mysql_error());
$result = mysql_query("SELECT * FROM peeps", $db);
$result = mysql_query("SELECT * FROM peeps", $db);
or die ("Query failed: " . mysql_error());
printf("firstN: %s<br>\n", mysql_result($result,0,"firstN"));


Never proceed to using a resource handle before checking you actually _have_ a
resource handle, instead of 'false' returned by an error; see above.

The error handling above is OK for debugging but you should handle it more
gracefully for production code.

--
Andy Hassall (an**@andyh.co.uk) icq(5747695) (http://www.andyh.co.uk)
Space: disk usage analysis tool (http://www.andyhsoftware.co.uk/space)
Jul 17 '05 #9

This discussion thread is closed

Replies have been disabled for this discussion.