Jump to content

kucing

Members
  • Posts

    54
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

kucing's Achievements

Member

Member (2/5)

0

Reputation

  1. I was wondering if doing this way.. is this way is safe? like if a hacker got to know about my sessionid and takeover my session?
  2. Thanks for your reply.. well.. how i m going to overwrite the new session with the session stored in cookie? Appreciate your help.
  3. when i try to open a new window using javascript window.open function. sometime the new window opens with new session. So I need some help here to pass the whole session to new window using the session_id function. Any work around? Thanks
  4. It worked prefectly. Thank you all
  5. Thanks all for your time and concern. Well.. I am still getting the same result as if using file_get_contents function. What if we change the first line <?php to ?php while getting the data from the file or rename the file to .txt ext before getting the content? any easy way to do that? Thanks
  6. Hello there, I want a function or a command which let me read a php file but should not run it while reading. like example. I have a file name read.php read.php <?php echo ("hello"); ?> When I get the content of this file using file_get_contents which first run the file and then I get the content of the file I only want to have the content of this file without running this file. Thanks.
  7. How about this one? $string = 'Link : http://link.com Description : Some information Here!!'; preg_match('/Link : (.*?)\s.*/is', $string, $matches1); print_r($matches1); preg_match('/Description : (.*?)\s.*/is', $string, $matches2); print_r($matches2);
  8. Thanks for the reply Tehelo.. Actually I have even tried that way but it still doesn't work. So I was thinking if there is any other way to do that using other function than preg_match?
  9. Hello all, I am trying to match something in my array with php file but it doesn't work. Here is the example: Any help will be very appreciated.. Thanks.
  10. effigy thanks for the reply. Actually the data coming is kinda dynamic. so i was thinking if i can get a way to make it auto detect and arrange something like http://us3.php.net/manual/en/function.xml-parse.php the last example.
  11. Hi there, Here is the xmy data which I want to convert into array any help will be very appreciated. <userinfo> <user>test</user> <age>24</age> <country>japan</country> <city>heaven</city> </userinfo> into Array ( [0] => Array ( [0] => user="test" [1] => age="24" [2] => country="japan" [3] => city="heaven" ) [1] => Array ( [0] => user [1] => age [2] => country [3] => city ) [2] => Array ( [0] => test [1] => 24 [2] => japan [3] => heaven ) ) Thanks
  12. Here is my question which is bothering me! I have dynamic data from html pages which i have to match and replace with new data Which could be <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="425" valign="top" align="left">test<td> </tr> or <table width="50" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="20" align="right">test</td> <td width="20" align="right">test</td> </tr> or <table width="500" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="200" align="right">test<td> </tr> or <table width="500" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="200" align="right">test<td> </tr> or if ($a==1) print_r($a); else print_r("test"); $a++; or if ($a==1){ print_r($a); /////////example } else{ print_r("test"); /////////example } $a++; Sorry for the long examples, well now I would appreciate if someone can help me with this. Thanks
  13. Hello Guys, I'm looking for a way/tool to generate a thumbnail of a website on the server. I know there are hundreds of tools that let you capture screenshots manually, but because I have to thumbnail a few hundred website, I'd need a solution that works directly on the server. Ideally I would just type in a URL and it would come up with the screenshot or even save it on the server... I've searched a few forums and there a few people came up with the idea of installing a browser on a server and using some kind of perl code to capture the screenshot. Unfortunately we don't have our own server yet and would rely on a software/script that can be installed on a "standard" webspace. Does anyone have any good ideas how to solve this problem? Thanks a lot, K
  14. Try this way.. $filename = "path/to/file"; $data = file($filename); function fileToArray($data) { $words = explode(' ',$data); foreach ($words as $word) { $outputArray[]=$word; } print_r($outputArray); } fileToArray($data); Not tested yet but seems to be working in my mind.. lol
×
×
  • 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.