PHP : Custom error handler - handling parse & fatal errors
How can i handle parse & fatal errors using a custom error handler? ...
How can i handle parse & fatal errors using a custom error handler? ...
Hi, i'm new in php. I want to send an email to someone and afterwards i need to check if this mail could be received. How do i do that? Hope you guys understand my problem ;). Thanks in advance. Marc ...
I have some custom media (special map points for example) I want to associate custom data player with it and place its instances in media library (so them to be accessible in media gallery), keeping possibility to edit it any time user wants to. how to do it? Sorry for my Eng.Lang feel free to edit this Question. ...
I need to simulate a ∞ in PHP. So that min(∞,$number) is always $number. ...
What do php geeks, professionals, and all others us to log their flat files. Are there functions that can just log one .php page? Can the logging in php be controlled? On a side-note, anyone used this for logging? [http://www.monperrus.net/martin/phpmodlog%5D%5B1%5D Apparently my first question was not clear... ...
im a beginner in using solr. i know that you can either use ajax solr or solr-php-client to get the search results from solr. but which should i use or are there occasions you have to choose one of them? for example, which one is a better solution for autocompletion and which one is better for search content in threads? would appreci...
Following on from my question on service locators I have decided to use constructor injection instead. Please consider the following code: <?php interface IAppServiceRegistry { public function getDb(); public function getLogger(); } interface IFooServiceRegistry extends IAppServiceRegistry { public...
Hi guys I was hoping from some help here, please. I have a INSERT query to a table, after this is done I am calling: mysql_insert_id(); In order to send the last ID inserted into the table to the next page like this: $insertGoTo = "confirm_booking.php?booking_ID=" .$_POST['booking_ID']. ""; Unfortunately it does not work, all I ge...
Hi, I am using oscommerce for my site. I want that if product is purchased from certain state then tax will be applicable otherwise no tax for the product. How can i do this in oscommerce? Thanks in advance Avinash ...
I don't get it, the data produced by json_encode is much more straightforward than serialize and yet both the JSON encode and decode functions are much more slower than the serialize and unserialize counterparts. Why? ...
Here there, Is there anyway of shortening this MySQL query at all??? It needs to grab two diffrent rows from the PriceRuleDetail table from the column called RuleValue based on it's price rule, but using an Alias, have them returned in the same row. It's using subqueries inside the select statement, which I assume is right, but there m...
Hi ... I'm looking for free php ecommerce cms now. Can you suggest me about what cms I should be used. and tell my the reason. thanks ...
What is the difference between "A Web Server" and "A Servlet Container"? In general are all Web Servers Servlet(Web) Containers too or vice versa? I have been using Apache Tomcat for JSP and Apache for PHP but unable to figure out the exact difference between those two, where exactly lies the difference? I tried searching previous thre...
Code works fine, except for the fact that there is a problem here: //Log Events function logEvent($newinput) { if ($newinput !== NULL) { // Add a timestamp to the start of the $message $newinput = date("Y/m/d H:i:s").': '.$newinput; $fp = fopen('log.txt', 'w'); fwrite($fp, $newinput."\n"); fc...
Hi there programmers! I'm building a little MVC system (learning) and I have some problems with showing variables in my view files. This is from my View class: private $vars = array(); public function __set($key, $value) { $this->vars[$key] = $value; } public function __get($key) { return $this->...
I'm looking through the Zend_View source and I see this: include 'zend.view://' . func_get_arg(0); what does the string "zend.view://" represent and how would the include statement resolve that in php? ...
Hello, I am currently building a backend to a site using the codeigniter framework, I have hit a bit of a problem, I needing a way to allow the user to upload a zipped folder of images, on completing the form, zipped folder must be unzipped, and the files need to be moved to a folder else where on the server, have thumbnail version of e...
I have an HTML form which uses selections from a drop-down list to populate a mySQL table, but with jQuery / AJAX calling an external php file to update the display of entered lines below the original form. The purpose of the form is an order entry system, and as such works: select an item, see it added to the list. The problem that I ...
Hi, I've read a number of topics in the same sort of ballpark as this one, but in all honesty I'm still not exactly sure on the best approach (as a starting point). I am a solo developer in a small office and I have around 30 websites which are hosted on a linux VPS. I want to start using using version control (probably SVN) and also set...
I'm using the ezPDF class from R&OS ( http://www.ros.co.nz/pdf/) to generate PDF documents with PHP. I'm suing setLineStyle() to make a dashed line. However, I can't get the line style to reset to a solid line afterwards. I've emailed the authors and gotten no response. Hopefully someone out there has a solution! :) ...