ReferenceError when using Javascript inside PHP's echo

PHP
Here's the code: <nav> <ul id="alphabet" class="pagination"> <li><a href="...
1 year ago

Downloaded a bootstrap template , but cant figure out how to make the button send a form

PHP
So Im a new developer, and had to quickly throw a site together for a friend. I downloaded a bootstrap template and modified everything to my liking. ...
1 year ago

Check if the index exists or not Elasticsearch

PHP
I want to check in elasticsearch if the index exists or not. If it not exists it should create the index and do other functionality. I try to find out...
1 year ago

How to send data to PHP server from android

PHP
Iam new in android, am developing feedback kind of android application where i am storing all data locally using entity class,now i need to send this ...
1 year ago

Read a plain text file with php

PHP
i have a text file with this information in my server: Data1 Data2 Data3 . . . DataN How do i read all the info from the text file (line by line) ...
1 year ago

return the updated value after running the update query in mysql

PHP
Im sorry if the question seems odd and stupid but I need to know if it is possible or what. So I have the following query that updates the status of ...
1 year ago

symfony2 entity validation regexp a-z A-Z 0-9

PHP
Is there a built-in way in symfony2 to validate a string (in my case the username and one other property) against the classic a-z, A-Z and 0-9 rule? ...
1 year ago

Smarty+CodeIgniter Performance

PHP
I am working on a social media project and I want to build it using MVC frameworks in PHP. Right now I know CodeIgniter but don't have extensive exper...
1 year ago

what is the purpose of the extra asterisks in php comments?

PHP
I've (finally) been reading up on PEAR (php) coding standards. What is the purpose of commenting like this: /** * Here is my comment * I Wrote ...
1 year ago

Remove the last character from string

PHP
Possible Duplicate: PHP - Remove last character if it's a period? Which is fastest way to remove last character from string? I have a ...
1 year ago

How to remove capitalization in Twenty Fourteen them in Wordpress

PHP
An ugly thing in the Twenty Fourteen theme of Wordpress is that all titles are capitalized. How can I disable this capitalization? I would prefer tha...
1 year ago

What are PHP nested functions for?

PHP
In JavaScript nested functions are very useful: closures, private methods and what have you.. What are nested PHP functions for? Does anyone use them...
2 years ago

php access array by key value

PHP
I have a JSON array which Im trying to parse with PHP using array_column (PHP 5.5). My objective is to check the value of a particular key in the ar...
2 years ago

convert date into string in json bootstrap calendar

PHP
i have an issue in using bootstrap calendar. the example of event.json.php give me a code like this : "id": "293", "title": "This is warni...
2 years ago

How to include PHP files that require an absolute path?

PHP
I have a directory structure like the following; /script.php /inc/include1.php /inc/include2.php /objects/object1.php /objects/objec...
2 years ago

Password System Not Doing Anything

PHP
The code below is a login system. The username is Administrator and the Password is Password (You can change it later on) what it does now is after th...
2 years ago

Get PHP variable to javascript

PHP
I cant seem to find the answer for this one. I need to grab a PHP variable and insert it into javascript. Here is an example of what I have in the bo...
2 years ago

PHP in javascript file

PHP
in my .js file i have a line. var sidebarWidth = 120; I need the the number above to be dynamic, so i users can change it in admin panel. I have c...
2 years ago

Ruby 3DES implementation vs PHP mcrypt, different results

PHP
I'm trying to migrate some legacy PHP code to ruby, and I've encountered a problem with some 3DES encryption. This is the PHP implementation using mcr...
2 years ago

Error 500 after submitting the form in codeigniter

PHP
I'm a newbie in CodeIgniter, so this question might sound too dumb. Using these MVC, i get Error 500. Any ideas? Controller <?php if (!defined(...
2 years ago