max execution time error handling
Hi! I have one script that sometimes gives Max execution times reached error. This is normal, not this a problem. The problem is that in this case I would write specific error message. How do i do this? ...
Hi! I have one script that sometimes gives Max execution times reached error. This is normal, not this a problem. The problem is that in this case I would write specific error message. How do i do this? ...
I tried this: echo preg_replace('/[^,,$]/', '', ',test,hi,'); But gets: ,,, ...
My images gallery has a xhtml like below: <div class="row"> <ul class="ul"> <li><a href="#"><img src=....></a></li> <li><a href="#"><img src=....></a></li> <li><a href="#"><img src=....></a></li> </ul> </div> <div class="row"> <ul class="ul"> <li><a href="#"><img src=....></a></li> <li><a href="#"><img src=....></a...
I'm working with a .NET based Web Service where some of the API calls can be accessed via HTTP POST/GET but on others only SOAP 1.1/1.2 are available. The company that has developed the API have come back to me have said the following and I was wondering if he's trying to pull the wool over my eyes or whether he's speaking the truth. H...
Hello I am looking for a Javascript/PHP based open-source calendar that can be used to select a date range. If anyone can recommend a good solution for this task, let me know! Requirements in the Ideal world: Use the current day as the starting point Allow dates to be chosen in week blocks rather than days. (i.e. you could choose Mo...
hey I'm looking for are clean solution to this problem: i start the loop with i = 0 in the second loop step the i = 1, then i = -1 and then i = 2 ect. how to programm this with a for loop in a clean way? ...
I'm pretty new to Doctrine, but as I understand it, the assignIdentifier() method is supposed to tell Doctrine to update the relevant row into the database instead of inserting a new one. I have an object that I'm building through a workflow, so the identifier has an id of null until I call $object->save(); which inserts it, and this do...
Okey im pretty new to php/javascript but what i would need to do is read cookie and then parse some part of it. How can i do it easily? php or javascript or okey. Cookie has something like this info: ssf.2313.1333 and I would need to get middle numrbers (2313). ...
Dear Friends, I want to send and receive the file with encrypted format to others using gpg. What can I do for this. Can any one tell me, what I have to do? or give some URL related this. I have read about the following link http://library.gnome.org/users/evolution/stable/encryption.html.en But I am not able to send the mail to oth...
This is my code: $zplHandle = fopen($target_file,'w'); fwrite($zplHandle, $zplBlock01); fwrite($zplHandle, $zplBlock02); fwrite($zplHandle, $zplBlock03); fclose($zplHandle); When will the file be saved? Is it immediately after writing to it or after closing it? I am asking this because I have Printfil listening to files in a folder a...
Hi everybody, Is there any way to use voltDB in a PHP application? It definitely seems like it have a few advantages over other Databases out there! ...
Is there a good PHP open source web application from what we can learn? Learning mainly includes: Considering and taking care of ACID properties Building Data Access Layer Error handling and reporting to user I have considered WordPress, but since it uses MyISAM tables, they are not taking care of ACID. ...
Im building an application where vehicles coordinates are being logged by GPS. I want to implement a couple of features to start with, such as: realtime tracking of vehicles history tracking of vehicles keeping locations and area's for customer records I need some guidelines as where to start on database and application design. Anyth...
i need to upload file with jquery. i now about uploadify plugin, but i don't want to use such a big plugin for it. i have an idea, how can i do it, could you tell me will it work? if i pass the <input type="value"> input's value as javascript variable to some.php file via ajax, and then make upload there, will it work? Thanks? ...
I am setting up a cron job to run a single PHP script which will include several other PHP scripts. I'm doing it this way so that each script will only run when the previous one is finished executing. The problem is, I don't necessarily have full control over the content of all the PHP scripts included and therefore, what files are incl...
I'm trying to use PHP COM to save docx files as html using Word. I am using a Windows installation with apache 2.2.x and PHP5. Office 2007 is installed. Using the following code to list fileconverters: $word = new COM('word.application') or die('Unable to instantiate word.'); foreach($word->FileConverters as $converter) { var_dump(...
Guys, I have two basic tables (id, first_name). I want to run table 1 against table 2, delete duplicates, and spit out the cleansed version of table 1. What's the easiest way to do this with PHP/MySQL? Thanks. ...
Hello, I'm developing a Facebook canvas application. One of the features in this application will be posting to the user's stream when they perform certain actions, i.e. logging into the app ("User X is now playing at App Y!"), purchasing a virtual product ("User X has just purchased Product Y on App Z!") etc. To do this, I need the "pu...
Iam not sure if this is the right place but lets see. Iam developing an system to send private messages from one user to an other use. Under the hood runs PHP 5.2.x . Now iam looking for any way to crypt private messages in a way that i cant access them. In the moment i have no idea how to realize such a system, where iam not knowing ...
Hiya. Lets say i have the following web page: <html> <body> <div class="transform"> <span>1</span> </div> <div class="transform"> <span>2</span> </div> <div class="transform"> <span>3</span> </div> </body> </html> I would like to find all div elements that contain the class transform and to fetch the text in each di...