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

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

0
votes
0answers
11 views

Monitor a PHP variable for change in value

I am actually trying to monitor a PHP variable (may be as a separate thread but not possible in PHP) and fire a PHP function whenever the value of the variable changes. eg: lets take a variable ...
0
votes
2answers
17 views

PHP matching a string with a loop?

I am trying to work some magic, and match a string. Not using default matching but something like this: <?php $string = 'data:1,2,3,4,5;data:4,6,8,2,3'; // magic foreach($matches as $match){ ...
0
votes
1answer
13 views

echoing image from database is showing bunch of characters

image from database is put in an array then saved in $_SESSION header to new page but when echoed out its showing bunch of characters lines and lines of it... while($row = ...
0
votes
1answer
17 views

PHP Division with exponents

After some searching on the internet I'm yet to find the resource I need...I have, what I think, is a very simple question regarding math functions within PHP. I'm computating an ELO function (for ...
0
votes
0answers
10 views

Redirect users to mobile view of MediaWiki wiki

I'm currently stuck figuring out how to redirect users on certain devices to the mobile version of my MediaWiki installation. The built-in link (provided by the MobileFrontend extension) used to ...
0
votes
0answers
4 views

phpfcgi.plist not runing by load, not runing by reboot neither

I have loaded phpcgi.plist but php-fastcgi is not runing. The plist file is: Michaels-MacBook-Pro:~ michael$ ll com* -rwxr--r-- 1 michael admin 664 4 7 13:40 com.phpfcgi.plist* The plist ...
0
votes
0answers
6 views

CasperJS/PhantomJS much slower than Curl

When I tried curl www.google.com it takes 1.1 secs. However retrieving the page using CasperJS takes over a minute! Is this normal? How do I find out what's slowing casper/phantom down? I am ...
1
vote
2answers
17 views

PHP log files timezone

I am playing with the FengOffice project, and i am a beginner with PHP. I would like to change the logs from GMT to HongKong time. But even i set [Date] date.timezone = "Asia/Hong_Kong" or [Date] ...
0
votes
1answer
17 views

Setting a default page for a dynamic changing content website

Forgive me as I am still kinda new at web development. :) Normally when I create my websites I create a file called header.html and footer.html and just include this files into my webpages to be ...
0
votes
0answers
5 views

simple HTML DOM parser return wrong elements tree

I am having problem with HTML DOM parser. This is what I used: $url = 'http://topmmanews.com/2013/04/06/ufc-on-fuel-tv-9-results/'; $page = file_get_html($url); $ret = ...
0
votes
1answer
19 views

curl doesn't work on server but work fine on localhost

when I do execution the script in localhost, work fine. but why the script doesn't work in webserver ?? **How much do I have to write in order for stackoverflow to allow me to post something ? "It ...
0
votes
0answers
3 views

API Client Secret with REST Using Slim Framework

I have a simple REST API (using the Slim framework) set up where the user can call a page like this: subdomain.domain.com/api/musician/id/3273 to retrieve and display some simple JSON data. I want ...
-2
votes
1answer
13 views

i want to insert data with function of ereg_replace gives error

hello i want to use a function of php (ereg_replace) for inserting data into my database but I am receiving this error saying Deprecated: Function ereg_replace() is deprecated in ...
0
votes
1answer
34 views

Run PHP on button click and hide download link

With this code I want to turn it into when a user clicks on the button it first verifies that they want to download the file and if they click yes it subtracts 100 points from the $userpoints (and ...
-2
votes
1answer
19 views

sending data from javascript array to php and back

i'm trying to work on a design website where users can design something on html5 canvas and than save it on the server. All information is stored on mysql database and the designs are stored in a ...

1 2 3 4 5 24671
15 30 50 per page