Re: [PHP] Weird problem with is_file()

2010-04-26 Thread Peter Lind
On 25 April 2010 22:14, Michelle Konzack linux4miche...@tamay-dogan.net wrote: Hi, I have a code sniplet which does not work and I do not know why: 8--  $isfile=shell_exec(ls /tmp/tdphp-vserver/SESSION_ .

Re: [PHP] Weird problem with is_file()

2010-04-26 Thread Jan G.B.
2010/4/25 Michelle Konzack linux4miche...@tamay-dogan.net: Hi, I have a code sniplet which does not work and I do not know why: 8--  $isfile=shell_exec(ls /tmp/tdphp-vserver/SESSION_ . $_SERVER['REMOTE_ADDR'] . _ .

Re: [PHP] Weird problem with is_file()

2010-04-25 Thread Karl DeSaulniers
Hi Michelle, Maybe try adding an error catch to see what you get. if(is_file($isFile)) or die(mysql_error()); On Apr 25, 2010, at 3:14 PM, Michelle Konzack wrote: if (is_file($isfile)) { Karl DeSaulniers Design Drumm http://designdrumm.com -- PHP General Mailing List

Re: [PHP] Weird problem with is_file()

2010-04-25 Thread Karl DeSaulniers
Oops, my apologies. That is a PHP MySQL solution. Wrong list. Please disregard that solution. Maybe find a way to get an error response from your session to see what the problem is. Karl On Apr 25, 2010, at 3:24 PM, Karl DeSaulniers wrote: Hi Michelle, Maybe try adding an error catch to

Re: [PHP] Weird problem with T_gettext()

2009-04-04 Thread 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

Re: [PHP] Weird problem with HTML form and $_POST

2008-11-05 Thread 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. -- Saludos Oscar -- PHP General

Re: [PHP] Weird problem with HTML form and $_POST

2008-11-05 Thread Oscar Gosdinski
On Sat, Nov 1, 2008 at 6:20 PM, Michelle Konzack [EMAIL PROTECTED] wrote: select class=setupProjectAddSelect name=sub_projects multiple=multiple size=10 option value=6 selectedATX 120/option option value=4ATX 60/option option value=5ATX 90/option option

Re: [PHP] weird problem in php

2006-06-12 Thread Dave Goodchild
On 12/06/06, weetat [EMAIL PROTECTED] wrote: Hi all , I have using php 4.3.2 and mysql database. I have a form which have select tag which have the value for example -New York. When use submit the form , i need to find the first occurence of - , i use strpos function as shown below :

Re: [PHP] weird problem in php

2006-06-12 Thread Rabin Vincent
On 6/12/06, weetat [EMAIL PROTECTED] wrote: I have a form which have select tag which have the value for example -New York. When use submit the form , i need to find the first occurence of - , i use strpos function as shown below : $country = $_POST['country']; $findme = '-'; $pos =

Re: [PHP] weird problem with index page

2004-05-16 Thread BAO RuiXian
loll wrote: Hi, I am not sure if this is a PHP or Apache problem, but I am hoping someone can tellme what is wrong. When I go to www.domain.com on my server it shows the page as text instead of parsing the php code. If I go to www.domain.com/index.php (same page) it runs as it should. if I go

Re: [PHP] weird problem with index page

2004-05-16 Thread loll
Well, I managed to part fix the problem, now I have a problem where there is a page that all it does is redirect to another page, it wont redirect unless I hit the refresh button. When I go to index.php it redirects to login.php, this is an old page that I just added a header(Location: blah);

Re: [PHP] Weird Problem with INPUT tag

2004-02-29 Thread Richard Davey
Hello Ahbaid, Sunday, February 29, 2004, 6:33:45 AM, you wrote: AG this uses a FORM with INPUT tags, what is weird is that under IE6 some AG of the INPUT fields are showing up with yellow AG backgrounds Sounds to me like you have the Google toolbar installed with the AutoFill option

Re: [PHP] (WEIRD problem) Not following directories!!! (0t)

2004-01-28 Thread Ryan A
Hey Andrew, First, note that that is an apache problem, not PHP. Yep, thats why I put the Ot in the subject line but since you cant have PHP without a webserver and apache is the most popular on the list or the net...I was hopeing someone else had this problem and could guide me In

Re: [PHP] Weird problem with objects

2004-01-23 Thread Stuart
Mark Cubitt wrote: $this-$database = new database(); $this-$accessory = new accessory(); $this-$order = new order(); These should be... $this-database = new database(); $this-accessory = new accessory(); $this-order = new order(); You don't want the

[PHP] Re: RE : [PHP] Weird problem with objects

2004-01-23 Thread Stuart
Vincent DUPONT wrote: what do you mean by this :Additionally, you might want to assign the reference of the new objects otherwise PHP will create a new object and then make a copy of it - not very efficient. Like so... $this-database = new database(); $this-accessory = new accessory();

Re: [PHP] Weird problem when creating a db connection and trying to reference it in a function

2003-10-24 Thread Burhan Khalid
Matt Babineau wrote: I found another strange problem. I am creating a mysql database connection like this: @ $db = mysql_pconnect(host, user, pass); mysql_select_db(dbname); you forgot the $ ... should be mysql_select_db($dbname); If you had turned up your php error reporting level

Re: [PHP] Weird Problem

2003-07-29 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Tue, 29 Jul 2003 at 20:40, lines prefixed by '' were originally written by you. I have the following chunk of code: $sql = SELECT setting from settings where name='display_rows'; include(connect.inc.php); print $sql;

RE: [PHP] Weird Problem

2003-07-29 Thread Jennifer Goodie
I have the following chunk of code: $sql = SELECT setting from settings where name='display_rows'; include(connect.inc.php); print $sql; $row = mysql_fetch_row($result); $path = $row[0]; print $path; It always prints out 1 But if I run the code at

RE: [PHP] Weird Problem

2003-07-29 Thread Jay Blanchard
[snip] $sql = SELECT setting from settings where name='display_rows'; include(connect.inc.php); print $sql; $row = mysql_fetch_row($result); $path = $row[0]; print $path; [/snip] Because $result is not being gotten properly... $sql = SELECT

RE: [PHP] Weird Problem

2003-07-29 Thread Aaron Axelsen
hosting at affordable prices? www.modevia.com Web Dev/Design Community/Zine www.developercube.com - -Original Message- From: Jennifer Goodie [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 29, 2003 2:46 PM To: Aaron Axelsen; [EMAIL PROTECTED] Subject: RE: [PHP] Weird Problem I have

RE: [PHP] Weird Problem

2003-07-29 Thread Aaron Axelsen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 The only setting contained in that table is the one im calling for, and its value is 25. - --- Aaron Axelsen AIM: AAAK2 Email: [EMAIL PROTECTED] Want reliable web hosting at affordable prices? www.modevia.com Web Dev/Design Community/Zine

RE: [PHP] Weird Problem

2003-07-29 Thread Jennifer Goodie
The only setting contained in that table is the one im calling for, and its value is 25. see what print_r($row) outputs, then you'll at least know what is in the array. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Weird Problem

2003-07-29 Thread DvDmanDT
:46 PM To: Aaron Axelsen; [EMAIL PROTECTED] Subject: RE: [PHP] Weird Problem I have the following chunk of code: $sql = SELECT setting from settings where name='display_rows'; include(connect.inc.php); print $sql; $row = mysql_fetch_row($result); $path = $row[0]; print $path

Re: [PHP] Weird Problem

2003-07-29 Thread Curt Zirzow
* Thus wrote DvDmanDT ([EMAIL PROTECTED]): Isn't there a known problem with variables and included files? Like you have to create $result in the first file, or something... Just try to have it all in one file... Also, change mysql_fetch_row($result); to mysql_fetch_row($result) or

Re: [PHP] Weird Problem

2003-07-29 Thread Kevin Stone
Aaron Axelsen [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Yes, connect.inc.php does the following: @$connect=mysql_connect(localhost,$dbuser,$dbpass); if (!$connect) { echo Could not connect to mysql!;

Re: [PHP] Weird Problem

2003-07-29 Thread John W. Holmes
Curt Zirzow wrote: Include files are expanded into the parent file as if they file is in the file that included it. Ah... clear as mud. heh... ;) -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ PHP|Architect: A magazine for PHP Professionals www.phparch.com

Re: [PHP] Weird Problem

2001-02-26 Thread David Robley
On Tue, 27 Feb 2001 05:53, Steve Segarra wrote: Hi everyone, First, let me explain I am a very knowledgable php developer. I'm not someone trying to write their first script. I have been working on a very large and complex problem for some time now when it suddenly stopped working.