473,594 Members | 2,757 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3083
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************ ********@comcas t.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\syst em32 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********@blu eyonder.co.uk> wrote in message
news:24******** ***********@new s-binary.blueyond er.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\syst em32 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_cont acts",$db);
$result = mysql_query("SE LECT * FROM peeps", $db);
printf("firstN: %s<br>\n", mysql_result($r esult,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********@com cast.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_d b("database_con tacts",$db);
mysql_select_db ("database_cont acts",$db);
or die ("Database selection failed: " . mysql_error());
$result = mysql_query("SE LECT * FROM peeps", $db);
$result = mysql_query("SE LECT * FROM peeps", $db);
or die ("Query failed: " . mysql_error());
printf("firstN : %s<br>\n", mysql_result($r esult,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
3919
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 them a caption, storing the caption and filename in a text file. It's a bit buggy when removing the photos and captions from the file, and also in displaying them on the delete page. you can see it in action at www.4am.com.au/gallery/upload.php...
5
5447
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. I want to develop a webpage where people can send attachments that are stored on their local PC.
7
3527
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. How do i make the last pointer in the indirect sector that has another level of indirect pointer, and be defined recursively to support infinite large files? -code-
3
26256
by: StGo | last post by:
How can i read/write file's custom attributs(like subject,author...) in C#??? Thanks :))
0
3924
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. It is almost like it is trying to implement it's own COM interfaces... below is the header, and a link to the dll+code: Zip file with header, example, and DLL:...
13
4295
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 that this is suppossed to end up as a component for others to use, and therefore I do NOT have access to their global.cs::Session_End() how do I cleanup files that were uploaded -- but obviously left stranded when the users aborted/gave up writting...
1
5371
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 completely/succsessfully on the client's computer before updating some metadata on the server (file downloaded date for instance) However, All examples i have tried, and all examples I have found that other people says works - doesn't work for me :-(
3
3159
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 I find a list of all the types which can be returned? For example, if it is a Word document will it return "document/doc".
0
2553
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 datalist. When the next user selects trys to run the page, the page fails and I get a generic error message from the stack trace. I am assuming that the document properties cannot be read when a file is open, but it worked well in asp. ...
0
2026
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 said to me that they have no problem doing that, but the following project file is said to be corrupted while opening in the IDE, it is the project file of NT xemacs BETA 21.5.24, http://ftp.xemacs.org/pub/beta/xemacs-21.5.24.tar.gz (under the...
0
7947
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7880
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8010
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6665
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5739
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
3903
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2389
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1486
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1217
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.