PHP is an open-source server-side scripting language widely used in web development. Use this tag for questions about PHP classes, methods, functions, syntax and use.

learn more… | top users | synonyms (6) | php jobs

0
votes
0answers
3 views

Symfony2 - What is the best way of creating global text files?

I have something like 300 strings in an array and would like to compare if a given string is one of those 300. For example, my string to compare is "blabla". Then, if this string exist in the array ...
0
votes
0answers
11 views

Refresh Page Without Re-Rendering DOM

This might sound like it's an easy question to answer but please read when my full question is before answering with <?php echo "<meta http-equiv='refresh' content='0;url=./live'>"; ?> or ...
0
votes
0answers
8 views

Laravel 4 Resource Controller NotFoundHttpException

I'm using a resource controller to handle accounts in my website. This is my route : Route::group(['before' => 'auth'], function() { Route::resource('/account', 'AccountController'); }); And ...
-2
votes
1answer
24 views

Handling DATE in PHP - in the format of DD-MON-YYYY [Strictly]

In my project , I have used dates in DD-MON-YYYY format and stored it in the MySql table as data type = "Text" example: 18-JUN-2013 I have used JavaScript date picker to select dates from the ...
0
votes
0answers
4 views

Paypal Recurring Monthly call backs

So I have setup a profile for a monthly subscription (Recurring payments) in Paypal using Paypal pro and recurring services. Now I need to receive a call (Like IPN) for every month recurring payment ...
0
votes
4answers
38 views

Check if message contains bad characters?

I have a array of not allowed characters: $array = ('<php', '<?', '?>', '<h', '<b>'); And I have a string message. How do I check that, that string doesn't contains any of these ...
0
votes
0answers
6 views

Webservice.asmx not receiving parameters with POST/SOAP requests

I am trying to send data to a C# (actually Mono) webservice from a PHP environment. Oddly, the webservice works correctly when I call it with a browser URL (i.e. with the GET method). However, ...
0
votes
0answers
8 views

Update composer from command line

I am currently working with symfony2 and I want to launch to download the libraries I need. I know the command in linux is "$ ./composer.phar update --dev" however when I run this in windows it ...
0
votes
2answers
6 views

Uniform distribution in a small range to generate precise big probability

Currently I'm using a uniform distribution to generate a winning probability. For a probability of let's say 1% I define a winning number 47 then I do a mt_rand(1,100) and if the number is 47 the ...
-1
votes
4answers
19 views

unable to fix mysql_num_rows error message

i tried to count num_rows using the mysql_num_rows funtion, i keep getting an error. my query has no error. what could be the problem <?php if(isset($_POST['search'])){ $search = ...
0
votes
2answers
25 views

Loops - why going infinite?

I wrote some code and it is not working. My browser freezes and it looks like it is an infinite loop. Is it? <? $howmanypages= ceil($num/5); if($howmanypages>1) { $b=1; echo ...
0
votes
1answer
23 views

Duplicated Code in class

I have a problem I have a class which calls another class and its methods via objects. I'm creating and duplicationing the same code to create the object in every method. Is there a way to create the ...
0
votes
3answers
16 views

Submitting form error

The error shown is: Parse error: syntax error, unexpected '"' in C:\Abyss Web Server\htdocs\addemail.php on line 11 Using a basic HTML form, and the following php: <?php $dbc = ...
0
votes
3answers
25 views

jQuery Load Page Error

I'm trying to load a page when a div from my content is loaded , but isn't working. Can you help me and tell me where is my error or why isn't working ? Thanks ! Here's the code index.php ...
-5
votes
1answer
19 views

PHP substract to mysql

I have site and ordering form <form action="aaa.php" method="post"> Name: <input type="text" name="meno"><br> Surname: <input type="text" name="prie"><br> City: ...

1 2 3 4 5 26977
15 30 50 per page