[PHP-DB] php problem
I am new to php and have no idea what I'm doing wrong. I have a file named test.php containing: html head title PHP Test /title /head body pThis is an HTML line p ?php echo This is a PHP line; phpinfo(); ? /body /html The html lines show up just fine but none of the php info is displayed. Any ideas? ~Serenity~ - Do you Yahoo!? Yahoo! Mail - You care about security. So do we.
Re: [PHP-DB] php problem
Serenity Schindler wrote: I am new to php and have no idea what I'm doing wrong. I have a file named test.php containing: html head title PHP Test /title /head body pThis is an HTML line p ?php echo This is a PHP line; phpinfo(); ? /body /html The html lines show up just fine but none of the php info is displayed. Any ideas? does your page show you the text This is a PHP line? if you view the source of the page in your browser do you see the following: ?php echo This is a PHP line; phpinfo(); ? if so then PHP is not either: 1. your webserver is not configured to use php to handle files with a php extension. 2. your webserver does not have php installed. if not then try a file containing just the following and see if that outputs anything: ?php phpinfo(); ? ~Serenity~ - Do you Yahoo!? Yahoo! Mail - You care about security. So do we. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DB] php problem
-Original Message- From: Jochem Maas [mailto:[EMAIL PROTECTED] Sent: Thursday, January 06, 2005 7:13 AM Subject: Re: [PHP-DB] php problem if so then PHP is not either: 1. your webserver is not configured to use php to handle files with a php extension. 2. your webserver does not have php installed. 3. The file extension isn't recognized by apache as something to parse for php (e.g. it's .html not .php) Cheers, - Martin Norland, Database / Web Developer, International Outreach x3257 The opinion(s) contained within this email do not necessarily represent those of St. Jude Children's Research Hospital. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DB] php problem
whats the php info? From: Serenity Schindler [EMAIL PROTECTED] To: php-db@lists.php.net Subject: [PHP-DB] php problem Date: Thu, 6 Jan 2005 05:00:32 -0800 (PST) MIME-Version: 1.0 Received: from lists.php.net ([216.92.131.4]) by mc10-f30.hotmail.com with Microsoft SMTPSVC(6.0.3790.211); Thu, 6 Jan 2005 05:01:36 -0800 Received: from ([216.92.131.4:19798] helo=pb1.pair.com)by pb1.pair.com (ecelerity HEAD (r3992M)) with SMTPid 40/9E-00694-0B63DD14 for [EMAIL PROTECTED]; Thu, 06 Jan 2005 08:01:36 -0500 Received: (qmail 33804 invoked by uid 1010); 6 Jan 2005 13:00:37 - Received: (qmail 33790 invoked by uid 1010); 6 Jan 2005 13:00:37 - X-Message-Info: 6sSXyD95QpW4Qlznwr+PaUISO5zVUEDYHmufcGYXiPw= Return-Path: [EMAIL PROTECTED] X-Host-Fingerprint: 216.92.131.4 lists.php.net Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm Precedence: bulk list-help: mailto:[EMAIL PROTECTED] list-unsubscribe: mailto:[EMAIL PROTECTED] list-post: mailto:php-db@lists.php.net Delivered-To: mailing list php-db@lists.php.net Delivered-To: [EMAIL PROTECTED] Delivered-To: [EMAIL PROTECTED] X-Host-Fingerprint: 206.190.38.234 web51803.mail.yahoo.com FreeBSD 4.7-5.2 (or MacOS X 10.2-10.3) (2) Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;s=s1024; d=yahoo.com;b=U1nGI9pvlKE2Iv1QBvWXTvGWPvNX3mvrROr31XWwk/kszJ6mkDXfgQNuYpY9Z2iDEk/pI/c34RBx7hlEbjIgy5Bal0ecKHZjGXw3YeV7PJYmAoy6z2tHWWulSxFT8BfoAI4mEU7/gYX3wiev2DD9jG3V37cmjE/9VtYjvJq81K8= ; X-OriginalArrivalTime: 06 Jan 2005 13:01:36.0783 (UTC) FILETIME=[DADC71F0:01C4F3EF] I am new to php and have no idea what I'm doing wrong. I have a file named test.php containing: html head title PHP Test /title /head body pThis is an HTML line p ?php echo This is a PHP line; phpinfo(); ? /body /html The html lines show up just fine but none of the php info is displayed. Any ideas? ~Serenity~ - Do you Yahoo!? Yahoo! Mail - You care about security. So do we. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] PHP Problem, Special String Character...please help
Hai... I have problem with manipulating the string... How to send the string with special character included to the other pages... For example the string Father Son, when I send into other page the display become Father Example special characters are , +, , , etc How to fix it??? Thanks very much for your kind attention Best Regards, Ferry PHP sample file 1 : string_test.php html ? $title=Father Son; echo the real title : $title; ? br pa href=string_display.php?stitle=? echo $title;?next page/a/p /html file 2 : string_display.php html ? echo in this pagebr; echo the title : $stitle; ? pCould you fix this problem??/p Pthe title should be Father Sonp pthe problem is using the special character ( , +, , , , etc)/p br pa href=string_test.phpback/a/p /html _ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] PHP Problem, Special String Character...please help
I have problem with manipulating the string... How to send the string with special character included to the other pages... Take a look at this http://de2.php.net/urlencode http://de2.php.net/urldecode hth toby -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DB] PHP Problem, Special String Character...please help
Try using HTMLSPECIALCHAR() function. $title = htmlspecialhtml($title); -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DB] PHP Problem, Special String Character...please help
I already received your help... I really loved it... Thanks very much all... I will try it... _ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] PHP Problem, Special String Character...please help
You can encode string before sending it out. Try htmlspecialchars($str, ENT_QUOTES).. before sending string - from PHP manual: The translations performed are: a.. '' (ampersand) becomes 'amp;' b.. '' (double quote) becomes 'quot;' when ENT_NOQUOTES is not set. c.. ''' (single quote) becomes '#039;' only when ENT_QUOTES is set. d.. '' (less than) becomes 'lt;' e.. '' (greater than) becomes 'gt;' - Hope this helps, Muhammed Mamedov tmchat.com - Original Message - From: Ferry CS [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, January 14, 2004 12:20 PM Subject: [PHP-DB] PHP Problem, Special String Character...please help Hai... I have problem with manipulating the string... How to send the string with special character included to the other pages... For example the string Father Son, when I send into other page the display become Father Example special characters are , +, , , etc How to fix it??? Thanks very much for your kind attention Best Regards, Ferry PHP sample file 1 : string_test.php html ? $title=Father Son; echo the real title : $title; ? br pa href=string_display.php?stitle=? echo $title;?next page/a/p /html file 2 : string_display.php html ? echo in this pagebr; echo the title : $stitle; ? pCould you fix this problem??/p Pthe title should be Father Sonp pthe problem is using the special character ( , +, , , , etc)/p br pa href=string_test.phpback/a/p /html _ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] PHP Problem, Special String Character...please help
If you are sending this as a query string to another page you want rawurlencode or urlencode rather than htmlspecialchars brett king wrote: Try using HTMLSPECIALCHAR() function. $title = htmlspecialhtml($title); -- Olwen Williams See my BB site http://www.bandbclub.com and my new site http://www.handyman.co.nz - A virtual shed for real kiwi blokes. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] PHP problem
4 words! i dont believe you! -- Kim Steinhaug --- There are 10 types of people when it comes to binary numbers: those who understand them, and those who don't. --- Unknown Sender [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Unfortunately, it doesn't work, the same situation Sorry to be a little bit off topic i have code that generates: OPTION LABEL=1LONG TEXT 1 use: option value=1long text 1/option mvgr, Joffrey van Wageningen -- .-[ Joffrey van Wageningen | WoLFjuh | [EMAIL PROTECTED] ]-- | Networking Event 2000 - www.ne2000.nl - IRCnet:#ne2000, Undernet:#clue | PGP:1024D/C6BA5863 - 3B93 52D3 CB91 9CB7 C50D FA79 865F 628A C6BA 5863 | * We demand guaranteed rigidly defined areas of doubt and uncertainty. | -- Douglas Adams -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Okresl Swoje potrzeby - my znajdziemy oferte za Ciebie! [ http://oferty.onet.pl ] -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] PHP Problem
Hi All Hi i install PHP4.3 and apache2 now i create one page for PHP Info i use ?php phpinfo();? i show all info on web page . But Problem is here When i create one page for Connect Database on PostgreSQL.it not work. mean Postgresql work well i test it. i thing PHP Command problem. Please help where is Problem. in PHP Configuration or Apache Configuration. Ramesh Patel [EMAIL PROTECTED] -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] PHP Problem
Please post the code you are trying to use so that we can try to find the problem. Without data, we can't tell you where things went wrong. Edward Dudlik Becoming Digital www.becomingdigital.com - Original Message - From: Ramesh PAtel [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, 07 June, 2003 01:12 Subject: [PHP-DB] PHP Problem Hi All Hi i install PHP4.3 and apache2 now i create one page for PHP Info i use ?php phpinfo();? i show all info on web page . But Problem is here When i create one page for Connect Database on PostgreSQL.it not work. mean Postgresql work well i test it. i thing PHP Command problem. Please help where is Problem. in PHP Configuration or Apache Configuration. Ramesh Patel [EMAIL PROTECTED] -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] php problem passing variables
hi, i've tryed to install php 4.2.1 with apache 1.3.24 php works, but i can't pass any variables. is it in php.ini that i have to change something ? or is the installation of php not correct ??.. thanks in advance, Richard Pijnenburg The netherlands -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DB] php problem passing variables
This doesn't look like a database question to me... Anyway, try $_POST['variable_name'] if the variable comes from a form with the POST-method $_GET['variable_name'] - Form using GET-method or passing variables in the URI (mypage.php?variable_name=42) Regards Joakim Andersson -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 10, 2002 9:32 AM To: [EMAIL PROTECTED] Subject: [PHP-DB] php problem passing variables hi, i've tryed to install php 4.2.1 with apache 1.3.24 php works, but i can't pass any variables. is it in php.ini that i have to change something ? or is the installation of php not correct ??.. thanks in advance, Richard Pijnenburg The netherlands -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] PHP problem
Sorry to be a little bit off topic i have code that generates: SELECT NAME=xxx OPTION LABEL=1LONG TEXT 1 OPTION LABEL=2LONG TEXT 2 OPTION LABEL=3LONG TEXT 3 /SELECT in the script I check value of $xxx and I get i.e. LONG TEXT 1 despite of 1. Do you have any idea on this. PS. Placing /OPTION at the end of each line doesn't help thanks in advance Bartlomiej Pawlik -- Okrel Swoje potrzeby - my znajdziemy ofert za Ciebie! [ http://oferty.onet.pl ]
Re: [PHP-DB] PHP problem
- Original Message - From: Bartek Pawlik [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, February 26, 2002 11:11 AM Subject: [PHP-DB] PHP problem Sorry to be a little bit off topic i have code that generates: OPTION LABEL=1LONG TEXT 1 use: option value=1long text 1/option mvgr, Joffrey van Wageningen -- .-[ Joffrey van Wageningen | WoLFjuh | [EMAIL PROTECTED] ]-- | Networking Event 2000 - www.ne2000.nl - IRCnet:#ne2000, Undernet:#clue | PGP:1024D/C6BA5863 - 3B93 52D3 CB91 9CB7 C50D FA79 865F 628A C6BA 5863 | * We demand guaranteed rigidly defined areas of doubt and uncertainty. | -- Douglas Adams -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Odp: [PHP-DB] PHP problem
Unfortunately, it doesn't work, the same situation Sorry to be a little bit off topic i have code that generates: OPTION LABEL=1LONG TEXT 1 use: option value=1long text 1/option mvgr, Joffrey van Wageningen -- .-[ Joffrey van Wageningen | WoLFjuh | [EMAIL PROTECTED] ]-- | Networking Event 2000 - www.ne2000.nl - IRCnet:#ne2000, Undernet:#clue | PGP:1024D/C6BA5863 - 3B93 52D3 CB91 9CB7 C50D FA79 865F 628A C6BA 5863 | * We demand guaranteed rigidly defined areas of doubt and uncertainty. | -- Douglas Adams -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Okresl Swoje potrzeby - my znajdziemy oferte za Ciebie! [ http://oferty.onet.pl ] -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] PHP problem
Bartek, This is snipped from a working form on my site: select name=ASOp option value=cn selectedcontains option value=eqexact match option value=bwbegins with /select and it works. George - Original Message - From: Bartek Pawlik [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, February 26, 2002 10:49 AM Subject: Odp: [PHP-DB] PHP problem Unfortunately, it doesn't work, the same situation Sorry to be a little bit off topic i have code that generates: OPTION LABEL=1LONG TEXT 1 use: option value=1long text 1/option mvgr, Joffrey van Wageningen -- .-[ Joffrey van Wageningen | WoLFjuh | [EMAIL PROTECTED] ]-- | Networking Event 2000 - www.ne2000.nl - IRCnet:#ne2000, Undernet:#clue | PGP:1024D/C6BA5863 - 3B93 52D3 CB91 9CB7 C50D FA79 865F 628A C6BA 5863 | * We demand guaranteed rigidly defined areas of doubt and uncertainty. | -- Douglas Adams -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Okresl Swoje potrzeby - my znajdziemy oferte za Ciebie! [ http://oferty.onet.pl ] -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] PHP problem
Dear Bartlomiej Pawlik, Try: SELECT NAME=xxx OPTION VALUE=1LONG TEXT 1 OPTION VALUE=2LONG TEXT 2 OPTION VALUE=3LONG TEXT 3 /SELECT Greetings, Maarten Verheijen - Original Message - From: Bartek Pawlik [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, February 26, 2002 11:11 AM Subject: [PHP-DB] PHP problem Sorry to be a little bit off topic i have code that generates: SELECT NAME=xxx OPTION LABEL=1LONG TEXT 1 OPTION LABEL=2LONG TEXT 2 OPTION LABEL=3LONG TEXT 3 /SELECT in the script I check value of $xxx and I get i.e. LONG TEXT 1 despite of 1. Do you have any idea on this. PS. Placing /OPTION at the end of each line doesn't help thanks in advance Bartlomiej Pawlik -- Okrel Swoje potrzeby - my znajdziemy ofert za Ciebie! [ http://oferty.onet.pl ] -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DB] PHP problem
user something like this: the thing you're looking for is the SELECTED bit of the select drop down ... echo 'select name=month onChange=document.thisForm.submit()'; $months = Array(January, February, March, April, May, June, July, August, September, October, November, December); for ($x=1; $x = count($months); $x++) { print \toption value=\$x\ ; print ($x == intval($cmonth)) ? SELECTED: ; print .$months[$x-1].\n/option; } echo ' /select '; get the form to submit itself using action=?php print $PHP_SELF() ? Steve -Original Message- From: Johan [mailto:[EMAIL PROTECTED]] Sent: 29 April 2001 16:02 To: [EMAIL PROTECTED] Subject: [PHP-DB] PHP problem Dear Sir/Madam, I have a mysql database available with user information. I want that visitors have the change to change their personel information. Now the form works with two different types of fields. edit-fields and selectie/option-lists. How do I get the value of a user from a selectionlists selected in the form-field. All options must be availabele, but the value of the user must be selected in the form field. If anyone can help me please mail me at [EMAIL PROTECTED] Thanks Johan. -- PHP Database 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] -- PHP Database 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]
[PHP-DB] PHP problem
Dear Sir/Madam, I have a mysql database available with user information. I want that visitors have the change to change their personel information. Now the form works with two different types of fields. edit-fields and selectie/option-lists. How do I get the value of a user from a selectionlists selected in the form-field. All options must be availabele, but the value of the user must be selected in the form field. If anyone can help me please mail me at [EMAIL PROTECTED] Thanks Johan. -- PHP Database 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]
[PHP-DB] PHP problem with Postgresql
Hi, I've migrated a system using PHP4.0.3pl1 and PostgreSQL 7.0.2 over a RedHat 5.1 Linux to a new one using PHP4.0.4pl1 and PostgreSQL 7.0.2 on a RedHat 7.0 box. I've noticed a strange behaviour on one of my web sites; if I try to execute more than 2 query over an open connection, all the queries starting from the third one are empty ! And the same code, untouched, works successfully on the previous installation ! Is there anyone who can help me to solve this ? Thank you in advance, Luca Lazzeroni -- PHP Database 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]