Connecting Tech Pros Worldwide Forums | Help | Site Map

PHP ini file..

Sharif Tanvir Karim
Guest
 
Posts: n/a
#1: Jul 17 '05
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



Tim Van Wassenhove
Guest
 
Posts: n/a
#2: Jul 17 '05

re: PHP ini file..


On 2003-12-12, Sharif Tanvir Karim <sharif@nyc.rr.com> wrote:[color=blue]
> 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.[/color]

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

--
verum ipsum factum
Ed Wurster
Guest
 
Posts: n/a
#3: Jul 17 '05

re: PHP ini file..


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


Geoff Berrow
Guest
 
Posts: n/a
#4: Jul 17 '05

re: PHP ini file..


I noticed that Message-ID: <Z6adnWl3oY4LiUai4p2dnA@comcast.com> from Ed
Wurster contained the following:
[color=blue]
>I don't have the programming experience to do this, of course, but maybe I
>should attempt it.[/color]

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/
Ed Wurster
Guest
 
Posts: n/a
#5: Jul 17 '05

re: PHP ini file..



"Geoff Berrow" <blthecat@ckdog.co.uk> wrote...[color=blue][color=green]
> >I don't have the programming experience to do this, of course, but maybe[/color][/color]
I[color=blue][color=green]
> >should attempt it.[/color]
>
> You should - it's just a simple database app.
>
> This tutorial shows how
> http://hotwired.lycos.com/webmonkey/99/21/index2a.html
>[/color]

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


Neil Adams
Guest
 
Posts: n/a
#6: Jul 17 '05

re: PHP ini file..


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" <euki@pi.be> wrote in message
news:brdift$26qhl$2@ID-188825.news.uni-berlin.de...[color=blue]
> On 2003-12-12, Sharif Tanvir Karim <sharif@nyc.rr.com> wrote:[color=green]
> > Can anyone send me a php.ini file that is used by almost by all hosts?[/color][/color]
My[color=blue][color=green]
> > damn computer's (winxp) mini server is messed up and I am starting over[/color][/color]
so I[color=blue][color=green]
> > am trying ot get php to behave on my system. SO please, if you can,[/color][/color]
please[color=blue][color=green]
> > send me the php.ini file used by most hosts.[/color]
>
> What is wrong with having a look at the default one(s)
> that is/are delivered with PHP?
>
> --
> verum ipsum factum[/color]


Guest
 
Posts: n/a
#7: Jul 17 '05

re: PHP ini file..



"Neil Adams" <nomdeplume@blueyonder.co.uk> wrote in message
news:244Db.58795$kh4.22250@news-binary.blueyonder.co.uk...[color=blue]
> 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[/color]
the[color=blue]
> 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[/color]
2.0.43[color=blue]
> , PHP 4.3.1. and MySQL.
> I have code that I know works on a mates machine but I am buggered if I[/color]
can[color=blue]
> 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[/color]
installed[color=blue]
> 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[/color]
but[color=blue]
> 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[/color]
of[color=blue]
> 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" <euki@pi.be> wrote in message
> news:brdift$26qhl$2@ID-188825.news.uni-berlin.de...[color=green]
> > On 2003-12-12, Sharif Tanvir Karim <sharif@nyc.rr.com> wrote:[color=darkred]
> > > Can anyone send me a php.ini file that is used by almost by all hosts?[/color][/color]
> My[color=green][color=darkred]
> > > damn computer's (winxp) mini server is messed up and I am starting[/color][/color][/color]
over[color=blue]
> so I[color=green][color=darkred]
> > > am trying ot get php to behave on my system. SO please, if you can,[/color][/color]
> please[color=green][color=darkred]
> > > send me the php.ini file used by most hosts.[/color]
> >
> > What is wrong with having a look at the default one(s)
> > that is/are delivered with PHP?
> >
> > --
> > verum ipsum factum[/color]
>
>[/color]

"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.





Ed Wurster
Guest
 
Posts: n/a
#8: Jul 17 '05

re: PHP ini file..


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...[color=blue]
> If you have a PHP enabled server, you don't need to do all the
> installation. Skip to
>[/color]
http://hotwired.lycos.com/webmonkey/...tw=programming[color=blue]
> and upload your .php files to your server via ftp.[/color]


Andy Hassall
Guest
 
Posts: n/a
#9: Jul 17 '05

re: PHP ini file..


On Mon, 15 Dec 2003 17:44:56 -0500, "Ed Wurster" <ea_wurster@comcast.net>
wrote:
[color=blue]
>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");[/color]

$db = mysql_connect("localhost", "user", "password")
or die ("Connect failed: " . mysql_error());
[color=blue]
>mysql_select_db("database_contacts",$db);[/color]

mysql_select_db("database_contacts",$db);
or die ("Database selection failed: " . mysql_error());
[color=blue]
>$result = mysql_query("SELECT * FROM peeps", $db);[/color]

$result = mysql_query("SELECT * FROM peeps", $db);
or die ("Query failed: " . mysql_error());
[color=blue]
>printf("firstN: %s<br>\n", mysql_result($result,0,"firstN"));[/color]

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 (andy@andyh.co.uk) icq(5747695) (http://www.andyh.co.uk)
Space: disk usage analysis tool (http://www.andyhsoftware.co.uk/space)
Closed Thread