Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » wrong syntax error
wrong syntax error [message #22451] Sun, 20 May 2007 18:48 Go to next message
Jacek Wilczynski is currently offline Jacek WilczynskiFriend
Messages: 2
Registered: July 2009
Junior Member
when i typing in pdt i have wrong syntax error:
$tamp_str=$timestamp->item(0)->nodeValue;
error is between item(0) and nodeValue, but code works fine.
How i can remove the error?
Jacek
Re: wrong syntax error [message #22495 is a reply to message #22451] Sun, 20 May 2007 19:28 Go to previous messageGo to next message
Ali B. is currently offline Ali B.Friend
Messages: 66
Registered: July 2009
Member
Jacek,

Can you please send your class definition part.

Cheers,
Ali

wolk@jablko.one.pl wrote:
> when i typing in pdt i have wrong syntax error:
> $tamp_str=$timestamp->item(0)->nodeValue;
> error is between item(0) and nodeValue, but code works fine.
> How i can remove the error?
> Jacek
>
Re: wrong syntax error [message #22884 is a reply to message #22495] Tue, 22 May 2007 11:11 Go to previous messageGo to next message
Jacek Wilczynski is currently offline Jacek WilczynskiFriend
Messages: 2
Registered: July 2009
Junior Member
Ali B. pisze:
> Jacek,
>
> Can you please send your class definition part.
>
> Cheers,
> Ali
>
> wolk@jablko.one.pl wrote:
>> when i typing in pdt i have wrong syntax error:
>> $tamp_str=$timestamp->item(0)->nodeValue;
>> error is between item(0) and nodeValue, but code works fine.
>> How i can remove the error?
>> Jacek
>>

I use standard DOMXML build in php.

<?php
$xmlDoc = new DOMDocument();
$xmlDoc->load("c:\xmltest.xml");

echo "DomXML <br>\n";
$x= $xmlDoc->documentElement;
$lista = $xmlDoc->getElementsByTagName('sprawa');
foreach($lista as $pozycajlisty)
{
$timestamp=$pozycajlisty->getElementsByTagName('d_rozprawy');
$timestamp_str=$timestamp->item(0)->nodeValue;
$timestamp_str=str_replace("+02:00","",$timestamp_str);
$timestamp_str=str_replace("T"," ",$timestamp_str);

print $timestamp_str . "\n <br>";
}
?>
Re: wrong syntax error [message #22928 is a reply to message #22451] Tue, 22 May 2007 11:45 Go to previous message
Alexander Bodnarashik is currently offline Alexander BodnarashikFriend
Messages: 3
Registered: July 2009
Junior Member
wolk@jablko.one.pl пишет:
> when i typing in pdt i have wrong syntax error:
> $tamp_str=$timestamp->item(0)->nodeValue;
> error is between item(0) and nodeValue, but code works fine.
> How i can remove the error?
> Jacek
>
set php5 interpreter for your project (e.g. Project->Properties->PHP Interpreter: check Enable project specific settings, select PHP version PHP 5 or greater)
Previous Topic:status of pdt project + some thoughts
Next Topic:Zend debugger not stopping at brakepoints + bugfix ?
Goto Forum:
  


Current Time: Thu Apr 25 17:38:17 GMT 2024

Powered by FUDForum. Page generated in 0.02856 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top