Re: [PHP] strange problem of mysql_query

2010-06-02 Thread Jim Lucas
I am on the top of the world! Borlange University wrote: hey, i have a sql string like below: select szs_content from szs_gy_ca where szs_shengchanhao='09-s525' and szs_guige='48B32/14-1 1/8"' and szs_tuhao='48B32 1 1/8' the problem is that using mysql_query to run this sql string returns nothin

Re: [PHP] strange problem of mysql_query

2010-06-02 Thread Ashley Sheridan
On Wed, 2010-06-02 at 17:36 +0800, I am on the top of the world! Borlange University wrote: > hey, i have a sql string like below: > select szs_content from szs_gy_ca where szs_shengchanhao='09-s525' and > szs_guige='48B32/14-1 1/8"' and szs_tuhao='48B32 1 1/8' > > the problem is that using mysql

[PHP] strange problem of mysql_query

2010-06-02 Thread I am on the top of the world! Borlange University
hey, i have a sql string like below: select szs_content from szs_gy_ca where szs_shengchanhao='09-s525' and szs_guige='48B32/14-1 1/8"' and szs_tuhao='48B32 1 1/8' the problem is that using mysql_query to run this sql string returns nothing,however, i can get one record through mysql query tool.

Re: [PHP] strange problem with count()

2006-10-30 Thread tedd
At 1:27 PM +0100 10/29/06, Gunnar Beushausen wrote: Hi! I've a strange problem with count. I wrote a routine to jump to the last position of an array. The code ist this: -snip- Gunnar: I find it wise to check out all the built-in array functions before starting to write something myself -

Re: [PHP] strange problem with count()

2006-10-29 Thread Richard Lynch
On Sun, October 29, 2006 6:27 am, Gunnar Beushausen wrote: > I've a strange problem with count. I wrote a routine to jump to the > last > position of an array. You mean kind of like this one? http://php.net/end :-) I also suspect you are not doing count() on the right thing... -- Some people ha

Re: [PHP] strange problem with count()

2006-10-29 Thread Ed Lazor
Side note, it sounds like $this->result is an object holding an array, not the array itself and print_r is automatically traversing the object. On Oct 29, 2006, at 4:27 AM, Gunnar Beushausen wrote: Hi! I've a strange problem with count. I wrote a routine to jump to the last position of

[PHP] strange problem with count()

2006-10-29 Thread Gunnar Beushausen
Hi! I've a strange problem with count. I wrote a routine to jump to the last position of an array. The code ist this: if(!$this->done) { array_push($this->result, $this->stmt->fetchall_assoc()); } $this->done = true; $this->currIndex = $this->rowIndex = count($this->result)-1; return $

RE: [PHP] Strange problem after getting data from the DB

2006-04-11 Thread Jay Blanchard
[snip] After a lot of searching through the page source I see that the first "Try A Teen" has a line break (after the "n" in "teen" whatevers there appears on the next line), thats why it seems different...but when I went into the mySql db via phpmyadmin...there is no linebreak to be found anywhere

[PHP] Strange problem after getting data from the DB

2006-04-11 Thread Ryan A
Hi, I dont know if this is a bug or something but I am getting some strange results from what should be a simple program; I have a bunch of movie titles in my database, this is the structure: part_url part_size part_format bandwidth_type flick_name and the above table contains data like this: "d

Re: [PHP] Strange problem with overlapping names

2006-01-06 Thread Niels
On Friday 06 January 2006 21:26, Philip Hallstrom wrote: > Compare the output of phpinfo() on your machine with the output on the > server. Look at any differences. They look the same, more or less. Anything particular I should look for? The session sections are completely identical. > BTW - the

Re: [PHP] Strange problem with overlapping names

2006-01-06 Thread Philip Hallstrom
the page shown below works fine on my own machine, but on another (remote) server, it gives me a strange result. Here's what happens: The first time I view the page it says "array(0) { }" as I'd expect, but on the second it says "object(kurv)(0) { }" where I expected another array. The problem se

[PHP] Strange problem with overlapping names

2006-01-06 Thread Niels
Hi all, the page shown below works fine on my own machine, but on another (remote) server, it gives me a strange result. Here's what happens: The first time I view the page it says "array(0) { }" as I'd expect, but on the second it says "object(kurv)(0) { }" where I expected another array. The p

Re: [PHP] Strange Problem: session_set_save_handler

2005-07-07 Thread Richard Lynch
On Thu, July 7, 2005 4:14 am, Thorsten Friedrich said: > because of the fact that i´ll never see if the write-session-function is > > called i´ve placed a write-a-log-to-disk function in all session-function > to > > see if they are called. What are these write-a-log-to-disk functions outputting?

[PHP] Strange Problem: session_set_save_handler

2005-07-07 Thread Thorsten Friedrich
Hi, i´ve a strange Problem with the session_set_save_handler-Function. Firt of all my config: in my intranet i´m using 2 servers the first server is the db-server running mysql v. 12.22 dist 4.0.24 the second server is the webserver running apache2 Linux apache 2.6.5-7.147-smp running and is

Re: [PHP] Strange problem with DB queries

2005-05-04 Thread Richard Lynch
On Mon, May 2, 2005 4:07 am, George Pitcher said: > On page y, I've echoed the queries and they work fine when I paste them > into > MySQLCC. However, if I do print_r($row), I get an ampty array. Echoing the > $result gives me Object id #3 (on page x this is Object id #6). > > I have another popup

RE: [PHP] Strange problem with DB queries - MORE

2005-05-02 Thread George Pitcher
access is!). Cheers > -Original Message- > From: George Pitcher [mailto:[EMAIL PROTECTED] > Sent: 2 May 2005 12:07 pm > To: php-general@lists.php.net > Subject: [PHP] Strange problem with DB queries > > > Hi, > > I am encountering a strange problem with a po

[PHP] Strange problem with DB queries

2005-05-02 Thread George Pitcher
Hi, I am encountering a strange problem with a pop-up window. On my site, users (very specialised, closed site with small numbers) have to click a link on page x which pops up page y. Page x and y both contain pricing information based on a functions.php include file. On page x, the data is being

Re: [PHP] Strange problem with picture Upload

2005-04-24 Thread Richard Lynch
PS You are inserting the image info into the database even if it's not a valid JPEG or GIF and you are throwing it out -- That's probably NOT what you really want to do anyway. So even if that's not what is wrong in this case, your logic is a bit "off" in that part. On Sat, April 23, 2005 7:44 a

Re: [PHP] Strange problem with picture Upload

2005-04-24 Thread Richard Lynch
On Sat, April 23, 2005 7:44 am, Labunski said: > Hi guys, > I have to say, I've written so many scripts that had file upload functions > included, > but this time something strange is happening. > > The script passes the IMAGE_TYPE check, and picture's name stores in the > database (so I guess

[PHP] Strange problem with picture Upload

2005-04-23 Thread Labunski
Hi guys, I have to say, I've written so many scripts that had file upload functions included, but this time something strange is happening. The script passes the IMAGE_TYPE check, and picture's name stores in the database (so I guess the picture should have been stored in the dir.), but when I

Re: [PHP] strange problem, seems to be related to the character '$'

2005-03-31 Thread Richard Lynch
On Thu, March 31, 2005 1:06 pm, Chris Francy said: > I am hoping someone can point me in the right direction to resolving an > odd > bug. I tried searching the bugs database and groups, but I can't think of > the terms to use while searching for my problem that the search system > will > accept. >

Re: [PHP] strange problem, seems to be related to the character '$'

2005-03-31 Thread Zareef Ahmed
Hi Chris, I tried to reproduce the problem with vertsoin 4.3.3 and 5, and its working fine(producing same string). If you have not find a bug in bug database why not submit a new bug? anyway changing single quotes to double may help ;) zareef ahmed On Apr 1, 2005 2:36 AM, Chris Francy <[

[PHP] strange problem, seems to be related to the character '$'

2005-03-31 Thread Chris Francy
Hello all, I am hoping someone can point me in the right direction to resolving an odd bug. I tried searching the bugs database and groups, but I can't think of the terms to use while searching for my problem that the search system will accept. I have a script like the below, copied from the

[PHP] Strange Problem with ctype_digit

2004-09-27 Thread Stephen Edmonds
Hi all, Noticed a strange problem when I was testing a time stamp to make sure it was all numbers. After an hour of debugging, I traced the problem to the ctype_digit funciton. CODE: END OF CODE When I run the above code, my apache server performs an illegal operation and shuts down. It will

RE: [PHP] Strange Problem with ctype_digit

2004-09-27 Thread Ed Lazor
> -Original Message- > CODE: > print ctype_digit( 1094164380 ); > ?> > END OF CODE > > When I run the above code, my apache server performs an illegal operation > and shuts down. It will keep doing this every 20 seconds or so until you > restart/stop the server manually. Does anyone else

Re: [PHP] STrange Problem

2004-03-12 Thread trlists
Is it possible that either $connect_id is not defined at the point where you use it in the mysql_select_db call (e.g. it's global, the call is in a function, and you forgot to use a global declaration), and/or the previosuly opened connection has been closed? What do you get if you do a var_dum

Re[8]: [PHP] STrange Problem

2004-03-12 Thread Richard Davey
Hello PHP, Friday, March 12, 2004, 7:23:47 PM, you wrote: P> It returns: P> Connected successfully P> Like I said, I have not problems connecting. Only mysql_select_db will not P> work. Fine, what does this return? With "foo" replaced with your database name. -- Best regards, Richard Dave

Re: Re[4]: [PHP] STrange Problem

2004-03-12 Thread PHP
It seems the only way I can get mysql_select_db to work is to actually add a blank user to the msyql.db table with appropiate privileges. > Yes, I have a root password. > No, I do not use root to run the server or connect to the database. > Yes, I do have the user apache in the grant tables for

Re: Re[6]: [PHP] STrange Problem

2004-03-12 Thread PHP
It returns: Connected successfully Like I said, I have not problems connecting. Only mysql_select_db will not work. > Hello, > > Friday, March 12, 2004, 7:00:38 PM, you wrote: > > P> Only msyql_select_db will not connect, it claims I am trying to use a blank > P> user, even though I specifically

Re[6]: [PHP] STrange Problem

2004-03-12 Thread Richard Davey
Hello, Friday, March 12, 2004, 7:00:38 PM, you wrote: P> Only msyql_select_db will not connect, it claims I am trying to use a blank P> user, even though I specifically connect earlier with mysql_connect with the P> specific user with no problems.. What does this output? And don't just remov

Re: Re[4]: [PHP] STrange Problem

2004-03-12 Thread PHP
Yes, I have a root password. No, I do not use root to run the server or connect to the database. Yes, I do have the user apache in the grant tables for mysql with permissions for the specific database. Yes, I can run querys against said database and connect with user apache with no problems. Only

Re[4]: [PHP] STrange Problem

2004-03-12 Thread Richard Davey
Hello, Friday, March 12, 2004, 6:38:37 PM, you wrote: P> Yes, I have it configured to run as apache. But, as I mentioned, I have no P> problems accessing the database and running querys against it, it is only P> the mysql_select_db function that fails. You mean you have no problems querying the

Re[4]: [PHP] STrange Problem

2004-03-12 Thread Richard Davey
Hello trlists, Friday, March 12, 2004, 6:48:03 PM, you wrote: tcc> Agreed, as long as he's not connected so someone can try to connect to tcc> the MySQL port. If he's connected that long and not running a firewall, he deserves it ;) -- Best regards, Richard Davey http://www.phpcommunity.org/

Re: Re[2]: [PHP] STrange Problem

2004-03-12 Thread trlists
On 12 Mar 2004 Richard Davey wrote: > It is, but if he hasn't modified it otherwise, that's what it'll be. > Also for local development purposes, there is no harm in it. Agreed, as long as he's not connected so someone can try to connect to the MySQL port. -- Tom -- PHP General Mailing List (

Re[2]: [PHP] STrange Problem

2004-03-12 Thread Richard Davey
Hello trlists, Friday, March 12, 2004, 6:37:34 PM, you wrote: tcc> Configuring a MySQL database with a blank root password sounds like a tcc> potential security risk to me ... It is, but if he hasn't modified it otherwise, that's what it'll be. Also for local development purposes, there is no ha

Re: Re[2]: [PHP] STrange Problem

2004-03-12 Thread PHP
Yes, I have it configured to run as apache. But, as I mentioned, I have no problems accessing the database and running querys against it, it is only the mysql_select_db function that fails. > Hello PHP, > > Friday, March 12, 2004, 6:25:09 PM, you wrote: > > P> OK, I do get the following error. >

Re: [PHP] STrange Problem

2004-03-12 Thread trlists
On 12 Mar 2004 Richard Davey wrote: > P> 1044: Access denied for user: '@localhost' to database 'mydatabase' > > You said that you use "apache" as the username for MySQL - is this > something you've configured yourself? It appears he is actually using a blank username as there is noting before

Re[2]: [PHP] STrange Problem

2004-03-12 Thread Richard Davey
Hello PHP, Friday, March 12, 2004, 6:25:09 PM, you wrote: P> OK, I do get the following error. P> 1044: Access denied for user: '@localhost' to database 'mydatabase' P> Even though I specify the user in mysql_connect, for some reason, P> mysql_select_db is trying to user a blank user, P> Any Ide

Re: [PHP] STrange Problem

2004-03-12 Thread PHP
OK, I do get the following error. 1044: Access denied for user: '@localhost' to database 'mydatabase' Even though I specify the user in mysql_connect, for some reason, mysql_select_db is trying to user a blank user, Any Ideas? >Hi, >I am using RH9, Mysql 3.23.58, PHP 4.2.2, apache2.0 > >mysql

[PHP] STrange Problem

2004-03-12 Thread PHP
Hi, I am using RH9, Mysql 3.23.58, PHP 4.2.2, apache2.0 mysql_select_db("mydatabase",$connect_id) allways fails. I can use $connect_id = mysql_connect("localhost","apache"); (YES, I do have this line before the mysql_select_db); just fine. I can run querys against the database with no problems

Re: [PHP] strange problem with post method

2004-02-05 Thread Giuliano Ippoliti
--- Jason Wong <[EMAIL PROTECTED]> wrote: > On Thursday 05 February 2004 16:41, Giuliano > Ippoliti wrote: > > [snip] > > > 9. cp php.ini-dist /usr/local/lib/php.ini > > Read the comments at the top of the file > 'php.ini-recommended'. It is the same > directory as the file 'php.ini-dist'. >

Re: [PHP] strange problem with post method

2004-02-05 Thread Jason Wong
On Thursday 05 February 2004 16:41, Giuliano Ippoliti wrote: [snip] > 9. cp php.ini-dist /usr/local/lib/php.ini Read the comments at the top of the file 'php.ini-recommended'. It is the same directory as the file 'php.ini-dist'. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open So

[PHP] strange problem with post method

2004-02-05 Thread Giuliano Ippoliti
Hi list! Yesterday I've installed PHP 4.3.4 and Apache 1.3.29 on my Linux Mandrake 9.1 machine with a standard procedure: 1. cd apache_1.3.29 2.  ./configure 3.  cd ../php-4.3.4 4.  ./configure --with-apache=../apache_1.3.29 --enable-track-vars && make && make install 5. cd ../apache_1.3.29 6. ./c

[PHP] Strange problem with dbase_add_record

2003-11-06 Thread Nagib Abi Fadel
Hi, i'm doing the following operation: I'm reading multiple rows from a database then writing each row into a dbf file using dbase_add_record. I'm having the following problem : - some rows are beeing written other or not to the dbf file (sometimes). - if i repeat the operation all the rows are b

Re: [PHP] Strange problem in class creation

2003-08-14 Thread Mukul Sabharwal
<[EMAIL PROTECTED]> > Sent: Tuesday, August 12, 2003 2:38 AM > Subject: [PHP] Strange problem in class creation > > Hi all, > > I have encountered a "tricky" problem with PHP 4.3.1 (installed with > SuSE 8.2). > I don't know if it is a bug or not. Maybe

Re: [PHP] Strange problem in class creation

2003-08-14 Thread Fabio Rotondo
Mukul Sabharwal wrote: And the error is strange because you're doing something strange! I don't think I'm doing anything strange. What I have exposed here is a simplification of my own class loader. I have the main class that must load (include and then instance) other PHP classes. The problem i

[PHP] Strange problem in class creation

2003-08-14 Thread Fabio Rotondo
Hi all, I have encountered a "tricky" problem with PHP 4.3.1 (installed with SuSE 8.2). I don't know if it is a bug or not. Maybe is just me missing something. What I'd like to do is to pass a reference of "base_class" instance to the constructor of "second_class" (so that the newly created "sec

Re: [PHP] Strange problem in class creation

2003-08-12 Thread Mukul Sabharwal
> > > And the error is strange because you're doing > > something strange! > > I don't think I'm doing anything strange. What I > have exposed here is a simplification of my own > class loader. I have the main class that must > load (include and then instance) other PHP classes. > The problem

Re: [PHP] Strange Problem

2003-07-14 Thread Philip Olson
This is an IIS issue. The install.txt has specific information on this topic, have a look. Also, this comes up a lot and the following bug report is full of newbies asking bogus questions but it also contains some good info: http://bugs.php.net/bug.php?id=12061 So it looks like security/permi

Re: [PHP] Strange Problem

2003-07-13 Thread Curt Zirzow
Haseeb <[EMAIL PROTECTED]> wrote: > > > Hi all, > this is a very strange problem. i don't know where i am doing something that > is causing this. the problem is that i am working on a web portal entirely > in php. i have a few hidden pages. that do the queries to the DB. now when > i redirect

[PHP] Strange Problem

2003-07-13 Thread Haseeb
    Hi all, this is a very strange problem. i don't know where i am doing something that is causing this. the problem is that i am working on a web portal  entirely in  php. i have a few hidden pages. that do the queries to the DB. now when i redirect to any page for query i get this error CG

[PHP] strange problem with size of uploaded files..

2003-03-06 Thread Ray
I've searched all over for the answer to this problem.. but haven't found anything.. I have a script that i use to upload files to a webserver and download them via my phone.. problem is, the files end up being about twice the size of the original file.. for example,i upload a midi that

Re: [PHP] strange problem

2003-03-04 Thread 1LT John W. Holmes
ent: Tuesday, March 04, 2003 10:40 AM Subject: [PHP] strange problem Hello friends, Following is the part html output of my page got from View-source in IE. The problem is that I gate a big blank gap on the output page from the top until about 10 lines height and only then the table is displayed.

[PHP] strange problem

2003-03-04 Thread Denis L. Menezes
Hello friends, Following is the part html output of my page got from View-source in IE. The problem is that I gate a big blank gap on the output page from the top until about 10 lines height and only then the table is displayed. As you see I have no tags here. Can someone tell me why I get bla

Re: [PHP] Strange problem

2003-02-01 Thread Matt
- Original Message - From: "Denis L. Menezes" <[EMAIL PROTECTED]> To: "PHP general list" <[EMAIL PROTECTED]> Sent: Saturday, February 01, 2003 7:08 AM Subject: [PHP] Strange problem > I have the following script. Both the errors show green font whe

Re: [PHP] Strange problem

2003-02-01 Thread Jason Wong
On Saturday 01 February 2003 20:08, Denis L. Menezes wrote: > Hello friends. > > I have the following script. Both the errors show green font when actually > the first error should give a red font. Am I doing something wrong here? > > Quote: > > > if($CategoryName==""){ >Print "You have not en

[PHP] Strange problem

2003-02-01 Thread Denis L. Menezes
Hello friends. I have the following script. Both the errors show green font when actually the first error should give a red font. Am I doing something wrong here? Quote: if($CategoryName==""){ Print "You have not entered the category name. Please go back and enter the category name.";

Re: [PHP] strange problem (user poll)

2003-01-08 Thread Kevin Stone
I have no idea what I did but this email was not supposed to go to the list.. my apologies. *LOL* -Kevin - Original Message - From: "Kevin Stone" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 08, 2003 4:18 PM Subject: Fw: [PHP] stra

Fw: [PHP] strange problem (user poll)

2003-01-08 Thread Kevin Stone
[EMAIL PROTECTED] It would help to know where $action is being defined. - Original Message - From: "- [ Paul Ferrie ] -" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 08, 2003 3:43 PM Subject: [PHP] strange problem (user poll) > Can any

RE: [PHP] strange problem (user poll)

2003-01-08 Thread Timothy Hitchens \(HiTCHO\)
bove example!! Timothy Hitchens (HiTCHO) Open Platform Consulting e-mail: [EMAIL PROTECTED] > -Original Message- > From: - [ Paul Ferrie ] - [mailto:[EMAIL PROTECTED]] > Sent: Thursday, 9 January 2003 8:43 AM > To: [EMAIL PROTECTED] > Subject: [PHP] strange problem (user poll

Re: [PHP] strange problem (user poll)

2003-01-08 Thread Martin Hudec
Hello Paul, well problem is this: you don't have defined variable $actionmaybe you are not posting it correctly from form...what is on first 12 lines? try to add $action="value"; on line 12...just define any suitable value... -- Best regards, Martin mail [EMAIL P

[PHP] strange problem (user poll)

2003-01-08 Thread - \[ Paul Ferrie \] -
Can anyone see a problem in this? When i run the script i am getting this error "Notice: Undefined variable: action in C:\www\Apache2\htdocs\user_poll\2\addpoll.php on line 13" Could not insert poll\n"; } else { print "Poll added\n"; } mysql_close($link); } ?> please anyone

[PHP] Strange problem with MAIL (Correction)

2003-01-06 Thread Cesar Aracena
---Mensaje original- De: Cesar Aracena [mailto:[EMAIL PROTECTED]] Enviado el: lunes, 06 de enero de 2003 7:22 Para: [EMAIL PROTECTED] Asunto: [PHP] Strange problem with MAIL Hi all, I've been trying to make my way around a complex mailing system for the past couple of days with no success, bu

[PHP] Strange problem with MAIL

2003-01-06 Thread Cesar Aracena
Hi all, I've been trying to make my way around a complex mailing system for the past couple of days with no success, but now I noticed that I can't just send a simple: mail("[EMAIL PROTECTED]", "My Subject", "Line 1\nLine 2\nLine 3"); I used to make this scripts work all the time before using th

[PHP] Strange problem with PHP,SSI

2002-12-14 Thread sport4ever
PHP version: 4.2.1 OS: RedHat Linux 8 Apache version: 2.0 My problem is that I can't execute more than one (SSI include) on my website JUST for PHP file.. so there is NO problems at all if I include HTML or SHTML files. Anyway, if I include 2 PHP files into any page, the first INCLUDE statement

[PHP] Strange Problem......

2002-08-27 Thread karthikeyan
Hi All, I have an XML. Using XSL How do i do grouping and counting in an efficient way. Thanks karthikeyan.

Re: [PHP] Strange problem with objects

2002-07-24 Thread Evan
Never mind, I just found and exceptable work around. $GLOBALS["session"] & $GLOBALS["document"] contain the objects. (and after all that typing :) -Evan On Wed, Jul 24, 2002 at 10:21:32PM -0400, Evan said: > Hey all, > > I'm having a strange problem with objects that I'm hoping someone out t

[PHP] Strange problem with objects

2002-07-24 Thread Evan
Hey all, I'm having a strange problem with objects that I'm hoping someone out there can help me track down. I'll give a run down of the setup here, please note that register_globals is off. A page creates two objects. $document - this is always a new object and uses the ob_ functions to cont

[PHP] Strange problem with apache 2.0.39/php 4.2.1/gd-lib

2002-07-15 Thread Martin Lucas
hello everybody, i'm trying to use php 4.2.1 with apache 2.0.39. i compiled php as dso, with gd support (libjpeg6b, libpng-1.2.3 , gdlib-1.8.4, freetype-2.1.2) compiling and installation of the above packages went fine, but when i start apache, i get the following message from the apache error lo

RE: [PHP] Strange problem passing variables

2002-03-22 Thread Hunter, Ray
Try using $_GET['varnamehere'] Ray Hunter -Original Message- From: Jean-Arthur Silve [mailto:[EMAIL PROTECTED]] Sent: Friday, March 22, 2002 8:05 AM To: [EMAIL PROTECTED] Subject: [PHP] Strange problem passing variables Hi, A friend of me use PHP4.1.2 on Linux+Apache H

[PHP] Strange problem passing variables

2002-03-22 Thread Jean-Arthur Silve
Hi, A friend of me use PHP4.1.2 on Linux+Apache Here is the problem : He pass a parameter using GET method : http://www.domain.com/test.php?TESTV=1234 test.php is : "; echo $HTTP_GET_VARS["TESTV"].""; phpinfos(); ?> But in the script all variables are empty ($TESTV and $HTTP_GET_VARS["TES

Re: [PHP] strange problem

2002-01-18 Thread TD - Sales International Holland B.V.
On Friday 18 January 2002 15:52, you wrote: So hashes are now $var{'keyname'} (with curly brackets) and arrays are $var[0] (with normal brackets?) > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > > * On 18-01-02 at 15:49 > * Marc Logghe said > > > Hi, > > my PHP (PHP Version 4.1.1) su

Re: [PHP] strange problem

2002-01-18 Thread Erik Price
On Friday, January 18, 2002, at 09:52 AM, Nick Wilson wrote: >> my PHP (PHP Version 4.1.1) suddenly does not take this anymore: >> $a['color'] = 'red'; >> I get this error: Parse error: parse error, expecting `T_STRING' or >> `T_VARIABLE' or `T_NUM_STRING' >> when I remove the quotes around th

Re: [PHP] strange problem

2002-01-18 Thread Marc Logghe
what the heck !? I would never think on that but you are absolutely right. It all worked again after replacing straights with curlies. Is PHP going the perl way ? Thanks a million for this tip. Marc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: [PHP] strange problem

2002-01-18 Thread Bas Jobsen
> No idea, but a fella on this list told me [] had been deprecated in > favour of {} Maybe that has something to do with it? Maybe: $a[${'%coding'}] = 'red'; this works: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-m

Re: [PHP] strange problem

2002-01-18 Thread Malte Fucks
hmmm try $coding = "%coding"; $a[$coding]='whatever this array shall contain'; please let me know if it worked... diggn this is a test because my email client gave me an error message so if this message arrives twice, it wasnt meant to be spam...

Re: [PHP] strange problem

2002-01-18 Thread Malte Fucks
hmmm try $coding = "%coding"; $a[$coding]='whatever this array shall contain'; please let me know if it worked... diggn - Original Message - From: "Marc Logghe" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, January 18, 2002 3:4

Re: [PHP] strange problem

2002-01-18 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * On 18-01-02 at 15:49 * Marc Logghe said > Hi, > my PHP (PHP Version 4.1.1) suddenly does not take this anymore: > $a['color'] = 'red'; > I get this error: Parse error: parse error, expecting `T_STRING' or > `T_VARIABLE' or `T_NUM_STRING' > w

[PHP] strange problem

2002-01-18 Thread Marc Logghe
Hi, my PHP (PHP Version 4.1.1) suddenly does not take this anymore: $a['color'] = 'red'; I get this error: Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' when I remove the quotes around the key, it works. Problem is , that a certain key is "%coding" (I know, I kn

Re: [PHP] Strange problem with some includes...

2001-12-06 Thread Deron
t; -Original Message- > From: Deron [mailto:[EMAIL PROTECTED]] > Sent: Friday, December 07, 2001 9:03 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Strange problem with some includes... > > > I have this page: > http://www.metalages.com/2002/reviews/rev-evergrey-insearc

Re: [PHP] Strange problem with some includes...

2001-12-06 Thread Deron
Hi Jim! Ok couple of questions then... .. yesterday these includes WERE working. For some reason I went to the site today and they weren't. VERY weird! Since these includes are showing up on multiple pages in different directories, I currently have them being called like this: Code in pag

RE: [PHP] Strange problem with some includes...

2001-12-06 Thread Martin Towell
look at read permissions, does the web server have permissions to read those files? -Original Message- From: Deron [mailto:[EMAIL PROTECTED]] Sent: Friday, December 07, 2001 9:03 AM To: [EMAIL PROTECTED] Subject: [PHP] Strange problem with some includes... I have this page: http

Re: [PHP] Strange problem with some includes...

2001-12-06 Thread jimtronic
It looks like you put a full URL into your include ... which would be incorrect. The syntax is ... include("path/relative/to/your/script"); jim -- Jim Musil - Multimedia Programmer Nettmedia - 212-629-0004 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.n

[PHP] Strange problem with some includes...

2001-12-06 Thread Deron
I have this page: http://www.metalages.com/2002/reviews/rev-evergrey-insearchoftruth.php If you look on the bottom, it says: Warning: Failed opening 'http://www.metalages.com/includes/relatedinfo/inc-evergrey.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/www/metalages/2002/rev

Re[2]: [PHP] Strange problem...

2001-11-30 Thread faeton
Hello Daniel, $date = $birth_year."-".$birth_month."-".$birth_day; And you can try inserting such kind o' date to a DATETIME field. There's an alternative way: $time = mktime(0,0,0, $birth_month, $birth_day, $birth_year); That would return a unix timestamp that can be written to a BIGINT field

RE: [PHP] Strange problem...

2001-11-30 Thread Daniel Alsén
> You should really be storing your dates as datetime so you can take > advantage of the date sorting functions. But then you'd need to use > date() to format the string into -mm-dd format. Thanks Jim. but how would i actually do that? I have studied the date() function in the manual - but c

RE: [PHP] Strange problem...

2001-11-30 Thread Jim Musil
This may be a rough explanantion, but when you store numbers, the length is not actually the number of digits, but the number of binary digits it would use when converted from decimal to binary. So, a length of 1, could only have 0 or 1 as inputs. a length of 2 could only have 0,1,2,or 3 The e

Re[2]: [PHP] Strange problem...

2001-11-30 Thread faeton
Hello Daniel, Maybe $user_birthdate = (int) $birth_year.$birth_month.$birth_day; would've solved the problem. :) But i'm not 100% sure. DA> I guess it´s too late here now .) It fixed itself when i altered the field DA> type to varchar. Although - i don´t really get why it can´t store the vlaue D

RE: [PHP] Strange problem...

2001-11-30 Thread Daniel Alsén
Thanks guys... I guess it´s too late here now .) It fixed itself when i altered the field type to varchar. Although - i don´t really get why it can´t store the vlaue i am sendding it the field is of integer type. - Daniel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mai

Re: [PHP] Strange problem...

2001-11-30 Thread faeton
Hello Daniel, 1 Dec 2001, 0:43:42, you've written: What's the propery of field your are inserting your info to? Is it INT or BIGINT or maybe TEXT? Try something new :) DA> Hi, DA> i have a strange problem. DA> I get a users birthdate with three dropdown menus (year, month and day of DA> mont

[PHP] Strange problem...

2001-11-30 Thread Daniel Alsén
Hi, i have a strange problem. I get a users birthdate with three dropdown menus (year, month and day of month). I get these values into one string with: $user_birthdate = $birth_year . $birth_month . $birth_day; If i echo $user_birthdate after this it is correct (mmdd). But when i insert t

RE: [PHP] Strange problem with fputs ($fp, $newVote)

2001-07-07 Thread SED
($filename, "a"); <- the plus taken away! ftruncate ($fp, 0); fwrite ($fp, $newVote); fclose ($fp); Can this be a bug? SED -Original Message- From: SED [mailto:[EMAIL PROTECTED]] Sent: 7. júlí 2001 21:56 To: [EMAIL PROTECTED] Subject: [PHP] Strange probl

[PHP] Strange problem with fputs ($fp, $newVote)

2001-07-07 Thread SED
Hi, I'm having strange problem with the fputs() - it occurs only on my IIS server but not on the Linux/apache server (I use the IIS while programming). The problem: fputs ($fp, $newVote); It does not write the content of $newVote into the text file $fp is pointing to. If I check the va

RE: [PHP] Strange problem

2001-01-30 Thread johnny p.
Sounds like there's no swap space left to me... -jp > -Original Message- > From: Dustin Butler [mailto:[EMAIL PROTECTED]] > Sent: Friday, January 26, 2001 11:11 PM > To: 'Jeroen Jochems'; php-general (E-mail) > Subject: RE: [PHP] Strange problem > >

RE: [PHP] Strange problem

2001-01-26 Thread Dustin Butler
s [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 25, 2001 7:23 AM > To: Hardy Merrill > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] Strange problem > > > Or does anyone know a better way to download files? > > > - Original Message - > From: Hardy

Re: [PHP] Strange problem

2001-01-25 Thread Jeroen Jochems
Or does anyone know a better way to download files? - Original Message - From: Hardy Merrill <[EMAIL PROTECTED]> To: Jeroen Jochems <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, January 25, 2001 2:50 PM Subject: Re: [PHP] Strange problem > The fir

Re: [PHP] Strange problem

2001-01-25 Thread Jeroen Jochems
No it has got about 10gig free space! - Original Message - From: Hardy Merrill <[EMAIL PROTECTED]> To: Jeroen Jochems <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, January 25, 2001 2:50 PM Subject: Re: [PHP] Strange problem > The first thing I'd

Re: [PHP] Strange problem

2001-01-25 Thread Hardy Merrill
The first thing I'd check is the space on the client machine trying to do the download - that machine may be running out of space. I can't remember exactly how the browser handles this, but the client machine may need 2 times the size of the file to be downloaded - it might first create a tempora

[PHP] Strange problem

2001-01-25 Thread Jeroen Jochems
When I try to download a big file (like 5meg) with fopen() I get some strange errors: - not enough space for lowio initialization - not enough space for stdio initialization - pure virtual function call - not enough space for _onexit/atexit table - unable to open console device - unexpected heap