[PHP] RE: parse error (close this one)

2007-05-04 Thread Brad Sumrall
Du! It would have made sense to direct it to /phpbb/login.php Not /phpbb/index.php I know, the keyboard and the chair! Brad

[PHP] Re: Parse Error, Unexpected $

2004-07-19 Thread Jason Barnett
Did the error actually say Unexpected $end ? That would mean that PHP hit the end of the script before it expected to, and could be caused by an unclosed string. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Parse Error, Unexpected $

2004-07-19 Thread Daniel Kullik
Hello. Cannot find any unexpected dollar-sign ($) in this code. But please enclose the associative array-indexes within quotation-marks and run your script again. [code] $foo = $_POST['assoc_index']; [/code] Daniel Harlequin wrote: I've checked my syntax but obviously missing something. Would

[PHP] Re: Parse Error, Unexpected $

2004-07-19 Thread Craig Donnelly
Put all your values in the following {}... So: VALUES('{$Title}','{$ChristianName}','{$MiddleName}','{$Surname}'. and so on. HTH Craig Harlequin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I've checked my syntax but obviously missing something. Would anyone mind a quick

[PHP] Re: Parse Error, Unexpected $

2004-07-19 Thread Harlequin
Really sorry for taking up so many people's time on such a small issue. -- - Michael Mason Arras People www.arraspeople.co.uk - Harlequin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I've checked my syntax but obviously

[PHP] Re: parse error on fgets

2004-05-05 Thread Brian Muldown
[EMAIL PROTECTED] wrote: Using PHP 4 with this code: if ($csvfile = fopen($csvpath, r)) { while (!feof ($csvfile)) { $filestring = fgets( $csvfile , 255); } } I get a parse error on the line : $filestring = fgets( $csvfile , 255); Any ideas why this is happening?

[PHP] Re: Parse error: parse error, unexpected '='

2004-04-20 Thread Craig
?php $args = array(a,b,b); $keys = array(0,1,2); function array_key_remove($args,$keys,$replacement=NULL) { echo Foo!; } ? Lasse Motroen [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have received some code and am trying to run it. However, I get the following error:

Re: [PHP] Re: Parse error, unexpected T_STRING!!

2004-03-05 Thread Brian V Bonini
On Thu, 2004-03-04 at 21:39, Andre Cerqueira wrote: ? is tag for php code start Enrique Martinez wrote: Hello, I'm getting an error that says: Parse error, unexpected T_STRING on line 73 line 73 is: ?xml version=1.0 encoding=iso-8859-1 ? this is what I have below line 73:

[PHP] Re: Parse error ???

2004-03-04 Thread Michael Nolan
Mike Mapsnac wrote: The script should upload files (images). Error message is give below, any ideas why I get this errror message? Parse error: parse error in /var/www/html/uploadproc.php on line 3 die() needs brackets around its arguments, eg: die(Error! The expected file wasn't a part of the

RE: [PHP] Re: Parse error ???

2004-03-04 Thread Mike Mapsnac
: move_uploaded_file(): Unable to move '/tmp/phpiMrdlQ' to '/var/www/html/upload/' in /var/www/html/uploadproc.php on line 11 Error Moving the uploaded file failed. From: Michael Nolan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [PHP] Re: Parse error ??? Date: Thu, 04 Mar 2004 13:40:46 +

[PHP] Re: Parse error ???

2004-03-04 Thread Michael Nolan
11 Warning: move_uploaded_file(): Unable to move '/tmp/phpiMrdlQ' to '/var/www/html/upload/' in /var/www/html/uploadproc.php on line 11 Error Moving the uploaded file failed. From: Michael Nolan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [PHP] Re: Parse error ??? Date: Thu, 04 Mar 2004 13

Re: [PHP] Re: Parse error ???

2004-03-04 Thread Neil Freeman
PROTECTED] To: [EMAIL PROTECTED] Subject: [PHP] Re: Parse error ??? Date: Thu, 04 Mar 2004 13:40:46 + Mike Mapsnac wrote: The script should upload files (images). Error message is give below, any ideas why I get this errror message? Parse error: parse error in /var/www/html/uploadproc.php on line 3

Re: [PHP] Re: Parse error ???

2004-03-04 Thread Mike Mapsnac
PROTECTED], [EMAIL PROTECTED] Subject: Re: [PHP] Re: Parse error ??? Date: Thu, 04 Mar 2004 13:58:26 + If I remember correctly the second parameter of move_uploaded_file() needs to be the full filename, ie path plus required filename. so... if(!move_uploaded_file($_FILES['myfile']['tmp_name

RE: [PHP] Re: Parse error ???

2004-03-04 Thread Sam Masiello
is apache:apache. Why the owner of the file is not mike ? thanks From: Neil Freeman [EMAIL PROTECTED] To: Mike Mapsnac [EMAIL PROTECTED] CC: [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: [PHP] Re: Parse error ??? Date: Thu, 04 Mar 2004 13:58:26 + If I remember correctly the second

Re[2]: [PHP] Re: Parse error ???

2004-03-04 Thread Richard Davey
Hello Mike, Thursday, March 4, 2004, 6:16:17 PM, you wrote: MM I run the script as user mike and mike:mike is owner of the directory, when MM I upload something to directory the owner of the file is apache:apache. MM Why the owner of the file is not mike ? Because Apache is not running as mike

[PHP] Re: Parse error, unexpected T_STRING!!

2004-03-04 Thread Andre Cerqueira
? is tag for php code start Enrique Martinez wrote: Hello, I'm getting an error that says: Parse error, unexpected T_STRING on line 73 line 73 is: ?xml version=1.0 encoding=iso-8859-1 ? this is what I have below line 73: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN

[PHP] Re: parse error with mysql_connect

2003-08-24 Thread Catalin Trifu
Hi, The prototype for mysql_connect is: resource mysql_connect ( [string server [, string username [, string password [, bool new_link [, int client_flags ] ) As you can see you get parse error because the fourth argument should be boolean, not string. Cheers, Catalin 35:

[PHP] Re: Parse error not understood

2003-08-14 Thread Ivo Fokkema
//If Delete User is selected-- if ( $_REQUEST['useroption'] == 'delete') { //First, check that the user already exists $query = select count(*) from pbpc_client where username = ' . $_REQUEST['usernamebox'] . ';; $result = mysql_query($query); if(!$result) { echo 'Cannot run

[PHP] Re: Parse error not understood

2003-08-14 Thread Chris Blake
Holy schmoley...something so small.I must get off this green tea, all this good health stuff is causing havoc in my brain... Thanks Fokkema, and Johnfor pointing out an obvious error... Regards On Wed, 2003-08-06 at 14:48, Fokkema, I.F.A.C. (HKG) wrote: //If Delete User is

Re: [PHP] Re: Parse error not understood

2003-08-08 Thread Ivo Fokkema
Miles Thompson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Yes, I'm top posting, pls forgive. This is a situation where an editor which has built-in brace matching really helps - if in the midst of looking one remembers to use it. Another tip, although it probably wouldn't help

Re: [PHP] Re: Parse error not understood

2003-08-06 Thread Miles Thompson
Yes, I'm top posting, pls forgive. This is a situation where an editor which has built-in brace matching really helps - if in the midst of looking one remembers to use it. Another tip, although it probably wouldn't help here: Save the code with a .phps extension and look at it in the browser.

[PHP] Re: parse error, unexpected $end ...

2003-01-24 Thread Octavio Herrera
This is the source code ? include(includes/encabezado_xml.php); include(includes/conexion.php); mysql_select_db(latinencounters); $u_login=; $u_pwd=; if(isset($url_login)){ $u_login=$url_login; // parametro login del usuario } if(isset($url_pwd)){ $u_pwd=$url_pwd; // parametro

RE: [PHP] Re: parse error, unexpected $end ...

2003-01-24 Thread John W. Holmes
? include(includes/encabezado_xml.php); include(includes/conexion.php); mysql_select_db(latinencounters); $u_login=; $u_pwd=; if(isset($url_login)){ $u_login=$url_login; // parametro login del usuario } if(isset($url_pwd)){ $u_pwd=$url_pwd; // parametro password del usuario

[PHP] Re: Parse error

2003-01-14 Thread Brent Lee
Everything works great now. Thanks for the quick responses everyone. Brent Lee [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I'm new to PHP and am slowly learning it. I have the following code that is giving me errors could someone take a look and suggest a

[PHP] Re: parse error

2003-01-03 Thread Greg Beaver
In addition to the other errors pointed out... I assume you want a loop. change while($row = mysql_fetch_array($response)); to while($row = mysql_fetch_array($response)) { Take care, Greg -- phpDocumentor http://www.phpdoc.org while($row = mysql_fetch_array($response)); echo(p

[PHP] Re: Parse error - new set of eyes?

2002-07-25 Thread Scott Fletcher
I had experienced similar problem like that in the past. Part of it had to do with the header() function. Your script checked out fine, just like mine did. Try remarking the line of code where hte header is and see if you don't have hte parse error, if this is the case then it's the header().

[PHP] Re: Parse error

2002-07-22 Thread Kondwani Spike Mkandawire
?php If ('GET' == $HTTP_SERVER_VARS['REQUEST_METHOD']) { $MailToAddress = '[EMAIL PROTECTED]'; $MailSubject = 'Get Involved List'; ? ?php exit; } ? You appear to be moving in and out of PHP Mode that could be pretty tough to follow... I've practically been looking at php Code

[PHP] Re: Parse Error(newbie)

2002-05-29 Thread Kevin Lowe
Hi JJ, Looks OK to me, could it be that youa re missing a semi colon ; or a brace } from a previous line, in this case PHP often reports the parse error as being the line where the next ; is? EG $var1 = x $var2 = y; This will show an error on the second line. KEvin

Re: [PHP] Re: Parse Error(newbie)

2002-05-29 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Kevin Lowe declared Looks OK to me, could it be that youa re missing a semi colon ; or a brace } from a previous line, in this case PHP often reports the parse error as being the line where the next ; is? Yep, that would be me

[PHP] Re: Parse Error(Newbie)

2002-05-26 Thread David Robley
In article 003601c20541$fdc31970$0100a8c0@JohnH, [EMAIL PROTECTED] says... I know it is probably something obvious but the following gives me a parse error and as a newbie I am having trouble locating it. $query = select * from news WHERE id = $_get['id']; JJ Harrison [EMAIL PROTECTED]

[PHP] Re: parse error, mysql select

2002-04-01 Thread martinahingis
Error is absolute. Don't use (double quotation mark) in yur queries. Use ' (single quot.) instead $query = SELECT DATE_FORMAT( exp_date, '%W, %M %d, %Y') AS thedate from tifrequest where user='$user' limit 1,1; Because the preprocessor think that your string is finished when it sees a double

[PHP] Re: Parse Error

2001-10-29 Thread Valentin V. Petruchek
Try this: var $VAL_ID; var $VAL_TICKER; var $VAL_ID_FEED; -- PHP General 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] Re: parse error AFTER end of included file??

2001-08-28 Thread James Holloway
Jaxon, do you have a line of white space after your closing tag? Anyway, this looks fishy to me: if (!isset($page_id)) { $sql=select page_id from table where fieldname = $value; $link_id = mysql_connect($host, $usr, $pass) or die (mysql_error());