php

PHP Framwork that does Named URLs? (other than Zend Framework)

I really like the named URLs in the Django Framework, and was wondering which of the PHP Frameworks supported such a thing. (I believe Zend Framework does, but please exclude that from your answers, without explanation). For instance, in Django I can name a path like "/items/###" as "item-detail-page", which would point to a View 'func...

Extend HTML_BBCodeParser_Filter

I'm trying to add extra tags to the PEAR package BBCodeParser http://pear.php.net/package/HTML_BBCodeParser/docs/latest/li_HTML_BBCodeParser.html, to do this, I believe I need to place Object.php in \php5.3.0\PEAR\pear\HTML\BBCodeParser\Filter and call addFilter. Object.php <?php /* New filter @todo Lots */ require_once 'HTML/BBCode...

Figuring out which files are included rendering a URL with PHP.

How can I use php to determine which files are invoked and included given a url only. eg. the URL, www.mydomain.com/index.php might use: index.php includes.php content.html I want to give php the url and it return the filenames. Thank you :-) ...

PHP $_ENV where are they stored

Hi I've compiled my own PHP / apache setup on our dev box at work. However the $_ENV['SERVER_Name']; isn't showing anything. Why is this? ...

PHP Screen Scraping and Sessions

Ok still new to the screen scraping thing. I've managed to log into the site I need but now how do I redirect to another page? After I login I'm trying to do another GET request on the page that I need but it has a redirect on it that takes me back to the login page. So I'm thinking the SESSION variables are not being passed, how can ...

Flash/PHP File Upload Speed Issues

I am trying to write a simple, in-house file delivery application for uploading files for easy download on our client's end. I am using Flash with a very basic PHP script receiving the file. So far, this does work. The problem statement is: using FTP, a 100 MB file will upload in 2-3 minutes. Using my simple Flash uploader and uploading...

how can i get php to return 500 upon a fatal exception?

PHP fatals come back as 200, how can i make it return a 500 ...

php - any way to access properties of an already instantiated class from another script without reinstantiating it?

Hello guys. I have page main.html which is a client application for a specific server. The main.php is an window with three frames. main.html <frameset frameborder=no border=0> <frame name='top1' src='top1.php' frameborder=no scrolling=no> <frame name='top2' src='top2.php' frameborder=no scrolling=no> <frame name='firstpage...

php and information system

Hi! I want to use php for building Information system. This information system will be consist of : 1. Main office 2. Branche office Branche office connected to Main office through private circuit. I whant to build information system for communication between this offices. This is system for communication between banks. (for client ...

domains redirecting to specific pages

I have a main domain name associated with a WordPress site, and then I have a couple other domain names connected to that site as well. I want the other two domains names to point/redirect to specific pages on the site rather than the index page, which is the default. So when domain1.com is typed into the browser, it goes to maindomain.c...

Different charset on different server?

I've just tested locally my web application, everything works fine, but after uploading to server application behaves differently. I use function formatiraj_string_url to convert diacritic symbols and get clean url... locally it works fine but on server this function doesnt convert them the same way. Few days earlier I tested this on so...

Beginner with nested array question -- adding values together

Suppose I have an array like this: $products = array('Shoes' => array('price' => 49.99, 'shipping' => 5), 'Shirt' => array('price' => 29.99, 'shipping' => 3), 'Socks'=> array('price' => 2.99, 'shipping' => 0) ); I am having trouble traversing a multi-dimensional array and ...

Auto versioning static content

Hi all, I'm developing a PHP site that serves static content from a cookie free domain (Thanks SO Blog!), this domain serves content with a high cache which among other things means that I'm unable to change content (JS, CSS and images) without invalidating that cache. Currently I do this by appending ?revision (e.g. style.css?19) to t...

Building a Message Delivery Queue in PHP

I'm building a system that will send verses of scripture to subscribers over e-mail. Subscribers will be able to: Determine what volume of scripture they want to receive verses from Determine the daily frequency of the messages and how many verses will be included in each message Determine which times of day they want to receive the me...

Ajax, PHP, and Sessions issue.

I have a PHP application that uses Zend Framework, jQuery's ajax, and Zend_Session. This application has been around for about 7 months and working the way it should. When the application initializes after the user logs in, about 10 ajax requests are fired off to load up relevant data to a dashboard type page. After those have requests h...

Best way to unserialize within an array

I have an array which contains serialized data similar to the example below. Array ( [0] => Array ( [id] => 4 [data] => a:2:{s:6:"Series";a:1:{s:11:"description";s:11:"hello world";}s:4:"Type";a:1:{i:0;s:1:"1";}} [created] => 2009-10-12 18:45:35 ) [1] => Array ( ...

Is there a perfomance gain on the language chosen and DB?

Hello all, We have our current system using PHP and Microsoft SQL Server. I am trying to work out if there will be a performance gain in using PHP and MySQL? It will require some effort to change to this platform so I am hoping to find out as much as I can. Are there any questions I should be asking myself to determine the correct cho...

PHP output buffering - sounds like a bad idea, is it?

Just want to pick the experts' brains on php output buffering. There are times when I've wanted to implement it for one reason or another, but have always managed to rearrange my code to get around it. I avoid using it because it sounds like it'll cost resources. I mean, if they can offer the coder such wonderful flexibility, why do...

Dynamic Approach: Joomla open link to an iframe.

Hi, would like to know how can this be implemented in Joomla. I have a module that parse links from a RSS Feed, Now I want all that link to open in an IFrame once click by a user. I think it can be done by using Javascript But the problem would be some user disabled there javascript. I think it can't be done just adding a PHP line in ...

Is it possible to check if pdostatement::fetch() has results without iterating through a row?

I have a page which needs to check for results, and the way I came up with to do it is successful, but iterates through the first row of results. Is there a way I can check without iterating, or to go back to that first row without executing the query again? I was doing this: $q = pdo::prepare($SQL); $q->execute(array(':foo'=> foo, '...