I have a basic html form that adds some data to the page using PHP. I want to make this form field a "Price" field. My html is:
<input class="bids" name="comment" id="comment" tabindex="4" />
How can I fix this field so that users can't enter random letters, dollar signs, dashes, or other weird formats. I want the output to be wh...
What is the difference between these code snippets?
1)
$f = 12.044545;
printf("%f",$f);
vprintf("%f",$f);
2)
echo("echo");
print("print");
Thanks,
...
Hi,
This is the preg_match i am trying to use to find specific text in text file.
if (preg_match($regexp,$textFile,$result) > 0) {
echo "Found ".$result[0];
} else {
echo "Not found";
}
However, the result is always Found and nothing more. The result array is empty. Now i read that preg_match can't work with long strings.
My...
How would I intercept all pages and images on my website to add the header on my website?
For example, if somebody went to "www.bla.com/submit.png" it would include my header, and the image.
...
How to create thumbnail images with white 3px border using PHP? any body have the scripts please help me :(
...
What is the difference in using $HTTP_POST_VARS['field'] and $_POST['field']?
what makes the difference?
...
I'm trying to connect to the next webservice:
https://grab.beta.agiv.be/Tools/CRABTools.svc?wsdl
I also have to add a header element which I have already created
Can i call it just using php soapclient or zend_soap_client? Or do I have to use nusoap_client?
I try something like:
$soapclient = new nusoap_client($wsdl);
$header = ""; /...
Since there are some major privacy issues with alot of social networking sites I am trying to think about alternatives. One is to let the user keep all the information stored in some kind of file container. Now, I haven't found a single type of container that can hold "generic" information. Only for audio/video. What I want is a containe...
Hi, I've got two scripts: 1.php and 2.php. Here they are:
1.php
<?php
header('Pragma: no-cache');
header('Cache-Control: max-age=1; no-cache');
header('Expires: Tue, 1 May 1985 01:10:00 GMT');
header('ETag: "'.md5(rand(1, 1000)).'"');
print date('H:i:s');
?>
<a href="2.php">pay</a>
2.php
<a href="javascript:history.back()">back</a...
Hi
i am in need of curving a text and place it over another image. i got the below mentioned code from their website and its not working; somebody please tell me how can i do this in php. My system will support imagemagick and its enabled..
convert ( newmug1.jpg -thumbnail 200x200 -write mpr:image +delete ) \
( -pointsize 20 -fill red ...
how to manage a process php file??
i want every form which connected to database just use one php file..how to separate every command inside that php file??can i do that?
...
I have 4 mysql tables and have a single query with JOIN on multiple tables and I am requesting it via jquery ajax, but it takes much too long, from about 1-3 minutes while I want to execute them on average 2-5 seconds.
Is there any special way to execute the queries fast?
...
Does anyone know how to write the following PHP in ASP.NET(VB.NET)?
foreach ($_GET['listItem'] as $position => $item) :
$sql[] = "UPDATE `table` SET `position` = $position WHERE `id` = $item";
endforeach;
The data in $_GET['listItem'] looks like this:
item[]=1&item[]=2&item[]=3
...
When I'm trying to connect to a webservice I always get the next fault
SoapFault exception: [s:Sender] An error occurred when verifying security for the message
I also have to use a security header, full soap request is send:
<env:Envelope>
<env:Header>
<ns2:Action env:mustUnderstand="1">
http://ws.agiv.be/crabtools/ICRABTools/GetAddr...
i have a mySQL table which the data in one of its columns is in a language other than English.(Persian)
when i input data in the table , it is shown properly but when i want to show the data in a php file it displays like this:????
well,what should i do in order to show the data in its correct form?
...
SO i am in the process of setting up a load balanced configuration for our web application with nginx. I would most probably go with sticky sessions to avoid session issues on the load balanced setup or maybe even go with a database session handler.
However there are 2 concerns that i have right now:
1 : When deploying from SVN ( we us...
Hello,
My PHP script contains a loop, which does nothing much more than echoing and dereferencing pointers (like in $tab[$othertab[$i]]-> stuff).
It was working great until yesterday, when this script starting being VERY slow (like 50 times slower than before).
After using strace, i figured out that 90% of the time, the script does m...
Hi guys,
I have a database with date field is this format "2010.06.11. | 10:26 13"
What is need is a php array that would hold all the different dates, .i.e.
array[0] = "2010.06.09."
array[1] = "2010.06.10."
array[2] = "2010.06.11."
Currently I am doing it by selecting the whole table, then looping through the result and adding the ...
Hi all,
How can I save to my mysql db an array from flash? I pass the array as a parameter to a php script. What I have to do next?
...
Hi,
I'm building a web application, and I need to use an architecture that allows me to run it on two servers.
The application scrapes information from other sites periodically, and on input from the end user. To do this I'm using Php+curl to scrape the information, Php or python to parse it and store the results in a MySQLDB.
Then...