hi, I've got a db on a server and want to get some data fro my iphone. I use TouchJson and everything works fine but I've got a little problem. I don't know how to download images. When I try to build and run the app the emulator just crashes. Got any ideas what to do?
...
Hello,
I need to write a PHP script that will print out results from a MySQL database. For example, say I have 9 fields. Field 1 is an auto increasing number, field two is a three digit number.
I need to be able to have a script read, find the matching number (it'll be from a POST), and then display all matching three digit results, a...
I'm totally rookie as to PHP. I want to write a PHP script in which it can access a remote cgi via http to get some data. I know that PHP is able to fopen any remote URL and fetch file content, but I concern about the result returned by cgi script, not the script itself.
...
I am writing an application using Symfony. I have some reusable components that I don't want to put into the main Symfony modules; instead, they are in the lib directory.
What I want to know is, what is the best way to include this file? Can I include lib/foo/bar.php or do I need a full path, or is there something else I should do?
...
$ua_s = 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14';
$c = curl_init($the_url);
curl_setopt($c, CURLOPT_RETURNTRANSFER, true);
curl_setopt($c, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($c, CURLOPT_USERAGENT, $ua_s);
curl_setopt($c, CURLOPT_POST, true);
curl_setopt($c, CURLOPT_POSTFIELD...
I have a WordPress blog running on lighttpd-1.4.19, listening at www00:81. On the same host, apache-2.2.11 listens on port 80, which creates a proxy connection from http://blog.mydomain.org:80 to http://blog.mydomain.org:81 (both being the same physical machine).
The Apache virtualhost looks as follows:
<VirtualHost *:80>
ServerNam...
Hi guys I'm trying to upload to google docs on a google apps account using the following code - I'm using zend framework:
function getGoogleClient($s = '')
{
$service = Zend_Gdata_Docs::AUTH_SERVICE_NAME;
$user = 'aaaaa';
$pass = 'aaaaa';
$httpClient = Zend_Gdata_ClientLogin::getHttpClient($user, $pass, $service);
return $...
Hi all,
I written code for sending an email using php.
I don't want to go that mail into spam. How can I avoid going that mail into spam?
...
Well, the question is not intended to be that big. Let me explain the scenario: I have two http servers. server A is accessible to end user by web browser, while server B is internal server which can only be accessed by server A. If server B generate some big jpeg image in local disk, and server A has no way to access server B's filesyst...
I have created my own web site in PHP. I hav member login function also. For login function i have to create a table of member info in the database of web hosting company(my hosting is provided by GoDaddy.com) and then access mySql database.
>> how can I create the table in my hosting server??
my current code is--
<?php
$host="local...
print '<div id="wrap">';
print "<table width=\"100%\" border=\"0\" align=\"center\" cellpadding=\"3\" cellspacing=\"3\">";
for($i=0; $i<count($news_comments); $i++)
{
print '
<tr>
<td width="30%"><strong>'.$news_comments[$i]['comment_by'].'</strong></td>
<td width="70%">'.$news_comments[$i]['comment_date'].'</td>
</tr...
<?php
header ("Content-type: image/pjpeg");
$string = "manujagadeesh!!!";
$font =8;
$width = ImageFontWidth($font)* strlen($string) ;
$height = ImageFontHeight($font) ;
$im = ImageCreateFromjpeg("sachin.jpg");
$x=100;
$y=200;
$background_color = imagecolorallocate ($im, 255, 255, 255); //w...
I have a file which is loaded at the top of my document, which is called Videos.php. Inside that file are several functions, such as getYoutubeVideos. On some pages, I need to call upon that function several times (up to 50), and it of course creates major lag on load times. So I have been trying to figure out how to call that function i...
I have created a project(on my Localhost) in symfony(PHP Framework), and need to upload it on server(i.e the WEB Server), but i dont know how to do that, i got many methods on net, but i was not able to follow that. so please help.
...
I would like to code a bbcode with SQL selection. Basically I want the user to be able to input [user]Anotheruser[/user] in a text field, which then is converted in the front-end to an URL that looks like this: http://mydomain.com/user/[userid]/anotheruser. So in order to get the userid, I'd need to include an SQL selection, and addition...
Could someone point me in the right direction here?
Basically, I've got this jQuery code snippet:
$('.bggallery_images').click(function () {
var newBG = "url('" + $(this).attr('src');
var fullpath = $(this).attr('src');
var filename = fullpath.replace('img/Bakgrunner/', '');
$('#wrapper').css('background-image', newBG);...
I've made a program in php where i got to call a dll function.. that dll contains some hashcode.. i call this dll's function from vb6 through this code:
Private Declare Function GetHash Lib "hashGen.dll" (ByVal tEncode As String) As Long
Private Sub get_Key()
MsgBox GetHash("hello world")
end sub
can anybody tell me how to call th...
When I generate a WSDL file with ./symfony webservice:generate-wsdl (where is 'frontend', is 'soap' and is 'http://localhost ') I get a nice soap.wsdl file which works like it should. Except, the methods are not named 'justAMethod' but 'soapService_justAMethod' (where soapService is the module which holds the SOAP methods). How do ...
Possible Duplicate:
manu help me in the effect
http://www.zazzle.com/cr/design/pt-mug is demo site
click the add image, add the images click ok butt. The image is add to mug image
In that php code i want it please help me
...
How to configure PHP to emit warning when I try to read value of unset variable?
It is frequently happens when I rename variable in one place, I obtain weird result because I forgot to rename it in other place.
...