Hello,
Is it possible to run external php scripts(located inside the root folder of my web server) from within phpMyAdmin? The reason being I have some chart scripts which I would like to execute from within phpMyAdmin.
Thanks.
Tim
...
I have a config file at the root directory of my project which contains a class of constants that are environment specific. The problem I'm having is how to set the current directory as the ROOT var. Something to the effect of:
Class Config {
const ROOT = dirname(__FILE__);
}
This isn't possible as it is a constant expression. I've ...
I am having trouble with PHP parsing of a SoapClient call's response. For some types of answers, it is returning arrays of empty stdClass objects instead of initialized stdClass objects.
The server is a java webservice deployed with axis2 on tomcat6. The Java signature of the problematic service call is public Course getCourseDetails(...
I have some joomla articles. some values in that article has to be updated by data obtained through a soap call to other site. Is there any plugin available for joomla by which i can embed custom php inside articles?? How can i do this.??
...
Hi All,
Is it possible to get the location details from the users IP Address in PHP.
Any suggestions ??
Thanks
...
I'm looking for help/suggestions in finding the most efficient way to resize an image to be as small as possible using PHP/GD while preserving the aspect ratio of the original image but ensuring the the resized image is bigger than a defined minimum width & height.
For example, the resized image must have a width >= 400 and a height >= ...
One of the parameters in the CodeIgniter database config is the following
['pconnect'] TRUE/FALSE - Whether to use a persistent connection
What do you recommend I set this to?
Is there a significant performance hit if I set it to FALSE?
What potential problems might arise from setting it to TRUE?
...
Hello There,
I am currently working on my own implementation of a MVC framework. I would like to know how to add language layer to my framework so that it could support multiple languages other than english. What's the role of unicode in this case?
...
I get this error when I try to use autoload and namespaces:
Fatal error: Class 'Class1' not found in /usr/local/www/apache22/data/public/php5.3/test.php on line 10
Can anyone tell me what I am doing wrong?
Here is my code:
[root@data /usr/local/www/data/public/php5.3]# ls -l
total 8
-rw-r--r-- 1 root wheel 160 Dec 1 23:46 Class1....
Hello,
How can i make my site unicode compatible to support more languages other than english.
Thanks
...
Hi, is there a php string function to trim a string after a particular character. I had a look on the php.net site and did a google search but couldn't find anything. The only solution i could think of was explode and then grab the first part of the array but thats not the most elegant solution.
For example
$sting = "/gallery/image?a...
I am using MySQL. I need to insert one row into a table first, then I need to get the id of the inserted row. The code looks somewhat like the following:
insert into mytable (column2, column3, column4) values('value2','value3','value4')or die(mysql_error());
Column1
is the
primary key
and it is auto-increment. So how to ge...
I have a mysql table with fields for a start and end date/time.
How would i select just the rows that are older than the current date using php.
The format of the end-date is 2009-11-25 08:01:00 and the field type is datetime
...
i am using xampp for windows can you help me to configure smtp server.....
output is
Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in D:\installed\xampp\htdocs\mail.php on line 13
Mail failed
...
I had a customer report a wierd behavior related to PHP-#38146
I did var_dump(phpversion()) and I get:
string(14) "5.2.0-8+etch15"
What the heck is the -8, and the +etch15, some sort of Debian related extension of PHP? Related to hardened PHP or something? Does this mean they are essentially running a 5.2.0 build?
...
I am in a predicament here. My PHP code used to work but since I upgraded to PHP 5.2.6 I now get:
Warning: domdocument::domdocument() expects parameter 2 to be long, string given in C:\xamps older\xampp167\htdocs\test\myphp\CSR Demo pack\csr\output.php on line 46
Fatal error: Call to undefined method domdocument::loadHTML() in C:\xamps...
Question is simple . Where should I put form verification process in the mvc design pattern (Zend , Symphony, Cakephp, Codeigniter) . I ask this question because i have my own framework. But i can not decide where should i handle form verification . For example , i can write if statements in controller but this makes controller "fat" , o...
suppose i have 1 current user id and another user id to which current user is visiting.....than i want to fetch mysql data only if both have same options.....
for example user1 has uploaded a picture and user2 has also uploaded picture.......than how can i matchd user1 to user2 and query should be like this........
select * from users ...
Can you suggest some method of converting PHP Code Sniffer XML report into HTML page(s). I guess I might need some XSLT translation… Thanks in advance for the advice.
...
View is easy to be separated from MC,
but how to separate M and C?The difference seems a little vague to me.
I'm using PHP.
...