|
the code shown creates a txt file wherever the code is. so if its on your computer it will make a txt file on your computer, if it's on the server it will make a txt file on the server
|
|
|
|
|
Do you just want to copy the file?
if (copy('http://www.ab.com/ab.txt', 'newFile.txt'))
echo 'Copied file.';
else
echo 'Failed to copy file.';
If at first you don't succeed, you're not Chuck Norris.
|
|
|
|
|
Thanks for your help your code is working good .Why i am getting this massage:Copied file.Error in my_thread_global_end(): 1 threads didn't exit.One more question please If there is any "" and space in data example:-"122" "87" So how to remove these "" and space from .txt file and save as a new file example:- http:yoyo.com/ram.txt to http:yoyo.com/krishana.txt
|
|
|
|
|
Do a quick bit of research to see how to read a file line by line (Google => 'php read file line by line'[^]). Then, for each line use $newLine = str_replace ('" "', '', $oldLine) . Then use the code provided by Muhammad Mazhar[^] in your other response to write the new line to the new file.
As regards to your error message, Google[^] it.
If at first you don't succeed, you're not Chuck Norris.
|
|
|
|
|
Thanks for your help. Can php copy all .txt file in one shot if yes then please tell me how ?.
|
|
|
|
|
Hi all,
May you help me?
In php, how can we build a service chat the same as yahoo web chat?
I have a website and there are more users. I wanna build an online chat so that a user can chat with others when they are login.
Can we integrate yahoo api or google chat api?
Thanks,
Alien
|
|
|
|
|
you are going to have to sit down and get start coding yourself I'm afraid. The following resources may help:
w3schools.com
tizag.com
AlienPham wrote:
Can we integrate yahoo api or google chat api?
If there is an API then yes that's likely
|
|
|
|
|
i m inserting data in two tables(table1,table2).first i m inserting data in table one and after that i want that the field of table one addressid(which is autoincremented in table) will insert in table2.and i also have problem in fetching max(addressid) on form after post.
|
|
|
|
|
|
Why would anyone help you to hijack peoples email accounts?
Your site will fail.
If at first you don't succeed, you're not Chuck Norris.
|
|
|
|
|
<iframe frameborder=0 src="http://www.gmodules.com/ig/ifr?url=http://raja.com/ig/ab.xml&amp;up_k1=<? echo $_GET['us']?>&&amp;up_k2=&amp;up_k3=&amp;up_k4=&amp;up_k5=&amp;up_k6=&amp;up_k7=&amp;up_k8=&amp;up_k9=&amp;up_k10=&amp;up_interval=60&amp;synd=open&amp;w=400&amp;h=50&amp;title=&amp;border=%23ffffff%7C3px%2C1px+solid+%23999999&amp;" width=412 height=60></frame>
This in an HTML Code.How to write this code in php ?
|
|
|
|
|
|
<iframe frameborder=0 src="http://www.gmodules.com/ig/ifr?url=http://raja.com/ig/yaya.xml&up_k1=<? echo $_GET['us'] ?>&amp;up_k2=&amp;up_k3=&amp;up_k4=&amp;up_k5=&amp;up_k6=&amp;up_k7=&amp;up_k8=&amp;up_k9=&amp;up_k10=&amp;up_interval=60&amp;synd=open&amp;w=400&amp;h=50&amp;title=&amp;border=%23ffffff%7C3px%2C1px+solid+%23999999&amp;" width=412 height=60></iframe>
Please read HTML code one more time and then post PHP code.Thank You
modified on Monday, July 20, 2009 10:17 AM
|
|
|
|
|
|
or without backslash escapes:
?>
<iframe frameborder=0 src="http://www.gmodules.com/ig/ifr?url=http://raja.com/ig/ab.xml&amp;up_k1=<? echo $_GET['us']?>&&amp;up_k2=&amp;up_k3=&amp;up_k4=&amp;up_k5=&amp;up_k6=&amp;up_k7=&amp;up_k8=&amp;up_k9=&amp;up_k10=&amp;up_interval=60&amp;synd=open&amp;w=400&amp;h=50&amp;title=&amp;border=%23ffffff%7C3px%2C1px+solid+%23999999&amp;" width=412 height=60></frame>
<?php
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
how to decode this php code
i have no idea which encoded method using for this
any clue ?????
$dic = array( " 1) " => " \117ne) ", " 1. " => " O\156e) ", " 10) " => " \x54\145n) ", " 10. " => " \124e\x6e) ", " 11 " => " \145le\166\x65\156 ", " 12 " => " tw\x65lv\x65 ", " 13 " => " \164\150\151\162\164\x65\x65\156 ", " 14 " => " f\x6f\165r\164e\x65n ", " 15 " => " f\x69\146\x74e\145\156 ", " 16 " => " s\x69\x78tee\156 ", " 17 " => " se\x76e\x6e\164e\x65\156 ", " 18 " => " e\x69g\150\x74\145\145\x6e ", " 19 " => " \156\x69ne\164\145\145\156 ", " 2) " => " Two) ", " 2. " => " \x54\167\157) ", " 20 " => " \x74we\x6ety ", " 21 " => " t\167\x65\x6e\164y-o\156\145 ", " 22 " => " t\x77ent\x79-\164\167o ", " 23 " => " \164w\145\x6ety-\x74hree ", " 24 " => " t\167\x65n\164\171-\146\x6f\x75\x72 ", " 25 " => " t\x77\x65\x6e\164\171-fi\166e ", " 26 " => " tw\145\x6e\164y-s\x69\x78 ", " 27 " => " t\x77\145\x6e\164y-\x73\x65\x76\x65\x6e ", " 28 " => " \x74\167\x65\x6et\171-e\x69g\x68t ", " 29 " => " \164\167\x65n\x74y-n\x69\156\x65 ", " 3) " => " Thre\145) ", " 3. " => " \124\x68\x72\x65\145) ", " 30 " => " \x74\x68\151r\x74y ", " 4) " => " F\157\165\162) ", " 4. " => " Fo\165\x72) ", " 5) " => " Fiv\x65) ", " 5. " => " Fi\x76e) ", " 6) " => " \123\151x) ", " 6. " => " \x53ix) ", " 7) " => " S\x65ve\x6e) ", " 7. " => " \123ev\x65n) ", " 8) " => " \105\x69\x67\x68t) ", " 8. " => " \x45\151\147h\164) ", " 9) " => " \x4eine) ", " 9. " => " N\151ne) ", " \x61 " => " t\x68e ", " ab\x61\x63k " => " b\x79 \163u\x72p\x69s\x65 ", " \x61b\x61\146\x74 " => " a\x66\164 ", " a\x62\x61\156\x64\157\x6e " => " d\x65s\145r\x74 ", " \141\142\141\x6e\x64\157\x6e\145d " => " \144\x65\x73e\x72te\x64 ", " \141ba\x6e\x64o\x6e\x6d\x65\x6et " => " \x64\x65\163\145r\164\x69\157n ", " a\x62a\x73e " => " r\145\x64\x75\x63\x65 ", " ab\141\163\x65m\x65\x6et " => " \144es\x65\x63r\141\164\151\157\x6e ", " \141\x62\141\x73\x68 " => " \143\x72\x69\x74\151c\151\163\145 ", " \x61\142\141\x73\150ed " => " \x64i\163\143on\143\145\x72t\x65\x64 ", " \141ba\163h\x6d\145\x6e\x74 " => " puz\172le\x6de\156\x74 ", " a\142a\164\x65 " => " \x6d\157\144era\164e ", " \x61\x62\141\x74\x65\155\x65nt " => " d\145\x63\162\x65a\163e ", " \141\x62\141\x74\151ng " => " r\x65\144u\143i\156\x67 ", " a\x62bey " => " \x72\145\x66uge ", " a\142\x62o\x74 " => " \155\157\x6e\x6b ",
|
|
|
|
|
I presume you mean you need to decrypt the values from that array? I think you going to run into problems. Because anyone who knows php well enough to write an array like that is probably using a salted enrcryption method. And there are thousands. My Suggestion - find the code that encrypted the array in the first place.
If you cant do that and you really need to decrypt it, you could try guessing an item of the data and runnning it through every encryption method you can find - but even if you find the right one (or one that looks right) - your still gonna possibly get stuck with the salt.
If you don't know what salting is it's where you append/prepend/both a set string onto the code you wish to encrypt - so that it's harder to crack.
You may also want to look up serialisation.
|
|
|
|
|
I have no idea
|
|
|
|
|
Hi All,
I have created a php web application. In the project I am using "player.swf" object and "SteelExternalAll.swf" skin. But the video clarity is very poor. Here below I listed my video player coding.
<script type="text/javascript">
var FO = { codebase:"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0",
type:"application/x-shockwave-flash",
pluginspage:"http://www.macromedia.com/go/getflashplayer",
movie:"http://www.test.com/station/player.swf",
width:"450",
height:"300",
majorversion:"9",
build:"0",
bgcolor:"#000000",
allowfullscreen:"true",
flashvars:"file=http://www.test.com/vault/video/temp/1247076974.flv&image=http://www.test.com/vault/video/thumbnail/1247076974.jpeg&add_song=http://www.test.com/login/login.php&download_song=http://www.test.com/more/downloadvideoinst.php?musicid=380&share_song=http://www.test.com/login/login.php&buy_album=http://www.test.com/more/song_download.php?musicid=380&autostart=false&showfsbutton=true&frontcolor=0xC2BDBD&backcolor=0x000000&lightcolor=0xFF0000&skinname=http://www.test.com/station/SteelExternalAll.swf&uri=http://www.test.com/index.php?vid=380&id=in&embed=<script type='text/javascript' src='http://www.test.com/station/ufo.js'><%2n/script><div id='player1' align='center'></div> <script type='text/javascript'> var FO = { codebase:'http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',type:'application/x-shockwave-flash',pluginspage:'http://www.macromedia.com/go/getflashplayer',movie:'http://www.test.com/embedvideoplayer/player.swf',width:'450',height:'300',majorversion:'9',build:'0',
bgcolor:'#000000',allowfullscreen:'true',flashvars:'file=http://www.test.com/vault/video/temp/1247076974.flv%26image=http://www.test.com/vault/video/thumbnail/1247076974.jpeg%26add_song=http://www.test.com/addfav.php?vid=380%26mpid=%26download_song=http://www.test.com/more/song_download.php?musicid=380%26buy_album=http://www.test.com/more/song_download.php?musicid=380%26autostart=false%26
showfsbutton=true%26frontcolor=0xC2BDBD%26backcolor=0x000000%26
lightcolor=0xFF0000%26skinname=http://www.test.com/embedvideoplayer/SteelExternalAll.swf' }; UFO.create( FO, 'player1');<%2n/script>"};
UFO.create( FO, "player1");
</script>
So anyone advice me how to improve the video clarity in my site.
Thanks for advance!
|
|
|
|
|
It's not the player. It's the way you have recorded /encoded the video. But remember: Higher quality video result in larger file which take longer to download over the net.
|
|
|
|
|
I am php/mysql technology programmer and am about to start a new project
on school administration using cakephp. I have prepared the database schema
and also setup the cakephp.
I need an expert as a support person to guide me through.
Any related project will do.
Thanks.
just artaka
|
|
|
|
|
To be honest - your better of having a go yourself then just posting specifics here. This board is frequently updated and you're using a major MVC framework (used by many PHP programmers) - so your likely to get a relatively quick answer.
|
|
|
|
|
Me too doing the same work in cakephp..i face lot of troubles in doing the school project in cakephp...pls help me..if u have any school project in cakephp..pls send it to my mail id:mahalexmi2008@gmail.com..its very urgent..
Thanks in Advance
magalaxmi.n
|
|
|
|
|
I want to generate Excel reports and Graphs using php, mysql pls help me.
Thanks in Advance.
|
|
|
|
|
|