php-windows Digest 4 Jul 2003 07:09:44 -0000 Issue 1808 Topics (messages 20673 through 20682):
Fatal error with 'DB.php' 20673 by: jsWalter 20682 by: Cristian MARIN Sending a PDF page 20674 by: Todd Cary 20676 by: Dash McElroy Using PHP with IIS 20675 by: Terry Lowndes can't connect to mysql 20677 by: zicux 20678 by: Doris Pelger .:. Eva Horner profanity filter/list 20679 by: Croskerry, Dan php 4.3.2 cgi 404 error 20680 by: arakaht Re: ASSISTANCE NEEDED 20681 by: Hugh Bothwell Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: [EMAIL PROTECTED] ----------------------------------------------------------------------
--- Begin Message ---I am trying to use DB.php, but I am getting htis error... Fatal error: main(): Failed opening required 'DB.php' (include_path='.;c:\php4\pear') I can't find this path defined *anywhere* I don't have PHP installed thee. How can I "fix" this include path issue. Thanks Walter
--- End Message ---
--- Begin Message ---There are two modes to solve this: - First when you are calling the file give the exact path from the file you are calling to the DB.php - second, the 'include_path = ' is a php.ini property so is there you have to add the path to the DB.php The php try first to access the DB.php directly assuming the file is in the same directory, if it can't find him it will search the file into the paths defined in the include_path property. That's why you see the error that it can't find the file into the include_path. Try the first solution. -- ------------------------------------------------- Cristian MARIN - Developer InterAKT Online (www.interakt.ro) Tel: +4021 312.53.12 Tel/Fax: +4021 312.51.91 [EMAIL PROTECTED] "Jswalter" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I am trying to use DB.php, but I am getting htis error... > > Fatal error: main(): Failed opening required 'DB.php' > (include_path='.;c:\php4\pear') > > I can't find this path defined *anywhere* > > I don't have PHP installed thee. > > How can I "fix" this include path issue. > > Thanks > > Walter > > >
--- End Message ---
--- Begin Message ---
In this code:
if ($prtpdf) {
include "letter_new.php";
exit;
}
I create a PDF page, however I would like to continue within the script (not have the exit). If I do that, the PDF page is corrupted by the script code.
What is the best solution for this?
Todd
--
<<inline: NewLogo.gif>>
--- End Message ---
--- Begin Message ---Todd, What does this letter_new.php file do? Anything that spits out any kind of output after the PDF doc is sent will result in a corrupted PDF (unless it's valid PDF stuff...). What I do when I have an issue like that is to open up Sam Spade (samspade.org - download the windows client) and do an http request for that file (the web icon) and see what is screwing up the content. A telnet to port 80 acting as a web browser will work as well. You might also have some code that prints after your exit; call. -Dash The problem with any unwritten law is that you don't know where to go to erase it. -- Glaser and Way On Thu, 3 Jul 2003, Todd Cary wrote: > In this code: > > if ($prtpdf) { > include "letter_new.php"; > exit; > } > > I create a PDF page, however I would like to continue within the script > (not have the exit). If I do that, the PDF page is corrupted by the > script code. > > What is the best solution for this? > > Todd > > -- >
--- End Message ---
--- Begin Message ---I am trying to set up PHP to work with ISS on my local standalone PC so that I can learn PHP. I have created a test page with 1 paragraph of HTML and a paragraph with 1 line of PHP (<?php echo "This is a PHP line"; phpinfo(); ?> When I load the page in my browser using http://localhost/filename.php the page loads with no problem but the PHP line does not show. Can anyone help? Working with servers and PHP is totally new to me so if anyone can help plain English would be really great!!!! Sorry I am working on being a techy (I'll get there one day :-)
--- End Message ---
--- Begin Message ---Hello, I have a problem with connecting to MySQL. It gives out message like this: "Warning: mysql_connect(): Access denied for user: '[EMAIL PROTECTED]' (Using password: YES)" What the heck does that password YES mean, cause I use another password. -- zicux mailto:[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---Hi Zicux Using password: YES, means that you have to use the password when connecting to the db. If you cannot connect with your password, you do not have the proper rights. You could then turn to the MySql manual and check the "Grant" and privileges section. Cheers, Doris ----- Original Message ----- From: "zicux" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, July 03, 2003 11:35 PM Subject: [PHP-WIN] can't connect to mysql > Hello, > > I have a problem with connecting to MySQL. It gives out message like > this: > "Warning: mysql_connect(): Access denied for user: '[EMAIL PROTECTED]' (Using password: YES)" > What the heck does that password YES mean, cause I use another > password. > > -- > > zicux mailto:[EMAIL PROTECTED] > > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---I am writing a standard guestbook application. However, I have to make absolutely sure that no profanity appears on this particular site. I could have the entries sit in the DB and wait to be approved by me but that would mean a lot of work on my part. Does anyone know of a script that filters out dirty words? If not, how about a list of dirty words that I could filter against? Thanks in advance, Dan
--- End Message ---
--- Begin Message ---Hello: I am running a win2k iis server and attempting to install php 4.3.2. I am running php in cgi mode. c:\php has permissions set. The ini.php is located in both %system% and c:\php. cgi redirect is set to 0, extention_dir is set to "c:\winnt\sysstem32", Doc_root = c:\Inetpub\wwwroot, app mapping completed. index.php added to default document. Test the directory with index.html (works) I am getting a 404 error.... What am I missing... Thank you.... Kat
--- End Message ---
--- Begin Message ---"Louis" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > "Mariam Abacha" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> Hello, >> I am sorry for the embarrassment this letter might cause you as we have not >> had any correspondence before this letter. I got your address through my >> nephew with Nigerian Military Chamber of Commerce industry and Mining >> [snip] >> DR. (MRS) MARIAM ABACHA > > How the hell did this get added to the PHP list :O. Spam, junk u name it, > thats just what this is The scary part is, if they go to this much trouble to send it around, some suckers must still be falling for it. -- Hugh Bothwell [EMAIL PROTECTED] Kingston ON Canada v3.1 GCS/E/AT d- s+: a- C+++ L++>+++$ P+ E- W+++$ N++ K? w++ M PS+ PE++ Y+ PGP+ t-- 5++ !X R+ tv b++++ DI+++ D-(++) G+ e(++) h-- r- y+
--- End Message ---