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
2 views

Responsive google map in zurb foundation 3

I have a dynamic google map generated using the version 3 API on a Zurb Foundation page. The map works perfectly and everything is all good EXCEPT, the map is not responsive. Please note, that I ...
0
votes
0answers
21 views

Cant click in inputs in Firefox

I have a form here http://style-card.co.uk/id/your-results-male/ and for some reason in Firefox I cannot click inside the inputs - works fine in any other browser. Does anyone have any idea what the ...
0
votes
0answers
27 views

Running a for loop after jquery post success

I am posting a list of numeric ids to my php script for deletion $("#delete").click(function(){ var arr = $(':checkbox:checked').closest('tr').map(function(i, e) { return +e.id; }).get(); ...
0
votes
4answers
25 views

can not word with the insert query to insert id using php

i have 2 tables district district_id district_name and village id village _name district_id i want to insert values to the table .. the query work well with insert the value of the village ...
0
votes
0answers
2 views

PDFTK with PHP exec() fails using Amazon EC2 Windows Server IIS7

I'm using PDFTK to merge some PDFs on my Amazon EC2 instance running Windows Server and IIS7. When I try running PDFTK using PHP exec(), it does not work. For example: <?php $e = exec("pdftk"); ...
0
votes
0answers
14 views

iframe navigation using parameter

I have a page called 'mas.php' where i retrieve values from database. An IFrame is present in mas.php page. It is defined as follows: <iframe width="523" height="234" scrolling="No" width="500" ...
0
votes
2answers
15 views

Skip empty GET params in the URL (Laravel 4)

I have a listing with some filters which are applied on form submit, using GET as form method. So after submit, I get a url that looks like: /listing?filter_1=a&filter_2=&filter_3=c Notice ...
1
vote
3answers
28 views

Difference between $this->return and return

I recently came across this code in a Joomla component(Kunena, more precisely), so what is the difference between using $this->return VS simple return statement. I already google the code, but no ...
0
votes
1answer
18 views

how to get file path of thumbnail created by orignal image in the directory

i'm using a function to store thumbnails of the original images which are stored in the directory, now i need to save the file path of that thumbnail in db. How can i get that path of my thumbnails? ...
0
votes
1answer
16 views

I'm getting 404 error in php

I made my php project in windows8 OS. It is running well in WAMP in windows8. I'm using duel boot so I started my ubuntu 12.10 OS. After that I copy pasted same project in /var/www/Day4(My project ...
-4
votes
5answers
32 views

How to check <br /> in testarea with php

In my comment area i have problem about suppose a user enter: hello how are you? out put is: hello how are you? And i want it as user enter: hello how are you? I am using HTMLPurifier and ...
0
votes
0answers
15 views

jQuery .serializeArray() and serialize() is not working sometimes when i am sending the data by Ajax

here is my jquery function which in call onclick .. In this form , i am passing formId and then sending the data paramStr to controller but sometimes its sending paramStr as null values. function ...
-1
votes
1answer
24 views

detect line breaks for text area isnt working with file_get_contents

I am getting contents of a file using following: $ht=@file_get_contents("main.html"); And then set text area as: <textarea>$ht</textarea> Problem is that even if the file contains \n ...
0
votes
4answers
28 views

Changing value of a javascript variable globally

I have a page 1.php and the code goes here(just a clone) <?php include '2.php' ?> <script> function rename(){ var x='renamedvalue'; } </script> <input type="button" ...
0
votes
3answers
40 views

jQuery destroy element not working

I am trying to destroy elements on page load. Here is my jQuery: <script type="text/javascript"> var amount = 0; $('li.<?php echo $username ;?>').each(function() { amount++ ...

1 2 3 4 5 26583
15 30 50 per page