Jump to content

xam

Members
  • Posts

    23
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

xam's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. thank u but there are over 300 subdirectorys and 500 files with different extentions.. i dont want write these names myself.. :) its possible to find subdirs + files = changa names only?
  2. hello, I've over 500 files with same names (with same specialtag) under many dirs + subdirectorys example: d:/ftp/directory1/subdirectory/specialtag_filename1.gif d:/ftp/directory2/subdirectory/subdirectory2/specialtag_filename1.psd d:/ftp/directory2/subdirectory2/subdirectory3/specialtag_filename2.jpg how do I change the specialtag front of each file? example: d:/ftp/directory2/subdirectory/subdirectory2/[b]specialtag[/b]_filename1.psd to d:/ftp/directory2/subdirectory/subdirectory2/[b]xam[/b]_filename1.psd or d:/ftp/directory2/subdirectory2/subdirectory3/[b]specialtag[/b]_filename2.jpg to d:/ftp/directory2/subdirectory2/subdirectory3/[b]xam[/b]_filename2.jpg is this possible with php? regards, xam.
  3. xam

    Need help..

    [quote author=Barand link=topic=99045.msg391003#msg391003 date=1151940373] http://uk.php.net/manual/en/language.types.string.php [/quote] Its hard for me ;( my english not enought for this tutorial thats why I wrote here.... ???
  4. xam

    Need help..

    [quote author=Barand link=topic=99045.msg390437#msg390437 date=1151836056] [quote author=Barand link=topic=99045.msg390167#msg390167 date=1151765522] Do you mean this [code=php:0] $lang['Copyright'] = 'Copyright  All Rights Reserved.'; echo  $lang['Copyright']; //-->  Copyright  All Rights Reserved. echo '<br>';     // text in single quotes echo  '$lang[\'Copyright\']'; //-->  $lang['Copyright'];[/code] [/quote] I already have [/quote] I mean: lang-en.php [code=php:0] $lang['protected2'] = 'Copyright '.$MAIN['url'].' All Rights Reserved.'; [/code] Form (to change/edit language text in adminpanel): [code=php:0] echo '<input onClick="highlight(this);" size="200" type="text" name="new_lang[protected2]" value="'.$lang['protected2'].'"><br>'; [/code] Output (to input value): <input onClick="highlight(this);" size="200" type="text" name="new_lang[protected2]" value="Copyright All Rights Reserved."> I want: Output (to input value): <input onClick="highlight(this);" size="200" type="text" name="new_lang[protected2]" value="Copyright '.$MAIN['url'].'  All Rights Reserved.">
  5. xam

    Need help..

    Does anyone help me about that my problem ???? ???
  6. xam

    Need help..

    [quote author=Barand link=topic=99045.msg390167#msg390167 date=1151765522] Do you mean this [code=php:0] $lang['Copyright'] = 'Copyright  All Rights Reserved.'; echo  $lang['Copyright']; //-->  Copyright  All Rights Reserved. echo '<br>';     // text in single quotes echo  '$lang[\'Copyright\']'; //-->  $lang['Copyright'];[/code] [/quote] no, I mean: $lang['leecher'] = 'This page is only avaliable from the '.$MAIN['url'].' site.'; The code: <input onClick="highlight(this);" size="200" type="text" name="new_lang[leecher]" value="'.$lang['leecher'].'"> It shows: <input onClick="highlight(this);" size="200" type="text" name="new_lang[leecher]" value="This page is only avaliable from the  site."> It should be: <input onClick="highlight(this);" size="200" type="text" name="new_lang[leecher]" value="This page is only avaliable from the '.$MAIN['url'].' site."> It must show '.$MAIN['url'].' string as text not a php value/string..
  7. xam

    Need help..

    I need urgent help  ???
  8. xam

    Need help..

    well, I have another question / I need another help.. An example language file content: language.php [code]$lang['Copyright'] = 'Copyright '.$Settings['url'].' All Rights Reserved.';[/code] An example modify script for language file: [code] include_once ('language.php'); echo '<input onClick="highlight(this);" size="200" type="text" name="new_lang[Copyright]" value=" '.$lang['Copyright'].' ">' [/code] It shows: [code]<input onClick="highlight(this);" size="200" type="text" name="new_lang[Copyright]" value="Copyright  All Rights Reserved.">[/code] I want: [code]<input onClick="highlight(this);" size="200" type="text" name="new_lang[Copyright]" value="Copyright '.$lang['Copyright'].'  All Rights Reserved.">[/code] $settings[xxxx] values should be write as text content.. I use htmlspecialchars but It wont help ...
  9. xam

    Need help..

    [quote author=Orio link=topic=99045.msg389894#msg389894 date=1151701226] [url=http://www.php.net/manual/en/function.stripslashes.php]stripslashes()[/url] Orio. [/quote] ok done, thx
  10. Hello, I use below code to change my language files. [code]<?php session_start(); function addslashes2 ($string) { if (!get_magic_quotes_gpc())   return str_replace('\'','\\\'',$string); else   return str_replace('\'','\\\'',stripslashes($string)); } if (isset($_POST['new_lang'])):     $current_lang = $_SESSION['lang'];     $new_lang_file_content = array();     foreach ($_POST['new_lang'] as $key => $value):           $new_lang_file_content[] = '$lang[\''.$key.'\'] = \''. addslashes2($value) .'\';';     endforeach;     $handler = fopen('lang.inc','w');     fwrite($handler,"<?php\n".implode("\n",$new_lang_file_content)."\n?>");     fclose($handler);     Die ('Language file has been updated. Click <a href=javascript:history.go(-1)> here</a> to go back.'); endif; include_once 'lang.inc'; echo $lang['category']; ?> <form method="post"> <input name="new_lang[category]" type="text" value="<?=$lang['category'];?>"> <input type="submit"></form>[/code] It works fine but I need some help about; When I insert a text with php string into input area, e.g. following text: You have been redirected to main page '.$MAIN['mainpage'].' It save it as a text I want to save it as php string, take a look at below example thats what I want.. e.g.: I wrote: You have been redirected to main page '.$MAIN['mainpage'].' It has been saved as (lang.inc): [code]<?php $lang['category'] = 'You have been redirected to main page \'.$MAIN[\'mainpage\'].\' '; ?>[/code] I want: [code] <?php $lang['category'] = 'You have been redirected to main page '.$MAIN['mainpage'].' '; ?>[/code] without slashes..
  11. xam

    What's wrong?

    I've changed sql table from latin to utf8 and now the code works but its case sensItIve now.. how do I ignore it?
  12. xam

    What's wrong?

    Hello everyone, I dont know whats wrong with below sql code.. [!--sql--][div class=\'sqltop\']SQL[/div][div class=\'sqlmain\'][!--sql1--]$keywords [color=orange]=[/color] trim($_GET[[color=red]"keywords"[/color]]); $ekeywords [color=orange]=[/color] sqlesc($keywords); $res [color=orange]=[/color] mysql_query([color=red]"[span style=\'color:blue;font-weight:bold\']SELECT[/color] [color=blue]COUNT[/color](*) [color=green]FROM[/color] [color=orange]posts[/color] [color=green]WHERE[/color] MATCH (body) AGAINST ($ekeywords)"[/span]) [color=blue]or[/color] sqlerr(__FILE__, __LINE__); $arr [color=orange]=[/color] mysql_fetch_row($res); $hits [color=orange]=[/color] 0 [color=orange]+[/color] $arr[0]; if ($hits [color=orange]=[/color][color=orange]=[/color] 0) print([color=red]"[span style=\'color:orange\']<[/color]p[color=orange]>[/color][color=orange]<[/color]b[color=orange]>[/color]Sorry, nothing found![color=orange]<[/color]/b[color=orange]>[/color][color=orange]<[/color]/p[color=orange]>[/color]"[/span]); else { showing search results.... [!--sql2--][/div][!--sql3--] the sql code return with 0 results, it wont work.. Please help..
  13. xam

    'UNION'

    This forum ppl never help beginners at all..
  14. [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]We have 30,227 registered members [/quote] Where ?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.