How do I add a div between the header area and content area of a thesis theme. What is the code I need to write in custom_functions.php file to do this? If that's not the place, where do I need to make changes to get this done?
...
Hi, I'm quite stuck with a problem sending mail from a PHP script.
Some data:
Shared hosting, no SSH access, only hosting provider panel
PHP version 5.2.5
Last year I built a site which had no problems sending mail with the same hosting
Let's say the domain is “domain.com” and my private address is “[email protected]” for anonimit...
Hi everyone,
We're in the middle of making a new e-commerce related PHP application and we have come to the point where we have started to think about how we should solve templating for our customers needs.
What we would like to do is offer our customers the possibility of uploading/modifying templates to suit their company:s profile....
How can I get a string that only contains a to z, A to Z, 0 to 9 and some symbols?
...
Hello,
this is my code which populates a drop down menu, all working perfectly, but when editing a database record, i want the first value in the drop down to be what is currently in the database, how would i do this?
<li class="odd"><label class="field-title">Background <em>*</em>:</label> <label><select class="txtbox-middle" name="ba...
How can I find out that my page is embedded as a frame to other site during page loading? I guess referrer request header can't help me here? Thanks.
...
Hi *,
I have a session array *$_SESSION['cart']* with some items in it. The structure ist like this (via *print_r*):
Array (
[2-1] => Array (
[color] => 7
[articlenumber] => WRG70 10
[quantity] => 1
[price] => 17.50
)
[3-8] => Array (
[color] => 2
[articlenumb...
Is there any way to check if a column is "anything"? The reason is that i have a searchfunction that get's an ID from the URL, and then it passes it through the sql algorithm and shows the result. But if that URL "function" (?) isn't filled in, it just searches for:
...AND column=''...
and that doesn't return any results at all. I've ...
Is there a php equivalent of mongrel? I don't want to install Apache, just to preview a simple template.
...
I am working on a project that pulls data from JMS queue using PHP and Zend Framework. The HTTP client response is below. All I need is the XML string.
I came up with /(.*)<\/RequestDetails>/gs which tests ok on http://gskinner.com/RegExr/ but the preg_match call is returning an empty matches array.
I'm going to continue to hunt ar...
I have the following script
<?php
echo "I am alive<br>";
die("I am dying<br>");
echo ("Dead");
?>
The output that I get is
I am alive
I am dying
Is there any way (alternative/substitute of die()) using which the execution of the remaining script be continued?
EDIT :
Sorry I have got what I wanted and have vot...
I want to imitate following request using Zend_Soap_Client.
<SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:clr="http://schemas.microsoft.com/so...
I am new to PHP.
I have a code to display an RSS feed but there is a big space between each item (the title/date and description).
Is it possible to eliminate those margins?
<?php
$feed = simplexml_load_file('http://online.wsj.com/xml/rss/3_7031.xml', 'SimpleXMLIterator');
$first3 = new LimitIterator($feed->channel->item, 0, 4);
forea...
I'm attempting to use the PHP DateTime class on a Solaris server with PHP 5.2.6, while testing on my local Windows box running PHP 5.3. Here is the code:
<?php
try {
$dt = new DateTime('2009-10-08');
$dt->setDate(2009,10,8);
print_r($dt);
}catch (Exception $e) {
echo $e->getMessage();
}
On the test server, things work flawlessly,...
Is it possible to download a single file with multiple parallel connections through php?
...
I'm looking for a way to use the php number_format function or something similar that will add the thousand seperator but will leave any decimal part of the number intatct without and formatting of this. For example:
39845.25843 => 39,845.25843
347346.8 => 347,346.8
1000000 = > 1,000,000
Thanks
...
look here first
http://stackoverflow.com/questions/2883338/how-can-i-send-a-date-from-one-site-to-other-sites
let me change the question a bit, i didnt really explain myself properly.
What i intend to do is get z.php to read a text file called 'sites.txt' which has a list of sites:
site1.com/a.php
site2.com/b.php
site3.com/c.php
to ex...
Hi guys,
I get a joomla template, but I can't run it.
I copy it to htdocs folder in Apache(XAMPP) and when I want to run it, return this :
"Restricted access"
defined('_JEXEC') or die('Restricted access'); // no direct access
require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'functions.php';
please kindly advise me,
Cheers,
...
I have this code:
<?php
if ( $amount < 5 ) {
echo 'Credit Balance low! You have';
echo $amount;
echo ' remaining credits.';
} else {
echo 'No recent alerts...';
}
?>
Where it says echo $amount; I want to echo $00.00 if the value of $amount == 0. How would I include this in my code?
...
Hi,
by default, using sfDGP, when i try to execute an action of an application with security activated, the signin form appears but the URL doesn't change to "frontend_dev.php/login".
So, what should I do the URL to "frontend_dev.php/login" ?
Regards
Javi
...