Tagged Questions
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.
0
votes
1answer
3 views
code igniter SQL_CALC_FOUND_ROWS
How to get total number of rows for particular query and also limiting the query results to 10 rows. For example. I've a table called sample. It has 400 rows. On running a query like where name = ...
0
votes
0answers
7 views
How to get header output from included file?
I have an index php which generates an image, it accepts some parameters, processes it and then outputs an image, but some sites do not allow ? & and = in image urls so I have made another php ...
0
votes
0answers
5 views
parse xml with simplexml but why syntax error?
Please help me,,,I want to retrieve data from xml parse results, to be used as a query for parsing xmlBB
I tried like this, but the syntax error
$xmlone = ...
0
votes
0answers
7 views
Sporadic connect errors from PHP to MS SQL
I am working on a site written in PHP (running on a Windows Server under Apache) with MS SQL Server 2005 as database (on another Windows Server).
This error occurs sporadically when running ...
0
votes
0answers
8 views
currency converter virtuemart
I have one serious problem about configuration auto update exchange rate in ECBconverter
I'm Vietnamese and I want to add Vietnamese Dong rate to Currency converter.
I use file XML from Joint Stock ...
0
votes
0answers
24 views
preg_replace() help to covert {$variable} to php echo variable statment
I am working on small template class. I need help in converting {$variable} written in template file to be converted to
Like :
<html>
<body>
<p> Hey Welcome {$username} ...
0
votes
2answers
22 views
url rewriting with htacess not working
I have a static website upon which I have performed CMS but when I added .htaccess file for url rewriting its not working.
eg. www.example.in/new/index.php to www.example.in/new/index. there are ...
0
votes
0answers
17 views
Sending from Java to PHP Scripting
first time question. Anyways, I have a bit of a project, basically it has me writing up a GUI using Netbean's GUI builder to get information from a customer and then sending that information into a ...
0
votes
0answers
10 views
Use multiple themed css files within one theme - CakePHP
I have themed folders within my cakephp project one for each client.
I am creating a mobile version and need to have a mobile theme for it.
In this mobile theme I want to load one of the css files ...
0
votes
3answers
32 views
post form variable to php return result and place in div
I am trying to submit a form post to a php page (which has dummy vars) then return the results and display them in the 'userinfo' div on the same page. I suspect I need to post the information to the ...
0
votes
0answers
9 views
Unable to upload file to Alfresco using PHP
We are trying to write some php code to upload a file to our alfresco document library. We are planning to let our users upload documents to the Alfresco repository while entering custom apect ...
0
votes
1answer
6 views
Setting up new relic on Heroku PHP
I have a PHP app on Heroku that keeps giving an Application Error randomly, and the logs don't say anything at all. I can't be sure but it seems that the error comes when 6-8 concurrent users hit the ...
0
votes
0answers
22 views
Trying to generate tree's HTML out of 2 dimensional array
I am trying to generate the HTML for tree like (jsTree) out of a 2d array with no success.
I have the following array: My Array
and from this array i would like to create a tree html (ul and li) ...
0
votes
1answer
25 views
Get Multiple Categories of Product
I have 3 table sin my database the forst is advertisement the second is categories and the third is in what category to save the advertisement, because i want to make, with multiple categories. How to ...
0
votes
0answers
7 views
WP - How to check capabilities inside a plugin?
I need to check if a user have capabilities to do something in the initialization of a plugin.
I tried with current_user_can() function, and WP_User class, but dont work in these scope.
The question ...