php

PHP Framework: Ebay Like Site

Hello all, I am going to be builiding a site like ebay - with all the features of ebay. Please note my payment method is limited to paypal. What would be the best PHP framework to use to build this quickly, efficiently and with the smallest learning curve? I have narrowed down to CodeIgniter as the major contender for this p...

Get content from url with GWT

Hi, I need to get the content from url (http://myweb.com/test.php) using Google Web Toolkit (GWT) I've tried this: GWT: RequestBuilder rb = new RequestBuilder(RequestBuilder.GET, "http://myweb.com/test.php?id=65472"); try { rb.sendRequest(null, new RequestCallback() { public void onError(final Request req...

Easiest way to execute local file from Firefox?

I am developing a web application. I would like to extend my error messages (and their backtraces) so that I can click on the mentioned file, and have it opened automatically in my PHP IDE. I would like to make this a easy-to-activate feature so that whoever works on the web application, can easily map the error message to point to thei...

PHP Parse Error; Drupal6 Deployment

I had a Drupal installation at www.example.com/test. Now, it's ready to go live, and I am trying to move it to www.example.com. I changed the line in sites/default/settings.php to: $base_url = 'http://www.example.com/'; // NO trailing slash! When I navigate to my index.php, I get all sorts of parse errors, like this: Parse error: sy...

PHP IDE with best code completion?

Despite what some might say, I believe that code completion (aka Intellisense) is the second best invention when it comes to code editors (the first being syntax coloring). It really makes coding easier because I don't have to worry whether I named the function CalculateReportSums, ReportSumsCalculate or simply GetReportSums. Unfortunat...

OpenSSL "Seal" in C (or via shell)

I'm working on porting some PHP code to C, that contacts a web API. The issue I've come across is that the PHP code uses the function openssl_seal(), but I can't seem to find any way to do the same thing in C or even via openssl in a call to system(). From the PHP manual on openssl_seal(): int openssl_seal ( string $data , str...

How do i check if php server allows external curl connections

How do i check if php server allows connecting via curl to external sites before buying hosting package (or registering on free host)? I noticed that in some hosting reviews users were complaining that servers that have curl enabled often don't allow external connections... I'd like to check this before purchasing/registering. Maybe t...

Initialize Objects like arrays in PHP?

In PHP, you can initialize arrays with values quickly using the following notation: $array = array("name" => "member 1", array("name" => "member 1.1") ) .... is there any way to do this for STDClass objects? I don't know any shorter way than the dreary $object = new STDClass(); $object->member1 = "hello, I'm 1"; $object->member1->mem...

some php help in making an 'approve form' page...

I have a main form with a lot of inputs. The forms action is set to a php file. After submitted the php-page shows up with all the inputs that the user typed into the form. The user has to re-check everything and hit an 'approve' button! The problem is, I don't know how to do this... I want to eventually put all data into a MySQL databa...

php error reporting level per IP

I understand that it is possible to alter the PHP error reporting level site-wide, but can I report a different error level to a particular client (IP address)? ...

possible to create a form using php code like this?

Is this right, because nothing happens when I hit the submit button: <HTML> <BODY> <?php $ok_button="<input type='submit' OnClick='document.forms['myForm'].submit();' value='approve!';" echo $ok_button; $form="<form name='myForm' action='myPhp.php'><input type='hidden' name='firstname' value='<?php echo $firstname;?>'></form>;" ?> !!!A...

PHP html email, using html template

so i'm trying to do a do a html mail sytem and my html i want to be a template, stored in a separate file like : <div clas="headr"></div> <div class="content"></div> <div class="footer"></div> when i want to send the mail i want my mail content(from the input form) to go in that div.content and then to send the whole html(template...

Can I interact with .NET libraries through Javascript?

We've built a set of .NET libraries (in C#) which are used to interact with an outside resource. The outside resource provide bindings in Java and .NET, so it was necessary to build our libraries in one of those languages and we're officially a Windows shop. We also use PHP/Javascript for a lot of our front-end web applications. Is it p...

help on building a basic php search engine

i looked for tutorials everywhere but just can't seem to get a good one... a search page with pagination, column header sorting, and multiple filtering(filters are in checkboxes) the problem: had pagination working, had sorting working, but can't get them to work together. add to that getting the filters working with a paginated and...

Which are case sensitive among php/javascript/html?

I'm new to these languages. ...

php Input field coming across as Integer

EDIT 2: After writing up an incredibly long explanation in more detail I, of course, discovered my problem and it had nothing to do with the question I asked. It was caused because I was creating a custom object of mine, assigning an uploaded images name to it's "LogoName" property...then creating a new version later in code, not assigni...

Writing refactoring-friendly PHP code

As far as I know, and have gathered from other SO posts, there are no proper tools for refactoring PHP code yet, so when it comes to refactoring, it's probably good old search-and-replace for most of us, with a good amount of praying that we didn't overlook something. I would like to know whether there are any coding recommendations on...

Limiting file upload type

Simple question. Is there a way to only allow txt files upon uploading? I've looked around and all I find is text/php, which allows PHP. $uploaded_type=="text/php ...

How to insert a item to the beginning of an array in PHP?

I know how to insert it to the end by: $arr[] = $item; But how to insert it to the beginning? ...

Parse A Steet Address into components

Does anyone have a php class, or regex to parse an address into components? At least, it should break up into these components: street info, state, zip, country ...