Skip to content

Does PHP run in background when browser is closed?

I start my browser and run a PHP program (in another server) and them I close the browser, the program will still keep running in the server, right? What if you run the program and them remove the folder in the server (while the program is running). Assuming its a single PHP file, will it crash? Does the whol…

How to convert text to x codes?

I want to convert normal text to x codes for e.g x14x65x60 For example : How to do this? Thanks in advance. Answer PHP 5.3 one-liner: Outputs x62x61x73x65x36x34x5fx64x65x63x6fx64x65

Doctrine 2: Saving Entity in Complex Relationship

I have the following relationships within my doctrine entities: FavoriteRecipe Recipe User In one of my controllers I have the following code: But this throws an exception with the following message: A new entity was found through a relationship that was not configured to cascade persist operations: EntitiesU…

Fastest PHP memory cache/hashtable [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, …

How to count Total Downline , Give me any Idea (MLM project)

Anyone give me any Idea about How I can Count down-line for a MLM project (PHP/MySQL). Currently I’m using the below method. but when my database record become 300 or more, then it shows: maximum execution time of 30 second exceeded in line 51. (I think this happens for unlimited loop). please help me. …

Bounced Email Handling: Better via IMAP or Piping?

Is it better to handle bounced emails by having them 1) sent to an IMAP server and then using a cron job to process each one, or 2) to have bounced messages pipe straight to a script for processing. …

PHP friend/package visibility

Is there any way to limit the visibility in PHP in the same way as “package” visibility works in Java or at least “friend” visibility in C++? What’s the best practice to maintain large OOP project and …

how to integrate fFacebook login with your website?

I made some research and i can’t seem to completely understand how to integrate Facebook login with your website. I’m trying to do this for an old fashioned PHP shop that, up till now, doesn’t use any type of login, but only a session that allows users to browse across pages and add items to…