Which is best serach technique to search records
I have 10,000,000 records which will be the best technique to search records, currently i m using full text search but it is slow,please suggest. ...
I have 10,000,000 records which will be the best technique to search records, currently i m using full text search but it is slow,please suggest. ...
A customer is asking me to build a module for his running webapp that can load docx files and extract data based on the Headings found in the document. I know docx is just a zip file and most of what I need can be found in word/document.xml, though I'm not looking forward to parsing lists/styles/images/tables and whatever other things th...
Hello guys, The quick question: is there a pure PHP library that can extract a frame from the video to use as the thumbnail? I guess the answer is "no" but let me know if I am wrong :-) ffmpeg wrappers will not go, since I want this feature to work on most hostings without special PHP modules or binaries to launch. There might also be ...
my project on the remote server stopped working after i did the following 1> install putty 2> connect to the remote server using FTP details 3> then in the root server installed pear using $ sudo apt-get install php-pear 4> then i changed the path in php.ini now the server has stopped working ... why? what happened? HELP!! ...
I have this script that displays a max of 5 images for each row, but for some reason my <ul> tag won't close correctly if the number of items isn't an exact multiple of 5. How can I correct this problem so the <ul> tag will close even if the number of listed images is less then 5? Here is my PHP code. if (!$dbc) { print mysqli_erro...
Im not sure that it is the right way but I use this functions for inputs . for example a contact form: RemoveXSS(mysql_real_escape_string($_POST['input'])) But with scanning, there is this result: Parameter Name: Query Based Parameter Type: FullQueryString Attack Pattern: /"ns="alert(0x00058B) I cant see anything in page when cl...
How do I set a character limit on the_content() and the_excerpt() in wordpress? I have only found solutions for the word limit - I want to be able to set an exact amount characters of outputted. ...
Hello All, i m learning OOPS with JOOMLA... here sometimes i found difficulties to find the method used in some class... is there any way to find that this function is declared on this class or useful information about that function?? for exmaple class testModeltest extends JModel { function modifyCategory($data = arr...
Hello Im going to do an Email class for sending emails in my MVC framework. I also have a login class that just checks if the user is in the database. Should I put those classes in the library folder or should I implement them as models? I tried to do search but couldnt find straight answer.. ...
Sorry to ask, its late and I can't figure a way to do it... anyone can help? $users = array( array( "name" => "John", "age" => "20" ), array( "name" => "Betty", "age" => "22" ) ); $room = array( "furniture" => array("table","bed","chair"), "objects" => array("tv","radio","bo...
Hi All, In my code, I have included some files for use. When I specify the absolute path, I get a "Forbidden" message. However, when I use the relative path, the code works. I wonder why the absolute path was not being accepted. Can someone explain what is going on? Thanks in advance! ...
I am currently trying to perform pagination using CakePHP's pagination helper. I have a series of "Listing" rows that are returned and paginated as expected. When the user clicks on the column headings however, I'd like the sort() method to be forced to prioritise certain listings (i.e. priority listings, those with ['Listing']['priori...
I was coding few php pages to display customer quotations, on rep.php, user can click view details button (POST quoteID as the variable to quotedetails.php?quoteID=Q123456) to view the detailed info about a particular quote. Then I use .htaccess to make all php pages to html extention and rewrited url from 'quotedetails.php?quoteID=Q12...
Hi, really quick question does php 5 still support include_once because I am getting some unusual characters "..." when I use include_once but not when I use include ...
I am using a ffmpeg command to cut a video with exec function in php. But it is not creating a video file and doesn't show any errors. I used exec as below exec("ffmpeg -i input.flv -ss 00:00:30.0 -t 00:00:10.0 -acodec copy -vcodec copy -async 1 output.flv"); Can I get any help to know what is the error happening here. exec("ffmpeg -i...
hi, i'm exporting data from my database into an excel file using php and pear extension libraries. it works fine when i download small quantity of data. but if the data is large then the excel sheet gets corrupted, (usually all url gets written in the same cell) the data i'm exporting is of type string, url or date. why is the excel she...
for example, we have this xml: <p>[TAG] <span>foo 1</span> <span>foo 2</span> [/TAG] <span>bar 1</span> <span>bar 2</span> </p> how can i detect <span>-tags between words [TAG] and [/TAG] ("foo 1" and "foo 2" in this case)? UPD. for example i need to change nodeValue of each span between [TAG] and [/TAG] ...
Hi friends, I'm a drupal newbie... Is there any way to list in my custom-node.tpl.php what fields are available to use for my current node? for example, at View, when I write print var_export($data,TRUE); to php customfield, it gives me a list of available fields. is there any equality func. for using in any node.tpl.php? Appreca...
I have one of my pages redirect to a page called customproofs.php. When it redirects to that page, the following Warning message appears: Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a...
Hi Everyone, Recently, while working on a shared host, I accidentally changed the permissions of my root website directory to 777. The correct permissions should have been 755. Instantly, I started getting the "Internal Server Error" message for my pages. I figured that the Apache server wanted to stop requests because of a security t...