php

php arrays (and remvoing certain element)

I'm not 100% but this ($settings) would be called an array in php: $setting; $setting['host'] = "localhost"; $setting['name'] = "hello"; but what's the name for this that's different to the above: $settings = array("localhost", "hello"); Also from the first example how can i remove the element called name? (please also correct my...

Unable to update twitter status using Oauth. Although I can get information

Hi, I am working on an application in which user can update his/her twitter status from my application. I am using oauth for letting the user authorize my app to update his/her status. I am able to verify the credentials, receive the oauth_token and oauth_token_secret. Also I am able to get the user's information. But I am unable to upda...

php: getting rid of ?p= query in url?

hey guys, i'm not looking for a mod_rewrite thing or anything related. i'm just not sure if this is possible or not? i'm using if(isset($_GET['p'])) … to check if ?p=something is set in my url, if not $foo = "bar"; if a ?p= is set e.g. ?p=something –> $foo = "something". got me? if i manually enter now ?p=bar to my url the string in m...

Generate image thumbnails with watermarks on the fly in PHP

I'm looking for PHP class (solution) for generating image thumbnails with watermarks on the fly. Any idea ? ...

What are the major components of an affiliate marketing system?

I am thinking of "rolling my own" Affiliate marketing system - using either PHP (or more preferably, Python). I am relatively new to Affiliate marketing, so before I get started though I wanted to make sure that I had covered all bases, and was also not reinventing the wheel (in terms of there being a good open source [Python based] syst...

Doctrine creating columns with incorrect lengths

Hello. I have the following yml configuration for Doctrine under MySQL: Designer: tableName: designers columns: id: type: integer(2) name: type: string(30) notnull: true Item: tableName: items columns: id: type: integer(3) unsigned: true primary: true autoincrement: true ...

php digital clock for london zoon

Hi How to create digital clock using PHP (london time zone) sample clock Am looking this sort of one clock, ther is a possible with ajax and php to we display similar of clock and date.. Thing is .it require too much of ajax,java script functions ...

Downloading php_mysql.dll for php5

Hi, I have installed php5.3.2 and MySql on Ubuntu 10.4. Now how do I add or download php_mysql.dll to add mysql support in php ? I have visited MySql Download page, but I don't know what to download. Can someone point me in a right direction ? I am not sure, if this question might fit in Superuser. Thanks. ...

php: Class lazy-loading?

Hello people, I have a problem here, which I have been thinking about for the past few days. In a php application to do something with a object you need to: define it run a function with it like so: (with autoloading, and a registry object) $registry->obj = new mathClass($var1,$var2); //creates object where $var1 holds the a database o...

How to access server Database from Facebook?

Can I access My own Database(on my server) using Facebook API's or its just not possible as Facebook wont allow to use Database from other web server. I want to create an facebook application that will take all the info from friends profile and save it in my database(i.e on my server). Actually i have not worked on any Facebook applicati...

Is it possible to perform a lossless rotation on a JPEG Image in PHP?

I need to rotate some existing JPG images. They have already lost some detail, but I now want to rotate them and lose no further detail. With a little research, it seems the only lossless Image rotation library for PHP is by using the jPegTran library. Are there any other options when it somes to doing lossless jpg rotation? Thanks! ...

php: create directory on form submit?

hey guys, wondering what i'm doing wrong. first time i'm using this function. i'm inside of PATH and i want to create a folder inside of PATH. i wann check if the folder already exists, if not create one. getting the name of the folder from an inputfield with name of "dirname". if (isset($_POST['createDir'])) { //get value of inputf...

How microtime works in php

PHP mico time , i want to process my application using microtime ...

How to get prices of Computers, Books using php

Hi all, I am doing one project in that if user want to buy computer or books then he just put information about that and we provide the prices of that given information. So how can it possible using php? Is there any third party api, provide this type information please reply me. Thanks, ...

Adding a like button to a Facebook page using xFBML

Possible Duplicate: Adding Facebook Like button to fan page I have a Facebook page to advertise my company. I want to insert a button that looks like a Facebook "like" button using xFBML. How can I do that? ...

Already included class

Is it possible to make my class file be already included in all files of a folder? ...

non-generated forms in mvc

I still don't understand how I should handle my form input errors within an mvc. I have f.e. the a zend-like controller and a form class and so on. But where do i include my form file which is not generated but only with pure html <html> <title>User-Registration</title> <head>...</head> <body> <?php (if($errors)) { ?> <p ...

Is there a way to allow users of my site to download large volumes of image files from Amazon S3 via Flash / PHP / other service?

Hi all, My website allows users to upload photographs which I store on Amazon's S3. I store the original upload as well as an optimized image and a thumbnail. I want to allow users to be able to export all of their original versions when their subscription expires. So I am thinking the following problems arise Could be a large volume ...

How to extract multiple patterns from txt doc.

I have a text document that lists urls with their subject and an email address. I need to extract all urls with their subject and the email address and put this all into a csv file. I just need to know how I can use regex to do this. Currently I am able to extract all urls but I need the email and subject associated with them. This is wh...

Multiple image upload and resize Images : SECURITY

Is multiple upload secure in php? How can I prevent security holes? Thanks in advance ...