Hello
i want to add an item to ebay using ebay API and PHP i read their website for hours and i'm lost. i created a developer account. but what should i do after that? i read about "Add item" call http://developer.ebay.com/DevZone/XML/docs/Reference/eBay/AddItem.html but i have no idea on how to use that?
Please help !!
...
Hello. We have a website which had a previous memory limit of 12 MB (12 MB in php.ini, and 16 MB in settings.php) and worked previously.
After moving to a new server it started giving memory limit errors and displaying half-blank screen.
We increaded the limit in both files (php.ini and settings.php) and now it works, but I dont under...
Hy... I'm new in XML Schema, XSL,... (I have basic understanding)
On web page: http://w3schools.com/xsl/xsl_editxml.asp
is shown example for open,edit,save xml file, but with asp.
Do anyone know how can i open/edit and save xml file using php for next example:
<?xml version="1.0" encoding="ISO-8859-1"?>
<tools>
<tool id="1">
<field i...
Hey Friends,
I have made one form in which there is rich text editor. and i m trying to store the data to database.
now i have mainly two problem..
1) As soon as the string which contents "#"(basically when i try to change the color of the font) character, then it does not store characters after "#". and it also not store "#" char...
Hi,
I am using the code below to upload an image through ftp
$sFile=$ftp_dir."/".$image_name;
$image=$database_row["image"];//image is store in database
$fh = tmpfile();
$fwrite($fh, $image);
$uploadFile = ftp_fput($conn_id, $sFile, $fh, FTP_ASCII);
fclose($fh);
The ftp is creating the file and has a size BUT the file i get is n...
Example link on my footer
$powered = 'Powered by <a href="htp://stackoverflow.com">Stackoverflow</a>';
theme file
<?php echo $powered; ?>
How to make if $powered removed from my footer and the error/reminder notice it.
Example die('Do not remove the powered link')
...
hi,
i'm using a php script for redirection after detecting the search word to my websiter from the search engines .
and my redirection code is working fine
but for some keywods i wat to stay in the same page. for that lines of code i'm getting a warning message in that pages.
Warning: headers already sent
(output started...
how to acess user session in sfDoctrineRoute with symfony ?
var_dump(sfContext::getInstance()->getUser());
returns NULL
i cant access current user session in routing
http://stackoverflow.com/questions/2455817/symfony-accessing-user-session-from-a-custom-routing-class = bad response
...
I have built an application in CakePHP that lists businesses. There are about 2000 entries, and the latitude and longitude coordinates for each business is in the DB.
I now am trying to tackle the search function.
There will be an input box where the user can put a street address, city, or zipcode, and then I would like it to return t...
Hi ,
I have a practical doubt ,
I am using OO php , and i am new to it. I am using zend framework to be clear.
I am writing controllers(class) and actions(methods) with in it say PatientMapper.php which has all single mysql table related actions and Patient.php which has all setter and getter functions.
I get a doubt that when should ...
Hi i've got a problem evaluating json. My goal is to insert json member value to a function variable, take a look at this
function func_load_session(svar){
var id = '';
$.getJSON('data/session.php?load='+svar, function(json){
eval('id = json.'+svar);
});
return id;
}
this code i load session from php file that i've store befor...
Is pg_escape_string or mysql_escape_string enough to sanitize a string before inserting data into a database table?
...
I am using WAMP. I want to use php from the command prompt. What is the entry in PATH env variable for this ?
...
Hi all,
I was writing a foreach Loop in PHP5.
Here is the script:
foreach(range('A','Z') as $char) // line 1
{ // line 2
echo strtoupper($char)strtolower($char); // line 3
} // line 4
And I got this error message
Parse error: parse error, unexpected T_STRING in testing.php on line 3
I spent almost an hour to figure out I should add ...
Hi,
Please help me, i need to merge multiple arrays then sorting it by array value count. Below is the problem:
$array1 = array("abc", "def", "ghi", "jkl", "mno");
$array2 = array("mno", "jkl", "mno", "ghi", "pqr", "stu");
$array3 = array_merge($array1, $array2);
$array4 = ???
print_r($array4);
I want the returns of $array4 like thi...
I've written a website in PHP and it will have ability for users to upload images. My website will have more than 100.000 users. Aprox. 1k users will upload image about 50 KB. And every image will be displayed on this website 5k times so it's transfer of:
1k x 50 KB x 5k = 250 GB per month.
So my question is:
Do you know any good solu...
Hi there,
I'm trying to set up a price rule in Magento so that users get 15% off for every 2 items they add to their shopping cart in Magento.
Does anyone know if this is possible?
Thanks.
...
if i have two dates 20-4-2010 and 22-4-2010
in two text box
I want the dates to be like this 20,21,22 how to get that
...
Hi,
I am trying to share the contents of the session variable across two subdomains but for some reason it is not working.
The sessionid is exactly the same on both subdomains but the variables aren't available.
I can achieve this with Cookies and this s working but would rather use the values in the session.
Here is how I setting th...
I have the php mail function on a page but every time I load that page, I wil get 8-12 mails instead of 1 mail.
The problem is the htaccess I suppose.
My .htaccess:
Options +FollowSymLinks
Options -MultiViews
RewriteEngine On
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d...