I have use DB::Connect in my program for accessing the database.
I ran my php program this shows the error
DB.php file is not their.
require_once 'DB.php';
PEAR::setErrorHandling(PEAR_ERROR_DIE);
Then I copy the DB.php file and PEAR.php file from another machine to my
machine after that If I ran from command line it didn't...
Possible Duplicate:
What PHP framework would you choose for a new application and why?
For small and big web apps, which is better ?
...
how can i integrate ebay sniper in my site code which is used to making bid in last remaining seconds of bid
...
I am using AJAX to load content into a placeholder, the PHP code uses file_get_contents to get the page I want, then gives it back to the AJAX response which puts it into my placeholder. The problem I am having is that the content that is being grabbed is actually being altered, like html tags are being put where they didn't exist.. Here...
I'm trying to use mod_authn_dbd to password protect a directory.
I used the code from their apache help page, but it's chocking on the DBDriver line
# mod_dbd configuration
DBDriver mysql //modified
DBDParams "dbname=mydbname user=myuser password=mypass" //modified
/path/to/folder/.htaccess: Invalid command 'DBDriver', perhaps missp...
Hi guys, I have a problem with a redirect I am trying to do from within a iframe, I keep getting a SSL certificate error, is there a specific way should be redirecting from within an iframe? I am usig this code,
echo "<script type='text/javascript'>top.location.href = '$redirect';</script>";
I have also tried a standard PHP header r...
I planning to release an Api for public. what I am looking into is since it is free I need to control the usage. there are couple of options in my mind. one is delay number of queries per second. second one is fix queries to certain number per day. but second option seems to do more work on scripting which I am planning to avoid now.
so...
Hello,
i have problem with simpleXml and adding new items. This is my xml:
<?xml version="1.0" encoding="utf-8"?>
<root>
<items>
<item>abc</item>
<item>def</item>
<item>ghi</item>
</items>
</root>
Im using this php code:
$xml = simplexml_load_file("myxml.xml");
$sxe = new SimpleXMLElement($xml->asXML());...
sorry, this is a rooky question, but i never had to handle this problem, i think.
how can i get an htmlentity out of a thing like that: \u00e4, which stands for ä (ä) ??
additional information(, why i want to do that ^^):
i have backslashes in the string, for escapereason. when i stripslashes i get something like "u00e4". to find...
I'm working on a project where I need to use some hash function to make a hash string. This hash string should be unique consists of 6 to 13 characters (fixed length).
I use a database to store data, so for each record, I have a unique ID. I want to use this unique ID to make a hash string ( to achieve uniqueness of resulted hash string...
I have been using WebDAV in PHP directly using XML. I have managed to create emails with attachments and so forth, but when i try to create a contact, I keep getting "400 Bad Request". Here is the webdav query and how i'm executing it:
<?xml version="1.0"?>
<g:propertyupdate
xmlns:g="DAV:"
xmlns:c="urn:schemas:contacts:" ...
How do i check if a specific array key exist and how to compare them?
1. Array looks like this.
[33] => Array
(
[211] =>objectr
(
[name] => Test
[id]=> 211
)
)
[23] => Array
...
I'm trying to use php to get the list of loaded apache modules using apache_get_modules(), but I get an error that this function is undefined.
From searching it seems the problem is that
this only works when PHP is installed
as an Apache module. This will not
function when using PHP as CGI (ex:
suPHP)
I'm not sure if this is...
Okay excuse the cryptic subject.
I have a system which dynamically fetches image data and does some modification on the fly.
Essentially, missing out the unimportant bits, this is my code:
$File->Filename = "testimage.jpg";
$File->Open();
$FileData = $File->Read();
header('Content-Type: image/jpeg');
echo $FileData;
The only outpu...
Is there a way to send data to database when click on a link without page refresh?
I use php/mysql...
...
I need to replace <slot> slot_name </slot> with a <?php !include_slot('slot_name')?> in the text that I read from file
<table class="layout-table" id="layout1">
<tr>
<td class="slot" id="slot1" colspan="2">
<slot>
slot_name
</slot>
</td>
</tr>
<tr>
<td class="sl...
When I try to load an html file as xml using simplexml_load_string i get many errors and warnings regarding the html and it fails, it there a way to properly load an html file using simplexml ?
this html file may have unneeded spaces and maybe some other errors that i would like simplexml to ignore.
...
I have a linux server, where I just installed postfix.
I have done nothing more with the email server config.
My website is a classifieds website, where users may put ads, delete ads etc etc. No login and no member functions at all.
Only place I need to use email is this:
When posting a new classified a confirmation email will be se...
My application has several modules. Each module is hosted in a different sub domain.
eg:
subdomain1/abc.com
subdomain2/abc.com
subdomain3/abc.com
I want to use a common header file, among the pages in other modules also. How can I do that.
...
Hi there I am having a problem with my form validation, basically the problem is that I am getting a repeated view loaded if the validation fails, please see my code snippet,
else {
//the user is a new customer so we need to show them
//the card details form
$this->addViewData('returningCustomer', f...