[PHP] Re: Weird problem with is_file()
Hello Jan G.B., Am 2010-04-26 11:52:02, hacktest Du folgendes herunter: I would recommend not to let any user input to your shell. This piece of code is very insecure as any client may manipulate the shell command at will. It is ony a simplified example... The original shell_exec() is more comlicate and I have no absolute pathes (they are mostly all dynamic). You don't want people to take over your server that easily. :-) See http://www.php.net/escapeshellcmd and alike. I know Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator -- # Debian GNU/Linux Consultant ## Development of Intranet and Embedded Systems with Debian GNU/Linux itsyst...@tdnet France itsyst...@tdnet UG (haftungsbeschränkt) Gesch. Michelle Konzack Gesch. Michelle Konzack Apt. 917 (homeoffice) 50, rue de Soultz Kinzigstraße 17 67100 Strasbourg/France 77694 Kehl/Germany Tel: +33-6-61925193 mobil Tel: +49-177-9351947 mobil Tel: +33-9-52705884 fix http://www.itsystems.tamay-dogan.net/ http://www.flexray4linux.org/ http://www.debian.tamay-dogan.net/ http://www.can4linux.org/ Jabber linux4miche...@jabber.ccc.de ICQ#328449886 Linux-User #280138 with the Linux Counter, http://counter.li.org/ signature.pgp Description: Digital signature
[PHP] Re: Weird problem with is_file()
Hello Peter, Am 2010-04-26 09:28:28, hacktest Du folgendes herunter: var_dump($isfile); Don't make assumptions of what the value is, just check it. Yes and grmpf! The filename has a space at the end but it can not removed even using var_dump(str_replace(' ', '', $isfile); if I put a '1' as search parameter all '1' are removed, but WHY can I not remove a space at the end? Even if a do a mv the_file_not_recognized the_file_not_recognized\space it is not detected... even if the var_dump() show me something like string(29) /tmp/the_file_not_recognized Simple to test exec(touch /tmp/the_file_not_recognized); $FILE=shell_exec(ls /tmp/the_file_not_* |head -n1); var_dump($FILE); echo br; var_dump(str_replace(' ', '', $FILE); Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator -- # Debian GNU/Linux Consultant ## Development of Intranet and Embedded Systems with Debian GNU/Linux itsyst...@tdnet France itsyst...@tdnet UG (haftungsbeschränkt) Gesch. Michelle Konzack Gesch. Michelle Konzack Apt. 917 (homeoffice) 50, rue de Soultz Kinzigstraße 17 67100 Strasbourg/France 77694 Kehl/Germany Tel: +33-6-61925193 mobil Tel: +49-177-9351947 mobil Tel: +33-9-52705884 fix http://www.itsystems.tamay-dogan.net/ http://www.flexray4linux.org/ http://www.debian.tamay-dogan.net/ http://www.can4linux.org/ Jabber linux4miche...@jabber.ccc.de ICQ#328449886 Linux-User #280138 with the Linux Counter, http://counter.li.org/ signature.pgp Description: Digital signature
[PHP] Re: Weird problem with is_file()
On 26/04/10 16:56, Michelle Konzack wrote: Hello Peter, Am 2010-04-26 09:28:28, hacktest Du folgendes herunter: var_dump($isfile); Don't make assumptions of what the value is, just check it. Yes and grmpf! The filename has a space at the end but it can not removed even using var_dump(str_replace(' ', '', $isfile); if I put a '1' as search parameter all '1' are removed, but WHY can I not remove a space at the end? Even if a do a mv the_file_not_recognized the_file_not_recognized\space it is not detected... even if the var_dump() show me something like string(29) /tmp/the_file_not_recognized Simple to test exec(touch /tmp/the_file_not_recognized); $FILE=shell_exec(ls /tmp/the_file_not_* |head -n1); var_dump($FILE); echo br; var_dump(str_replace(' ', '', $FILE); Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator Is it possible that the space is a new-line (or a carriage-return) ? What happens if you replace str_replace(' ', '', $FILE) with preg_replace('/\s+$/','',$FILE); ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Weird problem with is_file()
On Mon, 2010-04-26 at 17:56 +0200, Michelle Konzack wrote: Hello Peter, Am 2010-04-26 09:28:28, hacktest Du folgendes herunter: var_dump($isfile); Don't make assumptions of what the value is, just check it. Yes and grmpf! The filename has a space at the end but it can not removed even using var_dump(str_replace(' ', '', $isfile); if I put a '1' as search parameter all '1' are removed, but WHY can I not remove a space at the end? Even if a do a mv the_file_not_recognized the_file_not_recognized\space it is not detected... even if the var_dump() show me something like string(29) /tmp/the_file_not_recognized Simple to test exec(touch /tmp/the_file_not_recognized); $FILE=shell_exec(ls /tmp/the_file_not_* |head -n1); var_dump($FILE); echo br; var_dump(str_replace(' ', '', $FILE); Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator It's probably not a space but some other non-displayed character. Check the ascii value of that actual character. A space is 32, anything else can be replaced using str_replace(chr(x), '', $FILE) if you can't type it with your keyboard. Thanks, Ash http://www.ashleysheridan.co.uk
[PHP] Re: Weird problem with is_file()
Hello Pete, Am 2010-04-26 17:04:32, hacktest Du folgendes herunter: Is it possible that the space is a new-line (or a carriage-return) ? grmpf! -- That it was... preg_replace('/\s+$/','',$FILE); Works now! Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator -- # Debian GNU/Linux Consultant ## Development of Intranet and Embedded Systems with Debian GNU/Linux itsyst...@tdnet France itsyst...@tdnet UG (haftungsbeschränkt) Gesch. Michelle Konzack Gesch. Michelle Konzack Apt. 917 (homeoffice) 50, rue de Soultz Kinzigstraße 17 67100 Strasbourg/France 77694 Kehl/Germany Tel: +33-6-61925193 mobil Tel: +49-177-9351947 mobil Tel: +33-9-52705884 fix http://www.itsystems.tamay-dogan.net/ http://www.flexray4linux.org/ http://www.debian.tamay-dogan.net/ http://www.can4linux.org/ Jabber linux4miche...@jabber.ccc.de ICQ#328449886 Linux-User #280138 with the Linux Counter, http://counter.li.org/ signature.pgp Description: Digital signature
[PHP] Re: Weird problem with T_gettext()
Am 2009-04-04 10:13:52, schrieb Per Jessen: Michelle Konzack wrote: Now selecting de as prefered language is working, but if I select de_DE in Firefox, the second term About Us is something like Ãber Uns insteed Über Uns because the Website is UTF-8. Indeed. I'll venture a guess and say it's because your dictionary file is bad or not actually UTF8. Weird, since my whole system is UTF-8 and if I try to einter iso-8859-1 charachters it complys that there is a error. Even xgettext tell me this I have checkd it already with iconv It seems the problem is if my msgid have strings like uuml; which are not correctly converted to UTF-8 if I use de_DE since in de it is working. Unfortunately the upstream of php-gettext is not responding to my mail This is realy weird, since the MO file is the same for both locale versions. Ah. Very weird, yes. Are you doing a setlocale() anywhere? The only setlocale() I have found in the whole system is in /usr/share/php/php-gettext/gettext.inc which a part of the php-gettext package. Fallback to what? I only have 'de' in my browser language preferences, and your site came up fine in German. If someone have in the browser only de-de and I have NO locale de_DE but de, php-gettext does not fallback to de. Normaly under Linux you can have /usr/share/locale/de_DE.UTF-8 /usr/share/locale/de...@euro /usr/share/locale/de_DE /usr/share/locale/de So if your system is de_DE.UTF-8 and there is no UTF-8 locale, gettext try de_DE and if that fais it try de. Unfortunately this does not work with php-gettext. For me it is a bug. Thanks, Greetings and nice Day/Evening Michelle Konzack -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # http://www.tamay-dogan.net/ Michelle Konzack http://www.can4linux.org/ Apt. 917 http://www.flexray4linux.org/ 50, rue de Soultz Jabber linux4miche...@jabber.ccc.de 67100 Strasbourg/France IRC #Debian (irc.icq.com) Tel. DE: +49 177 9351947 ICQ #328449886Tel. FR: +33 6 61925193 signature.pgp Description: Digital signature
[PHP] Re: Weird problem while reading in a file to an Array
Michelle Konzack wrote: Hello, currently I am coding a RSS feeder for the Emdebian buildd-log and for testing I use two files: http://www.emdebian.org/buildd/a/apt/trunk/apt-arm-1233120802.log http://www.emdebian.org/buildd/b/base-passwd/trunk/base-passwd-arm-1221459903.log and if you look into those Build-Logs, the structure is 100% identic. And now it comes: While the first file is working fine, the second fails processing... The generated RSS feed is here: http://devel.debian.tamay-dogan.net/rss.php?action=rsswhat=crush And you can see in the second item it is empty... :-( The script starts with: $HANDLE=curl_init(); curl_setopt($HANDLE, CURLOPT_URL, $_GET['name']); curl_setopt($HANDLE, CURLOPT_HEADER, 0); curl_setopt($HANDLE, CURLOPT_RETURNTRANSFER, 1); $BUILDLOG=curl_exec($HANDLE); if (curl_errno($HANDLE) != 0) { echo 'Curl error: ' . curl_error($HANDLE); exit(); } curl_close($HANDLE); /* Parsing the BUILDLOG */ exec(echo \$BUILDLOG\ |head -n 11, $TMP_DATA); and to see what happen to $BUILDLOG and array() I have included: echo pre\n; print_r($TMP_DATA); echo \n; echo ##\n; echo \n; echo $BUILDLOG; echo /pre\n; exec(escapeshellcmd(echo '$BUILDLOG' | head -n 11), $TMP_DATA); There are quotes or backticks or something in $BUILDLOG. -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Weird problem while reading in a file to an Array
Shawn McKenzie wrote: Michelle Konzack wrote: Hello, currently I am coding a RSS feeder for the Emdebian buildd-log and for testing I use two files: http://www.emdebian.org/buildd/a/apt/trunk/apt-arm-1233120802.log http://www.emdebian.org/buildd/b/base-passwd/trunk/base-passwd-arm-1221459903.log and if you look into those Build-Logs, the structure is 100% identic. And now it comes: While the first file is working fine, the second fails processing... The generated RSS feed is here: http://devel.debian.tamay-dogan.net/rss.php?action=rsswhat=crush And you can see in the second item it is empty... :-( The script starts with: $HANDLE=curl_init(); curl_setopt($HANDLE, CURLOPT_URL, $_GET['name']); curl_setopt($HANDLE, CURLOPT_HEADER, 0); curl_setopt($HANDLE, CURLOPT_RETURNTRANSFER, 1); $BUILDLOG=curl_exec($HANDLE); if (curl_errno($HANDLE) != 0) { echo 'Curl error: ' . curl_error($HANDLE); exit(); } curl_close($HANDLE); /* Parsing the BUILDLOG */ exec(echo \$BUILDLOG\ |head -n 11, $TMP_DATA); and to see what happen to $BUILDLOG and array() I have included: echo pre\n; print_r($TMP_DATA); echo \n; echo ##\n; echo \n; echo $BUILDLOG; echo /pre\n; exec(escapeshellcmd(echo '$BUILDLOG' | head -n 11), $TMP_DATA); There are quotes or backticks or something in $BUILDLOG. Or maybe this (can't test now): exec(escapeshellcmd(echo \$BUILDLOG\ | head -n 11), $TMP_DATA); -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Weird problem while reading in a file to an Array
Shawn McKenzie wrote: Michelle Konzack wrote: Hello, currently I am coding a RSS feeder for the Emdebian buildd-log and for testing I use two files: http://www.emdebian.org/buildd/a/apt/trunk/apt-arm-1233120802.log http://www.emdebian.org/buildd/b/base-passwd/trunk/base-passwd-arm-1221459903.log and if you look into those Build-Logs, the structure is 100% identic. And now it comes: While the first file is working fine, the second fails processing... The generated RSS feed is here: http://devel.debian.tamay-dogan.net/rss.php?action=rsswhat=crush And you can see in the second item it is empty... :-( The script starts with: $HANDLE=curl_init(); curl_setopt($HANDLE, CURLOPT_URL, $_GET['name']); curl_setopt($HANDLE, CURLOPT_HEADER, 0); curl_setopt($HANDLE, CURLOPT_RETURNTRANSFER, 1); $BUILDLOG=curl_exec($HANDLE); if (curl_errno($HANDLE) != 0) { echo 'Curl error: ' . curl_error($HANDLE); exit(); } curl_close($HANDLE); /* Parsing the BUILDLOG */ exec(echo \$BUILDLOG\ |head -n 11, $TMP_DATA); and to see what happen to $BUILDLOG and array() I have included: echo pre\n; print_r($TMP_DATA); echo \n; echo ##\n; echo \n; echo $BUILDLOG; echo /pre\n; exec(escapeshellcmd(echo '$BUILDLOG' | head -n 11), $TMP_DATA); There are quotes or backticks or something in $BUILDLOG. Actually though, instead of exec() why not something like: $TMP_DATA = explode(\n, $BUILDLOG, 11); -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Weird problem while reading in a file to an Array
Hello Shawn, Am 2009-01-29 15:34:41, schrieb Shawn McKenzie: exec(escapeshellcmd(echo '$BUILDLOG' | head -n 11), $TMP_DATA); There are quotes or backticks or something in $BUILDLOG. Thanks for it, now I have an array but the |head -n 11 is ignored and my arrays have up to several 10.000 elements... Also if I like to continue processing,it does not more work because the backslashes... Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator 24V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # http://www.tamay-dogan.net/ http://www.can4linux.org/ Michelle Konzack Apt. 917 ICQ #328449886 +49/177/935194750, rue de Soultz MSN LinuxMichi +33/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com) signature.pgp Description: Digital signature
[PHP] Re: Weird problem while reading in a file to an Array
Am 2009-01-29 15:34:41, schrieb Shawn McKenzie: exec(escapeshellcmd(echo '$BUILDLOG' | head -n 11), $TMP_DATA); There are quotes or backticks or something in $BUILDLOG. Forgotten one thing: If I continue to process the array() with, e.g., $POS=strpos(stripcslashes($TMP_DATA['0']), : ); $POS=$POS+2; $PKG=substr(stripcslashes($TMP_DATA['0']), $POS); $POS=strpos(stripcslashes($TMP_DATA['1']), version ); $POS=$POS+8; $VERSION=substr(stripcslashes($TMP_DATA['1']), $POS); stripcslashes() does not have any effect and processing fails. Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator 24V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # http://www.tamay-dogan.net/ http://www.can4linux.org/ Michelle Konzack Apt. 917 ICQ #328449886 +49/177/935194750, rue de Soultz MSN LinuxMichi +33/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com) signature.pgp Description: Digital signature
[PHP] Re: Weird problem while reading in a file to an Array
Am 2009-01-29 16:09:00, schrieb Shawn McKenzie: Actually though, instead of exec() why not something like: $TMP_DATA = explode(\n, $BUILDLOG, 11); Tried... but now I have 11 elements wher in the last element is the whole rest of the BUILD-Log... continue trying! Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator 24V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # http://www.tamay-dogan.net/ http://www.can4linux.org/ Michelle Konzack Apt. 917 ICQ #328449886 +49/177/935194750, rue de Soultz MSN LinuxMichi +33/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com) signature.pgp Description: Digital signature
[PHP] Re: Weird problem while reading in a file to an Array
Michelle Konzack wrote: Am 2009-01-29 16:09:00, schrieb Shawn McKenzie: Actually though, instead of exec() why not something like: $TMP_DATA = explode(\n, $BUILDLOG, 11); Tried... but now I have 11 elements wher in the last element is the whole rest of the BUILD-Log... continue trying! unset($BUILDLOG[11]); -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Weird problem while reading in a file to an Array
Michelle Konzack wrote: Hello Shawn, Am 2009-01-29 15:34:41, schrieb Shawn McKenzie: exec(escapeshellcmd(echo '$BUILDLOG' | head -n 11), $TMP_DATA); There are quotes or backticks or something in $BUILDLOG. Thanks for it, now I have an array but the |head -n 11 is ignored and my arrays have up to several 10.000 elements... Also if I like to continue processing,it does not more work because the backslashes... $BUILDLOG = escapeshellcmd($BUILDLOG); exec(echo \$BUILDLOG\ | head -n 11), $TMP_DATA); -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Weird problem while reading in a file to an Array
Michelle Konzack wrote: Am 2009-01-29 15:34:41, schrieb Shawn McKenzie: exec(escapeshellcmd(echo '$BUILDLOG' | head -n 11), $TMP_DATA); There are quotes or backticks or something in $BUILDLOG. Forgotten one thing: If I continue to process the array() with, e.g., $POS=strpos(stripcslashes($TMP_DATA['0']), : ); $POS=$POS+2; $PKG=substr(stripcslashes($TMP_DATA['0']), $POS); $POS=strpos(stripcslashes($TMP_DATA['1']), version ); $POS=$POS+8; $VERSION=substr(stripcslashes($TMP_DATA['1']), $POS); stripcslashes() does not have any effect and processing fails. Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator 24V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant I'm really lost at what you're saying and doing here. -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Weird problem with HTML form and $_POST
Am 2008-11-05 08:49:02, schrieb Oscar Gosdinski: On Wed, Nov 5, 2008 at 8:47 AM, Oscar Gosdinski [EMAIL PROTECTED] wrote: Name the select tag as sub_projects[], then in PHP you can read the $sub_project variable as an array. Oops, my error... you have to use the $_POST['sub_projects'] variable as an array. ;-) OK, now it works as expected... Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator 24V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # Michelle Konzack Apt. 917 ICQ #328449886 +49/177/935194750, rue de Soultz MSN LinuxMichi +33/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com) signature.pgp Description: Digital signature
[PHP] Re: Weird problem with HTML form and $_POST
Michelle Konzack a écrit : and as you can see, there are three items taged... So, this part is working fine, but if I select an additional item and hit SUBMIT I get only: How do you select it ? By a click or a ctrl-click ? -- Mickaël Wolff aka Lupus Michaelis http://lupusmic.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: weird problem with index page
On Monday 17 May 2004 13:38, loll wrote: Thanks for th einfo, after beating myself all day over it, I have determined that it only seesm to be an issue when using Internet Explorer, using opera or mozilla it seems to work as it should, so I really dont understand now. With Mozilla it automatically adds a trailing slash, maybe IE doesn't do this? -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general -- /* No one can guarantee the actions of another. -- Spock, Day of the Dove, stardate unknown */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: weird problem with index page
Hi, I use an apache rewrite rule on the server to force a trailing slash to be appended if the requested file is a really a directory: Inside virtual host Directory ...: [snip] IfModule mod_rewrite.c RewriteEngine on RewriteBase / RewriteCond %{REQUEST_FILENAME} -d #is requested file a directory? RewriteRule ^(.+[^/])$ $1/ [L,R] #append trailing slash redirect /IfModule [snip] So: www.mystite.com/dir would become: www.mystite.com/dir/ ... hence the the index file will be served Regards, Ulrik -Original Message- From: loll [mailto:[EMAIL PROTECTED] Sent: Monday, 17 May 2004 3:39 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Re: weird problem with index page Hi, Thanks for th einfo, after beating myself all day over it, I have determined that it only seesm to be an issue when using Internet Explorer, using opera or mozilla it seems to work as it should, so I really dont understand now. Checked the apache setting you meantioned and it seems to already be set to OFF. Anyway, with all these troubles I thought perhaps I would try upgrading php by creating a CGI version (the server has mod 4.2.2 installed). I managed to get the binary to create correctly, I can use it from the command line (tested it by using ./php.cgi phpinfo.php) but when I try to get it to work from the browser , I end up at best with a error 500. *sigh* Can't seem to find anythign that works can I? At 12:12 AM 5/17/2004, you wrote: Try adding a trailing slash to the URL, and seeing if it works. If so, then try adding the apache configuration directive: UseCanonicalName off In either httpd.conf or an .htaccess file, and try accessing without the trailing slash. I had a similar issue and adding that fixed it. Andy Loll wrote: [snip]if I go to www.domain.com/subdir it sya s page not found even though there is a index.php file in that directory. I am at a loss as to what is wrong. index.php is listed inthe directoryindex for apache so I dont understand why it is doing all this. If anyone can help me it would be appreciated. Thanks Loll -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: weird problem with index page
Try adding a trailing slash to the URL, and seeing if it works. If so, then try adding the apache configuration directive: UseCanonicalName off In either httpd.conf or an .htaccess file, and try accessing without the trailing slash. I had a similar issue and adding that fixed it. Andy Loll wrote: [snip]if I go to www.domain.com/subdir it sya s page not found even though there is a index.php file in that directory. I am at a loss as to what is wrong. index.php is listed inthe directoryindex for apache so I dont understand why it is doing all this. If anyone can help me it would be appreciated. Thanks Loll -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: weird problem with index page
Hi, Thanks for th einfo, after beating myself all day over it, I have determined that it only seesm to be an issue when using Internet Explorer, using opera or mozilla it seems to work as it should, so I really dont understand now. Checked the apache setting you meantioned and it seems to already be set to OFF. Anyway, with all these troubles I thought perhaps I would try upgrading php by creating a CGI version (the server has mod 4.2.2 installed). I managed to get the binary to create correctly, I can use it from the command line (tested it by using ./php.cgi phpinfo.php) but when I try to get it to work from the browser , I end up at best with a error 500. *sigh* Can't seem to find anythign that works can I? At 12:12 AM 5/17/2004, you wrote: Try adding a trailing slash to the URL, and seeing if it works. If so, then try adding the apache configuration directive: UseCanonicalName off In either httpd.conf or an .htaccess file, and try accessing without the trailing slash. I had a similar issue and adding that fixed it. Andy Loll wrote: [snip]if I go to www.domain.com/subdir it sya s page not found even though there is a index.php file in that directory. I am at a loss as to what is wrong. index.php is listed inthe directoryindex for apache so I dont understand why it is doing all this. If anyone can help me it would be appreciated. Thanks Loll -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Weird Problem
In article [EMAIL PROTECTED], [EMAIL PROTECTED] sketchbook.org says... Hey, I've got a script which disables a banner image when it's time is up, the script also sends an e-mail to both me and the banners owner when the time is up I've got a problem which is really weird.. Everything else works, but when the query is sent to the MySQL database, nothing happens... This is the query being sent: UPDATE st_banners SET Disabled='Y' WHERE BannerID='$bannerid' But when the script is run, it reports no errors, yet when i do SELECT Disabled FROM st_banners they are all enabled. I then echoed the query and the result it said it sent the query and it all worked, but the database was never updated.. If it works, why doesn't it work?? You can use mysql_affected_rows to test whether an update changed any records. You might also try echo-ing the query and feeding it into phpMyAdmin or the command line sql to see what happens. Any thoughts or suggestions? Or should i be looking for a MySQL list? Suggestion: set Outlook to wrap lines at around 74 characters :-) -- Quod subigo farinam $email =~ s/oz$/au/o; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] RE: Weird problem with Windows XP and IE6
I just tested it (with wrong password) and it worked. Jason wrote: As an adendum to this... my initial thoughts are that the forms are not posting correctly in XP. I'm using the POST method. Jason Cathcart Check Out My Site: http://www.biohazardous.org -Original Message- From: Jason [mailto:[EMAIL PROTECTED]] Sent: September 18, 2002 7:50 PM To: Php-General Subject: Weird problem with Windows XP and IE6 Hi... I've written a shopping cart program that is in use at www.dangeo.com and I'm having a weird problem that has just been brought to my attention. As far as I can tell everything works perfectly fine with the shopping cart in windows 98, and 2000. However the problem I'm having is that when customers using XP get into the shopping cart they can't get past the screen where they put in their address. I haven't been able to duplicate this problem. What I'm hoping is that some of you might be able to take a look at it, duplicate the problem, and give me some suggestions as to what the problem is. Jason Cathcart Check Out My Site: http://www.biohazardous.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] RE: Weird problem with Windows XP and IE6
As an adendum to this... my initial thoughts are that the forms are not posting correctly in XP. I'm using the POST method. Jason Cathcart Check Out My Site: http://www.biohazardous.org -Original Message- From: Jason [mailto:[EMAIL PROTECTED]] Sent: September 18, 2002 7:50 PM To: Php-General Subject: Weird problem with Windows XP and IE6 Hi... I've written a shopping cart program that is in use at www.dangeo.com and I'm having a weird problem that has just been brought to my attention. As far as I can tell everything works perfectly fine with the shopping cart in windows 98, and 2000. However the problem I'm having is that when customers using XP get into the shopping cart they can't get past the screen where they put in their address. I haven't been able to duplicate this problem. What I'm hoping is that some of you might be able to take a look at it, duplicate the problem, and give me some suggestions as to what the problem is. Jason Cathcart Check Out My Site: http://www.biohazardous.org