I have a script that lets the user upload text files (PDF or doc) to the server, then the plan is to convert them to raw text. But until the file is converted, it's in its raw format, which makes me worried about viruses and all kinds of nasty things.
Any ideas what I need to do to minimize the risk of these unknown files. How to check...
I'm using a thirdparty credit card processing service (Paybox) that, after a successful transaction, redirects back to the website with a signature in the URL as a security measure to prevent people from manipulating data. It's supposed to prove that the request originated from this service. So my success URL looks something like this:
...
i have an multidimensional array
$ouptput=Array
(
[0] => Array
(
[0] => mov_1
[1] => MY FAIR LADY
)
[1] => Array
(
[1] => mov_10
[2] => love actually
)
)
and two variables
$avlblQnty=50
$su...
i have code like this. which is actually a form .which lets user updates his ratings . once he clicks on update or save . i do a ajax and save his ratings and give him the success message. but how can i refresh this div to show his new ratings and i need to block update / save for this user for next 2 mins .how do i do it ? i use jquer...
Hi every one im new to php im working on sphider search feature im not getting how to index pdf using sphider can ayone one pls help me out in this thanks in advance.
...
I think I'm missing something and don't think I really understand how rewriteBase works.
The problem I have is that I have a production site where the site is in the root directory yet I have my development site in a localhost subdirectory. Eg http://www.sitename.com/ vs http://localhost/sitename/
If I have for example an images folder...
What are the best practices to configure Zend Lucene to make the search results more relevant?
i have the following fields and document type
productname (Text)
description (Text)
category (Keyword)
Please give some sample codes.
...
Please help me understand:
print gettype(new CustomerObject())
prints: "object" (so it is an object)
BUT
print gettype((new CustomerObject())->get_customer());
prints: unexpected T_OBJECT_OPERATOR
If I do it over two lines it works fine
$object = new Customer($order->customer_id);
print gettype($object);
prints: object
$cus...
function rezizecode()
{
$config['image_library'] = 'gd2';
$config['source_image'] = 'system/application/images/manu.jpg';
$config['create_thumb'] = TRUE;
$config['maintain_ratio'] = TRUE;
$config['width']= 25;
$config['height']= 30;
$this->load->library('image_lib', $config);
$this->image_li...
i am working on shopping cart project, i need globalpay integration . i got the sample code and run in my localhost it shows me error this.
Warning: SoapClient::__construct() [function.SoapClient---construct]: SSL: fatal protocol error in C:\wamp\www\exampls\PHP Web Service Sample (Credit Card) 4.0.0\PHP Web Service Sample (Credit Card)...
here is my code
$sql="SELECT * FROM $tbl_name WHERE ownerId='$UserId'";
$result=mysql_query($sql,$link)or die(mysql_error());
$row = mysql_fetch_array($result, MYSQL_ASSOC);
<?php
while($row = mysql_fetch_array($result, MYSQL_ASSOC))
{
...
My fellow friend is building site in flash and he uses xml files to access data in Flash.
I want to build editable cms so that client can edit stuff.
Now i don't' have any experience with XML.
I know php html mysql very well.
SO how can i change those already build xml files using mysql and php.
ANy help??
...
I have created a small search and filter form method post in controller/index, which posts to it self the conditions and fields to paginate ( $this->paginate($conditions) )
However that is good for the first page, the subsequent pages the filer conditions are lost. pagination passArgs supports get variables well.
Is there an un comple...
Does Doctrine 1.2 support importing indexes with Doctrine_Core::generateModelsFromDb() function?
I need to make a migration between 2 database connections, one of them having unique index on 2 fields and one doesn't. And my migration is empty. It looks like Doctrine doesn't support indexes when importing from databae, other than those t...
$_SERVER['REMOTE_USER'] returns the username of the user logged in to an Active Directory. I want to retrive this users info by using ldap_search().
This is what I have now:
$ad = // ldap_connection id
$filter = "(|(sn=$username*)(givenname=$username*))";
$attr = array("displayname", "mail", "mobile", "homephone", "telephonenumber", "s...
Hi,
Want to create a directory on windows from a PHP script.
My script is in www/Test directory of Apache and want to create a folder(fold1) inside www/downloads directory.
Inside the script, using,
$dirName = "../downloads/fold1";
mkdir("{$dirName}");
If we use the full path of dirName like C:\Apache\www\downloads\fold1, it works f...
Hi guys,
Suppose I have a string like this
SOMETHING [1000137c] SOMETHING = John Rogers III [SOMETHING] SOMETHING ELSE
and I need to turn it into this
SOMETHING [1000137c] SOMETHING = John_Rogers_III [SOMETHING] SOMETHING ELSE
Therefor I need to replace spaces with "_" between words after "[1000137c] SOMETHING = " and before " [". ...
How to define regular expression of mathematical expression.please define a common regular expression for
5+4
5-3
5*6
6/2
...
Hello gals/guys,
I am trying to hard code the bottom values into my configure.js file in ckeditor root.
My goal is to hard code all submitted text as black text color and a light blue background.
Values are below. How can I integrate these values into configure.js?
Thanks!
nano
...
Hey guys,
I am using domdocuments and using things like $div->nodeValue to obtain certain info from a web page.
On my ubuntu machine when i do php crawl.php
everything is displayed properly in Chinese (the page is in UTF-8).
However on my CENTOS machine using the same code I get
æ´å¤åå¸ when I print in the terminal.
and when I save i...