+ Başlığa Yanıt Yaz
8 sonuçtan 1 - 5 arası sonuçlar
-
19.08.2006 12:54 #1
- Katılım Tarihi
- 2005
- Mesaj
- 88
Parse error: syntax error, unexpected $end
Merhaba,
sql veritabanı olmadan bir alışveriş sitesi buldum fakat admin girişi yapıp ürün eklemeye çalıştığımda aşağıdaki hatayı alıyorum.
Parse error: syntax error, unexpected $end in /usr/hosts/domains/nesil/www.nesil.net/httpdocs/java/core/products-admin.php on line 1
products-admin.php dosyasının içeriği şu şekildedir.
Buradaki düzeltilmesi gereken nedir bilen varmı.Kod:<?php if( !function_exists( 'saveProduct' ) ){ /** * Save product * @return void * @param array $aForm */ function saveProduct( $aForm ){ if( is_numeric( $aForm['iProduct'] ) ){ if( isset( $aForm['aFileDescriptionChange'] ) && is_array( $aForm['aFileDescriptionChange'] ) ){ foreach( $aForm['aFileDescriptionChange'] as $iKey => $sValue ){ dbChangeFileDescription( Array( $iKey, $aForm['iProduct'], $aForm['aFileNameChange'][$iKey], changeTxt( ereg_replace( '\'', '', $sValue ) ), $aForm['aFileType'][$iKey] ), 1 ); } // end foreach } $bExist = true; } else{ $bExist = null; $aForm['iProduct'] = throwLastId( ) + 1; } if( !isset( $aForm['iPosition'] ) || !is_numeric( $aForm['iPosition'] ) || $aForm['iPosition'] < -99 || $aForm['iPosition'] > 999 ) $aForm['iPosition'] = 0; $aForm['sDescriptionShort'] = changeTxt( $aForm['sDescriptionShort'], 'Nds' ); $aForm['sDescriptionFull'] = changeTxt( $aForm['sDescriptionFull'], 'Nds' ); $aForm['sName'] = changeTxt( $aForm['sName'] ); $aForm['fPrice'] = ereg_replace( ',', '.', $aForm['fPrice'] ); $aForm['fPrice'] = tPrice( $aForm['fPrice'] ); if( isset( $aForm['aDelFile'] ) && is_array( $aForm['aDelFile'] ) ){ $iCount = count( $aForm['aDelFile'] ); for( $i = 0; $i < $iCount; $i++ ) delFile( $aForm['aDelFile'][$i], 1 ); } if( isset( $aForm['aCategories'] ) && is_array( $aForm['aCategories'] ) ){ $bErase = true; $iCount = count( $aForm['aCategories'] ); for( $i = 0; $i < $iCount; $i++ ){ if( is_numeric( $aForm['aCategories'][$i] ) ){ dbAddCategoriesProduct( $aForm['aCategories'][$i], $aForm['iProduct'], $bErase ); $bErase = null; } } // end for } addFiles( $aForm, $aForm['iProduct'], PRODUCTS_PHOTO_SIZE, 1 ); dbAddProductExtensions( Array( $aForm['iProduct'], $aForm['sDescriptionFull'] ) ); dbSaveProduct( $aForm, $bExist ); } // end function saveProduct } if( !function_exists( 'delProduct' ) ){ /** * Delete product * @return void * @param int $iProduct */ function delProduct( $iProduct ){ delFiles( $iProduct, 1 ); dbDelProduct( $iProduct ); } // end function delProduct } ?>
Teşekkür ederim kolay gelsin
-
21.08.2006 10:18 #2
bu dosyayı zend studio'da syntax taramasından geçirdim söylediğin hatayı vermedi..buraya yapıştırdığın kod ile kullanmak da olduğun kodların aynı olduğundan emin misin..en başta buraya yazmadığın bir include falan var mıydı acaba?
-
21.08.2006 11:03 #3
database olmadan urunleri nerde tutmayi duusnuyosun o zaman php gerek yok html ile yapabilirsin ayni seyi o script e sorun var sanirim
-
21.08.2006 11:09 #4
arkadaşın veri tabanı yok dediği..ürünler metin dosyalarında tutulduğundan..zaten kodlara bakarsan bu şekilde çalıştığını anlarsın..hep dosya fonksiyonları
-
21.08.2006 13:40 #5
- Katılım Tarihi
- 2005
- Mesaj
- 88
evet canbulanın dediği gibi metin dosyasında ürünler. fakat bu hatayı veriyor başka hiç bir şey yok sadece bu kadar.
Benzer Başlıklar
-
php / parse error
fonemi tarafından Web ve Grafik Tasarımı forumundaYanıt: 3Son Mesaj: 28.01.2010, 20:02 -
cpu fan error?
dizmana tarafından Donanım forumundaYanıt: 4Son Mesaj: 17.06.2006, 11:34 -
Error Z0001:internal error
utaci tarafından Yazılım forumundaYanıt: 9Son Mesaj: 20.05.2005, 22:29 -
CPU fan error!
Afsheen tarafından Donanım forumundaYanıt: 8Son Mesaj: 08.02.2005, 22:20 -
I/O error
Kardelen tarafından Linux forumundaYanıt: 1Son Mesaj: 06.08.2003, 07:47



Alıntıyla Yanıtla

avea jet modem hk.
Bugün, 11:40 / Mobil Aygıtlar