php-windows Digest 6 Aug 2001 21:30:35 -0000 Issue 688 Topics (messages 8675 through 8687): Re: The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: 8675 by: Phil Driscoll Re: ORACLE 8676 by: C.Chassagneux Re: loading the test page 8677 by: Farawak 8678 by: Phil Driscoll Re: Client-side vs Server side 8679 by: Svensson, B.A.T. 8680 by: Hugh Bothwell PHP & JAVA: Odd Behavior 8681 by: Marcos Re: I need some help or a .45 magnum 8682 by: Asendorf, John 8684 by: G Schneider Re: Configuring php4 with ms sql support 8683 by: Phillip Bow looking for a programmer 8685 by: afan can anyone explain this code segment? 8686 by: Hugh Bothwell Trying to assosiate .wml 8687 by: Sven-Olov Larsson 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] ----------------------------------------------------------------------
On Sunday 05 August 2001 19:54, Mike Barber wrote: > I am running IIS 5 PHP 4, when ever i try to load a page like > http://localhost/page.php i get "The specified CGI application misbehaved > by not returning a complete set of HTTP headers. The headers it did return > are:" > > When i have a form post data(from a .html page to the page it will work > fine. This is frustrating at least, i have seen pages that are .php and > load with out giving this error. > > Am i doing something wrong or what settings do i have to change? If you are 100% sure that it works ok for POST, then all I can think of is that you have set up method exclusions in the script mapping dialogue box of the Internet Services Manager. There should be no exclusions if you want php to handle all requests. Cheers -- Phil Driscoll
I have try u'r solution, but is not the solution :/// I thinks it's a problem with the php4.0.6 in shell exec ..... My app must be works with a 7.3 client and a 8i client, because i don't know the oracle client of my Client computer. "Philippe Saladin" <[EMAIL PROTECTED]> a écrit dans le message news: [EMAIL PROTECTED] > I also had trouble with ORA 12154, but using OCILogon. I resolved it by > using not the name of the server, but the definition of its localization > (what you find in the TNSNAMES.ORA file). Something like : > $oracletns = "(DESCRIPTION = > (ADDRESS_LIST = > (ADDRESS = > (COMMUNITY = tcp.world) > (PROTOCOL = TCP) > (Host = 21.1.1.145) > (Port = 1521) > ) > (ADDRESS = > (COMMUNITY = tcp.world) > (PROTOCOL = TCP) > (Host = 21.1.1.145) > (Port = 1526) > ) > ) > (CONNECT_DATA = (SID = ORCL) > ) > )"; > $Conn=OCILogon($oracleusername, $oraclepassword,$oracletns); > > Hope it will help you, > Best Regards, > Philippe > > > "C.Chassagneux" <[EMAIL PROTECTED]> a écrit dans le message news: > [EMAIL PROTECTED] > > I have a simple script in php : > > > > putenv("ORACLE_HOME=D:\\ORANT"); > > putenv("TNS_ADMIN=D:\\ORANT\\NETWORK\\ADMIN"); > > putenv("ORACLE_SID=xxxxxxxxx"); > > > > echo "Oracle : ". getenv("ORACLE_HOME")." \n"; > > echo "TNS_ADMIN : ". getenv("TNS_ADMIN")." \n"; > > echo "ORACLE_SID : ". getenv("ORACLE_SID")." \n"; > > > > $connect_oracle = ora_logon("xxxxx@xxxxxxx" , > > "xxxxxxxxx" ); > > > > But then i do : > > e:\> php testoracle.php > > the prog reply : ORA-12154 : TNS name not resolved > > > > with apache server, I don't have this problem. > > Can u help me ? > > PHP4.0.6 - Win NT4W SP5 > > > > > > > > > > > > > > > >
I have the exact same problem - please let me know if you resolve this problem... Thanks "Alex Shiu" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi all, > > I have some trouble getting the php test page to display, please help. I > am running > > Apache 1.3.12 > WinNT SP6 > PHP 4.0.6 > > I already verified that apache is working. Then I installed PHP and added > the necessary lines to httpd.conf > > Then I added <? phpinfo() ?> to a test.php file > > when i try to open http://localhost/test.php , IE always prompts me to open > or save the file for some reason, does anyone know why? > > ~Alex > >
On Thursday 02 August 2001 00:50, Alex Shiu wrote: > Hi all, > > I have some trouble getting the php test page to display, please help. > I am running > > Apache 1.3.12 > WinNT SP6 > PHP 4.0.6 > > I already verified that apache is working. Then I installed PHP and added > the necessary lines to httpd.conf > > Then I added <? phpinfo() ?> to a test.php file > > when i try to open http://localhost/test.php , IE always prompts me to open > or save the file for some reason, does anyone know why? Did you restart Apache? (net stop apache, net start apache) If so, you'd better post the relevant lines from your httpd.conf -- Phil Driscoll
From: Ruvinda Sent: Monday, August 06, 2001 5:33 AM Subject: [PHP-WIN] Client-side vs Server side >What is the difference between Client side programming >compared to server side programming. In what respect would you like to do the comparison? >What are the advantages of server side programming if any. Depends on the view point you stress with your question.
"B.A.T. Svensson" <[EMAIL PROTECTED]> wrote in message 27E647E5629ED211BF78009027289C630337DC2A@mail1">news:27E647E5629ED211BF78009027289C630337DC2A@mail1... > From: Ruvinda > Sent: Monday, August 06, 2001 5:33 AM > Subject: [PHP-WIN] Client-side vs Server side > > >What is the difference between Client side programming > >compared to server side programming. > > In what respect would you like to do the comparison? Server-side is good for - keeping your super-duper proprietary source code secret - interfacing to other stuff on the server, ie databases, mail or news servers, etc - dynamically updating your site - adding "today's headlines" etc. - separating code from format (ie templates) - makes maintenance and updating easier. Server-side is bad for - increasing the load on your server - introducing security holes (when poorly written). Client-side is good for - making individual pages dynamic - image rollovers, form checking, etc Client-side is bad for - major incompatibilities between browser object models makes cross-browser coding difficult. - your source code is open to the public
Hi, I got something very odd while trying to run php with java. First, my system specs: My System: Windows NT4.0 SP6 (same happens on Windows XP) Apache 1.3.20 PHP 4.0.6 Sun Microsystems JDK 1.3.1 Java settings from php.ini: [Java] java.class.path="D:\php406\java\php_java.jar;D:\jdk\lib" java.home=D:\jdk java.library=D:\jdk\bin\hotspot\jvm.dll java.library.path=D:\php406\extensions\ Program I am running: <?php $system = new Java("java.lang.System"); print "Java version=".$system->getProperty("java.version")." <br>"; print "Java vendor=" .$system->getProperty("java.vendor")." <br>"; print "OS=".$system->getProperty("os.name")." ". $system->getProperty("os.version")." on ". $system->getProperty("os.arch")." <br>"; $formatter = new Java("java.text.SimpleDateFormat", "EEEE, MMMM dd, yyyy 'at' h:mm:ss a zzzz"); print $formatter->format(new Java("java.util.Date")); ?> When I start the apache server service, the program runs ok (several reloads on the browser). But, if I close the browser and open it again, the program no longer runs and give me a "Fatal error: Unable to create Java Virtual Machine in d:\http\info.php3 on line 9". After several reloads, sometimes I get it to run again (just one time). If I restart the apache server service, the program works again, but with the same behavior: if I close the browser window and open it again, it does not work. While all the above is happening, if a go to the command prompt and type: "d:\php406\php d:\http\myprogram.php3", it works fine, every time. I ran out of options and, if anyone could help, I'll appreciate. Tks, Marcos
Looks like you're missing a " > $mailheaders = "From: My Web Site\n; You've probably already seent that though. John --------------------- John Asendorf - [EMAIL PROTECTED] Web Applications Developer http://www.lcounty.com - NEW FEATURES ADDED DAILY! Licking County, Ohio, USA 740-349-3631 Aliquando et insanire iucundum est > -----Original Message----- > From: rodney [mailto:[EMAIL PROTECTED]] > Sent: Saturday, August 04, 2001 12:40 PM > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] I need some help or a .45 magnum > > > Hello, > > I'm new to php. I'm having trouble making the mail function work. > I wrote a simple mail script that supports mail delivery when a user > fills out a form. It's not working. > > The editor tells me this is the problem: > > mail("[EMAIL PROTECTED]", "Feedback", $msg, $mailheaders); > > However I don't see it. > > Here is the complete script: > > <?php_tracking_vars?> > <?php > $msg = "Sender's Full Name:\t$sendor_name\n"; > $msg .= "Sender's Email:\t$sender_email\n"; > $msg .= "Did you like this site?\t$like_site\n"; > $msg .= "Additional Message:\t$message\n\n"; > > $mailheaders = "From: My Web Site\n; > $mailheaders .= "Reply-To: $sender_email\n\n"; > > if (($sender_email == "") || ($message == "")) { > header(location: http://127.0.0.1/show.feedback.html"); > exit; > } > mail("[EMAIL PROTECTED]", "Feedback", $msg, $mailheaders); > > echo "<H1 align=center>Thank you.$sender_name</H1>"; > echo "<P align=center>We dig you feedback.</P>"; > > ?> > > > I am stuck like chuck on this one. Any help is appreciated. > > rw > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: > [EMAIL PROTECTED] >
If the mail function doesn't work - PHP may never give you an error message. It may just hang. Many providers don't let their SMTP servers accept relays. This is needed for the PHP mail() function to work. -- ++++++++++++++++++++++++++++++++++++++++ http://www.webmastersdog.com where website owners go. and talk about stuff. ++++++++++++++++++++++++++++++++++++++++ "Rodney" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello, > > I'm new to php. I'm having trouble making the mail function work. > I wrote a simple mail script that supports mail delivery when a user > fills out a form. It's not working. > > The editor tells me this is the problem: > > mail("[EMAIL PROTECTED]", "Feedback", $msg, $mailheaders); > > However I don't see it. > > Here is the complete script: > > <?php_tracking_vars?> > <?php > $msg = "Sender's Full Name:\t$sendor_name\n"; > $msg .= "Sender's Email:\t$sender_email\n"; > $msg .= "Did you like this site?\t$like_site\n"; > $msg .= "Additional Message:\t$message\n\n"; > > $mailheaders = "From: My Web Site\n; > $mailheaders .= "Reply-To: $sender_email\n\n"; > > if (($sender_email == "") || ($message == "")) { > header(location: http://127.0.0.1/show.feedback.html"); > exit; > } > mail("[EMAIL PROTECTED]", "Feedback", $msg, $mailheaders); > > echo "<H1 align=center>Thank you.$sender_name</H1>"; > echo "<P align=center>We dig you feedback.</P>"; > > ?> > > > I am stuck like chuck on this one. Any help is appreciated. > > rw > >
Why is it trying to load php_sql70.dll if you said the filename was php_mssql70.dll? -- phill "Quintin Blane" <[EMAIL PROTECTED]> wrote in message 000001c11df1$901602d0$2fd3fea9@qablane2k">news:000001c11df1$901602d0$2fd3fea9@qablane2k... > When I add php_mssql70.dll to the dll's I want loaded in the ini file I get > the message: > 'Unable to load dynamic library 'c:\PHP4/php_sql70.dll' - The specified > procedure could not be found' > The dll is in the same directory as php_gd.dll, which loads successfully. > What is happening here? > > Quintin A Blane >
We are looking for 1 programmer with thorough understanding of PHP to start right away. This will start as a freelance position that may turn into fulltime if we find the right match. The person needs to be in NYC and will be working from our offices. Please contact Carlos Chiossone at 212-473-3616
Apologies for posting to php.windows with a non-windows-specific question, but I haven't been receiving php.general for several weeks now; I assume it went mailing-list-only to lower the load on the news server?? I've been poking through source to a message-board script, and came across some code I don't quite understand; ... $text=ereg_replace("<[^>]*>", "", $text); $text=ereg_replace("^<[^>]*>", "", $text); $text=ereg_replace("<[^>]*>$", "", $text); echo $text; ... in context, they are trying to strip any html and/or scripty stuff out of the body of a message before outputting it. The first statement removes '<anything in brackets>', the second replaces anything in brackets starting at the beginning of a line... Q. Isn't that redundant? Shouldn't the first statement have removed all the bracket-pairs? In which case, this statement will never find a set of brackets and thus does nothing at all?! ... and the third removes anything in brackets followed by a dollars-sign... Q. Even more redundant!? There should be no bracketed stuff left by now! Can anyone figure out the logic behind this??
Hello World! When experementing with hawhaw.inc I want *.wml to be parsed by php4isapi.dll Windows98 with PWS How? -- Greetings from Sweden: | Sven-Olov Larsson | [EMAIL PROTECTED] | http://www.debugdata.se/