Hi,all of you,
i am currently using ubuntu10.04
i were trying to run php script but every time i suffered through one common problem
that when i did some error in php script it doesn,t display a error or any warning message on
firefox(which i am using as browser) rather than showing a blank screen .My php.ini file configuration is as fo...
How can i start the count from 5000 and count from there in my following code.
here is my code.
$i=1;
while($i<=19000){
$i++;
}
...
Like the title tells: Is it possible to write a PHP-Function in a XSL-Document and call it afterwards?
I have no case, where I wanna do that. Its just a thing it came into my mind while learning XSL.
In XSL you can compose something like:
<xsl:processing-instruction name="php">
...some php...
</xsl>
The PHP code will be run in yo...
Is there a good tutorial on how to code a good email to a friend script using PHP. I assume I will need to use the PHP mail function.
A recommend to a friend script where a user can email a specific web page to a friend.
...
Hi,
i am trying to execute all tests in subfolders of my test directory. This works locally on my computer but not on the integration server.
phpunit does not find the test files
hudson@slipstream:~/.hudson/jobs/stendhal_website/workspace$ phpunit tests
PHPUnit 3.4.5 by Sebastian Bergmann.
Time: 0 seconds, Memory: 4.50Mb
OK (0 tests, ...
For some reason I can't get Smarty to stop caching templates, which is really annoying when I'm making changes to templates during development. Can someone tell me where I'm going wrong in disabling all caching?:
$smarty = new Smarty();
$smarty->template_dir = SMARTY_PATH."/templates";
$smarty->compile_dir = S...
I run PHP via FastCGI with nginx web server on Gentoo. PHP is started by spawn-fcgi script from lighttpd, which is started run as a daemon using start-stop-daemon. Among other things, startup scripts cleans-up environment, so that only PATH, PHP_FCGI_CHILDREN and PHP_FCGI_MAX_REQUESTS are left when PHP is started. However on my machine, ...
I will explain more
I have file called date.php and text file called word.txt. I put more Proverbs in word.txt
Now, every day I need to print one proverb only from word.txt, like this:
Saturday prints "A burnt child dreads fire"
Sunday prints "no gain without pain"
and so on, the proverb will change every day
Can anyone help me wi...
When I send a file of size 624 B aprox. it is sent ok by HttpConnection. But when I send bigger file like > 624 B on the call target (PHP script) I don't get any POST parameters at all.
I use class HttpMultipartRequest:
http://wiki.forum.nokia.com/index.php/HTTP_Post_multipart_file_upload_in_Java_ME
like this:
Hashtable params = new H...
Hello,
How would I save each user's 'default photo' onto a website? This same photo may be used during some of their interactions on the site(maybe in a chat session), and it may be displayed on their profile page. Will each user have their own folder? If so, how can I create such a folder. Will this folder stay on ftp? Or MySQL? Will ...
i am doing one concept.but i have no idea to do that concept. plz nybody give an idea for that....
actually there is a site which have the registered restaurents on that site at the same another side user registration is there. now user login then automatically display distinct restaurents which is in that site. how to display distinct...
Is it possible to make a PHP application think that the server datetime is offset by a large configurable amount (like 6 months ago, or 6 months from now)?
Background:
We have a web application that deals with sporting events and right now we would like to run it in our development environment in such a way that the web site thinks it i...
I need to check whether a received string contains any words that are more than 20 characters in length. For example the input string :
hi there asssssssssssssssssssskkkkkkkk how are you doing ?
would return true.
could somebody please help me out with a regexp to check for this. i'm using php.
thanks in advance.
...
I have a PHP application deployed on my IIS hosting and I am always getting generic IIS "error 500" pages insteady of detailed error pages.
I understand I need to modify some php.ini file (from this question).
It seems that display_errors is set correctly:
echo ini_get('display_errors');
outputs 1.
I have also tried setting displa...
This is out of the error log:
PHP Warning: PHP Startup: BOPEE Extension: Unable to initialize module
Module compiled with build ID=API20090626,TS,VC9
PHP compiled with build ID=API20090626,NTS,VC9
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: CustomExt Module: Unable to initialize module
Module compile...
Is it possible for php(or javascript in the worst case) to create a unique id for a user that is not cookie or ip dependant. I have seen on myminicity.com that on each city the count only goes up once a day(it has a unique id for everyone i think) and even if I delete my cookies and refresh ip it still seems to detect me as visited alrea...
i am reading up the doctrine 2 docs about class loading & include_path. but this question maybe relavent to any other PHP framework or class loading
require '/path/to/lib/Doctrine/Common/ClassLoader.php';
$classLoader = new \Doctrine\Common\ClassLoader('Doctrine', '/path/to/Doctrine2/lib');
$classLoader->register(); // register on SPL a...
Hi Im trying to write a simple CSS parsing script in PHP that enables me to put previously declared classes within a css rule, i.e. the Mixins functionality of less and Sassy.
This regex only grabs the last css class name within the curly braces:
{.+(\.\w+).+}
For example, only .foo will be matched in the below css rule:
.login_for...
Hello,
After I upload a photo to a server, I want to save it in the user's database in MySQL, but for some reason, it is not working. Below is the code for uploader.php:
session_start();
if(!$_SESSION['userid']) {
header("Location: index.php");
exit;
}
$con = mysql_connect("host","db","pw");
if (!$con)
{
die('Could not conne...
hi,
how can I compute the product between these 2 quantities in php ?
This is what I've tried, but it doesn't work
<?php echo (uc_price($price_info, $context) * $product->qty); ?>
thanks
...