RE: [PHP] Parse error: parse error, expecting `']'' in

2004-12-02 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 02 December 2004 13:22, Robert Sossomon wrote: But what I don't understand is why sometimes '$_POST[variable]' works and why sometimes it will only work when it is

RE: [PHP] Parse error: parse error, expecting `']'' in

2004-12-02 Thread Matthew Sims
So when using arrays with string keys within strings you need to concatenate it. $var = I live in the city of . $_POST['cityname']; No, you do not *need* to -- it is one option, certainly, but there is no necessity about it. Within double-quoted strings, it is perfectly acceptable to use

[PHP] Parse error: parse error, expecting `']'' in

2004-12-01 Thread Robert Sossomon
Parse error: parse error, expecting `']'' in file.php I've been working on this script, and can't see why it fails here, but I have another page that uses the same coding and it works correctly. OK, here's the code: $cart1 = ; $cart1 =

Re: [PHP] Parse error: parse error, expecting `']'' in

2004-12-01 Thread Thomas Munz
Parse error: parse error, expecting `']'' in file.php I've been working on this script, and can't see why it fails here, but I have another page that uses the same coding and it works correctly. OK, here's the code: $cart1 = ; $cart1 =

Re: [PHP] Parse error: parse error, expecting `']'' in

2004-12-01 Thread Matthew Sims
Parse error: parse error, expecting `']'' in file.php I've been working on this script, and can't see why it fails here, but I have another page that uses the same coding and it works correctly. OK, here's the code: $cart1 = ; $cart1 =

Re: [PHP] Parse error: parse error, expecting `']'' in

2004-12-01 Thread Richard Lynch
Robert Sossomon wrote: Parse error: parse error, expecting `']'' in file.php First, some minor nits with other posters :-) 1. While it's true that integer and string keys are handled differently in some cases, it has absolutely no bearing when the array reference is buried in a string. 2. The

[PHP] Parse a url for a specific string

2004-11-30 Thread web_singer
I would like to parse a url which is submitted to me for a link to check if it already has a link to my site on it. Does anyone know if php has a function which would allow me to do this relatively easily? Thanks in advance Jenn --- Outgoing mail is certified Virus Free. Checked by AVG

Re: [PHP] Parse a url for a specific string

2004-11-30 Thread Richard Davey
Hello web_singer, Tuesday, November 30, 2004, 11:57:33 AM, you wrote: w I would like to parse a url which is submitted to me for a link to w check if it already has a link to my site on it. Does anyone know w if php has a function which would allow me to do this relatively w easily? You could

Re: [PHP] Parse Error --- can not solve at this time... please assit

2004-10-11 Thread Janet Valade
GH wrote: With the following code, I am getting the following message Parse error: parse error, expecting `')'' in /var/www/html/cert/admin_template.php on line 30 Line 30 Reads as follows: foreach($admin_get_options_result as $api = $file, $desc) Your syntax is incorrect on this

Re: [PHP] Parse Error --- can not solve at this time... please assit

2004-10-11 Thread Minuk Choi
your naming scheme, as that might save time on any misspelled variable names. HTH -Minuk - Original Message - From: GH [EMAIL PROTECTED] To: PHP General [EMAIL PROTECTED] Sent: Monday, October 11, 2004 1:48 AM Subject: [PHP] Parse Error --- can not solve at this time... please assit

[PHP] Parse Error --- can not solve at this time... please assit

2004-10-10 Thread GH
With the following code, I am getting the following message Parse error: parse error, expecting `')'' in /var/www/html/cert/admin_template.php on line 30 Line 30 Reads as follows: foreach($admin_get_options_result as $api = $file, $desc) Can any one please assist.

[PHP] Parse file and input into DB

2004-10-04 Thread Robert Sossomon
What I would like to do is upload a file and have PHP parse the file and dump the information into a MySQL database, putting the information into select tables. I believe I can do everything EXCEPT parse the page. Anyone have some insight (or direct links) to some examples on what to use

Re: [PHP] Parse file and input into DB

2004-10-04 Thread Matt M.
What I would like to do is upload a file and have PHP parse the file and dump the information into a MySQL database, putting the information into select tables. I believe I can do everything EXCEPT parse the page. Anyone have some insight (or direct links) to some examples on what to use

Re: [PHP] Parse file and input into DB

2004-10-04 Thread John Nichel
Robert Sossomon wrote: What I would like to do is upload a file and have PHP parse the file and dump the information into a MySQL database, putting the information into select tables. I believe I can do everything EXCEPT parse the page. Anyone have some insight (or direct links) to some

Re: [PHP] Parse file and input into DB - More

2004-10-04 Thread Robert Sossomon
Whoops. I am planning to do an upload of HTML files that are written from Belarc Advisor or from another utility that checks your system and creates a profile. Robert -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Parse Error... can not find cause of error....

2004-09-25 Thread Marek Kilimajer
GH wrote: Greetings... I am getting a parse error (line 45) and I do not know what is causing it... since I have the same code with minor changes nyc_ renamed to fed_ and it works... can someone please assit. code is also available at http://www.phpaste.com/536 File:

[PHP] Parse Error, Unexpected $

2004-07-19 Thread Harlequin
I've checked my syntax but obviously missing something. Would anyone mind a quick scan: // Convert Values to Variables: $Title = $_POST[Title]; $ChristianName = $_POST[ChristianName]; $MiddleName = $_POST[MiddleName]; $Surname = $_POST[Surname]; $HomePhone = $_POST[HomePhone];

Re: [PHP] Parse Error, Unexpected $

2004-07-19 Thread Jim Root
I see one problem, but not the one you are talking about. // Convert Values to Variables: $Title = $_POST[Title]; This (and the rest of the post fields) should have quotes: $Title = $_POST[Title]; (php looks for a constant named Title, instead of the string Title) What line gives you the

Re: [PHP] Parse Error, Unexpected $

2004-07-19 Thread Harlequin
Jim I deleted a whole load of lines and still get the error. I've narrowed it down to this code: ?php // Verify User Input: echo brbrbr; $requiredFields = array('Title','ChristianName','Surname','HomePhone','Address01','City','Post code','Country','Gender','WorkPermitRequired','MyStatus');

Re: [PHP] Parse Error, Unexpected $

2004-07-19 Thread Jason Wong
On Monday 19 July 2004 19:02, Harlequin wrote: I deleted a whole load of lines and still get the error. I've narrowed it down to this code: Please read the syntax guide in the manual. Asking people to solve parse errors for you is, IMHO, ludicrous. -- Jason Wong - Gremlins Associates -

Re: [PHP] Parse Error, Unexpected $

2004-07-19 Thread Jason Barnett
But the error (line 40) is actually the last line...! :| You had a missing brace. When the error line is the last line (and especially if error is Undefined $end) then you likely have a missing ending brace or ending quote. Not trying to start a flame war here, but if you try a different

Re: [PHP] Parse Error, Unexpected $

2004-07-19 Thread Jim Root
else { echo Hi...!; ? You are missing a } at the end of the else. It should be: else { echo Hi...!; } ? On Mon, 19 Jul 2004 12:02:47 +0100, Harlequin [EMAIL PROTECTED] wrote: Jim I deleted a whole load of lines and still get the error. I've narrowed it down to this code:

Re: [PHP] Parse Error, Unexpected $

2004-07-19 Thread Jarratt Ingram
Hello, Try adding the closing brace } to the last else forEach($errors as $error) { echo $error . 'brbr'; } } else { echo Hi...!; -- hth Jarratt On Mon, 2004-07-19 at 12:02, Harlequin wrote: Jim I deleted a whole load of lines and still get the error. I've narrowed it

Re: [PHP] Parse Error, Unexpected $

2004-07-19 Thread Harlequin
Thanks Jason. I've started doing that - damn well have to with nested IF statements. -- - Michael Mason Arras People www.arraspeople.co.uk - Jason Barnett [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] But the error

[PHP] parse error: [PHP] usort e é together

2004-07-11 Thread John Taylor-Johnston
I went with this, but am getting a parse error. usort($authors, create_function('$a,$b',' $a = str_replace(array('é', 'à'), array('e', 'a'), $a); $b = str_replace(array('é', 'à'), array('e', 'a'), $b); return strcasecmp($a,$b);')); Anyone see it? I've got headaches from

Re: [PHP] parse error: [PHP] usort e é together

2004-07-11 Thread Marek Kilimajer
I'm sorry, I used unescaped single quotes inside single quoted string, this is right: usort($authors, create_function('$a,$b',' $a = str_replace(array(é, à), array(e, a), $a); $b = str_replace(array(é, à), array(e, a), $b); return strcasecmp($a,$b);')); John

Re: [PHP] parse =?unknown-8bit?q?error=3A_?==?unknown-8bit?q?=5BPHP=5D_usort_e_&_=E9?= together

2004-07-11 Thread Curt Zirzow
* Thus wrote John Taylor-Johnston: I went with this, but am getting a parse error. usort($authors, create_function('$a,$b',' $a = str_replace(array('é', 'à'), array('e', 'a'), $a); $b = str_replace(array('é', 'à'), array('e', 'a'), $b); return strcasecmp($a,$b);'));

Re: [PHP] parse error: [PHP] usort e é together

2004-07-11 Thread John Taylor-Johnston
Sorry. Still getting a parse error on line 40: 39 usort($authors, create_function('$a,$b',' 40 $a = str_replace(array('é', 'à'), array('e', 'a'), $a); 41 $b = str_replace(array('é', 'à'), array('e', 'a'), $b); 42 return strcasecmp($a,$b);')); Can you have two arrays

Re: [PHP] parse error: [PHP] usort e é together

2004-07-11 Thread Miroslav Hudak (php/ml)
Dunno the original question, but this obviously should be escaped... So the correct code follows... usort($authors, create_function('$a,$b',' $a = str_replace(array(\'é\', \'a\'), array(\'e\', \'a\'), $a); $b = str_replace(array(\'é\', \'a\'), array(\'e\', \'a\'), $b); return

[PHP] Parse XML

2004-05-25 Thread Phil Dowson
Hi, I am having a couple of difficulties with a script to parse XML. This may well be because my 16 month kid was up all night, but I'm banging my head against a wall right now. The script quite easily extracts one of the entries listed under DATA_2 but doesnt list the other. This is my first

[PHP] parse error on fgets

2004-05-05 Thread dburch
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? replacing it with fread also

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

2004-04-20 Thread Lasse Motroen
I have received some code and am trying to run it. However, I get the following error: *Parse error*: parse error, unexpected '=', expecting ')' It happens on this line when $args=array() is reached: function array_key_remove($args=array(), $keys=array(),$replacement=NULL) I have php-4.2.2-17

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

2004-04-20 Thread Elfyn McBratney
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tuesday 20 Apr 2004 08:24, Lasse Motroen wrote: I have received some code and am trying to run it. However, I get the following error: *Parse error*: parse error, unexpected '=', expecting ')' It happens on this line when $args=array() is

[PHP] Parse error ???

2004-03-04 Thread Mike Mapsnac
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 //Upload.php (form) form method=post action=uploadproc.php enctype=multipart/form-data input type=file name=myfilebr /

RE: [PHP] Parse error ???

2004-03-04 Thread Jay Blanchard
[snip] 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 //uploadproc.php if(!isset($_FILES['myfile'])) { die Error! The expected file wasn't a part of the submitted form; } [/snip] Try

[PHP] Parse error, unexpected T_STRING!!

2004-03-04 Thread Enrique Martinez
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 http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html

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

2004-03-04 Thread Craig Gardner
What do you have before line 73? On Thu, 2004-03-04 at 12:03, 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

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

2004-03-04 Thread Enrique Martinez
This is what I have before line 73: ?php require_once('Connections/connTrio.php'); ? ?php function GetSQLValueString($theValue, $theType, $theDefinedValue = , $theNotDefinedValue = ) { $theValue = (!get_magic_quotes_gpc()) ? addslashes($theValue) : $theValue; switch ($theType) { case

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

2004-03-04 Thread Enrique Martinez
Hey Mike, your wild guess worked great!! :) Thanks a lot, and Craig as well. --- Ford, Mike [LSS] [EMAIL PROTECTED] wrote: On 04 March 2004 20:04, Enrique Martinez wrote: Hello, I'm getting an error that says: Parse error, unexpected T_STRING on line 73 line 73 is:

Re: [PHP] Parse Error

2004-02-18 Thread Bob Eldred
- Original Message - From: Jay Blanchard [EMAIL PROTECTED] To: Rolf van de Krol [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, February 17, 2004 9:06 AM Subject: RE: [PHP] Parse Error The error is: Parse error: parse error, unexpected T_VARIABLE in /www/htdocs/rolfvand

Re: [PHP] Parse Error

2004-02-18 Thread - Edwin -
On Wed, 18 Feb 2004 21:35:15 -0800 Bob Eldred [EMAIL PROTECTED] wrote: The error is: Parse error: parse error, unexpected T_VARIABLE in /www/htdocs/rolfvand/thinkquest/browsercheck.php on line 46 [/snip] All of your values are not enclosed with single quotes - the first four are,

Fw: [PHP] Parse Error

2004-02-18 Thread Bob Eldred
Since I replied only to Edwin. - Original Message - From: Bob Eldred [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 18, 2004 10:40 PM Subject: Re: [PHP] Parse Error Yes. Of course not. That wasn't the point. The point was that the parse error isn't caused

[PHP] Parse error

2004-02-17 Thread Rolf van de Krol
Does anybody know what this error can meen? Parse error: parse error, unexpected T_VARIABLE in /www/htdocs/rolfvand/thinkquest/browsercheck.php on line 46 What is a T_VARIABLE? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Parse error

2004-02-17 Thread Stuart
Rolf van de Krol wrote: Does anybody know what this error can meen? Parse error: parse error, unexpected T_VARIABLE in /www/htdocs/rolfvand/thinkquest/browsercheck.php on line 46 What is a T_VARIABLE? Could be an unclosed quote, or a number of other things. Post a few lines around line 46 and we

[PHP] Parse Error

2004-02-17 Thread Rolf van de Krol
More info about the parse error of my previous post: The lines 45-46: $mysql_query = INSERT INTO sessions(sessionid,ver,agent,bwinf,screenwidth,screenheight,availwidth,avail height) ; $mysql_query .= VALUES('$sessionid','$ver','$agent','$bwinf',$scrwidth,$scrheight,$availwid th,$availheight); The

RE: [PHP] Parse Error

2004-02-17 Thread Jay Blanchard
[snip] More info about the parse error of my previous post: The lines 45-46: $mysql_query = INSERT INTO sessions(sessionid,ver,agent,bwinf,screenwidth,screenheight,availwidth,a vail height) ; $mysql_query .= VALUES('$sessionid','$ver','$agent','$bwinf',$scrwidth,$scrheight,$avai lwid

RE: [PHP] Parse Error

2004-02-17 Thread Jay Blanchard
[snip] That's not the problem. I want the last for values aren't enclosed with single quotation marks. I think it's a weird problem. This lines executed on the server of my ISP give this error. The same lines executed on my server on my localhost (Apache 1.3.29, PHP 4.3.2, MySQL 3.? and Win2K)

Re: [PHP] Parse Error

2004-02-17 Thread BAO RuiXian
Jay Blanchard wrote: [snip] More info about the parse error of my previous post: The lines 45-46: $mysql_query = INSERT INTO sessions(sessionid,ver,agent,bwinf,screenwidth,screenheight,availwidth,a vail height) ; $mysql_query .=

Re: [PHP] Parse Error

2004-02-17 Thread John Nichel
Jay Blanchard wrote: [snip] More info about the parse error of my previous post: The lines 45-46: $mysql_query = INSERT INTO sessions(sessionid,ver,agent,bwinf,screenwidth,screenheight,availwidth,a vail height) ; $mysql_query .=

Re: [PHP] Parse error

2004-02-17 Thread Jochem Maas
T_VARIABLE refers to a variable token (e.g. $foo) found in your file when the PHP parser was expecting something else. the very common typo; e.g.: (note the end of line 3 below) ? $foo = 'hello world'; echo $foo $bar = $foo; ? PHP parser token overview: http://www.phpbuilder.com/manual/tokens.php

Re: [PHP] parse error, unexpected $

2004-02-11 Thread Bruno Mattarollo
Hello Raditha and all, Thanks for the replies ... I reviewed all my code with Zend Studio and the syntax was correct everywhere ... so I tried running the application from the command line: $ php donate.php and it worked fine, so looking through the code we saw that there was a short-tag in

Re: [PHP] parse error, unexpected $

2004-02-11 Thread Hugh Danaher
Bruno, This often occurs when there is no closing bracket } for a conditional statement or a loop. hth Hugh - Original Message - From: Bruno Mattarollo [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 11, 2004 2:51 AM Subject: Re: [PHP] parse error, unexpected $ Parse

[PHP] parse error, unexpected $

2004-02-10 Thread Bruno Mattarollo
Hello, I am having a strange problem with PHP and I can't really find a proper answer, maybe someone have seen this before and can give me a hint. I have a series of files (originally developed by another colleague) installed on a server with PHP 4.2.2 and I get this error: Parse error: parse

Re: [PHP] parse error, unexpected $

2004-02-10 Thread Raditha Dissanayake
Hi Bruno, The line number is misleading the error is generally above the line that's reffered to. try commenting out sections of the code. If you have an IDE it will be able to point out the error. If you don't have an IDE some text editor that is capable of syntax highlighting will also help.

[PHP] Parse error in mysql_query()

2003-12-22 Thread Tyler Longren
Error: Parse error: parse error, expecting `']'' in /usr/local/apache/htdocs/UP/index.php on line 871 Line 871: mysql_query(INSERT INTO domainregistrations (domain,type,years,price) VALUES

RE: [PHP] Parse error in mysql_query()

2003-12-22 Thread Sam Masiello
Perhaps it doesn't like the fact that you don't have quotes around your array keys? --Sam Tyler Longren wrote: Error: Parse error: parse error, expecting `']'' in /usr/local/apache/htdocs/UP/index.php on line 871 Line 871: mysql_query(INSERT INTO domainregistrations

RE: [PHP] Parse error in mysql_query()

2003-12-22 Thread Tyler Longren
Sorry, should have mentioned that I tried quoting them already. That gives a T_VARIABLES parse error. Thanks for the reply, Tyler On Mon, 2003-12-22 at 12:30, Sam Masiello wrote: Perhaps it doesn't like the fact that you don't have quotes around your array keys? --Sam Tyler Longren

RE: [PHP] Parse error in mysql_query()

2003-12-22 Thread Matt Matijevich
[snip] Sorry, should have mentioned that I tried quoting them already. That gives a T_VARIABLES parse error. Thanks for the reply, Tyler [/snip] What happens if you comment out the mysql statement and just echo the variables? echo $_POST[domainregister_domain$i]

Re: [PHP] Parse error in mysql_query()

2003-12-22 Thread John W. Holmes
Tyler Longren wrote: Error: Parse error: parse error, expecting `']'' in /usr/local/apache/htdocs/UP/index.php on line 871 ('$_POST[domainregister_domain$i]', If you're going to be creating array keys like that, break out of the string to do it. (' . $_POST['domainregister_domain' . $i] . ', ...

RE: [PHP] Parse error in mysql_query()

2003-12-22 Thread Tyler Longren
Hi Matt, I put this right above like 871: print brbr$_POST[domainregister_domain$i]brbr; So now that print line is 871. It produces the exact same error as the mysql_query() line. The reason I'm doin it like this is cuz I'm dynamically generating forms, and lots of the fields are the same,

Re: [PHP] Parse error in mysql_query()

2003-12-22 Thread Tyler Longren
Doing this fixed it: mysql_query(INSERT INTO domainregistrations (domain,type,years,price) VALUES ('$_POST[domainregister_domain]$i','$_POST[domainregister_type]$i','$_POST[domainregister_years]$i','$_POST[domainregister_price]$i')); I just moved the $i to the outside of the [] and it works now.

RE: [PHP] Parse error in mysql_query()

2003-12-22 Thread Matt Matijevich
[snip] I put this right above like 871: print brbr$_POST[domainregister_domain$i]brbr; So now that print line is 871. It produces the exact same error as the mysql_query() line. [/snip] I should have mentioned this in my last email. You should try a print_r of the $_POST array. print pre;

Re: [PHP] Parse error in mysql_query()

2003-12-22 Thread John W. Holmes
Tyler Longren wrote: Hi Matt, I put this right above like 871: print brbr$_POST[domainregister_domain$i]brbr; So now that print line is 871. It produces the exact same error as the mysql_query() line. The reason I'm doin it like this is cuz I'm dynamically generating forms, and lots of the

RE: [PHP] Parse WebCT quiz

2003-12-02 Thread Chris Hubbard
Message- From: John Taylor-Johnston [mailto:[EMAIL PROTECTED] Sent: Sunday, November 23, 2003 10:26 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Parse WebCT quiz I have done this (below) already. I suppose. I will have to explode by \n. One of my problems is that with :QUESTION:{H|T}, the question

[PHP] Parse WebCT quiz

2003-11-23 Thread John Taylor-Johnston
Can someone help me get started? Anyone ever use WebCT? It uses quizzes, field types described here. https://online.csus.edu/web-ct/help/en/designer/quiz/quiz_transfer.html#formats Can someone help me parse them out please? I don't want to pay for WebCT. It was a GNU project gone commercial. It

Re: [PHP] Parse WebCT quiz

2003-11-23 Thread John Taylor-Johnston
I have done this (below) already. I suppose. I will have to explode by \n. One of my problems is that with :QUESTION:{H|T}, the question is on the next line. Exploding by \n puts my question text into the next line_field[]. Note: Multiple lines of text are permitted. Getting that variabnle

[PHP] Parse error?

2003-11-15 Thread Frank Keessen
Hi Guys, Sorry to trouble you on a saturday night (at least in The Netherlands...).. Get a parse error on line 42, but i can't see what is causing the trouble. (Parse error: parse error in /home/.sites/95/site92/web/admin/editreis.php on line 42) if(is_array($_POST['accomodatieid'])) {

Re: [PHP] Parse error?

2003-11-15 Thread David Otton
On Sat, 15 Nov 2003 22:38:07 +0100, you wrote: Get a parse error on line 42, but i can't see what is causing the trouble. (Parse error: parse error in /home/.sites/95/site92/web/admin/editreis.php on line 42) if(is_array($_POST['accomodatieid'])) { foreach($_POST['accomodatieid'] as $Key =

Re: [PHP] Parse error?

2003-11-15 Thread Boyan Nedkov
Frank Keessen wrote: Hi Guys, Sorry to trouble you on a saturday night (at least in The Netherlands...).. Get a parse error on line 42, but i can't see what is causing the trouble. (Parse error: parse error in /home/.sites/95/site92/web/admin/editreis.php on line 42)

Re: [PHP] Parse error?

2003-11-15 Thread Chris Shiflett
--- David Otton [EMAIL PROTECTED] wrote: I can't be bothered to figure out a test case, but you apparently have a SQL injection risk with your code. You're assuming that the data from the client is correct. This is a very good point. To highlight an example in the sample code you provided

Re: [PHP] Parse error?

2003-11-15 Thread Frank Keessen
: Re: [PHP] Parse error? --- David Otton [EMAIL PROTECTED] wrote: I can't be bothered to figure out a test case, but you apparently have a SQL injection risk with your code. You're assuming that the data from the client is correct. This is a very good point. To highlight an example

[PHP] Parse error?

2003-09-05 Thread Mike Zornek
I'm trying to give PEAR a try and am currently following it's tutorial at: http://pear.php.net/manual/en/package.database.db.intro-fetch.php Now when I put this code into a PHP file I get a parse error on line 49 which has: while ($row = $result-fetchRow()) { I don't see what would cause the

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

2003-09-05 Thread Mike Zornek
On 9/5/03 1:50 PM, Mike Zornek [EMAIL PROTECTED] wrote: I'm trying to give PEAR a try and am currently following it's tutorial at: http://pear.php.net/manual/en/package.database.db.intro-fetch.php Now when I put this code into a PHP file I get a parse error on line 49 which has: while

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

2003-09-05 Thread Mike Migurski
Ok, the reason I was getting this error seems to be related to Safari on OS X. When I copy code segments in Safari and paste them in BBEdit they generally looked ok, although there were extra spaces inserted in some places. I then turned on show invisible characters and it made it even more clear

[PHP] parse error with mysql_connect

2003-08-24 Thread Mjec
Hi, I keep getting Parse Error on line 36, but I can't figure out why... relevant code: 35: // Initialize MySQL database 36: $h = mysql_connect('localhost','localhost',constant(mysql_user),constant(mysql _password)); 37: mysql_select_db('mjec_mjecnet', $h); using PHP v. 4.3.2 Thanks,

[PHP] Parse error not understood

2003-08-14 Thread Chris Blake
Greetings learned PHP(eople); My HTML : -- input type=input class=input name=usernamebox value=Enter user name../inputbr input type=radio name=useroption value=addAdd User/inputbr input type=radio name=useroption value=editEdit User/inputbr input type=radio name=useroption

Re: [PHP] Parse error not understood

2003-08-07 Thread CPT John W. Holmes
From: Chris Blake [EMAIL PROTECTED] [snip] //If Delete User is selected-- if ( $_REQUEST['useroption'] == 'delete') { [snip] No matter which option I select I get the following output : -- Parse error: parse error, unexpected $ in /var/www/html/Sessions/userman.php on line 83

[PHP] Parse out special strings

2003-03-26 Thread Richard Sumilang
I need to parse out strings from a long piece of string for templating purposes. The criteria is to find all strings that start with {, end with }, and only contain text or underscores between the two brackets. No numbers or other special characters can be between to the brackets to qualify

RE: [PHP] Parse exec output

2003-03-01 Thread Rich Gray
If I exec a command like ifconfig, I'd like to be able to parse. What is the best way to go about thihs? An example output from ifconfig is: Check http://www.php.net/manual/en/function.passthru.php Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Parse exec output

2003-02-28 Thread Gregory Chagnon
If I exec a command like ifconfig, I'd like to be able to parse. What is the best way to go about thihs? An example output from ifconfig is: [EMAIL PROTECTED]:/var/log ifconfig eth0 Link encap:Ethernet HWaddr 00:C0:4F:AB:F9:59 inet addr:192.168.1.200 Bcast:192.168.1.255

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

2003-01-24 Thread Octavio Herrera
Hello, my name is octavio, Im new to this news group, I have a problem, Im getting the following error message: Parse error: parse error, unexpected $end in c:\appserv\www\octavio\user_data.php on line 63 What is this? I have looked all the source code and at the end of file there is nothing

[PHP] Parse error

2003-01-14 Thread Brent Lee
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 fix? Parse error: parse error in /home//public_html/Info/datain.php on line 7 HTML ?php $db = mysql_connect(localhost, ,xx);

Re: [PHP] Parse error

2003-01-14 Thread Joseph W. Goff
Try this... $sql = INSERT INTO personnel (firstname, lastname, nick, email, salary) VALUES ('$first','$last','$nickname',); - Original Message - From: Brent Lee [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 14, 2003 10:02 AM Subject: [PHP] Parse error I'm new to PHP

RE: [PHP] Parse error

2003-01-14 Thread M.A.Bond
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 fix? Parse error: parse error in /home//public_html/Info/datain.php on line 7 HTML ?php $db = mysql_connect(localhost, ,xx);

[PHP] Parse source for braces

2003-01-06 Thread Shawn McKenzie
I need to parse some source code to find the contents of a specific function. The only way I can think of is to load the source file into a string find the function by name and parse the text in the string and find the end brace of the function, made difficult by the existence of all the other

[PHP] parse error

2003-01-02 Thread Ezequiel Sapoznik
Hi! I am receiving a parse error in the following code. The file is located at http://www.historiadelpais.com.ar/ppal_bio.php Anyone can help me? Thanks! Ezequiel html head titleBiografias/title /head body background=images/StyleGreenMarble_Bg.jpg ?php $db = mysql_connect(localhost,

Re: [PHP] parse error

2003-01-02 Thread Gerald Timothy Quimpo
On Friday 03 January 2003 10:27 am, Ezequiel Sapoznik wrote: echo(p align=centerimg border=0 src=images/banner_chico_bio.jpg width=274 height=43/p); you have embedded double quotes inside a string delimited by double quotes. use single quotes to delimit the string (since nothing inside is a

Re: [PHP] parse error

2003-01-02 Thread Michael J. Pawlowsky
You need to esape your quotes in the HTML as in echo(table border=0 width=125 height=27); should be echo(table border=\0\ width=\125\ height=\27\); Mike *** REPLY SEPARATOR *** On 02/01/2003 at 11:27 PM Ezequiel Sapoznik wrote: Hi! I am receiving a parse error in

Re: [PHP] parse error

2003-01-02 Thread Dan Goodes
Or, another option is to use single-quotes in the HTML: echo(table border='0' width='125' height='27'); That way you can include variables in there if you see fit (since the string itself is still double-quoted), and you don't have to worry about escpaing the double-quotes. -Dan On Thu, 2

Re: [PHP] parse error

2003-01-02 Thread John Nichel
You have numerous errors in that code. Your DB connection line is messed up, the username and password either need to be a quoted string, a variable representing that string, or a constant. Your database selection needs to be quoted. You need to escape out the double quotes that you want to

[PHP] Parse Errors

2002-12-14 Thread Andy Turegano
I am a PHP beginner so this error may be a stupid one. Anyway, I'm trying to write a simple addition script. The client enters two numbers, then my script (adder.php) adds them. However, when the script is run, I get Parse Error On Line 3 I have no idea exactly what I have done wrong. Here is the

Re: [PHP] Parse Errors

2002-12-14 Thread DL Neil
Andy, I am a PHP beginner so this error may be a stupid one. Anyway, I'm trying to write a simple addition script. The client enters two numbers, then my script (adder.php) adds them. However, when the script is run, I get Parse Error On Line 3 I have no idea exactly what I have done wrong.

[PHP] Parse out text

2002-12-13 Thread Shane McBride
I have a form that is submitting a Javascript to validate fields before the form casn be submitted. The problem is that the field name has to be prefixed with required. So, if I have a field called email, it has to be called requiredemail in order for the javascript to work. How can I remove the

Re: [PHP] Parse out text

2002-12-13 Thread Tom Rogers
Hi, Saturday, December 14, 2002, 10:12:28 AM, you wrote: SM I have a form that is submitting a Javascript to validate fields before the SM form casn be submitted. The problem is that the field name has to be SM prefixed with required. So, if I have a field called email, it has to be SM called

[PHP] Parse URLs

2002-11-24 Thread Stephen
replacement? Also, how could I then limit how many are in the post? - Original Message - From: Tom Culpepper [EMAIL PROTECTED] To: Stephen [EMAIL PROTECTED] Cc: PHP List [EMAIL PROTECTED] Sent: Saturday, November 23, 2002 9:46 PM Subject: Re: [PHP] Parse URLs from the archives

Re: [PHP] Parse URLs

2002-11-24 Thread Justin French
Before asking, you should have done a search at google.com... I searched for 'emoticons replace php', and it returned HEAPS of results, including this one, which seems close to what you're asking... http://www.devarticles.com/art/1/161/2 Search the archives and google before posting please!

Re: [PHP] Parse URLs

2002-11-24 Thread Stephen
Yes, I found that after posting my last message. Sorry and I'll use google more... - Original Message - From: Justin French [EMAIL PROTECTED] To: Stephen [EMAIL PROTECTED]; PHP List [EMAIL PROTECTED] Sent: Sunday, November 24, 2002 6:42 PM Subject: Re: [PHP] Parse URLs Before asking

[PHP] Parse URLs

2002-11-23 Thread Stephen
I have a simple post script and I want to make it so if a user types in a URL of some sort, to change it to make it clickable. How could I do that? Thanks,Stephen Cratonhttp://www.melchior.us "Life is a gift from God. Wasting it is like destroying a gift you got from the person you love

Re: [PHP] Parse URLs

2002-11-23 Thread Tom Culpepper
not entirely sure what is going on there, but if the user is entering the url in a html form. Then just grab the variable on the next page and run this $url=user $HTTP_GET_VARS[url]; (or $HTTP_POST_VARS depending on your form method) $url=a href=.$url..$url./a; echo $url; the only way to

Re: [PHP] Parse URLs

2002-11-23 Thread Stephen
, November 23, 2002 9:05 PM Subject: Re: [PHP] Parse URLs not entirely sure what is going on there, but if the user is entering the url in a html form. Then just grab the variable on the next page and run this $url=user $HTTP_GET_VARS[url]; (or $HTTP_POST_VARS depending on your form method

<    1   2   3   4   5   6   >