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

Can't use “font” word in php

I wanna make some MyCodes for the editor of my script. I was defined this function and it works correctly: function preg($txt,$pattern,$output) { $pattern = str_replace("[","\[",$pattern); $pattern = ...
0
votes
0answers
1 views

Object orientated mysql num_rows query in one line

Essentially, what I want to do is remove the extra $result line and have it all in one IF statement. Is this possible in PHP using object-orientated queries? $result = $mysqli->query("SELECT id ...
0
votes
0answers
4 views

Auto generation of php.ini

In my phpinfo I see this: Configuration File (php.ini) Path /etc Loaded Configuration File /var/www/vhosts/example.com/etc/php.ini Scan this dir for additional .ini files /etc/php.d ...
0
votes
0answers
13 views

Massive jQuery update -> My ajax doesn't work anymore

I've been using stackoverflow for months now as it really is the the most reliable resource I can think about. However, I now have my own question. I'm working on a script that displays available ...
2
votes
3answers
16 views

find the value of current span value in jquery

I have a list like below <tr> <td>val1</td> <td>val2</td> <td>val3</td> <td><span class="span_view">1</span><a ...
0
votes
0answers
10 views

PHPActive record custom sql

Is there any way to write custom sql in php active record? I wanna write an INSERT IGNORE query but I didn't find any method to pass my custom sql to. Does it also support INSERT IGNORE query by ...
0
votes
2answers
11 views

reload just a part of a page after ajax request

I am trying to add a search module for my data listing . my function that i post the request to, renders a view. how can i load the list grid after pushing search button? should i echo a html code, ...
2
votes
0answers
11 views

all array bitwise values together

i have array like this. $a = array( 1, 2, 4, // ... 64, // go on ... ); I wanna have return var_dump(1 | 2 | 4 | /* ... */ 64); http://codepad.org/AseDSGh6 how can i ...
0
votes
0answers
6 views

Getting all friends likes gives an unknown error code

I am using FB Graph API to retrieve all friends info from the user: $fb_friends = ...
0
votes
1answer
20 views

proper root path in php without using document_root

I have used $_server 'document_root' in my project where it has run well on my localhost but I got an issue with it when I uploaded it to the remote server. I am getting this error when I accessed ...
0
votes
0answers
12 views

Automatic Deployment to specific folder

I want to automatically deploy my repository changes to my server but I only want to do this so that I can see how the changes will effect the website. So instead of having it update the files users ...
0
votes
1answer
56 views

Ajax code dose not working properly

Sorry for my english... why this ajax code dosen't work properly ? when I call the POST variable in the page that i send for him the info, its show me that the POST variable is not exist... Can ...
0
votes
2answers
10 views

download header showing an error on my server

This is my 2nd page , my first page is download button <?php session_start(); //user not logged in, no direct access if (!isset($_SESSION['user'])) header("location:../admin/"); include ...
0
votes
2answers
25 views

Jquery Ajax & PHP - Return a Variable and PHP Page

I have been successfully using jquery .load() to return a PHP page and load into a DIV. I now need to alter this page load to check if the PHP Session is active and if not redirect to a different ...
0
votes
1answer
36 views

how to get if conditon to work with null variable from database

Before, I insert data to database using normal sql code and I use ("") to insert the empty var into database. Now I use pdo and I use (NULL) to insert the empty value to database. I know that ("") ...

1 2 3 4 5 28157
15 30 50 per page