Jump to content

vijay

Members
  • Posts

    323
  • Joined

  • Last visited

Posts posted by vijay

  1. Hi..First check http://r6vegas.eu.xbox360.gamebattles.com/stats/868.htmand try to see that page weather it's source code lenhth accordingly ur requirement or not..Regards,Vijay

    <?php$contents = '';$handle = fopen("http://r6vegas.eu.xbox360.gamebattles.com/stats/868.htm","r");$Content = fread($handle, 1000 * 1000);$Content = str_replace(" " , "_" , $Content);echo strip_tags(substr($Content, 3000 , 3010 ));?>

    This is supposed to access the site mentioned and then store the code. It is then replaces all spaces with "_" and strips the html tag before searching for a specific character and echoing it. It not working too bad, except for I don't seem to be able to get it to echo any part of the string about about the 2600th character, it just returns black space? Any help would be greatly appreciate, as I have been trying to get this to work for about 2 hours now.

  2. Hi.. First see the folder's owner or file's owner which you have create is same as other.. and if yes then that owner has given permission to change the file mode.. If yes then and then we can go for chmod().. otherwise we have to hosting server people to give permission that owner to write and execute..Reagards,Vijay

  3. Hi.. use following query: Query:select * from `table_name` where field1 is null or field2 is null or field3 is null or field4 is null or field5 is null Regards,Vijay-------------------------------------------------------------------

    Hi,I need ur help to resolve my issue.I'm using Oracle 9i.I've a table with 10 columns. Each column has 10 values (i.e., 10 records completely). In that, 5 columns have some null values. I want to retrieve the column names in which the records have the null values.Pls help me finding the query.Thanq in advance.Bye.
  4. Hi rename("/tmp/tmp_file.txt", "/home/user/login/docs/my_file.txt"); to rename file you have to specify sorce and destination with file name with extension.. now plz look carefully in ur error you will get the tings whats the error Regards,Vijay

  5. Hi..for that first you have to check that whether this file's directory have ful rights or not..?if not then give 777 by chmod or manually.. then try u will get it..Regards,Vijay

  6. Hi..Use this u r not using php5 so..<?php // better, difficult to guess $better_token = substr(md5(uniqid(rand(), true)),0,5); // create a 100*30 image $im = imagecreate(100, 130); // $im = imagecreatefrompng("images/button1.png"); readymade image // white background and blue text $bg = imagecolorallocate($im, 255, 255, 255); $textcolor = imagecolorallocate($im, 0, 0, 255); // write the string at the top left imagestring($im, 10, 0, 0, $better_token, $textcolor); // output the image header("Content-type: image/jpg"); imagejpeg($im);?>Regards.Vijay

  7. Hi.. Use following code suppose that will help you.. if then for readymade image u can also use readymade image.. <?php // better, difficult to guess $better_token = str_split(substr(md5(uniqid(rand(), true)),0,5)); for($i=0;$i<5;$i++) { $random_str.= $better_token[$i]." "; } // create a 100*30 image $im = imagecreate(100, 130); // $im = imagecreatefrompng("images/button1.png"); readymade image // white background and blue text $bg = imagecolorallocate($im, 255, 255, 255); $textcolor = imagecolorallocate($im, 0, 0, 255); // write the string at the top left imagestring($im, 10, 0, 0, $random_str, $textcolor); // output the image header("Content-type: image/jpg"); imagejpeg($im);?> Regards,Vijay----------------------------------------------------------------------------------------------------

    Hey, how can i make a random image? with a random text on? Image dont need to be advanced, just a image with like nothing on but need to have text on it.. or just a number of random pics i make but i need to place tekst on them with php.And they cant be background images :) hehe..any kind of help is great :)->Kristian_C
  8. Hi.. You can use session/ gloabal var for this.. if it reach successfully on thank u page then you have to store some flag on that page that you have to check on previus page.. Regards, Vijay

  9. HiMy question is like this which is proper way and which one is more faster(1)/(2) from following:(1.) Assume that @qry is large and complex using join and typical conditionscreate proc proc_name @qry varchar(8000)as select * into temp from table1 execute (@qry) drop table tempgo(2) Now in this create proc proc_name @param1,@param2,....as declare @qry varchar(8000) select * into temp from table1 -- here I am set query in var @qry set @qry= select * from tablename if(@param1= something) begin set @qry= @qry + 'where some='+@param1+... end ................ ................ ................ .. .. .. drop table tempgoSo Now tell me which one is appropriate/proper and more faster ?Regards,Vijay

  10. HiPlease tell me the difference of following 2 things-->(1) to pass all possible parameter that generate query at SQL Server side and execute it--->(2) OR to build query at web server (in php/cfml file in one string variable) and passed it in to stored procedureRegards,Vijay

  11. HiPlease try with this select Omim_No from av,cs,ti,ti_alt_title,txwhere av.Description LIKE '%LIVER%'and (cs.CS_Description LIKE '%LIVER%' OR cs.CS_DATA LIKE LIVER%')and ti.Omim_Titles LIKE '%LIVER%'and ti_alt_title.Omim_Alt_Titles LIKE '%LIVER%'and tx.Omim_Text LIKE '%LIVER%'suppose this will help uRegardsVijay

  12. AAHHH - Cold Fusion - WELCOME!!!I'm glad to see another person playing with Cold Fusion.application.cfm is the answer to your question.  There is is also a file called onrequestend.cfm that is process like the application.cfm file but at the end of every page.Here is a little bit about how to create your application.cfm page:http://www.edgewebhosting.net/cfdocs/Devel...Framework4.htmlFeel free to let me know if you have any other questions.P.S.  I have inquired with w3schools.com why there isn't any CF tutorials - I've even volunteered to convert existing ASP and PHP tutorials to CF  - but reply as of yet.

    Thanx Dear :)
  13. Hi, :) I am working on ColdFusion,As any of the ASP page is requested from the client's browser, the request of the ASP page reaches the IIS. The file which plays the active role in compilation of ASP page is GLOBAL.ASA. This file compiles the ASP page on the server and generates it's eqvivalent HTML code and thorws to the clien't browser.Which file is responsible for compilation of any ColdFusion file?

×
×
  • Create New...