473,385 Members | 1,821 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

PHP ini file..

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
8 3063
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
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
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

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

"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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: matt | last post by:
I have compiled some code, some written by me, some compiled from various sources online, and basically i've got a very simple flat file photo gallery. An upload form, to upload the photos and give...
5
by: Dave Smithz | last post by:
Hi There, I have a PHP script that sends an email with attachment and works great when provided the path to the file to send. However this file needs to be on the same server as the script. ...
7
by: Joseph | last post by:
Hi, I'm having bit of questions on recursive pointer. I have following code that supports upto 8K files but when i do a file like 12K i get a segment fault. I Know it is in this line of code. ...
3
by: StGo | last post by:
How can i read/write file's custom attributs(like subject,author...) in C#??? Thanks :))
0
by: Lokkju | last post by:
I am pretty much lost here - I am trying to create a managed c++ wrapper for this dll, so that I can use it from c#/vb.net, however, it does not conform to any standard style of coding I have seen....
13
by: Sky Sigal | last post by:
I have created an IHttpHandler that waits for uploads as attachments for a webmail interface, and saves it to a directory that is defined in config.xml. My question is the following: assuming...
1
by: Roy | last post by:
Hi, I have a problem that I have been working with for a while. I need to be able from server side (asp.net) to detect that the file i'm streaming down to the client is saved...
3
by: Shapper | last post by:
Hello, I created a script to upload a file. To determine the file type I am using userPostedFile.ContentType. For example, for a png image I get "image/png". My questions are: 1. Where can...
0
by: troutbum | last post by:
I am experiencing problems when one user has a document open through a share pointing to the web site. I use the dsolefile to read the contents of a particular directory and then display them in a...
0
by: thjwong | last post by:
I'm using WinXP with Microsoft Visual C++ .NET 69462-006-3405781-18776, Microsoft Development Environment 2003 Version 7.1.3088, Microsoft .NET Framework 1.1 Version 1.1.4322 SP1 Most developers...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.