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 (7) | php jobs

0
votes
0answers
6 views

Redirect from observer in Magento

Can i redirect from observer in Magento? admin_session_user_login_success Here I am checking session and if the session is already created then redirect to same page otherwise redirect to home page ...
0
votes
0answers
5 views

File upload in laravel 4

I have coded this in controller and routes file in Laravel 4 and met with the errors like "Call to a member function move() on a non-object" and "Call to a member function ...
-1
votes
3answers
19 views

converting array in two dimension

i have this result as a mysql_fetch_row function which return rows from database... Array ( [firstname] => abc [lastname] => xyz [password] => abc [gender] => female ...
0
votes
3answers
23 views

Passing a value to PHP from jQuery Ajax

I'm trying to get a value back to PHP which I can work with and send to the database. I don't seem to be able to do that using the GET type of jQuery AJAX. Here's the PHP I'm using to catch the value: ...
0
votes
3answers
20 views

Check how many days were passed since the last update in PHP

I am trying to check how many days were passed since the user last entered the system. I get the last time he\she entered from mysql table column (datetime). so I wrote : $user_last_visit = ...
-1
votes
1answer
29 views

How I can get the HTML code of a web page in PHP?

I want to retrieve the HTML code of a link (web page) in PHP. For example, if the link is https://www.google.co.in/?gws_rd=cr#bav=on.2,or.r_qf.&cad=b&fp=1&q=Manu then I want the HTML ...
0
votes
0answers
5 views

Created date getting set to 0000-00-00 00:00:00 with the CTimestampBehavior in yii while updating

I have attached time stamp behavior to my Model as: public function behaviors() { return array( 'CTimestampBehavior' => array( 'class' => 'zii.behaviors.CTimestampBehavior', ...
-3
votes
0answers
24 views

How to Multiply of two arrays [on hold]

I am trying to do multiply the values of two arrays. These are the arrays I have: $p = array(0.04, 0.06); $a = array(500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500);
0
votes
0answers
13 views

PHP htaccess to ngnix

htaccess to ngnix but getting errors i have tryed online tools also but no help http://www.anilcetin.com/convert-apache-htaccess-to-nginx/ and http://winginx.com/htaccess here wt i am doing ...
0
votes
2answers
16 views

fopen() Permission Denied despite having correct file directory

$handle = fopen('/Applications/XAMPP/xamppfiles/htdocs/test/file.txt', 'w'); I tried doing the above and every time I try it, the following statement appeared on my browser: ...
0
votes
0answers
4 views

CakePHP Multiple Applications In Subdirectories

I am trying to accomplish a dynamic CakePHP application portal based on user login. For example, let's say I have the following applications: App 1 App 2 App 3 I want to be able to have the ...
0
votes
0answers
17 views

jQuery Issues with Wordpress

Ive been going over this for several hours and I can't seem to get things to work without including a link to the jquery library right on the page (which doubles what is already in wp_head(). ...
0
votes
0answers
6 views

Get Custom field value from Custom Post Types with a Parent Child Relationship in Wordpress

I have used the Wordpress Types plugin to create two new Custom Post Types. ie. Hotel and Rooms. The Room post type is the child of Hotel. Along with that I have also added some custom fields in both ...
0
votes
0answers
10 views

How to redirect individual blog posts to a new blog system

I am going to use my blogging system and was using Wordpress so far. I want to redirect all the existing posts in the WP blog to the relevant posts in the new blogging system. Please let me know the ...
0
votes
0answers
4 views

Google + api - Origin url is invalid

I have been trying to integrate google+ sigin into my site. So I followed the steps mentioned in https://developers.google.com/+https://waybackassets.bk21.net/signin/ While giving the urls in ClientID settings, when I give ...

1 2 3 4 5 28114
15 30 50 per page