Re: [PHP] Weird problem with is_file()

2010-04-26 Thread Jan G.B.
2010/4/25 Michelle Konzack : > 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'] . "_" . $_COOKIE['VSERVER_AUTHUSER

Re: [PHP] Weird problem with is_file()

2010-04-26 Thread Peter Lind
On 25 April 2010 22:14, Michelle Konzack 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_" . > $_SERVER['REMOTE_ADDR'] . "_" . $_COOK

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 se

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 (http://www.php.net/)

[PHP] Weird problem with is_file()

2010-04-25 Thread Michelle Konzack
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'] . "_" . $_COOKIE['VSERVER_AUTHUSER'] . "_* |head -n1"); if (is_file($is

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 di

[PHP] Weird problem with T_gettext()

2009-04-03 Thread Michelle Konzack
Hello, I need some help from german coders since I have a weird encoding problem. Currently I am coding the new website and if I do not select any languages in my Webbrowser, it show correctly english in the "Siteindex" (topmost block). Now selecting "de" as prefe

[PHP] Weird problem while reading in a file to an Array

2009-01-29 Thread Michelle Konzack
Hello, currently I am coding a RSS feeder for the Emdebian buildd-log and for testing I use two files: and if you look into those Build-Logs,

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 Gener

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: > multiple="multiple" size="10"> > ATX 120 > ATX 60 > ATX 90 > Device 2 > Device 4 > Lowvoltage > P4 Module > SATA 2 > SATA 4 > SATA 8 > > > Hell, why is $

[PHP] Weird problem with HTML form and $_POST

2008-11-05 Thread Michelle Konzack
Hello, I am generating a HTML form from a database and it looks (CSS striped) like: 8<-- Fuzzy ATX 120 ATX 60 ATX 90 Device 2 Device 4 Lowvoltage

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 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 = strpos

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 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 : $

[PHP] weird problem in php

2006-06-12 Thread weetat
Hi all , I have using php 4.3.2 and mysql database. I have a form which have 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 = '-'; $po

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 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

[PHP] weird problem with index page

2004-05-16 Thread loll
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 to www.domain

[PHP] Solved [PHP] Weird Problem with INPUT tag

2004-02-29 Thread Ahbaid Gaffoor
Yep, that was indeed the problem. Many thanks for your help. I just could not see that at all regards Ahbaid Richard Davey wrote: 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 f

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 enabl

[PHP] Weird Problem with INPUT tag

2004-02-28 Thread Ahbaid Gaffoor
I'm building a site using PHP for the navigation section of each page and to to do the general page layout. To this effect I have created php functions to structure the pages and I fill in the static text specific to each page. This all works. I have now got to the point where I am doing a pag

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 htt

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

2004-01-28 Thread Ryan A
Hi, Heres a totally weird problem, I created some folders on our server (which we are accessing only via ip as the domain has not been resolved) but I get an error when i try to access the folder(s)! eg: (I created this folder) ryan and i try to access it like this: http://208.234.29.220/ryan/ a

[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(); $this

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 wan

[PHP] Weird problem with objects

2004-01-23 Thread Mark Cubitt
hi, I have a shopping cart I'm having probs with. I have a cart class that starts like this: require_once("class_database.php"); // Database Class require_once("class_accessory.php"); // Accessory Class require_once("class_order.php"); // Order Class class cart { var $database;

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 (error_reporti

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

2003-10-24 Thread Matt Babineau
Hey all- I found another strange problem. I am creating a mysql database connection like this: @ $db = mysql_pconnect(host, user, pass); mysql_select_db(dbname); Now, I have a function that inside uses mysql_list_fields() function getFields($table, $dbname) { $fields = mysql_list_fields($dbnam

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

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 connec

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 print(

Re: [PHP] Weird Problem

2003-07-29 Thread DvDmanDT
reliable web 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; [EMA

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 Aaron Axelsen
www.developercube.com - -Original Message- From: Aaron Axelsen [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 29, 2003 2:40 PM To: [EMAIL PROTECTED] Subject: [PHP] Weird Problem - -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I have the following chunk of code: $sql = "S

RE: [PHP] Weird Problem

2003-07-29 Thread Aaron Axelsen
IM: AAAK2 Email: [EMAIL PROTECTED] Want reliable web 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

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 = "SE

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 r

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 $s

[PHP] Weird Problem

2003-07-29 Thread Aaron Axelsen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 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 $pat

[PHP] Weird Problem

2003-07-02 Thread The Head Sage
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...

[PHP] Weird problem with Windows XP and IE6

2002-09-18 Thread Jason
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

[PHP] Weird problem with Win2k

2001-03-13 Thread Tyler Longren
Hello everybody, I haven't made any changes to my system lately. This box is running Win2k w/ SP1. Whenever I try to run php.exe, I get the following error: Application popup: php.exe - Entry Point Not Found: The procedure entry point ??_U@YAPAXI@Z could not be located in the dynamic link libra

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 workin

[PHP] Weird Problem

2001-02-26 Thread Steve Segarra
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. I did not change anything in any configurations or e