Jump to content

deepPHP

Members
  • Posts

    9
  • Joined

  • Last visited

deepPHP's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Compiling a new PHP extension seems to be complicated as hell.. for using pspell php extension I have to recompile the php code with the command flag --with-pspell. There's two ways of linking/having an extension works. The first one is to linking the extention's dll with the php.ini file and the second way of having an extension works is to recompile the php code with appropriate flags. I've choosed the all ways of having extension works, I get the extension's dll and put it into the php ext folder(which I got this from the phpinfo information - a directory the extensions load from) then uncheck the php extension list within the php.ini file. That doest works. So I've tried old school. Downloaded a php source code(stepping over some article) buildconf --force configure --with-pspell then BAAM an error: There is no information out there that could help me.
  2. I insert big data into database hence those data should be compressed for memory less. I compress those data with base64, gzcompress and serialize the data. but when I want to select all my data records I'm getting decompressing error. I inserted data in that order: base64_encode(gzcompress(serialize($data); I selcet data in the opposite order: base64_decode(gzuncompress(unserialize($data);
  3. Yes, that's it. Moreover I've wrriten jquery ajax code to do the same exact thing above but it failed as well. $.ajax({ type: "GET", url: "ajax.php", data: "keyword=" + keyword, success: function(msg) { $('#results').append(msg); } }); } $(function(){ $('#search').click(function () { var keyword = $('#keywords').val(); sendRequest(keyword); }); });
  4. I'm using AJAX to retrieve a simple text from the server. whenever I send my request to the server using GET HTTP request I got http status of 0. I've read about it, and all says it's same origin policy browser protection that block my request, but my specifed web server page locates on the same folder as the ajax does. sendRequest javascript function: function sendRequest() { var str = ""; str = document.getElementById("keyword").value; req.open('GET', 'ajax.php?keyword='+str, true); req.onreadystatechange = handleResponse; req.send(null); } ajax.php: <?php if(isset($_GET["keyword"])) { $data = $_GET["keyword"]; print $data; } die; ?>
  5. so let me ask another question to understand that, how the web server checks if session is inactive?(time-stamp doesnt could solve that because it depends on exact specific time.. i mean i dont know how, but right after I close my browser all the sessions go away - is it happens in the client-side(browser) or the server-side?) thank you very much!
  6. hi there, A PHP session destroyed when a user is ask for this(logout for instance) and when I closed my browser the session destroy. how the php session know if the browser closed or not and how this process have done. thank
  7. Nevermind, I got it work! I used iconv to convert windows-1255 to utf-8. iconv("windows-1255","UTF-8",$ch); thank you anyway
  8. i'm getting the data in the right way, but the encoding sucks it's messed up all the page's content to unreadable data. do you get me?
  9. hi there, I've tried to read a hebrew web page in diffrent of ways such as CURL, SOCKTES, file_get_content, readfile. i've also tried to add an aproperiate header(content-type: text/html; charset=unicode). i opended a Sniffer program and sent the exactly headers that the browser sends to that specific website and it doesnt work. thank you!
×
×
  • 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.