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

Google Reader Subscriptions With OAuth2

I'm trying to get my subscription list through OAuth2 from Google Reader. I'm using Codeigniter and a library - CI_OPAUTH. I can get the permissions scren with no problems and give Google Reader ...
0
votes
0answers
7 views

PHP Create Query from array, can't pick out both indexes in foreach statement

I am trying to create a query from a form that passes ID and Details fields, the post array looks like this: array(2) { ["ID"]=> array(9) { [0]=> string(3) "10a" [1]=> ...
0
votes
0answers
5 views

session data lost when changing the page

I am begining to php. I test the following php manual example.but it gives errors called "Notice: Undefined index: favcolor in C:\wamp\www\sessions_practice\page2.php on line 8", " Notice: Undefined ...
0
votes
0answers
7 views

JSON parsing and encoding with Danish characters

Using AJAX, jQuery and JSON, I'm adding a feature to a CMS panel allowing the user to select a page to edit from a dropdown menu, and then populating an input field and a textarea with the ...
-5
votes
2answers
25 views

PHP date formatting - Can I use 'Sept' instead of 'Sep'?

I'm trying to create a site with date formatting but I want to use Sept instead of Sep for September, is this possible? Thanks Joe
0
votes
0answers
9 views

cURL with proxy

I am trying to automatically send a form to a website, which is in fact divided in two forms : http://www2.leboncoin.fr/ai/form/0 When you submit the first form, you then have to validate it with the ...
0
votes
3answers
13 views

Type hinting and static methods

When I run this code class Kernel { private $settings = array(); public function handle(Settings $conf) { $this->settings = $conf; return $this; } public ...
0
votes
0answers
6 views

How can I upload mp3 files through php-fpm

I can't upload mp3 files through php-fpm. Nginx returns a 502 error and the log shows the following: *165 recv() failed (104: Connection reset by peer) while reading response header from upstream, ...
0
votes
3answers
10 views

creating a lot of dom elements. which method is faster ? echoing the HTML or using php DOM class?

I need to create about 10k elements when a user visit my site, its sort of a big tree like <ul> and <li>. The process of creating the HTML currently takes about 15 seconds, i create the ...
0
votes
0answers
7 views

Encoding error with mysql_real_escape_string, returns empty string

The scenario: An html-document that's used for editing product details is encoded as ISO-8859-1, and sends POST data to a PHP-file (also encoded ISO-8859-1). That PHP-file in turn has ...
1
vote
2answers
49 views

How to remove all of the formatting from some HTML

I have the following from a website which I am scraping but unfortunately the content also contains some font tags and could possibly contain other inline formatting in the future. I'm using PHPQuery ...
0
votes
1answer
8 views

How to get access token if it expires

i have made an app which helps a user to post photos directly to a fb page from website. the problem i am facing now is that if the access token expires i have to put new access token every time. i ...
-1
votes
0answers
9 views

How to access config data in side Model in Zend Framework2

I need $config = $this->getServiceLocator()->get('Config'); to be accessed inside public function of a Model. How can I do that? $config = $this->getServiceLocator()->get('Config'); do not ...
0
votes
2answers
15 views

Codeigniter reference MY_Controller in form helper

If I have a callback function within MY_Controller that processes a form : class MY_Controller extends CI_Controller{ function login(){ ...
0
votes
2answers
9 views

Can crawlers access 'Deny From All' directories

Hello in my site I have a core folder, in which there is sensitive data, in which I have a htaccess file with 'Deny From All'. My question is can Google or some other crawler access that directory ...

1 2 3 4 5 26821
15 30 50 per page